SPH
|
#include <SvgContext.h>
Public Member Functions | |
SvgContext (const Path &path, const Pixel size, const double dpi=72) | |
virtual void | drawPoint (const PlotPoint &point) override |
Adds a single point to the plot. More... | |
virtual void | drawErrorPoint (const ErrorPlotPoint &point) override |
Adds a point with error bars to the plot. More... | |
virtual void | drawLine (const PlotPoint &from, const PlotPoint &to) override |
Draws a line connecting two points. More... | |
virtual AutoPtr< IDrawPath > | drawPath () override |
Draws a path connecting points. More... | |
virtual void | setStyle (const Size UNUSED(index)) override |
virtual void | setTransformMatrix (const AffineMatrix2 &newMatrix) override |
Applies the given tranformation matrix on all primitives. More... | |
![]() | |
virtual void | setStyle (const Size index)=0 |
Changes the current drawing style. More... | |
![]() | |
virtual | ~Polymorphic () |
Definition at line 50 of file SvgContext.h.
Definition at line 57 of file SvgContext.h.
|
inlineoverridevirtual |
Adds a point with error bars to the plot.
Implements IDrawingContext.
Definition at line 65 of file SvgContext.h.
|
inlineoverridevirtual |
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.
Implements IDrawingContext.
Definition at line 70 of file SvgContext.h.
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.
Implements IDrawingContext.
Definition at line 76 of file SvgContext.h.
|
inlineoverridevirtual |
Adds a single point to the plot.
The plot is drawn by implementation-defined style.
Implements IDrawingContext.
Definition at line 60 of file SvgContext.h.
|
inlineoverridevirtual |
Definition at line 80 of file SvgContext.h.
|
inlineoverridevirtual |
Applies the given tranformation matrix on all primitives.
This does not affect already drawn primitives.
Implements IDrawingContext.
Definition at line 84 of file SvgContext.h.