Class SurfaceLoaderSUR
java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.flythruview.SurfaceLoaderSUR
Class used to load a surface stored in an file using the SUR format. Only loads the first mesh in the file if there
is more than one.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ModelTriangleMeshTriangle mesh representation for the surface.private static FileFilterExtFileFilter instance for this file loader which works with the JFileChooser. -
Constructor Summary
ConstructorsConstructorDescriptionSurfaceLoaderSUR(String kFilename) Open the specified file and load the surface data, stored in the SUR surface format, from it. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileFilterExtGet access to FileFilter (to be used in JFileChooser) for the types of files that can be loaded by this class.Access the triangle mesh representation for the loaded surface data.
-
Field Details
-
ms_kFileFilter
FileFilter instance for this file loader which works with the JFileChooser. -
m_kTriangleMesh
Triangle mesh representation for the surface.
-
-
Constructor Details
-
SurfaceLoaderSUR
Open the specified file and load the surface data, stored in the SUR surface format, from it.- Parameters:
kFilename- String name of the file from which the surface data is to be loaded- Throws:
IOException- if an error occurs when opening the surface file or reading data from it
-
-
Method Details
-
getFileFilter
Get access to FileFilter (to be used in JFileChooser) for the types of files that can be loaded by this class.- Returns:
- FileFilter-derived instance to select SUR files
-
getTriangleMesh
Access the triangle mesh representation for the loaded surface data.- Returns:
- ModelTriangleMesh-derived instance for the loaded surface data
-