vrecko
virtual reality framework
|
#include <turtleinterpret.h>
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... | |
This class interprets a word generated by L-system word generator. It creates a geometry using turtle graphics.
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.
owner | parent in scene graph |
TurtleInterpret::~TurtleInterpret | ( | void | ) |
|
virtual |
Interpretes a word by converting L-system modules to turtle commands.
word | interpreted word |
Implements AP_LSystem::AbstractInterpret.