Public Member Functions

vtkQtChartPenBrushGenerator Class Reference

The vtkQtChartPenBrushGenerator class generates series drawing options using pen and brush lists. More...

#include <vtkQtChartPenBrushGenerator.h>

Inheritance diagram for vtkQtChartPenBrushGenerator:
Inheritance graph
[legend]
Collaboration diagram for vtkQtChartPenBrushGenerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vtkQtChartPenBrushGenerator (QObject *parent=0)
 Creates a pen/brush generator.
virtual ~vtkQtChartPenBrushGenerator ()
vtkQtChartStyleGenerator Methods
virtual QBrush getSeriesBrush (int index) const
 Gets the brush for the specified series index.
virtual QPen getSeriesPen (int index) const
 Gets the pen for the specified series index.
Brush Methods
int getNumberOfBrushes () const
 Gets the number of brushes (fill styles) in the list.
QBrush getBrush (int index) const
 Gets a fill style from the list.
void setBrush (int index, const QBrush &brush)
 Sets the fill style for the given index.
void clearBrushes ()
 Clears the list of brushes (fill styles).
void addBrushes (const vtkQtChartColors &colors)
 Adds the color list to the brush list.
void addBrush (const QBrush &brush)
 Adds a new brush to the list of fill styles.
void insertBrush (int index, const QBrush &brush)
 Inserts a new brush into the list of fill styles.
void removeBrush (int index)
 Removes the brush at the given 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.

Detailed Description

The vtkQtChartPenBrushGenerator class generates series drawing options using pen and brush lists.

Definition at line 38 of file vtkQtChartPenBrushGenerator.h.


Constructor & Destructor Documentation

vtkQtChartPenBrushGenerator::vtkQtChartPenBrushGenerator ( QObject *  parent = 0 )

Creates a pen/brush generator.

Parameters:
parentThe parent object.
virtual vtkQtChartPenBrushGenerator::~vtkQtChartPenBrushGenerator (  ) [virtual]

Member Function Documentation

void vtkQtChartPenBrushGenerator::addBrush ( const QBrush &  brush )

Adds a new brush to the list of fill styles.

Parameters:
brushThe fill style to add.
void vtkQtChartPenBrushGenerator::addBrushes ( const vtkQtChartColors colors )

Adds the color list to the brush list.

Parameters:
colorsThe list of colors to add.
void vtkQtChartPenBrushGenerator::addPen ( const QPen &  pen )

Adds a pen to the list of stroke styles.

Parameters:
penThe stroke style to add.
void vtkQtChartPenBrushGenerator::addPens ( const vtkQtChartColors colors )

Adds the color list to the pen list.

Parameters:
colorsThe list of colors to add.

Referenced by QmitkVtkLineProfileWidget::QmitkVtkLineProfileWidget().

void vtkQtChartPenBrushGenerator::clearBrushes (  )

Clears the list of brushes (fill styles).

void vtkQtChartPenBrushGenerator::clearPens (  )

Clears the list of pens (stroke styles).

QBrush vtkQtChartPenBrushGenerator::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:
indexThe index of the brush.
Returns:
The fill style for the given index.
int vtkQtChartPenBrushGenerator::getNumberOfBrushes (  ) const

Gets the number of brushes (fill styles) in the list.

Returns:
The number of brushes (fill styles) in the list.
int vtkQtChartPenBrushGenerator::getNumberOfPens (  ) const

Gets the number of pens (stroke styles) in the list.

Returns:
The number of pens (stroke styles) in the list.
QPen vtkQtChartPenBrushGenerator::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:
indexThe index of the pen.
Returns:
The stroke style for the given index.
virtual QBrush vtkQtChartPenBrushGenerator::getSeriesBrush ( int  index ) const [virtual]

Gets the brush for the specified series index.

If the index is greater than the internal brush list, the index will be wrapped to repeat the brushes.

Parameters:
indexThe series index.
Returns:
The brush for the specified series index.

Implements vtkQtChartStyleGenerator.

virtual QPen vtkQtChartPenBrushGenerator::getSeriesPen ( int  index ) const [virtual]

Gets the pen for the specified series index.

If the index is greater than the internal pen list, the index will be wrapped to repeat the pens.

Parameters:
indexThe series index.
Returns:
The pen for the specified series index.

Implements vtkQtChartStyleGenerator.

void vtkQtChartPenBrushGenerator::insertBrush ( int  index,
const QBrush &  brush 
)

Inserts a new brush into the list of fill styles.

Parameters:
indexWhere to insert the brush.
brushThe fill style to insert.
void vtkQtChartPenBrushGenerator::insertPen ( int  index,
const QPen &  pen 
)

Inserts a pen into the list of stroke styles.

Parameters:
indexWhere to insert the pen.
penThe stroke style to insert.
void vtkQtChartPenBrushGenerator::removeBrush ( int  index )

Removes the brush at the given index.

Parameters:
indexThe index of the brush to remove.
void vtkQtChartPenBrushGenerator::removePen ( int  index )

Removes the pen at the given index.

Parameters:
indexThe index of the pen to remove.
void vtkQtChartPenBrushGenerator::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:
indexThe brush list index.
brushThe new fill style.
void vtkQtChartPenBrushGenerator::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:
indexThe pen list index.
penThe new stroke style.

Referenced by QmitkVtkLineProfileWidget::QmitkVtkLineProfileWidget().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines