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

#include <d0lsystem.h>

Inheritance diagram for AP_LSystem::D0LSystem:
AP_LSystem::LSystem AP_LSystem::AbstractLSystem

Public Member Functions

 D0LSystem (AbstractFile *)
 
boost::shared_ptr
< AbstractLSystem
clone () const
 
- 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)
 

Protected Member Functions

virtual void processPredecessor (Rule &, string *, string::iterator &)
 
virtual void processRuleSuccessor (Rule &, string *, string::iterator &)
 
virtual void processHomomorphismSuccessor (Rule &, string *, string::iterator &)
 
virtual bool transcribe (multimap< char, Rule > &rules)
 
- 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 multimap< char, Rule >
::iterator * 
selectRule (multimap< char, Rule >::iterator &begin, multimap< char, Rule >::iterator &end, LongString *word, unsigned int &pos, double *parameters)
 
virtual void generateSuccessor (LongString *word, multimap< char, Rule >::iterator &rule, double *params)
 

Static Protected Attributes

static const unsigned int capabilities = LS_0L | LS_DETERMINISTIC
 

Additional Inherited Members

- 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
 

Constructor & Destructor Documentation

D0LSystem::D0LSystem ( AbstractFile file)

Member Function Documentation

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

Virtual copy constructor

Implements AP_LSystem::AbstractLSystem.

static bool AP_LSystem::D0LSystem::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 D0LSytem capabilities
Returns
true if it is capable to process this type
void D0LSystem::processHomomorphismSuccessor ( Rule r,
string *  hom,
string::iterator &  it 
)
protectedvirtual

Implements AP_LSystem::LSystem.

void D0LSystem::processPredecessor ( Rule r,
string *  rule,
string::iterator &  it 
)
protectedvirtual

Implements AP_LSystem::LSystem.

void D0LSystem::processRuleSuccessor ( Rule r,
string *  rule,
string::iterator &  it 
)
protectedvirtual

Implements AP_LSystem::LSystem.

bool D0LSystem::transcribe ( multimap< char, Rule > &  rules)
protectedvirtual

This method provides a transcription funkcionality. It substitutes all modules in word by their successors.

Parameters
rulescontainer with rules
Returns
true if succeeded

Reimplemented from AP_LSystem::LSystem.

Member Data Documentation

const unsigned int AP_LSystem::D0LSystem::capabilities = LS_0L | LS_DETERMINISTIC
staticprotected

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