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