#include <lib_ca.h>
Allows to access the PSD referential data and functions. Only used with a point pose in PSD Mode.
Private Member Functions | |
CAReferencePSD () | |
~CAReferencePSD () | |
Interpolation Mode | |
void | SetInterpolationMode (CAMORPH_PSDINTERPOLATION_MODE interpMode) |
CAMORPH_PSDINTERPOLATION_MODE | GetInterpolationMode () const |
User Defined Driver | |
Bool | ForceJointAsDriver (Int32 jointIndex, Bool forceDriver) |
Bool | IsJointForcedAsDriver (Int32 jointIndex) const |
void | ClearAllForcedDrivers () |
Pose Management | |
void | RestoreReferencePose () |
void | UpdateReferencePose () |
External Controllers Management | |
void | ClearAllExternalControllers () |
Int32 | GetExternalControllerCount () const |
BaseObject * | GetExternalController (Int32 controllerIndex) |
Matrix | GetExternalControllerMatrix (Int32 controllerIndex) const |
Int32 | SetExternalControllerMatrix (BaseObject *controller, const Matrix &globalMatrix) |
Bool | RemoveExternalController (Int32 controllerIndex) |
|
private |
|
private |
void SetInterpolationMode | ( | CAMORPH_PSDINTERPOLATION_MODE | interpMode | ) |
Sets the auto weighting interpolation mode.
[in] | interpMode | The interpolation mode to set: CAMORPH_PSDINTERPOLATION_MODE |
CAMORPH_PSDINTERPOLATION_MODE GetInterpolationMode | ( | ) | const |
Returns the auto weighting interpolation mode.
Forces the joint index to be a driver.
[in] | jointIndex | The weight tag joint index to use as driver. |
[in] | forceDriver | true if the joint is used as a driver, otherwise false. |
Checks if the joint index is a user forced driver.
[in] | jointIndex | The weight tag joint index. |
void ClearAllForcedDrivers | ( | ) |
Removes all user defined joint as driver and let the system manage it automatically.
void RestoreReferencePose | ( | ) |
Displays skeleton and user defined controller at the reference pose.
void UpdateReferencePose | ( | ) |
Updates the current skeleton state as the PSD reference pose.
void ClearAllExternalControllers | ( | ) |
Removes all external controllers assigned to the reference pose.
Int32 GetExternalControllerCount | ( | ) | const |
Returns the number of external controllers associated with the reference pose.
BaseObject* GetExternalController | ( | Int32 | controllerIndex | ) |
Returns the controller assigned to the given index.
[in] | controllerIndex | The controller index: 0 <= controllerIndex < GetExternalControllerCount(). |
Returns the matrix stored at the given index.
[in] | controllerIndex | The controller index: 0 <= controllerIndex < GetExternalControllerCount(). |
Int32 SetExternalControllerMatrix | ( | BaseObject * | controller, |
const Matrix & | globalMatrix | ||
) |
Adds or adjusts the given controller global matrix to be part of the reference pose.
[in] | controller | The object used as a controller. The caller owns the pointed BaseObject. |
[in] | globalMatrix | The global matrix used as a reference. |
Removes Controller at the given index.
[in] | controllerIndex | The controller index: 0 <= controllerIndex < GetExternalControllerCount(). |