NASA World Wind WMS

gov.nasa.worldwind.servers.wms.formats
Class BILImageFormatter

java.lang.Object
  extended by gov.nasa.worldwind.servers.wms.formats.ImageFormatter
      extended by gov.nasa.worldwind.servers.wms.formats.BILImageFormatter

public class BILImageFormatter
extends ImageFormatter


Constructor Summary
BILImageFormatter(gov.nasa.worldwind.data.ByteBufferRaster raster)
           
BILImageFormatter(int xRes, int yRes)
           
BILImageFormatter(int xRes, int yRes, java.nio.ByteBuffer bb)
           
 
Method Summary
 java.io.InputStream asBIL()
           
 void copyFrom(java.awt.image.BufferedImage srcImage, short nodata_value)
           
 void drawImage(java.awt.image.BufferedImage srcImage, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
           
 void drawImage(java.nio.ShortBuffer srcImage, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
           
static byte[] getBytes(java.nio.ByteBuffer bb)
           
 java.nio.ShortBuffer getImage()
           
 short getNoDataValue()
           
 int getXResolution()
           
 int getYResolution()
           
 boolean hasNoDataAreas()
           
 void merge(BILImageFormatter fromImage)
           
 void merge(BILImageFormatter fromImage, short missing_color, short default_missing_color)
           
 void setNoDataValue(short nodata_value)
           
 java.awt.image.BufferedImage toIntermediateForm()
           
 void treatMissingData(short findColor, short replaceColor)
           
 
Methods inherited from class gov.nasa.worldwind.servers.wms.formats.ImageFormatter
asDDS, asJPEG, asPng, asTiff, getFormatterFromMimeType, getStreamFromMimeType, intermediateToBIL, intermediateToDDS, intermediateToJPEG, intermediateToPng, intermediateToTiff, isSupportedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BILImageFormatter

public BILImageFormatter(gov.nasa.worldwind.data.ByteBufferRaster raster)

BILImageFormatter

public BILImageFormatter(int xRes,
                         int yRes)

BILImageFormatter

public BILImageFormatter(int xRes,
                         int yRes,
                         java.nio.ByteBuffer bb)
Method Detail

asBIL

public java.io.InputStream asBIL()
                          throws java.io.IOException
Overrides:
asBIL in class ImageFormatter
Throws:
java.io.IOException

copyFrom

public void copyFrom(java.awt.image.BufferedImage srcImage,
                     short nodata_value)

drawImage

public void drawImage(java.awt.image.BufferedImage srcImage,
                      int dx1,
                      int dy1,
                      int dx2,
                      int dy2,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2)

drawImage

public void drawImage(java.nio.ShortBuffer srcImage,
                      int dx1,
                      int dy1,
                      int dx2,
                      int dy2,
                      int sx1,
                      int sy1,
                      int sx2,
                      int sy2)

getBytes

public static byte[] getBytes(java.nio.ByteBuffer bb)

getImage

public java.nio.ShortBuffer getImage()

getNoDataValue

public short getNoDataValue()

getXResolution

public int getXResolution()

getYResolution

public int getYResolution()

hasNoDataAreas

public boolean hasNoDataAreas()

merge

public void merge(BILImageFormatter fromImage)

merge

public void merge(BILImageFormatter fromImage,
                  short missing_color,
                  short default_missing_color)

setNoDataValue

public void setNoDataValue(short nodata_value)

toIntermediateForm

public java.awt.image.BufferedImage toIntermediateForm()
                                                throws java.io.IOException
Specified by:
toIntermediateForm in class ImageFormatter
Throws:
java.io.IOException

treatMissingData

public void treatMissingData(short findColor,
                             short replaceColor)

NASA World Wind WMS