Structure of the L-system, which consists of an alphabet of symbols, a collection of production rules and an initial axiom from which to begin the construction. More...
#include <Lsystem.hpp>

| Public Member Functions | |
| Lsystem () | |
| Plain L-system constructor. | |
| Lsystem (const set< char > &vars, const string start, const multimap< char, string > &rules) | |
| Parametric L-system constructor. | |
| string | produce (const int numIter) const | 
| Generate a production by iterating the system on the initial axiom. | |
Structure of the L-system, which consists of an alphabet of symbols, a collection of production rules and an initial axiom from which to begin the construction.
The constants are implicitly defined by those symbols in the alphabet that are not expanded by any production rule.
In case more than one production rule is available for a given symbol, i.e., a stochastic grammar, a choice is taken according to an uniform probability distribution among the possible rules.
Definition at line 59 of file Lsystem.hpp.
| Lsystem::Lsystem | ( | ) | 
Plain L-system constructor.
| Lsystem::Lsystem | ( | const set< char > & | vars, | |
| const string | start, | |||
| const multimap< char, string > & | rules | |||
| ) | 
Parametric L-system constructor.
| vars | The variables. | |
| start | The initial axiom. | |
| rules | The production rules. | 
| string Lsystem::produce | ( | const int | numIter | ) | const | 
Generate a production by iterating the system on the initial axiom.
A stochastic L-system is allowed.
| numIter | The number of iterations to run. | 
 1.7.1
 1.7.1