Class Mesh3DLoader

All Implemented Interfaces:
InterfaceIO, IconObject

public class Mesh3DLoader
extends SurfaceFileLoader
Deafult loader for loading a Mesh3DInt object. The format is a .tri file.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • Mesh3DLoader

      public Mesh3DLoader()
    • Mesh3DLoader

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

    • loadShape

      public InterfaceShape loadShape​(ShapeInputOptions options, ProgressUpdater progress_bar) throws java.io.IOException
      Description copied from class: InterfaceShapeLoader
      Loads a shape with the given options.
      Overrides:
      loadShape 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
    • 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: