This reference page is linked to from the following overview topics: Supported Scene Elements, FBX Scenes, Lights, List of Python FBX classes.
This class contains functions for accessing global settings.
ExportScene03/main.cxx, ImportScene/DisplayGlobalSettings.cxx, ViewScene/main.cxx, and ViewScene/SetCamera.cxx.
Definition at line 34 of file kfbxglobalsettings.h.
#include <kfbxglobalsettings.h>
Public Member Functions |
|
void | SetOriginalUpAxis (const KFbxAxisSystem &pAxisSystem) |
Sets the coordinate system's original Up
Axis when the scene is created. |
|
int | GetOriginalUpAxis () const |
Returns the coordinate system's original Up
Axis. |
|
virtual KFbxObject & | Copy (const KFbxObject &pObject) |
Copy an object content into this object.
|
|
Protected Member Functions |
|
virtual void | Construct (const KFbxGlobalSettings *pFrom) |
virtual bool | ConstructProperties (bool pForceSet) |
Friends |
|
class | KFbxScene |
Axis system |
|
void | SetAxisSystem (const KFbxAxisSystem &pAxisSystem) |
Sets the scene's coordinate system. |
|
KFbxAxisSystem | GetAxisSystem () |
Returns the scene's current coordinate
system. |
|
System Units |
|
void | SetSystemUnit (const KFbxSystemUnit &pOther) |
Sets the unit of measurement used by the
system. |
|
KFbxSystemUnit | GetSystemUnit () const |
Returns the unit of measurement used by the
system. |
|
void | SetOriginalSystemUnit (const KFbxSystemUnit &pOther) |
Sets the original unit of measurement used
by the system. |
|
KFbxSystemUnit | GetOriginalSystemUnit () const |
Returns the original unit of measurement
used by the system. |
|
Light Settings |
|
void | SetAmbientColor (KFbxColor pAmbientColor) |
Sets the ambient color. |
|
KFbxColor | GetAmbientColor () const |
Returns the ambient color. |
|
Camera Settings |
|
static const char * | ePRODUCER_PERSPECTIVE |
Defined camera name: PRODUCER_PERSPECTIVE.
|
|
static const char * | ePRODUCER_TOP |
Defined camera name: PRODUCER_TOP. |
|
static const char * | ePRODUCER_FRONT |
Defined camera name: PRODUCER_FRONT.
|
|
static const char * | ePRODUCER_BACK |
Defined camera name: PRODUCER_BACK. |
|
static const char * | ePRODUCER_RIGHT |
Defined camera name: PRODUCER_RIGHT.
|
|
static const char * | ePRODUCER_LEFT |
Defined camera name: PRODUCER_LEFT. |
|
static const char * | ePRODUCER_BOTTOM |
Defined camera name: PRODUCER_BOTTOM.
|
|
bool | SetDefaultCamera (const char *pCameraName) |
Sets the default camera. |
|
KString | GetDefaultCamera () const |
Returns the default camera name. |
|
Time Settings |
|
void | SetTimeMode (KTime::ETimeMode pTimeMode) |
Sets the time mode. |
|
KTime::ETimeMode | GetTimeMode () const |
Returns the time mode. |
|
void | SetTimelineDefaultTimeSpan (const KTimeSpan &pTimeSpan) |
Sets the default time span of the time line.
|
|
void | GetTimelineDefaultTimeSpan (KTimeSpan &pTimeSpan) const |
Returns the default time span of the time
line. |
|
void | SetCustomFrameRate (double pCustomFrameRate) |
Set custom frame rate. |
|
double | GetCustomFrameRate () const |
Return frame rate if the time mode is
KTime::eCUSTOM. |
|
Properties |
|
KFbxTypedProperty< fbxInteger1 > | UpAxis |
KFbxTypedProperty< fbxInteger1 > | UpAxisSign |
KFbxTypedProperty< fbxInteger1 > | FrontAxis |
KFbxTypedProperty< fbxInteger1 > | FrontAxisSign |
KFbxTypedProperty< fbxInteger1 > | CoordAxis |
KFbxTypedProperty< fbxInteger1 > | CoordAxisSign |
KFbxTypedProperty< fbxInteger1 > | OriginalUpAxis |
KFbxTypedProperty< fbxInteger1 > | OriginalUpAxisSign |
KFbxTypedProperty< fbxDouble1 > | UnitScaleFactor |
KFbxTypedProperty< fbxDouble1 > | OriginalUnitScaleFactor |
KFbxTypedProperty< fbxDouble3 > | AmbientColor |
KFbxTypedProperty< fbxString > | DefaultCamera |
KFbxTypedProperty< fbxEnum > | TimeMode |
KFbxTypedProperty< fbxTime > | TimeSpanStart |
KFbxTypedProperty< fbxTime > | TimeSpanStop |
KFbxTypedProperty< fbxDouble1 > | CustomFrameRate |
void SetAxisSystem | ( | const KFbxAxisSystem & | pAxisSystem | ) |
Sets the scene's coordinate system.
pAxisSystem | The coordinate system to set. |
KFbxAxisSystem GetAxisSystem | ( | ) |
Returns the scene's current coordinate system.
void SetOriginalUpAxis | ( | const KFbxAxisSystem & | pAxisSystem | ) |
Sets the coordinate system's original Up Axis when the scene is created.
pAxisSystem | The coordinate system whose Up Axis is copied. |
int GetOriginalUpAxis | ( | ) | const |
Returns the coordinate system's original Up Axis.
void SetSystemUnit | ( | const KFbxSystemUnit & | pOther | ) |
Sets the unit of measurement used by the system.
pOther | The system unit to set. |
KFbxSystemUnit GetSystemUnit | ( | ) | const |
Returns the unit of measurement used by the system.
void SetOriginalSystemUnit | ( | const KFbxSystemUnit & | pOther | ) |
Sets the original unit of measurement used by the system.
pOther | The original system unit to set. |
KFbxSystemUnit GetOriginalSystemUnit | ( | ) | const |
Returns the original unit of measurement used by the system.
void SetAmbientColor | ( | KFbxColor | pAmbientColor | ) |
Sets the ambient color.
pAmbientColor | The ambient color to set. |
KFbxColor GetAmbientColor | ( | ) | const |
Returns the ambient color.
bool SetDefaultCamera | ( | const char * | pCameraName | ) |
Sets the default camera.
pCameraName | Name of the default camera. |
true
if camera name is valid, returns
false
if the camera does not have a valid name.KString GetDefaultCamera | ( | ) | const |
Returns the default camera name.
void SetTimeMode | ( | KTime::ETimeMode | pTimeMode | ) |
Sets the time mode.
pTimeMode | One of the defined modes in class KTime. |
KTime::ETimeMode GetTimeMode | ( | ) | const |
Returns the time mode.
void SetTimelineDefaultTimeSpan | ( | const KTimeSpan & | pTimeSpan | ) |
Sets the default time span of the time line.
pTimeSpan | The default time span of the time line. |
void GetTimelineDefaultTimeSpan | ( | KTimeSpan & | pTimeSpan | ) | const |
Returns the default time span of the time line.
pTimeSpan | The default time span of the time line. |
void SetCustomFrameRate | ( | double | pCustomFrameRate | ) |
Set custom frame rate.
This is meaningless if the time mode is not KTime::eCUSTOM.
double GetCustomFrameRate | ( | ) | const |
Return frame rate if the time mode is KTime::eCUSTOM.
If the time mode is not KTime::eCUSTOM, return -1.
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.
virtual void Construct | ( | const KFbxGlobalSettings * | pFrom | ) | [protected, virtual] |
virtual bool ConstructProperties | ( | bool | pForceSet | ) | [protected, virtual] |
Reimplemented from KFbxObject.
friend class KFbxScene [friend] |
Reimplemented from KFbxObject.
Definition at line 241 of file kfbxglobalsettings.h.
const char*
ePRODUCER_PERSPECTIVE [static] |
Defined camera name: PRODUCER_PERSPECTIVE.
Definition at line 117 of file kfbxglobalsettings.h.
const char*
ePRODUCER_TOP [static] |
Defined camera name: PRODUCER_TOP.
Definition at line 120 of file kfbxglobalsettings.h.
const char*
ePRODUCER_FRONT [static] |
Defined camera name: PRODUCER_FRONT.
Definition at line 123 of file kfbxglobalsettings.h.
const char*
ePRODUCER_BACK [static] |
Defined camera name: PRODUCER_BACK.
Definition at line 126 of file kfbxglobalsettings.h.
const char*
ePRODUCER_RIGHT [static] |
Defined camera name: PRODUCER_RIGHT.
Definition at line 129 of file kfbxglobalsettings.h.
const char*
ePRODUCER_LEFT [static] |
Defined camera name: PRODUCER_LEFT.
Definition at line 132 of file kfbxglobalsettings.h.
const char*
ePRODUCER_BOTTOM [static] |
Defined camera name: PRODUCER_BOTTOM.
Definition at line 135 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
UpAxis [protected] |
Definition at line 193 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
UpAxisSign [protected] |
Definition at line 194 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
FrontAxis [protected] |
Definition at line 196 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
FrontAxisSign [protected] |
Definition at line 197 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
CoordAxis [protected] |
Definition at line 199 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
CoordAxisSign [protected] |
Definition at line 200 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
OriginalUpAxis [protected] |
Definition at line 202 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxInteger1>
OriginalUpAxisSign [protected] |
Definition at line 203 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxDouble1>
UnitScaleFactor [protected] |
Definition at line 205 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxDouble1>
OriginalUnitScaleFactor [protected] |
Definition at line 206 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxDouble3>
AmbientColor [protected] |
Definition at line 208 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxString>
DefaultCamera [protected] |
Definition at line 209 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxEnum>
TimeMode [protected] |
Definition at line 210 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxTime>
TimeSpanStart [protected] |
Definition at line 211 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxTime>
TimeSpanStop [protected] |
Definition at line 212 of file kfbxglobalsettings.h.
KFbxTypedProperty<fbxDouble1>
CustomFrameRate [protected] |
Definition at line 213 of file kfbxglobalsettings.h.