vtkQtChartSeriesHueRange Class Reference

#include <vtkQtChartSeriesHueRange.h>

Inheritance diagram for vtkQtChartSeriesHueRange:

Inheritance graph
Collaboration diagram for vtkQtChartSeriesHueRange:

Collaboration graph

List of all members.

Detailed Description

The vtkQtChartSeriesHueRange class is used to color a chart series with a range of colors.

Definition at line 37 of file vtkQtChartSeriesHueRange.h.

Public Member Functions

 vtkQtChartSeriesHueRange (QObject *parent=0)
 Creates a chart series hue range object.
virtual ~vtkQtChartSeriesHueRange ()
vtkQtChartSeriesColors Methods
virtual void getBrush (int index, int total, QBrush &brush) const
 Gets the brush for the given index of a series.
Setup Methods
void setRange (const QColor &color1, const QColor &color2)
 Adds a color range to the list.

Constructor & Destructor Documentation

vtkQtChartSeriesHueRange::vtkQtChartSeriesHueRange ( QObject *  parent = 0  ) 

Creates a chart series hue range object.

parent The parent object.

virtual vtkQtChartSeriesHueRange::~vtkQtChartSeriesHueRange (  )  [virtual]

Member Function Documentation

virtual void vtkQtChartSeriesHueRange::getBrush ( int  index,
int  total,
QBrush &  brush 
) const [virtual]

Gets the brush for the given index of a series.

The index and total number of series values is used to pick a color along a hue gradient between the color range.

index The index in the series items.
total The total number of items in the series.
brush Used to return the brush for the given index.

Implements vtkQtChartSeriesColors.

void vtkQtChartSeriesHueRange::setRange ( const QColor &  color1,
const QColor &  color2 

Adds a color range to the list.

color1 The first color in the range.
color2 The last color in the range.

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

Generated on Wed Aug 24 11:59:55 2011 for VTK by  doxygen 1.5.6