papyrus logo

Papyrus::KochSnowflake Class Reference

#include <kochsnowflake.h>

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

List of all members.

Public Member Functions

 PAPYRUS_DRAWABLE (KochSnowflake)
virtual ~KochSnowflake ()
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

 KochSnowflake (const Glib::ustring &id, unsigned level, double size, Fill::pointer fill, Stroke::pointer stroke)
void create_vertices ()
void kochsnowflake (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::KochSnowflake::KochSnowflake ( const Glib::ustring &  id,
unsigned  level,
double  size,
Fill::pointer  fill,
Stroke::pointer  stroke 
) [protected]

References create_vertices().

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

Member Function Documentation

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

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

References PAPYRUS_CREATE.

void Papyrus::KochSnowflake::create_vertices (  )  [protected]
void Papyrus::KochSnowflake::kochsnowflake ( unsigned  level  )  [protected]
unsigned Papyrus::KochSnowflake::level (  ) 

References m_level.

Papyrus::KochSnowflake::PAPYRUS_DRAWABLE ( KochSnowflake   ) 

Reimplemented from Papyrus::Polyline.

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

References create_vertices(), and m_level.

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

References create_vertices(), and m_size.

double Papyrus::KochSnowflake::size (  ) 

References m_size.


Member Data Documentation

double Papyrus::KochSnowflake::m_angle [protected]

Referenced by create_vertices(), and kochsnowflake().

unsigned Papyrus::KochSnowflake::m_level [protected]

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

double Papyrus::KochSnowflake::m_lsize [protected]

Referenced by create_vertices(), and kochsnowflake().

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