Public Member Functions

FbxTimeSpan Class Reference

This reference page is linked to from the following overview topics: List of Python Fbx classes.


Search for all occurrences

Detailed Description

Class to encapsulate time intervals.

See also:
FbxTime

Definition at line 501 of file fbxtime.h.

#include <fbxtime.h>

List of all members.

Public Member Functions

 FbxTimeSpan ()
 Constructor.
 FbxTimeSpan (FbxTime pStart, FbxTime pStop)
 Constructor.
void Set (FbxTime pStart, FbxTime pStop)
 Set start and stop time.
void SetStart (FbxTime pStart)
 Set start time.
void SetStop (FbxTime pStop)
 Set stop time.
FbxTime GetStart () const
 Get start time.
FbxTime GetStop () const
 Get stop time.
FbxTime GetDuration () const
 Get time interval in absolute value.
FbxTime GetSignedDuration () const
 Get time interval.
int GetDirection () const
 Get direction of the time interval.
bool IsInside (FbxTime pTime) const
 Return true if the time is inside the timespan.
FbxTimeSpan Intersect (const FbxTimeSpan &pTime) const
 Return the intersection of the two time spans.
bool operator!= (const FbxTimeSpan &pTime) const
 Inequality operator.
bool operator== (const FbxTimeSpan &pTime) const
 Equality operator.
void UnionAssignment (const FbxTimeSpan &pSpan, int pDirection=FBXSDK_TIME_FORWARD)
 Unite with another FbxTimeSpan.

Constructor & Destructor Documentation

FbxTimeSpan ( ) [inline]

Constructor.

Definition at line 505 of file fbxtime.h.

{}
FbxTimeSpan ( FbxTime  pStart,
FbxTime  pStop 
) [inline]

Constructor.

Parameters:
pStartBeginning of the time interval.
pStopEnding of the time interval.

Definition at line 511 of file fbxtime.h.

{ mStart = pStart; mStop = pStop; }

Member Function Documentation

void Set ( FbxTime  pStart,
FbxTime  pStop 
) [inline]

Set start and stop time.

Parameters:
pStartBeginning of the time interval.
pStopEnding 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:
pStartBeginning of the time interval.

Definition at line 522 of file fbxtime.h.

{ mStart = pStart; }
void SetStop ( FbxTime  pStop) [inline]

Set stop time.

Parameters:
pStopEnding of the time interval.

Definition at line 527 of file fbxtime.h.

{ mStop = pStop; }
FbxTime GetStart ( ) const [inline]

Get start time.

Returns:
Beginning of time interval.

Definition at line 532 of file fbxtime.h.

{ return mStart; }
FbxTime GetStop ( ) const [inline]

Get stop time.

Returns:
Ending of time interval.

Definition at line 537 of file fbxtime.h.

{ return mStop; }
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.

{ if( mStop >= mStart ) return FBXSDK_TIME_FORWARD; else return FBXSDK_TIME_BACKWARD; }
bool IsInside ( FbxTime  pTime) const

Return true if the time is inside the timespan.

Parameters:
pTimeJudge whether pTime is inside the timespan.
Returns:
True if is, false otherwise.
FbxTimeSpan Intersect ( const FbxTimeSpan pTime) const

Return the intersection of the two time spans.

Parameters:
pTime
Returns:
The intersection of pTime and this FbxTimeSpan.
bool operator!= ( const FbxTimeSpan pTime) const

Inequality operator.

Parameters:
pTimeFbxTimeSpan compared with this one.
Returns:
True if unequal, false otherwise.
bool operator== ( const FbxTimeSpan pTime) const

Equality operator.

Parameters:
pTimeFbxTimeSpan compared with this one.
Returns:
True if equal, false otherwise.
void UnionAssignment ( const FbxTimeSpan pSpan,
int  pDirection = FBXSDK_TIME_FORWARD 
)

Unite with another FbxTimeSpan.

Parameters:
pSpanThe FbxTimeSpan
pDirectionFBXSDK_TIME_FORWARD or FBXSDK_TIME_BACKWARD
Remarks:
This function assumes both of the FbxTimeSpan objects are in the same direction. Use FBXSDK_TIME_FORWARD when start < stop in both timespan Use FBXSDK_TIME_BACKWARD when start > stop in both timespan

The documentation for this class was generated from the following file:

FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan
FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan FbxTimeSpan