KFbxGlobalTimeSettings
#include<kfbxglobaltimesettings.h>

List of all members.

Detailed Description

This class contains functions for accessing global time settings.

Definition at line65of filekfbxglobaltimesettings.h.


Error Management

enum EError
 Error identifiers.More...
KErrorGetError()
 Retrieve error object.
EError GetLastErrorID() const
 Get last error code.
const char * GetLastErrorString() const
 Get last error string.

Timeline Time span

void SetTimelineDefautTimeSpan(constKTimeSpan&pTimeSpan)
 Set Timeline default time span.
void GetTimelineDefautTimeSpan(KTimeSpan&pTimeSpan) const
 Get Timeline default time span.

Time Markers

int GetTimeMarkerCount()
 Get number of time markers.
bool SetCurrentTimeMarker(int pIndex)
 Set current time marker index.
int GetCurrentTimeMarker()
 Get current time marker index.
KFbxTimeMarker * GetTimeMarker(int pIndex)
 Get time marker at given index.
void AddTimeMarker(KFbxTimeMarker pTimeMarker)
 Add a time marker.
void RemoveAllTimeMarkers()
 Remove all time markers and set current time marker to -1.

Obsolete Functions

These functions still work but are no longer relevant.

void SetSnapOnFrame(bool pSnapOnFrame)
 Set snap on frame flag.
bool GetSnapOnFrame()
 Get snap on frame flag.

Public Types

enum ESnapOnFrameMode
 Snap on frame mode
  • eNO_SNAP
  • eSNAP_ON_FRAME
  • ePLAY_ON_FRAME
  • eSNAP_PLAY_ON_FRAME.
More...

Public Member Functions

void RestoreDefaultSettings()
 Restore default settings.
void SetTimeMode(KTime::ETimeModepTimeMode)
 Set time mode.
KTime::ETimeMode GetTimeMode()
 Get time mode.
void SetTimeProtocol(KTime::ETimeProtocolpTimeProtocol)
 Set time protocol.
KTime::ETimeProtocol GetTimeProtocol()
 Get time protocol.
void SetSnapOnFrameMode(ESnapOnFrameModepSnapOnFrameMode)
 Set snap on frame mode.
ESnapOnFrameMode GetSnapOnFrameMode()
 Get snap on frame mode.
constKFbxGlobalTimeSettingsoperator=(constKFbxGlobalTimeSettings&pGlobalTimeSettings)
 Assignment operator.

Member Enumeration Documentation

Snap on frame mode

  • eNO_SNAP
  • eSNAP_ON_FRAME
  • ePLAY_ON_FRAME
  • eSNAP_PLAY_ON_FRAME.

Definition at line99of filekfbxglobaltimesettings.h.

enumEError

Error identifiers.

Most of these are only used internally.

  • eINDEX_OUT_OF_RANGE
  • eERROR_COUNT

Definition at line202of filekfbxglobaltimesettings.h.

Member Function Documentation

void RestoreDefaultSettings( ) 

Restore default settings.

void SetTimeMode(KTime::ETimeMode pTimeMode ) 

Set time mode.

Parameters:
pTimeMode One of the defined modes in classKTime.

KTime::ETimeModeGetTimeMode( ) 

Get time mode.

Returns:
The currently set TimeMode.

void SetTimeProtocol(KTime::ETimeProtocol pTimeProtocol ) 

Set time protocol.

Parameters:
pTimeProtocol One of the defined protocols in classKTime.

KTime::ETimeProtocolGetTimeProtocol( ) 

Get time protocol.

Returns:
The currently set TimeProtocol.

void SetSnapOnFrameMode(ESnapOnFrameMode pSnapOnFrameMode ) 

Set snap on frame mode.

Parameters:
pSnapOnFrameMode One of the following values: eNO_SNAP, eSNAP_ON_FRAME, ePLAY_ON_FRAME, or eSNAP_PLAY_ON_FRAME.

ESnapOnFrameModeGetSnapOnFrameMode( ) 

Get snap on frame mode.

Returns:
The currently set FrameMode.

void SetTimelineDefautTimeSpan(constKTimeSpanpTimeSpan ) 

Set Timeline default time span.

Parameters:
pTimeSpan The time span of the time line.

void GetTimelineDefautTimeSpan(KTimeSpanpTimeSpan ) const

Get Timeline default time span.

Parameters:
pTimeSpan return the default time span for the time line.

int GetTimeMarkerCount( ) 

Get number of time markers.

Returns:
The number of time markers.

bool SetCurrentTimeMarker(int pIndex ) 

Set current time marker index.

Parameters:
pIndex Current time marker index.
Returns:
trueif successful, orfalseif pIndex is invalid.
Remarks:
If pIndex is invalid,KFbxGlobalTimeSettings::GetLastErrorID()returns eINDEX_OUT_OF_RANGE.

int GetCurrentTimeMarker( ) 

Get current time marker index.

Returns:
Current time marker index, or -1 if the current time marker has not been set.

KFbxTimeMarker* GetTimeMarker(int pIndex ) 

Get time marker at given index.

Parameters:
pIndex Time marker index.
Returns:
Pointer to the time marker at pIndex, orNULLif the index is out of range.
Remarks:
If pIndex is out of range,KFbxGlobalTimeSettings::GetLastErrorID()returns eINDEX_OUT_OF_RANGE.

void AddTimeMarker(KFbxTimeMarker pTimeMarker ) 

Add a time marker.

Parameters:
pTimeMarker New time marker.

void RemoveAllTimeMarkers( ) 

Remove all time markers and set current time marker to -1.

constKFbxGlobalTimeSettings&operator=(constKFbxGlobalTimeSettingspGlobalTimeSettings ) 

Assignment operator.

KError&GetError( ) 

Retrieve error object.

Returns:
Reference to error object.

EErrorGetLastErrorID( ) const

Get last error code.

Returns:
Last error code.

const char* GetLastErrorString( ) const

Get last error string.

Returns:
Textual description of the last error.

void SetSnapOnFrame(bool pSnapOnFrame ) 

Set snap on frame flag.

Parameters:
pSnapOnFrame Iftrue, snap on frame mode is set to eSNAP_ON_FRAME. Iffalse, snap on frame mode is set toeNO_SNAP.
Remarks:
This function is replaced byKFbxGlobalTimeSettings::SetSnapOnFrameMode().

bool GetSnapOnFrame( ) 

Get snap on frame flag.

Returns:
trueif snap on frame mode is set to either eSNAP_ON_FRAME or ePLAY_ON_FRAME.falseif snap on frame mode is set toeNO_SNAP.
Remarks:
This function is replaced byKFbxGlobalTimeSettings::GetSnapOnFrameMode().