SciDAVis
1.D4
|
#include <Interval.h>
Private Member Functions | |
Interval () | |
Interval (float start, float end) | |
Interval (const Interval< float > &other) | |
bool | isValid () const |
float | size () const |
bool | touches (const Interval< float > &other) const |
Returns true if no gap is between two intervals. |
Additional Inherited Members | |
Public Member Functions inherited from IntervalBase< float > | |
bool | contains (const Interval< float > &other) const |
bool | contains (floatvalue) const |
float | end () const |
bool | intersects (const Interval< float > &other) const |
IntervalBase () | |
IntervalBase (const IntervalBase< float > &other) | |
IntervalBase (floatstart, floatend) | |
QList< Interval< float > > | operator- (QList< Interval< float > > subtrahend) |
Interval< float > & | operator= (const Interval< float > &other) |
bool | operator== (const Interval< float > &other) const |
void | setEnd (floatend) |
void | setStart (floatstart) |
float | start () const |
QString | toString () const |
Return a string in the format '[start,end]'. | |
void | translate (floatoffset) |
virtual | ~IntervalBase () |
Static Public Member Functions inherited from IntervalBase< float > | |
static Interval< float > | intersection (const Interval< float > &first, const Interval< float > &second) |
Return the intersection of two intervals. | |
static Interval< float > | merge (const Interval< float > &a, const Interval< float > &b) |
Merge two intervals that touch or intersect. | |
static void | mergeIntervalIntoList (QList< Interval< float > > *list, Interval< float > i) |
Merge an interval into a list. | |
static void | restrictList (QList< Interval< float > > *list, Interval< float > i) |
Restrict all intervals in the list to their intersection with a given interval. | |
static QList< Interval< float > > | split (const Interval< float > &i, floatbefore) |
Split an interval into two. | |
static QList< Interval< float > > | subtract (const Interval< float > &src_iv, const Interval< float > &minus_iv) |
Subtract an interval from another. | |
static void | subtractIntervalFromList (QList< Interval< float > > *list, Interval< float > i) |
Subtract an interval from all intervals in the list. | |
Protected Attributes inherited from IntervalBase< float > | |
float | d_end |
Interval end. | |
float | d_start |
Interval start. |
|
inlineprivate |
|
inlineprivate |
Returns true if no gap is between two intervals.
Implements IntervalBase< float >.
References IntervalBase< T >::end(), and IntervalBase< T >::start().