LSystem Class Reference

Models a Lindenmayer System, which may be used to simulate a varient of effects in Nature, such as plant growth and fractals. More...

#include <LSystem.h>

Inheritance diagram for LSystem:

HilbertSG< SG >

List of all members.

Public Member Functions

Constructors
 LSystem (const std::string &rules, const std::string &axiom)
Main usage interface
std::string process (unsigned maxDepth)

Protected Member Functions

std::string _process (const std::string &state, unsigned depth)
virtual std::string _processRule (char c)=0

Protected Attributes

std::string m_rules
std::string m_axiom


Detailed Description

Models a Lindenmayer System, which may be used to simulate a varient of effects in Nature, such as plant growth and fractals.

Author:
Travis Fischer (fisch0920@gmail.com)
Date:
December 2006

Definition at line 16 of file LSystem.h.


Constructor & Destructor Documentation

LSystem::LSystem ( const std::string &  rules,
const std::string &  axiom 
) [inline]

Definition at line 22 of file LSystem.h.


Member Function Documentation

std::string LSystem::process ( unsigned  maxDepth  )  [inline]

Definition at line 31 of file LSystem.h.

std::string LSystem::_process ( const std::string &  state,
unsigned  depth 
) [protected]

Definition at line 13 of file LSystem.cpp.

virtual std::string LSystem::_processRule ( char  c  )  [protected, pure virtual]

Implemented in HilbertSG< SG >.


Member Data Documentation

std::string LSystem::m_rules [protected]

Definition at line 42 of file LSystem.h.

std::string LSystem::m_axiom [protected]

Definition at line 43 of file LSystem.h.


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

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6