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

#include <turtlestack.h>

Public Member Functions

 TurtleStack (void)
 
 ~TurtleStack (void)
 
int pop ()
 
int push ()
 
int push (LSGeode *geode)
 
AbstractTurtletop ()
 
void clear ()
 

Detailed Description

Specialized stack for turtle processing.

Constructor & Destructor Documentation

TurtleStack::TurtleStack ( void  )
TurtleStack::~TurtleStack ( void  )

Member Function Documentation

void TurtleStack::clear ( void  )

Removes all turtles

int TurtleStack::pop ( )

Pops a turtle on the top of the stack.

Returns
error code
int TurtleStack::push ( )

Adds turtle on the top of the stack. The turtle will have same type as current turtle on the top of the stack. Turtle is also binded with the same LSGeode.

Returns
error code
int TurtleStack::push ( LSGeode geode)

Adds turtle of different type on the top of the stack. Type of the turtle is determined from LSGeode. Turtle is binded with LSGeode to write there a geometry.

Parameters
geodeInserted turtle will be binded with this geode.
Returns
error code
AbstractTurtle * TurtleStack::top ( )

Get turtle from the top of the stack.

Returns
turtle from the top of the stack

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