Class to encapsulate time intervals.
More...
#include <fbxtime.h>
Class to encapsulate time intervals.
- See also
- FbxTime
- Examples:
- ImportScene/DisplayGlobalSettings.cxx, and ViewScene/SceneContext.cxx.
Definition at line 510 of file fbxtime.h.
Constructor.
- Parameters
-
pStart | Beginning of the time interval. |
pStop | Ending of the time interval. |
Definition at line 520 of file fbxtime.h.
520 { mStart = pStart; mStop = pStop; }
Set start and stop time.
- Parameters
-
pStart | Beginning of the time interval. |
pStop | Ending of the time interval. |
Definition at line 526 of file fbxtime.h.
526 { mStart = pStart; mStop = pStop; }
Set start time.
- Parameters
-
pStart | Beginning of the time interval. |
Definition at line 531 of file fbxtime.h.
Set stop time.
- Parameters
-
pStop | Ending of the time interval. |
Definition at line 536 of file fbxtime.h.
Get time interval in absolute value.
- Returns
- Time interval.
Definition at line 551 of file fbxtime.h.
551 {
if( mStop > mStart )
return mStop - mStart;
else return mStart - mStop; }
FbxTime GetSignedDuration |
( |
| ) |
const |
|
inline |
Get time interval.
- Returns
- Signed time interval.
Definition at line 556 of file fbxtime.h.
556 {
return mStop - mStart; }
int GetDirection |
( |
| ) |
const |
|
inline |
Get direction of the time interval.
- Returns
FBXSDK_TIME_FORWARD
if time interval is forward, FBXSDK_TIME_BACKWARD
if backward.
Definition at line 561 of file fbxtime.h.
#define FBXSDK_TIME_FORWARD
#define FBXSDK_TIME_BACKWARD
bool IsInside |
( |
FbxTime |
pTime | ) |
const |
Return true
if the time is inside the timespan.
- Parameters
-
pTime | Judge whether pTime is inside the timespan. |
- Returns
True
if is, false
otherwise.
Return the intersection of the two time spans.
- Parameters
-
- Returns
- The intersection of pTime and this FbxTimeSpan.
Inequality operator.
- Parameters
-
- Returns
True
if unequal, false
otherwise.
Equality operator.
- Parameters
-
- Returns
True
if equal, false
otherwise.
void UnionAssignment |
( |
const FbxTimeSpan & |
pSpan, |
|
|
int |
pDirection = 1 |
|
) |
| |
Unite with another FbxTimeSpan.
- Parameters
-
pSpan | The FbxTimeSpan |
pDirection | FBXSDK_TIME_FORWARD or FBXSDK_TIME_BACKWARD |
The documentation for this class was generated from the following file: