22#include <cairomm/context.h>
23#include <cairomm/surface.h>
24#include <pangomm/fontdescription.h>
26#include <scatter/render/Renderer.hpp>
48 CairoRenderer(
const std::string &filename,
const double &width,
const double &height);
225 void text(
const Point &p,
const std::string &label,
const Anchor &anchor);
255 void draw(
const std::function<
void()> &drawing_function,
const Colour &colour,
bool fill,
const double &line_width = 0.1);
259 Cairo::RefPtr<Cairo::Surface> surface_;
261 Cairo::RefPtr<Cairo::Context> context_;
[brief description]
Definition CairoRenderer.hpp:38
void text(const Point &p, const std::string &label, const Anchor &anchor)
[brief description]
virtual ~CairoRenderer()
[brief description]
void draw(const std::function< void()> &drawing_function, const Colour &colour, bool fill, 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 asterisk(const Point &p, const double &radius, const Colour &colour=Colour())
[brief description]
double getCharWidth(const TextOptions &options)
[brief description]
void square(const Point &p, const double &radius, 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 star(const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)
[brief description]
void plus(const Point &p, const double &radius, const Colour &colour=Colour())
[brief description]
void area(const std::vector< Point > &points, const Colour &colour=Colour())
[brief description]
CairoRenderer(const std::string &filename, const double &width, const double &height)
[brief description]
void line(const Point &p1, const Point &p2, const Colour &colour=Colour(), const double &line_width=0.1)
[brief description]
void cross(const Point &p, const double &radius, const Colour &colour=Colour())
[brief description]
void diamond(const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)
[brief description]
void text(const Point &p, const std::string &label, const TextOptions &options=TextOptions())
[brief description]
Pango::FontDescription makeFont(const TextOptions &options)
[brief description]
void triangle(const Point &p, const double &radius, const Colour &colour=Colour(), bool fill=true)
[brief description]
void circle(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 restrictArea(const Point &p1, const Point &p2)
[brief description]
define a RGBA colour
Definition Colour.hpp:34
[brief description]
Definition Point.hpp:29
[brief description]
Definition Renderer.hpp:38
[brief description]
Definition TextOptions.hpp:32