papyrus logo

Papyrus::Deltille Class Reference

#include <deltille.h>

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

List of all members.

Public Member Functions

 PAPYRUS_DRAWABLE (Deltille)
virtual ~Deltille ()
virtual void draw (Context &cairo) const

Static Public Member Functions

static pointer create (unsigned rows=0, unsigned columns=0, double side_length=1.0)
static pointer create (const Glib::ustring &id, unsigned rows, unsigned columns, double side_length)

Protected Member Functions

 Deltille (const Glib::ustring &id, unsigned rows, unsigned columns, double side_length)
void draw_path (Context &cairo, unsigned col, unsigned row, double side, double half_side, double height) const
virtual void update_centroid_x ()
virtual void update_centroid_y ()
virtual void update_centroid ()

Detailed Description

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

Constructor & Destructor Documentation

Papyrus::Deltille::Deltille ( const Glib::ustring &  id,
unsigned  rows,
unsigned  columns,
double  side_length 
) [protected]
Papyrus::Deltille::~Deltille (  )  [virtual]

Member Function Documentation

Deltille::pointer Papyrus::Deltille::create ( const Glib::ustring &  id,
unsigned  rows,
unsigned  columns,
double  side_length 
) [static]

References Deltille(), and PAPYRUS_CREATE.

Deltille::pointer Papyrus::Deltille::create ( unsigned  rows = 0,
unsigned  columns = 0,
double  side_length = 1.0 
) [static]

References Deltille(), and PAPYRUS_CREATE.

void Papyrus::Deltille::draw ( Context cairo  )  const [virtual]
void Papyrus::Deltille::draw_path ( Context cairo,
unsigned  col,
unsigned  row,
double  side,
double  half_side,
double  height 
) const [protected]

Referenced by draw().

Papyrus::Deltille::PAPYRUS_DRAWABLE ( Deltille   ) 
void Papyrus::Deltille::update_centroid (  )  [protected, virtual]
void Papyrus::Deltille::update_centroid_x (  )  [protected, virtual]
void Papyrus::Deltille::update_centroid_y (  )  [protected, virtual]

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

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