papyrus logo

Papyrus::Sierpinski Class Reference

#include <sierpinski.h>

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

List of all members.

Public Member Functions

 PAPYRUS_DRAWABLE (Sierpinski)
virtual ~Sierpinski ()
unsigned level ()
void set_level (unsigned level)
double size ()
void set_size (double size)

Static Public Member Functions

static Sierpinski::pointer create (unsigned level=0, double size=0.0, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())
static Sierpinski::pointer create (const Glib::ustring &id, unsigned level=0, double size=0.0, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())

Protected Member Functions

 Sierpinski (const Glib::ustring &id, unsigned level, double size, Fill::pointer fill, Stroke::pointer stroke)
void create_vertices ()
void sierpinski_a (unsigned level)
void sierpinski_b (unsigned level)
void sierpinski_c (unsigned level)
void sierpinski_d (unsigned level)

Protected Attributes

unsigned m_level
double m_size
double m_lsize

Detailed Description

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

Constructor & Destructor Documentation

Papyrus::Sierpinski::Sierpinski ( const Glib::ustring &  id,
unsigned  level,
double  size,
Fill::pointer  fill,
Stroke::pointer  stroke 
) [protected]

References create_vertices().

Papyrus::Sierpinski::~Sierpinski (  )  [virtual]

Member Function Documentation

Sierpinski::pointer Papyrus::Sierpinski::create ( const Glib::ustring &  id,
unsigned  level = 0,
double  size = 0.0,
Fill::pointer  fill = Fill::pointer(),
Stroke::pointer  stroke = Stroke::pointer() 
) [static]

References PAPYRUS_CREATE.

Sierpinski::pointer Papyrus::Sierpinski::create ( unsigned  level = 0,
double  size = 0.0,
Fill::pointer  fill = Fill::pointer(),
Stroke::pointer  stroke = Stroke::pointer() 
) [static]

References PAPYRUS_CREATE.

void Papyrus::Sierpinski::create_vertices (  )  [protected]
unsigned Papyrus::Sierpinski::level (  ) 

References m_level.

Papyrus::Sierpinski::PAPYRUS_DRAWABLE ( Sierpinski   ) 

Reimplemented from Papyrus::Polyline.

void Papyrus::Sierpinski::set_level ( unsigned  level  ) 

References create_vertices(), and m_level.

void Papyrus::Sierpinski::set_size ( double  size  ) 

References create_vertices(), and m_size.

void Papyrus::Sierpinski::sierpinski_a ( unsigned  level  )  [protected]
void Papyrus::Sierpinski::sierpinski_b ( unsigned  level  )  [protected]
void Papyrus::Sierpinski::sierpinski_c ( unsigned  level  )  [protected]
void Papyrus::Sierpinski::sierpinski_d ( unsigned  level  )  [protected]
double Papyrus::Sierpinski::size (  ) 

References m_size.


Member Data Documentation

unsigned Papyrus::Sierpinski::m_level [protected]

Referenced by create_vertices(), level(), and set_level().

double Papyrus::Sierpinski::m_lsize [protected]
double Papyrus::Sierpinski::m_size [protected]

Referenced by create_vertices(), set_size(), and size().


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