papyrus logo

Papyrus::PathElement Class Reference

#include <path_element.h>

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

List of all members.

Public Member Functions

 PAPYRUS_RENDERABLE (PathElement)
 ~PathElement ()
PathElementType type ()
void set_type (PathElementType type)
double x ()
double y ()
void set_x (double x)
void set_y (double y)
void set_xy (double x, double y)
double x1 ()
double y1 ()
void set_x1 (double x1)
void set_y1 (double y1)
void set_x1y1 (double x1, double y1)
double x2 ()
double y2 ()
void set_x2 (double x2)
void set_y2 (double y2)
void set_x2y2 (double x2, double y2)
void set_xyx1y1x2y2 (double x, double y, double x1, double y1, double x2, double y2)
virtual void render (Context &cairo) const
virtual void render (Context &cairo, pointer previous) const
virtual Glib::ustring svg (unsigned depth=0)

Static Public Member Functions

static pointer create (PathElementType type, double x=0.0, double y=0.0, double x1=0.0, double y1=0.0, double x2=0.0, double y2=0.0)
static pointer create (const Glib::ustring &id, PathElementType type, double x=0.0, double y=0.0, double x1=0.0, double y1=0.0, double x2=0.0, double y2=0.0)

Protected Member Functions

 PathElement (const Glib::ustring &id, PathElementType type, double x, double y, double x1, double y1, double x2, double y2)

Protected Attributes

PathElementType m_type
weak_pointer m_self
double m_x
double m_y
double m_x1
double m_y1
double m_x2
double m_y2

Detailed Description

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Constructor & Destructor Documentation

Papyrus::PathElement::PathElement ( const Glib::ustring &  id,
PathElementType  type,
double  x,
double  y,
double  x1,
double  y1,
double  x2,
double  y2 
) [protected]
Papyrus::PathElement::~PathElement (  ) 

Member Function Documentation

PathElement::pointer Papyrus::PathElement::create ( const Glib::ustring &  id,
PathElementType  type,
double  x = 0.0,
double  y = 0.0,
double  x1 = 0.0,
double  y1 = 0.0,
double  x2 = 0.0,
double  y2 = 0.0 
) [static]

References PAPYRUS_CREATE.

PathElement::pointer Papyrus::PathElement::create ( PathElementType  type,
double  x = 0.0,
double  y = 0.0,
double  x1 = 0.0,
double  y1 = 0.0,
double  x2 = 0.0,
double  y2 = 0.0 
) [static]
Papyrus::PathElement::PAPYRUS_RENDERABLE ( PathElement   ) 
void Papyrus::PathElement::render ( Context cairo,
pointer  previous 
) const [virtual]
void Papyrus::PathElement::render ( Context cairo  )  const [virtual]

Implements Papyrus::Renderable.

void Papyrus::PathElement::set_type ( PathElementType  type  ) 
void Papyrus::PathElement::set_x ( double  x  ) 
void Papyrus::PathElement::set_x1 ( double  x1  ) 
void Papyrus::PathElement::set_x1y1 ( double  x1,
double  y1 
)
void Papyrus::PathElement::set_x2 ( double  x2  ) 
void Papyrus::PathElement::set_x2y2 ( double  x2,
double  y2 
)
void Papyrus::PathElement::set_xy ( double  x,
double  y 
)
void Papyrus::PathElement::set_xyx1y1x2y2 ( double  x,
double  y,
double  x1,
double  y1,
double  x2,
double  y2 
)
void Papyrus::PathElement::set_y ( double  y  ) 
void Papyrus::PathElement::set_y1 ( double  y1  ) 
void Papyrus::PathElement::set_y2 ( double  y2  ) 
Glib::ustring Papyrus::PathElement::svg ( unsigned  depth = 0  )  [virtual]
PathElementType Papyrus::PathElement::type (  ) 

References m_type.

double Papyrus::PathElement::x (  ) 

References m_x.

double Papyrus::PathElement::x1 (  ) 

References m_x1.

double Papyrus::PathElement::x2 (  ) 

References m_x2.

double Papyrus::PathElement::y (  ) 

References m_y.

double Papyrus::PathElement::y1 (  ) 

References m_y1.

double Papyrus::PathElement::y2 (  ) 

References m_y2.


Member Data Documentation

weak_pointer Papyrus::PathElement::m_self [protected]

Referenced by render(), set_type(), svg(), and type().

double Papyrus::PathElement::m_x [protected]
double Papyrus::PathElement::m_x1 [mutable, protected]
double Papyrus::PathElement::m_x2 [mutable, protected]
double Papyrus::PathElement::m_y [protected]
double Papyrus::PathElement::m_y1 [mutable, protected]
double Papyrus::PathElement::m_y2 [mutable, protected]

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

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