Class ConstrainedRadialRepresentation

java.lang.Object
mgui.morph.sections.RadialRepresentation
mgui.morph.sections.ConstrainedRadialRepresentation

public class ConstrainedRadialRepresentation
extends RadialRepresentation
  • Field Details

    • controlNodes

      public java.util.ArrayList<mgui.morph.sections.ConstrainedRadialRepresentation.ControlNode> controlNodes
    • controlRadialNodes

      public java.util.ArrayList<Radius2D> controlRadialNodes
  • Constructor Details

    • ConstrainedRadialRepresentation

      public ConstrainedRadialRepresentation()
    • ConstrainedRadialRepresentation

      public ConstrainedRadialRepresentation​(Polygon2D thisPoly)
  • Method Details

    • addControlNode

      public void addControlNode​(int node, double angle)
      Sets a control node, such that the node is assigned the given angle, and any nodes between this point and the next control point clockwise are adjusted so that their radii fit between them, but maintain their proportionality. If only one control point is specified, all radii are simply rotated to fit control node's radius. This function is useful in cases where it is desirable to force a mapping between particular nodes (e.g., known corner points), which will be certain to map since their angles are identical.
      Parameters:
      node - Node to assign as a control node
      angle - Angle to assign to this node
    • updateRepresentation

      public void updateRepresentation()
    • getRadialNodesCopy

      public java.util.ArrayList<Radius2D> getRadialNodesCopy()