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

#include <turtleinterpret.h>

Inheritance diagram for AP_LSystem::TurtleInterpret:
AP_LSystem::AbstractInterpret

Public Member Functions

 TurtleInterpret (osg::Group *owner)
 
 ~TurtleInterpret (void)
 
virtual int parse (ParseableString *word)
 
- Public Member Functions inherited from AP_LSystem::AbstractInterpret
 AbstractInterpret ()
 
int switchGeode (std::vector< Parameter > &p)
 
void createGeodes ()
 

Additional Inherited Members

- Static Public Member Functions inherited from AP_LSystem::AbstractInterpret
static const char * errorText (int error)
 
- Protected Attributes inherited from AP_LSystem::AbstractInterpret
vector< LSGeode * > m_Geodes
 
osg::Group * m_Owner
 scene graph owner More...
 
TurtleStack m_Turtles
 stack for turtles More...
 

Detailed Description

This class interprets a word generated by L-system word generator. It creates a geometry using turtle graphics.

Constructor & Destructor Documentation

TurtleInterpret::TurtleInterpret ( osg::Group *  owner)

Creates a turtle interpret. This interpret has to be connected to scene graph. During interpretation It generates a geometry stored in LSGeode instances.

Parameters
ownerparent in scene graph
TurtleInterpret::~TurtleInterpret ( void  )

Member Function Documentation

int TurtleInterpret::parse ( ParseableString word)
virtual

Interpretes a word by converting L-system modules to turtle commands.

Parameters
wordinterpreted word
Returns
error code

Implements AP_LSystem::AbstractInterpret.


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