15#include "cal3d/global.h"
16#include "cal3d/vector.h"
17#include "cal3d/quaternion.h"
18#include "cal3d/matrix.h"
19#include "cal3d/corebone.h"
28class CAL3D_API CalBone
36 bool replace =
false,
float rampValue = 1.0f,
37 bool absoluteTranslation =
true);
52 inline void setMeshScaleAbsolute(
CalVector const & sv ) {
53 m_meshScaleAbsolute = sv; }
54 inline const CalVector& getTranslationBoneSpace()
const{
55 return m_translationBoneSpace;
57 inline const CalMatrix& getTransformMatrix()
const{
58 return m_transformMatrix;
69 float m_accumulatedWeight;
70 float m_accumulatedWeightAbsolute;
71 float m_accumulatedReplacementAttenuation;
72 float m_firstBlendScale;
const CalQuaternion & getRotationAbsolute() const
Returns the current absolute rotation.
Definition bone.cpp:473
void setCoreTransformStateVariables()
Resets the bone transform state variables for rotation and translation.
Definition bone.cpp:383
const CalVector & getTranslationAbsolute() const
Returns the current absolute translation.
Definition bone.cpp:528
void lockState()
Returns the current bone space translation.
Definition bone.cpp:559
void calculateBoundingBox()
Calculates the bounding box.
Definition bone.cpp:615
const CalQuaternion & getRotationBoneSpace() const
Returns the current bone space rotation.
Definition bone.cpp:487
CalBoundingBox & getBoundingBox()
Returns the current bounding box.
Definition bone.cpp:675
void clearState()
Clears the current state.
Definition bone.cpp:335
void setTranslation(const CalVector &translation)
Sets the current translation.
Definition bone.cpp:500
CalCoreBone * getCoreBone()
Provides access to the core bone.
Definition bone.cpp:355
void setSkeleton(CalSkeleton *pSkeleton)
Sets the skeleton.
Definition bone.cpp:602
void setRotation(const CalQuaternion &rotation)
Sets the current rotation.
Definition bone.cpp:445
const CalVector & getTranslation() const
Returns the current translation.
Definition bone.cpp:515
void calculateState()
Calculates the current state.
Definition bone.cpp:174
const CalQuaternion & getRotation() const
Returns the current rotation.
Definition bone.cpp:460
void setCoreStateRecursive()
Resets the bone and children to core states.
Definition bone.cpp:417
void setCoreState()
Resets the bone to its core state.
Definition bone.cpp:397
void blendState(float unrampedWeight, const CalVector &translation, const CalQuaternion &rotation, float scale=1.0f, bool replace=false, float rampValue=1.0f, bool absoluteTranslation=true)
Interpolates the current state to another state.
Definition bone.cpp:50
The bounding box class.
Definition vector.h:223
Definition coremodel.h:26
The matrix class.
Definition matrix.h:35
The quaternion class.
Definition quaternion.h:36
The vector class.
Definition vector.h:37