XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSkeleton Class Reference

The skeleton class encapsulates the information about the joint structure for a model. More...

#include <Skeleton.h>

Public Member Functions

 xiiSkeleton (xiiSkeleton &&rhs)
 
void operator= (xiiSkeleton &&rhs)
 
xiiUInt16 GetJointCount () const
 Returns the number of joints in the skeleton.
 
const xiiSkeletonJointGetJointByIndex (xiiUInt16 uiIndex) const
 Returns the nth joint.
 
xiiUInt16 FindJointByName (const xiiTempHashedString &sName) const
 Allows to find a specific joint in the skeleton by name. Returns xiiInvalidJointIndex if not found.
 
void Save (xiiStreamWriter &inout_stream) const
 Checks if two skeletons are compatible (same joint count and hierarchy)
 
void Load (xiiStreamReader &inout_stream)
 Loads the skeleton from the given stream.
 
bool IsJointDescendantOf (xiiUInt16 uiJoint, xiiUInt16 uiExpectedParent) const
 
const ozz::animation::Skeleton & GetOzzSkeleton () const
 
xiiUInt64 GetHeapMemoryUsage () const
 

Public Attributes

xiiEnum< xiiBasisAxism_BoneDirection
 The direction in which the bones shall point for visualization.
 

Protected Attributes

friend xiiSkeletonBuilder
 
xiiDynamicArray< xiiSkeletonJointm_Joints
 
xiiUniquePtr< ozz::animation::Skeleton > m_pOzzSkeleton
 

Detailed Description

The skeleton class encapsulates the information about the joint structure for a model.

Member Function Documentation

◆ Save()

void xiiSkeleton::Save ( xiiStreamWriter & inout_stream) const

Checks if two skeletons are compatible (same joint count and hierarchy)

Saves the skeleton in a given stream.


The documentation for this class was generated from the following files: