![]() |
|
A class that represents a point in time for execution. More...
#include <time.h>
Public Types | |
| using | SplineEvaluationFlags = uint8_t |
| Data type for storing app-specific spline evaluation flags. | |
Public Member Functions | |
| EfTime () | |
| A default constructed EfTime is set to the default frame value. | |
| EfTime (const UsdTimeCode timeCode, SplineEvaluationFlags splineFlags=0) | |
| Constructs an EfTime object for a specific frame with an optional evaluation location and set of spline flags. | |
| bool | operator== (const EfTime &rhs) const |
Returns true if *this == rhs. | |
| bool | operator!= (const EfTime &rhs) const |
| bool | operator< (const EfTime &rhs) const |
Returns true if *this < rhs. | |
| bool | operator<= (const EfTime &rhs) const |
| bool | operator> (const EfTime &rhs) const |
| bool | operator>= (const EfTime &rhs) const |
| EF_API std::string | GetAsString () const |
| Returns this object as string. | |
Time code | |
| const UsdTimeCode | GetTimeCode () const |
| Returns the time code. | |
| void | SetTimeCode (const UsdTimeCode timeCode) |
Sets the time code to timeCode. | |
Spline evaluation flags | |
| SplineEvaluationFlags | GetSplineEvaluationFlags () const |
| Returns the spline evaluation flags that will be used during evaluation. | |
| void | SetSplineEvaluationFlags (SplineEvaluationFlags flags) |
| Sets the spline evaluation flags that will be used during evaluation. | |
Friends | |
| template<class HashState > | |
| void | TfHashAppend (HashState &h, const EfTime &t) |
| Provides a hash function for EfTime. | |
A class that represents a point in time for execution.
Time has a frame value that can be double-valued or set to "default". The "default" frame can be thought to represent a point that is not on the timeline.
EfTime also contains spline evaluation flags that cause splines to be evaluated in application-specific, special ways. These flags should be consumed when spline evaluation is dispatched to the application-level evaluation logic.
| using SplineEvaluationFlags = uint8_t |
|
inline |
|
inlineexplicit |
| EF_API std::string GetAsString | ( | ) | const |
Returns this object as string.
Note that evaluation location will only be denoted in the output string if the time code IsPreTime().
|
inline |
|
inline |
|
inline |
Returns true if *this < rhs.
Note that a time with frame set to "default" is lesser than all non-default times.
Also note that evaluation location and spline flags have no effect on ordering for the default frame. Spline flags are only used for stable ordering, but there is no logical ordering between two sets of spline flags.
|
inline |
|
inline |
|
inline |
|
friend |