Class RadialRepresentation

java.lang.Object
mgui.morph.sections.RadialRepresentation
Direct Known Subclasses:
ConstrainedRadialRepresentation

public class RadialRepresentation
extends java.lang.Object
Version:
1.0
Author:
Andrew Reid
  • Field Summary

    Fields
    Modifier and Type Field Description
    int P1  
    java.util.ArrayList<Radius2D> RadialNodes  
    Polygon2D source  
  • Constructor Summary

    Constructors
    Constructor Description
    RadialRepresentation()  
    RadialRepresentation​(Polygon2D thisPoly)  
  • Method Summary

    Modifier and Type Method Description
    double getMaxLength()  
    int getNodeIndex​(int i)
    Gets the polygon index corresponding to the radius index i
    void printRep()  
    void SetRepresentation​(Polygon2D thisPoly)
    Set the radial representation for a given polygon

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • P1

      public int P1
    • RadialNodes

      public java.util.ArrayList<Radius2D> RadialNodes
    • source

      public Polygon2D source
  • Constructor Details

    • RadialRepresentation

      public RadialRepresentation()
    • RadialRepresentation

      public RadialRepresentation​(Polygon2D thisPoly)
  • Method Details

    • SetRepresentation

      public void SetRepresentation​(Polygon2D thisPoly)
      Set the radial representation for a given polygon
      Parameters:
      Polygon2D - thisPoly - a polygon object with which to set this representation
    • printRep

      public void printRep()
    • getNodeIndex

      public int getNodeIndex​(int i)
      Gets the polygon index corresponding to the radius index i
      Parameters:
      i - the radial representation index of the node
      Returns:
      int value for polygon index of node represented by radius i
    • getMaxLength

      public double getMaxLength()
      Returns:
      double - the maximum length of all radii