SPH
|
Abstraction of a drawing context. More...
#include <Plot.h>
Public Member Functions | |
virtual void | drawPoint (const PlotPoint &point)=0 |
Adds a single point to the plot. More... | |
virtual void | drawErrorPoint (const ErrorPlotPoint &point)=0 |
Adds a point with error bars to the plot. More... | |
virtual void | drawLine (const PlotPoint &from, const PlotPoint &to)=0 |
Draws a line connecting two points. More... | |
virtual AutoPtr< IDrawPath > | drawPath ()=0 |
Draws a path connecting points. More... | |
virtual void | setStyle (const Size index)=0 |
Changes the current drawing style. More... | |
virtual void | setTransformMatrix (const AffineMatrix2 &matrix)=0 |
Applies the given tranformation matrix on all primitives. More... | |
![]() | |
virtual | ~Polymorphic () |
Abstraction of a drawing context.
Object operates in plot coordinates.
|
pure virtual |
Adds a point with error bars to the plot.
Implemented in TextContext, SvgContext, and GraphicsContext.
|
pure virtual |
Draws a line connecting two points.
The ending points are not drawn; call drawPoint manually if you wish to draw both lines and the points.
Implemented in SvgContext, and GraphicsContext.
Draws a path connecting points.
The path copies the state from the parent drawing context, so if a drawing style of the context changes, the change does not affect already existing paths.
Implemented in TextContext, SvgContext, and GraphicsContext.
|
pure virtual |
Adds a single point to the plot.
The plot is drawn by implementation-defined style.
Implemented in TextContext, SvgContext, and GraphicsContext.
|
pure virtual |
Changes the current drawing style.
Interpretation of the style is implementation-defined. It is assumed that the derived classes will have a predefined set of drawing styles, this function will then selects the style with appropriate index.
index | Index of the selected style. |
Implemented in GraphicsContext.
|
pure virtual |
Applies the given tranformation matrix on all primitives.
This does not affect already drawn primitives.
Implemented in SvgContext, and GraphicsContext.