DAZ Script |
---|
DzTimeRange () |
DzTimeRange ( String range ) |
DzTimeRange ( DzTimeRange range ) |
DzTimeRange ( DzTime start, DzTime end ) |
DAZ Script | |
---|---|
void | add ( DzTime time ) |
void | extendEndsBy ( DzTime time ) |
DzTime | getDuration () |
void | include ( DzTime time ) |
void | include ( DzTimeRange range ) |
void | intersect ( DzTimeRange range ) |
Boolean | isEmpty () |
Boolean | isIncluded ( DzTime time ) |
Boolean | isIncluded ( DzTimeRange range ) |
void | makeEmpty () |
Boolean | overlaps ( DzTimeRange range ) |
void | subtract ( DzTime time ) |
String | toString () |
TODO: Add detailed description.
Default Constructor. Creates the time range [DZ_MIN_TIME,DZ_MAX_TIME]
DzTimeRange( String range )
Creates a time range by parsing a string.
Parameter(s):
DzTimeRange( DzTimeRange range )
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
DzTimeRange( DzTime start, DzTime end )
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Adds the given amount of time to both ends of this range.
Parameter(s):
void : extendEndsBy( DzTime time )
Extends the ends of this time range by the given amount of time, effectively expanding it by 2 * the specified time.
Parameter(s):
DzTime : getDuration()
Return Value:
Expands this time range to include the given time.
Parameter(s):
void : include( DzTimeRange range )
Expands this time range to include the given time range.
Parameter(s):
void : intersect( DzTimeRange range )
Sets this time range to the intersection with the given time range.
Parameter(s):
Return Value:
true
if this time range is length 0, otherwise false
.Boolean : isIncluded( DzTime time )
Return Value:
true
if the given time falls inside this range, otherwise false
.Boolean : isIncluded( DzTimeRange range )
Return Value:
true
if the given range falls inside this range, otherwise false
.void : makeEmpty()
Sets this time range to be empty.
Boolean : overlaps( DzTimeRange range )
Return Value:
true
if the given range overlaps this range, otherwise false
.void : subtract( DzTime time )
Subtracts the given amount of time from both ends of this range.
Parameter(s):
Return Value: