FBCharacterPose Class Reference
 
 
 
FBCharacterPose Class Reference

This reference page is linked to from the following overview topics: FBPose - Poses.


#include <fbcharacterpose.h>


Class Description

Used to work with character poses.

This class exposes the object used to store the pose of objects.

Definition at line 179 of file fbcharacterpose.h.

Inheritance diagram for FBCharacterPose:
FBPose FBComponent FBPlug FBWrapperHolder

Public Member Functions

  FBCharacterPose (const char *pName, HIObject pObject=NULL)
  Public constructor.
void  ClearPose ()
  Clear all the data of the pose.
void  ClearCharacterPose ()
  Clear only the pose of the character (omit the extensions).
void  ClearCharacterExtensionsPose ()
  Clear only the pose of the character extensions (omit the character).
void  CopyPose (FBCharacter &pCharacter)
  Copy the pose of a character and its extensions.
void  CopyPoseCharacter (FBCharacter &pCharacter)
  Copy the pose of only the character (omit the extensions).
void  CopyPoseCharacterExtensions (FBCharacter &pCharacter)
  Copy the pose of only the character extensions (omit the character).
void  CopyPoseCharacterExtension (FBCharacterExtension &pCharacterExtension)
  Copy the pose of a single character extension.
void  PastePose (FBCharacter &pCharacter, FBCharacterPoseOptions &pCharacterPoseOptions)
  Paste the pose of a character and its extensions.
void  PastePoseCharacter (FBCharacter &pCharacter, FBCharacterPoseOptions &pCharacterPoseOptions)
  Paste the pose of only the character (omit the extensions).
void  PastePoseCharacterExtensions (FBCharacter &pCharacter, FBCharacterPoseOptions &pCharacterPoseOptions)
  Paste the pose of only the character extensions (omit the character).
void  PastePoseCharacterExtension (FBCharacterExtension &pCharacterExtension, FBCharacterPoseOptions &pCharacterPoseOptions)
  Paste the pose of a single character extension.
bool  IsCharacterPoseStored ()
  Is the pose of the character stored in the pose?
bool  IsCharacterExtensionPoseStored (const char *pCharacterExtensionName)
  Is the pose of the character extension stored in the pose?
void  CopyFrom (FBCharacterPose &pFromPose)
  Copy everything from a given object.
void  CopyPoseDataFrom (FBCharacterPose &pFromPose)
  Copy all the pose data from a given pose.
void  CopyPoseCharacterFrom (FBCharacterPose &pFromPose)
  Copy the pose data of only the character from a given pose.
void  CopyPoseCharacterExtensionsFrom (FBCharacterPose &pFromPose)
  Copy the pose data of only the character extensions from a given pose.
int  GetCharacterExtensionPoseCount ()
  Get the number of character extension stored in the pose.
FBObjectPose GetCharacterExtensionPoseAt (int pIndex)
  Get the pose of a character extension.
FBObjectPose GetCharacterExtensionPose (const char *pCharacterExtensionName)
  Get the pose of a character extension.
FBObjectPose GetOrCreateCharacterExtensionPose (const char *pCharacterExtensionName)
  Get the pose of a character extension and create it if necessary.
void  RemoveCharacterExtensionPoseAt (int pIndex)
  Remove the pose of a character extension.
void  RemoveCharacterExtensionPose (const char *pCharacterExtensionName)
  Remove the pose of a character extension.
FBString  GetCharacterExtensionNameFromPose (FBObjectPose &pCharacterExtensionPose)
  Get the name of the character extension for the specified pose.
void  GetMirrorPlaneEquation (FBVector4< double > &pMirrorPlaneEquation, FBCharacter &pCharacter, FBCharacterPoseOptions &pCharacterPoseOptions)
  Get the mirror plane equation that would be used to mirror according to the CharacterPoseOptions.
void  GetMirrorPlaneEquation (FBMatrix &pMirrorPlaneEquation, FBCharacter &pCharacter, FBCharacterPoseOptions &pCharacterPoseOptions)
  Get the mirror plane equation that would be used to mirror according to the CharacterPoseOptions.
int  GetExtraBoneCount ()
  Get the number of extra bones contained in the character pose.
FBModel GetExtraBoneModelAt (int pIndex)
  Get the extra bone model at the specified index.
void  GetExtraBoneTransformOffset (FBVector3d &pT, FBVector3d &pR, FBVector3d &pS, int pIndex)
  Get the extra bone transformation offset.
void  GetExtraBoneTransform (FBVector3d &pT, FBVector3d &pR, FBVector3d &pS, int pIndex)
  Get the extra bone transformation.
void  GetExtraBoneParentRotationOffset (FBRVector &pR, int pIndex)
  Get the extra bone transformation offset.
void  ApplyPoseCandidate ()
  After setting the candidate on the skeleton node, calling this function will allow subsequent call to get the TRS value of a skeleton node to return the candidate value.
  IQuery_Declare (K_IMPLEMENTATION)
int  GetNodeCount ()
  Returns the number of pose nodes stored.
int  AddNode (FBModel *pObject, FBMatrix *pMatrix=NULL, bool pIsLocalMatrix=false)
  Add a new pose node.
void  RemoveNode (int pIndex)
  Remove the pose node at specified index.
void  SetNodeObject (int pIndex, FBModel *pObject)
  Set the pose node object.
FBModel GetNodeObject (int pIndex)
  Get the pose node object.
FBString  GetNodeName (int pIndex) const
  Get the pose node at specified index.
void  SetNodeMatrix (int pIndex, FBMatrix *pMatrix)
  Set the pose node matrix.
FBMatrix  GetNodeMatrix (int pIndex) const
  Get the pose node matrix.
FBMatrix  GetNodeMatrixGlobal (int pIndex) const
  Get the global pose node matrix.
void  SetIsNodeLocalMatrix (int pIndex, bool pIsNodeLocalMatrix)
  Set the type of the Matrix for a given node.
bool  IsNodeLocalMatrix (int pIndex)
  Get the type of the Matrix for a given node.
int  Find (FBString pNodeName)
  Look in this pose if the given node is present.
virtual bool  FBCreate ()
  Open Reality Creation function.
virtual void  FBDestroy ()
  Open Reality destruction function.
virtual void  FBDelete () override
  Open Reality deletion function.
virtual bool  SetHIObject (HIObject pObject, bool pSDKComponent) override
  Assign component to an internal pointer.
virtual int  PropertyAdd (FBProperty *pProperty)
  Add a property to the component's property manager.
bool  PropertyAddReferenceProperty (FBProperty *pReferenceProperty)
  Add a reference property to the component's property manager.
void  PropertyRemove (FBProperty *pProperty)
  Remove a Property from the component's Property manager.
void  PropertyGetModifiedList (FBArrayTemplate< FBProperty * > &pPropList, FBPlugModificationFlag pModificationFlags)
  Get list of properties which have been modified since last loading.
FBProperty PropertyCreate (const char *pName, FBPropertyType pType, const char *pDataType, bool pAnimatable, bool pIsUser=false, FBProperty *pReferenceSource=NULL)
  Create user or dynamic property.
FBObjectFlag  GetObjectFlags ()
  Get all Object Flags (concatenated).
void  SetObjectFlags (FBObjectFlag pFlags)
  SetObjectFlags.
bool  HasObjectFlags (FBObjectFlag pFlags)
  Check whether a specific object flag is enabled.
void  EnableObjectFlags (FBObjectFlag pFlags)
  Enable a specific Object Flags.
void  DisableObjectFlags (FBObjectFlag pFlags)
  Disable a specific Object Flags.
void  SetObjectStatus (FBObjectStatus pStatus, bool pValue)
  Enable/Disable a specific Object Status.
bool  GetObjectStatus (FBObjectStatus pStatus)
  Check to see if an object status is enabled.
bool  ProcessNamespaceHierarchy (FBNamespaceAction pNamespaceAction, const char *pNamespaceName, const char *pReplaceTo=NULL, bool pAddRight=true)
  ProcessNamespaceHierarchy.
bool  ProcessObjectNamespace (FBNamespaceAction pNamespaceAction, const char *pNamespaceName, const char *pReplaceTo=NULL, bool pAddRight=true)
  ProcessObjectNamespace.
virtual const char *  ClassName () override
  Get the class name.
virtual bool  UseCustomPropertyViewSet () const
  Use the custom property viewSet or not.
const char *  GetFullName (void)
  Get the full name.
void  SetOwnerNamespace (FBNamespace *pOwnerNSObj)
  Set the owner Namespace object.
FBNamespace GetOwnerNamespace (void)
  Get the owner Namespace object.
FBFileReference GetOwnerFileReference (void)
  Get the owner FileReference object.
void  HardSelect ()
  HardSelect.
  IObject_Declare (K_IMPLEMENTATION)
  ICallback_Declare (K_IMPLEMENTATION)
virtual bool  Is (int pTypeId)
  Returns true if object is of type TypeId.
virtual int  GetTypeId ()
  GetTypeId( int pTypeId )
void  KObjectEvent (HIRegister pView, HKEventBase pEvent)
virtual HIObject  GetHIObject () const
  Return an internal pointer.
bool  IsSDKComponent ()
  Return whether or not item is an SDK component.
bool  ConnectSrc (FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone)
  Add a source connection.
bool  ConnectDst (FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone)
  Add a destination connection.
bool  ConnectSrcAt (int pDst_SrcIndex, FBPlug *pSrc, FBConnectionType pConnectionType=kFBConnectionTypeNone)
  Add a source connection.
bool  ConnectDstAt (int pSrc_DstIndex, FBPlug *pDst, FBConnectionType pConnectionType=kFBConnectionTypeNone)
  Add a destination connection.
bool  DisconnectDst (FBPlug *pDst)
  Remove a destination connection.
bool  DisconnectSrc (FBPlug *pSrc)
  Remove a source connection.
void  DisconnectAllSrc ()
  Remove all source connections.
void  DisconnectAllDst ()
  Remove all destination connections.
bool  DisconnectDstAt (int pIndex)
  Remove a destination connection at a specified index.
bool  DisconnectSrcAt (int pIndex)
  Remove a source connection at a specified index.
bool  ReplaceDstAt (int pIndex, FBPlug *pDst)
  Replace a destination connection at a specified index.
bool  ReplaceSrcAt (int pIndex, FBPlug *pSrc)
  Replace a source connection at a specified index.
bool  SwapSrc (int pIndexA, int pIndexB)
  Swap source connection at index A with source connection at index B.
bool  MoveSrcAt (int pIndex, int pAtIndex)
  Move source connection at pIndex to pAtIndex.
bool  MoveSrcAt (FBPlug *pSrc, FBPlug *pAtSrc)
  Move source connection pSrc to the position of pAtSrc.
int  GetSrcCount ()
  Get source connection count.
FBPlug GetSrc (int pIndex)
  Get a source connection's plug at specified index.
FBConnectionType  GetSrcType (int pIndex)
  Get a source connection's type at specified index.
int  GetDstCount ()
  Get destination connection count.
FBPlug GetDst (int pIndex)
  Get a destination connection's plug at specified index.
FBConnectionType  GetDstType (int pIndex)
  Get a destination connection's type at specified index.
bool  BeginChange ()
  Begins a change on multiple plugs.
void  EndChange ()
  Ends a change on multiple plugs.
void  SetSelfModified (FBPlugModificationFlag pFlag, bool pBool)
  Set the plug's self modification flag.
bool  GetSelfModified (FBPlugModificationFlag pFlag)
  Tell if the plug's self has changed.
void  SetContentModified (FBPlugModificationFlag pFlag, bool pBool)
  Set the plug's owned property/object's modification flag.
bool  GetContentModified (FBPlugModificationFlag pFlag)
  Tell if the plug's content has changed.
int  GetPlugConnectionModifiedList (FBPlugList &pPlugList, FBPlugModificationFlag pConnectionModificatonFlag, bool pAddRemove)
  Get plug's modified src/dst property/object connection added/removed List.
bool  RevertModification (FBPlugModificationFlag pFlag=kFBAllModifiedMask)
  Revert the plug's modification to original status.
void  SetStatusFlag (FBPlugStatusFlag pStatus, bool pValue)
  Set the plug's status flag.
bool  GetStatusFlag (FBPlugStatusFlag pStatus) const
  Tell if the plug's status has changed.
FBPlug GetOwner ()
  Get the owner of this plug.
FBPlug GetOwned (int pIndex)
  Get the owned plug at specified index.
int  GetOwnedCount ()
  Get the owned plug count.
virtual bool  PlugDataNotify (FBConnectionAction pAction, FBPlug *pThis, void *pData=NULL, void *pDataOld=NULL, int pDataSize=0)
  PlugDataNotify when overloaded is equivalent of FBSystem.OnConnectionDataNotify but in the context of the derived object only.
virtual bool  PlugStateNotify (FBConnectionAction pAction, FBPlug *pThis, void *pData=NULL, void *pDataOld=NULL, int pDataSize=0)
  PlugStateNotify when overloaded is equivalent of FBSystem.OnConnectionStateNotify but in the context of the derived object only.
virtual bool  PlugNotify (FBConnectionAction pAction, FBPlug *pThis, int pIndex, FBPlug *pPlug=NULL, FBConnectionType pConnectionType=kFBConnectionTypeNone, FBPlug *pNewPlug=NULL)
  PlugNotify when overloaded is equivalent of FBSystem.OnConnectionNotify but in the context of the derived object only.
FBScriptWrapper GetWrapper ()
  Return the wrapper interface of this FBObject.
void  AddWrapper (FBScriptWrapper *)
void  RemoveWrapper (FBScriptWrapper *)
void *  operator new (size_t stAllocateBlock)
void *  operator new (size_t stAllocateBlock, int blockType, const char *filename, int linenumber)
void  operator delete (void *pvMem)
void  RegisterPropertyEvent (FBPropertyEvent *pPropertyEvent)
void  UnregisterPropertyEvent (FBPropertyEvent *pPropertyEvent)
void  InvalidatePropertyEventsParents ()

Static Public Member Functions

static int  GetInternalClassId ()
static void  FBComponentSetName (FBComponent *pObject, const char *pName)
static const char *  FBComponentGetName (FBComponent *pObject)
static void  FBComponentSetLongName (FBComponent *pObject, const char *pName)
static const char *  FBComponentGetLongName (FBComponent *pObject)
static void  PrintClassDefinitions ()
  Print out internal Class (ID) Definition table.

Public Attributes

FBPropertyPoseType  Type
  Read Only Property: Type of the pose (bind pose or rest pose)
DataFBComponent *  mLocalPtr
  Handle on DataFBComponent.
FBPropertyManager  PropertyList
  Read Only Property: Manages all of the properties for the component.
FBPropertyListComponent  Components
  List: List of components.
FBPropertyListComponent  Parents
  List: Parents.
FBPropertyBool  Selected
  Read Write Property: Selected property.
FBPropertyString  Name
  Read Write Property: Unique name of object.
FBPropertyString  LongName
  Read Write Property: Name and namespace for object.
FBPropertyFolder  Folder
  Read Write Property: The folder that contain this component.
KObject *  mDummyObject
  Internal Dummy Object for non KObject Components.
bool  mAllocated
  Contain the Allocation State of the Component.

Static Public Attributes

static int  TypeInfo
  Contains the Type information of the object.
static const char *  ClassGroupName
  ClassGroupName of the object.

Protected Attributes

FBString  mName
  Name of the component.
HIObject  mObject
  Handle on the Plug.
bool  mSDKComponent
  bool Plug is an SDK component.

Static Protected Attributes

static int  mGlobalTypeInfo
  Represente the Type Index.

Friends

K_DLLIMPORT friend int  __FBRegisterTypeInfo (int pInternalClassId)
  __FBRegisterTypeInfo For internal use only, Register the TypeInfo mapped to internal class id.

Constructor & Destructor Documentation

FBCharacterPose::FBCharacterPose ( const char *  pName,
HIObject  pObject = NULL 
)

Public constructor.

This constructor is used to create a new object.

Parameters:
pName Object name.
pObject For internal use only.

Member Function Documentation

void FBCharacterPose::ClearPose ( )

Clear all the data of the pose.

void FBCharacterPose::ClearCharacterPose ( )

Clear only the pose of the character (omit the extensions).

void FBCharacterPose::ClearCharacterExtensionsPose ( )

Clear only the pose of the character extensions (omit the character).

void FBCharacterPose::CopyPose ( FBCharacter pCharacter )

Copy the pose of a character and its extensions.

Parameters:
pCharacter Character to copy the pose from.
void FBCharacterPose::CopyPoseCharacter ( FBCharacter pCharacter )

Copy the pose of only the character (omit the extensions).

Parameters:
pCharacter Character to copy the pose from.
void FBCharacterPose::CopyPoseCharacterExtensions ( FBCharacter pCharacter )

Copy the pose of only the character extensions (omit the character).

Parameters:
pCharacter Character to copy the pose of the extensions from.
void FBCharacterPose::CopyPoseCharacterExtension ( FBCharacterExtension pCharacterExtension )

Copy the pose of a single character extension.

Parameters:
pCharacterExtension Character extension to copy the pose from.
void FBCharacterPose::PastePose ( FBCharacter pCharacter,
FBCharacterPoseOptions pCharacterPoseOptions 
)

Paste the pose of a character and its extensions.

Remarks:
Supports the match and mirror options.
When pasting in body part, the selected parts and extensions of the character will be pasted.
Parameters:
pCharacter Character to paste the pose to.
pCharacterPoseOptions Options used to specify how to paste.
void FBCharacterPose::PastePoseCharacter ( FBCharacter pCharacter,
FBCharacterPoseOptions pCharacterPoseOptions 
)

Paste the pose of only the character (omit the extensions).

Remarks:
Does not support the match and mirror options.
Parameters:
pCharacter Character to paste the pose to.
pCharacterPoseOptions Options used to specify how to paste.
void FBCharacterPose::PastePoseCharacterExtensions ( FBCharacter pCharacter,
FBCharacterPoseOptions pCharacterPoseOptions 
)

Paste the pose of only the character extensions (omit the character).

Remarks:
Does not support the match and mirror options.
Parameters:
pCharacter Character to paste the pose of the extensions to.
pCharacterPoseOptions Options used to specify how to paste.
void FBCharacterPose::PastePoseCharacterExtension ( FBCharacterExtension pCharacterExtension,
FBCharacterPoseOptions pCharacterPoseOptions 
)

Paste the pose of a single character extension.

Remarks:
Does not support the match and mirror options.
Parameters:
pCharacterExtension Character extension to paste the pose to.
pCharacterPoseOptions Options used to specify how to paste.
bool FBCharacterPose::IsCharacterPoseStored ( )

Is the pose of the character stored in the pose?

Returns:
true if the pose of the character stored in the pose.
bool FBCharacterPose::IsCharacterExtensionPoseStored ( const char *  pCharacterExtensionName )

Is the pose of the character extension stored in the pose?

Parameters:
pCharacterExtensionName Name of the character extension.
Returns:
true if the pose of the character extension stored in the pose.
void FBCharacterPose::CopyFrom ( FBCharacterPose pFromPose )

Copy everything from a given object.

Remarks:
Will copy everything, including the object name, properties, data etc. Objects will be identical.
Parameters:
pFromPose Pose from which to copy.
void FBCharacterPose::CopyPoseDataFrom ( FBCharacterPose pFromPose )

Copy all the pose data from a given pose.

Remarks:
Will copy all the data of the pose.
Parameters:
pFromPose Pose from which to copy the data.
void FBCharacterPose::CopyPoseCharacterFrom ( FBCharacterPose pFromPose )

Copy the pose data of only the character from a given pose.

Parameters:
pFromPose Pose from which to copy the data.
void FBCharacterPose::CopyPoseCharacterExtensionsFrom ( FBCharacterPose pFromPose )

Copy the pose data of only the character extensions from a given pose.

Parameters:
pFromPose Pose from which to copy the data.
int FBCharacterPose::GetCharacterExtensionPoseCount ( )

Get the number of character extension stored in the pose.

Returns:
Number of character extension stored in the pose.
FBObjectPose* FBCharacterPose::GetCharacterExtensionPoseAt ( int  pIndex )

Get the pose of a character extension.

Parameters:
pIndex Index of the character extension pose to get.
Returns:
The pose of the character extension.
FBObjectPose* FBCharacterPose::GetCharacterExtensionPose ( const char *  pCharacterExtensionName )

Get the pose of a character extension.

Parameters:
pCharacterExtensionName Name of the character extension pose to get (It is the label name of the character extension).
Returns:
The pose of the character extension, NULL if not found.
FBObjectPose* FBCharacterPose::GetOrCreateCharacterExtensionPose ( const char *  pCharacterExtensionName )

Get the pose of a character extension and create it if necessary.

Remarks:
Use this function to manually add a pose of a character extension.
Parameters:
pCharacterExtensionName Name of the character extension pose to get (It is the label name of the character extension).
Returns:
The pose of the character extension.
void FBCharacterPose::RemoveCharacterExtensionPoseAt ( int  pIndex )

Remove the pose of a character extension.

Parameters:
pIndex Index of the character extension pose to remove.
void FBCharacterPose::RemoveCharacterExtensionPose ( const char *  pCharacterExtensionName )

Remove the pose of a character extension.

Parameters:
pCharacterExtensionName Name of the character extension pose to remove (It is the label name of the character extension).
FBString FBCharacterPose::GetCharacterExtensionNameFromPose ( FBObjectPose pCharacterExtensionPose )

Get the name of the character extension for the specified pose.

Parameters:
pCharacterExtensionPose Pose of a character extension to check its name.
Returns:
The name of the character extension (It is the label name of the character extension).
void FBCharacterPose::GetMirrorPlaneEquation ( FBVector4< double > &  pMirrorPlaneEquation,
FBCharacter pCharacter,
FBCharacterPoseOptions pCharacterPoseOptions 
)

Get the mirror plane equation that would be used to mirror according to the CharacterPoseOptions.

Parameters:
pMirrorPlaneEquation Out: Mirror plane equation.
pCharacter Character to receive the pose.
pCharacterPoseOptions Options used to paste the pose.
void FBCharacterPose::GetMirrorPlaneEquation ( FBMatrix pMirrorPlaneEquation,
FBCharacter pCharacter,
FBCharacterPoseOptions pCharacterPoseOptions 
)

Get the mirror plane equation that would be used to mirror according to the CharacterPoseOptions.

Parameters:
pMirrorPlaneEquation Out: Mirror plane equation.
pCharacter Character to receive the pose.
pCharacterPoseOptions Options used to paste the pose.
int FBCharacterPose::GetExtraBoneCount ( )

Get the number of extra bones contained in the character pose.

Returns:
The number of extra bones contained in the character pose.
FBModel* FBCharacterPose::GetExtraBoneModelAt ( int  pIndex )

Get the extra bone model at the specified index.

Parameters:
pIndex Index of the extra bone to get.
Returns:
The extra bone model if the index was valid, otherwise, null is returned.
void FBCharacterPose::GetExtraBoneTransformOffset ( FBVector3d pT,
FBVector3d pR,
FBVector3d pS,
int  pIndex 
)

Get the extra bone transformation offset.

Parameters:
pT A vector that will contains the translation offset value on return.
pR A vector that will contains the rotation offset value on return.
pS A vector that will contains the scale offset value on return.
pIndex Index of the extra bone to get.
void FBCharacterPose::GetExtraBoneTransform ( FBVector3d pT,
FBVector3d pR,
FBVector3d pS,
int  pIndex 
)

Get the extra bone transformation.

Parameters:
pT A vector that will contains the translation value on return.
pR A vector that will contains the rotation value on return.
pS A vector that will contains the scale value on return.
pIndex Index of the extra bone to get.
void FBCharacterPose::GetExtraBoneParentRotationOffset ( FBRVector pR,
int  pIndex 
)

Get the extra bone transformation offset.

Parameters:
pR A vector that will contains the parent rotation offset value on return.
pIndex Index of the extra bone to get.
void FBCharacterPose::ApplyPoseCandidate ( )

After setting the candidate on the skeleton node, calling this function will allow subsequent call to get the TRS value of a skeleton node to return the candidate value.

FBPose::IQuery_Declare ( K_IMPLEMENTATION  ) [inherited]
int FBPose::GetNodeCount ( ) [inherited]

Returns the number of pose nodes stored.

int FBPose::AddNode ( FBModel pObject,
FBMatrix pMatrix = NULL,
bool  pIsLocalMatrix = false 
) [inherited]

Add a new pose node.

Parameters:
pObject The object for which we are creating the pose information.
pMatrix The transformation of the object we want to save.
pIsLocalMatrix Is the matrix a local matrix?
void FBPose::RemoveNode ( int  pIndex ) [inherited]

Remove the pose node at specified index.

Parameters:
pIndex Index of the node to be removed.
void FBPose::SetNodeObject ( int  pIndex,
FBModel pObject 
) [inherited]

Set the pose node object.

Parameters:
pIndex Index of the node.
pObject Object to associate with this pose node.
FBModel* FBPose::GetNodeObject ( int  pIndex ) [inherited]

Get the pose node object.

Parameters:
pIndex Index of the node.
Returns:
a pointer to the node's Object.
Remarks:
if the index is invalid a null pointer is returned.
FBString FBPose::GetNodeName ( int  pIndex ) const [inherited]

Get the pose node at specified index.

Parameters:
pIndex Index of the node.
Remarks:
if the index is invalid a reference to an empty string is returned.
The reference will become undefined if this object is destroyed.
void FBPose::SetNodeMatrix ( int  pIndex,
FBMatrix pMatrix 
) [inherited]

Set the pose node matrix.

Parameters:
pIndex Index of the node.
pMatrix Matrix to set for this pose node.
FBMatrix FBPose::GetNodeMatrix ( int  pIndex ) const [inherited]

Get the pose node matrix.

Parameters:
pIndex Index of the node.
Returns:
a reference to the node's Matrix.
Remarks:
if the index is invalid a reference to an identiy matrix is returned.
The reference will become undefined if this object is destroyed.
FBMatrix FBPose::GetNodeMatrixGlobal ( int  pIndex ) const [inherited]

Get the global pose node matrix.

Parameters:
pIndex Index of the node.
Returns:
a reference to the node's Global Matrix.
Remarks:
if the index is invalid a reference to an identiy matrix is returned.
The reference will become undefined if this object is destroyed.
void FBPose::SetIsNodeLocalMatrix ( int  pIndex,
bool  pIsNodeLocalMatrix 
) [inherited]

Set the type of the Matrix for a given node.

Parameters:
pIndex Index of the node.
pIsNodeLocalMatrix True if the matrix of the node is a local matrix.
bool FBPose::IsNodeLocalMatrix ( int  pIndex ) [inherited]

Get the type of the Matrix for a given node.

Parameters:
pIndex Index of the node.
Returns:
true if the matrix is defined in Local coordinate space.
Remarks:
If this object is configured to hold BindPose data, this method will always return false.
int FBPose::Find ( FBString  pNodeName ) [inherited]

Look in this pose if the given node is present.

Parameters:
pNodeName Name of the node we are looking for.
Returns:
-1 if the node is not in the list or it's position.
FBComponent::GetInternalClassId ( ) [static, inherited]
Returns:
Internal class Id

Reimplemented from FBPlug.

Reimplemented in FBCustomManager.

virtual bool FBComponent::FBCreate ( ) [virtual, inherited]
virtual void FBComponent::FBDestroy ( ) [virtual, inherited]
virtual bool FBComponent::SetHIObject ( HIObject  pObject,
bool  pSDKComponent 
) [override, virtual, inherited]

Assign component to an internal pointer.

Reimplemented from FBPlug.

virtual int FBComponent::PropertyAdd ( FBProperty pProperty ) [virtual, inherited]

Add a property to the component's property manager.

Parameters:
pProperty The property to add to the property manager.
Returns:
Index in the property array where property was inserted.
bool FBComponent::PropertyAddReferenceProperty ( FBProperty pReferenceProperty ) [inherited]

Add a reference property to the component's property manager.

Parameters:
pReferenceProperty The property to from an other object to add a reference to (property cannot be a custom ORSDK property).
Returns:
True if the reference property could be added.
void FBComponent::PropertyRemove ( FBProperty pProperty ) [inherited]

Remove a Property from the component's Property manager.

If the property was dynamically allocated, it is deleted.

Parameters:
pProperty The property to remove from the property manager.
void FBComponent::PropertyGetModifiedList ( FBArrayTemplate< FBProperty * > &  pPropList,
FBPlugModificationFlag  pModificationFlags 
) [inherited]

Get list of properties which have been modified since last loading.

Parameters:
pPropList property list to hold the modified properties.
pModificationFlags type of modification to query.
FBProperty* FBComponent::PropertyCreate ( const char *  pName,
FBPropertyType  pType,
const char *  pDataType,
bool  pAnimatable,
bool  pIsUser = false,
FBProperty pReferenceSource = NULL 
) [inherited]

Create user or dynamic property.

Parameters:
pName The name of the property.
pType Type of the property. See enum FBPropertyType.
pDataType DataType of the property.
pAnimatable To specify if the property can be animated.
pIsUser To specify if the property is available as a custom property or dynamic and attached to the object.
pReferenceSource Specifies the property that a reference refers to.
FBObjectFlag FBComponent::GetObjectFlags ( ) [inherited]

Get all Object Flags (concatenated).

Returns:
Get all object flags in one call. Flags can be concatenated.
void FBComponent::SetObjectFlags ( FBObjectFlag  pFlags ) [inherited]

SetObjectFlags.

Parameters:
pFlags Set flag values. Note: this function overwrites all flags with those passed in parameter.
bool FBComponent::HasObjectFlags ( FBObjectFlag  pFlags ) [inherited]

Check whether a specific object flag is enabled.

Parameters:
pFlags Flags to check if they are present.
Returns:
True if all flags in pFlags are enabled.
void FBComponent::EnableObjectFlags ( FBObjectFlag  pFlags ) [inherited]

Enable a specific Object Flags.

Parameters:
pFlags Flags to enable.
void FBComponent::DisableObjectFlags ( FBObjectFlag  pFlags ) [inherited]

Disable a specific Object Flags.

Parameters:
pFlags Flags to disable.
void FBComponent::SetObjectStatus ( FBObjectStatus  pStatus,
bool  pValue 
) [inherited]

Enable/Disable a specific Object Status.

Parameters:
pStatus Status to change.
pValue Value to change the status to.
bool FBComponent::GetObjectStatus ( FBObjectStatus  pStatus ) [inherited]

Check to see if an object status is enabled.

Parameters:
pStatus Status to query.
bool FBComponent::ProcessNamespaceHierarchy ( FBNamespaceAction  pNamespaceAction,
const char *  pNamespaceName,
const char *  pReplaceTo = NULL,
bool  pAddRight = true 
) [inherited]

ProcessNamespaceHierarchy.

New Namespace name should only contains alphabet, digit and '_', Can't start with digit. This recursive function goes through the whole hierarchy (children) to add/replace the prefix. If you need to work on a single object, use the ProcessObjectPrefix function.

Parameters:
pNamespaceAction Which operation to do on the hierarchy (children).
pNamespaceName The Namespace name on Add/Delete or the prefix to replace in case of replace.
pReplaceTo The new Namespace Name or NULL in case of add or delete.
pAddRight Whether to add the namespace on right-most or left-most side or other namespace.
Returns:
return true if process successful.
bool FBComponent::ProcessObjectNamespace ( FBNamespaceAction  pNamespaceAction,
const char *  pNamespaceName,
const char *  pReplaceTo = NULL,
bool  pAddRight = true 
) [inherited]

ProcessObjectNamespace.

New Namespace name should only contains alphabet, digit and '_', Can't start with digit. This function is the same as ProcessNamespaceHierarchy except that it applies only on the current object and not to the object's children.

Parameters:
pNamespaceAction Which operation to do on the hierarchy (children).
pNamespaceName The Namespace name on Add/Delete or the prefix to replace in case of replace.
pReplaceTo The new Namespace Name or NULL in case of add or delete.
pAddRight Whether to add the namespace on right-most or left-most side or other namespace.
Returns:
return true if process successful.
virtual const char* FBComponent::ClassName ( ) [override, virtual, inherited]

Get the class name.

Returns:
The class name (i.e. "FBComponent").

Reimplemented from FBPlug.

Reimplemented in FBCustomManager.

virtual bool FBComponent::UseCustomPropertyViewSet ( ) const [inline, virtual, inherited]

Use the custom property viewSet or not.

To have custom property view for custom subclass, modification bin/config/propertyview.fbx is required.

Returns:
False if to use internal corresponding object's viewSet of the parent class.

Definition at line 791 of file fbcomponent.h.

{ return true; }
const char* FBComponent::GetFullName ( void  ) [inherited]

Get the full name.

Returns:
the full name of the component.
void FBComponent::SetOwnerNamespace ( FBNamespace pOwnerNSObj ) [inherited]

Set the owner Namespace object.

FBNamespace* FBComponent::GetOwnerNamespace ( void  ) [inherited]

Get the owner Namespace object.

Returns:
the owner Namespace object
FBFileReference* FBComponent::GetOwnerFileReference ( void  ) [inherited]

Get the owner FileReference object.

Returns:
the owner FileReference object
void FBComponent::HardSelect ( ) [inherited]

HardSelect.

Selects the object, and emits a hard select event for UI update notification.

void* FBComponent::operator new ( size_t  stAllocateBlock ) [inherited]
void* FBComponent::operator new ( size_t  stAllocateBlock,
int  blockType,
const char *  filename,
int  linenumber 
) [inherited]
void FBComponent::operator delete ( void *  pvMem ) [inherited]
void FBComponent::RegisterPropertyEvent ( FBPropertyEvent pPropertyEvent ) [inherited]
void FBComponent::UnregisterPropertyEvent ( FBPropertyEvent pPropertyEvent ) [inherited]
void FBComponent::InvalidatePropertyEventsParents ( ) [inherited]
FBComponent::ICallback_Declare ( K_IMPLEMENTATION  ) [inherited]

Reimplemented from FBPlug.

Reimplemented in FBModel, and FBVisualComponent.

virtual bool FBComponent::Is ( int  pTypeId ) [virtual, inherited]

Returns true if object is of type TypeId.

Parameters:
pTypeId TypeId to compare object to.
Returns:
Result of the comparison.

Reimplemented from FBPlug.

Reimplemented in FBCustomManager.

virtual int FBComponent::GetTypeId ( ) [virtual, inherited]

GetTypeId( int pTypeId )

Returns:
The TypeInfo of the object

Reimplemented from FBPlug.

Reimplemented in FBCustomManager.

static void FBComponent::FBComponentSetName ( FBComponent pObject,
const char *  pName 
) [static, inherited]
static const char* FBComponent::FBComponentGetName ( FBComponent pObject ) [static, inherited]
static void FBComponent::FBComponentSetLongName ( FBComponent pObject,
const char *  pName 
) [static, inherited]
static const char* FBComponent::FBComponentGetLongName ( FBComponent pObject ) [static, inherited]
void FBComponent::KObjectEvent ( HIRegister  pView,
HKEventBase  pEvent 
) [inherited]
virtual HIObject FBPlug::GetHIObject ( ) const [virtual, inherited]

Return an internal pointer.

bool FBPlug::IsSDKComponent ( ) [inherited]

Return whether or not item is an SDK component.

bool FBPlug::ConnectSrc ( FBPlug pSrc,
FBConnectionType  pConnectionType = kFBConnectionTypeNone 
) [inherited]

Add a source connection.

Parameters:
pSrc Source plug.
pConnectionType Type of connection, taken from FBConnectionType. Default value should work in all cases.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::ConnectDst ( FBPlug pDst,
FBConnectionType  pConnectionType = kFBConnectionTypeNone 
) [inherited]

Add a destination connection.

Parameters:
pDst Destination plug.
pConnectionType Type of connection, taken from FBConnectionType. Default value should work in all cases.
Returns:
A boolean indicating success (True) or failure (False)
bool FBPlug::ConnectSrcAt ( int  pDst_SrcIndex,
FBPlug pSrc,
FBConnectionType  pConnectionType = kFBConnectionTypeNone 
) [inherited]

Add a source connection.

Parameters:
pDst_SrcIndex Index that tells where to add this source connection in the destination's connection list. if index is out of bound, and this source connection will be appended at the end.
pSrc Source plug.
pConnectionType Type of connection, taken from FBConnectionType. Default value should work in all cases.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::ConnectDstAt ( int  pSrc_DstIndex,
FBPlug pDst,
FBConnectionType  pConnectionType = kFBConnectionTypeNone 
) [inherited]

Add a destination connection.

Parameters:
pSrc_DstIndex Index that tells where to add this destination connection in the source's connection list. if index is out of bound, and this destination connection will be appended at the end.
pDst Destination plug.
pConnectionType Type of connection, taken from FBConnectionType. Default value should work in all cases.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::DisconnectDst ( FBPlug pDst ) [inherited]

Remove a destination connection.

Parameters:
pDst Destination plug.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::DisconnectSrc ( FBPlug pSrc ) [inherited]

Remove a source connection.

Parameters:
pSrc Source plug.
Returns:
A boolean indicating success (True) or failure (False).
void FBPlug::DisconnectAllSrc ( ) [inherited]

Remove all source connections.

void FBPlug::DisconnectAllDst ( ) [inherited]

Remove all destination connections.

bool FBPlug::DisconnectDstAt ( int  pIndex ) [inherited]

Remove a destination connection at a specified index.

Parameters:
pIndex Destination plug index.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::DisconnectSrcAt ( int  pIndex ) [inherited]

Remove a source connection at a specified index.

Parameters:
pIndex Source plug index.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::ReplaceDstAt ( int  pIndex,
FBPlug pDst 
) [inherited]

Replace a destination connection at a specified index.

Parameters:
pIndex Destination plug index.
pDst Plug that will replace the other at index.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::ReplaceSrcAt ( int  pIndex,
FBPlug pSrc 
) [inherited]

Replace a source connection at a specified index.

Parameters:
pIndex Source plug index.
pSrc Plug that will replace the other at index.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::SwapSrc ( int  pIndexA,
int  pIndexB 
) [inherited]

Swap source connection at index A with source connection at index B.

Parameters:
pIndexA Plug index.
pIndexB Other plug index.
Returns:
A boolean indicating success (True) or failure (False).
bool FBPlug::MoveSrcAt ( int  pIndex,
int  pAtIndex 
) [inherited]

Move source connection at pIndex to pAtIndex.

Parameters:
pIndex Plug current index.
pAtIndex Plug new index.
Returns:
A boolean indicating success (True) or failure (False).
Remarks:
This is not like the swap function since the connection at pAtIndex is untouched.
bool FBPlug::MoveSrcAt ( FBPlug pSrc,
FBPlug pAtSrc 
) [inherited]

Move source connection pSrc to the position of pAtSrc.

Parameters:
pSrc Plug.
pAtSrc Plug that mark where we want to insert (will insert before this one).
Returns:
A boolean indicating success (True) or failure (False).
Remarks:
This is not like the swap function since the connection at pAtSrc is untouched.
int FBPlug::GetSrcCount ( ) [inherited]

Get source connection count.

Returns:
Total sources connections count.
FBPlug* FBPlug::GetSrc ( int  pIndex ) [inherited]

Get a source connection's plug at specified index.

Parameters:
pIndex Index of the source connection's plug.
Returns:
Source plug at specified index.
FBConnectionType FBPlug::GetSrcType ( int  pIndex ) [inherited]

Get a source connection's type at specified index.

Parameters:
pIndex Index of the source connection's type.
Returns:
Source connection's type at specified index.
int FBPlug::GetDstCount ( ) [inherited]

Get destination connection count.

Returns:
Total destinations connections count.
FBPlug* FBPlug::GetDst ( int  pIndex ) [inherited]

Get a destination connection's plug at specified index.

Parameters:
pIndex Index of the destination connection's plug.
Returns:
Destination plug at specified index.
FBConnectionType FBPlug::GetDstType ( int  pIndex ) [inherited]

Get a destination connection's type at specified index.

Parameters:
pIndex Index of the destination connection's type.
Returns:
Destination connection's type at specified index.
bool FBPlug::BeginChange ( ) [inherited]

Begins a change on multiple plugs.

Returns:
A boolean indicating success (True) or failure (False).
void FBPlug::EndChange ( ) [inherited]

Ends a change on multiple plugs.

void FBPlug::SetSelfModified ( FBPlugModificationFlag  pFlag,
bool  pBool 
) [inherited]

Set the plug's self modification flag.

Parameters:
pFlag bitwise AND of self modification flags.
pBool true if self changed.
bool FBPlug::GetSelfModified ( FBPlugModificationFlag  pFlag ) [inherited]

Tell if the plug's self has changed.

Parameters:
pFlag bitwise AND of self modification flags.
Returns:
true if self changed
void FBPlug::SetContentModified ( FBPlugModificationFlag  pFlag,
bool  pBool 
) [inherited]

Set the plug's owned property/object's modification flag.

Parameters:
pFlag bitwise AND of content modification flags.
pBool true if content has modification.
bool FBPlug::GetContentModified ( FBPlugModificationFlag  pFlag ) [inherited]

Tell if the plug's content has changed.

Parameters:
pFlag bitwise AND of content modification flags.
Returns:
true if content connection changed.
int FBPlug::GetPlugConnectionModifiedList ( FBPlugList pPlugList,
FBPlugModificationFlag  pConnectionModificatonFlag,
bool  pAddRemove 
) [inherited]

Get plug's modified src/dst property/object connection added/removed List.

Parameters:
pPlugList plug list to fill up.
pConnectionModificatonFlag Src/Dst Property/Object connection modification flag.
pAddRemove Ask for the added list if true, removed list if false.
Returns:
count of list;
bool FBPlug::RevertModification ( FBPlugModificationFlag  pFlag = kFBAllModifiedMask ) [inherited]

