This reference page is linked to from the following overview
topics: Lesson 3:
the reference system, Lesson 4:
Animation Controllers, Exposing
and Managing References, Lesson 6:
Parameter Blocks, Creating
and Changing References, Converting
Objects to Compatible Types, Ring Array
Slave and Master Controllers, Responding
to Changes in Parameters, Getting
and Setting Parameter Block Values, Material
Modifiers, Selection
Modifiers, Procedural
Controller Data Access, Simple
Modifiers, Topology
Modifiers, Whole
Object Modifiers, Mapping
Coordinate Modifiers, Validity
Intervals.
#include <interval.h>
Class Description
- See also:
- Advanced Topics sections on Intervals
and Time.
- Description:
- An Interval is a
class that represents a length of time. It has two private data
members, start and end that are each TimeValues. A TimeValue is a
single instant in time. For more explanation see the Advanced
Topics section on Intervals.
All the methods of this class are implemented by the system.
Definitions:
#define FOREVER Interval(TIME_NegInfinity,
TIME_PosInfinity)
#define NEVER Interval(TIME_NegInfinity,
TIME_NegInfinity)
Constructor & Destructor Documentation
- Parameters:
- TimeValue s
Specifies the start time.
TimeValue e
Specifies the end time.
Member Function Documentation
int operator== |
( |
const Interval & |
i |
) |
[inline] |
- Returns:
- Nonzero if the intervals are equal; otherwise 0.
{ return( i.start==start && i.end==end ); }
CoreExport int InInterval |
( |
const TimeValue |
t |
) |
const |
- Parameters:
- const TimeValue t
- Returns:
- Nonzero if the TimeValue passed is greater than or equal to the
start value and less than or equal to the end value and not equal
to TIME_NegInfinity; otherwise 0.
int InInterval |
( |
const Interval |
interval |
) |
const [inline] |
- Parameters:
- const Interval
interval
The interval to check.
- Returns:
- Returns nonzero if the interval passed is contained within the
interval; otherwise 0.
- Parameters:
- TimeValue s
Start time for the interval.
TimeValue e
End time for the interval.
- Parameters:
- TimeValue s
Start time for the interval.
- Parameters:
- TimeValue e
End time for the interval.
void SetEmpty |
( |
|
) |
[inline] |
void SetInfinite |
( |
|
) |
[inline] |
void SetInstant |
( |
const TimeValue |
t |
) |
[inline] |
- Returns:
- An Interval that
is the intersection of the intervals.
{ return (*this = (*this&i)); }
{ if (t<start) start=t; if (t>end) end=t; return *this; }