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

#include <KIN_Chain.h>

Public Member Functions

 KIN_Chain ()
 
 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 getBoneRotates (int index, fpreal *r) 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 char *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
 

Static Public Member Functions

static const UT_XformOrdergetXformOrder ()
 

Detailed Description

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

Definition at line 91 of file KIN_Chain.h.

Constructor & Destructor Documentation

KIN_Chain::KIN_Chain ( )
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 110 of file KIN_Chain.h.

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

Definition at line 178 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 145 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 99 of file KIN_Chain.h.

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

Definition at line 166 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 char *  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.

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