#include <lsystem.h>
|
virtual void | setAxiom (std::string &) |
|
virtual void | addRule (std::string *) |
|
virtual void | addHomomorphism (std::string *) |
|
virtual void | processPredecessor (Rule &, string *, string::iterator &)=0 |
|
virtual void | processRuleSuccessor (Rule &, string *, string::iterator &)=0 |
|
virtual void | processHomomorphismSuccessor (Rule &, string *, string::iterator &)=0 |
|
virtual bool | nextIteration () |
|
virtual bool | transcribe (multimap< char, Rule > &rules) |
|
virtual multimap< char, Rule >
::iterator * | selectRule (multimap< char, Rule >::iterator &begin, multimap< char, Rule >::iterator &end, LongString *word, unsigned int &pos, double *parameters) |
|
virtual void | generateSuccessor (LongString *word, multimap< char, Rule >::iterator &rule, double *params) |
|
LSystem::LSystem |
( |
const LSystem & |
c | ) |
|
void LSystem::addHomomorphism |
( |
std::string * |
| ) |
|
|
protectedvirtual |
void LSystem::addRule |
( |
std::string * |
| ) |
|
|
protectedvirtual |
void LSystem::generateSuccessor |
( |
LongString * |
word, |
|
|
multimap< char, Rule >::iterator & |
rule, |
|
|
double * |
params |
|
) |
| |
|
protectedvirtual |
Generates a successor of module by recurrent appending of rule's static strings and evaluated expressions.
- Parameters
-
word | strings will bee appended to this word |
rule | selected rule |
params | parameter values for expressions evaluation |
bool LSystem::nextIteration |
( |
| ) |
|
|
protectedvirtual |
void LSystem::processCutSymbol |
( |
| ) |
|
|
virtual |
virtual void AP_LSystem::LSystem::processHomomorphismSuccessor |
( |
Rule & |
, |
|
|
string * |
, |
|
|
string::iterator & |
|
|
) |
| |
|
protectedpure virtual |
virtual void AP_LSystem::LSystem::processPredecessor |
( |
Rule & |
, |
|
|
string * |
, |
|
|
string::iterator & |
|
|
) |
| |
|
protectedpure virtual |
virtual void AP_LSystem::LSystem::processRuleSuccessor |
( |
Rule & |
, |
|
|
string * |
, |
|
|
string::iterator & |
|
|
) |
| |
|
protectedpure virtual |
multimap< char, Rule >::iterator * LSystem::selectRule |
( |
multimap< char, Rule >::iterator & |
begin, |
|
|
multimap< char, Rule >::iterator & |
end, |
|
|
LongString * |
word, |
|
|
unsigned int & |
pos, |
|
|
double * |
parameters |
|
) |
| |
|
protectedvirtual |
This method is called during each transcription. It selects one or no rule from union of rules that have common predecessor. The selection procedure depends on type of L-system.
- Parameters
-
begin | iterator to range of rules |
end | iterator to range of rules |
word | word that is currently processed |
pos | position of current predecessor in word |
parameters | array of parameters for transcription. Only double type. |
- Returns
- pointer to iterator to rule that was selected. Returns NULL if no rule was selected.
Reimplemented in AP_LSystem::ParStoch0LSystem, and AP_LSystem::Par2LSystem.
void LSystem::setAxiom |
( |
std::string & |
| ) |
|
|
protectedvirtual |
bool LSystem::transcribe |
( |
multimap< char, Rule > & |
rules | ) |
|
|
protectedvirtual |
This method provides a transcription funkcionality. It substitutes all modules in word by their successors.
- Parameters
-
rules | container with rules |
- Returns
- true if succeeded
Reimplemented in AP_LSystem::D0LSystem.
void LSystem::transcribeSubSystems |
( |
| ) |
|
|
virtual |
unsigned int AP_LSystem::LSystem::wordLength |
( |
| ) |
|
|
inline |
multimap<char, Rule> AP_LSystem::LSystem::m_Homomorphisms |
|
protected |
string AP_LSystem::LSystem::m_Ignore |
|
protected |
multimap<char, Rule> AP_LSystem::LSystem::m_Rules |
|
protected |
vector<string> AP_LSystem::LSystem::m_SubSystemsFilenames |
|
protected |
vector< LongString *> AP_LSystem::LSystem::m_SubSystemsWords |
|
protected |
The documentation for this class was generated from the following files:
- C:/Documents/School/OSG/VRECKO/include/vreckoAP/Garden/lsystem.h
- C:/Documents/School/OSG/VRECKO/src/vreckoAP/Garden/lsystem.cpp