scatter 0.1.0
scatter::Renderer Class Referenceabstract

[brief description] More...

#include <Renderer.hpp>

Inheritance diagram for scatter::Renderer:
scatter::CairoRenderer

Public Member Functions

 Renderer ()
 [brief description]
 
virtual ~Renderer ()
 [brief description]
 
virtual void restrictArea (const Point &p1, const Point &p2)=0
 [brief description]
 
virtual void area (const std::vector< Point > &points, const Colour &colour=Colour())=0
 [brief description]
 
virtual void circle (const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void line (const Point &p1, const Point &p2, const Colour &colour=Colour(), const double &line_width=0.1)=0
 [brief description]
 
virtual void rectangle (const Point &p1, const Point &p2, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void ellipse (const Point &p, const double &minor, const double &major, const double &rotation, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void asterisk (const Point &p, const double &radius, const Colour &colour=Colour())=0
 [brief description]
 
virtual void cross (const Point &p, const double &radius, const Colour &colour=Colour())=0
 [brief description]
 
virtual void plus (const Point &p, const double &radius, const Colour &colour=Colour())=0
 [brief description]
 
virtual void triangle (const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void diamond (const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void square (const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void star (const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)=0
 [brief description]
 
virtual void arrow (const Point &p1, const Point &p2, const Point &p3, const Point &p4, const Colour &colour=Colour())=0
 [brief description]
 
virtual void text (const Point &p, const std::string &label, const TextOptions &options=TextOptions())=0
 [brief description]
 
virtual void text (const Point &p, const std::string &label, const Anchor &anchor)=0
 [brief description]
 
virtual double getCharWidth (const TextOptions &options)=0
 [brief description]
 

Detailed Description

[brief description]

[long description]

Returns
[description]

Constructor & Destructor Documentation

◆ Renderer()

scatter::Renderer::Renderer ( )

[brief description]

[long description]

◆ ~Renderer()

virtual scatter::Renderer::~Renderer ( )
virtual

[brief description]

[long description]

Member Function Documentation

◆ area()

virtual void scatter::Renderer::area ( const std::vector< Point > & points,
const Colour & colour = Colour() )
pure virtual

[brief description]

[long description]

Parameters
points[description]
colour[description]

Implemented in scatter::CairoRenderer.

◆ arrow()

virtual void scatter::Renderer::arrow ( const Point & p1,
const Point & p2,
const Point & p3,
const Point & p4,
const Colour & colour = Colour() )
pure virtual

[brief description]

[long description]

Parameters
p1[description]
p2[description]
p3[description]
p4[description]
colour[description]

Implemented in scatter::CairoRenderer.

◆ asterisk()

virtual void scatter::Renderer::asterisk ( const Point & p,
const double & radius,
const Colour & colour = Colour() )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]

Implemented in scatter::CairoRenderer.

◆ circle()

virtual void scatter::Renderer::circle ( const Point & p,
const double & radius,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.

◆ cross()

virtual void scatter::Renderer::cross ( const Point & p,
const double & radius,
const Colour & colour = Colour() )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]

Implemented in scatter::CairoRenderer.

◆ diamond()

virtual void scatter::Renderer::diamond ( const Point & p,
const double & radius,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.

◆ ellipse()

virtual void scatter::Renderer::ellipse ( const Point & p,
const double & minor,
const double & major,
const double & rotation,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p[description]
minor[description]
major[description]
rotation[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.

◆ getCharWidth()

virtual double scatter::Renderer::getCharWidth ( const TextOptions & options)
pure virtual

[brief description]

[long description]

Parameters
options[description]
Returns
[description]

Implemented in scatter::CairoRenderer.

◆ line()

virtual void scatter::Renderer::line ( const Point & p1,
const Point & p2,
const Colour & colour = Colour(),
const double & line_width = 0.1 )
pure virtual

[brief description]

[long description]

Parameters
p1[description]
p2[description]
colour[description]
line_width[description]

Implemented in scatter::CairoRenderer.

◆ plus()

virtual void scatter::Renderer::plus ( const Point & p,
const double & radius,
const Colour & colour = Colour() )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]

Implemented in scatter::CairoRenderer.

◆ rectangle()

virtual void scatter::Renderer::rectangle ( const Point & p1,
const Point & p2,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p1[description]
p2[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.

◆ restrictArea()

virtual void scatter::Renderer::restrictArea ( const Point & p1,
const Point & p2 )
pure virtual

[brief description]

[long description]

Parameters
p1[description]
p2[description]

Implemented in scatter::CairoRenderer.

◆ square()

virtual void scatter::Renderer::square ( const Point & p,
const double & radius,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.

◆ star()

virtual void scatter::Renderer::star ( const Point & p,
const double & radius,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.

◆ text() [1/2]

virtual void scatter::Renderer::text ( const Point & p,
const std::string & label,
const Anchor & anchor )
pure virtual

[brief description]

[long description]

Parameters
p[description]
label[description]
anchor[description]

Implemented in scatter::CairoRenderer.

◆ text() [2/2]

virtual void scatter::Renderer::text ( const Point & p,
const std::string & label,
const TextOptions & options = TextOptions() )
pure virtual

[brief description]

[long description]

Parameters
p[description]
label[description]
options[description]

Implemented in scatter::CairoRenderer.

◆ triangle()

virtual void scatter::Renderer::triangle ( const Point & p,
const double & radius,
const Colour & colour = Colour(),
bool fill = true )
pure virtual

[brief description]

[long description]

Parameters
p[description]
radius[description]
colour[description]
fill[description]

Implemented in scatter::CairoRenderer.


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