#include <fbxtime.h>
Class Description
Class to encapsulate time intervals.
- See also:
- FbxTime
- Examples:
-
ImportScene/DisplayGlobalSettings.cxx,
and ViewScene/SceneContext.cxx.
Definition at line 501 of file fbxtime.h.
List of all
members.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
| pStart |
Beginning of the time interval. |
| pStop |
Ending of the time interval. |
Definition at line 511 of file fbxtime.h.
{ mStart = pStart; mStop = pStop; }
Member Function Documentation
Set start and stop time.
- Parameters:
-
| pStart |
Beginning of the time interval. |
| pStop |
Ending of the time interval. |
Definition at line 517 of file fbxtime.h.
{ mStart = pStart; mStop = pStop; }
| void SetStart |
( |
FbxTime |
pStart |
) |
[inline] |
Set start time.
- Parameters:
-
| pStart |
Beginning of the time interval. |
Definition at line 522 of file fbxtime.h.
| void SetStop |
( |
FbxTime |
pStop |
) |
[inline] |
Set stop time.
- Parameters:
-
| pStop |
Ending of the time interval. |
Definition at line 527 of file fbxtime.h.
| FbxTime GetStart |
( |
|
) |
const [inline] |
| FbxTime GetDuration |
( |
|
) |
const [inline] |
Get time interval in absolute value.
- Returns:
- Time interval.
Definition at line 542 of file fbxtime.h.
{ if( mStop > mStart ) return mStop - mStart; else return mStart - mStop; }
| FbxTime GetSignedDuration |
( |
|
) |
const [inline] |
Get time interval.
- Returns:
- Signed time interval.
Definition at line 547 of file fbxtime.h.
{ 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 552 of file fbxtime.h.
| 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 =
FBXSDK_TIME_FORWARD |
|
) |
|
|
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: