|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNitfJ2klraTag.h>
Classes | |
| class | ossimJ2klraLayer |
Public Types | |
| enum | { ORIG_SIZE = 1, NLEVELS_O_SIZE = 2, NBANDS_O_SIZE = 5, NLAYERS_O_SIZE = 3, LAYER_ID_SIZE = 3, BITRATE_SIZE = 9, NLEVELS_I_SIZE = 2, NBANDS_I_SIZE = 5, NLAYERS_I_SIZE = 3 } |
Public Member Functions | |
| ossimNitfJ2klraTag () | |
| default constructor More... | |
| virtual void | parseStream (std::istream &in) |
| Parse method. More... | |
| virtual void | writeStream (std::ostream &out) |
| Write method. More... | |
| virtual ossim_uint32 | getSizeInBytes () const |
| virtual void | clearFields () |
| Clears all string fields within the record to some default nothingness. More... | |
| virtual std::ostream & | print (std::ostream &out, const std::string &prefix) const |
| Print method that outputs a key/value type format adding prefix to keys. More... | |
| ossim_uint32 | getOriginNumber () const |
| ossim_uint32 | getNumberOfLayersOriginal () const |
| bool | setOrigin (ossim_uint32 origin) |
| Sets origin: More... | |
| bool | setLevelsO (ossim_uint32 levels) |
| Sets the number of wavelet levels in the original image. More... | |
| bool | setBandsO (ossim_uint32 bands) |
| Sets the number of bands in the original image. More... | |
| bool | setLayersO (ossim_uint32 layers) |
| Sets the number of layers in the original image. More... | |
| bool | setLevelsI (ossim_uint32 levels) |
| Sets the number of wavelet levels in this image. More... | |
| bool | setBandsI (ossim_uint32 bands) |
| Sets the number of bands in this image. More... | |
| bool | setLayersI (ossim_uint32 layers) |
| Sets the number of layers in this image. More... | |
| bool | setLayerId (ossim_uint32 index, ossim_uint32 id) |
| Sets the layer id for index. More... | |
| bool | setLayerBitRate (ossim_uint32 index, ossim_float64 bitRate) |
| Sets the bitrate from index. More... | |
Public Member Functions inherited from ossimNitfRegisteredTag | |
| ossimNitfRegisteredTag () | |
| default constructor More... | |
| ossimNitfRegisteredTag (const std::string &tagName, ossim_uint32 tagLength) | |
| Constructor that takes name and size. More... | |
| virtual | ~ossimNitfRegisteredTag () |
| destructor More... | |
| virtual std::string | getRegisterTagName () const |
| This will return the name of the registered tag for this user defined header. More... | |
| virtual const std::string & | getTagName () const |
| This will return the name of the registered tag for this user defined header. More... | |
| virtual void | setTagName (const std::string &tagName) |
| virtual ossim_uint32 | getTagLength () const |
| Returns the length in bytes of the tag from the CEL or REL field. More... | |
| virtual void | setTagLength (ossim_uint32 length) |
| Set the tag length. More... | |
| virtual void | parseStream (ossim::istream &in)=0 |
| This will allow the user defined data to parse the stream. More... | |
| virtual void | writeStream (ossim::ostream &out)=0 |
| virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
| virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
| virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
| virtual void | getMetadata (ossimKeywordlist &kwl, const char *prefix=0) const |
| Default interface to populate keyword list with metadata. More... | |
| virtual bool | saveState (ossimKeywordlist &kwl, const ossimString &prefix) const |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () const |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getDescription () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| virtual std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Public Member Functions inherited from ossimPropertyInterface | |
| ossimPropertyInterface () | |
| virtual | ~ossimPropertyInterface () |
| virtual void | setProperty (const ossimString &name, const ossimString &value) |
| virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
| void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
| void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
Protected Member Functions | |
| bool | isParsed () const |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Attributes | |
| char | m_orig [ORIG_SIZE+1] |
| FIELD: ORIG. More... | |
| char | m_levels_o [NLEVELS_O_SIZE+1] |
| FIELD: NLEVELS_O required 2 bytes 00 - 32 Number of wavelet levels in original image. More... | |
| char | m_bands_o [NBANDS_O_SIZE+1] |
| FIELD: NBANDS_O required 5 bytes 00000 - 16384 Number of bands in original image. More... | |
| char | m_layers_o [NLAYERS_O_SIZE+1] |
| FIELD: NLAYERS_O required 3 bytes 000 - 999 Number of layers in original image. More... | |
| std::vector< ossimJ2klraLayer > | m_layer |
| repeating fields More... | |
| char | m_nlevels_i [NLEVELS_I_SIZE+1] |
| FIELD: NLEVELS_I Conditional 2 bytes if ORIG=1, 3, or 9. More... | |
| char | m_nbands_i [NBANDS_I_SIZE+1] |
| FIELD: NBANDS_I Conditional 5 bytes if ORIG=1, 3,or 9. More... | |
| char | m_nlayers_i [NLAYERS_I_SIZE+1] |
| FIELD: NLAYERS_I Conditional 3 bytes if ORIG=1, 3, or 9. More... | |
Protected Attributes inherited from ossimNitfRegisteredTag | |
| std::string | m_tagName |
| ossim_uint32 | m_tagLength |
Definition at line 26 of file ossimNitfJ2klraTag.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ORIG_SIZE | |
| NLEVELS_O_SIZE | |
| NBANDS_O_SIZE | |
| NLAYERS_O_SIZE | |
| LAYER_ID_SIZE | |
| BITRATE_SIZE | |
| NLEVELS_I_SIZE | |
| NBANDS_I_SIZE | |
| NLAYERS_I_SIZE | |
Definition at line 29 of file ossimNitfJ2klraTag.h.
| ossimNitfJ2klraTag::ossimNitfJ2klraTag | ( | ) |
default constructor
Definition at line 30 of file ossimNitfJ2klraTag.cpp.
References clearFields().
|
virtual |
Clears all string fields within the record to some default nothingness.
Definition at line 114 of file ossimNitfJ2klraTag.cpp.
References m_bands_o, m_layer, m_layers_o, m_levels_o, m_nbands_i, m_nlayers_i, m_nlevels_i, m_orig, NBANDS_I_SIZE, NBANDS_O_SIZE, NLAYERS_I_SIZE, NLAYERS_O_SIZE, NLEVELS_I_SIZE, NLEVELS_O_SIZE, ORIG_SIZE, and ossimNitfRegisteredTag::setTagLength().
Referenced by ossimNitfJ2klraTag(), and parseStream().
| ossim_uint32 ossimNitfJ2klraTag::getNumberOfLayersOriginal | ( | ) | const |
Definition at line 180 of file ossimNitfJ2klraTag.cpp.
References m_layers_o, and ossimString::toUInt32().
Referenced by parseStream().
| ossim_uint32 ossimNitfJ2klraTag::getOriginNumber | ( | ) | const |
Definition at line 175 of file ossimNitfJ2klraTag.cpp.
References m_orig, and ossimString::toUInt32().
Referenced by getSizeInBytes(), and isParsed().
|
virtual |
Reimplemented from ossimNitfRegisteredTag.
Definition at line 98 of file ossimNitfJ2klraTag.cpp.
References getOriginNumber(), and m_layer.
Referenced by parseStream().
|
protected |
Definition at line 325 of file ossimNitfJ2klraTag.cpp.
References getOriginNumber().
Referenced by parseStream(), print(), and writeStream().
|
virtual |
Parse method.
| in | Stream to parse. |
Definition at line 37 of file ossimNitfJ2klraTag.cpp.
References BITRATE_SIZE, clearFields(), getNumberOfLayersOriginal(), getSizeInBytes(), isParsed(), LAYER_ID_SIZE, m_bands_o, m_layer, m_layers_o, m_levels_o, m_nbands_i, m_nlayers_i, m_nlevels_i, m_orig, NBANDS_I_SIZE, NBANDS_O_SIZE, NLAYERS_I_SIZE, NLAYERS_O_SIZE, NLEVELS_I_SIZE, NLEVELS_O_SIZE, ORIG_SIZE, and ossimNitfRegisteredTag::setTagLength().
|
virtual |
Print method that outputs a key/value type format adding prefix to keys.
| out | Stream to output to. |
| prefix | Prefix added to key like "image0."; |
Reimplemented from ossimNitfRegisteredTag.
Definition at line 142 of file ossimNitfJ2klraTag.cpp.
References ossimNitfRegisteredTag::getTagLength(), ossimNitfRegisteredTag::getTagName(), isParsed(), m_bands_o, m_layer, m_layers_o, m_levels_o, m_nbands_i, m_nlayers_i, m_nlevels_i, m_orig, and size.
| bool ossimNitfJ2klraTag::setBandsI | ( | ossim_uint32 | bands | ) |
Sets the number of bands in this image.
Range: 00001 to 16384
| levels |
Definition at line 264 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), m_nbands_i, NBANDS_I_SIZE, ossimString::size(), and ossimString::string().
| bool ossimNitfJ2klraTag::setBandsO | ( | ossim_uint32 | bands | ) |
Sets the number of bands in the original image.
Range: 00001 to 16384
| levels |
Definition at line 215 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), m_bands_o, NBANDS_O_SIZE, ossimString::size(), and ossimString::string().
| bool ossimNitfJ2klraTag::setLayerBitRate | ( | ossim_uint32 | index, |
| ossim_float64 | bitRate | ||
| ) |
Sets the bitrate from index.
Range: 00.000000 – 37.000000
| index | |
| id |
Definition at line 309 of file ossimNitfJ2klraTag.cpp.
References BITRATE_SIZE, ossimNitfCommon::convertToDoubleString(), m_layer, ossimString::size(), and ossimString::string().
Referenced by ossimKakaduCompressor::initialize().
| bool ossimNitfJ2klraTag::setLayerId | ( | ossim_uint32 | index, |
| ossim_uint32 | id | ||
| ) |
Sets the layer id for index.
Range: 001 to 999
| index | |
| id |
Definition at line 294 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), LAYER_ID_SIZE, m_layer, ossimString::size(), and ossimString::string().
Referenced by ossimKakaduCompressor::initialize().
| bool ossimNitfJ2klraTag::setLayersI | ( | ossim_uint32 | layers | ) |
Sets the number of layers in this image.
Range: 001 to 999
| levels |
Definition at line 279 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), m_nlayers_i, NLAYERS_I_SIZE, ossimString::size(), and ossimString::string().
| bool ossimNitfJ2klraTag::setLayersO | ( | ossim_uint32 | layers | ) |
Sets the number of layers in the original image.
Range: 001 to 999
| levels |
Definition at line 230 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), m_layer, m_layers_o, NLAYERS_O_SIZE, ossimString::size(), and ossimString::string().
Referenced by ossimKakaduCompressor::initialize().
| bool ossimNitfJ2klraTag::setLevelsI | ( | ossim_uint32 | levels | ) |
Sets the number of wavelet levels in this image.
Range: 00 to 32
| levels |
Definition at line 249 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), m_nlevels_i, NLEVELS_I_SIZE, ossimString::size(), and ossimString::string().
| bool ossimNitfJ2klraTag::setLevelsO | ( | ossim_uint32 | levels | ) |
Sets the number of wavelet levels in the original image.
Range: 00 to 32
| levels |
Definition at line 200 of file ossimNitfJ2klraTag.cpp.
References ossimNitfCommon::convertToUIntString(), m_levels_o, NLEVELS_O_SIZE, ossimString::size(), and ossimString::string().
Referenced by ossimKakaduCompressor::initialize().
| bool ossimNitfJ2klraTag::setOrigin | ( | ossim_uint32 | origin | ) |
Sets origin:
Range is 0 to 9
0 - Original NPJE 1 – Parsed NPJE 2 – Original EPJE 3 – Parsed EPJE* 4 - Original TPJE 5 - Parsed TPJE 6 - Original LPJE 7 - Parsed LPJE 8 – Original other 9 – Parsed other
| origin | 0 to 9 |
Definition at line 185 of file ossimNitfJ2klraTag.cpp.
References m_orig.
Referenced by ossimKakaduCompressor::initialize().
|
virtual |
Write method.
| out | Stream to write to. |
Definition at line 75 of file ossimNitfJ2klraTag.cpp.
References BITRATE_SIZE, isParsed(), LAYER_ID_SIZE, m_bands_o, m_layer, m_layers_o, m_levels_o, m_nbands_i, m_nlayers_i, m_nlevels_i, m_orig, NBANDS_I_SIZE, NBANDS_O_SIZE, NLAYERS_I_SIZE, NLAYERS_O_SIZE, NLEVELS_I_SIZE, NLEVELS_O_SIZE, ORIG_SIZE, and size.
|
protected |
FIELD: NBANDS_O required 5 bytes 00000 - 16384 Number of bands in original image.
Definition at line 256 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), parseStream(), print(), setBandsO(), and writeStream().
|
protected |
repeating fields
Definition at line 267 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), getSizeInBytes(), parseStream(), print(), setLayerBitRate(), setLayerId(), setLayersO(), and writeStream().
|
protected |
FIELD: NLAYERS_O required 3 bytes 000 - 999 Number of layers in original image.
Definition at line 264 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), getNumberOfLayersOriginal(), parseStream(), print(), setLayersO(), and writeStream().
|
protected |
FIELD: NLEVELS_O required 2 bytes 00 - 32 Number of wavelet levels in original image.
Definition at line 248 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), parseStream(), print(), setLevelsO(), and writeStream().
|
protected |
FIELD: NBANDS_I Conditional 5 bytes if ORIG=1, 3,or 9.
00000 = 16384 Number of bands in this image.
Definition at line 283 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), parseStream(), print(), setBandsI(), and writeStream().
|
protected |
FIELD: NLAYERS_I Conditional 3 bytes if ORIG=1, 3, or 9.
000 - 999 Number of Layers in this image.
Definition at line 291 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), parseStream(), print(), setLayersI(), and writeStream().
|
protected |
FIELD: NLEVELS_I Conditional 2 bytes if ORIG=1, 3, or 9.
00 - 32 Number of wavelet levels in this image.
Definition at line 275 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), parseStream(), print(), setLevelsI(), and writeStream().
|
protected |
FIELD: ORIG.
Required 1 byte.
0 - Original NPJE 1 – Parsed NPJE 2 – Original EPJE 3 – Parsed EPJE* 4 - Original TPJE 5 - Parsed TPJE 6 - Original LPJE 7 - Parsed LPJE 8 – Original other 9 – Parsed other
Original compressed data.
Definition at line 240 of file ossimNitfJ2klraTag.h.
Referenced by clearFields(), getOriginNumber(), parseStream(), print(), setOrigin(), and writeStream().
1.8.14