This class contains functions for accessing global time settings.
Definition at line 58 of file kfbxglobaltimesettings.h.
#include <kfbxglobaltimesettings.h>
Classes |
|
struct | KFbxTimeMarker |
This is a struct to define time markers.
More... |
|
Public Types |
|
enum | ESnapOnFrameMode { eNO_SNAP, eSNAP_ON_FRAME, ePLAY_ON_FRAME, eSNAP_PLAY_ON_FRAME } |
Snap on frame mode. More... |
|
Public Member Functions |
|
KFBXNEW_DECLARE_FRIEND void | RestoreDefaultSettings () |
Restores the default settings. |
|
void | SetTimeMode (KTime::ETimeMode pTimeMode) |
Sets the time mode. |
|
KTime::ETimeMode | GetTimeMode () const |
Returns the time mode. |
|
void | SetTimeProtocol (KTime::ETimeProtocol pTimeProtocol) |
Sets the time protocol. |
|
KTime::ETimeProtocol | 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 KFbxGlobalTimeSettings & | operator= (const KFbxGlobalTimeSettings &pGlobalTimeSettings) |
Assignment operator. |
|
Friends |
|
class | KFbxScene |
Time span of time line |
|
void | SetTimelineDefautTimeSpan (const KTimeSpan &pTimeSpan) |
Sets the default time span of time line.
|
|
void | GetTimelineDefautTimeSpan (KTimeSpan &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.
|
|
KFbxTimeMarker * | GetTimeMarker (int pIndex) const |
Returns the time marker at the given index.
|
|
void | AddTimeMarker (KFbxTimeMarker pTimeMarker) |
Adds a time marker. |
|
void | RemoveAllTimeMarkers () |
Removes all time markers and sets the
current time marker index to -1. |
|
Error Management |
|
enum | EError { eINDEX_OUT_OF_RANGE, eERROR_COUNT } |
Error identifiers, most of these are only used internally. More... |
|
KError & | GetError () |
Retrieves the error object. |
|
EError | 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.
Definition at line 93 of file kfbxglobaltimesettings.h.
enum EError |
Error identifiers, most of these are only used internally.
Definition at line 213 of file kfbxglobaltimesettings.h.
KFBXNEW_DECLARE_FRIEND void RestoreDefaultSettings | ( | ) |
Restores the default settings.
void SetTimeMode | ( | KTime::ETimeMode | pTimeMode | ) |
Sets the time mode.
pTimeMode | One of the defined modes in KTime class. |
KTime::ETimeMode GetTimeMode | ( | ) | const |
void SetTimeProtocol | ( | KTime::ETimeProtocol | pTimeProtocol | ) |
Sets the time protocol.
pTimeProtocol | One of the defined protocols in KTime class. |
KTime::ETimeProtocol GetTimeProtocol | ( | ) | const |
void SetSnapOnFrameMode | ( | ESnapOnFrameMode | pSnapOnFrameMode | ) |
Sets the snap on frame mode.
pSnapOnFrameMode | One of the following values: eNO_SNAP, eSNAP_ON_FRAME, ePLAY_ON_FRAME, or eSNAP_PLAY_ON_FRAME. |
ESnapOnFrameMode GetSnapOnFrameMode | ( | ) | const |
Returns the snap on frame mode.
void SetTimelineDefautTimeSpan | ( | const KTimeSpan & | pTimeSpan | ) |
Sets the default time span of time line.
pTimeSpan | The time span of time line. |
void GetTimelineDefautTimeSpan | ( | KTimeSpan & | 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.
KFbxTimeMarker* 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 | ( | KFbxTimeMarker | 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 KFbxGlobalTimeSettings& operator= | ( | const KFbxGlobalTimeSettings & | pGlobalTimeSettings | ) |
Assignment operator.
pGlobalTimeSettings | KFbxGlobalTimeSettings object assigned to this one. |
KError& GetError | ( | ) |
EError 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
eSNAP_ON_FRAME. If false , snap on frame mode is set to
eNO_SNAP . |
bool GetSnapOnFrame | ( | ) | const |
Returns the snap on frame mode flag.
True
if the snap on frame mode is set to either
eSNAP_ON_FRAME or ePLAY_ON_FRAME, returns false
if the
snap on frame mode is set to eNO_SNAP
.friend class KFbxScene [friend] |
Definition at line 269 of file kfbxglobaltimesettings.h.