Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MS_Bone Class Reference

#include <MilkShape.h>

List of all members.

Public Member Functions

 MS_Bone ()
virtual ~MS_Bone ()
void clear ()
void initialize ()
void advanceTo (float fCurrentTime)
void render ()
bool loadFromAsciiSegment (FILE *file)

Public Attributes

char name [MS_MAX_NAME]
char parentName [MS_MAX_NAME]
MS_Boneparent
byte flags
float rotation [3]
float position [3]
int numPosKeys
int numRotKeys
MS_KeyFrameRotkeyFramesRot
MS_KeyFramePoskeyFramesTrans
Mat4 matRelative
Mat4 matFinal


Detailed Description

Definition at line 95 of file MilkShape.h.


Constructor & Destructor Documentation

MS_Bone::MS_Bone  ) 
 

MS_Bone.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file MS_Bone.cpp.

References keyFramesRot, keyFramesTrans, and parent.

MS_Bone::~MS_Bone  )  [virtual]
 

Definition at line 15 of file MS_Bone.cpp.

References clear().

Here is the call graph for this function:


Member Function Documentation

void MS_Bone::advanceTo float  fCurrentTime  ) 
 

Definition at line 168 of file MS_Bone.cpp.

References keyFramesRot, keyFramesTrans, Mat4::loadRotateZXY(), matFinal, numPosKeys, numRotKeys, parent, MS_KeyFrameRot::position, MS_KeyFramePos::position, Mat4::setTranslate(), MS_KeyFrameRot::time, and MS_KeyFramePos::time.

Referenced by MilkShape::advanceAnimation().

Here is the call graph for this function:

void MS_Bone::clear  ) 
 

Definition at line 19 of file MS_Bone.cpp.

References keyFramesRot, and keyFramesTrans.

Referenced by MilkShape::clear(), and ~MS_Bone().

void MS_Bone::initialize  ) 
 

Definition at line 153 of file MS_Bone.cpp.

References Mat4::loadRotateZXY(), matFinal, parent, and Mat4::setTranslate().

Referenced by MilkShape::initializeBones().

Here is the call graph for this function:

bool MS_Bone::loadFromAsciiSegment FILE *  file  ) 
 

Definition at line 75 of file MS_Bone.cpp.

References keyFramesRot, keyFramesTrans, numPosKeys, and numRotKeys.

void MS_Bone::render  ) 
 

Definition at line 31 of file MS_Bone.cpp.

References MS_Vec_Transform(), MS_Vec::w, MS_Vec::x, MS_Vec::y, and MS_Vec::z.

Referenced by MilkShape::renderBones().

Here is the call graph for this function:


Member Data Documentation

byte MS_Bone::flags
 

Definition at line 110 of file MilkShape.h.

MS_KeyFrameRot* MS_Bone::keyFramesRot
 

Definition at line 115 of file MilkShape.h.

Referenced by advanceTo(), clear(), loadFromAsciiSegment(), and MS_Bone().

MS_KeyFramePos* MS_Bone::keyFramesTrans
 

Definition at line 116 of file MilkShape.h.

Referenced by advanceTo(), clear(), loadFromAsciiSegment(), and MS_Bone().

Mat4 MS_Bone::matFinal
 

Definition at line 118 of file MilkShape.h.

Referenced by advanceTo(), MilkShape::attachSkin(), initialize(), and MilkShape::render().

Mat4 MS_Bone::matRelative
 

Definition at line 117 of file MilkShape.h.

char MS_Bone::name[MS_MAX_NAME]
 

Definition at line 107 of file MilkShape.h.

int MS_Bone::numPosKeys
 

Definition at line 113 of file MilkShape.h.

Referenced by advanceTo(), and loadFromAsciiSegment().

int MS_Bone::numRotKeys
 

Definition at line 114 of file MilkShape.h.

Referenced by advanceTo(), and loadFromAsciiSegment().

MS_Bone* MS_Bone::parent
 

Definition at line 109 of file MilkShape.h.

Referenced by advanceTo(), initialize(), MilkShape::linkBones(), and MS_Bone().

char MS_Bone::parentName[MS_MAX_NAME]
 

Definition at line 108 of file MilkShape.h.

float MS_Bone::position[3]
 

Definition at line 112 of file MilkShape.h.

float MS_Bone::rotation[3]
 

Definition at line 111 of file MilkShape.h.


Generated on Sun Jun 5 15:50:20 2005 for Defacto by  doxygen 1.4.3