scatter 0.1.0
scatter::CairoRenderer Class Reference

[brief description] More...

#include <CairoRenderer.hpp>

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

Public Member Functions

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

Protected Member Functions

Pango::FontDescription makeFont (const TextOptions &options)
 [brief description]
 
void draw (const std::function< void()> &drawing_function, const Colour &colour, bool fill, const double &line_width=0.1)
 [brief description]
 

Detailed Description

[brief description]

[long description]

Constructor & Destructor Documentation

◆ CairoRenderer()

scatter::CairoRenderer::CairoRenderer ( const std::string & filename,
const double & width,
const double & height )

[brief description]

[long description]

Parameters
filename[description]
width[description]
height[description]

◆ ~CairoRenderer()

virtual scatter::CairoRenderer::~CairoRenderer ( )
virtual

[brief description]

[long description]

Member Function Documentation

◆ area()

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

[brief description]

[long description]

Parameters
points[description]
colour[description]

Implements scatter::Renderer.

◆ arrow()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ asterisk()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ circle()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ cross()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ diamond()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ draw()

void scatter::CairoRenderer::draw ( const std::function< void()> & drawing_function,
const Colour & colour,
bool fill,
const double & line_width = 0.1 )
protected

[brief description]

[long description]

Parameters
drawing_function[description]
colour[description]
fill[description]
line_width[description]

◆ ellipse()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ getCharWidth()

double scatter::CairoRenderer::getCharWidth ( const TextOptions & options)
virtual

[brief description]

[long description]

Parameters
options[description]
Returns
[description]

Implements scatter::Renderer.

◆ line()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ makeFont()

Pango::FontDescription scatter::CairoRenderer::makeFont ( const TextOptions & options)
protected

[brief description]

[long description]

Parameters
options[description]
Returns
[description]

◆ plus()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ rectangle()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ restrictArea()

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

[brief description]

[long description]

Parameters
p1[description]
p2[description]

Implements scatter::Renderer.

◆ square()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ star()

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ text() [1/2]

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ text() [2/2]

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

[brief description]

[long description]

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

Implements scatter::Renderer.

◆ triangle()

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

[brief description]

[long description]

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

Implements scatter::Renderer.


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