Class AmiraParameters

java.lang.Object
loci.formats.tools.AmiraParameters

public class AmiraParameters extends Object
AmiraParameters handles parsing and writing of AmiraMesh headers.
Author:
Gregory Jefferis jefferis at gmail.com, Johannes Schindelin johannes.schindelin at gmx.de
  • Field Details

    • width

      public int width
    • height

      public int height
    • depth

      public int depth
    • firstDataStream

      public int firstDataStream
    • x0

      public double x0
    • y0

      public double y0
    • z0

      public double z0
    • x1

      public double x1
    • y1

      public double y1
    • z1

      public double z1
    • littleEndian

      public boolean littleEndian
    • ascii

      public boolean ascii
    • nStreams

      public int nStreams
    • streamNames

      public String[] streamNames
    • streamTypes

      public String[] streamTypes
    • in

      protected transient loci.common.RandomAccessInputStream in
    • map

      protected Map map
    • streams

      protected Map streams
    • column

      protected int column
    • row

      protected int row
    • c

      protected char c
  • Constructor Details

    • AmiraParameters

      public AmiraParameters(String path) throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • AmiraParameters

      public AmiraParameters(loci.common.RandomAccessInputStream inputStream) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
  • Method Details

    • readFile

      protected void readFile(String path) throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • readFile

      protected void readFile(loci.common.RandomAccessInputStream inputStream) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • extractCoreMetaData

      protected void extractCoreMetaData() throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • syntaxError

      protected void syntaxError(String message) throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • readTopLevel

      protected void readTopLevel() throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readByte

      protected char readByte() throws IOException
      Throws:
      IOException
    • skipComment

      protected void skipComment() throws IOException
      Throws:
      IOException
    • skipWhiteSpace

      protected void skipWhiteSpace() throws IOException
      Throws:
      IOException
    • readKey

      protected String readKey() throws IOException
      Throws:
      IOException
    • readNumber

      protected Number readNumber() throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readIntArray

      protected Integer[] readIntArray() throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readNumberArray

      protected Number[] readNumberArray() throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readIntArray

      protected Integer[] readIntArray(int count) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readDoubleArray

      protected Double[] readDoubleArray(int count) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readQuotedString

      protected String readQuotedString() throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • readMap

      protected Map readMap() throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • getMap

      public Map getMap()
    • getStreams

      public Map getStreams()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public static String toString(Map map, String indent) throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • entryToString

      public static String entryToString(Object object, String indent) throws loci.formats.FormatException
      Throws:
      loci.formats.FormatException
    • main

      public static void main(String[] args)