Class Volume2DInt

All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.lang.Cloneable, java.lang.Comparable<InterfaceShape>, AttributeListener, AttributeObject, InterfaceObject, PersistentObject, VariableObject, PopupMenuObject, NamedObject, InterfaceQueryObject, InterfaceShapeQueryObject, ShapeListener, VertexDataColumnListener, InterfaceTransferable, TreeObject, CleanableObject, XMLObject, IconObject

public class Volume2DInt
extends Image2DInt
2D sectional representation of a Volume3DInt. Extends Image2DInt to draw the polygon which intersects the plane on which this image is drawn.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • outline

      public Polygon2D outline
    • planeRect

      public Rect3DInt planeRect
    • planePoly

      public Polygon3DInt planePoly
    • scanNodes

      public org.jogamp.java3d.BranchGroup scanNodes
  • Constructor Details

    • Volume2DInt

      public Volume2DInt()
    • Volume2DInt

      public Volume2DInt​(Rect2D rect, java.awt.image.BufferedImage image, boolean hasAlpha)
  • Method Details

    • drawShape2D

      public void drawShape2D​(java.awt.Graphics2D g, DrawingEngine d)
      Description copied from class: InterfaceShape
      ABSTRACT METHODS
      Overrides:
      drawShape2D in class Shape2DInt
    • draw

      public void draw​(java.awt.Graphics2D g, DrawingEngine d)
      Overrides:
      draw in class Image2DInt
    • getClosestVertex

      public int getClosestVertex​(org.jogamp.vecmath.Point2f point)
      Description copied from class: Shape2DInt
      Returns the index of the vertex in this shape which is closest to point.
      Overrides:
      getClosestVertex in class Shape2DInt
      Returns:
    • setOutline

      public void setOutline​(Polygon2D poly)
    • setPlaneRect

      public void setPlaneRect​(Rect3D rect)
    • setPlanePoly

      public void setPlanePoly​(Polygon3D poly)
    • setScanNodes

      public void setScanNodes​(org.jogamp.java3d.BranchGroup g)
    • getShape3D

      protected Shape3DInt getShape3D​(Plane3D plane)
      Overrides:
      getShape3D in class Image2DInt