VTK
Public Member Functions
vtkQtChartColorGenerator Class Reference

The vtkQtChartColorGenerator class generates series brushs using a color list. More...

#include <vtkQtChartColorGenerator.h>

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

List of all members.

Public Member Functions

 vtkQtChartColorGenerator (QObject *parent=0)
 Creates a color generator.
virtual ~vtkQtChartColorGenerator ()
vtkQtChartStyleBrush Methods
virtual QBrush getStyleBrush (int index) const
 Gets the brush for the specified series style index.
Color Methods
vtkQtChartColors * getColors ()
 Gets the list of colors.
const vtkQtChartColors * getColors () const
 Gets the list of colors.
void setColors (vtkQtChartColors *colors)
 Sets the list of colors.

Detailed Description

The vtkQtChartColorGenerator class generates series brushs using a color list.

Definition at line 38 of file vtkQtChartColorGenerator.h.


Constructor & Destructor Documentation

vtkQtChartColorGenerator::vtkQtChartColorGenerator ( QObject *  parent = 0)

Creates a color generator.

Parameters:
parentThe parent object.
virtual vtkQtChartColorGenerator::~vtkQtChartColorGenerator ( ) [inline, virtual]

Definition at line 47 of file vtkQtChartColorGenerator.h.


Member Function Documentation

virtual QBrush vtkQtChartColorGenerator::getStyleBrush ( int  index) const [virtual]

Gets the brush for the specified series style index.

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

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

Implements vtkQtChartStyleBrush.

vtkQtChartColors* vtkQtChartColorGenerator::getColors ( ) [inline]

Gets the list of colors.

Returns:
A pointer to the list of colors.

Definition at line 69 of file vtkQtChartColorGenerator.h.

const vtkQtChartColors* vtkQtChartColorGenerator::getColors ( ) const [inline]

Gets the list of colors.

Returns:
A pointer to the list of colors.

Definition at line 75 of file vtkQtChartColorGenerator.h.

void vtkQtChartColorGenerator::setColors ( vtkQtChartColors *  colors) [inline]

Sets the list of colors.

Parameters:
colorsThe new list of colors.

Definition at line 80 of file vtkQtChartColorGenerator.h.


The documentation for this class was generated from the following file: