Public Member Functions

vtkQtChartColorStyleGenerator Class Reference

The vtkQtChartColorStyleGenerator class generates series drawing options using color and pen style. More...

#include <vtkQtChartColorStyleGenerator.h>

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

List of all members.

Public Member Functions

 vtkQtChartColorStyleGenerator (QObject *parent=0, vtkQtChartColors::ColorScheme scheme=vtkQtChartColors::Spectrum)
 Creates a color/style generator.
virtual ~vtkQtChartColorStyleGenerator ()
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.
Color Methods
vtkQtChartColorsgetColors ()
 Gets the list of colors.
const vtkQtChartColorsgetColors () const
 Gets the list of colors.
Pen Style Methods
int getNumberOfStyles () const
 Gets the number of pen styles in the style list.
Qt::PenStyle getPenStyle (int index) const
 Gets a pen style from the pen styles list.
void setPenStyle (int index, Qt::PenStyle style)
 Sets the pen style for the given index.
void clearPenStyles ()
 Clears the list of pen styles.
void addPenStyle (Qt::PenStyle style)
 Adds a pen style to the list of pen styles.
void insertPenStyle (int index, Qt::PenStyle style)
 Inserts a new pen style into the list of pen styles.
void removePenStyle (int index)
 Removes the pen style for the given index.

Detailed Description

The vtkQtChartColorStyleGenerator class generates series drawing options using color and pen style.

Definition at line 38 of file vtkQtChartColorStyleGenerator.h.


Constructor & Destructor Documentation

vtkQtChartColorStyleGenerator::vtkQtChartColorStyleGenerator ( QObject *  parent = 0,
vtkQtChartColors::ColorScheme  scheme = vtkQtChartColors::Spectrum 
)

Creates a color/style generator.

Parameters:
parentThe parent object.
schemeThe initial color scheme.
virtual vtkQtChartColorStyleGenerator::~vtkQtChartColorStyleGenerator (  ) [virtual]

Member Function Documentation

void vtkQtChartColorStyleGenerator::addPenStyle ( Qt::PenStyle  style )

Adds a pen style to the list of pen styles.

Parameters:
styleThe new pen style to add.
void vtkQtChartColorStyleGenerator::clearPenStyles (  )

Clears the list of pen styles.

vtkQtChartColors* vtkQtChartColorStyleGenerator::getColors (  ) [inline]

Gets the list of colors.

Returns:
A pointer to the list of colors.

Definition at line 84 of file vtkQtChartColorStyleGenerator.h.

{return this->Colors;}
const vtkQtChartColors* vtkQtChartColorStyleGenerator::getColors (  ) const [inline]

Gets the list of colors.

Returns:
A pointer to the list of colors.

Definition at line 90 of file vtkQtChartColorStyleGenerator.h.

{return this->Colors;}
int vtkQtChartColorStyleGenerator::getNumberOfStyles (  ) const

Gets the number of pen styles in the style list.

Returns:
The number of pen styles in the style list.
Qt::PenStyle vtkQtChartColorStyleGenerator::getPenStyle ( int  index ) const

Gets a pen style from the pen styles list.

This method provides access to the list of styles. If the index is out of range, a default style will be returned.

Parameters:
indexThe list index for the style.
Returns:
The pen style for the given index.
See also:
vtkQtChartStyleGenerator::getSeriesPen(int)
virtual QBrush vtkQtChartColorStyleGenerator::getSeriesBrush ( int  index ) const [virtual]

Gets the brush for the specified series index.

If the index is greater than the internal color list, the index will be wrapped around repeating the colors.

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

Implements vtkQtChartStyleGenerator.

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

Gets the pen for the specified series index.

If the index is greater than the internal color list, the index will be wrapped around repeating the colors. The repeated colors will have the next pen style in the list.

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

Implements vtkQtChartStyleGenerator.

void vtkQtChartColorStyleGenerator::insertPenStyle ( int  index,
Qt::PenStyle  style 
)

Inserts a new pen style into the list of pen styles.

Parameters:
indexWhere to insert the new pen style.
styleThe new pen style to insert.
void vtkQtChartColorStyleGenerator::removePenStyle ( int  index )

Removes the pen style for the given index.

Parameters:
indexWhich pen style to remove from the list.
void vtkQtChartColorStyleGenerator::setPenStyle ( int  index,
Qt::PenStyle  style 
)

Sets the pen style for the given index.

This method does nothing if the index is out of range.

Parameters:
indexWhich pen style to modify.
styleThe new pen style.

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