#include<kfbxglobalcamerasettings.h>
Definition at line78of filekfbxglobalcamerasettings.h.
Default viewing settings Camera | |
enum | EViewingMode |
Viewing modes.More... | |
bool | SetDefaultCamera(char *pCameraName) |
Set the default camera. | |
char * | GetDefaultCamera() |
Get default camera name. | |
void | RestoreDefaultSettings() |
Restore default settings. | |
void | SetDefaultViewingMode(EViewingModepViewingMode) |
Set default viewing mode. | |
EViewingMode | GetDefaultViewingMode() |
Get default viewing mode. | |
Error Management | |
The same error object is shared among instances of this class. | |
enum | EError |
Error identifiers Most of these are only used internally.More... | |
KError& | GetError() |
Retrieve error object. | |
EError | GetLastErrorID() const |
Get last error code. | |
const char * | GetLastErrorString() const |
Get last error string. | |
Producer Cameras | |
Producer cameras are global cameras used in MotionBuilder to view the scene. They are not animatable but their default position can be set. | |
void | CreateProducerCameras() |
Create the default producer cameras. | |
void | DestroyProducerCameras() |
Destroy the default producer cameras. | |
bool | IsProducerCamera(KFbxCamera*pCamera) |
Check if the camera is one of the producer cameras. | |
KFbxCameraSwitcher* | GetCameraSwitcher() |
Get the camera switcher node. | |
void | SetCameraSwitcher(KFbxCameraSwitcher*pSwitcher) |
Set the camera the camera switcher. | |
KFbxCamera* | GetCameraProducerPerspective() |
Get a reference to producer perspective camera. | |
KFbxCamera* | GetCameraProducerTop() |
Get a reference to producer top camera. | |
KFbxCamera* | GetCameraProducerBottom() |
Get a reference to producer bottom camera. | |
KFbxCamera* | GetCameraProducerFront() |
Get reference to producer front camera. | |
KFbxCamera* | GetCameraProducerBack() |
Get reference to producer back camera. | |
KFbxCamera* | GetCameraProducerRight() |
Get reference to producer right camera. | |
KFbxCamera* | GetCameraProducerLeft() |
Get reference to producer left camera. | |
Public Member Functions | |
constKFbxGlobalCameraSettings& | operator=(constKFbxGlobalCameraSettings&pGlobalCameraSettings) |
Assignment operator. |
enumEViewingMode |
enumEError |
Error identifiers Most of these are only used internally.
Definition at line228of filekfbxglobalcamerasettings.h.
bool SetDefaultCamera | ( | char * | pCameraName | ) |
Set the default camera.
pCameraName | Name of the default camera. |
true
if camera name is valid,false
otherwise.char* GetDefaultCamera | ( | ) |
Get default camera name.
void RestoreDefaultSettings | ( | ) |
Restore default settings.
void SetDefaultViewingMode | ( | EViewingMode | pViewingMode | ) |
Set default viewing mode.
pViewingMode | Set default viewing mode to either eSTANDARD, eXRAY or eMODELS_ONLY. |
EViewingModeGetDefaultViewingMode | ( | ) |
Get default viewing mode.
void CreateProducerCameras | ( | ) |
Create the default producer cameras.
void DestroyProducerCameras | ( | ) |
Destroy the default producer cameras.
bool IsProducerCamera | ( | KFbxCamera* | pCamera | ) |
Check if the camera is one of the producer cameras.
KFbxCameraSwitcher* GetCameraSwitcher | ( | ) |
Get the camera switcher node.
KFbxNodeAttribute::eCAMERA_SWITCHER
. This node isn't saved if the scene contains no camera. Nodes inserted below are never saved.Use functionKFbxTakeNode::GetCameraIndex()to get and set the camera index. If a camera is added or removed after camera indices have been set, the camera indices must be updated. It's much simpler to set the camera indices once all cameras have been set.
Camera index keys must be set with constant interpolation to make sure camera switches occur exaclty at key time.
void SetCameraSwitcher | ( | KFbxCameraSwitcher* | pSwitcher | ) |
Set the camera the camera switcher.
KFbxCamera* GetCameraProducerPerspective | ( | ) |
Get a reference to producer perspective camera.
KFbxCamera* GetCameraProducerTop | ( | ) |
Get a reference to producer top camera.
KFbxCamera* GetCameraProducerBottom | ( | ) |
Get a reference to producer bottom camera.
KFbxCamera* GetCameraProducerFront | ( | ) |
Get reference to producer front camera.
KFbxCamera* GetCameraProducerBack | ( | ) |
Get reference to producer back camera.
KFbxCamera* GetCameraProducerRight | ( | ) |
Get reference to producer right camera.
KFbxCamera* GetCameraProducerLeft | ( | ) |
Get reference to producer left camera.
constKFbxGlobalCameraSettings&operator= | ( | constKFbxGlobalCameraSettings& | pGlobalCameraSettings | ) |
Assignment operator.
KError&GetError | ( | ) |
Retrieve error object.
EErrorGetLastErrorID | ( | ) | const |
Get last error code.
const char* GetLastErrorString | ( | ) | const |
Get last error string.