Revert the plug's modification to original status.

Parameters:
pFlag the type of modification to be reverted.
Returns:
true if revert successfully.
void FBPlug::SetStatusFlag ( FBPlugStatusFlag  pStatus,
bool  pValue 
) [inherited]

Set the plug's status flag.

Parameters:
pStatus bitwise AND of status flags.
pValue true if status has modification.
bool FBPlug::GetStatusFlag ( FBPlugStatusFlag  pStatus ) const [inherited]

Tell if the plug's status has changed.

Parameters:
pStatus bitwise AND of self modification flags.
Returns:
true if self changed
FBPlug* FBPlug::GetOwner ( ) [inherited]

Get the owner of this plug.

Very useful for properties since they are plugs too.

Returns:
The owner of this plug.
FBPlug* FBPlug::GetOwned ( int  pIndex ) [inherited]

Get the owned plug at specified index.

Parameters:
pIndex Index of the owned plug to get.
Returns:
The owned plug at specified index.
int FBPlug::GetOwnedCount ( ) [inherited]

Get the owned plug count.

Returns:
The owned plug count.
virtual bool FBPlug::PlugDataNotify ( FBConnectionAction  pAction,
FBPlug pThis,
void *  pData = NULL,
void *  pDataOld = NULL,
int  pDataSize = 0 
) [virtual, inherited]

PlugDataNotify when overloaded is equivalent of FBSystem.OnConnectionDataNotify but in the context of the derived object only.

Parameters:
pAction Plug action, the event type.
pThis Plug concerned.
pData Current data, meaning depends of plug action.
pDataOld Previous data, meaning depends of plug action.
pDataSize Size of data.
Returns:
unused should return true
virtual bool FBPlug::PlugStateNotify ( FBConnectionAction  pAction,
FBPlug pThis,
void *  pData = NULL,
void *  pDataOld = NULL,
int  pDataSize = 0 
) [virtual, inherited]

PlugStateNotify when overloaded is equivalent of FBSystem.OnConnectionStateNotify but in the context of the derived object only.

Parameters:
pAction Plug action, the event type.
pThis Plug concerned.
pData Current data, meaning depends of plug action.
pDataOld Previous data, meaning depends of plug action.
pDataSize Size of data.
Returns:
unused should return true except in the case of property rename kFBRename
virtual bool FBPlug::PlugNotify ( FBConnectionAction  pAction,
FBPlug pThis,
int  pIndex,
FBPlug pPlug = NULL,
FBConnectionType  pConnectionType = kFBConnectionTypeNone,
FBPlug pNewPlug = NULL 
) [virtual, inherited]

PlugNotify when overloaded is equivalent of FBSystem.OnConnectionNotify but in the context of the derived object only.

Parameters:
pAction Plug action, the event type.
pThis Plug concerned.
pIndex Index of the plug.
pPlug Other plug concerned.
pConnectionType Connection type between the plugs.
pNewPlug New plug (for the replace event).
Returns:
should by default return true except in the case of connection requests (kFBRequestConnectSrc or kFBRequestConnectDst)
static void FBPlug::PrintClassDefinitions ( ) [static, inherited]

Print out internal Class (ID) Definition table.

For internal debug purpose only.

FBScriptWrapper* FBWrapperHolder::GetWrapper ( ) [inherited]

Return the wrapper interface of this FBObject.

void FBWrapperHolder::AddWrapper ( FBScriptWrapper ) [inherited]
void FBWrapperHolder::RemoveWrapper ( FBScriptWrapper ) [inherited]

Friends And Related Function Documentation

K_DLLIMPORT friend int __FBRegisterTypeInfo ( int  pInternalClassId ) [friend, inherited]

__FBRegisterTypeInfo For internal use only, Register the TypeInfo mapped to internal class id.


Member Data Documentation

FBPropertyPoseType FBPose::Type [inherited]

Read Only Property: Type of the pose (bind pose or rest pose)

Definition at line 165 of file fbpose.h.

DataFBComponent* FBComponent::mLocalPtr [inherited]

Handle on DataFBComponent.

Reimplemented in FBCustomManager.

Definition at line 650 of file fbcomponent.h.

FBString FBComponent::mName [protected, inherited]

Name of the component.

Definition at line 653 of file fbcomponent.h.

int FBComponent::TypeInfo [static, inherited]

Contains the Type information of the object.

Reimplemented from FBPlug.

Reimplemented in FBCustomManager.

Definition at line 658 of file fbcomponent.h.

Read Only Property: Manages all of the properties for the component.

Definition at line 838 of file fbcomponent.h.

List: List of components.

Reimplemented in FBScene, and FBPropertyInspector.

Definition at line 839 of file fbcomponent.h.

List: Parents.

Definition at line 840 of file fbcomponent.h.

Read Write Property: Selected property.

Definition at line 841 of file fbcomponent.h.

Read Write Property: Unique name of object.

Reimplemented in FBAssetMng, FBConsoleChannel, FBTriggerGroup, FBTrigger, FBMotionClip, and FBTool.

Definition at line 842 of file fbcomponent.h.

Read Write Property: Name and namespace for object.

Definition at line 843 of file fbcomponent.h.

FBPropertyFolder FBComponent::Folder [inherited]

Read Write Property: The folder that contain this component.

Definition at line 846 of file fbcomponent.h.

KObject* FBComponent::mDummyObject [inherited]

Internal Dummy Object for non KObject Components.

Definition at line 871 of file fbcomponent.h.

const char* FBPlug::ClassGroupName [static, inherited]

ClassGroupName of the object.

Definition at line 444 of file fbplug.h.

bool FBPlug::mAllocated [inherited]

Contain the Allocation State of the Component.

Definition at line 450 of file fbplug.h.

int FBPlug::mGlobalTypeInfo [static, protected, inherited]

Represente the Type Index.

Definition at line 500 of file fbplug.h.

HIObject FBPlug::mObject [protected, inherited]

Handle on the Plug.

Definition at line 502 of file fbplug.h.

bool FBPlug::mSDKComponent [protected, inherited]

bool Plug is an SDK component.

Definition at line 503 of file fbplug.h.


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