ApplyManagerRules are used to define custom rules for manipulating custom objects.
It controls the relationship between the custom type objects and MB Core objects. For example, you can use it to allow the connection between your custom ragdoll physical property and the MB core character type object. And thus you can drag the ragdoll property from the asset browser or from scene navigator and attach it to a character.
Definition at line 114 of file fbapplymanagerrule.h.
#include <fbapplymanagerrule.h>
Public Member Functions | |
FBApplyManagerRule (HIObject pObject=NULL) | |
Constructor. | |
virtual bool | IsValidSrc (FBComponent *) |
Return true if pSrc is the type of custom object which this rule to be defined for. | |
virtual bool | IsValidConnection (FBComponent *pSrc, FBComponent *&pDst, bool &pAllowMultiple) |
Return true if pDst is the type of custom or MB object which your custom object pSrc will be applied on. | |
virtual bool | MenuBuild (FBAMMenu *pAMMenu, FBComponent *pFocusedObject) |
Build context menu for the type of custom object. | |
virtual bool | MenuAction (int pMenuId, FBComponent *pFocusedObject) |
Perform action if the added menu item is clicked. |
FBApplyManagerRule | ( | HIObject | pObject = NULL | ) |
Constructor.
pObject | For internal use only (default is NULL). |
virtual bool IsValidSrc | ( | FBComponent * | ) | [inline, virtual] |
Return true if pSrc is the type of custom object which this rule to be defined for.
Definition at line 129 of file fbapplymanagerrule.h.
{ return false; }
virtual bool IsValidConnection | ( | FBComponent * | pSrc, |
FBComponent *& | pDst, | ||
bool & | pAllowMultiple | ||
) | [inline, virtual] |
Return true if pDst is the type of custom or MB object which your custom object pSrc will be applied on.
it's possible to return proper destination and return it by pDst. For example, pSrc is RagDoll Property, pDst is a one of IK/FK bone, then you can find associated Character and replace.
pSrc | the custom type of object you drag it to attach another object. |
pDst | one of the selected destinations, it could be modified and return proper destination. |
pAllowMultiple | return true if allow multiple objects of same type as pSrc to be connected to pDst. |
Definition at line 142 of file fbapplymanagerrule.h.
{ return false; }
virtual bool MenuBuild | ( | FBAMMenu * | pAMMenu, |
FBComponent * | pFocusedObject | ||
) | [inline, virtual] |
Build context menu for the type of custom object.
pAMMenu | the menu to add menu option on. |
pFocusedObject | the custom type of object you right-click on. |
Definition at line 150 of file fbapplymanagerrule.h.
{ return false; }
virtual bool MenuAction | ( | int | pMenuId, |
FBComponent * | pFocusedObject | ||
) | [inline, virtual] |
Perform action if the added menu item is clicked.
pMenuId | the menu ID right-click on. |
pFocusedObject | the custom type of object right-click on. |
Definition at line 158 of file fbapplymanagerrule.h.
{ return false; }