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. More... | |
void | setPickingMode (PickingMode m) |
Sets the current picking mode of the interactor. More... | |
Public Member Functions inherited from IlvChartInteractor | |
virtual void | endSequence (IlvChartGraphic *chart, const IlvEvent &event, const IlvTransformer *t) |
Performs the actions needed when an interactor leaves an event sequence. More... | |
virtual IlBoolean | handleEvent (IlvGraphic *chart, IlvEvent &event, const IlvTransformer *t=0)=0 |
Handles events received by the interactor. More... | |
IlBoolean | isShared () const |
Indicates whether the current object is a shared instance. More... | |
virtual IlBoolean | isShowingAbscissaCursor () const |
Indicates whether the interactor uses a cursor on the abscissa. More... | |
virtual IlBoolean | isShowingOrdinateCursor () const |
Indicates whether the interactor uses a cursor on the ordinate. More... | |
virtual void | startSequence (IlvChartGraphic *chart, const IlvEvent &event, const IlvTransformer *t) |
Performs the actions needed when an interactor enters an event sequence. More... | |
Static Public Member Functions | |
static IlvDim | GetPrecision () |
Returns the precision used to find the data point corresponding to a given screen point. More... | |
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. More... | |
Static Public Member Functions inherited from IlvChartInteractor | |
static IlvChartInteractor * | Get (const char *name) |
Returns a shared interactor instance. More... | |
Protected Member Functions | |
IlvChartDataInteractor () | |
Constructor. More... | |
IlvChartDataSet * | getHandledDataSet () const |
Returns the handled data set. More... | |
IlvAbstractChartDisplayer * | getHandledDisplayer () const |
Returns the chart displayer representing the handled data. More... | |
IlUInt | getHandledPointIndex () const |
Returns the index of the handled data point. More... | |
IlBoolean | isHandlingData () const |
Checks whether valid information about a data point has been stored. More... | |
virtual IlBoolean | queryData (IlvChartGraphic *chart, IlvPoint &evp, const IlvTransformer *t) |
Retrieves and stores information about a data point. More... | |
Protected Member Functions inherited from IlvChartInteractor | |
IlvChartInteractor () | |
Constructor. More... | |
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.
|
protected |
Constructor.
Initializes a new IlvChartDataInteractor
object.
|
protected |
Returns the handled data set.
|
protected |
Returns the chart displayer representing the handled data.
|
protected |
Returns the index of the handled data point.
PickingMode IlvChartDataInteractor::getPickingMode | ( | ) | const |
Returns the current picking mode of the interactor.
|
static |
Returns the precision used to find the data point corresponding to a given screen point.
IlvGetDeltaLine()
function.
|
protected |
Checks whether valid information about a data point has been stored.
IlTrue
if valid information about a data point has been stored.
|
protectedvirtual |
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. void IlvChartDataInteractor::setPickingMode | ( | PickingMode | m | ) |
Sets the current picking mode of the interactor.
|
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()
function.