VTK
Public Member Functions | List of all members
vtkQtChartColorGenerator Class Reference

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

#include <vtkQtChartColorGenerator.h>

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

Public Member Functions

 vtkQtChartColorGenerator (QObject *parent=0)
 Creates a color generator. More...
 
virtual ~vtkQtChartColorGenerator ()
 
vtkQtChartStyleBrush Methods
virtual QBrush getStyleBrush (int index) const
 Gets the brush for the specified series style index. More...
 
Color Methods
vtkQtChartColorsgetColors ()
 Gets the list of colors. More...
 
const vtkQtChartColorsgetColors () const
 Gets the list of colors. More...
 
void setColors (vtkQtChartColors *colors)
 Sets the list of colors. More...
 
- Public Member Functions inherited from vtkQtChartStyleBrush
 vtkQtChartStyleBrush (QObject *parent=0)
 Creates a chart style brush. More...
 
virtual ~vtkQtChartStyleBrush ()
 

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 ( )
inlinevirtual

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: