Open Reality Reference Guide
 
Loading...
Searching...
No Matches
fbdevicelayout.h File Reference

FBDevice layout file. More...

#include <kaydaradef.h>
#include <fbsdk/fbcore.h>
#include <fbcontrols/fbcontrols.h>

Go to the source code of this file.

Classes

class  FBDeviceLayout
 Device layout class. More...
 
class  FBDeviceOpticalLayout
 Layout for optical device. More...
 
class  FBDeviceCameraLayout
 Camera device layout. More...
 

Macros

#define FBSDK_DLL   K_DLLIMPORT
 Be sure that FBSDK_DLL is defined only once...
 
#define FBRegisterDeviceLayout(ClassName, UniqueNameStr, IconFilename)
 Register a device layout class.
 
#define FBDeviceLayoutDeclare(ClassName, Parent)
 Device layout declaration.
 
#define FBDeviceLayoutImplementation(ThisComponent)    FBClassImplementation( ThisComponent )
 Device layout implementation.
 
#define FBTRACKER_NO_LENSFILE   "-- no lens file --"
 FBTRACKER_NO_LENSFILE.
 

Functions

 FB_FORWARD (FBDeviceCameraInstrument)
 
 FB_FORWARD (FBDeviceCamera)
 
 FB_FORWARD (FBDeviceOptical)
 
 __FB_FORWARD (FBDeviceLayout)
 
 __FB_FORWARD (FBDeviceOpticalLayout)
 
 __FB_FORWARD (FBDeviceCameraLayout)
 

Detailed Description

FBDevice layout file.

Definition in file fbdevicelayout.h.

Macro Definition Documentation

◆ FBDeviceLayoutDeclare

#define FBDeviceLayoutDeclare (   ClassName,
  Parent 
)
Value:
FBClassDeclare( ClassName,Parent ); \
public: \
ClassName(FBDevice* pDevice):Parent(pDevice) { FBClassInit; } \
private:
Base Device class.
Definition fbcore.h:805
#define FBClassDeclare(Name, Parent)
Class declaration.
Definition fbdefines.h:85
#define FBClassInit
Class initialization.
Definition fbdefines.h:64

Device layout declaration.

Parameters
ClassNameName of device layout class.
ParentParent of device layout class.

Definition at line 97 of file fbdevicelayout.h.

◆ FBDeviceLayoutImplementation

#define FBDeviceLayoutImplementation (   ThisComponent)     FBClassImplementation( ThisComponent )

Device layout implementation.

Parameters
ThisComponentName of device layout class to implement.

Definition at line 106 of file fbdevicelayout.h.

◆ FBRegisterDeviceLayout

#define FBRegisterDeviceLayout (   ClassName,
  UniqueNameStr,
  IconFilename 
)
Value:
HIObject RegisterDeviceLayout##ClassName( HIObject /*pOwner*/,const char * /*pName*/,void *pData) \
{\
ClassName *Class = new ClassName( (FBDevice*)FBGetFBObject((HIObject)pData) ); \
Class->mAllocated = true; \
if (Class->FBCreate()) { \
return Class->GetHIObject(); \
} else { \
delete Class; \
return NULL; \
} \
} \
FBLibraryModule( ClassName ) \
{ \
FBRegisterObject( ClassName,"UI_Associated_ClassName",UniqueNameStr,UniqueNameStr" Device Layout",RegisterDeviceLayout##ClassName, true, IconFilename );\
}
K_DLLIMPORT HIObject FBGetFBObject(HIObject pObject, bool pAutoCreate=false)
Get the SDK object from an Internal Object.

Register a device layout class.

Parameters
ClassNameName of device layout class.
UniqueNameStrUnique name of class.
IconFilenameFilename of associated icon.

Definition at line 76 of file fbdevicelayout.h.

◆ FBSDK_DLL

#define FBSDK_DLL   K_DLLIMPORT

Be sure that FBSDK_DLL is defined only once...

Definition at line 48 of file fbdevicelayout.h.

◆ FBTRACKER_NO_LENSFILE

#define FBTRACKER_NO_LENSFILE   "-- no lens file --"

FBTRACKER_NO_LENSFILE.

Definition at line 173 of file fbdevicelayout.h.