FBApplyManagerRule Class Reference

#include <fbapplymanagerrule.h>
FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule FBApplyManagerRule
Inheritance diagram for FBApplyManagerRule:
Inheritance graph
[legend]

List of all members.


Detailed Description

ApplyManagerRule class.

ApplyManagerRules are objects which are used to define custom rules for manipulating the 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.

Warning:
You shouldn't override the system default rule. All the function should return false if won't handle the call back.

Definition at line 114 of file fbapplymanagerrule.h.


Public Member Functions

  FBApplyManagerRule (HIObject pObject=NULL)
  Constructor.
virtual bool  IsValidSrc (HFBComponent)
  Return true if pSrc is the type of custom object which this rule to be defined for.
virtual bool  IsValidConnection (HFBComponent pSrc, HFBComponent &pDst, bool &pAllowMultiple)
  Return true if pDst is the type of custom or MB object which your custom object pSrc will be applied on.

Constructor & Destructor Documentation

FBApplyManagerRule ( HIObject  pObject = NULL  ) 

Constructor.

Parameters:
pObject  For internal use only (default is NULL).

Member Function Documentation

virtual bool IsValidSrc ( HFBComponent   )  [inline, virtual]

Return true if pSrc is the type of custom object which this rule to be defined for.

Warning:
you should only return true if pSrc is the type of custom object you defined.

Definition at line 129 of file fbapplymanagerrule.h.

virtual bool IsValidConnection ( HFBComponent  pSrc,
HFBComponent &  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.

Parameters:
pSrc  the custom type of object you drag it to attach another object.
Return values:
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.
Returns:
return true if connection between pSrc and pDst is allowed.

Definition at line 142 of file fbapplymanagerrule.h.


Please send us your comments about this page.