Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

collada
Class Skeleton

   in StdSkeletons.h
   in StdSkeletons.cpp

class Skeleton


Field Summary
 std::auto_ptr< Skeleton_impl > m
          
 
Constructor Summary
private  Skeleton( Skeleton& )
          
  Skeleton()
          Default constructor - don't use; use FindSkeleton instead.
  ~Skeleton()
          
 
Method Summary
 static const Skeleton* FindSkeleton( const std::string& rootBoneName )
          Tries to find a skeleton that matches the given root bone name.
 int GetBoneCount() const
          Returns the number of bones in the standard-skeleton which this current skeleton is mapped onto.
 int GetBoneID( const std::string& name ) const
          Returns the ID number of the standard-skeleton bone, which corresponds to the named nonstandard-skeleton bone.
 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.
 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.
 

Field Detail

m

public std::auto_ptr< Skeleton_impl > m;


Constructor Detail

Skeleton

private Skeleton( Skeleton& );

Skeleton

public Skeleton();
Default constructor - don't use; use FindSkeleton instead.

~Skeleton

public ~Skeleton();


Method Detail

FindSkeleton

public static const Skeleton* FindSkeleton( const std::string& rootBoneName );
Tries to find a skeleton that matches the given root bone name. Returns NULL if there is no match.

GetBoneCount

public int GetBoneCount() const;
Returns the number of bones in the standard-skeleton which this current skeleton is mapped onto.

GetBoneID

public int 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.

GetRealBoneID

public 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. This is necessary when deciding which nonstandard-skeleton-bone's animation should be saved. (TODO: think of a better name.)

LoadSkeletonDataFromXml

public 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. Must only be called once. (TODO: stop using global state.)
Parameters:
xmlErrors - output - XML parser error messages; will be non-empty on failure (and failure will always throw)
Throws:
ColladaException - on failure

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD