Module rgg

Class RG

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

public class RG extends GRotation
The turtle command RG(x) represents a rotation which implements maximal gravitropism. The effect is that the local z-direction after the rotation points strictly downwards, i.e., corresponds the the negative global z-direction. This corresponds to the turtle command RG of the GROGRA software.
Author:
Ole Kniemeyer
See Also:
  • Field Details

  • Constructor Details

    • RG

      public RG()
      Creates a new RG node. This leads to an orientation which is strictly downwards.
  • Method Details

    • getTropismStrength

      public float getTropismStrength(Object node, GraphState gs)
      Specified by:
      getTropismStrength in class GRotation
    • 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 Node
      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 Node
      Returns:
      new instance of class of this node