Interface Buffer

All Superinterfaces:
org.gvsig.tools.dispose.Disposable, Iterable<Band>, org.gvsig.tools.observer.Observable, org.gvsig.tools.observer.Observer, StatisticsCapable, org.gvsig.tools.observer.WeakReferencingObservable

public interface Buffer extends StatisticsCapable, Iterable<Band>, org.gvsig.tools.observer.Observer, org.gvsig.tools.dispose.Disposable
Author:
fdiaz
  • Field Details

  • Method Details

    • getBandCount

      int getBandCount()
      Returns:
      Number of buffer bands
    • getBands

      Band[] getBands()
      Returns:
      Bands of buffer
    • getBandsInfo

      BandInfo[] getBandsInfo()
    • getColumns

      int getColumns()
      Returns:
      the number of columns
    • getRows

      int getRows()
      Returns:
      the number of rows
    • getEnvelope

      org.gvsig.fmap.geom.primitive.Envelope getEnvelope() throws org.gvsig.tools.locator.LocatorException, org.gvsig.fmap.geom.exception.CreateEnvelopeException
      Returns:
      Envelope of this buffer
      Throws:
      org.gvsig.fmap.geom.exception.CreateEnvelopeException
      org.gvsig.tools.locator.LocatorException
    • getProjection

      org.gvsig.crs.projection.lib.Projection getProjection()
      Returns:
      Projection of buffer
    • isInside

      boolean isInside(int cellX, int cellY)
      Returns true if passed as parameter cell is inside of the buffer, else returns false.
      Parameters:
      cellX - Cell's x position
      cellY - Cell's y position
      Returns:
      true if cell is inside, false if it is outside
    • isInside

      boolean isInside(org.gvsig.fmap.geom.primitive.Point point)
      Returns true if passed as parameter point is inside of the buffer, else returns false.
      Parameters:
      point -
      Returns:
      true if point is inside of this
    • addBand

      void addBand(Band band)
      Adds a band
      Parameters:
      band -
    • setBand

      void setBand(int pos, Band band) throws BandException
      Sets a band in the "pos" position
      Parameters:
      pos -
      band -
      Throws:
      BandException
    • removeBand

      void removeBand(int pos)
      Removes the band in the "pos" position
      Parameters:
      pos -
    • getBand

      Band getBand(int pos)
      Gets the band in the "pos" position
      Parameters:
      pos -
      Returns:
      return the band in the "pos" position
    • getBandByte

      Band.BandByte getBandByte(int pos)
      Parameters:
      pos -
      Returns:
      return the band in the "pos" position if the band is of type byte
    • getBandShort

      Band.BandShort getBandShort(int pos)
      Parameters:
      pos -
      Returns:
      return the band in the "pos" position if the band is of type short
    • getBandInt

      Band.BandInt getBandInt(int pos)
      Parameters:
      pos -
      Returns:
      return the band in the"pos" position if the band is of type int
    • getBandFloat

      Band.BandFloat getBandFloat(int pos)
      Parameters:
      pos -
      Returns:
      return the band in the "pos" position if the band is of type float
    • getBandDouble

      Band.BandDouble getBandDouble(int pos)
      Parameters:
      pos -
      Returns:
      return the band in the "pos" position if the band is of type double
    • switchBands

      void switchBands(int[] positions)
      Switches the bands as indicated by the parameter
      Parameters:
      positions -
    • switchBands

      void switchBands(int pos1, int pos2)
      Switches two bands
      Parameters:
      pos1 -
      pos2 -
    • createInterpolated

      Buffer createInterpolated(int rows, int columns, int interpolationMode, org.gvsig.tools.task.SimpleTaskStatus status) throws org.gvsig.tools.locator.LocatorException, BufferException
      Creates a interpolated buffer
      Parameters:
      rows -
      columns -
      interpolationMode -
      status -
      Returns:
      a interpolated Buffer according the interpolation mode
      Throws:
      BufferException
      org.gvsig.tools.locator.LocatorException
    • convert

      Buffer convert(org.gvsig.crs.projection.lib.CoordinateTransformation ct, org.gvsig.tools.task.SimpleTaskStatus status) throws BufferException
      Converts buffer using specified coordinate transformation
      Parameters:
      ct - Coordinate transformation to convert buffer
      status -
      Returns:
      New converted buffer.
      Throws:
      BufferException - If there are problems converting buffer
    • getBandTypes

      int[] getBandTypes()
      Returns:
      Gets band types of buffer bands
    • areAllBandsOfTheSameType

      boolean areAllBandsOfTheSameType()
    • getBandNoData

      NoData[] getBandNoData()
      Returns:
      Gets NoData object from buffer bands
    • clip

      Buffer clip(org.gvsig.fmap.geom.primitive.Envelope envelope) throws BufferException
      Parameters:
      envelope -
      Returns:
      A clip of buffer
      Throws:
      BufferException
    • getPixelSizeX

      double getPixelSizeX()
      Returns:
      Returns X pixel of this buffer.
    • getPixelSizeY

      double getPixelSizeY()
      Returns:
      Returns Y pixel of this buffer.
    • getDimensions

      BufferDimensions getDimensions()
      Returns:
    • getRenderedImage

      RenderedImage getRenderedImage(int... bands)
      Parameters:
      bands -
      Returns: