Module rgg

Class F0

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

public class F0 extends Shoot
The turtle command F0 represents a cylinder along the local z-direction. In addition, this command translates the local coordinate system along the axis of the cylinder such that the origin of the children's coordinate system coincides with the center of the cylinder's top.
The diameter of the cylinder is taken from the field localDiameter of the current TurtleState. The shader of the cylinder is taken from the the current TurtleState. The length of the axis is the localLength of the current TurtleState
This corresponds to the turtle command F of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details

  • Constructor Details

    • F0

      public F0()
  • 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