This reference page is linked to from the following overview topics: List of Python FBX classes.
This class contains the global camera settings.
Definition at line 71 of file kfbxglobalcamerasettings.h.
#include <kfbxglobalcamerasettings.h>
Public Member Functions |
|
const KFbxGlobalCameraSettings & | operator= (const KFbxGlobalCameraSettings &pGlobalCameraSettings) |
Assignment operator. |
|
bool | CopyProducerCamera (KString pCameraName, const KFbxCamera *pCamera) const |
int | GetProducerCamerasCount () const |
Friends |
|
class | KFbxScene |
Default camera settings. |
|
enum | EViewingMode { eSTANDARD, eXRAY, eMODELS_ONLY } |
Viewing modes. More... |
|
bool | SetDefaultCamera (char *pCameraName) |
Sets the default camera. |
|
char * | GetDefaultCamera () const |
Returns the default camera name. |
|
void | RestoreDefaultSettings () |
Restores the default settings. |
|
void | SetDefaultViewingMode (EViewingMode pViewingMode) |
Sets the default viewing mode. |
|
EViewingMode | GetDefaultViewingMode () const |
Returns the default viewing mode. |
|
Producer Cameras |
|
Producer cameras are
global cameras in MotionBuilder you use to view the scene.You
cannot animate Producer cameras but you can specify their default
positions. |
|
void | CreateProducerCameras () |
Creates the default Producer cameras.
|
|
void | DestroyProducerCameras () |
Destroys the default Producer cameras.
|
|
bool | IsProducerCamera (KFbxCamera *pCamera) const |
Checks if the camera is a Producer camera.
|
|
KFbxCameraSwitcher * | GetCameraSwitcher () const |
Returns the Camera Switcher. |
|
void | SetCameraSwitcher (KFbxCameraSwitcher *pSwitcher) |
Sets the Camera Switcher. |
|
KFbxCamera * | GetCameraProducerPerspective () const |
Returns a reference to the Producer
perspective camera. |
|
KFbxCamera * | GetCameraProducerTop () const |
Returns a reference to the Producer top
camera. |
|
KFbxCamera * | GetCameraProducerBottom () const |
Returns a reference to the Producer bottom
camera. |
|
KFbxCamera * | GetCameraProducerFront () const |
Returns a reference to the Producer front
camera. |
|
KFbxCamera * | GetCameraProducerBack () const |
Returns a reference to the Producer back
camera. |
|
KFbxCamera * | GetCameraProducerRight () const |
Returns a reference to the Producer right
camera. |
|
KFbxCamera * | GetCameraProducerLeft () const |
Returns a reference to the Producer left
camera. |
|
Error Management |
|
The same error object
is shared among instances of this class. |
|
enum | EError { eNULL_PARAMETER, eUNKNOWN_CAMERA_NAME, eERROR_COUNT } |
Error identifiers, most of these are only used internally. More... |
|
KError & | GetError () |
Retrieves the error object. |
|
EError | GetLastErrorID () const |
Returns last error code. |
|
const char * | GetLastErrorString () const |
Returns the last error string. |
enum EViewingMode |
Viewing modes.
Definition at line 101 of file kfbxglobalcamerasettings.h.
{ eSTANDARD, eXRAY, eMODELS_ONLY } EViewingMode;
enum EError |
Error identifiers, most of these are only used internally.
Definition at line 220 of file kfbxglobalcamerasettings.h.
bool SetDefaultCamera | ( | char * | pCameraName | ) |
Sets the default camera.
pCameraName | Name of the default camera. |
True
if camera name is valid, returns
false
if it is not valid.char* GetDefaultCamera | ( | ) | const |
Returns the default camera name.
void RestoreDefaultSettings | ( | ) |
Restores the default settings.
void SetDefaultViewingMode | ( | EViewingMode | pViewingMode | ) |
Sets the default viewing mode.
pViewingMode | Viewing mode to set(eSTANDARD, eXRAY or eMODELS_ONLY). |
EViewingMode GetDefaultViewingMode | ( | ) | const |
Returns the default viewing mode.
void CreateProducerCameras | ( | ) |
void DestroyProducerCameras | ( | ) |
Destroys the default Producer cameras.
bool IsProducerCamera | ( | KFbxCamera * | pCamera | ) | const |
Checks if the camera is a Producer camera.
pCamera | The camera to check. |
True
if it is a producer camera, returns
false
if it is not a producer camera.KFbxCameraSwitcher* GetCameraSwitcher | ( | ) | const |
Returns the Camera Switcher.
KFbxNodeAttribute::eCAMERA_SWITCHER
node attribute type.
This node is not saved when there is no camera in the scene. Nodes
inserted below are never saved. Camera indices start at 1. Out of
range indices are clamped between 1 and the number of cameras in
the scene. The index of a camera refers to its order of appearance
when searching the node tree depth first. If a camera is added or
removed after camera indices have been set, the camera indices must
be updated. It is easier to set camera indices once every camera
have been set. Camera index keys must be set using constant
interpolation to ensure that camera switches occur exactly at key
time.void SetCameraSwitcher | ( | KFbxCameraSwitcher * | pSwitcher | ) |
Sets the Camera Switcher.
pSwitcher | The Camera Switcher to be set. |
KFbxCamera* GetCameraProducerPerspective | ( | ) | const |
Returns a reference to the Producer perspective camera.
KFbxCamera* GetCameraProducerTop | ( | ) | const |
Returns a reference to the Producer top camera.
KFbxCamera* GetCameraProducerBottom | ( | ) | const |
Returns a reference to the Producer bottom camera.
KFbxCamera* GetCameraProducerFront | ( | ) | const |
Returns a reference to the Producer front camera.
KFbxCamera* GetCameraProducerBack | ( | ) | const |
Returns a reference to the Producer back camera.
KFbxCamera* GetCameraProducerRight | ( | ) | const |
Returns a reference to the Producer right camera.
KFbxCamera* GetCameraProducerLeft | ( | ) | const |
Returns a reference to the Producer left camera.
const KFbxGlobalCameraSettings& operator= | ( | const KFbxGlobalCameraSettings & | pGlobalCameraSettings | ) |
Assignment operator.
pGlobalCameraSettings | KFbxGlobalCameraSettings object assigned to this one. |
KError& GetError | ( | ) |
EError GetLastErrorID | ( | ) | const |
const char* GetLastErrorString | ( | ) | const |
Returns the last error string.
bool CopyProducerCamera | ( | KString | pCameraName, |
const KFbxCamera * | pCamera | ||
) | const |
int GetProducerCamerasCount | ( | ) | const [inline] |
friend class KFbxScene [friend] |
Definition at line 257 of file kfbxglobalcamerasettings.h.