papyrus logo

Papyrus::Path Class Reference

#include <path.h>

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

List of all members.

Public Types

typedef std::list
< PathElement::pointer
Elements
typedef Elements::iterator iterator
typedef Elements::const_iterator const_iterator
typedef Elements::reverse_iterator reverse_iterator
typedef
Elements::const_reverse_iterator 
const_reverse_iterator
typedef Elements::size_type size_type
typedef Elements::reference reference
typedef Elements::const_reference const_reference

Public Member Functions

 PAPYRUS_DRAWABLE (Path)
 ~Path ()
virtual void draw_shape (Context &cairo) const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const
size_type size () const
size_type max_size () const
bool empty () const
reference front ()
const_reference front () const
reference back ()
const_reference back () const
void push_front (PathElement::pointer element)
void push_front (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)
void push_back (PathElement::pointer element)
void push_back (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)
void pop_front ()
void pop_back ()
iterator insert (iterator pos, PathElement::pointer element)
iterator insert (iterator pos, 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)
iterator erase (iterator pos)
iterator erase (iterator first, iterator last)
void set (const char *path)
 Sets the path elements to the given SVG path string.
void set (const Glib::ustring &path)
 Sets the path elements to the given SVG path string.
virtual void set (const AttributeValueMap &avmap)
void clear ()
void remove (PathElement::pointer element)
void reverse ()
virtual Glib::ustring svg (unsigned depth=0)

Static Public Member Functions

static pointer create (const char *path=NULL, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())
static pointer create (const Glib::ustring &path, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())
static pointer create (const Glib::ustring &id, const char *path, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())
static pointer create (const Glib::ustring &id, const Glib::ustring &path, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())
static pointer create (const AttributeValueMap &avmap)

Protected Member Functions

 Path (const Glib::ustring &id, const char *path, Fill::pointer fill, Stroke::pointer stroke)
 Path (const AttributeValueMap &avmap)

Protected Attributes

Elements m_elements

Detailed Description

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

Member Typedef Documentation

typedef Elements::const_iterator Papyrus::Path::const_iterator
typedef Elements::const_reference Papyrus::Path::const_reference
typedef Elements::const_reverse_iterator Papyrus::Path::const_reverse_iterator
typedef Elements::iterator Papyrus::Path::iterator
typedef Elements::reference Papyrus::Path::reference
typedef Elements::reverse_iterator Papyrus::Path::reverse_iterator
typedef Elements::size_type Papyrus::Path::size_type

Constructor & Destructor Documentation

Papyrus::Path::Path ( const Glib::ustring &  id,
const char *  path,
Fill::pointer  fill,
Stroke::pointer  stroke 
) [protected]

References m_elements, and Papyrus::path_data_parser().

Referenced by create().

Papyrus::Path::Path ( const AttributeValueMap avmap  )  [protected]
Papyrus::Path::~Path (  ) 

Member Function Documentation

Path::const_reference Papyrus::Path::back (  )  const

References m_elements.

Path::reference Papyrus::Path::back (  ) 

References m_elements.

Path::const_iterator Papyrus::Path::begin (  )  const

References m_elements.

Path::iterator Papyrus::Path::begin (  ) 

References m_elements.

void Papyrus::Path::clear (  ) 
Path::pointer Papyrus::Path::create ( const AttributeValueMap avmap  )  [static]

References PAPYRUS_CREATE, and Path().

Path::pointer Papyrus::Path::create ( const Glib::ustring &  id,
const Glib::ustring &  path,
Fill::pointer  fill = Fill::pointer(),
Stroke::pointer  stroke = Stroke::pointer() 
) [static]

References PAPYRUS_CREATE.

Path::pointer Papyrus::Path::create ( const Glib::ustring &  id,
const char *  path,
Fill::pointer  fill = Fill::pointer(),
Stroke::pointer  stroke = Stroke::pointer() 
) [static]

References PAPYRUS_CREATE.

Path::pointer Papyrus::Path::create ( const Glib::ustring &  path,
Fill::pointer  fill = Fill::pointer(),
Stroke::pointer  stroke = Stroke::pointer() 
) [static]

References PAPYRUS_CREATE.

Path::pointer Papyrus::Path::create ( const char *  path = NULL,
Fill::pointer  fill = Fill::pointer(),
Stroke::pointer  stroke = Stroke::pointer() 
) [static]

References PAPYRUS_CREATE.

Referenced by Papyrus::SVG::process_element().

void Papyrus::Path::draw_shape ( Context cairo  )  const [virtual]

Implements Papyrus::Shape.

References m_elements.

bool Papyrus::Path::empty (  )  const

References m_elements.

Path::const_iterator Papyrus::Path::end (  )  const

References m_elements.

Path::iterator Papyrus::Path::end (  ) 

References m_elements.

Path::iterator Papyrus::Path::erase ( iterator  first,
iterator  last 
)
Path::iterator Papyrus::Path::erase ( iterator  pos  ) 
Path::const_reference Papyrus::Path::front (  )  const

References m_elements.

Path::reference Papyrus::Path::front (  ) 

References m_elements.

Path::iterator Papyrus::Path::insert ( iterator  pos,
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 
)
Path::iterator Papyrus::Path::insert ( iterator  pos,
PathElement::pointer  element 
)

References m_elements, and Papyrus::Shape::shape_changed().

Referenced by insert().

Path::size_type Papyrus::Path::max_size (  )  const

References m_elements.

Papyrus::Path::PAPYRUS_DRAWABLE ( Path   ) 
void Papyrus::Path::pop_back (  ) 
void Papyrus::Path::pop_front (  ) 
void Papyrus::Path::push_back ( 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 
)
void Papyrus::Path::push_back ( PathElement::pointer  element  ) 

References m_elements, and Papyrus::Shape::shape_changed().

Referenced by push_back().

void Papyrus::Path::push_front ( 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 
)
void Papyrus::Path::push_front ( PathElement::pointer  element  ) 

References m_elements, and Papyrus::Shape::shape_changed().

Referenced by push_front().

Path::const_reverse_iterator Papyrus::Path::rbegin (  )  const

References m_elements.

Path::reverse_iterator Papyrus::Path::rbegin (  ) 

References m_elements.

void Papyrus::Path::remove ( PathElement::pointer  element  ) 
Path::const_reverse_iterator Papyrus::Path::rend (  )  const

References m_elements.

Path::reverse_iterator Papyrus::Path::rend (  ) 

References m_elements.

void Papyrus::Path::reverse (  ) 
void Papyrus::Path::set ( const AttributeValueMap avmap  )  [virtual]
void Papyrus::Path::set ( const Glib::ustring &  path  ) 

Sets the path elements to the given SVG path string.

References m_elements, Papyrus::path_data_parser(), and Papyrus::Shape::shape_changed().

void Papyrus::Path::set ( const char *  path  ) 

Sets the path elements to the given SVG path string.

References m_elements, Papyrus::path_data_parser(), and Papyrus::Shape::shape_changed().

Referenced by set().

Path::size_type Papyrus::Path::size (  )  const

References m_elements.

Glib::ustring Papyrus::Path::svg ( unsigned  depth = 0  )  [virtual]

Member Data Documentation


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