![]() Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Abstract base class for chart data manipulation. More...
#include <ilviews/charts/chartint.h>
Public Types | |
| enum | PickingMode |
Public Member Functions | |
| PickingMode | getPickingMode () const |
| Returns the current picking mode of the interactor. | |
| void | setPickingMode (PickingMode m) |
| Sets the current picking mode of the interactor. | |
Static Public Member Functions | |
| static IlvDim | GetPrecision () |
| Returns the precision used to find the data point corresponding to a given screen point. | |
| static void | SetPrecicion (IlvDim dim) |
| Deprecated misspelling of SetPrecision() | |
| static void | SetPrecision (IlvDim dim) |
| Sets the precision used to find the data point corresponding to a given screen point. | |
Protected Member Functions | |
| IlvChartDataInteractor () | |
| Constructor. | |
| IlvChartDataSet * | getHandledDataSet () const |
| Returns the handled data set. | |
| IlvAbstractChartDisplayer * | getHandledDisplayer () const |
| Returns the chart displayer representing the handled data. | |
| IlUInt | getHandledPointIndex () const |
| Returns the index of the handled data point. | |
| IlBoolean | isHandlingData () const |
| Checks whether valid information about a data point has been stored. | |
| virtual IlBoolean | queryData (IlvChartGraphic *chart, IlvPoint &evp, const IlvTransformer *t) |
| Retrieves and stores information about a data point. | |
Abstract base class for chart data manipulation.
Library: ilvcharts
This class provides an interface for querying and storing information about the data point corresponding to a given event location in the chart data area.
The picking mode defines how a data point is retrieved by the queryData() method.
ItemPicking: this method takes into account the whole displayed item (like a bar for instance).
NearestPointPicking: only the projected data point is taken into account.
| IlvChartDataInteractor::IlvChartDataInteractor | ( | ) | [protected] |
Constructor.
Initializes a new IlvChartDataInteractor object.
| IlvChartDataSet* IlvChartDataInteractor::getHandledDataSet | ( | ) | const [protected] |
Returns the handled data set.
| IlvAbstractChartDisplayer* IlvChartDataInteractor::getHandledDisplayer | ( | ) | const [protected] |
Returns the chart displayer representing the handled data.
| IlUInt IlvChartDataInteractor::getHandledPointIndex | ( | ) | const [protected] |
Returns the index of the handled data point.
| PickingMode IlvChartDataInteractor::getPickingMode | ( | ) | const |
Returns the current picking mode of the interactor.
| static IlvDim IlvChartDataInteractor::GetPrecision | ( | ) | [static] |
Returns the precision used to find the data point corresponding to a given screen point.
IlvGetDeltaLine method. | IlBoolean IlvChartDataInteractor::isHandlingData | ( | ) | const [protected] |
Checks whether valid information about a data point has been stored.
IlTrue if valid information about a data point has been stored. | virtual IlBoolean IlvChartDataInteractor::queryData | ( | IlvChartGraphic * | chart, | |
| IlvPoint & | evp, | |||
| const IlvTransformer * | t | |||
| ) | [protected, virtual] |
Retrieves and stores information about a data point.
Given an event location, the closest projected data point is retrieved from the chart. This method stores the following information about the considered data point:
| chart | The considered chart. | |
| evp | The event location in view coordinates. | |
| t | The transformer applied to the view in which the event occurred. |
IlTrue if a data point projection was near the event location. getHandledDisplayer, getHandledDataSet, getHandledPointIndex. | void IlvChartDataInteractor::setPickingMode | ( | PickingMode | m | ) |
Sets the current picking mode of the interactor.
| static void IlvChartDataInteractor::SetPrecision | ( | IlvDim | dim | ) | [static] |
Sets the precision used to find the data point corresponding to a given screen point.
The precision used to find the data point corresponding to a given screen point is set to dim.
IlvGetDeltaLine method. © 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.