24 #ifndef _vtkQtChartColors_h
25 #define _vtkQtChartColors_h
27 #include "vtkQtChartExport.h"
30 class vtkQtChartColorsInternal;
82 void setColorScheme(ColorScheme scheme);
88 int getNumberOfColors()
const;
94 QColor getColor(
int index)
const;
103 void setColor(
int index,
const QColor &
color);
111 void addColor(
const QColor &
color);
117 void insertColor(
int index,
const QColor &
color);
122 void removeColor(
int index);
140 static QColor lighter(
const QColor &
color,
float factor=0.7);
153 static QColor interpolateHsv(
const QColor &color1,
const QColor &color2,
164 static QColor interpolateRgb(
const QColor &color1,
const QColor &color2,
176 static float getDistance(
float x1,
float y1,
float z1,
float x2,
float y2,
189 static float getComponent(
float x1,
float x2,
float f,
float s);
192 vtkQtChartColorsInternal *Internal;
7 cool colors (green to purple).
The vtkQtChartColors class stores a list of colors.
6 colors from green to orange.
7 colors from blue to magenta.
6 warm colors (red to yellow).
ColorScheme getColorScheme() const
Gets the current color scheme.