Class FilePolyline_WM
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Interface.FilePolyline_WM
-
public class FilePolyline_WM extends java.lang.ObjectFilePolyline. 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[]boxDOCUMENT ME!private static int[]directionDOCUMENT ME!private static booleanflipprivate static double[][]inverseDicomArrayprivate static float[]startLocationDOCUMENT 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.PolylinecreatePolyline(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.
-
-
-
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 AcoordVector- 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.
-
-