vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AP_LSystem::AbstractLSystem Class Referenceabstract

#include <abstractlsystem.h>

Inheritance diagram for AP_LSystem::AbstractLSystem:
AP_LSystem::LSystem AP_LSystem::Abstract0LSystem AP_LSystem::AbstractkLSystem AP_LSystem::D0LSystem AP_LSystem::ParD0LSystem AP_LSystem::ParStoch0LSystem AP_LSystem::Par2LSystem

Public Member Functions

 AbstractLSystem ()
 
 AbstractLSystem (const AbstractLSystem &c)
 
virtual boost::shared_ptr
< AbstractLSystem
clone () const =0
 
AbstractLSystemoperator= (const AbstractLSystem &c)
 
virtual bool nextIteration ()=0
 
virtual LongStringtranslate ()=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...
 

Detailed Description

Abstract class for L-systems. It is basic interface for communication with L-system generator.

Constructor & Destructor Documentation

AP_LSystem::AbstractLSystem::AbstractLSystem ( )
inline
AP_LSystem::AbstractLSystem::AbstractLSystem ( const AbstractLSystem c)
inline

Member Function Documentation

virtual void AP_LSystem::AbstractLSystem::addHomomorphism ( std::string *  )
protectedpure virtual

Add homomorphism and convert it to instance of Rule class

Implemented in AP_LSystem::LSystem.

virtual void AP_LSystem::AbstractLSystem::addRule ( std::string *  )
protectedpure virtual

Add rule and convert it to instance of Rule class

Implemented in AP_LSystem::LSystem.

virtual boost::shared_ptr<AbstractLSystem> AP_LSystem::AbstractLSystem::clone ( ) const
pure virtual
unsigned int AP_LSystem::AbstractLSystem::getIteration ( ) const
inline

Get current iteration.

Returns
current L-system iteration
virtual void AP_LSystem::AbstractLSystem::loadFromFile ( AbstractFile file)
pure virtual

Load and initialize L-system according to it's parameters.

Parameters
fileLoaded L-system file

Implemented in AP_LSystem::LSystem.

virtual bool AP_LSystem::AbstractLSystem::nextIteration ( )
pure virtual

Process next iteration. It uses transcription rules to get a new word.

Returns
true if succeeded

Implemented in AP_LSystem::LSystem.

AbstractLSystem& AP_LSystem::AbstractLSystem::operator= ( const AbstractLSystem c)
inline

Assignment operator

virtual void AP_LSystem::AbstractLSystem::setAxiom ( std::string &  )
protectedpure virtual

Set axiom. Inicialize word.

Implemented in AP_LSystem::LSystem.

virtual LongString* AP_LSystem::AbstractLSystem::translate ( )
pure virtual

Translate a word to final form and get it.

Returns
word as LongString

Implemented in AP_LSystem::LSystem.

Member Data Documentation

unsigned int AP_LSystem::AbstractLSystem::m_Iteration
protected

number of processed iterations

std::string AP_LSystem::AbstractLSystem::m_Name
protected

name of L-system


The documentation for this class was generated from the following file: