Turtle graphics interface (Logo code generator). More...
#include <Turtle.hpp>

| Public Member Functions | |
| Turtle () | |
| Turtle constructor. | |
| string | rewrite (const string prod, map< char, string > corresp, string scale, vector< string > iniPos, string iniAng) const | 
| Replace graphical instructions. | |
Turtle graphics interface (Logo code generator).
Generates Logo code from the string produced by iteration by the L-system. The resulting code is outputted to the standard output, and can thus be redirected into a file, to then be inputted to a Logo interpreter such as ucblogo, which is available in common user GNU/Linux software repos.
Definition at line 57 of file Turtle.hpp.
| Turtle::Turtle | ( | ) | 
Turtle constructor.
| string Turtle::rewrite | ( | const string | prod, | |
| map< char, string > | corresp, | |||
| string | scale, | |||
| vector< string > | iniPos, | |||
| string | iniAng | |||
| ) | const | 
Replace graphical instructions.
| L-system | production by iteration. | |
| corresp | The correspondence between symbols and drawing instructions. | |
| scale | Scale of the drawing. | |
| iniPos | The initial position. | |
| iniAng | The initial angle. | 
 1.7.1
 1.7.1