rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvChartDataInteractor Class Reference

Abstract base class for chart data manipulation. More...

#include <ilviews/charts/chartint.h>

Inheritance diagram for IlvChartDataInteractor:
IlvChartInteractor IlvInteractor IlvChartDragPointInteractor IlvChartHighlightPointInteractor IlvChartSelectInteractor IlvChartInfoViewInteractor

List of all members.

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.
IlvChartDataSetgetHandledDataSet () const
 Returns the handled data set.
IlvAbstractChartDisplayergetHandledDisplayer () 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.

Detailed Description

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.


Member Enumeration Documentation

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.


Constructor & Destructor Documentation

IlvChartDataInteractor::IlvChartDataInteractor (  )  [protected]

Constructor.

Initializes a new IlvChartDataInteractor object.


Member Function Documentation

IlvChartDataSet* IlvChartDataInteractor::getHandledDataSet (  )  const [protected]

Returns the handled data set.

Returns:
The handled data set.
IlvAbstractChartDisplayer* IlvChartDataInteractor::getHandledDisplayer (  )  const [protected]

Returns the chart displayer representing the handled data.

Returns:
The chart displayer representing the handled data.
IlUInt IlvChartDataInteractor::getHandledPointIndex (  )  const [protected]

Returns the index of the handled data point.

Returns:
The index of the handled data point.
PickingMode IlvChartDataInteractor::getPickingMode (  )  const

Returns the current picking mode of the interactor.

See also:
PickingMode
static IlvDim IlvChartDataInteractor::GetPrecision (  )  [static]

Returns the precision used to find the data point corresponding to a given screen point.

Returns:
The precision used to find the data point corresponding to a given screen point.
Warning:
[note] The returned value indicates the maximum distance that is considered from a given view point to find the nearest displayed data point. The precision is set by default to the value returned by the IlvGetDeltaLine method.
IlBoolean IlvChartDataInteractor::isHandlingData (  )  const [protected]

Checks whether valid information about a data point has been stored.

Returns:
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:

  • The chart displayer representing this data point
  • The data series
  • The index of the data point in the series
Parameters:
chart The considered chart.
evp The event location in view coordinates.
t The transformer applied to the view in which the event occurred.
Returns:
IlTrue if a data point projection was near the event location.
See also:
getHandledDisplayer, getHandledDataSet, getHandledPointIndex.
void IlvChartDataInteractor::setPickingMode ( PickingMode  m  ) 

Sets the current picking mode of the interactor.

See also:
PickingMode
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.

Warning:
[note] This value indicates the maximum distance that is considered from a given view point to find the nearest displayed data point. The precision is set by default to the value returned by the IlvGetDeltaLine method.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.