35 #ifndef ANIMATABLEMESHNODE_H
36 #define ANIMATABLEMESHNODE_H
42 #include <QtGui/qvector3d.h>
44 namespace AnimatableMeshNode {
45 using namespace Frapper;
87 void updateAnimation ();
107 void updateObjectId ();
117 bool initAnimationStates ();
124 QStringList getAnimationNames ();
131 QStringList getBoneNames ();
138 void initializeBones ( QStringList boneNames );
151 void updateStatistics ();
157 void destroyEntity ();
166 void progressAnimation (
const QString &animationName,
float timeToAdd,
float weight = 1.0 );
179 void transformBone (
const QString &name,
float &tx,
float &ty,
float &tz,
float &rx,
float &ry,
float &rz );
184 void parseMaterialParameters ();
193 Ogre::HardwareVertexBufferSharedPtr writeDataToVertices(Ogre::SubMesh* mesh);
202 bool compareVectors(QVector3D* v1, QVector3D* v2);
208 bool isAnimated ()
const;
216 void geometryFileChanged ();
221 void setInterpolationMode ();
226 void setMaterialParameter ();
231 void reloadTexture ();
238 bool setupMaterial ();
245 bool loadLightDescriptionFile ();