HyperspaceExplorer 0.7.1
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
LSystem Class Reference
Inheritance diagram for LSystem:
Inheritance graph
[legend]
Collaboration diagram for LSystem:
Collaboration graph
[legend]

List of all members.

Classes

class  Alphabet
 The alphabet for the Lindenmayer System. More...

Public Member Functions

 LSystem (unsigned level=3)
virtual std::string getFunctionName () const
virtual void SetParameters (const ParameterMap &parameters)
 Set parameters to the Displayable.

Protected Member Functions

virtual void Initialize ()
 This abstract function is called in the constructor of descendants.

Private Member Functions

LSystem generate (unsigned level)
void parse (const Axiom &axiom, const Ruleset &rules)
std::string expand (const std::string &axiom, unsigned level)

Private Attributes

unsigned level_
Alphabet alphabet_
Ruleset rules_
Axiom axiom_
std::vector< VecMath::Matrix< 4 > > Rstate_
std::vector< VecMath::Vector< 4 > > xstate_
std::vector< double > scalestate_

Member Function Documentation

std::string LSystem::getFunctionName ( ) const [virtual]
Returns:
The name of the Displayable in cleartext

Implements Displayable.

Referenced by SetParameters().

Here is the caller graph for this function:

void LSystem::SetParameters ( const ParameterMap ) [virtual]

Set parameters to the Displayable.

Todo:
This function is only there to provide an interface, and it's not abstract so that Displayable s which don't have Parameters don't need to reimplement an unneeded method. But the present implementation does not make sense.

Reimplemented from Displayable.

References std::map< _Key, _Tp, _Compare, _Alloc >::begin(), std::cerr, std::map< _Key, _Tp, _Compare, _Alloc >::end(), std::endl(), and getFunctionName().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo