This reference page is linked to from the following overview topics: MotionBuilder 2013.
#include <fbtime.h>
Public Member Functions |
|
| FBTimeCode (float pRate=NTSC_DROP) | |
| Constructor. |
|
| void | SetTimeCode (int pHour, int pMinute=0, int pSecond=0, float pFrame=0) |
| Set timecode. |
|
| FBString | GetTimeCodeString (FBTime::ETimeFormats pFormat=FBTime::eDefaultFormat) |
| Get time as a string. |
|
| void | SetTimeCodeString (const char *pTime) |
| Set time from string. |
|
| FBTime | GetTime () const |
| Return a Time corresponding to the timecode.
|
|
| void | SetTime (FBTime pTime) |
| Set TimeCode according to the given time.
|
|
| double | GetFrame () const |
| Return a frame number corresponding to the
timecode. |
|
| void | SetFrame (double pFrame) |
| Set Frame according to the given time.
|
|
| float | GetFrameRate () const |
| Return the rate of the timecode. |
|
Static Public Attributes |
|
| static const float | NTSC_DROP |
| Rates. |
|
| static const float | NTSC_FULL |
| -29.97f |
|
| static const float | PAL_25 |
| -25.0f |
|
| static const float | MPAL_30 |
| -29.971f Currently not supported : "1" is
added just to differentiate from NTSC_FULL(-29.97f) |
|
| static const float | FILM_24 |
| -24.0f |
|
| static const float | FILM_23976 |
| -23.976f |
|
| static const float | FRAMES_30 |
| -30.0f |
|
| static const float | FRAMES_5994 |
| -59.94f |
|
| FBTimeCode | ( | float | pRate = NTSC_DROP |
) |
Constructor.
| pRate | Framerate value. |
| void SetTimeCode | ( | int | pHour, |
| int | pMinute = 0, |
||
| int | pSecond = 0, |
||
| float | pFrame = 0 |
||
| ) |
Set timecode.
| pHour | Hour value. |
| pMinute | Minute value. |
| pSecond | Second value. |
| pFrame | Frame value. |
| FBString GetTimeCodeString | ( | FBTime::ETimeFormats | pFormat =
FBTime::eDefaultFormat |
) |
Get time as a string.
| pFormat | Format to use for the returned string(default=FBTime::eDefaultFormat). |
| void SetTimeCodeString | ( | const char * | pTime | ) |
| FBTime GetTime | ( | ) | const |
Return a Time corresponding to the timecode.
| void SetTime | ( | FBTime | pTime | ) |
Set TimeCode according to the given time.
| pTime | Time value to set. |
| double GetFrame | ( | ) | const |
Return a frame number corresponding to the timecode.
| void SetFrame | ( | double | pFrame | ) |
Set Frame according to the given time.
| pFrame | Frame value to set. |
| float GetFrameRate | ( | ) | const |
Return the rate of the timecode.
const float NTSC_DROP
[static] |
const float NTSC_FULL
[static] |
const float PAL_25
[static] |
const float MPAL_30
[static] |
-29.971f Currently not supported : "1" is added just to differentiate from NTSC_FULL(-29.97f)
const float FILM_24
[static] |
const float FILM_23976
[static] |
const float FRAMES_30
[static] |
const float FRAMES_5994
[static] |