Package com.luciad.format.cadrg
Class TLcdCADRGTile
java.lang.Object
com.luciad.format.raster.TLcdBufferedTile
com.luciad.format.cadrg.TLcdCADRGTile
- All Implemented Interfaces:
ILcdSubtiledTile
,ILcdTile
,ILcdDisposable
,AutoCloseable
This
ILcdTile
contains additional information about the
CADRG/CIB frame that it represents.-
Field Summary
Fields inherited from class com.luciad.format.raster.TLcdBufferedTile
fBitOffset, fBuffer, fColorModel, fDecoder, fDefaultValue, fFileName, fForcedTransparentColorIndex, fHeight, fImageIndex, fIsAllDefault, fPixelSize, fSigned, fSubTileHeight, fSubTileWidth, fType, fURL, fWidth
-
Constructor Summary
ConstructorDescriptionTLcdCADRGTile
(String aFileName, ILcdTileDecoder aDecoder, ILcdBuffer aBuffer, boolean aExpandColorMap, TLcdCADRGFrameDescriptor aCADRGFrameDescriptor) Creates a new TLcdCADRGTile.TLcdCADRGTile
(String aFileName, ILcdTileDecoder aDecoder, ILcdBuffer aBuffer, TLcdCADRGFrameDescriptor aCADRGFrameDescriptor) Creates a new TLcdCADRGTile. -
Method Summary
Modifier and TypeMethodDescriptionCreates an image of the entire tile, using the tile's own color model.createImage
(int aX, int aY, int aWidth, int aHeight) Creates an image of the specified rectangular area of the tile, using the tile's own color model.createImage
(int aX, int aY, int aWidth, int aHeight, ColorModel aColorModel) Creates an image of the specified rectangular area of the tile, using the given color model.createImage
(ColorModel aColorModel) Creates an image of the entire tile, using the given color model.Returns the descriptor containing additional information about the CADRG/CIB frame.int
Returns the height of the tile, expressed in pixels.int
getWidth()
Returns the width of the tile, expressed in pixels.Methods inherited from class com.luciad.format.raster.TLcdBufferedTile
dispose, getBitOffset, getColorModel, getFileName, getForcedTransparentColorIndex, getImageIndex, getPixelSize, getSubTileHeight, getSubTileWidth, getTileDecoder, getType, getURL, isAllDefault, isSigned, isTraceOn, retrieveTile, retrieveValue, setClassTraceOn, setColorModel, setFileName, setForcedTransparentColorIndex, setHeight, setImageIndex, setSigned, setTraceOn, setURL, setWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdDisposable
close
-
Constructor Details
-
TLcdCADRGTile
public TLcdCADRGTile(String aFileName, ILcdTileDecoder aDecoder, ILcdBuffer aBuffer, TLcdCADRGFrameDescriptor aCADRGFrameDescriptor) Creates a new TLcdCADRGTile.- Parameters:
aFileName
- the name of the CADRG tile to be decoded.aDecoder
- the decoder for reading the tile.aBuffer
- the buffer in which the tile can be decoded.aCADRGFrameDescriptor
- the CADRG/CIB frame descriptor.
-
TLcdCADRGTile
public TLcdCADRGTile(String aFileName, ILcdTileDecoder aDecoder, ILcdBuffer aBuffer, boolean aExpandColorMap, TLcdCADRGFrameDescriptor aCADRGFrameDescriptor) Creates a new TLcdCADRGTile.- Parameters:
aFileName
- the name of the CADRG tile to be decoded.aDecoder
- the decoder for reading the tile.aBuffer
- the buffer in which the tile can be decoded.aExpandColorMap
- specifies whether the color maps of the decoded tiles are expanded.aCADRGFrameDescriptor
- the CADRG frame descriptor.
-
-
Method Details
-
getCADRGFrameDescriptor
Returns the descriptor containing additional information about the CADRG/CIB frame. -
createImage
Description copied from interface:ILcdTile
Creates an image of the entire tile, using the tile's own color model.- Specified by:
createImage
in interfaceILcdTile
- Overrides:
createImage
in classTLcdBufferedTile
-
createImage
Description copied from interface:ILcdTile
Creates an image of the entire tile, using the given color model.- Specified by:
createImage
in interfaceILcdTile
- Overrides:
createImage
in classTLcdBufferedTile
- Parameters:
aColorModel
- the color model to be used for the image. The color model should be compatible with the pixel values of the tile.
-
createImage
Description copied from interface:ILcdTile
Creates an image of the specified rectangular area of the tile, using the tile's own color model.- Specified by:
createImage
in interfaceILcdTile
- Overrides:
createImage
in classTLcdBufferedTile
- Parameters:
aX
- the x ordinate of the area, expressed in tile coordinates.aY
- the y ordinate of the area, expressed in tile coordinates.aWidth
- the width of the area, expressed in tile coordinates.aHeight
- the height of the area, expressed in tile coordinates.
-
createImage
Description copied from interface:ILcdTile
Creates an image of the specified rectangular area of the tile, using the given color model.- Specified by:
createImage
in interfaceILcdTile
- Overrides:
createImage
in classTLcdBufferedTile
- Parameters:
aX
- the x ordinate of the area, expressed in tile coordinates.aY
- the y ordinate of the area, expressed in tile coordinates.aWidth
- the width of the area, expressed in tile coordinates.aHeight
- the height of the area, expressed in tile coordinates.aColorModel
- the color model to be used for the image. The color model should be compatible with the pixel values of the tile.
-
getWidth
public int getWidth()Description copied from interface:ILcdTile
Returns the width of the tile, expressed in pixels.- Specified by:
getWidth
in interfaceILcdTile
- Overrides:
getWidth
in classTLcdBufferedTile
-
getHeight
public int getHeight()Description copied from interface:ILcdTile
Returns the height of the tile, expressed in pixels.- Specified by:
getHeight
in interfaceILcdTile
- Overrides:
getHeight
in classTLcdBufferedTile
-