vrecko
virtual reality framework
|
#include <abstractlsystem.h>
Public Member Functions | |
AbstractLSystem () | |
AbstractLSystem (const AbstractLSystem &c) | |
virtual boost::shared_ptr < AbstractLSystem > | clone () const =0 |
AbstractLSystem & | operator= (const AbstractLSystem &c) |
virtual bool | nextIteration ()=0 |
virtual LongString * | translate ()=0 |
virtual void | loadFromFile (AbstractFile *file)=0 |
unsigned int | getIteration () const |
Protected Member Functions | |
virtual void | addRule (std::string *)=0 |
virtual void | addHomomorphism (std::string *)=0 |
virtual void | setAxiom (std::string &)=0 |
Protected Attributes | |
std::string | m_Name |
name of L-system More... | |
unsigned int | m_Iteration |
number of processed iterations More... | |
Abstract class for L-systems. It is basic interface for communication with L-system generator.
|
inline |
|
inline |
|
protectedpure virtual |
Add homomorphism and convert it to instance of Rule class
Implemented in AP_LSystem::LSystem.
|
protectedpure virtual |
Add rule and convert it to instance of Rule class
Implemented in AP_LSystem::LSystem.
|
pure virtual |
Virtual constructor
Implemented in AP_LSystem::ParStoch0LSystem, AP_LSystem::D0LSystem, and AP_LSystem::Par2LSystem.
|
inline |
Get current iteration.
|
pure virtual |
Load and initialize L-system according to it's parameters.
file | Loaded L-system file |
Implemented in AP_LSystem::LSystem.
|
pure virtual |
Process next iteration. It uses transcription rules to get a new word.
Implemented in AP_LSystem::LSystem.
|
inline |
Assignment operator
|
protectedpure virtual |
Set axiom. Inicialize word.
Implemented in AP_LSystem::LSystem.
|
pure virtual |
Translate a word to final form and get it.
Implemented in AP_LSystem::LSystem.
|
protected |
number of processed iterations
|
protected |
name of L-system