Class SurfaceLoaderSUR


  • public class SurfaceLoaderSUR
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor Description
      SurfaceLoaderSUR​(java.lang.String kFilename)
      Open the specified file and load the surface data, stored in the SUR surface format, from it.
    • Field Detail

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

      • SurfaceLoaderSUR

        public SurfaceLoaderSUR​(java.lang.String kFilename)
                         throws java.io.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:
        java.io.IOException - if an error occurs when opening the surface file or reading data from it
    • Method Detail

      • 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