SPH
Public Member Functions | List of all members
SvgContext Class Reference

#include <SvgContext.h>

Inheritance diagram for SvgContext:
IDrawingContext Polymorphic

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< IDrawPathdrawPath () 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...
 
- Public Member Functions inherited from IDrawingContext
virtual void setStyle (const Size index)=0
 Changes the current drawing style. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Definition at line 50 of file SvgContext.h.

Constructor & Destructor Documentation

◆ SvgContext()

SvgContext::SvgContext ( const Path path,
const Pixel  size,
const double  dpi = 72 
)
inline

Definition at line 57 of file SvgContext.h.

Member Function Documentation

◆ drawErrorPoint()

virtual void SvgContext::drawErrorPoint ( const ErrorPlotPoint point)
inlineoverridevirtual

Adds a point with error bars to the plot.

Implements IDrawingContext.

Definition at line 65 of file SvgContext.h.

◆ drawLine()

virtual void SvgContext::drawLine ( const PlotPoint from,
const PlotPoint to 
)
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.

◆ drawPath()

virtual AutoPtr<IDrawPath> SvgContext::drawPath ( )
inlineoverridevirtual

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.

◆ drawPoint()

virtual void SvgContext::drawPoint ( const PlotPoint point)
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.

◆ setStyle()

virtual void SvgContext::setStyle ( const Size   UNUSEDindex)
inlineoverridevirtual

Definition at line 80 of file SvgContext.h.

◆ setTransformMatrix()

virtual void SvgContext::setTransformMatrix ( const AffineMatrix2 matrix)
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.


The documentation for this class was generated from the following file: