The vtkQtChartBrushGenerator class generates series brush options using a list of brushes.
More...
#include <vtkQtChartBrushGenerator.h>
Detailed Description
The vtkQtChartBrushGenerator class generates series brush options using a list of brushes.
Definition at line 39 of file vtkQtChartBrushGenerator.h.
Constructor & Destructor Documentation
vtkQtChartBrushGenerator::vtkQtChartBrushGenerator |
( |
QObject * |
parent = 0 | ) |
|
Creates a brush generator.
- Parameters
-
virtual vtkQtChartBrushGenerator::~vtkQtChartBrushGenerator |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual QBrush vtkQtChartBrushGenerator::getStyleBrush |
( |
int |
index | ) |
const |
|
virtual |
Gets the brush for the specified series style index.
If the index is greater than the internal brush list, the index will be wrapped to repeat the brushes.
- Parameters
-
index | The series style index. |
- Returns
- The brush for the specified series style index.
Implements vtkQtChartStyleBrush.
int vtkQtChartBrushGenerator::getNumberOfBrushes |
( |
| ) |
const |
Gets the number of brushes (fill styles) in the list.
- Returns
- The number of brushes (fill styles) in the list.
QBrush vtkQtChartBrushGenerator::getBrush |
( |
int |
index | ) |
const |
Gets a fill style from the list.
The index must be in the range [0, getNumberOfBrushes()-1]. If it is not, an error message will be printed and an empty QBrush will be returned.
- Parameters
-
index | The index of the brush. |
- Returns
- The fill style for the given index.
void vtkQtChartBrushGenerator::setBrush |
( |
int |
index, |
|
|
const QBrush & |
brush |
|
) |
| |
Sets the fill style for the given index.
This method will do nothing if the index is out of range.
- Parameters
-
index | The brush list index. |
brush | The new fill style. |
void vtkQtChartBrushGenerator::clearBrushes |
( |
| ) |
|
Clears the list of brushes (fill styles).
Adds the color list to the brush list.
- Parameters
-
colors | The list of colors to add. |
void vtkQtChartBrushGenerator::addBrush |
( |
const QBrush & |
brush | ) |
|
Adds a new brush to the list of fill styles.
- Parameters
-
brush | The fill style to add. |
void vtkQtChartBrushGenerator::insertBrush |
( |
int |
index, |
|
|
const QBrush & |
brush |
|
) |
| |
Inserts a new brush into the list of fill styles.
- Parameters
-
index | Where to insert the brush. |
brush | The fill style to insert. |
void vtkQtChartBrushGenerator::removeBrush |
( |
int |
index | ) |
|
Removes the brush at the given index.
- Parameters
-
index | The index of the brush to remove. |
The documentation for this class was generated from the following file: