00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OpenSpace3D 00004 For the latest info, see http://www.openspace3d.com 00005 00006 Copyright (c) 2010 I-maginer 00007 00008 This program is free software; you can redistribute it and/or modify it under 00009 the terms of the GNU Lesser General Public License as published by the Free Software 00010 Foundation; either version 2 of the License, or (at your option) any later 00011 version. 00012 00013 This program is distributed in the hope that it will be useful, but WITHOUT 00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License along with 00018 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00019 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00020 http://www.gnu.org/copyleft/lesser.txt 00021 00022 You may alternatively use this source under the terms of a specific version of 00023 the OpenSpace3D Unrestricted License provided you have obtained such a license from 00024 I-maginer. 00025 ----------------------------------------------------------------------------- 00026 */ 00027 00035 #ifndef __SO3SKELETON_FAP_H__ 00036 #define __SO3SKELETON_FAP_H__ 00037 00038 #include "../SCOLBasic/SO3Std.h" 00039 #include "../SCOLBasic/SO3Array.h" 00040 #include "../SO3SceneGraph/SO3Skeleton.h" 00041 00042 namespace SO3 00043 { 00044 00045 class SSkeletonFap : public SSkeleton 00046 { 00047 public: 00048 // TODO: all private! 00049 SArray<SBone*> boneList; 00050 SArray<int> BapID; 00051 SArray<string> bapBuffer; 00052 bool hisDictionnaryInit; 00053 int nbBAPFrames; 00054 bool is_H_Anim; 00055 SAnim* animBAP; 00056 protected: 00057 private: 00058 00059 public: 00062 SSkeletonFap(SScene* parent, std::string skeletonName, SEntity* parentEntity); 00063 00066 ~SSkeletonFap(); 00067 00070 void FeedBAPAnimation(); 00071 00075 bool FeedBAPBuffer(std::string buffer); 00076 00079 bool InitializeDictionnary(int isHanim); 00080 protected: 00081 private: 00085 SSkeletonFap(); 00086 }; 00087 00088 } 00089 00090 #endif
1.6.3