1 #ifndef __FBCOMMAND_H__
2 #define __FBCOMMAND_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
53 #ifdef FBSDKUseNamespace
54 namespace FBSDKNamespace {
67 #define FBRegisterCommand( UniqueNameStr, ClassName, Label, Description, IconFilename ) \
68 HIObject RegisterCommand##ClassName( HIObject ,const char* pName,void * ) \
70 ClassName *Class = new ClassName( Label ); \
71 Class->mAllocated = true; \
72 if (Class->FBCreate()) { \
73 return Class->GetHIObject(); \
79 FBLibraryModule( ClassName ) \
81 FBRegisterObject( ClassName##R1,"Commands",Label,Description,RegisterCommand##ClassName, true, IconFilename ); \
82 FBRegisterObject( ClassName##R2,"FbxStorable/Command",UniqueNameStr,Description,RegisterCommand##ClassName, true, IconFilename ); \
83 FBRegisterObject( ClassName##R3,"Browsing/Templates/Commands",Label,Description,RegisterCommand##ClassName, true, "object_command.tif" ); \
90 #define FBCommandDeclare( ClassName, Parent ) \
91 FBClassDeclare( ClassName,Parent); \
93 ClassName(const char* pName):Parent(pName) { FBClassInit; } \
99 #define FBCommandImplementation( ThisComponent ) \
100 FBClassImplementation( ThisComponent )
135 FBCommand(
const char* pName = NULL, HIObject pObject = NULL);
137 IObject_Declare(
override);
171 #ifdef FBSDKUseNamespace
virtual bool FbxStore(FBFbxObject *pFbxObject, kFbxObjectStore pStoreWhat)
Storage/Retrieval of information into the FBX file format.
virtual void RemoveNotify(HIObject pComponent)
Remove an item that was added with drag and drop.
FBPropertyTime StopTime
Property: Stop time for the command.
virtual void DragAndDropAddNotify(FBComponent *pComponent)
Add an item with drag and drop.
FBPropertyString Description
Property: Command description.
FBPropertyTimeReferential TimeReferential
Property: What is the time referential of the command?
FBCommand(const char *pName=NULL, HIObject pObject=NULL)
Constructor.
FBPropertyTime StartTime
Property: Start time for the command.
virtual void ExecuteNotify()
Execute the command.
virtual void DragAndDropClearNotify()
Clear the command from the dropped items.
FBPropertyCommandState State
Property: Current state of the command.
MotionBuilder SDK base class.
Property class: const char * (String).
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBCommandState
FBCommandState.
@ kFBCommandStateMuteBecauseSolo
Mute because of solo.
@ kFBCommandStateSolo
Solo.
@ kFBCommandStateStandard
Standard.
@ kFBCommandStateMute
Mute.
FBTimeReferential
FBCommandState.
@ kFBTimeReferentialShot
Shot.
@ kFBTimeReferentialEdit
Edit.
@ kFBTimeReferentialAction
Action.
#define __FBClassDeclare(Name, Parent)
For internal use only.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
class K_DLLIMPORT FBPropertyBase< FBTime, kFBPT_Time > FBPropertyTime
Property: FBTime
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
kFbxObjectStore
Description of the different store/retrieve passes of the FBX format.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.