papyrus logo

Papyrus::KochCurve Class Reference

#include <kochcurve.h>

Inheritance diagram for Papyrus::KochCurve:

Inheritance graph
[legend]

List of all members.

Public Types

typedef PapyrusPointer< KochCurvepointer

Public Member Functions

virtual ~KochCurve ()
unsigned level ()
void set_level (unsigned level)
double size ()
void set_size (double size)
 PAPYRUS_CLASS_NAME ("Koch Curve")
 PAPYRUS_CLONE_METHOD (KochCurve)

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>

Member Typedef Documentation

typedef PapyrusPointer<KochCurve> Papyrus::KochCurve::pointer

Reimplemented from Papyrus::Polyline.


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.

Referenced by Papyrus::example_factory().

void Papyrus::KochCurve::create_vertices (  )  [protected]

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

unsigned Papyrus::KochCurve::level (  ) 

References m_level.

Papyrus::KochCurve::PAPYRUS_CLASS_NAME ( "Koch Curve"   ) 

Papyrus::KochCurve::PAPYRUS_CLONE_METHOD ( KochCurve   ) 

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 Wed Mar 18 12:34:59 2009 for papyrus by doxygen 1.5.7.1