#include <bezierline.h>
Public Member Functions | |
PAPYRUS_DRAWABLE (Bezierline) | |
virtual | ~Bezierline () |
Bezierline & | operator= (const Bezierline &other) |
BezierVertex | get_vertex (unsigned n) |
const BezierVertices & | get_vertices () |
void | add_vertex (BezierVertex v) |
void | add_vertex (double x, double y, double c1x, double c1y, double c2x, double c2y) |
void | set_vertex (unsigned n, BezierVertex v) |
void | set_vertex (unsigned n, double x, double y, double c1x, double c1y, double c2x, double c2y) |
void | set_vertices (BezierVertices vertices) |
virtual Drawable::pointer | start_marker () |
virtual void | set_start_marker (Drawable::pointer) |
virtual Drawable::pointer | end_marker () |
virtual void | set_end_marker (Drawable::pointer) |
virtual Drawable::pointer | vertex_marker () |
virtual void | set_vertex_marker (Drawable::pointer) |
virtual void | draw (Context &cairo) const |
virtual void | draw_shape (Context &cairo) const |
Draws on the provided context. | |
sigc::signal< void, unsigned > & | signal_vertex () |
sigc::signal< void > & | signal_vertices () |
sigc::signal< void > | signal_start_marker () |
sigc::signal< void > | signal_end_marker () |
sigc::signal< void > | signal_vertex_marker () |
Static Public Member Functions | |
static pointer | create (BezierVertices vertices=BezierVertices()) |
Creates a polyline from a specified set of vertices. | |
static pointer | create (const Glib::ustring &id, BezierVertices vertices=BezierVertices()) |
Creates a polyline from a specified set of vertices. | |
Protected Member Functions | |
Bezierline (const Glib::ustring &id, BezierVertices vertices=BezierVertices()) | |
virtual void | on_vertex_changed (int n) |
virtual void | on_vertices_changed () |
Protected Attributes | |
BezierVertices | m_vertices |
Drawable::pointer | m_start_marker |
Drawable::pointer | m_end_marker |
Drawable::pointer | m_vertex_marker |
sigc::signal< void, unsigned > | m_signal_vertex |
sigc::signal< void > | m_signal_vertices |
sigc::signal< void > | m_signal_start_marker |
sigc::signal< void > | m_signal_end_marker |
sigc::signal< void > | m_signal_vertex_marker |
Bezierline
Papyrus::Bezierline::Bezierline | ( | const Glib::ustring & | id, | |
BezierVertices | vertices = BezierVertices() | |||
) | [protected] |
Papyrus::Bezierline::~Bezierline | ( | ) | [virtual] |
void Papyrus::Bezierline::add_vertex | ( | double | x, | |
double | y, | |||
double | c1x, | |||
double | c1y, | |||
double | c2x, | |||
double | c2y | |||
) |
References m_vertices, and on_vertex_changed().
void Papyrus::Bezierline::add_vertex | ( | BezierVertex | v | ) |
References m_vertices, and on_vertex_changed().
Bezierline::pointer Papyrus::Bezierline::create | ( | const Glib::ustring & | id, | |
BezierVertices | vertices = BezierVertices() | |||
) | [static] |
Creates a polyline from a specified set of vertices.
Reimplemented in Papyrus::Beziergon.
References PAPYRUS_CREATE.
Bezierline::pointer Papyrus::Bezierline::create | ( | BezierVertices | vertices = BezierVertices() |
) | [static] |
Creates a polyline from a specified set of vertices.
Reimplemented in Papyrus::Beziergon.
References PAPYRUS_CREATE.
void Papyrus::Bezierline::draw | ( | Context & | cairo | ) | const [virtual] |
Reimplemented from Papyrus::Shape.
References draw_shape(), Papyrus::Shape::draw_stroke_path(), Papyrus::Context::fill(), m_end_marker, Papyrus::Shape::m_fill, m_start_marker, Papyrus::Shape::m_stroke, m_vertex_marker, m_vertices, and Papyrus::Context::stroke().
void Papyrus::Bezierline::draw_shape | ( | Context & | cairo | ) | const [virtual] |
Draws on the provided context.
Implements Papyrus::Shape.
Reimplemented in Papyrus::Beziergon.
References m_vertices, Papyrus::Drawable::x(), and Papyrus::Drawable::y().
Referenced by draw().
Drawable::pointer Papyrus::Bezierline::end_marker | ( | ) | [virtual] |
References m_end_marker.
BezierVertex Papyrus::Bezierline::get_vertex | ( | unsigned | n | ) |
References m_vertices.
const BezierVertices & Papyrus::Bezierline::get_vertices | ( | ) |
References m_vertices.
void Papyrus::Bezierline::on_vertex_changed | ( | int | n | ) | [protected, virtual] |
References m_signal_vertex, m_signal_vertices, and Papyrus::Shape::shape_changed().
Referenced by add_vertex(), and set_vertex().
void Papyrus::Bezierline::on_vertices_changed | ( | ) | [protected, virtual] |
References m_signal_vertices, and Papyrus::Shape::shape_changed().
Referenced by set_vertices().
Bezierline & Papyrus::Bezierline::operator= | ( | const Bezierline & | other | ) |
Reimplemented from Papyrus::Shape.
References m_end_marker, m_signal_end_marker, m_signal_start_marker, m_signal_vertex_marker, m_signal_vertices, m_start_marker, m_vertex_marker, and m_vertices.
Papyrus::Bezierline::PAPYRUS_DRAWABLE | ( | Bezierline | ) |
Reimplemented in Papyrus::Beziergon.
void Papyrus::Bezierline::set_end_marker | ( | Drawable::pointer | marker | ) | [virtual] |
void Papyrus::Bezierline::set_start_marker | ( | Drawable::pointer | marker | ) | [virtual] |
void Papyrus::Bezierline::set_vertex | ( | unsigned | n, | |
double | x, | |||
double | y, | |||
double | c1x, | |||
double | c1y, | |||
double | c2x, | |||
double | c2y | |||
) |
References m_vertices, and on_vertex_changed().
void Papyrus::Bezierline::set_vertex | ( | unsigned | n, | |
BezierVertex | v | |||
) |
References m_vertices, and on_vertex_changed().
void Papyrus::Bezierline::set_vertex_marker | ( | Drawable::pointer | marker | ) | [virtual] |
References Papyrus::Object::m_signal_changed, m_signal_vertex_marker, and m_vertex_marker.
void Papyrus::Bezierline::set_vertices | ( | BezierVertices | vertices | ) |
References m_vertices, and on_vertices_changed().
sigc::signal< void > Papyrus::Bezierline::signal_end_marker | ( | ) |
References m_signal_end_marker.
sigc::signal< void > Papyrus::Bezierline::signal_start_marker | ( | ) |
References m_signal_start_marker.
sigc::signal< void, unsigned > & Papyrus::Bezierline::signal_vertex | ( | ) |
References m_signal_vertex.
sigc::signal< void > Papyrus::Bezierline::signal_vertex_marker | ( | ) |
References m_signal_vertex_marker.
sigc::signal< void > & Papyrus::Bezierline::signal_vertices | ( | ) |
References m_signal_vertices.
Drawable::pointer Papyrus::Bezierline::start_marker | ( | ) | [virtual] |
References m_start_marker.
Drawable::pointer Papyrus::Bezierline::vertex_marker | ( | ) | [virtual] |
References m_vertex_marker.
Drawable::pointer Papyrus::Bezierline::m_end_marker [protected] |
Referenced by draw(), end_marker(), operator=(), and set_end_marker().
sigc::signal<void> Papyrus::Bezierline::m_signal_end_marker [protected] |
Referenced by operator=(), set_end_marker(), and signal_end_marker().
sigc::signal<void> Papyrus::Bezierline::m_signal_start_marker [protected] |
Referenced by operator=(), set_start_marker(), and signal_start_marker().
sigc::signal<void, unsigned> Papyrus::Bezierline::m_signal_vertex [protected] |
Referenced by on_vertex_changed(), and signal_vertex().
sigc::signal<void> Papyrus::Bezierline::m_signal_vertex_marker [protected] |
Referenced by operator=(), set_vertex_marker(), and signal_vertex_marker().
sigc::signal<void> Papyrus::Bezierline::m_signal_vertices [protected] |
Referenced by on_vertex_changed(), on_vertices_changed(), operator=(), and signal_vertices().
Drawable::pointer Papyrus::Bezierline::m_start_marker [protected] |
Referenced by draw(), operator=(), set_start_marker(), and start_marker().
Referenced by draw(), operator=(), set_vertex_marker(), and vertex_marker().
BezierVertices Papyrus::Bezierline::m_vertices [protected] |
Referenced by add_vertex(), draw(), draw_shape(), Papyrus::Beziergon::draw_shape(), get_vertex(), get_vertices(), operator=(), set_vertex(), and set_vertices().