#include <vtkQtChartPenGenerator.h>


Definition at line 39 of file vtkQtChartPenGenerator.h.
Public Member Functions | |
| vtkQtChartPenGenerator (QObject *parent=0) | |
| Creates a pen generator. | |
| virtual | ~vtkQtChartPenGenerator () |
vtkQtChartStylePen Methods | |
| virtual QPen | getStylePen (int index) const |
| Gets the pen for the specified series style index. | |
Pen Methods | |
| 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. | |
| vtkQtChartPenGenerator::vtkQtChartPenGenerator | ( | QObject * | parent = 0 |
) |
Creates a pen generator.
| parent | The parent object. |
| virtual vtkQtChartPenGenerator::~vtkQtChartPenGenerator | ( | ) | [virtual] |
| 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.
| index | The series style index. |
Implements vtkQtChartStylePen.
| int vtkQtChartPenGenerator::getNumberOfPens | ( | ) | const |
Gets 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.
| index | The index of the pen. |
| 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.
| index | The pen list index. | |
| pen | The new stroke style. |
| void vtkQtChartPenGenerator::clearPens | ( | ) |
Clears the list of pens (stroke styles).
| void vtkQtChartPenGenerator::addPens | ( | const vtkQtChartColors & | colors | ) |
Adds the color list to the pen list.
| colors | The list of colors to add. |
| void vtkQtChartPenGenerator::addPen | ( | const QPen & | pen | ) |
Adds a pen to the list of stroke styles.
| pen | The stroke style to add. |
| void vtkQtChartPenGenerator::insertPen | ( | int | index, | |
| const QPen & | pen | |||
| ) |
Inserts a pen into the list of stroke styles.
| index | Where to insert the pen. | |
| pen | The stroke style to insert. |
| void vtkQtChartPenGenerator::removePen | ( | int | index | ) |
Removes the pen at the given index.
| index | The index of the pen to remove. |
1.5.6