Detailed Description
Class to encapsulate time intervals.
- See also:
- KTime
- Examples:
-
ImportScene/DisplayGlobalSettings.cxx,
and ViewScene/main.cxx.
Definition at line 549 of file ktime.h.
#include <ktime.h>
List of all
members.
Constructor & Destructor Documentation
Constructor.
Definition at line 553 of file ktime.h.
Constructor.
- Parameters:
-
pStart |
Beginning of the time interval. |
pStop |
Ending of the time interval. |
Definition at line 559 of file ktime.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 565 of file ktime.h.
{mStart=pStart; mStop=pStop;}
void SetStart |
( |
KTime |
pStart |
) |
[inline] |
Set start time.
- Parameters:
-
pStart |
Beginning of the time interval. |
Definition at line 570 of file ktime.h.
void SetStop |
( |
KTime |
pStop |
) |
[inline] |
Set stop time.
- Parameters:
-
pStop |
Ending of the time interval. |
Definition at line 575 of file ktime.h.
KTime GetStart |
( |
|
) |
const [inline] |
KTime GetStop |
( |
|
) |
const [inline] |
KTime GetDuration |
( |
|
) |
const [inline] |
Get time interval in absolute value.
- Returns:
- Time interval.
Definition at line 590 of file ktime.h.
{if (mStop>mStart)return mStop-mStart; else return mStart-mStop;}
KTime GetSignedDuration |
( |
|
) |
const [inline] |
Get time interval.
- Returns:
- Signed time interval.
Definition at line 595 of file ktime.h.
int GetDirection |
( |
|
) |
const [inline] |
Get direction of the time interval.
- Returns:
KTS_FORWARD
if time interval is forward,
KTS_BACKWARD
if backward.
Definition at line 600 of file ktime.h.
bool IsInside |
( |
KTime |
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 KTimeSpan.
bool operator!= |
( |
const KTimeSpan & |
pTime |
) |
const |
Inequality operator.
- Parameters:
-
- Returns:
True
if unequal, false
otherwise.
bool operator== |
( |
const KTimeSpan & |
pTime |
) |
const |
Equality operator.
- Parameters:
-
- Returns:
True
if equal, false
otherwise.
void UnionAssignment |
( |
const KTimeSpan & |
pSpan |
) |
|
The documentation for this class was generated from the following
file:
- fbxfilesdk/components/kbaselib/klib/ktime.h
KTimeSpan KTimeSpan KTimeSpan KTimeSpan
KTimeSpan KTimeSpan KTimeSpan KTimeSpan KTimeSpan KTimeSpan
KTimeSpan KTimeSpan KTimeSpan KTimeSpan
KTimeSpan KTimeSpan KTimeSpan KTimeSpan KTimeSpan KTimeSpan