Package com.luciad.format.jpeg2000
Class TLcdJPEG2000ModelDescriptor
java.lang.Object
com.luciad.model.TLcdModelDescriptor
com.luciad.format.raster.TLcdMultilevelRasterModelDescriptor
com.luciad.format.jpeg2000.TLcdJPEG2000ModelDescriptor
- All Implemented Interfaces:
ILcdImageModelDescriptor
,ILcdModelDescriptor
,Serializable
public class TLcdJPEG2000ModelDescriptor
extends TLcdMultilevelRasterModelDescriptor
implements ILcdImageModelDescriptor
This
TLcdMultilevelRasterModelDescriptor
describes models containing
JPEG2000 multi-level rasters.
The JPEG2000 standard defines a number of so called boxes which contain a certain type of
data. Some of the optional boxes which may contain metadata are available from this model
descriptor.- Since:
- 6.0
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdJPEG2000ModelDescriptor
(String aSourceName, String aDisplayName) Creates a new TLcdJPEG2000ModelDescriptor with the given source name and display name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the available association metadata boxes.int
Returns the number of components in the image.int
getComponentSize
(int aIndex) Returns the size in bits of the specified component in the image.int
getHeight
(int aLevel) Returns the height of the specified level in the first image.int
Returns the number of levels in the first image.Returns the uuid metadata box.int
getWidth
(int aLevel) Returns the width of the specified level in the first image.Returns the available xml metadata boxes.Methods inherited from class com.luciad.format.raster.TLcdMultilevelRasterModelDescriptor
isElevation, setElevation
Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Constructor Details
-
TLcdJPEG2000ModelDescriptor
Creates a new TLcdJPEG2000ModelDescriptor with the given source name and display name.
-
-
Method Details
-
getLevelCount
public int getLevelCount()Returns the number of levels in the first image.- Returns:
- the number of levels
-
getWidth
public int getWidth(int aLevel) Returns the width of the specified level in the first image. Level0
is the least detailed level and the detail increases with the level count.- Parameters:
aLevel
- the level in[0, #getLevelCount[
- Returns:
- the width of the level in pixels
- See Also:
-
getHeight
public int getHeight(int aLevel) Returns the height of the specified level in the first image. Level0
is the least detailed level and the detail increases with the level count.- Parameters:
aLevel
- the level in[0, #getLevelCount[
- Returns:
- the height of the level in pixels
-
getComponentCount
public int getComponentCount()Returns the number of components in the image.- Returns:
- the number of components in the image
-
getComponentSize
public int getComponentSize(int aIndex) Returns the size in bits of the specified component in the image. Note that this component size may be differ from the component size in theILcdRaster
. SeeTLcdJPEG2000ModelDecoder
for details.- Parameters:
aIndex
- the component index in[0, #getComponentCount[
- Returns:
- the height of the level in pixels
-
getUUIDBox
Returns the uuid metadata box.- Returns:
- the uuid metadata box or
null
if it is not present - See Also:
-
getXMLBoxes
Returns the available xml metadata boxes.- Returns:
- the xml metadata boxes
- See Also:
-
getAssociationBoxes
Returns the available association metadata boxes.- Returns:
- the association metadata boxes
- See Also:
-