papyrus logo

Papyrus::Bezierline Class Reference

#include <bezierline.h>

Inheritance diagram for Papyrus::Bezierline:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PAPYRUS_DRAWABLE (Bezierline)
virtual ~Bezierline ()
Bezierlineoperator= (const Bezierline &other)
BezierVertex get_vertex (unsigned n)
const BezierVerticesget_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

Detailed Description

bezierline.png

Bezierline

Author:
Rick L Vinyard Jr

Constructor & Destructor Documentation

Papyrus::Bezierline::Bezierline ( const Glib::ustring &  id,
BezierVertices  vertices = BezierVertices() 
) [protected]
Papyrus::Bezierline::~Bezierline (  )  [virtual]

Member Function Documentation

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]
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]
void Papyrus::Bezierline::on_vertices_changed (  )  [protected, virtual]
Bezierline & Papyrus::Bezierline::operator= ( const Bezierline other  ) 
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]
void Papyrus::Bezierline::set_vertices ( BezierVertices  vertices  ) 
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 (  ) 
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.


Member Data Documentation

sigc::signal<void> Papyrus::Bezierline::m_signal_end_marker [protected]
sigc::signal<void> Papyrus::Bezierline::m_signal_start_marker [protected]
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]
sigc::signal<void> Papyrus::Bezierline::m_signal_vertices [protected]

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

Generated on Fri Apr 16 12:41:06 2010 for papyrus by doxygen 1.6.1