Package com.luciad.format.ecrg
Class TLcdECRGTile
java.lang.Object
com.luciad.format.ecrg.TLcdECRGTile
- All Implemented Interfaces:
ILcdSubtiledTile
,ILcdTile
,ILcdDisposable
,AutoCloseable
A single tile or frame in an ECRG raster. Tiles are grouped in a
TLcdRaster
and contain additional frame-specific information.- Since:
- 2013.1
-
Field Summary
-
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.void
dispose()
Disposes of this object and allows it to release any system resources that it is holding.Returns the optional color model of the tile.Get the frame description, as read from the NITF fileGet the frame revision history, as read from the NITF fileint
Returns the height of the tile, expressed in pixels.int
Returns the pixel size of the tile values, expressed in bits.int
Returns the height of a subtile in pixels.int
Returns the width of a subtile in pixels.int
getType()
Returns the internal storage type of the tile values.int
getWidth()
Returns the width of the tile, expressed in pixels.boolean
Returns whether all values in the tile are equal to a default value.int
retrieveValue
(int aX, int aY) Retrieves the tile value at the specified location.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
-
Method Details
-
getSubTileWidth
public int getSubTileWidth()Description copied from interface:ILcdSubtiledTile
Returns the width of a subtile in pixels. May be equal to the width of the parent tile (as returned by the getWidth() method), in which case the tile is not subdivided.- Specified by:
getSubTileWidth
in interfaceILcdSubtiledTile
-
getSubTileHeight
public int getSubTileHeight()Returns the height of a subtile in pixels. May be equal to the height of the parent tile (as returned by the getHeight() method), in which case the tile is not subdivided.- Specified by:
getSubTileHeight
in interfaceILcdSubtiledTile
-
getWidth
public int getWidth()Returns the width of the tile, expressed in pixels. -
getHeight
public int getHeight()Returns the height of the tile, expressed in pixels. -
getType
public int getType()Returns the internal storage type of the tile values. -
getPixelSize
public int getPixelSize()Returns the pixel size of the tile values, expressed in bits.- Specified by:
getPixelSize
in interfaceILcdTile
-
getColorModel
Returns the optional color model of the tile.- Specified by:
getColorModel
in interfaceILcdTile
- Returns:
- the color model, or
null
if the raster doesn't have an explicit color model.
-
isAllDefault
public boolean isAllDefault()Returns whether all values in the tile are equal to a default value.- Specified by:
isAllDefault
in interfaceILcdTile
-
retrieveValue
public int retrieveValue(int aX, int aY) Retrieves the tile value at the specified location.- Specified by:
retrieveValue
in interfaceILcdTile
- Parameters:
aX
- the x ordinate of the value, expressed in tile coordinates.aY
- the y ordinate of the value, expressed in tile coordinates.- Returns:
- the integer tile value at the specified location.
-
createImage
Creates an image of the entire tile, using the tile's own color model.- Specified by:
createImage
in interfaceILcdTile
-
createImage
Creates an image of the entire tile, using the given color model.- Specified by:
createImage
in interfaceILcdTile
- 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
Creates an image of the specified rectangular area of the tile, using the tile's own color model.- Specified by:
createImage
in interfaceILcdTile
- 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
Creates an image of the specified rectangular area of the tile, using the given color model.- Specified by:
createImage
in interfaceILcdTile
- 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.
-
dispose
public void dispose()Disposes of this object and allows it to release any system resources that it is holding.
The result of calling any other method (other than
finalize
) on this object subsequent to a call to this method is undefined.- Specified by:
dispose
in interfaceILcdDisposable
-
getFrameRevisionHistory
Get the frame revision history, as read from the NITF file- Returns:
- The frame revision history as a string
-
getFrameDescription
Get the frame description, as read from the NITF file- Returns:
- The frame description as a string
-