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 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 )
149 virtual void ExecuteNotify();
152 virtual void DragAndDropClearNotify();
157 virtual void DragAndDropAddNotify(
FBComponent* pComponent );
162 virtual void RemoveNotify(
HIObject pComponent);
171 #ifdef FBSDKUseNamespace
#define __FBClassDeclare(Name, Parent)
For internal use only.
FBCommandState
FBCommandState.
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
Property class: const char * (String).
FBPropertyTimeReferential TimeReferential
Property: What is the time referential of the command?
FBPropertyCommandState State
Property: Current state of the command.
class FBPropertyBaseEnum< enum FBCommandState > FBPropertyCommandState
FBPropertyString Description
Property: Command description.
#define IObject_Declare(IsPure)
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.
FBTimeReferential
FBCommandState.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
kFbxObjectStore
Description of the different store/retrieve passes of the FBX format.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
#define FBSDKNamespace
FBSDKNamespace define.
MotionBuilder SDK base class.
class FBPropertyBase< FBTime, kFBPT_Time > FBPropertyTime
Property: FBTime
class FBPropertyBaseEnum< enum FBTimeReferential > FBPropertyTimeReferential
FBPropertyTime StartTime
Property: Start time for the command.