Class DefaultHDRFile

java.lang.Object
org.gvsig.basicformats.impl.AbstractFormatFile
org.gvsig.basicformats.impl.DefaultHDRFile
All Implemented Interfaces:
FormatFile, HDRFile

public class DefaultHDRFile extends AbstractFormatFile implements HDRFile
  • Constructor Details

    • DefaultHDRFile

      public DefaultHDRFile()
  • Method Details

    • getFile

      public File getFile(File file)
      Specified by:
      getFile in interface FormatFile
    • getFile

      public File getFile()
      Specified by:
      getFile in interface FormatFile
    • read

      public void read(File file) throws IOException
      Specified by:
      read in interface FormatFile
      Throws:
      IOException
    • getDataType

      public int getDataType()
      Specified by:
      getDataType in interface HDRFile
    • write

      public void write(File file) throws IOException
      Specified by:
      write in interface FormatFile
      Throws:
      IOException
    • setByteOrder

      public void setByteOrder(ByteOrder order)
      Specified by:
      setByteOrder in interface HDRFile
    • setNBands

      public void setNBands(int nbands)
      Specified by:
      setNBands in interface HDRFile
    • setDataType

      public void setDataType(int dataType)
      Specified by:
      setDataType in interface HDRFile
    • setDimensions

      public void setDimensions(int nrows, int ncols, org.gvsig.fmap.geom.primitive.Envelope envelope)
      Specified by:
      setDimensions in interface HDRFile
    • getEnvelope

      public org.gvsig.fmap.geom.primitive.Envelope getEnvelope()
      Specified by:
      getEnvelope in interface HDRFile
    • getNrows

      public int getNrows()
      Specified by:
      getNrows in interface HDRFile
      Returns:
      the nrows
    • getNcols

      public int getNcols()
      Specified by:
      getNcols in interface HDRFile
      Returns:
      the ncols
    • getNbands

      public int getNbands()
      Specified by:
      getNbands in interface HDRFile
      Returns:
      the nbands
    • getNbits

      public int getNbits()
      Specified by:
      getNbits in interface HDRFile
      Returns:
      the nbits
    • getByteorder

      public ByteOrder getByteorder()
      Specified by:
      getByteorder in interface HDRFile
      Returns:
      the byteorder
    • getLayout

      public String getLayout()
      Specified by:
      getLayout in interface HDRFile
      Returns:
      the layout
    • getSkipbytes

      public int getSkipbytes()
      Specified by:
      getSkipbytes in interface HDRFile
      Returns:
      the skipbytes
    • getUlxmax

      public double getUlxmax()
      Specified by:
      getUlxmax in interface HDRFile
      Returns:
      the ulxmax
    • getUlymax

      public double getUlymax()
      Specified by:
      getUlymax in interface HDRFile
      Returns:
      the ulymax
    • getXdim

      public double getXdim()
      Specified by:
      getXdim in interface HDRFile
      Returns:
      the xdim
    • getYdim

      public double getYdim()
      Specified by:
      getYdim in interface HDRFile
      Returns:
      the ydim
    • getBandrowbytes

      public int getBandrowbytes()
      Specified by:
      getBandrowbytes in interface HDRFile
      Returns:
      the bandrowbytes
    • getTotalrowbytes

      public int getTotalrowbytes()
      Specified by:
      getTotalrowbytes in interface HDRFile
      Returns:
      the totalrowbytes
    • getBandgapbytes

      public int getBandgapbytes()
      Specified by:
      getBandgapbytes in interface HDRFile
      Returns:
      the bandgapbytes
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface HDRFile
      Returns:
      the isValid
    • getComments

      public String getComments()
      Specified by:
      getComments in interface HDRFile
      Returns:
      the comments
    • setComments

      public void setComments(String comments)
      Specified by:
      setComments in interface HDRFile
      Parameters:
      comments - the comments to set
    • getNodata_value

      public double getNodata_value()
      Specified by:
      getNodata_value in interface HDRFile
      Returns:
      the nodata_value
    • getXllcorner

      public double getXllcorner()
      Specified by:
      getXllcorner in interface HDRFile
      Returns:
      the xllcorner
    • getYllcorner

      public double getYllcorner()
      Specified by:
      getYllcorner in interface HDRFile
      Returns:
      the yllcorner
    • getCellsize

      public int getCellsize()
      Specified by:
      getCellsize in interface HDRFile
      Returns:
      the cellsize
    • getBandSize

      public int getBandSize()
      Specified by:
      getBandSize in interface HDRFile