#include <Bone.h>
Collaboration diagram for model::Bone:
Public Member Functions | |
Bone * | getParent () |
vector< Bone * > | getChilds () |
IvVector3 * | getDirection () |
float | getLength () |
vector< Constraint * > | getConstraints () |
vector< Mapping * > | getMapping () |
void | setDirection (IvVector3 *vDirection) |
void | setLength (float fLength) |
void | setConstraints (vector< Constraint * > lConstraints) |
void | setMapping (vector< Mapping * > lMapping) |
void | addConstraint (Constraint *constraint) |
void | addMapping (Mapping *mapping) |
void | addChild (Bone *bone) |
void | removeConstraint (Constraint *constraint) |
void | removeMapping (Mapping *mapping) |
void | removeChild (string name) |
void | setName (string name) |
Write brief comment for setName here. | |
string | getName () |
Write brief comment for getName here. | |
bool | operator== (const Bone &other) const |
bool | operator!= (const Bone &other) const |
Private Member Functions | |
Bone (Bone *parent, IvVector3 *vDirection, float fLength, string name) | |
~Bone () | |
Bone (const Bone &other) | |
Bone & | operator= (const Bone &other) |
void | setParent (Bone *bone) |
Private Attributes | |
Bone * | m_vChilds |
Constraint * | m_lConstraints |
Mapping * | m_lMapping |
Bone * | m_parent |
IvVector3 * | m_vDirection |
float | m_fLength |
string | m_sName |
Friends | |
class | Skeleton |
Write detailed description for Bone here.
Definition at line 30 of file Bone.h.
|
Write brief comment for Bone here.
Definition at line 29 of file Bone.cpp. References setDirection(), setLength(), setName(), and setParent(). 00029 { 00030 setParent(parent); 00031 setDirection(vDirection); 00032 setLength(fLength); 00033 setName(name); 00034 }
|
Here is the call graph for this function:
|
Write brief comment for ~Bone here.
Definition at line 64 of file Bone.h. 00064 {};
|
|
Write brief comment for Bone here.
Definition at line 54 of file Bone.cpp. References m_fLength, m_lConstraints, m_lMapping, m_parent, m_sName, m_vChilds, and m_vDirection. 00054 { 00055 m_parent = other.m_parent; 00056 m_vDirection = other.m_vDirection; 00057 m_fLength = other.m_fLength; 00058 m_lConstraints = other.m_lConstraints; 00059 m_lMapping = other.m_lMapping; 00060 m_vChilds = other.m_vChilds; 00061 m_sName = other.m_sName; 00062 }
|
|
Definition at line 328 of file Bone.cpp. References m_vChilds. Referenced by model::Skeleton::addBone(). 00328 { 00329 m_vChilds.push_back(bone); 00330 }
|
|
Write brief comment for addConstraint here.
Definition at line 303 of file Bone.cpp. 00303 { 00304 00305 }
|
|
Write brief comment for addMapping here.
Definition at line 324 of file Bone.cpp. Referenced by pcggui::ConvertSkin(). 00324 { 00325 00326 }
|
|
|
|
Write brief comment for getConstraints here.
Definition at line 161 of file Bone.cpp. 00161 {
00162 return m_lConstraints;
00163 }
|
|
Write brief comment for getDirection here.
Definition at line 119 of file Bone.cpp. 00119 {
00120 return m_vDirection;
00121 }
|
|
Write brief comment for getLength here.
Definition at line 140 of file Bone.cpp. 00140 {
00141 return m_fLength;
00142 }
|
|
Write brief comment for getMapping here.
Definition at line 182 of file Bone.cpp. 00182 {
00183 return m_lMapping;
00184 }
|
|
Write brief comment for getName here.
Definition at line 486 of file Bone.cpp. 00486 {
00487 return m_sName;
00488 }
|
|
|
|
Write brief comment for operator != here.
Definition at line 434 of file Bone.cpp. References m_fLength, m_lConstraints, m_lMapping, m_sName, and m_vDirection. 00435 { 00436 if(m_vDirection == other.m_vDirection 00437 && m_fLength == other.m_fLength 00438 && m_lConstraints == other.m_lConstraints 00439 && m_lMapping == other.m_lMapping 00440 && m_sName.compare(other.m_sName)) { 00441 return false; 00442 } 00443 return true; 00444 }
|
|
Write brief comment for operator = here.
Definition at line 85 of file Bone.cpp. References m_fLength, m_lConstraints, m_lMapping, m_parent, m_sName, m_vChilds, and m_vDirection. 00086 { 00087 // if same object 00088 if ( this == &other ) 00089 return *this; 00090 00091 m_parent = other.m_parent; 00092 m_vDirection = other.m_vDirection; 00093 m_fLength = other.m_fLength; 00094 m_lConstraints = other.m_lConstraints; 00095 m_lMapping = other.m_lMapping; 00096 m_vChilds = other.m_vChilds; 00097 m_sName = other.m_sName; 00098 00099 return *this; 00100 }
|
|
Write brief comment for operator == here.
Definition at line 400 of file Bone.cpp. References m_fLength, m_lConstraints, m_lMapping, m_sName, and m_vDirection. 00401 { 00402 00403 if(m_vDirection == other.m_vDirection 00404 && m_fLength == other.m_fLength 00405 && m_lConstraints == other.m_lConstraints 00406 && m_lMapping == other.m_lMapping 00407 && m_sName.compare(other.m_sName)) { 00408 return true; 00409 } 00410 return false; 00411 }
|
|
Definition at line 375 of file Bone.cpp. 00375 { 00376 00377 }
|
|
Write brief comment for removeConstraint here.
Definition at line 349 of file Bone.cpp. 00349 { 00350 00351 }
|
|
Write brief comment for removeMapping here.
Definition at line 371 of file Bone.cpp. 00371 { 00372 00373 }
|
|
Write brief comment for setConstraints here.
Definition at line 261 of file Bone.cpp. References m_lConstraints. 00261 { 00262 m_lConstraints = lConstraints; 00263 }
|
|
Write brief comment for setDirection here.
Definition at line 218 of file Bone.cpp. References m_vDirection. Referenced by Bone(). 00218 { 00219 m_vDirection = vDirection; 00220 }
|
|
Write brief comment for setLength here.
Definition at line 240 of file Bone.cpp. References m_fLength. Referenced by Bone(). 00240 { 00241 m_fLength = fLength; 00242 }
|
|
Write brief comment for setMapping here.
Definition at line 282 of file Bone.cpp. References m_lMapping. 00282 { 00283 m_lMapping = lMapping; 00284 }
|
|
Write brief comment for setName here.
Definition at line 464 of file Bone.cpp. References m_sName. Referenced by Bone(). 00464 { 00465 m_sName = name; 00466 }
|
|
Write brief comment for setParent here.
Definition at line 197 of file Bone.cpp. References m_parent. Referenced by Bone(). 00197 { 00198 m_parent = bone; 00199 }
|
|
|
|
Definition at line 43 of file Bone.h. Referenced by Bone(), operator!=(), operator=(), operator==(), and setLength(). |
|
Definition at line 34 of file Bone.h. Referenced by Bone(), operator!=(), operator=(), operator==(), and setConstraints(). |
|
Definition at line 35 of file Bone.h. Referenced by Bone(), operator!=(), operator=(), operator==(), and setMapping(). |
|
Definition at line 41 of file Bone.h. Referenced by Bone(), operator=(), and setParent(). |
|
Definition at line 44 of file Bone.h. Referenced by Bone(), operator!=(), operator=(), operator==(), and setName(). |
|
Definition at line 33 of file Bone.h. Referenced by addChild(), Bone(), and operator=(). |
|
Definition at line 42 of file Bone.h. Referenced by Bone(), operator!=(), operator=(), operator==(), and setDirection(). |