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

#include <par2lsystem.h>

Inheritance diagram for AP_LSystem::Par2LSystem:
AP_LSystem::AbstractkLSystem AP_LSystem::LSystem AP_LSystem::AbstractLSystem

Public Member Functions

 Par2LSystem (AbstractFile *)
 
virtual void processPredecessor (Rule &, string *, string::iterator &)
 
virtual void processRuleSuccessor (Rule &, string *, string::iterator &)
 
virtual void processHomomorphismSuccessor (Rule &, string *, string::iterator &)
 
virtual multimap< char, Rule >
::iterator * 
selectRule (multimap< char, Rule >::iterator &, multimap< char, Rule >::iterator &, LongString *, unsigned int &, double *)
 
boost::shared_ptr
< AbstractLSystem
clone () const
 
- Public Member Functions inherited from AP_LSystem::AbstractkLSystem
 AbstractkLSystem (AbstractFile *)
 
- Public Member Functions inherited from AP_LSystem::LSystem
 LSystem (AbstractFile *)
 
 LSystem (const LSystem &)
 
 ~LSystem ()
 
LSystemoperator= (const LSystem &)
 
virtual void loadFromFile (AbstractFile *file)
 
unsigned int wordLength ()
 
virtual void transcribeSubSystems ()
 
virtual LongStringtranslate ()
 
virtual void processCutSymbol ()
 
- Public Member Functions inherited from AP_LSystem::AbstractLSystem
 AbstractLSystem ()
 
 AbstractLSystem (const AbstractLSystem &c)
 
AbstractLSystemoperator= (const AbstractLSystem &c)
 
unsigned int getIteration () const
 

Static Public Member Functions

static bool isCapable (unsigned int type)
 

Additional Inherited Members

- Protected Member Functions inherited from AP_LSystem::LSystem
virtual void setAxiom (std::string &)
 
virtual void addRule (std::string *)
 
virtual void addHomomorphism (std::string *)
 
virtual bool nextIteration ()
 
virtual bool transcribe (multimap< char, Rule > &rules)
 
virtual void generateSuccessor (LongString *word, multimap< char, Rule >::iterator &rule, double *params)
 
- Protected Attributes inherited from AP_LSystem::LSystem
LongStringm_Word
 
multimap< char, Rulem_Rules
 
multimap< char, Rulem_Homomorphisms
 
vector< string > m_SubSystemsFilenames
 
vector< LongString * > m_SubSystemsWords
 
string m_Ignore
 

Detailed Description

Class for processing parametric stochastic 2L-systems

Constructor & Destructor Documentation

Par2LSystem::Par2LSystem ( AbstractFile file)

Member Function Documentation

boost::shared_ptr<AbstractLSystem> AP_LSystem::Par2LSystem::clone ( ) const
inlinevirtual

Virtual copy constructor

Implements AP_LSystem::AbstractLSystem.

static bool AP_LSystem::Par2LSystem::isCapable ( unsigned int  type)
inlinestatic
void Par2LSystem::processHomomorphismSuccessor ( Rule r,
string *  hom,
string::iterator &  it 
)
virtual

Implements AP_LSystem::LSystem.

void Par2LSystem::processPredecessor ( Rule r,
string *  rule,
string::iterator &  it 
)
virtual

Implements AP_LSystem::LSystem.

void Par2LSystem::processRuleSuccessor ( Rule r,
string *  rule,
string::iterator &  it 
)
virtual

Implements AP_LSystem::LSystem.

multimap< char, Rule >::iterator * Par2LSystem::selectRule ( multimap< char, Rule >::iterator &  begin,
multimap< char, Rule >::iterator &  end,
LongString word,
unsigned int &  pos,
double *  parameters 
)
virtual

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
beginiterator to range of rules
enditerator to range of rules
wordword that is currently processed
posposition of current predecessor in word
parametersarray of parameters for transcription. Only double type.
Returns
pointer to iterator to rule that was selected. Returns NULL if no rule was selected.

Reimplemented from AP_LSystem::LSystem.


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