Class MincSurfaceLoader

All Implemented Interfaces:
InterfaceIO, IconObject

public class MincSurfaceLoader
extends SurfaceFileLoader
Reads a MINC obj file into a Mesh3D shape.

See: http://www.bic.mni.mcgill.ca/~david/FAQ/polygons_format.txt

Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • MincSurfaceLoader

      public MincSurfaceLoader()
    • MincSurfaceLoader

      public MincSurfaceLoader​(java.io.File file)
  • Method Details

    • loadSurface

      public Mesh3DInt loadSurface() throws java.io.IOException
      Description copied from class: SurfaceFileLoader
      Loads a single surface from the appropriate source. Returns a Mesh3DInt object if load was successful, or null otherwise. This method should also set the file loader and reference URL for the object.
      Overrides:
      loadSurface in class SurfaceFileLoader
      Returns:
      Throws:
      java.io.IOException
    • loadSurface

      public Mesh3DInt loadSurface​(ProgressUpdater progress_bar, InterfaceIOOptions options) throws java.io.IOException
      Description copied from class: SurfaceFileLoader
      Loads a single surface from the appropriate source. Returns a Mesh3DInt object if load was successful, or null otherwise. This method should also set the file loader and reference URL for the object.
      Specified by:
      loadSurface in class SurfaceFileLoader
      Returns:
      Mesh3DInt mesh representing the surface being loaded
      Throws:
      java.io.IOException
    • loadSurfaceBlocking

      protected Mesh3DInt loadSurfaceBlocking​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException
    • getWriterComplement

      public InterfaceIOType getWriterComplement()
      Description copied from class: FileLoader
      Returns the InterfaceIOType of a FileWriter which is the complement of this loader; i.e., writes what this loader reads with identical encoding. Transfer between loader and writer should be lossless.

      Returns null if no complement is defined.

      Overrides:
      getWriterComplement in class FileLoader
      Returns: