papyrus logo

Papyrus::KochCurve Class Reference

#include <kochcurve.h>

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

List of all members.

Public Member Functions

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

Static Public Member Functions

static pointer create (unsigned level=0, double size=0.0, Fill::pointer fill=Fill::pointer(), Stroke::pointer stroke=Stroke::pointer())
static 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

 KochCurve (const Glib::ustring &id, unsigned level, double size, Fill::pointer fill, Stroke::pointer stroke)
void create_vertices ()
void kochcurve (unsigned level)

Protected Attributes

unsigned m_level
double m_size
double m_lsize
double m_angle

Detailed Description

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

Constructor & Destructor Documentation

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

References create_vertices().

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

Member Function Documentation

KochCurve::pointer Papyrus::KochCurve::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.

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

References PAPYRUS_CREATE.

void Papyrus::KochCurve::create_vertices (  )  [protected]
void Papyrus::KochCurve::kochcurve ( unsigned  level  )  [protected]
unsigned Papyrus::KochCurve::level (  ) 

References m_level.

Papyrus::KochCurve::PAPYRUS_DRAWABLE ( KochCurve   ) 

Reimplemented from Papyrus::Polyline.

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

References create_vertices(), and m_level.

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

References create_vertices(), and m_size.

double Papyrus::KochCurve::size (  ) 

References m_size.


Member Data Documentation

double Papyrus::KochCurve::m_angle [protected]

Referenced by create_vertices(), and kochcurve().

unsigned Papyrus::KochCurve::m_level [protected]

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

double Papyrus::KochCurve::m_lsize [protected]

Referenced by create_vertices(), and kochcurve().

double Papyrus::KochCurve::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