Blender V2.61 - r43446
Public Member Functions | Protected Attributes

BL_ArmatureObject Class Reference

#include <BL_ArmatureObject.h>

Inheritance diagram for BL_ArmatureObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

double GetLastFrame ()
short GetActivePriority ()
virtual void ProcessReplica ()
virtual void ReParentLogic ()
virtual void Relink (CTR_Map< CTR_HashedPtr, void * > *obj_map)
virtual bool UnlinkObject (SCA_IObject *clientobj)
class BL_ActionActuatorGetActiveAction ()
 BL_ArmatureObject (void *sgReplicationInfo, SG_Callbacks callbacks, Object *armature, Scene *scene, int vert_deform_type)
virtual ~BL_ArmatureObject ()
virtual CValueGetReplica ()
void GetMRDPose (struct bPose **pose)
void GetPose (struct bPose **pose)
void SetPose (struct bPose *pose)
struct bPoseGetOrigPose ()
void ApplyPose ()
void RestorePose ()
bool SetActiveAction (class BL_ActionActuator *act, short priority, double curtime)
struct bArmatureGetArmature ()
struct bArmatureGetArmature () const
struct SceneGetScene () const
ObjectGetArmatureObject ()
int GetVertDeformType ()
void LoadConstraints (KX_BlenderSceneConverter *converter)
size_t GetConstraintNumber () const
BL_ArmatureConstraintGetConstraint (const char *posechannel, const char *constraint)
BL_ArmatureConstraintGetConstraint (const char *posechannelconstraint)
BL_ArmatureConstraintGetConstraint (int index)
void LoadChannels ()
size_t GetChannelNumber () const
BL_ArmatureChannelGetChannel (bPoseChannel *channel)
BL_ArmatureChannelGetChannel (const char *channel)
BL_ArmatureChannelGetChannel (int index)
bool GetBoneMatrix (Bone *bone, MT_Matrix4x4 &matrix)
float GetBoneLength (Bone *bone) const
 Returns the bone length. The end of the bone is in the local y direction.
virtual int GetGameObjectType ()

Protected Attributes

SG_DListHead
< BL_ArmatureConstraint
m_controlledConstraints
SG_DList m_poseChannels
Objectm_objArma
struct bArmaturem_armature
struct bPosem_pose
struct bPosem_armpose
struct bPosem_framePose
struct Scenem_scene
double m_lastframe
double m_timestep
class BL_ActionActuatorm_activeAct
short m_activePriority
int m_vert_deform_type
size_t m_constraintNumber
size_t m_channelNumber
float m_obmat [4][4]
double m_lastapplyframe

Detailed Description

Definition at line 52 of file BL_ArmatureObject.h.


Constructor & Destructor Documentation

BL_ArmatureObject::BL_ArmatureObject ( void *  sgReplicationInfo,
SG_Callbacks  callbacks,
Object armature,
Scene scene,
int  vert_deform_type 
)
BL_ArmatureObject::~BL_ArmatureObject ( ) [virtual]

Member Function Documentation

void BL_ArmatureObject::ApplyPose ( )
BL_ActionActuator * BL_ArmatureObject::GetActiveAction ( )

Definition at line 537 of file BL_ArmatureObject.cpp.

References m_activeAct.

short BL_ArmatureObject::GetActivePriority ( )

Definition at line 575 of file BL_ArmatureObject.cpp.

References m_activePriority.

struct bArmature* BL_ArmatureObject::GetArmature ( ) [inline, read]

Definition at line 86 of file BL_ArmatureObject.h.

References m_armature.

struct bArmature* BL_ArmatureObject::GetArmature ( ) const [inline, read]

Definition at line 87 of file BL_ArmatureObject.h.

References m_armature.

Object* BL_ArmatureObject::GetArmatureObject ( ) [inline]
float BL_ArmatureObject::GetBoneLength ( Bone bone) const

Returns the bone length. The end of the bone is in the local y direction.

Definition at line 598 of file BL_ArmatureObject.cpp.

References Bone::head, length(), and Bone::tail.

Referenced by KX_BoneParentRelation::UpdateChildCoordinates().

bool BL_ArmatureObject::GetBoneMatrix ( Bone bone,
MT_Matrix4x4 matrix 
)

Retrieve the pose matrix for the specified bone. Returns true on success.

Definition at line 585 of file BL_ArmatureObject.cpp.

References ApplyPose(), get_pose_channel(), m_objArma, Bone::name, NULL, Object::pose, bPoseChannel::pose_mat, and RestorePose().

Referenced by KX_BoneParentRelation::UpdateChildCoordinates().

BL_ArmatureChannel * BL_ArmatureObject::GetChannel ( int  index)
BL_ArmatureChannel * BL_ArmatureObject::GetChannel ( const char *  channel)
BL_ArmatureChannel * BL_ArmatureObject::GetChannel ( bPoseChannel channel)
size_t BL_ArmatureObject::GetChannelNumber ( ) const [inline]

Definition at line 102 of file BL_ArmatureObject.h.

References m_channelNumber.

BL_ArmatureConstraint * BL_ArmatureObject::GetConstraint ( const char *  posechannel,
const char *  constraint 
)
BL_ArmatureConstraint * BL_ArmatureObject::GetConstraint ( const char *  posechannelconstraint)
BL_ArmatureConstraint * BL_ArmatureObject::GetConstraint ( int  index)
size_t BL_ArmatureObject::GetConstraintNumber ( ) const [inline]

Definition at line 96 of file BL_ArmatureObject.h.

References m_constraintNumber.

virtual int BL_ArmatureObject::GetGameObjectType ( ) [inline, virtual]

Reimplemented from SCA_IObject.

