This class can be used to provide basic camera manipulation in any program using this library.
Definition at line 30 of file fbxmanipulators.h.
#include <fbxmanipulators.h>

Public Types | |
| enum | EAction { eNone, eOrbit, eDolly, ePan, eFreePan } |
All possible manipulation actions that can be performed on a camera using this manipulator. More... | |
Public Member Functions | |
| void | Begin (EAction pAction, float pX, float pY) |
| Begin manipulation of the camera. | |
| void | Notify (float pX, float pY, float pZ=0) |
| Notify manipulation of latest input. | |
| void | End () |
| End current manipulation. | |
| void | FrameAll (const FbxTime &pTime=FBXSDK_TIME_INFINITE, int pOnAnimLayer=0) |
| Change camera position, rotation and LookAt node to frame all objects. | |
| void | FrameSelected (const FbxTime &pTime=FBXSDK_TIME_INFINITE, int pOnAnimLayer=0) |
| Change camera position, rotation and LookAt to frame all selected objects. | |
| EAction | GetCurrentAction () const |
| Retrieve current manipulation action. | |
Public Attributes | |
| FbxPropertyT< FbxReference > | Camera |
| The camera controlled by the manipulator. | |
| FbxPropertyT< FbxFloat > | ViewportWidth |
| Width of the camera viewport, in pixels. | |
| FbxPropertyT< FbxFloat > | ViewportHeight |
| Height of the camera viewport, in pixels. | |
| FbxPropertyT< FbxBool > | Restore |
| Restore the camera transform upon destruction of the manipulator. | |
Protected Member Functions | |
| virtual void | Construct (const FbxCameraManipulator *pFrom) |
| virtual void | Destruct (bool pRecursive) |
| Optional destructor override, automatically called by default destructor. | |
| virtual void | ConstructProperties (bool pForceSet) |
| Optional property constructor override, automatically called by default constructor. | |
| virtual bool | PropertyNotify (EPropertyNotifyType pType, FbxProperty &pProperty) |
| enum EAction |
All possible manipulation actions that can be performed on a camera using this manipulator.
Definition at line 36 of file fbxmanipulators.h.
| void Begin | ( | EAction | pAction, |
| float | pX, | ||
| float | pY | ||
| ) |
Begin manipulation of the camera.
| pAction | The action performed for this manipulation scope. |
| pX | Begin horizontal position of the manipulation, in pixels. |
| pY | Begin vertical position of the manipulation, in pixels. |
| void Notify | ( | float | pX, |
| float | pY, | ||
| float | pZ = 0 |
||
| ) |
Notify manipulation of latest input.
| pX | Horizontal position of the manipulation, in pixels. |
| pY | Vertical position of the manipulation, in pixels. |
| pZ | Depth position of the manipulation, in pixels. Only used by eDollyPan action. |
| void End | ( | ) |
End current manipulation.
| void FrameAll | ( | const FbxTime & | pTime = FBXSDK_TIME_INFINITE, |
| int | pOnAnimLayer = 0 |
||
| ) |
Change camera position, rotation and LookAt node to frame all objects.
| pTime | Current time. |
| pOnAnimLayer | Specify which animation layer to use for the evaluation. |
| void FrameSelected | ( | const FbxTime & | pTime = FBXSDK_TIME_INFINITE, |
| int | pOnAnimLayer = 0 |
||
| ) |
Change camera position, rotation and LookAt to frame all selected objects.
| pTime | Current time. |
| pOnAnimLayer | Specify which animation layer to use for the evaluation. |
| EAction GetCurrentAction | ( | ) | const |
Retrieve current manipulation action.
| virtual void Construct | ( | const FbxCameraManipulator * | pFrom | ) | [protected, virtual] |
| virtual void Destruct | ( | bool | pRecursive | ) | [protected, virtual] |
Optional destructor override, automatically called by default destructor.
| pRecursive | If true, children objects should be destroyed as well. |
Reimplemented from FbxObject.
| virtual void ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Optional property constructor override, automatically called by default constructor.
| pForceSet | If the property value must be set regardless of default value. |
Reimplemented from FbxObject.
| virtual bool PropertyNotify | ( | EPropertyNotifyType | pType, |
| FbxProperty & | pProperty | ||
| ) | [protected, virtual] |
Reimplemented from FbxObject.
The camera controlled by the manipulator.
Definition at line 75 of file fbxmanipulators.h.
Width of the camera viewport, in pixels.
This is used to accurately calculate to movement speed.
Definition at line 79 of file fbxmanipulators.h.
Height of the camera viewport, in pixels.
This is used to accurately calculate to movement speed.
Definition at line 83 of file fbxmanipulators.h.
Restore the camera transform upon destruction of the manipulator.
Definition at line 86 of file fbxmanipulators.h.