|
| QCPDataRange () |
|
| QCPDataRange (int begin, int end) |
|
bool | operator== (const QCPDataRange &other) const |
|
bool | operator!= (const QCPDataRange &other) const |
|
int | begin () const |
|
int | end () const |
|
int | size () const |
|
int | length () const |
|
void | setBegin (int begin) |
|
void | setEnd (int end) |
|
bool | isValid () const |
|
bool | isEmpty () const |
|
QCPDataRange | bounded (const QCPDataRange &other) const |
|
QCPDataRange | expanded (const QCPDataRange &other) const |
|
QCPDataRange | intersection (const QCPDataRange &other) const |
|
QCPDataRange | adjusted (int changeBegin, int changeEnd) const |
|
bool | intersects (const QCPDataRange &other) const |
|
bool | contains (const QCPDataRange &other) const |
|
| QCPDataRange () |
|
| QCPDataRange (int begin, int end) |
|
bool | operator== (const QCPDataRange &other) const |
|
bool | operator!= (const QCPDataRange &other) const |
|
int | begin () const |
|
int | end () const |
|
int | size () const |
|
int | length () const |
|
void | setBegin (int begin) |
|
void | setEnd (int end) |
|
bool | isValid () const |
|
bool | isEmpty () const |
|
QCPDataRange | bounded (const QCPDataRange &other) const |
|
QCPDataRange | expanded (const QCPDataRange &other) const |
|
QCPDataRange | intersection (const QCPDataRange &other) const |
|
QCPDataRange | adjusted (int changeBegin, int changeEnd) const |
|
bool | intersects (const QCPDataRange &other) const |
|
bool | contains (const QCPDataRange &other) const |
|
| QCPDataRange () |
|
| QCPDataRange (int begin, int end) |
|
bool | operator== (const QCPDataRange &other) const |
|
bool | operator!= (const QCPDataRange &other) const |
|
int | begin () const |
|
int | end () const |
|
int | size () const |
|
int | length () const |
|
void | setBegin (int begin) |
|
void | setEnd (int end) |
|
bool | isValid () const |
|
bool | isEmpty () const |
|
QCPDataRange | bounded (const QCPDataRange &other) const |
|
QCPDataRange | expanded (const QCPDataRange &other) const |
|
QCPDataRange | intersection (const QCPDataRange &other) const |
|
QCPDataRange | adjusted (int changeBegin, int changeEnd) const |
|
bool | intersects (const QCPDataRange &other) const |
|
bool | contains (const QCPDataRange &other) const |
|
| QCPDataRange () |
|
| QCPDataRange (int begin, int end) |
|
bool | operator== (const QCPDataRange &other) const |
|
bool | operator!= (const QCPDataRange &other) const |
|
int | begin () const |
|
int | end () const |
|
int | size () const |
|
int | length () const |
|
void | setBegin (int begin) |
|
void | setEnd (int end) |
|
bool | isValid () const |
|
bool | isEmpty () const |
|
QCPDataRange | bounded (const QCPDataRange &other) const |
|
QCPDataRange | expanded (const QCPDataRange &other) const |
|
QCPDataRange | intersection (const QCPDataRange &other) const |
|
QCPDataRange | adjusted (int changeBegin, int changeEnd) const |
|
bool | intersects (const QCPDataRange &other) const |
|
bool | contains (const QCPDataRange &other) const |
|
| QCPDataRange () |
|
| QCPDataRange (int begin, int end) |
|
bool | operator== (const QCPDataRange &other) const |
|
bool | operator!= (const QCPDataRange &other) const |
|
int | begin () const |
|
int | end () const |
|
int | size () const |
|
int | length () const |
|
void | setBegin (int begin) |
|
void | setEnd (int end) |
|
bool | isValid () const |
|
bool | isEmpty () const |
|
QCPDataRange | bounded (const QCPDataRange &other) const |
|
QCPDataRange | expanded (const QCPDataRange &other) const |
|
QCPDataRange | intersection (const QCPDataRange &other) const |
|
QCPDataRange | adjusted (int changeBegin, int changeEnd) const |
|
bool | intersects (const QCPDataRange &other) const |
|
bool | contains (const QCPDataRange &other) const |
|
Describes a data range given by begin and end index.
QCPDataRange holds two integers describing the begin (setBegin) and end (setEnd) index of a contiguous set of data points. The end index points to the data point above the last data point that's part of the data range, similarly to the nomenclature used in standard iterators.
Data Ranges are not bound to a certain plottable, thus they can be freely exchanged, created and modified. If a non-contiguous data set shall be described, the class QCPDataSelection is used, which holds and manages multiple instances of QCPDataRange. In most situations, QCPDataSelection is thus used.
Both QCPDataRange and QCPDataSelection offer convenience methods to work with them, e.g. bounded, expanded, intersects, intersection, adjusted, contains. Further, addition and subtraction operators (defined in QCPDataSelection) can be used to join/subtract data ranges and data selections (or mixtures), to retrieve a corresponding QCPDataSelection.
QCustomPlot's data selection mechanism is based on QCPDataSelection and QCPDataRange.
- Note
- Do not confuse QCPDataRange with QCPRange. A QCPRange describes an interval in floating point plot coordinates, e.g. the current axis range.