Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Sets the data point colors according to a gradient. More...
#include <ilviews/charts/data.h>
Public Member Functions | |
IlvChartGradientPointInfo (IlvInputFile &file) | |
Constructor. | |
IlvChartGradientPointInfo (const IlvChartGradientPointInfo &pointInfo) | |
Copy of the Constructor. | |
IlvChartGradientPointInfo (IlDouble *values, const IlArray &colors) | |
Constructor. | |
virtual | ~IlvChartGradientPointInfo () |
Destructor. | |
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. |
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 | |||
) |
Constructor.
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 | ) |
Copy of the Constructor.
Initializes a new IlvChartGradientPointInfo
object which is a copy of pointInfo.
pointInfo | The point information that is used to initialize the current one. |
IlvChartGradientPointInfo::IlvChartGradientPointInfo | ( | IlvInputFile & | file | ) |
Constructor.
Initializes a new IlvChartGradientPointInfo
object from the description read in the input file named file.
file | The file used to initialize the current data point information. |
virtual IlBoolean IlvChartGradientPointInfo::getPalette | ( | const IlvChartDataSet * | dataSet, | |
IlUInt | idx, | |||
const IlvAbstractChartDisplayer * | disp, | |||
const IlvPalette * | defaultPalette, | |||
IlvPalette * | returnPalette | |||
) | const [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. |
true
if the returnPalette
is changed. Reimplemented from IlvChartDataPointInfo.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.