FBCharacterSolver Class Reference

#include <fbcharactersolver.h>
FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver FBCharacterSolver
Inheritance diagram for FBCharacterSolver:
Inheritance graph
[legend]

List of all members.


Detailed Description

Constraint class.

Definition at line 116 of file fbcharactersolver.h.


Public Member Functions

  FBCharacterSolver (char *pName, HIObject pObject=NULL)
  Constructor.
virtual int  GetExtraFKCount ()
  Return number of extra FK model (ex.
virtual const char *  GetExtraFKNameAt (int pIndex)
  Return the specified extra FK Name (ex.
virtual FBBodyPartId  GetExtraFKBodyPartAt (int pIndex)
  Return The specified extra FK BodyPart (ex.
virtual int  GetExtraBoneCount ()
  Return number of extra Bone model (ex.
virtual const char *  GetExtraBoneNameAt (int pIndex)
  Return The specified extra Bone name (ex.
virtual FBBodyPartId  GetExtraBoneBodyPartAt (int pIndex)
  Return The specified extra Bone BodyPart (ex.
FBModel GetExtraBoneModelAt (int pIndex)
  Return The specified extra Bone model (ex.
FBModelMarker GetExtraFKModelAt (int pIndex)
  Return the specified extra FK model (ex.
void  SetExtraBoneModelAt (FBModel *pModel, int pIndex)
  Set the specified extra Bone model for a specified Extra Bone Index.
void  SetExtraFKModelAt (FBModelMarker *pModel, int pIndex)
  Set the specified extra FK model for a specified Extra FK Index (ex.
void  ExtractOffsets ()
  Extract Transforms Of Extra Bones for character stance pose information.
void  GetTransformOffset (FBVector3d &pT, FBRVector &pR, FBSVector &pS, int pIndex)
  Get the transform of the Given Extra Bone Index.
void  SetTransformOffset (FBVector3d &pT, FBRVector &pR, FBSVector &pS, int pIndex)
  Set the transform of the Given Extra Bone Index.
void  GetParentRotationOffset (FBRVector &pR, int pIndex)
  Get the Parent Rotation Offset of the Given Extra Bone Index.
void  SetParentRotationOffset (FBRVector &pR, int pIndex)
  Set the Parent Rotation Offset of the Given Extra Bone Index.
virtual void  CharacterPasteState (FBCharacter *pFromCharacter, FBCharacterPose *pPose, FBCharacterPoseOptions &pCharacterPoseOptions)
  Paste the state of a character on another one.

Public Attributes

int  mEvaluationId
  Last Evaluation Id.
FBPropertyCharacter  TargetCharacter
  Read Write Property: The character being constrained.
FBPropertyComponent  Source
  Read Write Property: Source character when doing a character retarget.

Constructor & Destructor Documentation

FBCharacterSolver ( char *  pName,
HIObject  pObject = NULL  
)

Constructor.

Parameters:
pName  Name of constraint.
pObject  For internal use only (default is NULL).

Member Function Documentation

virtual int GetExtraFKCount (  )  [inline, virtual]

Return number of extra FK model (ex.

extra shoulder)

Returns:
number of extra FK.

Definition at line 139 of file fbcharactersolver.h.

virtual const char* GetExtraFKNameAt ( int  pIndex  )  [inline, virtual]

Return the specified extra FK Name (ex.

extra shoulder)

Parameters:
pIndex  Index of extra FK to get.
Returns:
Name corresponding to FK index.

Definition at line 144 of file fbcharactersolver.h.

virtual FBBodyPartId GetExtraFKBodyPartAt ( int  pIndex  )  [inline, virtual]

Return The specified extra FK BodyPart (ex.

Left Arm )

Parameters:
pIndex  Index of extra Bone to get.
Returns:
BodyPart associated with this model.

Definition at line 149 of file fbcharactersolver.h.

References kFBCtrlSetPartNone.

virtual int GetExtraBoneCount (  )  [inline, virtual]

Return number of extra Bone model (ex.

extra shoulder)

Returns:
number of extra Bone.

Definition at line 153 of file fbcharactersolver.h.

virtual const char* GetExtraBoneNameAt ( int  pIndex  )  [inline, virtual]

Return The specified extra Bone name (ex.

extra shoulder)

Parameters:
pIndex  Index of extra Bone to get.
Returns:
Name corresponding to Bone index.

Definition at line 158 of file fbcharactersolver.h.

virtual FBBodyPartId GetExtraBoneBodyPartAt ( int  pIndex  )  [inline, virtual]

Return The specified extra Bone BodyPart (ex.

Left Arm )

Parameters:
pIndex  Index of extra Bone to get.
Returns:
BodyPart associated with this model.

Definition at line 163 of file fbcharactersolver.h.

References kFBCtrlSetPartNone.

FBModel* GetExtraBoneModelAt ( int  pIndex  ) 

Return The specified extra Bone model (ex.

extra shoulder)

Parameters:
pIndex  Index of extra Bone to get.
Returns:
FBModel corresponding to Bone index.

FBModelMarker* GetExtraFKModelAt ( int  pIndex  ) 

Return the specified extra FK model (ex.

extra shoulder)

Parameters:
pIndex  Index of extra FK to get.
Returns:
FBModel corresponding to FK index.

void SetExtraBoneModelAt ( FBModel pModel,
int  pIndex  
)

Set the specified extra Bone model for a specified Extra Bone Index.

(ex. extra shoulder)

Parameters:
pModel  Extra Bone Model used for characterization.
pIndex  Index of extra Bone to set.

void SetExtraFKModelAt ( FBModelMarker pModel,
int  pIndex  
)

Set the specified extra FK model for a specified Extra FK Index (ex.

extra shoulder)

Parameters:
pModel  Extra FK Model used for character Rig
pIndex  Index of extra FK to set.

void ExtractOffsets (  ) 

Extract Transforms Of Extra Bones for character stance pose information.

void GetTransformOffset ( FBVector3d pT,
FBRVector pR,
FBSVector pS,
int  pIndex  
)

Get the transform of the Given Extra Bone Index.

The transorm is the Global Transform extracted at Characterisation (in Stance Pose)

Parameters:
pT  return Global Translation in Stance Pose.
pR  return Global Rotation in Stance Pose.
pS  return Global Scaling in Stance Pose.
pIndex  Index of extra Bone to get.

void SetTransformOffset ( FBVector3d pT,
FBRVector pR,
FBSVector pS,
int  pIndex  
)

Set the transform of the Given Extra Bone Index.

The transorm is the Global Transform extracted at Characterisation (in Stance Pose)

Parameters:
pT  Global Translation to set for the Stance Pose.
pR  Global Rotation to set for the Stance Pose.
pS  Global Scaling to set for the Stance Pose.
pIndex  Index of extra Bone to set.

void GetParentRotationOffset ( FBRVector pR,
int  pIndex  
)

Get the Parent Rotation Offset of the Given Extra Bone Index.

The rotation Offset if extracted at Characterisation (in Stance Pose). You don't need this value if the parent of the bone is characterized too.

Parameters:
pR  Offset Rotation between the Bone and is parent at Stance Pose.
pIndex  Index of extra Bone to get.

void SetParentRotationOffset ( FBRVector pR,
int  pIndex  
)

Set the Parent Rotation Offset of the Given Extra Bone Index.

The rotation Offset if extracted at Characterisation (in Stance Pose). You don't need this value if the parent of the bone is characterized too.

Parameters:
pR  Offset Rotation between the Bone and is parent at Stance Pose.
pIndex  Index of extra Bone to get.

virtual void CharacterPasteState ( FBCharacter pFromCharacter,
FBCharacterPose pPose,
FBCharacterPoseOptions pCharacterPoseOptions  
) [inline, virtual]

Paste the state of a character on another one.

Parameters:
pFromCharacter  Character with the state that we want to paste.
pPose  Pose object containing the pose.
pCharacterPoseOptions  Pose options to use with this paste.

Definition at line 228 of file fbcharactersolver.h.


Member Data Documentation

int mEvaluationId

Last Evaluation Id.

Definition at line 130 of file fbcharactersolver.h.

FBPropertyCharacter TargetCharacter

Read Write Property: The character being constrained.

Definition at line 131 of file fbcharactersolver.h.

FBPropertyComponent Source

Read Write Property: Source character when doing a character retarget.

Definition at line 132 of file fbcharactersolver.h.


Please send us your comments about this page.