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

#include <parstoch0lsystem.h>

Inheritance diagram for AP_LSystem::ParStoch0LSystem:
AP_LSystem::Abstract0LSystem AP_LSystem::LSystem AP_LSystem::AbstractLSystem

Public Member Functions

 ParStoch0LSystem (AbstractFile *)
 
 ParStoch0LSystem (const ParStoch0LSystem &)
 
ParStoch0LSystemoperator= (const ParStoch0LSystem &)
 
virtual multimap< char, Rule >
::iterator * 
selectRule (multimap< char, Rule >::iterator &begin, multimap< char, Rule >::iterator &end, LongString *word, unsigned int &pos, double *parameters)
 
boost::shared_ptr
< AbstractLSystem
clone () const
 
- Public Member Functions inherited from AP_LSystem::Abstract0LSystem
 Abstract0LSystem (AbstractFile *)
 
 Abstract0LSystem (const Abstract0LSystem &)
 
- 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::Abstract0LSystem
virtual void processPredecessor (Rule &rule, string *str, string::iterator &pos)
 
virtual void processRuleSuccessor (Rule &rule, string *str, string::iterator &pos)
 
virtual void processHomomorphismSuccessor (Rule &rule, string *str, string::iterator &pos)
 
- 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

Parametric stochastic context-free L-system

Constructor & Destructor Documentation

ParStoch0LSystem::ParStoch0LSystem ( AbstractFile file)
ParStoch0LSystem::ParStoch0LSystem ( const ParStoch0LSystem c)

Member Function Documentation

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

Virtual copy constructor

Implements AP_LSystem::AbstractLSystem.

static bool AP_LSystem::ParStoch0LSystem::isCapable ( unsigned int  type)
inlinestatic

Decides if L-system of passed type can by processed by parametric stochastic context-free L-system

Parameters
typetype of L-system that will be compared with ParStoch0LSytem capabilities
Returns
true if it is capable to process this type
ParStoch0LSystem & ParStoch0LSystem::operator= ( const ParStoch0LSystem c)
multimap< char, Rule >::iterator * ParStoch0LSystem::selectRule ( multimap< char, Rule >::iterator &  begin,
multimap< char, Rule >::iterator &  end,
LongString word,
unsigned int &  pos,
double *  parameters 
)
virtual

When some module is loaded this method selects max one rule that will be used for transcription. It search in range given by two iterators begin and end. The range contain only rules that has common predecessor. Current word and possition of predecessor must be passed. Parameters of selected module will be stored to parameters array.

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: