VTK
Public Member Functions
vtkQtChartSeriesHueRange Class Reference

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

#include <vtkQtChartSeriesHueRange.h>

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

List of all members.

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.

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.


Constructor & Destructor Documentation

vtkQtChartSeriesHueRange::vtkQtChartSeriesHueRange ( QObject *  parent = 0)

Creates a chart series hue range object.

Parameters:
parentThe 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.

Parameters:
indexThe index in the series items.
totalThe total number of items in the series.
brushUsed 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.

Parameters:
color1The first color in the range.
color2The last color in the range.

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