24 #ifndef _vtkQtChartIndexRangeList_h
25 #define _vtkQtChartIndexRangeList_h
27 #include "vtkQtChartExport.h"
52 int getFirst()
const {
return this->First;}
65 void setFirst(
int first);
80 void setSecond(
int second);
87 bool contains(
int value)
const;
92 bool isBlack()
const {
return this->Black;}
174 bool isEmpty()
const {
return this->Root == 0;}
223 bool contains(
int value)
const;
240 bool setRange(
int first,
int second);
255 bool addRange(
int first,
int second);
270 bool subtractRange(
int first,
int second);
286 bool xorRange(
int first,
int second);
300 void limitRange(
int minimum,
int maximum);
313 bool offsetRanges(
int start,
int offset);
void setParent(vtkQtChartIndexRange *parent)
Sets the parent node.
vtkQtChartIndexRange * getRight() const
Gets the right child node.
vtkQtChartIndexRange * getParent() const
Gets the parent node.
int getSecond() const
Gets the last index in the range.
The vtkQtChartIndexRange class is used to build a tree of index ranges.
void setRight(vtkQtChartIndexRange *right)
Sets the right child node.
void setBlack(bool black)
Sets whether the node is black or red.
void setLeft(vtkQtChartIndexRange *left)
Sets the left child node.
The vtkQtChartIndexRangeList class stores a searchable list of index ranges.
vtkQtChartIndexRange * getLeft() const
Gets the left child node.