Class VolFileLoader

All Implemented Interfaces:
InterfaceIO, IconObject

public class VolFileLoader
extends VolumeFileLoader
  • Constructor Details

    • VolFileLoader

      public VolFileLoader​(java.net.URL voldat)
      Creates a VolFile from a URL.
      Parameters:
      voldat - The URL for a .vol file holding the volume
  • Method Details

    • getVolumeMetadata

      public VolumeMetadata getVolumeMetadata()
      Description copied from class: VolumeFileLoader
      Returns a set of metadata describing the current volume file.
      Specified by:
      getVolumeMetadata in class VolumeFileLoader
      Returns:
    • loadData

      public void loadData()
    • getId

      public java.lang.String getId()
      Returns the ID string for the volume file
    • getXDim

      public int getXDim()
      Gets the X dimension of the volume
    • getYDim

      public int getYDim()
      Gets the Y dimension of the volume
    • getZDim

      public int getZDim()
      Gets the Z dimension of the volume
    • getFileData

      public byte[][][] getFileData()
    • setVolume3D

      public boolean setVolume3D​(Volume3DInt volume, java.lang.String column, int v, VolumeInputOptions options, ProgressUpdater progress)
      Fills a grid with this file's data. Data with be truncated if grid dimensions are too small, and will not set values for extra elements if grid is too large. TODO set extra elements to 0 TODO allow scaling of data to fit grid dimensions
      Overrides:
      setVolume3D in class VolumeFileLoader
      Parameters:
      grid - Grid3D object to fill
    • releaseData

      protected void releaseData()
    • getVolume3D

      public Volume3DInt getVolume3D()
      Overrides:
      getVolume3D in class VolumeFileLoader
    • getVolume3D

      public Volume3DInt getVolume3D​(int v)
      Return a Grid3D object representing the geometrical boundary of this volume
      Overrides:
      getVolume3D in class VolumeFileLoader
      Returns:
      Grid3D object
    • setVolume3DBlocking

      protected boolean setVolume3DBlocking​(Volume3DInt volume, java.lang.String column, int v, VolumeInputOptions options, ProgressUpdater progress) throws ShapeIOException
      Specified by:
      setVolume3DBlocking in class VolumeFileLoader
      Throws:
      ShapeIOException