Cursor subclass for Cartesian charts. More...
#include <ilviews/charts/cursor.h>
Public Member Functions | |
| IlvRectangularChartCursor (IlDouble value, IlvPalette *palette=0) | |
| Constructor. More... | |
| virtual void | delimiterBBox (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, const IlvRect &scaleDataDisplayArea, IlvRect &bbox) const |
| Returns the bounding box of the delimiter. More... | |
| virtual void | drawDelimiter (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, const IlvRect &scaleDataDisplayArea, IlvPort *dst, const IlvRegion *clip) const |
| Draws the cursor delimiter. More... | |
Public Member Functions inherited from IlvAbstractChartCursor | |
| virtual | ~IlvAbstractChartCursor () |
| Destructor. More... | |
| virtual void | axisMarkBBox (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, IlvRect &bbox) const |
| Returns the bounding box of the axis mark. More... | |
| virtual void | boundingBox (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, const IlvRect &scaleDataDisplayArea, IlvRect &bbox) const |
| Returns the bounding box of the cursor. More... | |
| virtual void | draw (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, const IlvRect &scaleDataDisplayArea, IlvPort *dst, const IlvRegion *clip) const |
| Draws the cursor. More... | |
| virtual void | drawAxisMark (const IlvSingleScaleDisplayer *scale, const IlvPoint &cursorPoint, IlDouble cursorAngle, IlvPort *dst, const IlvRegion *clip) const |
| Draws the axis mark. More... | |
| void | drawAxisMark (IlBoolean draw) |
| Specifies whether the cursor draws an axis mark. More... | |
| void | drawDelimiter (IlBoolean draw) |
| Specifies whether the cursor draws a delimiter. More... | |
| void | drawGhost (IlBoolean ghost) |
| Specifies whether the delimiter is drawn is XOR mode. More... | |
| IlvDrawOrder | getDrawOrder () const |
| Returns the drawing order of the cursor. More... | |
| const char * | getLabel () const |
| Returns the label associated with the cursor. More... | |
| const char * | getName () const |
| Returns the name of the cursor. More... | |
| IlvPalette * | getPalette () const |
| Returns the palette used to draw the cursor. More... | |
| IlDouble | getValue () const |
| Returns the value associated with the cursor. More... | |
| IlBoolean | isDrawingAxisMark () const |
| Indicates whether the cursor draws an axis mark. More... | |
| IlBoolean | isDrawingDelimiter () const |
| Indicates whether the cursor draws a delimiter. More... | |
| IlBoolean | isDrawingGhost () const |
| Indicates whether the delimiter is drawn in XOR mode. More... | |
| IlBoolean | isVisible () const |
| Returns the visibility state of the cursor. More... | |
| void | setDrawOrder (IlvDrawOrder drawOrder) |
| Sets the drawing order of the cursor. More... | |
| void | setLabel (const char *label) |
| Sets the label of the cursor. More... | |
| void | setName (const char *name) |
| Sets the name of the cursor. More... | |
| void | setPalette (IlvPalette *palette) |
| Sets the palette used to draw the cursor. More... | |
| void | setValue (IlDouble value) |
| Sets the value of the cursor. More... | |
| void | setVisible (IlBoolean visible) |
| Sets the visibility state of the cursor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IlvAbstractChartCursor | |
| IlvAbstractChartCursor (const IlvAbstractChartCursor &cursor) | |
| Constructor. More... | |
| IlvAbstractChartCursor (IlDouble value, IlvPalette *palette=0) | |
| Constructor. More... | |
| IlvAbstractChartCursor (IlvInputFile &file) | |
| Constructor. More... | |
Cursor subclass for Cartesian charts.
Library: ilvcharts
This class is a subclass of IlvAbstractChartCursor that allows you to define a rectangular cursor. A rectangular cursor associated with a given scale is a line orthogonal to the axis of this scale. This kind of cursor is used only for Cartesian charts. A Cartesian chart is a chart that displays data expressed in Cartesian coordinates with abscissa and ordinate scales that are orthogonal.
You can see an example of rectangular cursor on the figure below where a cursor is added to the ordinate scale of the displayed chart.
IlvAbstractChartCursor. | IlvRectangularChartCursor::IlvRectangularChartCursor | ( | IlDouble | value, |
| IlvPalette * | palette = 0 |
||
| ) |
Constructor.
Initializes a new IlvRectangularChartCursor object.
| value | The cursor value. |
| palette | The palette used to draw the cursor. |
|
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 |
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.