Sets the data point colors according to a gradient. More...
#include <ilviews/charts/data.h>
Public Member Functions | |
IlvChartGradientPointInfo (const IlvChartGradientPointInfo &pointInfo) | |
Initializes a new IlvChartGradientPointInfo object as a copy of another IlvChartGradientPointInfo . More... | |
IlvChartGradientPointInfo (IlDouble *values, const IlArray &colors) | |
Initializes a new IlvChartGradientPointInfo object. More... | |
IlvChartGradientPointInfo (IlvInputFile &file) | |
Initializes a new IlvChartGradientPointInfo object from an input file. More... | |
virtual IlBoolean | getPalette (const IlvChartDataSet *dataSet, IlUInt idx, const IlvAbstractChartDisplayer *disp, const IlvPalette *defaultPalette, IlvPalette *returnPalette) const |
Gets the specific palette for a point in the same collection. More... | |
Public Member Functions inherited from IlvChartDataPointInfo | |
IlvChartDataPointInfo (const IlvChartDataPointInfo &pointInfo) | |
Initializes a new IlvChartDataPointInfo object as a copy of another IlvChartDataPointInfo . More... | |
IlvChartDataPointInfo (IlvInputFile &file) | |
Initializes a new IlvChartDataPointInfo object from an input file. More... | |
IlvChartDataPointInfo (IlvPalette *palette=0) | |
Initializes a new IlvChartDataPointInfo object. More... | |
virtual | ~IlvChartDataPointInfo () |
Destructor. More... | |
virtual IlBoolean | boundingBox (const IlvPoint &point, const IlvChartDataSet *dataSet, IlUInt ptidx, const IlvChartGraphic *chart, IlvRect &bbox, const IlvTransformer *t=0) const |
Returns the bounding box of the graphical information object drawn next to the representation of the data point. More... | |
virtual IlvChartDataPointInfo * | copy () const |
Creates and returns a copy of the current object. More... | |
virtual void | draw (const IlvPoint &point, const IlvChartDataSet *dataSet, IlUInt ptidx, const IlvChartGraphic *chart, IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *clip=0) const |
Draws a graphical information object next to the representation of the data point. More... | |
IlvPalette * | getPalette () const |
Returns the specific palette. More... | |
void | lock () |
Locks the current IlvChartDataPointInfo object. More... | |
IlvOutputFile & | save (IlvOutputFile &file) const |
Writes a complete description of the current object in a file. More... | |
void | setForeground (IlvColor *color) |
Sets the foreground color for the specific palette. More... | |
virtual void | setMode (IlvDrawMode mode) |
Sets the drawing mode. More... | |
virtual void | setOverwrite (IlBoolean o) |
Sets the way the drawing member functions operate. More... | |
void | setPalette (IlvPalette *pal) |
Sets the specific palette. More... | |
void | unLock () |
Unlocks the current IlvChartDataPointInfo object. More... | |
virtual void | write (IlvOutputFile &file) const |
Writes the attributes of the current object in a file. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvChartDataPointInfo | |
static IlvChartDataPointInfo * | Load (IlvInputFile &file) |
Reads a point information object from a file. More... | |
static IlvChartDataPointInfo * | Read (IlvInputFile &file) |
Reads the attributes of a point information object from a file. More... | |
Sets the data point colors according to a gradient.
Library: ilvcharts
A Point Info that computes the color of a data point according to a gradient specification.
The y-value of a data point is used to determine its color according to the transition values of the gradient.
IlvChartGradientPointInfo
as follows: getPalette()
method to return a palette using the appropriate color from the allocated color set. IlvChartGradientPointInfo::IlvChartGradientPointInfo | ( | IlDouble * | values, |
const IlArray & | colors | ||
) |
Initializes a new IlvChartGradientPointInfo
object.
values | The transition values of the gradient. The provided array must be sorted in ascending order. |
colors | The colors associated with the transition values. |
There must be as many values as colors.
IlvChartGradientPointInfo::IlvChartGradientPointInfo | ( | const IlvChartGradientPointInfo & | pointInfo | ) |
Initializes a new IlvChartGradientPointInfo
object as a copy of another IlvChartGradientPointInfo
.
pointInfo | The point information that is used to initialize the new point information object. |
IlvChartGradientPointInfo::IlvChartGradientPointInfo | ( | IlvInputFile & | file | ) |
Initializes a new IlvChartGradientPointInfo
object from an input file.
The new IlvChartGradientPointInfo
object description is read in the input file named file.
file | The file used to initialize the current data point information. |
|
virtual |
Gets the specific palette for a point in the same collection.
dataSet | The data set to which the point belongs. |
idx | The index of the point. |
disp | The displayer which displays the data set. |
defaultPalette | The default palette. |
returnPalette | A pointer to the specific palette that is changed according to how the data point is drawn. |
IlTrue
if returnPalette is changed. Reimplemented from IlvChartDataPointInfo.