Pyrogenesis
13997
|
#include <StdSkeletons.h>
Public Member Functions | |
Skeleton () | |
Default constructor - don't use; use FindSkeleton instead. More... | |
~Skeleton () | |
int | GetBoneCount () const |
Returns the number of bones in the standard-skeleton which this current skeleton is mapped onto. More... | |
int | GetBoneID (const std::string &name) const |
Returns the ID number of the standard-skeleton bone, which corresponds to the named nonstandard-skeleton bone. More... | |
int | GetRealBoneID (const std::string &name) const |
Similar to GetBoneID, but only returns a value for the most important (first) nonstandard-skeleton bone for each standard bone; returns -1 in other cases. More... | |
Static Public Member Functions | |
static const Skeleton * | FindSkeleton (const std::string &rootBoneName) |
Tries to find a skeleton that matches the given root bone name. More... | |
static void | LoadSkeletonDataFromXml (const char *xmlData, size_t xmlLength, std::string &xmlErrors) |
Initialises the global state with skeleton data loaded from the given XML data. More... | |
Public Attributes | |
std::auto_ptr< Skeleton_impl > | m |
Private Member Functions | |
Skeleton (Skeleton &) | |
Definition at line 50 of file StdSkeletons.h.
Skeleton::Skeleton | ( | ) |
Default constructor - don't use; use FindSkeleton instead.
Definition at line 61 of file StdSkeletons.cpp.
Skeleton::~Skeleton | ( | ) |
Definition at line 62 of file StdSkeletons.cpp.
|
private |
|
static |
Tries to find a skeleton that matches the given root bone name.
Returns NULL if there is no match.
Definition at line 64 of file StdSkeletons.cpp.
int Skeleton::GetBoneCount | ( | ) | const |
Returns the number of bones in the standard-skeleton which this current skeleton is mapped onto.
Definition at line 85 of file StdSkeletons.cpp.
int Skeleton::GetBoneID | ( | const std::string & | name | ) | const |
Returns the ID number of the standard-skeleton bone, which corresponds to the named nonstandard-skeleton bone.
Returns -1 if none is found. Can return the same value for multiple bones.
Definition at line 69 of file StdSkeletons.cpp.
int Skeleton::GetRealBoneID | ( | const std::string & | name | ) | const |
Similar to GetBoneID, but only returns a value for the most important (first) nonstandard-skeleton bone for each standard bone; returns -1 in other cases.
This is necessary when deciding which nonstandard-skeleton-bone's animation should be saved. (TODO: think of a better name.)
Definition at line 77 of file StdSkeletons.cpp.
|
static |
Initialises the global state with skeleton data loaded from the given XML data.
xmlData | |
xmlLength | |
xmlErrors | output - XML parser error messages; will be non-empty on failure (and failure will always throw) |
ColladaException | on failure |
Definition at line 197 of file StdSkeletons.cpp.
std::auto_ptr<Skeleton_impl> Skeleton::m |
Definition at line 96 of file StdSkeletons.h.