Module rgg

Class FMul

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

public class FMul extends ArgShoot
The turtle command FMul(x) 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 multiplied by the specified argument.
This corresponds to the turtle command F*(x) of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details

  • Constructor Details

    • FMul

      public FMul()
    • FMul

      public FMul(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