Class FilePolyline_WM

java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.Interface.FilePolyline_WM

public class FilePolyline_WM extends Object
FilePolyline. Reads and writes Polyline files for the JPanelSurface class. When polyline files are loaded by the user in the JPanelSurface.java class through the "AddPolyline" button.
See Also:
  • invalid reference
    JPanelSurface_WM.java
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static float[]
    DOCUMENT ME!
    private static int[]
    DOCUMENT ME!
    private static boolean
     
    private static double[][]
     
    private static float[]
    DOCUMENT ME!
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static WildMagic.LibGraphics.SceneGraph.Polyline
    createPolyline(ModelImage kImage, Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coordVector)
    Create the polyline from the given polyline coordinates vector.
    private static File[]
    openFiles(boolean bLoad)
    Returns an array of File objects, based on the user-selected files from the FileChooser dialog.
    static WildMagic.LibGraphics.SceneGraph.Polyline[]
    The action taken when the Add button is clicked in the JPanelSurface class.

    Methods inherited from class java.lang.Object

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

    • direction

      private static int[] direction
      DOCUMENT ME!
    • startLocation

      private static float[] startLocation
      DOCUMENT ME!
    • box

      private static float[] box
      DOCUMENT ME!
    • flip

      private static boolean flip
    • inverseDicomArray

      private static double[][] inverseDicomArray
  • Constructor Details

    • FilePolyline_WM

      public FilePolyline_WM()
  • Method Details

    • createPolyline

      public static WildMagic.LibGraphics.SceneGraph.Polyline createPolyline(ModelImage kImage, Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coordVector)
      Create the polyline from the given polyline coordinates vector. This method converts the image space to viewing space
      Parameters:
      kImage - Image A
      coordVector - polyline coordinate vector
      Returns:
      polyline created
    • openPolylines

      public static WildMagic.LibGraphics.SceneGraph.Polyline[] openPolylines(ModelImage kImage)
      The action taken when the Add button is clicked in the JPanelSurface class. A file dialog is launched that allows the user to select new surfaces to load from disk.
      Parameters:
      kImage - the ModelImage displayed in the SurfaceRender class
    • openFiles

      private static File[] openFiles(boolean bLoad)
      Returns an array of File objects, based on the user-selected files from the FileChooser dialog.
      Parameters:
      bLoad - whether the files are opened for reading (bLoad = true) or writing (bLoad = false)
      Returns:
      File[] array of opened files.