fbsdk/fbcommand.h File Reference
Declaration for the FBCommand class.
Definition in file fbcommand.h.
#define FBCommandDeclare |
( |
|
ClassName, |
|
|
|
Parent |
|
) |
| |
Value:
public: \
ClassName(
const char* pName):Parent(pName) {
FBClassInit; } \
private:
#define FBClassInit
Class initialization.
#define FBClassDeclare(Name, Parent)
Class declaration.
Command class declaration.
- Parameters
-
ClassName | Command class name. |
Parent | Parent class. |
Definition at line 89 of file fbcommand.h.
Command class implementation.
- Parameters
-
ThisComponent | Class to implement. |
Definition at line 98 of file fbcommand.h.
#define FBRegisterCommand |
( |
|
UniqueNameStr, |
|
|
|
ClassName, |
|
|
|
Label, |
|
|
|
Description, |
|
|
|
IconFilename |
|
) |
| |
Value:
{ \
ClassName *Class = new ClassName( Label ); \
if (Class->FBCreate()) { \
return Class->GetHIObject(); \
} else { \
delete Class; \
} \
FBRegisterObject( ClassName##R1,
"Commands",Label,Description,RegisterCommand##ClassName,
true, IconFilename );
\
FBRegisterObject( ClassName##R2,
"FbxStorable/Command",UniqueNameStr,Description,RegisterCommand##ClassName,
true, IconFilename );
\
FBRegisterObject( ClassName##R3,
"Browsing/Templates/Commands",Label,Description,RegisterCommand##ClassName,
true,
"object_command.tif" ); \
} \
#define FBRegisterObject(LocalId, Path, Name, Description, Constructor, IsMultipleAllowed, IconFilename)
Event registration/un-registration.
#define FBLibraryModule(Name)
FBLibraryModule Define a module registration call.
Command class registration.
- Parameters
-
UniqueNameStr | Unique name. |
ClassName | Command class name. |
Label | Short description. |
Description | Long description. |
IconFilename | Filename of associated icon. |
Definition at line 67 of file fbcommand.h.
Be sure that FBSDK_DLL is defined only once...
Definition at line 48 of file fbcommand.h.
Go to the source code of this file.