This class contains functions for accessing global time settings.
Definition at line 33 of file fbxglobaltimesettings.h.
#include <fbxglobaltimesettings.h>
Classes |
|
| struct | TimeMarker |
| This is a struct to define time markers.
More... |
|
Public Types |
|
| enum | ESnapOnFrameMode { eNoSnap, eSnapOnFrame, ePlayOnFrame, eSnapAndPlayOnFrame } |
|
Snap on frame mode. More... |
|
Public Member Functions |
|
| FBXSDK_FRIEND_NEW () | |
| void | RestoreDefaultSettings () |
| Restores the default settings. |
|
| 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. |
|
| const FbxGlobalTimeSettings & | operator= (const FbxGlobalTimeSettings &pGlobalTimeSettings) |
| Assignment operator. |
|
Friends |
|
| class | FbxScene |
Time span of time line |
|
| void | SetTimelineDefautTimeSpan (const FbxTimeSpan &pTimeSpan) |
| Sets the default time span of time line.
|
|
| void | GetTimelineDefautTimeSpan (FbxTimeSpan &pTimeSpan) const |
| Returns the default time span of time line.
|
|
Time Markers |
|
| int | GetTimeMarkerCount () const |
| Returns the number of time markers. |
|
| bool | SetCurrentTimeMarker (int pIndex) |
| Sets the index of the current time marker.
|
|
| int | GetCurrentTimeMarker () const |
| Returns the current time marker index.
|
|
| TimeMarker * | GetTimeMarker (int pIndex) const |
| Returns the time marker at the given index.
|
|
| void | AddTimeMarker (TimeMarker pTimeMarker) |
| Adds a time marker. |
|
| void | RemoveAllTimeMarkers () |
| Removes all time markers and sets the
current time marker index to -1. |
|
Error Management |
|
| enum | EErrorCode { eIndexOutOfRange, eErrorCount } |
|
Error identifiers, most of these are only used internally. More... |
|
| FbxError & | GetError () |
| Retrieves the error object. |
|
| EErrorCode | GetLastErrorID () const |
| Returns the last error code. |
|
| const char * | GetLastErrorString () const |
| Returns the last error string. |
|
Obsolete Functions |
|
| These functions still
work but are no longer relevant. |
|
| void | SetSnapOnFrame (bool pSnapOnFrame) |
| Sets the snap on frame mode flag. |
|
| bool | GetSnapOnFrame () const |
| Returns the snap on frame mode flag.
|
|
| enum ESnapOnFrameMode |
Snap on frame mode.
| eNoSnap | |
| eSnapOnFrame |
No snap. |
| ePlayOnFrame |
Snap on frame. |
| eSnapAndPlayOnFrame |
Play on frame. Snap and play on frame. |
Definition at line 64 of file fbxglobaltimesettings.h.
| enum EErrorCode |
Error identifiers, most of these are only used internally.
Definition at line 184 of file fbxglobaltimesettings.h.
{
eIndexOutOfRange,
eErrorCount
};
| FBXSDK_FRIEND_NEW | ( | ) |
| void RestoreDefaultSettings | ( | ) |
Restores the default settings.
| void SetTimeMode | ( | FbxTime::EMode | pTimeMode | ) |
Sets the time mode.
| pTimeMode | One of the defined modes in FbxTime class. |
| FbxTime::EMode GetTimeMode | ( | ) | const |
| void SetTimeProtocol | ( | FbxTime::EProtocol | pTimeProtocol | ) |
Sets the time protocol.
| pTimeProtocol | One of the defined protocols in FbxTime class. |
| FbxTime::EProtocol GetTimeProtocol | ( | ) | const |
| void SetSnapOnFrameMode | ( | ESnapOnFrameMode | pSnapOnFrameMode | ) |
Sets the snap on frame mode.
| pSnapOnFrameMode | One of the following values: eNoSnap, eSnapOnFrame, ePlayOnFrame, or eSnapAndPlayOnFrame. |
| ESnapOnFrameMode GetSnapOnFrameMode | ( | ) | const |
Returns the snap on frame mode.
| void SetTimelineDefautTimeSpan | ( | const FbxTimeSpan & | pTimeSpan | ) |
Sets the default time span of time line.
| pTimeSpan | The time span of time line. |
| void GetTimelineDefautTimeSpan | ( | FbxTimeSpan & | pTimeSpan | ) | const |
Returns the default time span of time line.
| pTimeSpan | Holds the default time span of time line. |
| int GetTimeMarkerCount | ( | ) | const |
| bool SetCurrentTimeMarker | ( | int | pIndex | ) |
Sets the index of the current time marker.
| pIndex | The current time marker index. |
True if successful, or returns false
if the index is not valid.| int GetCurrentTimeMarker | ( | ) | const |
Returns the current time marker index.
| TimeMarker* GetTimeMarker | ( | int | pIndex | ) | const |
Returns the time marker at the given index.
| pIndex | The time marker index. |
NULL if the index is out of range.| void AddTimeMarker | ( | TimeMarker | pTimeMarker | ) |
Adds a time marker.
| pTimeMarker | The new time marker to be added. |
| void RemoveAllTimeMarkers | ( | ) |
Removes all time markers and sets the current time marker index to -1.
| const FbxGlobalTimeSettings& operator= | ( | const FbxGlobalTimeSettings & | pGlobalTimeSettings | ) |
Assignment operator.
| pGlobalTimeSettings | FbxGlobalTimeSettings object assigned to this one. |
| FbxError& GetError | ( | ) |
| EErrorCode GetLastErrorID | ( | ) | const |
| const char* GetLastErrorString | ( | ) | const |
Returns the last error string.
| void SetSnapOnFrame | ( | bool | pSnapOnFrame | ) |
Sets the snap on frame mode flag.
| pSnapOnFrame | If true, snap on frame mode is set to
eSnapOnFrame. If false, snap on frame mode is set to
eNoSnap. |
| bool GetSnapOnFrame | ( | ) | const |
Returns the snap on frame mode flag.
True if the snap on frame mode is set to either
eSnapOnFrame or ePlayOnFrame, returns false if the
snap on frame mode is set to eNoSnap.friend class FbxScene [friend] |
Definition at line 240 of file fbxglobaltimesettings.h.