Rogue Wave Views Charts Package API Reference Guide |
Rogue Wave Views Documentation Home |
Utility class for displaying data points. More...
#include <ilviews/charts/display.h>
Public Member Functions | |
IlvChartPointsFilter (const IlvChartGraphic *chart, const IlvSingleChartDisplayer *displayer, IlvDim clusterSize=2) | |
Constructor. More... | |
IlvDim | getClusterSize () const |
Returns the minimum distance between two consecutive displayed points. More... | |
virtual IlBoolean | init (IlUInt count, const IlvDoublePoint *dataPoints, const IlUInt *dataPtIdxes, const IlvCoordInterval &abscissaRange, IlBoolean shiftOfCycleLength, const IlvTransformer *t) |
Initializes the current object with a set of data points to project. More... | |
void | setClusterSize (IlvDim size) |
Sets the minimum distance between two consecutive displayed points. More... | |
Public Member Functions inherited from IlvChartDisplayerPoints | |
IlvChartDisplayerPoints (const IlvChartGraphic *chart, const IlvSingleChartDisplayer *displayer, IlBoolean outOfRange=IlTrue) | |
Constructor. More... | |
IlvChartDisplayerPoints (const IlvChartDisplayerPoints &displayerPoints) | |
Constructor. More... | |
virtual | ~IlvChartDisplayerPoints () |
Destructor. More... | |
void | addPoint (const IlvPoint &point, IlUInt dataPtIdx=IlvBadIndex) |
Adds a projected point and its corresponding data point index. More... | |
IlDouble | averageSpaceBetweenDataPoints () const |
Returns the average space between points. More... | |
void | boundingBoxOfPoints (IlvRect &bbox) const |
Returns the bounding box of the projected points stored in this object. More... | |
virtual IlvChartDisplayerPoints * | copy () const |
Virtual copy constructor. More... | |
const IlvChartGraphic * | getChartGraphic () const |
Returns the associated chart. More... | |
void | getDataPoint (IlUInt index, IlvDoublePoint &point) const |
Returns a data point. More... | |
IlUInt | getDataPointIndex (IlUInt index) const |
Returns the corresponding data point index of a projected point. More... | |
const IlvSingleChartDisplayer * | getDisplayer () const |
Returns the associated displayer. More... | |
const IlUInt * | getInternalPointIndexes (IlUInt &count) const |
Returns the data point indexes stored in this object. More... | |
const IlvPoint * | getInternalPoints (IlUInt &count) const |
Returns the projected points stored in this object. More... | |
void | getPoint (IlUInt index, IlvPoint &point, IlUInt &dataPtIdx) const |
Returns a projected point and its corresponding data point index. More... | |
void | getPoint (IlUInt index, IlvPoint &point) const |
Returns a data point. More... | |
virtual IlvPalette * | getPointPalette (IlUInt index, IlBoolean usePointInfo=IlTrue, IlvPalette *defaultPalette=0) const |
Returns the palette that must be used to draw a projected point. More... | |
IlvPoint * | getPoints (IlUInt &count) const |
Returns a copy of the projected points. More... | |
IlUInt | getPointsCount () const |
Returns the number of projected points stored in this object. More... | |
void | handleOutOfRangePoints (IlBoolean b) |
Specifies whether specific computations are done for out-of-range points. More... | |
void | insertPoint (const IlvPoint &point, IlUInt dataPtIdx=IlvBadIndex, IlUInt position=0) |
Inserts a projected point and its corresponding data point index. More... | |
virtual void | insertPoints (IlUInt count, const IlvPoint *points, const IlUInt *dataPtIdxes=0, IlUInt position=0) |
Inserts an array of projected points and their corresponding data point indexes. More... | |
IlBoolean | isCyclic () const |
Indicates whether specific computations are done for out-of-range points. | |
IlBoolean | isHandlingOutOfRangePoints () const |
Indicates whether specific computations are done for out-of-range points. More... | |
IlBoolean | isProjectedOnLimits (IlUInt index) const |
Indicates whether a projected point has been projected on the boundary of the data display area. More... | |
virtual IlBoolean | removePoint (IlUInt index) |
Removes a projected point. More... | |
virtual void | removePoints () |
Removes all the projected points stored in this object. More... | |
void | setChartGraphic (const IlvChartGraphic *chart) |
Sets the associated chart. More... | |
void | setDisplayer (const IlvSingleChartDisplayer *displayer) |
Sets the associated displayer. More... | |
virtual void | setPoint (IlUInt index, const IlvPoint &point, IlUInt dataPtIdx=IlvBadIndex) |
Modifies a projected point and its corresponding data point index. More... | |
void | setProjectedOnLimits (IlUInt index, IlBoolean flag) |
Specifies whether a projected point has been projected on the boundary of the data display area. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IlvChartDisplayerPoints | |
virtual void | projectOutOfBoundOnLimits (const IlvTransformer *t=0) |
Projects the projected points on the boundary when these points are out-of-bounds. More... | |
Utility class for displaying data points.
Library: ilvcharts
This class is a subclass of IlvChartDisplayerPoints
that allows you to filter the points to display.
IlvChartDisplayerPoints
. IlvChartPointsFilter::IlvChartPointsFilter | ( | const IlvChartGraphic * | chart, |
const IlvSingleChartDisplayer * | displayer, | ||
IlvDim | clusterSize = 2 |
||
) |
Constructor.
Initializes a new IlvChartPointsFilter
instance.
chart | The associated chart. |
displayer | The associated displayer. |
clusterSize | The minimum distance between two consecutive displayed points. |
IlvDim IlvChartPointsFilter::getClusterSize | ( | ) | const |
Returns the minimum distance between two consecutive displayed points.
|
virtual |
Initializes the current object with a set of data points to project.
This method performs the projection of the data points dataPoints and stores in the current object the resulting points and their corresponding data point indexes given by dataPtIdxes.
count | The number of data points. |
dataPoints | The data points to project. |
dataPtIdxes | The indexes of the data points in the data set. |
abscissaRange | The range of the abscissa coordinate that is currently used by the chart. |
shiftOfCycleLength | A Boolean value indicating whether the data points are shifted by the cycle length. |
t | The transformer applied to the chart graphic. |
Reimplemented from IlvChartDisplayerPoints.
void IlvChartPointsFilter::setClusterSize | ( | IlvDim | size | ) |
Sets the minimum distance between two consecutive displayed points.
size | The new minimum distance between two consecutive displayed points. |
© Copyright 2017, 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.