FBX C++ API Reference
fbxtime.h File Reference

Classes

class  FbxTime
 Class to encapsulate time units. More...
 
class  FbxTimeSpan
 Class to encapsulate time intervals. More...
 
class  FbxLocalTime
 

Macros

#define FBXSDK_TIME_INFINITE   FbxTime(FBXSDK_TC_INFINITY)
 
#define FBXSDK_TIME_MINUS_INFINITE   FbxTime(FBXSDK_TC_MINFINITY)
 
#define FBXSDK_TIME_ZERO   FbxTime(FBXSDK_TC_ZERO)
 
#define FBXSDK_TIME_EPSILON   FbxTime(FBXSDK_TC_EPSILON)
 
#define FBXSDK_TIME_ONE_SECOND   FbxTime(FBXSDK_TC_SECOND)
 
#define FBXSDK_TIME_ONE_MINUTE   FbxTime(FBXSDK_TC_MINUTE)
 
#define FBXSDK_TIME_ONE_HOUR   FbxTime(FBXSDK_TC_HOUR)
 
#define FBXSDK_TIME_ASSERT_EPSILON   0.5
 
#define FBXSDK_TIME_FORWARD   1
 
#define FBXSDK_TIME_BACKWARD   -1
 

Functions

FbxTime FbxTimeSeconds (const FbxDouble &pTime=0.0)
 FbxTime in seconds constructor. More...
 
void FbxGetCurrentLocalTime (FbxLocalTime &pLocalTime)
 
FbxTime::EMode FbxGetGlobalTimeMode ()
 
FbxTimeModeObject * FbxGetGlobalTimeModeObject ()
 
FbxTime::EProtocol FbxGetGlobalTimeFormat ()
 
void FbxSetGlobalTimeMode (FbxTime::EMode pTimeMode, double pFrameRate=0.0)
 
void FbxSetGlobalTimeFormat (FbxTime::EProtocol pTimeFormat)
 
FbxTime::EOldMode FbxGetOldTimeModeCorrespondance (FbxTime::EMode pMode)
 
FbxTime::EMode FbxGetTimeModeFromOldValue (FbxTime::EOldMode pOldMode)
 
FbxTime::EMode FbxGetTimeModeFromFrameRate (char *pFrameRate)
 
void FbxGetControlStringList (char *pControlString, FbxTime::EProtocol pTimeFormat)
 
const char * FbxGetGlobalFrameRateString (FbxTime::EMode pTimeMode)
 
const char * FbxGetGlobalTimeModeString (FbxTime::EMode pTimeMode)
 
double FbxGetFrameRate (FbxTime::EMode pTimeMode)
 
FbxTime::EProtocol FbxSelectionToTimeFormat (int pSelection)
 
FbxTime::EMode FbxSelectionToTimeMode (int pSelection)
 
int FbxTimeToSelection (FbxTime::EMode pTimeMode=FbxTime::eDefaultMode, int pTimeFormat=FbxTime::eDefaultProtocol)
 
const char * FbxGetTimeModeName (FbxTime::EMode pTimeMode)
 
int FbxGetFrameRateStringListIndex (FbxTime::EMode pTimeMode)
 
bool FbxIsValidCustomFrameRate (double pFramerate)
 
bool FbxGetNearestCustomFrameRate (double pFramerate, double &pNearestRate)
 

Macro Definition Documentation

◆ FBXSDK_TIME_INFINITE

#define FBXSDK_TIME_INFINITE   FbxTime(FBXSDK_TC_INFINITY)
Examples:
ViewScene/SceneContext.cxx.

Definition at line 23 of file fbxtime.h.

◆ FBXSDK_TIME_MINUS_INFINITE

#define FBXSDK_TIME_MINUS_INFINITE   FbxTime(FBXSDK_TC_MINFINITY)
Examples:
ViewScene/SceneContext.cxx.

Definition at line 24 of file fbxtime.h.

◆ FBXSDK_TIME_ZERO

#define FBXSDK_TIME_ZERO   FbxTime(FBXSDK_TC_ZERO)

◆ FBXSDK_TIME_EPSILON

#define FBXSDK_TIME_EPSILON   FbxTime(FBXSDK_TC_EPSILON)

Definition at line 26 of file fbxtime.h.

◆ FBXSDK_TIME_ONE_SECOND

#define FBXSDK_TIME_ONE_SECOND   FbxTime(FBXSDK_TC_SECOND)
Examples:
Animation/main.cxx, and Audio/main.cxx.

Definition at line 27 of file fbxtime.h.

◆ FBXSDK_TIME_ONE_MINUTE

#define FBXSDK_TIME_ONE_MINUTE   FbxTime(FBXSDK_TC_MINUTE)

Definition at line 28 of file fbxtime.h.

◆ FBXSDK_TIME_ONE_HOUR

#define FBXSDK_TIME_ONE_HOUR   FbxTime(FBXSDK_TC_HOUR)

Definition at line 29 of file fbxtime.h.

◆ FBXSDK_TIME_ASSERT_EPSILON

#define FBXSDK_TIME_ASSERT_EPSILON   0.5

Definition at line 30 of file fbxtime.h.

◆ FBXSDK_TIME_FORWARD

#define FBXSDK_TIME_FORWARD   1

Definition at line 31 of file fbxtime.h.

◆ FBXSDK_TIME_BACKWARD

#define FBXSDK_TIME_BACKWARD   -1

Definition at line 32 of file fbxtime.h.

Function Documentation

◆ FbxTimeSeconds()

FbxTime FbxTimeSeconds ( const FbxDouble pTime = 0.0)
inline

FbxTime in seconds constructor.

Parameters
pTime

Definition at line 497 of file fbxtime.h.

498 {
499  FbxTime lTime;
500  lTime.SetSecondDouble(pTime);
501  return lTime;
502 }
void SetSecondDouble(double pTime)
Set time in seconds.
Class to encapsulate time units.
Definition: fbxtime.h:44

◆ FbxGetCurrentLocalTime()

void FbxGetCurrentLocalTime ( FbxLocalTime pLocalTime)

◆ FbxGetGlobalTimeMode()

FbxTime::EMode FbxGetGlobalTimeMode ( )

◆ FbxGetGlobalTimeModeObject()

FbxTimeModeObject* FbxGetGlobalTimeModeObject ( )

◆ FbxGetGlobalTimeFormat()

FbxTime::EProtocol FbxGetGlobalTimeFormat ( )

◆ FbxSetGlobalTimeMode()

void FbxSetGlobalTimeMode ( FbxTime::EMode  pTimeMode,
double  pFrameRate = 0.0 
)

◆ FbxSetGlobalTimeFormat()

void FbxSetGlobalTimeFormat ( FbxTime::EProtocol  pTimeFormat)

◆ FbxGetOldTimeModeCorrespondance()

FbxTime::EOldMode FbxGetOldTimeModeCorrespondance ( FbxTime::EMode  pMode)

◆ FbxGetTimeModeFromOldValue()

FbxTime::EMode FbxGetTimeModeFromOldValue ( FbxTime::EOldMode  pOldMode)

◆ FbxGetTimeModeFromFrameRate()

FbxTime::EMode FbxGetTimeModeFromFrameRate ( char *  pFrameRate)

◆ FbxGetControlStringList()

void FbxGetControlStringList ( char *  pControlString,
FbxTime::EProtocol  pTimeFormat 
)

◆ FbxGetGlobalFrameRateString()

const char* FbxGetGlobalFrameRateString ( FbxTime::EMode  pTimeMode)

◆ FbxGetGlobalTimeModeString()

const char* FbxGetGlobalTimeModeString ( FbxTime::EMode  pTimeMode)

◆ FbxGetFrameRate()

double FbxGetFrameRate ( FbxTime::EMode  pTimeMode)

◆ FbxSelectionToTimeFormat()

FbxTime::EProtocol FbxSelectionToTimeFormat ( int  pSelection)

◆ FbxSelectionToTimeMode()

FbxTime::EMode FbxSelectionToTimeMode ( int  pSelection)

◆ FbxTimeToSelection()

int FbxTimeToSelection ( FbxTime::EMode  pTimeMode = FbxTime::eDefaultMode,
int  pTimeFormat = FbxTime::eDefaultProtocol 
)

◆ FbxGetTimeModeName()

const char* FbxGetTimeModeName ( FbxTime::EMode  pTimeMode)

◆ FbxGetFrameRateStringListIndex()

int FbxGetFrameRateStringListIndex ( FbxTime::EMode  pTimeMode)

◆ FbxIsValidCustomFrameRate()

bool FbxIsValidCustomFrameRate ( double  pFramerate)

◆ FbxGetNearestCustomFrameRate()

bool FbxGetNearestCustomFrameRate ( double  pFramerate,
double &  pNearestRate 
)

Go to the source code of this file.