VTK
|
The vtkQtChartIndexRange class is used to build a tree of index ranges. More...
#include <vtkQtChartIndexRangeList.h>
Public Member Functions | |
vtkQtChartIndexRange () | |
vtkQtChartIndexRange (int first, int second, bool black=true) | |
Creates an index range instance. More... | |
vtkQtChartIndexRange (const vtkQtChartIndexRange &other) | |
~vtkQtChartIndexRange () | |
vtkQtChartIndexRange & | operator= (const vtkQtChartIndexRange &other) |
Index Range Methods | |
int | getFirst () const |
Gets the first index in the range. More... | |
void | setFirst (int first) |
Sets the first index in the range. More... | |
int | getSecond () const |
Gets the last index in the range. More... | |
void | setSecond (int second) |
Sets the last index in the range. More... | |
bool | contains (int value) const |
Gets whether or not the given value is in the range. More... | |
Tree Methods | |
bool | isBlack () const |
Gets whether the node is black or red. More... | |
void | setBlack (bool black) |
Sets whether the node is black or red. More... | |
vtkQtChartIndexRange * | getParent () const |
Gets the parent node. More... | |
void | setParent (vtkQtChartIndexRange *parent) |
Sets the parent node. More... | |
vtkQtChartIndexRange * | getLeft () const |
Gets the left child node. More... | |
void | setLeft (vtkQtChartIndexRange *left) |
Sets the left child node. More... | |
vtkQtChartIndexRange * | getRight () const |
Gets the right child node. More... | |
void | setRight (vtkQtChartIndexRange *right) |
Sets the right child node. More... | |
The vtkQtChartIndexRange class is used to build a tree of index ranges.
Definition at line 34 of file vtkQtChartIndexRangeList.h.
vtkQtChartIndexRange::vtkQtChartIndexRange | ( | ) |
vtkQtChartIndexRange::vtkQtChartIndexRange | ( | int | first, |
int | second, | ||
bool | black = true |
||
) |
Creates an index range instance.
first | The first index in the range. |
second | The last index in the range. |
black | True if the node should be black. |
vtkQtChartIndexRange::vtkQtChartIndexRange | ( | const vtkQtChartIndexRange & | other) |
vtkQtChartIndexRange::~vtkQtChartIndexRange | ( | ) |
vtkQtChartIndexRange& vtkQtChartIndexRange::operator= | ( | const vtkQtChartIndexRange & | other) |
|
inline |
Gets the first index in the range.
Definition at line 56 of file vtkQtChartIndexRangeList.h.
void vtkQtChartIndexRange::setFirst | ( | int | first) |
Sets the first index in the range.
This method also updates the first index range for all the affected parent nodes.
first | The first index in the range. |
|
inline |
Gets the last index in the range.
Definition at line 71 of file vtkQtChartIndexRangeList.h.
void vtkQtChartIndexRange::setSecond | ( | int | second) |
Sets the last index in the range.
This method also updates the last index range for all the affected parent nodes.
second | The last index in the range. |
bool vtkQtChartIndexRange::contains | ( | int | value) | const |
Gets whether or not the given value is in the range.
value | The value to find. |
|
inline |
Gets whether the node is black or red.
Definition at line 96 of file vtkQtChartIndexRangeList.h.
|
inline |
Sets whether the node is black or red.
black | True if the node is black. False if the node is red. |
Definition at line 101 of file vtkQtChartIndexRangeList.h.
|
inline |
Gets the parent node.
Definition at line 107 of file vtkQtChartIndexRangeList.h.
|
inline |
Sets the parent node.
parent | The new parent node. |
Definition at line 112 of file vtkQtChartIndexRangeList.h.
|
inline |
Gets the left child node.
Definition at line 118 of file vtkQtChartIndexRangeList.h.
|
inline |
Sets the left child node.
left | The new left child node. |
Definition at line 123 of file vtkQtChartIndexRangeList.h.
|
inline |
Gets the right child node.
Definition at line 129 of file vtkQtChartIndexRangeList.h.
|
inline |
Sets the right child node.
right | The new right child node. |
Definition at line 134 of file vtkQtChartIndexRangeList.h.