java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.flythruview.SurfaceLoaderSUR

public class SurfaceLoaderSUR extends Object
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 Details

    • ms_kFileFilter

      private static FileFilterExt ms_kFileFilter
      FileFilter instance for this file loader which works with the JFileChooser.
    • m_kTriangleMesh

      private ModelTriangleMesh m_kTriangleMesh
      Triangle mesh representation for the surface.
  • Constructor Details

    • SurfaceLoaderSUR

      public SurfaceLoaderSUR(String kFilename) throws IOException
      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

      public static FileFilterExt 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

      public ModelTriangleMesh getTriangleMesh()
      Access the triangle mesh representation for the loaded surface data.
      Returns:
      ModelTriangleMesh-derived instance for the loaded surface data