FBTime Class Reference

#include <mobu-python-api.h>

Class Description

Time data structure.

+ Inheritance diagram for FBTime:

Public Member Functions

 __reduce__ ()
 
 __init__ (...)
 
str __repr__ (FBTime arg1)
 
int Get (FBTime arg1)
 
int GetFrame (FBTime arg1, FBTimeMode arg2)
 Get the frame count. More...
 
 SetFrame (FBTime arg1, object arg2, FBTimeMode arg3)
 Set time in frame format. More...
 
int GetMilliSeconds (FBTime arg1)
 Get milliseconds for time. More...
 
float GetSecondDouble (FBTime arg1)
 Get seconds as double. More...
 
str GetTimeString (FBTime arg1, FBTimeMode arg2, ETimeFormats arg3)
 Get time as a string. More...
 
 Set (FBTime arg1, object arg2)
 Set time value from a long. More...
 
 SetMilliSeconds (FBTime arg1, object arg2)
 Set milliseconds time. More...
 
 SetSecondDouble (FBTime arg1, object arg2)
 Set seconds from double. More...
 
 SetTime (FBTime arg1, object arg2, object arg3, object arg4, object arg5, object arg6, FBTimeMode arg7)
 Set time (from separate values) More...
 
 SetTimeString (FBTime arg1, str arg2)
 Set time from string. More...
 
 __add__ (...)
 
 __sub__ (...)
 
object __eq__ (FBTime arg1, FBTime arg2)
 
object __ne__ (FBTime arg1, FBTime arg2)
 
object __gt__ (FBTime arg1, FBTime arg2)
 
object __ge__ (FBTime arg1, FBTime arg2)
 
object __lt__ (FBTime arg1, FBTime arg2)
 
object __le__ (FBTime arg1, FBTime arg2)
 

Public Attributes

const ORSDK2018::FBTime MinusInfinity
 Time constant: Minus Infinity, the lowest negative time value. More...
 
const ORSDK2018::FBTime Zero
 Time constant: Zero. More...
 
const ORSDK2018::FBTime OneSecond
 Time constant: One Second. More...
 
const ORSDK2018::FBTime OneMinute
 Time constant: One Minute. More...
 
const ORSDK2018::FBTime OneHour
 Time constant: One Hour. More...
 
const ORSDK2018::FBTime Infinity
 Time constant: Infinity, the largest time value. More...
 

Member Function Documentation

__add__ (   ...)

Python Docstring:

__add__( (FBTime)arg1, (FBTime)arg2) -> object

__add__( (FBTime)arg1, (object)arg2) -> object 
object __eq__ ( FBTime  arg1,
FBTime  arg2 
)

Python Docstring:

__eq__( (FBTime)arg1, (FBTime)arg2) -> object 
object __ge__ ( FBTime  arg1,
FBTime  arg2 
)

Python Docstring:

__ge__( (FBTime)arg1, (FBTime)arg2) -> object 
object __gt__ ( FBTime  arg1,
FBTime  arg2 
)

Python Docstring:

__gt__( (FBTime)arg1, (FBTime)arg2) -> object 
__init__ (   ...)

Python Docstring:

__init__( (object)arg1 [, (object)arg2]) -> None

__init__( (object)arg1, (object)arg2, (object)arg3 [, (object)arg4 [, (object)arg5 [, (object)arg6 [, (FBTimeMode)arg7]]]]) -> None

__init__( (object)arg1, (FBTime)arg2) -> None 

C++ Constructors:
The reference documentation for the following C++ symbols may contain additional relevant information.

object __le__ ( FBTime  arg1,
FBTime  arg2 
)

Python Docstring:

__le__( (FBTime)arg1, (FBTime)arg2) -> object 
object __lt__ ( FBTime  arg1,
FBTime  arg2 
)

Python Docstring:

__lt__( (FBTime)arg1, (FBTime)arg2) -> object 
object __ne__ ( FBTime  arg1,
FBTime  arg2 
)

Python Docstring:

__ne__( (FBTime)arg1, (FBTime)arg2) -> object 
__reduce__ ( )
str __repr__ ( FBTime  arg1)

Python Docstring:

__repr__( (FBTime)arg1) -> str 
__sub__ (   ...)

Python Docstring:

__sub__( (FBTime)arg1, (FBTime)arg2) -> object

__sub__( (FBTime)arg1, (object)arg2) -> object 
int Get ( FBTime  arg1)

Python Docstring:

Get( (FBTime)arg1) -> int 

Related C++ documentation:
The reference documentation for the following C++ symbols may contain additional relevant information.

int GetFrame ( FBTime  arg1,
FBTimeMode  arg2 
)

Get the frame count.

Python Docstring:

GetFrame( (FBTime)arg1 [, (FBTimeMode)arg2]) -> int 

C++ Signature:

kLongLong GetFrame(FBTimeMode pTimeMode = kFBTimeModeDefault) 

With this function, it is possible to obtain the cumulative and local frame counts.

Parameters
pTimeModeTime mode to get the constant (default is kFBTimeModeDefault).
Returns
Frames per second constant for the specified time mode.
int GetMilliSeconds ( FBTime  arg1)

Get milliseconds for time.

Python Docstring:

GetMilliSeconds( (FBTime)arg1) -> int 

C++ Signature:

kLongLong GetMilliSeconds() 
Returns
MilliSeconds value.
float GetSecondDouble ( FBTime  arg1)

Get seconds as double.

Python Docstring:

GetSecondDouble( (FBTime)arg1) -> float 

C++ Signature:

double GetSecondDouble() 
Returns
Seconds in double form.
str GetTimeString ( FBTime  arg1,
FBTimeMode  arg2,
ETimeFormats  arg3 
)

Get time as a string.

Python Docstring:

GetTimeString( (FBTime)arg1 [, (FBTimeMode)arg2 [, (ETimeFormats)arg3]]) -> str 

C++ Signature:

ORSDK2018::FBString GetTimeString(FBTimeMode pMode = kFBTimeModeDefault, ETimeFormats pFormat = eDefaultFormat) 
Parameters
pModeTime mode (default=kFBTimeModeDefault) to use (call FBSystem().GetTransportFps() to the the current UI displayed mode).
pFormatFormat to use for the returned string(default=FBTime::eDefaultFormat).
Returns
String value of time.
Set ( FBTime  arg1,
object  arg2 
)

Set time value from a long.

Python Docstring:

Set( (FBTime)arg1, (object)arg2) -> None 

C++ Signature:

void Set(kLongLong pTime) 
Parameters
pTimeTime value to set.
SetFrame ( FBTime  arg1,
object  arg2,
FBTimeMode  arg3 
)

Set time in frame format.

Python Docstring:

SetFrame( (FBTime)arg1, (object)arg2 [, (FBTimeMode)arg3]) -> None 

C++ Signature:

void SetFrame(kLongLong pFrames, FBTimeMode pTimeMode = kFBTimeModeDefault) 
Parameters
pFramesThe number of frames.
pTimeModeThe time mode identifier which will dictate the extraction algorithm.
SetMilliSeconds ( FBTime  arg1,
object  arg2 
)

Set milliseconds time.

Python Docstring:

SetMilliSeconds( (FBTime)arg1, (object)arg2) -> None 

C++ Signature:

void SetMilliSeconds(kLongLong pMilliSeconds) 
Parameters
pMilliSecondsMilliSeconds value.
SetSecondDouble ( FBTime  arg1,
object  arg2 
)

Set seconds from double.

Python Docstring:

SetSecondDouble( (FBTime)arg1, (object)arg2) -> None 

C++ Signature:

void SetSecondDouble(double pTime) 
Parameters
pTimeTime to set seconds from.
SetTime ( FBTime  arg1,
object  arg2,
object  arg3,
object  arg4,
object  arg5,
object  arg6,
FBTimeMode  arg7 
)

Set time (from separate values)

Python Docstring:

SetTime( (FBTime)arg1, (object)arg2 [, (object)arg3 [, (object)arg4 [, (object)arg5 [, (object)arg6 [, (FBTimeMode)arg7]]]]]) -> None 

C++ Signature:

void SetTime(int pHour, int pMinute = 0, int pSecond = 0, int pFrame = 0, int pField = 0, FBTimeMode pTimeMode = kFBTimeModeDefault) 
Parameters
pHourHour value.
pMinuteMinute value(default=0).
pSecondSecond value(default=0).
pFrameFrame value(default=0).
pFieldField value(default=0).
pTimeModeTime mode to get time as(default=kFBTimeModeDefault).
SetTimeString ( FBTime  arg1,
str  arg2 
)

Set time from string.

Python Docstring:

SetTimeString( (FBTime)arg1, (str)arg2) -> None 

C++ Signature:

void SetTimeString(const char * pTime) 
Parameters
pTimeString to set time from.

Member Data Documentation

const ORSDK2018::FBTime Infinity

Time constant: Infinity, the largest time value.

const ORSDK2018::FBTime MinusInfinity

Time constant: Minus Infinity, the lowest negative time value.

const ORSDK2018::FBTime OneHour

Time constant: One Hour.

const ORSDK2018::FBTime OneMinute

Time constant: One Minute.

const ORSDK2018::FBTime OneSecond

Time constant: One Second.

const ORSDK2018::FBTime Zero

Time constant: Zero.