Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

TurtleDevice Class Reference

Abstract interface for turtle drawing devices. More...

#include <mturtle.h>

Inheritance diagram for TurtleDevice:

List of all members.

Public Methods

virtual void start ()
virtual void forwardLine (const Coord2D &start, const Coord2D &end)
virtual void tip (const Coord2D &point)
virtual void end ()

Detailed Description

Abstract interface for turtle drawing devices.

Implementors are usually device-specific.

Definition at line 45 of file mturtle.h.


Member Function Documentation

virtual void end   [inline, virtual]
 

End drawing.

Definition at line 65 of file mturtle.h.

Referenced by Turtle::drawLSystem(), and forwardLine().

virtual void forwardLine const Coord2D   start,
const Coord2D   end
[inline, virtual]
 

Draws a line forward.

Parameters:
start  Start coordinates of the line.
end  End coordinates of the line.

Definition at line 57 of file mturtle.h.

References end(), and start().

Referenced by Turtle::forward().

virtual void start   [inline, virtual]
 

Starts drawing.

Definition at line 50 of file mturtle.h.

Referenced by Turtle::drawLSystem(), and forwardLine().

virtual void tip const Coord2D   point [inline, virtual]
 

To draw a "tip".

Especially useful for drawing LSystems produced by LGrammar.

Definition at line 62 of file mturtle.h.

Referenced by Turtle::drawLSystem().


The documentation for this class was generated from the following file:
Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18