11 #ifndef CAL_COREBONE_H 12 #define CAL_COREBONE_H 15 #include "cal3d/global.h" 16 #include "cal3d/matrix.h" 17 #include "cal3d/vector.h" 18 #include "cal3d/quaternion.h" 28 LIGHT_TYPE_DIRECTIONAL,
40 bool addChildId(
int childId);
41 void calculateState();
42 std::list<int>& getListChildId();
43 const std::string& getNameInternal();
44 void setNameInternal( std::string& str ) { m_strName = str; }
45 const std::list<int>& getListChildId()
const;
46 const std::string& getName()
const;
47 void setName(
const std::string& name );
48 int getParentId()
const;
49 void setName(
char const * str ) { m_strName = str; }
56 const CalVector& getTranslationAbsolute()
const;
57 const CalVector& getTranslationBoneSpace()
const;
58 Cal::UserData getUserData();
59 const Cal::UserData getUserData()
const;
61 void setParentId(
int parentId);
64 void setTranslation(
const CalVector& translation);
65 void setTranslationBoneSpace(
const CalVector& translation);
66 void setUserData(Cal::UserData userData);
68 void initBoundingBox();
72 void getBoundingData(
int planeId,
CalVector & position)
const;
73 bool isBoundingBoxPrecomputed()
const;
74 void setBoundingBoxPrecomputed(
bool inComputed );
75 bool updateBoundingBox(
const CalVector &position);
76 void scale(
float factor);
78 bool hasLightingData();
81 CalLightType getLightType();
82 void setLightType( CalLightType );
85 std::string m_strName;
88 std::list<int> m_listChildId;
95 Cal::UserData m_userData;
99 bool m_boundingBoxPrecomputed;
101 CalLightType m_lightType;
Definition: coremodel.h:25
Definition: corebone.h:34
The bounding box class.
Definition: vector.h:222
Definition: coreskeleton.h:24
The vector class.
Definition: vector.h:36
The quaternion class.
Definition: quaternion.h:35