Definition at line 114 of file BL_ArmatureObject.h.

References SCA_IObject::OBJ_ARMATURE.

double BL_ArmatureObject::GetLastFrame ( )

Definition at line 580 of file BL_ArmatureObject.cpp.

References m_lastframe.

Referenced by BL_SkinDeformer::PoseUpdated(), and BL_SkinDeformer::UpdateInternal().

void BL_ArmatureObject::GetMRDPose ( struct bPose **  pose)

Definition at line 564 of file BL_ArmatureObject.cpp.

References extract_pose_from_pose(), game_copy_pose(), and m_pose.

Referenced by BL_Action::Play(), and BL_Action::Update().

struct bPose* BL_ArmatureObject::GetOrigPose ( ) [inline, read]

Definition at line 79 of file BL_ArmatureObject.h.

References m_pose.

Referenced by KX_ArmatureSensor::FindConstraint(), and BL_ArmatureConstraint::ReParent().

void BL_ArmatureObject::GetPose ( struct bPose **  pose)

Definition at line 542 of file BL_ArmatureObject.cpp.

References extract_pose_from_pose(), game_copy_pose(), and m_pose.

Referenced by SetActiveAction(), and BL_Action::Update().

CValue * BL_ArmatureObject::GetReplica ( void  ) [virtual]

Inherited from CValue -- return a new copy of this instance allocated on the heap. Ownership of the new object belongs with the caller.

Reimplemented from KX_GameObject.

Definition at line 416 of file BL_ArmatureObject.cpp.

References BL_ArmatureObject(), and ProcessReplica().

struct Scene* BL_ArmatureObject::GetScene ( ) const [inline, read]

Definition at line 88 of file BL_ArmatureObject.h.

References m_scene.

int BL_ArmatureObject::GetVertDeformType ( ) [inline]

Definition at line 92 of file BL_ArmatureObject.h.

References m_vert_deform_type.

Referenced by BL_SkinDeformer::UpdateInternal().

void BL_ArmatureObject::LoadChannels ( )
void BL_ArmatureObject::LoadConstraints ( KX_BlenderSceneConverter converter)
void BL_ArmatureObject::ProcessReplica ( ) [virtual]

Inherited from CValue -- Makes sure any internal data owned by this class is deep copied. Called internally

Reimplemented from KX_GameObject.

Definition at line 423 of file BL_ArmatureObject.cpp.

References game_copy_pose(), m_framePose, m_pose, and NULL.

Referenced by GetReplica().

void BL_ArmatureObject::Relink ( CTR_Map< CTR_HashedPtr, void * > *  obj_map) [virtual]
void BL_ArmatureObject::ReParentLogic ( ) [virtual]
void BL_ArmatureObject::RestorePose ( )
bool BL_ArmatureObject::SetActiveAction ( class BL_ActionActuator act,
short  priority,
double  curtime 
)
void BL_ArmatureObject::SetPose ( struct bPose pose)

Definition at line 494 of file BL_ArmatureObject.cpp.

References extract_pose_from_pose(), m_lastapplyframe, and m_pose.

Referenced by SetActiveAction(), and BL_Action::Update().

bool BL_ArmatureObject::UnlinkObject ( SCA_IObject clientobj) [virtual]

UnlinkObject(...) this object is informed that one of the object to which it holds a reference is deleted returns true if there was indeed a reference.

Reimplemented from SCA_IObject.

Definition at line 451 of file BL_ArmatureObject.cpp.

References SG_DList::iterator< T >::begin(), SG_DList::iterator< T >::end(), and m_controlledConstraints.


Member Data Documentation

Definition at line 138 of file BL_ArmatureObject.h.

Referenced by GetActiveAction(), and SetActiveAction().

Definition at line 139 of file BL_ArmatureObject.h.

Referenced by GetActivePriority(), and SetActiveAction().

Definition at line 131 of file BL_ArmatureObject.h.

Referenced by BL_ArmatureObject(), and GetArmature().

struct bPose* BL_ArmatureObject::m_armpose [protected]

Definition at line 133 of file BL_ArmatureObject.h.

Referenced by ApplyPose(), and RestorePose().

Definition at line 142 of file BL_ArmatureObject.h.

Referenced by GetChannel(), GetChannelNumber(), and LoadChannels().

Definition at line 141 of file BL_ArmatureObject.h.

Referenced by GetConstraintNumber(), and LoadConstraints().

Definition at line 134 of file BL_ArmatureObject.h.

Referenced by ProcessReplica(), SetActiveAction(), and ~BL_ArmatureObject().

Definition at line 146 of file BL_ArmatureObject.h.

Referenced by ApplyPose(), and SetPose().

double BL_ArmatureObject::m_lastframe [protected]

Definition at line 136 of file BL_ArmatureObject.h.

Referenced by ApplyPose(), GetLastFrame(), and SetActiveAction().

float BL_ArmatureObject::m_obmat[4][4] [protected]

Definition at line 144 of file BL_ArmatureObject.h.

Referenced by ApplyPose(), and BL_ArmatureObject().

struct bPose* BL_ArmatureObject::m_pose [protected]

Definition at line 129 of file BL_ArmatureObject.h.

Referenced by GetChannel(), LoadChannels(), and ~BL_ArmatureObject().

struct Scene* BL_ArmatureObject::m_scene [protected]

Definition at line 135 of file BL_ArmatureObject.h.

Referenced by ApplyPose(), and GetScene().

double BL_ArmatureObject::m_timestep [protected]

Definition at line 137 of file BL_ArmatureObject.h.

Referenced by ApplyPose(), and SetActiveAction().

Definition at line 140 of file BL_ArmatureObject.h.

Referenced by GetVertDeformType().


The documentation for this class was generated from the following files: