Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

FbxGlobalSettings Class Reference

This reference page is linked to from the following overview topics: FBX SDK 2014, Supported Scene Elements, FBX Scenes, Lights, List of Python Fbx classes.


Search for all occurrences

Detailed Description

This class contains functions for accessing global settings.

Definition at line 27 of file fbxglobalsettings.h.

#include <fbxglobalsettings.h>

Inheritance diagram for FbxGlobalSettings:
Inheritance graph
[legend]

List of all members.

Classes

struct  TimeMarker

Public Member Functions

void SetOriginalUpAxis (const FbxAxisSystem &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 FbxObjectCopy (const FbxObject &pObject)
 Copy an object content into this object.

Protected Member Functions

virtual void Construct (const FbxGlobalSettings *pFrom)
virtual void ConstructProperties (bool pForceSet)
 Optional property constructor override, automatically called by default constructor.

Protected Attributes

FbxPropertyT< FbxIntUpAxis
FbxPropertyT< FbxIntUpAxisSign
FbxPropertyT< FbxIntFrontAxis
FbxPropertyT< FbxIntFrontAxisSign
FbxPropertyT< FbxIntCoordAxis
FbxPropertyT< FbxIntCoordAxisSign
FbxPropertyT< FbxIntOriginalUpAxis
FbxPropertyT< FbxIntOriginalUpAxisSign
FbxPropertyT< FbxDoubleUnitScaleFactor
FbxPropertyT< FbxDoubleOriginalUnitScaleFactor
FbxPropertyT< FbxDouble3AmbientColor
FbxPropertyT< FbxStringDefaultCamera
FbxPropertyT< FbxEnumTimeMode
FbxPropertyT< FbxEnumTimeProtocol
FbxPropertyT< FbxEnumSnapOnFrameMode
FbxPropertyT< FbxTimeTimeSpanStart
FbxPropertyT< FbxTimeTimeSpanStop
FbxPropertyT< FbxDoubleCustomFrameRate

Friends

class FbxWriterFbx6

Axis system

void SetAxisSystem (const FbxAxisSystem &pAxisSystem)
 Sets the scene's coordinate system.
FbxAxisSystem GetAxisSystem ()
 Returns the scene's current coordinate system.

System Units

void SetSystemUnit (const FbxSystemUnit &pOther)
 Sets the unit of measurement used by the system.
FbxSystemUnit GetSystemUnit () const
 Returns the unit of measurement used by the system.
void SetOriginalSystemUnit (const FbxSystemUnit &pOther)
 Sets the original unit of measurement used by the system.
FbxSystemUnit GetOriginalSystemUnit () const
 Returns the original unit of measurement used by the system.

Light Settings

void SetAmbientColor (FbxColor pAmbientColor)
 Sets the ambient color.
FbxColor GetAmbientColor () const
 Returns the ambient color.

Camera Settings

bool SetDefaultCamera (const char *pCameraName)
 Sets the default camera.
FbxString GetDefaultCamera () const
 Returns the default camera name.

Time Settings

enum  ESnapOnFrameMode { eNoSnap, eSnapOnFrame, ePlayOnFrame, eSnapAndPlayOnFrame }
 

Snap on frame mode.

More...
void SetTimeMode (FbxTime::EMode pTimeMode)
 Sets the time mode.
FbxTime::EMode GetTimeMode () const
 Returns the time mode.
void SetTimeProtocol (FbxTime::EProtocol pTimeProtocol)
 Sets the time protocol.
FbxTime::EProtocol GetTimeProtocol () const
 Returns the time protocol.
void SetSnapOnFrameMode (ESnapOnFrameMode pSnapOnFrameMode)
 Sets the snap on frame mode.
ESnapOnFrameMode GetSnapOnFrameMode () const
 Returns the snap on frame mode.
void SetTimelineDefaultTimeSpan (const FbxTimeSpan &pTimeSpan)
 Sets the default time span of the time line.
void GetTimelineDefaultTimeSpan (FbxTimeSpan &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 FbxTime::eCustom.

Time Markers

int GetTimeMarkerCount () const
 Returns the number of time markers.
TimeMarker GetTimeMarker (int pIndex, FbxStatus *pStatus=NULL) const
 Returns the time marker at the given index.
void AddTimeMarker (const TimeMarker &pTimeMarker, FbxStatus *pStatus=NULL)
 Adds a time marker.
void ReplaceTimeMarker (int pIndex, const TimeMarker &pTimeMarker, FbxStatus *pStatus=NULL)
 Replaces the time marker at the specified index with the new one.
void RemoveAllTimeMarkers ()
 Removes all time markers and sets the current time marker index to -1.
bool SetCurrentTimeMarker (int pIndex, FbxStatus *pStatus=NULL)
 Sets the index of the current time marker.
int GetCurrentTimeMarker () const
 Returns the current time marker index.

Member Enumeration Documentation

Snap on frame mode.

Enumerator:
eNoSnap 
eSnapOnFrame 

No snap.

ePlayOnFrame 

Snap on frame.

eSnapAndPlayOnFrame 

Play on frame.

Snap and play on frame.

Definition at line 149 of file fbxglobalsettings.h.


Member Function Documentation

void SetAxisSystem ( const FbxAxisSystem pAxisSystem)

Sets the scene's coordinate system.

Parameters:
pAxisSystemThe coordinate system to set.
FbxAxisSystem GetAxisSystem ( )

Returns the scene's current coordinate system.

Returns:
The scene's current coordinate system.
void SetOriginalUpAxis ( const FbxAxisSystem pAxisSystem)

Sets the coordinate system's original Up Axis when the scene is created.

Parameters:
pAxisSystemThe coordinate system whose Up Axis is copied.
int GetOriginalUpAxis ( ) const

Returns the coordinate system's original Up Axis.

Returns:
The coordinate system's original Up Axis when the scene is created. 0 is X, 1 is Y, 2 is Z axis.
void SetSystemUnit ( const FbxSystemUnit pOther)

Sets the unit of measurement used by the system.

Parameters:
pOtherThe system unit to set.
FbxSystemUnit GetSystemUnit ( ) const

Returns the unit of measurement used by the system.

Returns:
The unit of measurement used by the system.
void SetOriginalSystemUnit ( const FbxSystemUnit pOther)

Sets the original unit of measurement used by the system.

Parameters:
pOtherThe original system unit to set.
FbxSystemUnit GetOriginalSystemUnit ( ) const

Returns the original unit of measurement used by the system.

Returns:
The original unit of measurement used by the system.
void SetAmbientColor ( FbxColor  pAmbientColor)

Sets the ambient color.

Parameters:
pAmbientColorThe ambient color to set.
Remarks:
The ambient color only uses the RGB channels.
FbxColor GetAmbientColor ( ) const

Returns the ambient color.

Returns:
The ambient color.
bool SetDefaultCamera ( const char *  pCameraName)

Sets the default camera.

Parameters:
pCameraNameName of the default camera.
Returns:
true if camera name is valid, returns false if the camera does not have a valid name.
Remarks:
A valid camera name can be either one of the defined tokens (FBXSDK_CAMERA_PERSPECTIVE, FBXSDK_CAMERA_TOP, FBXSDK_CAMERA_FRONT, FBXSDK_CAMERA_BACK, FBXSDK_CAMERA_RIGHT, FBXSDK_CAMERA_LEFT and FBXSDK_CAMERA_BOTTOM) or the name of a camera inserted in the node tree under the scene's root node.
FbxString GetDefaultCamera ( ) const

Returns the default camera name.

Returns:
The default camera name, or an empty string if no camera name has been set.
void SetTimeMode ( FbxTime::EMode  pTimeMode)

Sets the time mode.

Parameters:
pTimeModeOne of the defined modes in class FbxTime.
FbxTime::EMode GetTimeMode ( ) const

Returns the time mode.

Returns:
The currently set TimeMode.
void SetTimeProtocol ( FbxTime::EProtocol  pTimeProtocol)

Sets the time protocol.

Parameters:
pTimeProtocolOne of the defined protocols in FbxTime class.
FbxTime::EProtocol GetTimeProtocol ( ) const

Returns the time protocol.

Returns:
The currently set time protocol (default FbxTime::eFrameCount).
void SetSnapOnFrameMode ( ESnapOnFrameMode  pSnapOnFrameMode)

Sets the snap on frame mode.

Parameters:
pSnapOnFrameModeOne of the following values: eNoSnap, eSnapOnFrame, ePlayOnFrame, or eSnapAndPlayOnFrame.
ESnapOnFrameMode GetSnapOnFrameMode ( ) const

Returns the snap on frame mode.

Returns:
The currently set snap on frame mode (default eNoSnap).
void SetTimelineDefaultTimeSpan ( const FbxTimeSpan pTimeSpan)

Sets the default time span of the time line.

Parameters:
pTimeSpanThe default time span of the time line.
void GetTimelineDefaultTimeSpan ( FbxTimeSpan pTimeSpan) const

Returns the default time span of the time line.

Parameters:
pTimeSpanThe default time span of the time line.
void SetCustomFrameRate ( double  pCustomFrameRate)

Set custom frame rate.

This is meaningless if the time mode is not FbxTime::eCustom.

double GetCustomFrameRate ( ) const

Return frame rate if the time mode is FbxTime::eCustom.

If the time mode is not FbxTime::eCustom, return -1.

int GetTimeMarkerCount ( ) const

Returns the number of time markers.

Returns:
The number of time markers.
TimeMarker GetTimeMarker ( int  pIndex,
FbxStatus pStatus = NULL 
) const

Returns the time marker at the given index.

Parameters:
pIndexThe time marker index.
pStatusThe FbxStatus object to hold error codes.
Returns:
A copy of the time marker at the given index, or an empty one if an error occurred.
void AddTimeMarker ( const TimeMarker pTimeMarker,
FbxStatus pStatus = NULL 
)

Adds a time marker.

Parameters:
pTimeMarkerThe new time marker to be added.
pStatusThe FbxStatus object to hold error codes.
void ReplaceTimeMarker ( int  pIndex,
const TimeMarker pTimeMarker,
FbxStatus pStatus = NULL 
)

Replaces the time marker at the specified index with the new one.

Parameters:
pIndexThe time marker index.
pTimeMarkerThe new time marker.
pStatusThe FbxStatus object to hold error codes.
void RemoveAllTimeMarkers ( )

Removes all time markers and sets the current time marker index to -1.

bool SetCurrentTimeMarker ( int  pIndex,
FbxStatus pStatus = NULL 
)

Sets the index of the current time marker.

Parameters:
pIndexThe current time marker index.
pStatusThe FbxStatus object to hold error codes.
Returns:
true if successful, or returns false if the index is not valid.
int GetCurrentTimeMarker ( ) const

Returns the current time marker index.

Returns:
The current time marker index, or -1 if no current time marker has been set.
virtual FbxObject& Copy ( const FbxObject pObject) [virtual]

Copy an object content into this object.

Parameters:
pObjectThe source object to copy data from.
Returns:
Returns the destination object being modified by the source.
Remarks:
This function replace the assignment operator (operator=). It will copy all property values and the name. Connections are NOT copied.

Reimplemented from FbxObject.

virtual void Construct ( const FbxGlobalSettings pFrom) [protected, virtual]
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.


Friends And Related Function Documentation

friend class FbxWriterFbx6 [friend]

Member Data Documentation

FbxPropertyT<FbxInt> UpAxis [protected]

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

FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings
FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings FbxGlobalSettings