This class can be used to provide basic camera manipulation in any program using this library.
Definition at line 54 of file kfbxmanipulators.h.
#include <kfbxmanipulators.h>
Public Types |
|
enum | eAlignment { eNoAlignment, eCameraToLookAt, eLookAtToCamera } |
enum | eAction { eNoAction, eOrbit, eDolly, ePan } |
Public Member Functions |
|
void | Initialize (const KFbxCamera &pCamera, eAlignment pCamAlign) |
Set the camera used for the manipulation.
|
|
bool | ManipBegin (eAction pAction, int pMouseX, int pMouseY) |
Begin manipulation of the camera. |
|
bool | ManipNotify (int pMouseX, int pMouseY) |
Notify manipulation of latest input.
|
|
void | ManipEnd () |
End manipulation. |
|
eAction | GetCurrentAction () const |
Retrieve current manipulation action.
|
|
void | FrameAll () |
Change camera position and look at to frame
all objects. |
|
void | FrameSelected () |
Change camera position and look at to frame
all selected objects. |
|
virtual KFbxObject & | Copy (const KFbxObject &pObject) |
Copy an object content into this object.
|
enum eAlignment |
Definition at line 59 of file kfbxmanipulators.h.
enum eAction |
Definition at line 60 of file kfbxmanipulators.h.
void Initialize | ( | const KFbxCamera & | pCamera, |
eAlignment | pCamAlign | ||
) |
Set the camera used for the manipulation.
pCamera | Camera that will be used for the manipulation. |
pCamAlign | How the camera should be aligned during camera manipulator initialization. |
bool ManipBegin | ( | eAction | pAction, |
int | pMouseX, | ||
int | pMouseY | ||
) |
Begin manipulation of the camera.
pAction | The action performed for this manipulation scope. |
pMouseX | Horizontal position of the mouse cursor. |
pMouseY | Vertical position of the mouse cursor. |
bool ManipNotify | ( | int | pMouseX, |
int | pMouseY | ||
) |
Notify manipulation of latest input.
pMouseX | Horizontal position of the mouse cursor. |
pMouseY | Vertical position of the mouse cursor. |
void ManipEnd | ( | ) |
End manipulation.
eAction GetCurrentAction | ( | ) | const |
Retrieve current manipulation action.
void FrameAll | ( | ) |
Change camera position and look at to frame all objects.
void FrameSelected | ( | ) |
Change camera position and look at to frame all selected objects.
virtual KFbxObject& Copy | ( | const KFbxObject & | pObject | ) | [virtual] |
Copy an object content into this object.
pObject | The source object to copy data from. |
Reimplemented from KFbxObject.