![]() |
|
A class that represents an interval in EfTime. More...
#include <timeInterval.h>
Public Member Functions | |
| EfTimeInterval (const GfMultiInterval &timeMultiInterval=GfMultiInterval(), bool defaultTime=false) | |
| EfTimeInterval (const GfInterval &timeInterval, bool defaultTime=false) | |
| EfTimeInterval (const std::vector< double > ×, bool defaultTime=false) | |
For convenience, constructs a multiInterval from the discrete times. | |
| EfTimeInterval (const std::initializer_list< double > ×, bool defaultTime=false) | |
For convenience, constructs a multiInterval from the discrete times. | |
| void | Clear () |
| Clears the time interval to an empty interval. | |
| bool | IsEmpty () const |
| Returns true if the interval is empty. | |
| const GfMultiInterval & | GetTimeMultiInterval () const |
| Returns the multi interval that represents intervals on the frame timeline. | |
| bool | IsDefaultTimeSet () const |
| Returns true if the interval contains the default time. | |
| bool | Contains (const EfTime &time) const |
Returns true if this time interval contains time, with special treatment for the default time and for left- and right-side time values. | |
| bool | Contains (const EfTimeInterval &rhs) const |
Returns true if this time interval fully contains the time interval rhs. | |
| bool | IsFullInterval () const |
| Returns true if the time interval is the full interval. | |
| bool | operator== (const EfTimeInterval &rhs) const |
| bool | operator!= (const EfTimeInterval &rhs) const |
| void | operator|= (const EfTimeInterval &rhs) |
Unions this time interval and the EfTimeInterval rhs. | |
| void | operator|= (const GfInterval &interval) |
Unions this time interval and the GfInterval interval. | |
| void | operator|= (const EfTime &time) |
Unions this time interval and the EfTime time. | |
| void | operator&= (const EfTimeInterval &rhs) |
Computes the intersection of this and the EfTimeInterval rhs. | |
| bool | operator< (const EfTimeInterval &rhs) const |
| Less-than operator. | |
| EfTimeInterval & | Extend (double leftFrames, double rightFrames) |
| Extends the interval by the specified number of frames in each direction. | |
| EF_API std::string | GetAsString () const |
| Get time interval as string, for debugging. | |
Static Public Member Functions | |
| static EfTimeInterval | GetFullInterval () |
| Returns the full time interval: (-inf, inf) with the default time. | |
A class that represents an interval in EfTime.
This class holds a GfMultiInterval that represents intervals on the frame timeline and a bool that represents a single point, not on the timeline, for the "default" time.
Definition at line 35 of file timeInterval.h.
|
inlineexplicit |
Definition at line 39 of file timeInterval.h.
|
inlineexplicit |
Definition at line 46 of file timeInterval.h.
|
inlineexplicit |
For convenience, constructs a multiInterval from the discrete times.
Definition at line 55 of file timeInterval.h.
|
inlineexplicit |
For convenience, constructs a multiInterval from the discrete times.
Definition at line 66 of file timeInterval.h.
|
inline |
Clears the time interval to an empty interval.
Definition at line 77 of file timeInterval.h.
|
inline |
Returns true if this time interval contains time, with special treatment for the default time and for left- and right-side time values.
The default time is treated as a separate time outside of the frame timeline.
See EfTime::IsContainedIn() for details on how side is handled.
Definition at line 110 of file timeInterval.h.
|
inline |
Returns true if this time interval fully contains the time interval rhs.
The default time is treated as a separate time outside of the frame timeline.
Definition at line 122 of file timeInterval.h.
|
inline |
Extends the interval by the specified number of frames in each direction.
E.g., extends (-100, 100) to (-110, 105) when leftFrames = 10 and rightFrames = 5; or the multi interval (-100, 100), (200, 300) becomes (-110, 105), (190, 305).
Definition at line 202 of file timeInterval.h.
| EF_API std::string GetAsString | ( | ) | const |
Get time interval as string, for debugging.
|
inlinestatic |
Returns the full time interval: (-inf, inf) with the default time.
Definition at line 141 of file timeInterval.h.
|
inline |
Returns the multi interval that represents intervals on the frame timeline.
Definition at line 91 of file timeInterval.h.
|
inline |
Returns true if the interval contains the default time.
Definition at line 97 of file timeInterval.h.
|
inline |
Returns true if the interval is empty.
Definition at line 84 of file timeInterval.h.
|
inline |
Returns true if the time interval is the full interval.
I.e., this returns true if the time interval contains the full frame timeline and the default time.
Definition at line 134 of file timeInterval.h.
|
inline |
Definition at line 150 of file timeInterval.h.
|
inline |
Computes the intersection of this and the EfTimeInterval rhs.
Definition at line 180 of file timeInterval.h.
|
inline |
Less-than operator.
Definition at line 186 of file timeInterval.h.
|
inline |
Definition at line 145 of file timeInterval.h.
|
inline |
Unions this time interval and the EfTime time.
Definition at line 169 of file timeInterval.h.
|
inline |
Unions this time interval and the EfTimeInterval rhs.
Definition at line 156 of file timeInterval.h.
|
inline |
Unions this time interval and the GfInterval interval.
Definition at line 163 of file timeInterval.h.