fbsdk/fbcommand.h Source File
Go to the documentation of this file. 1 #ifndef __FBCOMMAND_H__
2 #define __FBCOMMAND_H__
48 #define FBSDK_DLL K_DLLIMPORT
53 #ifdef FBSDKUseNamespace
67 #define FBRegisterCommand( UniqueNameStr, ClassName, Label, Description, IconFilename ) \
68 HIObject RegisterCommand##ClassName( HIObject ,const char* pName,void * ) \
70 ClassName *Class = new ClassName( Label ); \
71 if (Class->FBCreate()) { \
72 return Class->GetHIObject(); \
78 FBLibraryModule( ClassName ) \
80 FBRegisterObject( ClassName##R1,"Commands",Label,Description,RegisterCommand##ClassName, true, IconFilename ); \
81 FBRegisterObject( ClassName##R2,"FbxStorable/Command",UniqueNameStr,Description,RegisterCommand##ClassName, true, IconFilename ); \
82 FBRegisterObject( ClassName##R3,"Browsing/Templates/Commands",Label,Description,RegisterCommand##ClassName, true, "object_command.tif" ); \
89 #define FBCommandDeclare( ClassName, Parent ) \
90 FBClassDeclare( ClassName,Parent); \
92 ClassName(const char* pName):Parent(pName) { FBClassInit; } \
98 #define FBCommandImplementation( ThisComponent ) \
99 FBClassImplementation( ThisComponent )
148 virtual void ExecuteNotify();
151 virtual void DragAndDropClearNotify();
156 virtual void DragAndDropAddNotify(
FBComponent* pComponent );
161 virtual void RemoveNotify(
HIObject pComponent);
170 #ifdef FBSDKUseNamespace
#define __FBClassDeclare(Name, Parent)
For internal use only.
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
FBPropertyTimeReferential TimeReferential
Property: What is the time referential of the command?
class FBPropertyBase< FBTime, kFBPT_Time > FBPropertyTime
Property: FBTime
FBPropertyCommandState State
Property: Current state of the command.
class FBPropertyBaseEnum< enum FBTimeReferential > FBPropertyTimeReferential
FBPropertyString Description
Property: Command description.
#define IObject_Declare(IsPure)
Property class: const char * (String).
FBPropertyTime StopTime
Property: Stop time for the command.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
MotionBuilder SDK base class.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBCommandState
FBCommandState.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
#define FBSDKNamespace
FBSDKNamespace define.
class FBPropertyBaseEnum< enum FBCommandState > FBPropertyCommandState
kFbxObjectStore
Description of the different store/retrieve passes of the FBX format.
FBTimeReferential
FBCommandState.
FBPropertyTime StartTime
Property: Start time for the command.