Class FilePolyline_WM
java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.Interface.FilePolyline_WM
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static float[]DOCUMENT ME!private static int[]DOCUMENT ME!private static booleanprivate static double[][]private static float[]DOCUMENT ME! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WildMagic.LibGraphics.SceneGraph.PolylinecreatePolyline(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[]openPolylines(ModelImage kImage) The action taken when the Add button is clicked in the JPanelSurface class.
-
Field Details
-
direction
private static int[] directionDOCUMENT ME! -
startLocation
private static float[] startLocationDOCUMENT ME! -
box
private static float[] boxDOCUMENT 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 AcoordVector- polyline coordinate vector- Returns:
- polyline created
-
openPolylines
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
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.
-