papyrus logo

Papyrus::SVG Class Reference

#include <svg.h>

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

List of all members.

Public Types

enum  StrType { FILE, MEMORY }
typedef enum Papyrus::SVG::StrType StrType

Public Member Functions

 PAPYRUS_DRAWABLE (SVG)
virtual ~SVG ()
bool set_from_file (const Glib::ustring &svg_filename)
bool set_from_memory (const Glib::ustring &svg)
bool set_from_memory (const unsigned char *contents, size_t bytes)
bool set_from_stream (std::istream &in)
bool set_from_document (const xmlpp::Document *doc)
bool set_from_element (const xmlpp::Element *element)
virtual Glib::ustring svg (unsigned depth=0)

Static Public Member Functions

static pointer create ()
static pointer create (const Glib::ustring &s, StrType st=FILE)
static pointer create (const Glib::ustring &id, const Glib::ustring &s, StrType st)

Protected Member Functions

 SVG ()
 SVG (const Glib::ustring &id, const Glib::ustring &filename, StrType st)
bool process_element (const xmlpp::Element *element, Group &parent, bool in_defs_section, bool is_root=false)

Private Member Functions

Glib::ustring extract_id_from_uri (const Glib::ustring &uri)

Static Private Member Functions

static void initialize_uri_regular_expression ()

Private Attributes

std::vector< Cairo::ColorStop > m_color_stops

Detailed Description

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

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
FILE 
MEMORY 

Constructor & Destructor Documentation

Papyrus::SVG::SVG (  )  [protected]

Referenced by create().

Papyrus::SVG::SVG ( const Glib::ustring &  id,
const Glib::ustring &  filename,
StrType  st 
) [protected]
Papyrus::SVG::~SVG (  )  [virtual]

Member Function Documentation

SVG::pointer Papyrus::SVG::create ( const Glib::ustring &  id,
const Glib::ustring &  s,
StrType  st 
) [static]

References PAPYRUS_CREATE.

SVG::pointer Papyrus::SVG::create ( const Glib::ustring &  s,
StrType  st = FILE 
) [static]

References PAPYRUS_CREATE.

SVG::pointer Papyrus::SVG::create (  )  [static]

References PAPYRUS_CREATE, and SVG().

Referenced by process_element().

Glib::ustring Papyrus::SVG::extract_id_from_uri ( const Glib::ustring &  uri  )  [private]
void Papyrus::SVG::initialize_uri_regular_expression (  )  [static, private]
Papyrus::SVG::PAPYRUS_DRAWABLE ( SVG   ) 

Reimplemented from Papyrus::Group.

bool Papyrus::SVG::process_element ( const xmlpp::Element *  element,
Group parent,
bool  in_defs_section,
bool  is_root = false 
) [protected]
bool Papyrus::SVG::set_from_document ( const xmlpp::Document *  doc  ) 
bool Papyrus::SVG::set_from_element ( const xmlpp::Element *  element  ) 

References process_element().

Referenced by set_from_document().

bool Papyrus::SVG::set_from_file ( const Glib::ustring &  svg_filename  ) 

References set_from_document().

Referenced by SVG().

bool Papyrus::SVG::set_from_memory ( const unsigned char *  contents,
size_t  bytes 
)

References set_from_document().

bool Papyrus::SVG::set_from_memory ( const Glib::ustring &  svg  ) 

References set_from_document().

Referenced by SVG().

bool Papyrus::SVG::set_from_stream ( std::istream &  in  ) 

References set_from_document().

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

Member Data Documentation

std::vector<Cairo::ColorStop> Papyrus::SVG::m_color_stops [private]

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

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