igor::iSkeleton Class Reference

#include <iSkeleton.h>

Public Member Functions

 iSkeleton ()=default
 
virtual ~iSkeleton ()=default
 
iJointgetRootJoint () const
 
void addBone (const iaMatrixf &matrix, float64 length)
 
void push ()
 
void pop ()
 
void clear ()
 
iBonegetLastBone () const
 

Detailed Description

skeleton that contains joints and bones

Constructor & Destructor Documentation

◆ iSkeleton()

igor::iSkeleton::iSkeleton ( )
default

does nothing

◆ ~iSkeleton()

virtual igor::iSkeleton::~iSkeleton ( )
virtualdefault

does nothing

Member Function Documentation

◆ addBone()

void igor::iSkeleton::addBone ( const iaMatrixf matrix,
float64  length 
)

adds a bone at current position

Parameters
matrixthe orientation and offset of the bone
lengththe length of the bone

◆ clear()

void igor::iSkeleton::clear ( )

clears all data

◆ getLastBone()

iBone * igor::iSkeleton::getLastBone ( ) const
Returns
last created bone

◆ getRootJoint()

iJoint * igor::iSkeleton::getRootJoint ( ) const
Returns
the ID of the root joint

◆ pop()

void igor::iSkeleton::pop ( )

pops back to last pushed position in skeleton

◆ push()

void igor::iSkeleton::push ( )

pushes current position in skeleton


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