Constraint class.
Definition at line 115 of file fbcharactersolver.h.
#include <fbcharactersolver.h>
Public Member Functions |
|
FBCharacterSolver (char *pName, HIObject pObject=NULL) | |
Constructor. |
|
IObject_Declare (Implementation) | |
HFBEvaluateInfo | BackgroundEvaluateInfo (HFBEvaluateInfo pSourceEvaluateInfo) |
void | ResetConnectorSetup () |
virtual FBCharacterManipulatorCtrlSet * |
CreateCharacterManipulatorCtrlSet (char *pName) |
virtual double | GetCharacterSolverVersion () |
Version of the solver. Needs to be
overloaded in derived class. |
|
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. |
FBCharacterSolver | ( | char * | pName, |
HIObject | pObject =
NULL |
||
) |
Constructor.
pName | Name of constraint. |
pObject | For internal use only (default is NULL). |
IObject_Declare | ( | Implementation | ) |
Reimplemented from FBConstraint.
HFBEvaluateInfo BackgroundEvaluateInfo | ( | HFBEvaluateInfo | pSourceEvaluateInfo | ) |
void ResetConnectorSetup | ( | ) |
virtual FBCharacterManipulatorCtrlSet* CreateCharacterManipulatorCtrlSet | ( | char * | pName | ) | [virtual] |
virtual double GetCharacterSolverVersion | ( | ) | [inline, virtual] |
Version of the solver. Needs to be overloaded in derived class.
Definition at line 139 of file fbcharactersolver.h.
{ return 1.0; };
virtual int GetExtraFKCount | ( | ) | [inline, virtual] |
Return number of extra FK model (ex.
extra shoulder)
Definition at line 144 of file fbcharactersolver.h.
{ return 0; }
virtual const char* GetExtraFKNameAt | ( | int | pIndex | ) | [inline, virtual] |
Return the specified extra FK Name (ex.
extra shoulder)
pIndex | Index of extra FK to get. |
Definition at line 149 of file fbcharactersolver.h.
{ return NULL; }
virtual FBBodyPartId GetExtraFKBodyPartAt | ( | int | pIndex | ) | [inline, virtual] |
Return The specified extra FK BodyPart (ex.
Left Arm )
pIndex | Index of extra Bone to get. |
Definition at line 154 of file fbcharactersolver.h.
{ return kFBCtrlSetPartNone; }
virtual int GetExtraBoneCount | ( | ) | [inline, virtual] |
Return number of extra Bone model (ex.
extra shoulder)
Definition at line 158 of file fbcharactersolver.h.
{ return 0; }
virtual const char* GetExtraBoneNameAt | ( | int | pIndex | ) | [inline, virtual] |
Return The specified extra Bone name (ex.
extra shoulder)
pIndex | Index of extra Bone to get. |
Definition at line 163 of file fbcharactersolver.h.
{ return NULL; }
virtual FBBodyPartId GetExtraBoneBodyPartAt | ( | int | pIndex | ) | [inline, virtual] |
Return The specified extra Bone BodyPart (ex.
Left Arm )
pIndex | Index of extra Bone to get. |
Definition at line 168 of file fbcharactersolver.h.
{ return kFBCtrlSetPartNone; }
FBModel* GetExtraBoneModelAt | ( | int | pIndex | ) |
Return The specified extra Bone model (ex.
extra shoulder)
pIndex | Index of extra Bone to get. |
FBModelMarker* GetExtraFKModelAt | ( | int | pIndex | ) |
Return the specified extra FK model (ex.
extra shoulder)
pIndex | Index of extra FK to get. |
void SetExtraBoneModelAt | ( | FBModel * | pModel, |
int | pIndex | ||
) |
Set the specified extra Bone model for a specified Extra Bone Index.
(ex. extra shoulder)
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)
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)
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)
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.
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.
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.
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 233 of file fbcharactersolver.h.
{}
int mEvaluationId |
FBPropertyCharacter TargetCharacter |
Read Write Property: The character being constrained.
Definition at line 130 of file fbcharactersolver.h.
Read Write Property: Source character when doing a character retarget.
Definition at line 131 of file fbcharactersolver.h.