Package com.luciad.format.raster
Class TLcdTileInfo
java.lang.Object
com.luciad.format.raster.TLcdTileInfo
- All Implemented Interfaces:
ILcdTileInfo
This class provides an implementation of ILcdTileInfo.
-
Constructor Summary
ConstructorDescriptionTLcdTileInfo
(int aWidth, int aHeight, int aType, int aPixelSize, int aBitOffset, boolean aAllDefault, ColorModel aColorModel, ILcdBufferSegment aBufferSegment) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the offset of the first pixel in every tile row, expressed in bits.Returns the buffer segment that contains the actual data of the tile.Returns the optional color model of the tile.int
Returns the height of the tile, expressed in pixels.int
Returns the pixel size of the tile values, expressed in bits.int
getType()
Returns the internal storage type of the tile values.getURL()
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.void
setAllDefault
(boolean aAllDefault) Sets whether all values in the tile are equal to a default value.void
setBitOffset
(int aBitOffset) void
setPixelSize
(int aPixelSize) void
setType
(int aType) void
Sets the URL that was used to read the tile.
-
Constructor Details
-
TLcdTileInfo
public TLcdTileInfo(int aWidth, int aHeight, int aType, int aPixelSize, int aBitOffset, boolean aAllDefault, ColorModel aColorModel, ILcdBufferSegment aBufferSegment)
-
-
Method Details
-
getWidth
public int getWidth()Description copied from interface:ILcdTileInfo
Returns the width of the tile, expressed in pixels.- Specified by:
getWidth
in interfaceILcdTileInfo
-
getHeight
public int getHeight()Description copied from interface:ILcdTileInfo
Returns the height of the tile, expressed in pixels.- Specified by:
getHeight
in interfaceILcdTileInfo
-
getType
public int getType()Description copied from interface:ILcdTileInfo
Returns the internal storage type of the tile values.- Specified by:
getType
in interfaceILcdTileInfo
- Returns:
- one of
ILcdTile.BYTE
,ILcdTile.SHORT
, orILcdTile.INT
.
-
setType
public void setType(int aType) -
getPixelSize
public int getPixelSize()Description copied from interface:ILcdTileInfo
Returns the pixel size of the tile values, expressed in bits.- Specified by:
getPixelSize
in interfaceILcdTileInfo
-
setPixelSize
public void setPixelSize(int aPixelSize) -
getBitOffset
public int getBitOffset()Description copied from interface:ILcdTileInfo
Returns the offset of the first pixel in every tile row, expressed in bits.- Specified by:
getBitOffset
in interfaceILcdTileInfo
-
setBitOffset
public void setBitOffset(int aBitOffset) -
getURL
- Specified by:
getURL
in interfaceILcdTileInfo
-
setURL
Description copied from interface:ILcdTileInfo
Sets the URL that was used to read the tile.- Specified by:
setURL
in interfaceILcdTileInfo
-
isAllDefault
public boolean isAllDefault()Description copied from interface:ILcdTileInfo
Returns whether all values in the tile are equal to a default value.- Specified by:
isAllDefault
in interfaceILcdTileInfo
-
setAllDefault
public void setAllDefault(boolean aAllDefault) Description copied from interface:ILcdTileInfo
Sets whether all values in the tile are equal to a default value.- Specified by:
setAllDefault
in interfaceILcdTileInfo
-
getColorModel
Description copied from interface:ILcdTileInfo
Returns the optional color model of the tile.- Specified by:
getColorModel
in interfaceILcdTileInfo
- Returns:
- the color model, or
null
if the raster doesn't have an explicit color model.
-
getBufferSegment
Description copied from interface:ILcdTileInfo
Returns the buffer segment that contains the actual data of the tile.- Specified by:
getBufferSegment
in interfaceILcdTileInfo
-