Module rgg

Class M

All Implemented Interfaces:
Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, TurtleModifier, Map, Serializable

public class M extends TurtleStep implements TurtleModifier
The turtle command M(x) represents a movement along the local z-direction. The length of the movement is defined by length.
This corresponds to the turtle command f(x) of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details

    • length

      public float length
    • $TYPE

      public static final Node.NType $TYPE
    • length$FIELD

      public static final Node.NType.Field length$FIELD
  • Constructor Details

    • M

      public M()
    • M

      public M(float argument)
  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class ShadedNull
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class ShadedNull
      Returns:
      new instance of class of this node
    • getLength

      public float getLength(Object node, GraphState gs)
      Specified by:
      getLength in class TurtleStep
    • execute

      public void execute(Object node, TurtleState state, GraphState gs)
      Specified by:
      execute in interface TurtleModifier