HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KIN_Chain Class Reference

#include <KIN_Chain.h>

Public Member Functions

 KIN_Chain ()
 
 KIN_Chain (int num_bones)
 
 KIN_Chain (const KIN_Chain &copy_from)
 
 ~KIN_Chain ()
 
int getNbones () const
 
void setNbones (int bones)
 
const KIN_BonegetBone (int index) const
 
void updateBone (int index, fpreal length, fpreal *rot, fpreal damp, const UT_Matrix4R &xform, const void *data)
 
void setBoneRotate (int index, int axis, fpreal r)
 
void setBoneRotates (int index, const fpreal *r)
 
void setBoneRotates (int index, const fpreal *deg, const fpreal *rads)
 
void getBoneRotates (int index, fpreal *r) const
 
void setBoneRotateMatrix (int index, const UT_Matrix3R &m)
 
const UT_Matrix3RgetBoneRotateMatrix (int index) const
 
void setConstraint (int index, fpreal rest[3], fpreal xrange[2], fpreal yrange[2], fpreal zrange[2], fpreal damp[3], fpreal roll[3])
 
fpreal constrain (int index, int axis, fpreal angle, fpreal step) const
 
void getEndPosition (UT_Vector3R &result) const
 
void getBoneStates (UT_Matrix4R *xforms) const
 
fpreal getLength () const
 
int solve (const UT_StringHolder &type, const void *parms, KIN_Chain &solution)
 
void copyFrom (const KIN_Chain &src)
 
void copySubChain (const KIN_Chain &src, int from, int to)
 
int64 getMemoryUsage (bool inclusive) const
 
void updateCurrentSolverRestChain ()
 

Static Public Member Functions

static const UT_XformOrdergetXformOrder ()
 

Detailed Description

Examples:
SOP/SOP_IKSample.C, and SOP/SOP_IKSample.h.

Definition at line 93 of file KIN_Chain.h.

Constructor & Destructor Documentation

KIN_Chain::KIN_Chain ( )
KIN_Chain::KIN_Chain ( int  num_bones)
KIN_Chain::KIN_Chain ( const KIN_Chain copy_from)
KIN_Chain::~KIN_Chain ( )

Member Function Documentation

fpreal KIN_Chain::constrain ( int  index,
int  axis,
fpreal  angle,
fpreal  step 
) const
void KIN_Chain::copyFrom ( const KIN_Chain src)
void KIN_Chain::copySubChain ( const KIN_Chain src,
int  from,
int  to 
)
const KIN_Bone& KIN_Chain::getBone ( int  index) const
inline
Examples:
SOP/SOP_IKSample.C.

Definition at line 113 of file KIN_Chain.h.

SYS_FORCE_INLINE const UT_Matrix3R & KIN_Chain::getBoneRotateMatrix ( int  index) const

Definition at line 221 of file KIN_Chain.h.

SYS_FORCE_INLINE void KIN_Chain::getBoneRotates ( int  index,
fpreal r 
) const

Definition at line 206 of file KIN_Chain.h.

void KIN_Chain::getBoneStates ( UT_Matrix4R xforms) const
void KIN_Chain::getEndPosition ( UT_Vector3R result) const
fpreal KIN_Chain::getLength ( ) const
int64 KIN_Chain::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 155 of file KIN_Chain.h.

int KIN_Chain::getNbones ( ) const
Examples:
SOP/SOP_IKSample.C.
static const UT_XformOrder& KIN_Chain::getXformOrder ( )
inlinestatic
Examples:
SOP/SOP_IKSample.C.

Definition at line 102 of file KIN_Chain.h.

void KIN_Chain::setBoneRotate ( int  index,
int  axis,
fpreal  r 
)
SYS_FORCE_INLINE void KIN_Chain::setBoneRotateMatrix ( int  index,
const UT_Matrix3R m 
)

Definition at line 213 of file KIN_Chain.h.

SYS_FORCE_INLINE void KIN_Chain::setBoneRotates ( int  index,
const fpreal r 
)

Definition at line 176 of file KIN_Chain.h.

SYS_FORCE_INLINE void KIN_Chain::setBoneRotates ( int  index,
const fpreal deg,
const fpreal rads 
)

Definition at line 191 of file KIN_Chain.h.

void KIN_Chain::setConstraint ( int  index,
fpreal  rest[3],
fpreal  xrange[2],
fpreal  yrange[2],
fpreal  zrange[2],
fpreal  damp[3],
fpreal  roll[3] 
)
void KIN_Chain::setNbones ( int  bones)
Examples:
SOP/SOP_IKSample.C.
int KIN_Chain::solve ( const UT_StringHolder type,
const void parms,
KIN_Chain solution 
)
Examples:
SOP/SOP_IKSample.C.
void KIN_Chain::updateBone ( int  index,
fpreal  length,
fpreal rot,
fpreal  damp,
const UT_Matrix4R xform,
const void data 
)
Examples:
SOP/SOP_IKSample.C.
void KIN_Chain::updateCurrentSolverRestChain ( )

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