#include <fbxtime.h>
Class to encapsulate time intervals.
- See also
- FbxTime
- Examples:
- ImportScene/DisplayGlobalSettings.cxx, and ViewScene/SceneContext.cxx.
Definition at line 508 of file fbxtime.h.
◆ FbxTimeSpan() [1/2]
◆ FbxTimeSpan() [2/2]
Constructor.
- Parameters
-
pStart | Beginning of the time interval. |
pStop | Ending of the time interval. |
Definition at line 518 of file fbxtime.h.
518 { mStart = pStart; mStop = pStop; }
◆ Set()
Set start and stop time.
- Parameters
-
pStart | Beginning of the time interval. |
pStop | Ending of the time interval. |
Definition at line 524 of file fbxtime.h.
524 { mStart = pStart; mStop = pStop; }
◆ SetStart()
Set start time.
- Parameters
-
pStart | Beginning of the time interval. |
Definition at line 529 of file fbxtime.h.
◆ SetStop()
Set stop time.
- Parameters
-
pStop | Ending of the time interval. |
Definition at line 534 of file fbxtime.h.
◆ GetStart()
◆ GetStop()
◆ GetDuration()
Get time interval in absolute value.
- Returns
- Time interval.
Definition at line 549 of file fbxtime.h.
549 {
if( mStop > mStart )
return mStop - mStart;
else return mStart - mStop; }
◆ GetSignedDuration()
FbxTime GetSignedDuration |
( |
| ) |
const |
|
inline |
Get time interval.
- Returns
- Signed time interval.
Definition at line 554 of file fbxtime.h.
554 {
return mStop - mStart; }
◆ GetDirection()
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 559 of file fbxtime.h.
#define FBXSDK_TIME_FORWARD
#define FBXSDK_TIME_BACKWARD
◆ IsInside()
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.
◆ Intersect()
Return the intersection of the two time spans.
- Parameters
-
- Returns
- The intersection of pTime and this FbxTimeSpan.
◆ operator!=()
Inequality operator.
- Parameters
-
- Returns
True
if unequal, false
otherwise.
◆ operator==()
Equality operator.
- Parameters
-
- Returns
True
if equal, false
otherwise.
◆ UnionAssignment()
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: