Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Cursor subclass for the abscissa scale of polar charts. More...
#include <ilviews/charts/cursor.h>
Public Member Functions | |
IlvRadialChartCursor (IlDouble value, IlvPalette *palette=0) | |
Constructor. | |
virtual void | delimiterBBox (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, const IlvRect &scaleDataDisplayArea, IlvRect &bbox) const |
Returns the bounding box of the delimiter. | |
virtual void | drawDelimiter (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, const IlvRect &scaleDataDisplayArea, IlvPort *dst, const IlvRegion *clip) const |
Draws the cursor delimiter. |
Cursor subclass for the abscissa scale of polar charts.
Library: ilvcharts
This class is a subclass of IlvAbstractChartCursor
that allows you to define a radial cursor. This kind of cursor is used only for polar charts. A polar chart displays data expressed in polar coordinates with an abscissa scale that is circular and ordinate scales that are radial. A radial cursor is designed to be added to the circular scale of a polar chart. It draws a line joining the center of the data display area to the point on the abscissa scale corresponding to the cursor value.
You can see an example of a radial cursor on the figure below where a cursor is added to the abscissa scale of the displayed chart.
IlvAbstractChartCursor
. IlvRadialChartCursor::IlvRadialChartCursor | ( | IlDouble | value, | |
IlvPalette * | palette = 0 | |||
) |
Constructor.
Initializes a new IlvRadialChartCursor
object.
value | The cursor value. | |
palette | The palette used to draw the cursor. |
virtual void IlvRadialChartCursor::delimiterBBox | ( | const IlvSingleScaleDisplayer * | scale, | |
const IlvPoint & | cursorPoint, | |||
IlDouble | cursorAngle, | |||
const IlvRect & | scaleDataDisplayArea, | |||
IlvRect & | bbox | |||
) | const [virtual] |
Returns the bounding box of the delimiter.
This method must be defined in subclasses.
scale | The scale to which the cursor is attached. | |
cursorpoint | The point in view coordinates on the scale axis. | |
cursorAngle | The direction angle of the cursor from the scale axis. | |
scaleDataDisplayArea | The data display area of the corresponding scale. | |
bbox | The returned bounding box. |
Implements IlvAbstractChartCursor.
virtual void IlvRadialChartCursor::drawDelimiter | ( | const IlvSingleScaleDisplayer * | scale, | |
const IlvPoint & | cursorPoint, | |||
IlDouble | cursorAngle, | |||
const IlvRect & | scaleDataDisplayArea, | |||
IlvPort * | dst, | |||
const IlvRegion * | clip | |||
) | const [virtual] |
Draws the cursor delimiter.
This method must be defined in subclasses. The defined method should take into account the ghost drawing property of the delimiter (see the IlvAbstractChartCursor::isDrawingGhost
method).
scale | The scale to which the cursor is attached. | |
cursorpoint | The point in view coordinates on the scale axis. | |
cursorAngle | The direction angle of the cursor from the scale axis. | |
scaleDataDisplayArea | The data display area of the corresponding scale. | |
dst | The drawing port. | |
clip | The drawing clip. |
Implements IlvAbstractChartCursor.
© 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.