Class Polygon

All Implemented Interfaces:
Serializable, Comparable, ClosedCurve, SurfaceElem, TemporalComputedObject3D, MatrixPropertiesObject, XmlRepresentable
Direct Known Subclasses:
ReyesLikeList.MicroPolygon

public class Polygon extends Representable implements SurfaceElem, ClosedCurve
See Also:
  • Constructor Details

    • Polygon

      public Polygon()
    • Polygon

      public Polygon(Color c)
    • Polygon

      public Polygon(ITexture c)
    • Polygon

      public Polygon(Point3D[] list, Color c)
    • Polygon

      public Polygon(Point3D[] list, ITexture c)
  • Method Details

    • add

      public void add(Point3D point3D)
    • getPoints

      public StructureMatrix<Point3D> getPoints()
    • setPoints

      public void setPoints(Point3D[] points)
    • toString

      public String toString()
      Overrides:
      toString in class Representable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getIsocentre

      public Point3D getIsocentre()
    • declareProperties

      public void declareProperties()
      Description copied from class: Representable
      Declares the properties of the Representable class. This method clears the declaredDataStructure map and adds specific properties to it based on the object's rotation and type. If the object's rotation is not null and the object is not an instance of Point3D, a "rotation/Rotation" property is added. The "vectors/vectors" property is always added to the map.
      Specified by:
      declareProperties in interface MatrixPropertiesObject
      Overrides:
      declareProperties in class Representable
    • getBoundRect2d

      public StructureMatrix<Point3D> getBoundRect2d()
    • leftToRightScanPixM

      public boolean leftToRightScanPixM(PixM pixM, int x, int y, boolean[] columnLeft, boolean[] columnRight)
    • leftToRightScanPixM

      public boolean leftToRightScanPixM(PixM pixM, int x, int y, boolean isDrawingOnImage)
    • fillPolygon2D

      public PixM fillPolygon2D(Polygon faceSurface, Canvas canvas, BufferedImage bitmap, int transparent, double prof, Point position, double scale)