#include <Skeleton.h>
Collaboration diagram for model::Skeleton:
Public Member Functions | |
Skeleton () | |
~Skeleton () | |
Skeleton (const Skeleton &other) | |
Skeleton & | operator= (const Skeleton &other) |
void | addBone (Bone *parent, IvVector3 *direction, float length, string name) |
Write brief comment for addBone here. | |
void | removeBone (int id) |
void | removeBone (string name) |
vector< Bone * > | getBones () |
Bone * | getBone (int id) |
Bone * | getBone (string name) |
bool | operator== (const Skeleton &other) const |
bool | operator!= (const Skeleton &other) const |
Private Attributes | |
Bone * | m_vBones |
Write detailed description for Skeleton here.
Definition at line 29 of file Skeleton.h.
|
Write brief comment for Skeleton here.
Definition at line 52 of file Skeleton.h. 00052 {};
|
|
Write brief comment for ~Skeleton here.
Definition at line 68 of file Skeleton.h. 00068 {};
|
|
Write brief comment for Skeleton here.
Definition at line 22 of file Skeleton.cpp. References m_vBones. 00022 { 00023 m_vBones = other.m_vBones; 00024 }
|
|
Write brief comment for addBone here.
Definition at line 205 of file Skeleton.cpp. References model::Bone::addChild(), and m_vBones. Referenced by pcggui::ConvertBone(). 00205 { 00206 Bone* bone = new Bone(parent,direction,length,name); 00207 parent->addChild(bone); 00208 m_vBones.push_back(bone); 00209 }
|
Here is the call graph for this function:
|
Write brief comment for getBone here.
Definition at line 154 of file Skeleton.cpp. References m_vBones. 00154 { 00155 for(int i=0; i<m_vBones.size(); i++) { 00156 if(name.compare(m_vBones[i]->getName()) == 0) { 00157 return m_vBones[i]; 00158 } 00159 } 00160 return NULL; 00161 }
|
|
Write brief comment for getBone here.
Definition at line 183 of file Skeleton.cpp. References m_vBones. Referenced by pcggui::ConvertSkin(). 00183 { 00184 return m_vBones[id]; 00185 }
|
|
Write brief comment for getBones here.
Definition at line 130 of file Skeleton.cpp. 00130 {
00131 return m_vBones;
00132 }
|
|
Write brief comment for operator != here.
Definition at line 105 of file Skeleton.cpp. References m_vBones. 00106 { 00107 if(m_vBones != other.m_vBones) { 00108 return false; 00109 } 00110 return true; 00111 }
|
|
Write brief comment for operator = here.
Definition at line 46 of file Skeleton.cpp. References m_vBones. 00047 { 00048 // if same object 00049 if ( this == &other ) 00050 return *this; 00051 00052 m_vBones = other.m_vBones; 00053 00054 return *this; 00055 }
|
|
Write brief comment for operator == here.
Definition at line 77 of file Skeleton.cpp. References m_vBones. 00078 { 00079 if(m_vBones == other.m_vBones) { 00080 return true; 00081 } 00082 return false; 00083 }
|
|
Write brief comment for removeBone here.
Definition at line 249 of file Skeleton.cpp. 00249 { 00250 00251 }
|
|
Write brief comment for removeBone here.
Definition at line 228 of file Skeleton.cpp. 00228 { 00229 00230 }
|
|
Definition at line 32 of file Skeleton.h. Referenced by addBone(), getBone(), operator!=(), operator=(), operator==(), and Skeleton(). |