vrecko
virtual reality framework
|
#include <abstractgenerator.h>
Public Member Functions | |
AbstractGenerator (void) | |
AbstractGenerator (const AbstractGenerator &c) | |
AbstractGenerator & | operator= (const AbstractGenerator &c) |
~AbstractGenerator (void) | |
virtual void | loadFile (std::string &filename)=0 |
virtual void | nextIteration ()=0 |
virtual ParseableString * | getWord ()=0 |
virtual void | saveWordToFile (std::string &) |
virtual void | loadWordFromFile (std::string &) |
Static Public Member Functions | |
static boost::shared_ptr < AbstractLSystem > | createLSystem (AbstractFile *file) |
Protected Attributes | |
ParseableString * | m_Word |
word generated by generator More... | |
boost::shared_ptr < AbstractLSystem > | m_MainLSystem |
L-system that is used for generating. More... | |
L-system generator is a main class ford word generation. It controls one L-system and use them for words generating. This is a base abstract class which is an interface for communication with higher levels.
|
inline |
Incialize word and main L-system as NULL
|
inline |
Copy constructor
|
inline |
Descructor release memory of generated word and l-system
|
static |
Creates an L-system according to type. It chooses from all AbstractLSystem childs and select the best suitable L-system implementation for this type of L-system.
file | file with loaded L-system |
|
pure virtual |
Get generated word in format suitable for parsing and intepreting.
Implemented in AP_LSystem::LSystemGenerator.
|
pure virtual |
Loads an L-system. File is specified by it's filename.
filename | filename of file in one of supported L-system formats |
Implemented in AP_LSystem::LSystemGenerator.
|
virtual |
Not implemented
|
pure virtual |
Process one iteration on generator's main L-system.
Implemented in AP_LSystem::LSystemGenerator.
|
inline |
Asignment operator
|
virtual |
Not implemented
|
protected |
L-system that is used for generating.
|
protected |
word generated by generator