#include <abstractinterpret.h>
AP_LSystem::AbstractInterpret::AbstractInterpret |
( |
| ) |
|
|
inline |
void AP_LSystem::AbstractInterpret::createGeodes |
( |
| ) |
|
|
inline |
Initialize interpret. Scan for loaded L-systems and create LSGeodes instances for them.
static const char* AP_LSystem::AbstractInterpret::errorText |
( |
int |
error | ) |
|
|
inlinestatic |
Translates error codes to error messages.
- Parameters
-
- Returns
- error message
Interpretes a word by converting L-system modules to turtle commands.
- Parameters
-
- Returns
- error code
Implemented in AP_LSystem::TurtleInterpret.
int AP_LSystem::AbstractInterpret::switchGeode |
( |
std::vector< Parameter > & |
p | ) |
|
|
inline |
This method is called if change of L-system is interpreted.
- Parameters
-
p | vector with parameters of module.
- 1 parameter: Begin of different L-system. Push new turtle of different L-system. The parameter is L-system ID
- 0 parameters: End of current L-system subword. Pop turtle from the stack.
|
vector< LSGeode *> AP_LSystem::AbstractInterpret::m_Geodes |
|
protected |
Instances of LSGeode for each loaded L-system. It contains geometry and information about turtle type and settings.
osg::Group* AP_LSystem::AbstractInterpret::m_Owner |
|
protected |
The documentation for this class was generated from the following file: