Class FilePolyline_WM


  • public class FilePolyline_WM
    extends java.lang.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:
    JPanelSurface_WM.java
    • Field Summary

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

      Constructors 
      Constructor Description
      FilePolyline_WM()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WildMagic.LibGraphics.SceneGraph.Polyline createPolyline​(ModelImage kImage, java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> coordVector)
      Create the polyline from the given polyline coordinates vector.
      private static java.io.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[] openPolylines​(ModelImage kImage)
      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 Detail

      • 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 Detail

      • FilePolyline_WM

        public FilePolyline_WM()
    • Method Detail

      • createPolyline

        public static WildMagic.LibGraphics.SceneGraph.Polyline createPolyline​(ModelImage kImage,
                                                                               java.util.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 java.io.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.