Public Types | Public Member Functions | Public Attributes | Protected Member Functions

FbxCameraManipulator Class Reference

Search for all occurrences

Detailed Description

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>

Inheritance diagram for FbxCameraManipulator:
Inheritance graph
[legend]

List of all members.

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< FbxReferenceCamera
 The camera controlled by the manipulator.
FbxPropertyT< FbxFloatViewportWidth
 Width of the camera viewport, in pixels.
FbxPropertyT< FbxFloatViewportHeight
 Height of the camera viewport, in pixels.
FbxPropertyT< FbxBoolRestore
 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)

Member Enumeration Documentation

enum EAction

All possible manipulation actions that can be performed on a camera using this manipulator.

Enumerator:
eNone 

No action.

eOrbit 

Orbiting camera around LootAt/Interest position.

eDolly 

Moving camera closer or away from its LookAt/Intest position.

ePan 

Panning camera up, down and sideways.

eFreePan 

Panning and dollying all at once.

Definition at line 36 of file fbxmanipulators.h.


Member Function Documentation

void Begin ( EAction  pAction,
float  pX,
float  pY 
)

Begin manipulation of the camera.

Parameters:
pActionThe action performed for this manipulation scope.
pXBegin horizontal position of the manipulation, in pixels.
pYBegin vertical position of the manipulation, in pixels.
void Notify ( float  pX,
float  pY,
float  pZ = 0 
)

Notify manipulation of latest input.

Parameters:
pXHorizontal position of the manipulation, in pixels.
pYVertical position of the manipulation, in pixels.
pZDepth 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.

Parameters:
pTimeCurrent time.
pOnAnimLayerSpecify 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.

Parameters:
pTimeCurrent time.
pOnAnimLayerSpecify which animation layer to use for the evaluation.
EAction GetCurrentAction ( ) const

Retrieve current manipulation action.

Returns:
The action currently performed by the camera manipulator.
virtual void Construct ( const FbxCameraManipulator pFrom) [protected, virtual]
virtual void Destruct ( bool  pRecursive) [protected, virtual]

Optional destructor override, automatically called by default destructor.

Parameters:
pRecursiveIf true, children objects should be destroyed as well.
Remarks:
In case it is decided to override this function, do not forget to call ParentClass::Destruct(pResursive) at the end.

Reimplemented from FbxObject.

virtual void ConstructProperties ( bool  pForceSet) [protected, virtual]

Optional property constructor override, automatically called by default constructor.

Parameters:
pForceSetIf the property value must be set regardless of default value.
Remarks:
If your object have properties, they must be initialized in this function.

Reimplemented from FbxObject.

virtual bool PropertyNotify ( EPropertyNotifyType  pType,
FbxProperty pProperty 
) [protected, virtual]

Member Data Documentation

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.

Remarks:
If this property is not correctly set, movements will be erronous.

Definition at line 79 of file fbxmanipulators.h.

Height of the camera viewport, in pixels.

This is used to accurately calculate to movement speed.

Remarks:
If this property is not correctly set, movements will be erronous.

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.


The documentation for this class was generated from the following file:

FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator
FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator FbxCameraManipulator