# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

u_animation_set.h

Go to the documentation of this file.
00001 
00007 /* Copyright, 2001 Nevrax Ltd.
00008  *
00009  * This file is part of NEVRAX NEL.
00010  * NEVRAX NEL is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2, or (at your option)
00013  * any later version.
00014 
00015  * NEVRAX NEL is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00018  * General Public License for more details.
00019 
00020  * You should have received a copy of the GNU General Public License
00021  * along with NEVRAX NEL; see the file COPYING. If not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00023  * MA 02111-1307, USA.
00024  */
00025 
00026 #ifndef NL_U_ANIMATION_SET_H
00027 #define NL_U_ANIMATION_SET_H
00028 
00029 #include "nel/misc/types_nl.h"
00030 #include "nel/3d/animation_time.h"
00031 
00032 
00033 namespace NL3D
00034 {
00035 
00036 class UAnimation;
00037 
00038 // ***************************************************************************
00045 class UAnimationSet
00046 {
00047 protected:
00048 
00050         UAnimationSet() {}
00052         virtual ~UAnimationSet() {}
00053 
00054 public:
00055 
00056         enum { NotFound=0xffffffff };
00057 
00058 public:
00059 
00061         // @{
00070         virtual uint addAnimation (const char* fileName, const char* animName) =0;
00071 
00075         virtual void build () =0;
00076 
00085         virtual uint addSkeletonWeight (const char* fileName, const char* skelName) =0;
00086 
00087         // @}
00088 
00090         // @{
00094         virtual uint getNumAnimation () const =0;
00095 
00099         virtual uint getAnimationIdByName (const std::string& name) const  =0;
00100 
00104         virtual const std::string& getAnimationName (uint animationId) const =0;
00105 
00111         virtual UAnimation *getAnimation (uint animationId) =0;
00112 
00113         // @}
00114 
00115 
00117         // @{
00121         virtual uint getNumSkeletonWeight () const =0;
00122 
00126         virtual uint getSkeletonWeightIdByName (const std::string& name) const =0;
00127 
00131         virtual const std::string& getSkeletonWeightName (uint skeletonId) const =0;
00132         // @}
00133 
00134 
00136         // @{
00137 
00141         virtual uint getChannelIdByName (const std::string& name) const =0;
00142 
00143         // @}
00144 
00145 
00146 };
00147 
00148 
00149 } // NL3D
00150 
00151 
00152 #endif // NL_U_ANIMATION_SET_H
00153 
00154 /* End of u_animation_set.h */