Open Reality Reference Guide
|
|
Go to the documentation of this file. 1 #ifndef __FBMANIPULATOR_H__
2 #define __FBMANIPULATOR_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
54 #ifdef FBSDKUseNamespace
55 namespace FBSDKNamespace {
69 #define FBRegisterManipulator( ClassName, Label, Description, IconFilename ) \
70 HIObject RegisterManipulator##ClassName( HIObject ,const char* pName,void * ) \
72 ClassName *Class = new ClassName( Label ); \
73 Class->mAllocated = true; \
74 if (Class->FBCreate()) { \
75 return Class->GetHIObject(); \
81 FBLibraryModule( ClassName ) \
83 FBRegisterObject( ClassName,"Manipulators",Label,Description,RegisterManipulator##ClassName,true, IconFilename ); \
90 #define FBManipulatorDeclare( ClassName, Parent ) \
91 FBClassDeclare( ClassName,Parent); \
93 ClassName(const char* pName):Parent(pName) { FBClassInit; } \
99 #define FBManipulatorImplementation( ThisComponent ) \
100 FBClassImplementation( ThisComponent )
252 virtual void RemoveAt(
int pIndex );
292 FBPropertyManipulatorTransformType
Type;
298 #ifdef FBSDKUseNamespace
class K_DLLIMPORT FBVector4< float > FBVertex
Vertex.
@ kFBManipulatorTransformRotation
Rotation manipulator.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
FBPropertyString ViewerText
Read Write Property: Text displayed in view.
void FBModelRenderBegin(FBModel *pModel)
Transform the current matrix to the reference of a given model.
@ FBPickObjects
Pick objects.
int GetPanePosY()
Get sub-pane origin Y offset from the viewer origin.
FBManipulatorPickType
Types of manipulator picking.
void PickRectStart(FBManipulatorPickType pType)
Pick rectangle start.
int PickGetCount()
Get number of items picked.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBPropertyBool Active
Read Write Property: Is manipulator active?
void FBModelRenderEnd()
End model matrix sequence.
int GetPanePosX()
Get sub-pane origin X offset from the viewer origin.
FBPropertyBool Visible
Read Write Property: Is manipulator visible?
FBPropertyBool DefaultBehavior
Read Write Property: Using default manipulator behavior?
FBManipulator(const char *pName, HIObject pObject=NULL)
Constructor.
#define __FBClassDeclare(Name, Parent)
For internal use only.
PropertyList: Manipulator.
void PickRectMotion()
Pick rectangle motion.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
int GetPaneWidth()
Get sub-pane width.
virtual bool ViewInput(int pMouseX, int pMouseY, FBInputType pAction, int pButtonKey, int pModifier)
Input function.
virtual bool FBCreate() override
Open Reality Creation function.
FBInputType
Types of input events.
void PickRectStop()
Stop rectangle pick.
virtual void ViewExpose()
Expose function.
FBVertex PickGetPoint(int pIndex)
Get point at pIndex on pick path in 3D.
FBPropertyCamera CurrentCamera
Read Only Property: Current camera.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
FBManipulatorTransformType
Manipulator transform stles.
FBModel * PickGetModel(int pIndex)
Get model at index pIndex in list of picked items.
int GetViewerWidth()
Get rendering area width.
#define FB_DEFINE_LIST(DllTag, Type)
Define a component list.
virtual int GetCount()
Get the number of manipulators.
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Contains the user interface components for the SDK.
void Pick(FBManipulatorPickType pType)
Single pick.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
int GetPaneHeight()
Get sub-pane height.
FBPropertyBool ConsumeEvent
Read Write Property: Is manipulator consuming event? If true, this will prevent other manipulators fr...
@ kFBManipulatorTransformScaling
Scaling manipulator.
Property class: const char * (String).
virtual FBManipulator * operator[](int pIndex)
Get the manipulator at a given index.
MotionBuilder SDK base class.
FBPropertyBool AlwaysActive
Read Write Property: Is manipulator always active?
@ kFBManipulatorTransformNone
No manipulator.
@ FBPickPoints
Pick points.
int GetViewerHeight()
Get rendering area height.
@ FBPickSurfaces
Pick surfaces.
@ kFBManipulatorTransformTranslation
Translation manipulator.