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
MotionBuilder SDK base class.
int GetViewerHeight()
Get rendering area height.
FBVertex PickGetPoint(int pIndex)
Get point at pIndex on pick path in 3D.
virtual void ViewExpose()
Expose function.
void FBModelRenderEnd()
End model matrix sequence.
FBPropertyString ViewerText
Read Write Property: Text displayed in view.
FBPropertyCamera CurrentCamera
Read Only Property: Current camera.
void PickRectStart(FBManipulatorPickType pType)
Pick rectangle start.
void PickRectStop()
Stop rectangle pick.
virtual bool ViewInput(int pMouseX, int pMouseY, FBInputType pAction, int pButtonKey, int pModifier)
Input function.
FBPropertyBool AlwaysActive
Read Write Property: Is manipulator always active?
FBPropertyBool DefaultBehavior
Read Write Property: Using default manipulator behavior?
FBModel * PickGetModel(int pIndex)
Get model at index pIndex in list of picked items.
void Pick(FBManipulatorPickType pType)
Single pick.
int GetPaneWidth()
Get sub-pane width.
void PickRectMotion()
Pick rectangle motion.
int GetPanePosX()
Get sub-pane origin X offset from the viewer origin.
void FBModelRenderBegin(FBModel *pModel)
Transform the current matrix to the reference of a given model.
FBManipulator(const char *pName, HIObject pObject=NULL)
Constructor.
FBPropertyBool Visible
Read Write Property: Is manipulator visible?
virtual bool FBCreate() override
Open Reality Creation function.
int GetPaneHeight()
Get sub-pane height.
FBPropertyBool Active
Read Write Property: Is manipulator active?
int GetPanePosY()
Get sub-pane origin Y offset from the viewer origin.
int PickGetCount()
Get number of items picked.
int GetViewerWidth()
Get rendering area width.
FBPropertyBool ConsumeEvent
Read Write Property: Is manipulator consuming event? If true, this will prevent other manipulators fr...
PropertyList: Manipulator.
virtual int GetCount()
Get the number of manipulators.
virtual FBManipulator * operator[](int pIndex)
Get the manipulator at a given index.
Property class: const char * (String).
#define __FBClassDeclare(Name, Parent)
For internal use only.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Contains the user interface components for the SDK.
FBInputType
Types of input events.
FBManipulatorPickType
Types of manipulator picking.
@ FBPickPoints
Pick points.
@ FBPickObjects
Pick objects.
@ FBPickSurfaces
Pick surfaces.
FBManipulatorTransformType
Manipulator transform stles.
@ kFBManipulatorTransformRotation
Rotation manipulator.
@ kFBManipulatorTransformNone
No manipulator.
@ kFBManipulatorTransformTranslation
Translation manipulator.
@ kFBManipulatorTransformScaling
Scaling manipulator.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
#define FB_DEFINE_LIST(DllTag, Type)
Define a component list.
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
class K_DLLIMPORT FBVector4< float > FBVertex
Vertex.
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.