15#include "cal3d/global.h"
16#include "cal3d/matrix.h"
17#include "cal3d/vector.h"
18#include "cal3d/quaternion.h"
28 LIGHT_TYPE_DIRECTIONAL,
43 const std::string& getNameInternal();
44 void setNameInternal( std::string& str ) { m_strName = str; }
46 const std::string&
getName()
const;
47 void setName(
const std::string& name );
49 void setName(
char const * str ) { m_strName = str; }
68 void initBoundingBox();
72 void getBoundingData(
int planeId,
CalVector & position)
const;
73 bool isBoundingBoxPrecomputed()
const;
74 void setBoundingBoxPrecomputed(
bool inComputed );
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;
The bounding box class.
Definition vector.h:223
void setRotation(const CalQuaternion &rotation)
Sets the rotation.
Definition corebone.cpp:345
void setCoreSkeleton(CalCoreSkeleton *pCoreSkeleton)
Sets the core skeleton.
Definition corebone.cpp:289
void calculateBoundingBox(CalCoreModel *pCoreModel)
Calculates the bounding box.
Definition corebone.cpp:412
void setTranslation(const CalVector &translation)
Sets the translation.
Definition corebone.cpp:372
bool addChildId(int childId)
Adds a child ID.
Definition corebone.cpp:55
Cal::UserData getUserData()
Provides access to the user data.
Definition corebone.cpp:261
bool updateBoundingBox(const CalVector &position)
Updates the bounding box to include the given position.
Definition corebone.cpp:502
const CalQuaternion & getRotationAbsolute() const
Returns the absolute rotation.
Definition corebone.cpp:194
const CalQuaternion & getRotation() const
Returns the rotation.
Definition corebone.cpp:181
void scale(float factor)
Scale the core bone.
Definition corebone.cpp:573
void setRotationBoneSpace(const CalQuaternion &rotation)
Sets the bone space rotation.
Definition corebone.cpp:359
void calculateState()
Calculates the current state.
Definition corebone.cpp:69
const CalVector & getTranslationAbsolute() const
Returns the absolute translation.
Definition corebone.cpp:234
const CalQuaternion & getRotationBoneSpace() const
Returns the bone space rotation.
Definition corebone.cpp:208
std::list< int > & getListChildId()
Returns the child ID list.
Definition corebone.cpp:109
void setParentId(int parentId)
Sets the parent ID.
Definition corebone.cpp:302
void setUserData(Cal::UserData userData)
Stores user data.
Definition corebone.cpp:399
CalCoreBone(const std::string &name)
Constructs the core bone instance.
Definition corebone.cpp:32
const CalVector & getTranslationBoneSpace() const
Returns the bone space translation.
Definition corebone.cpp:248
const std::string & getName() const
Returns the name.
Definition corebone.cpp:137
int getParentId() const
Returns the parent ID.
Definition corebone.cpp:168
void setName(const std::string &name)
Sets the name.
Definition corebone.cpp:152
CalBoundingBox & getBoundingBox()
Returns the current bounding box.
Definition corebone.cpp:528
void setTranslationBoneSpace(const CalVector &translation)
Sets the bone space translation.
Definition corebone.cpp:386
CalCoreSkeleton * getCoreSkeleton()
Provides access to the core skeleton.
Definition corebone.cpp:317
const CalVector & getTranslation() const
Returns the translation.
Definition corebone.cpp:221
Definition coremodel.h:26
Definition coreskeleton.h:25
The quaternion class.
Definition quaternion.h:36
The vector class.
Definition vector.h:37