The vtkQtChartPenGenerator class generates series pen options using a list of pens.
More...
#include <vtkQtChartPenGenerator.h>
Public Member Functions |
| vtkQtChartPenGenerator (QObject *parent=0) |
| Creates a pen generator.
|
virtual | ~vtkQtChartPenGenerator () |
|
virtual QPen | getStylePen (int index) const |
| Gets the pen for the specified series style index.
|
|
int | getNumberOfPens () const |
| Gets the number of pens (stroke styles) in the list.
|
QPen | getPen (int index) const |
| Gets a stroke style from the list.
|
void | setPen (int index, const QPen &pen) |
| Sets the stroke style for the given index.
|
void | clearPens () |
| Clears the list of pens (stroke styles).
|
void | addPens (const vtkQtChartColors &colors) |
| Adds the color list to the pen list.
|
void | addPen (const QPen &pen) |
| Adds a pen to the list of stroke styles.
|
void | insertPen (int index, const QPen &pen) |
| Inserts a pen into the list of stroke styles.
|
void | removePen (int index) |
| Removes the pen at the given index.
|
| vtkQtChartStylePen (QObject *parent=0) |
| Creates a chart style pen.
|
virtual | ~vtkQtChartStylePen () |
Detailed Description
The vtkQtChartPenGenerator class generates series pen options using a list of pens.
Definition at line 39 of file vtkQtChartPenGenerator.h.
Constructor & Destructor Documentation
vtkQtChartPenGenerator::vtkQtChartPenGenerator |
( |
QObject * |
parent = 0 | ) |
|
Creates a pen generator.
- Parameters
-
virtual vtkQtChartPenGenerator::~vtkQtChartPenGenerator |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual QPen vtkQtChartPenGenerator::getStylePen |
( |
int |
index | ) |
const |
|
virtual |
Gets the pen for the specified series style index.
If the index is greater than the internal pen list, the index will be wrapped to repeat the pens.
- Parameters
-
index | The series style index. |
- Returns
- The pen for the specified series style index.
Implements vtkQtChartStylePen.
int vtkQtChartPenGenerator::getNumberOfPens |
( |
| ) |
const |
Gets the number of pens (stroke styles) in the list.
- Returns
- The number of pens (stroke styles) in the list.
QPen vtkQtChartPenGenerator::getPen |
( |
int |
index | ) |
const |
Gets a stroke style from the list.
The index must be in the range [0, getNumberOfPens()-1]. If it is not, an error message will be printed and an empty QPen will be returned.
- Parameters
-
index | The index of the pen. |
- Returns
- The stroke style for the given index.
void vtkQtChartPenGenerator::setPen |
( |
int |
index, |
|
|
const QPen & |
pen |
|
) |
| |
Sets the stroke style for the given index.
This method will do nothing if the index is out of range.
- Parameters
-
index | The pen list index. |
pen | The new stroke style. |
void vtkQtChartPenGenerator::clearPens |
( |
| ) |
|
Clears the list of pens (stroke styles).
Adds the color list to the pen list.
- Parameters
-
colors | The list of colors to add. |
void vtkQtChartPenGenerator::addPen |
( |
const QPen & |
pen | ) |
|
Adds a pen to the list of stroke styles.
- Parameters
-
pen | The stroke style to add. |
void vtkQtChartPenGenerator::insertPen |
( |
int |
index, |
|
|
const QPen & |
pen |
|
) |
| |
Inserts a pen into the list of stroke styles.
- Parameters
-
index | Where to insert the pen. |
pen | The stroke style to insert. |
void vtkQtChartPenGenerator::removePen |
( |
int |
index | ) |
|
Removes the pen at the given index.
- Parameters
-
index | The index of the pen to remove. |
The documentation for this class was generated from the following file: