OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNitfBlockaTag.h>
Public Types | |
enum | { BLOCK_INSTANCE_SIZE = 2, N_GRAY_SIZE = 5, L_LINES_SIZE = 5, LAYOVER_ANGLE_SIZE = 3, SHADOW_ANGLE_SIZE = 3, FIELD_6_SIZE = 16, FRLC_LOC_SIZE = 21, LRLC_LOC_SIZE = 21, LRFC_LOC_SIZE = 21, FRFC_LOC_SIZE = 21, FIELD_11_SIZE = 5 } |
Public Member Functions | |
ossimNitfBlockaTag () | |
default constructor More... | |
virtual void | parseStream (ossim::istream &in) |
Parse method. More... | |
virtual void | writeStream (ossim::ostream &out) |
Write method. More... | |
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... | |
void | setBlockInstance (ossim_uint32 block) |
ossimString | getBlockInstance () const |
void | setNGray (ossim_uint32 grayCount) |
ossimString | getNGray () const |
void | setLLines (ossim_uint32 lines) |
ossimString | getLLines () const |
void | setLayoverAngle (ossim_uint32 angle) |
ossimString | getLayoverAngle () const |
void | setShadowAngle (ossim_uint32 angle) |
ossimString | getShadowAngle () const |
void | setFrlcLoc (const ossimDpt &pt) |
Convert latitude and logitude to theFrlcLoc string. More... | |
ossimString | getFrlcLoc () const |
void | getFrlcLoc (ossimDpt &pt) const |
void | setLrlcLoc (const ossimDpt &pt) |
Convert latitude and logitude to theLrlcLoc string. More... | |
ossimString | getLrlcLoc () const |
void | getLrlcLoc (ossimDpt &pt) const |
void | setLrfcLoc (const ossimDpt &pt) |
Convert latitude and logitude to theLrfcLoc string. More... | |
ossimString | getLrfcLoc () const |
void | getLrfcLoc (ossimDpt &pt) const |
void | setFrfcLoc (const ossimDpt &pt) |
Convert latitude and logitude to theFrfcLoc string. More... | |
ossimString | getFrfcLoc () const |
void | getFrfcLoc (ossimDpt &pt) const |
![]() | |
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 | getSizeInBytes () const |
Returns the length in bytes of the tag from the CEL or REL field. More... | |
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 | 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 |
![]() | |
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) |
![]() | |
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 |
![]() | |
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 | |
void | converLocStringToPt (const ossimString &locationString, ossimDpt &pt) const |
Parses location string and initializes pt with result. More... | |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
char | theBlockInstance [BLOCK_INSTANCE_SIZE+1] |
FIELD: BLOCK_INSTANCE. More... | |
char | theNGray [N_GRAY_SIZE+1] |
FIELD: N_GRAY. More... | |
char | theLLines [L_LINES_SIZE+1] |
FIELD: L_LINES. More... | |
char | theLayoverAngle [LAYOVER_ANGLE_SIZE+1] |
FIELD: LAYOVER_ANGLE. More... | |
char | theShadowAngle [SHADOW_ANGLE_SIZE+1] |
FIELD: SHADOW_ANGLE. More... | |
char | theField6 [FIELD_6_SIZE+1] |
FIELD: FIELD_6. More... | |
char | theFrlcLoc [FRLC_LOC_SIZE+1] |
FIELD: FRLC_LOC. More... | |
char | theLrlcLoc [LRLC_LOC_SIZE+1] |
FIELD: LRLC_LOC. More... | |
char | theLrfcLoc [LRFC_LOC_SIZE+1] |
FIELD: LRFC_LOC. More... | |
char | theFrfcLoc [FRFC_LOC_SIZE+1] |
FIELD: FRFC_LOC. More... | |
char | theField11 [FIELD_11_SIZE+1] |
FIELD: FIELD_11. More... | |
![]() | |
std::string | m_tagName |
ossim_uint32 | m_tagLength |
Definition at line 25 of file ossimNitfBlockaTag.h.
anonymous enum |
Enumerator | |
---|---|
BLOCK_INSTANCE_SIZE | |
N_GRAY_SIZE | |
L_LINES_SIZE | |
LAYOVER_ANGLE_SIZE | |
SHADOW_ANGLE_SIZE | |
FIELD_6_SIZE | |
FRLC_LOC_SIZE | |
LRLC_LOC_SIZE | |
LRFC_LOC_SIZE | |
FRFC_LOC_SIZE | |
FIELD_11_SIZE |
Definition at line 28 of file ossimNitfBlockaTag.h.
ossimNitfBlockaTag::ossimNitfBlockaTag | ( | ) |
default constructor
Definition at line 29 of file ossimNitfBlockaTag.cpp.
References clearFields().
|
virtual |
Clears all string fields within the record to some default nothingness.
Definition at line 68 of file ossimNitfBlockaTag.cpp.
References BLOCK_INSTANCE_SIZE, FIELD_11_SIZE, FIELD_6_SIZE, FRFC_LOC_SIZE, FRLC_LOC_SIZE, L_LINES_SIZE, LAYOVER_ANGLE_SIZE, LRFC_LOC_SIZE, LRLC_LOC_SIZE, N_GRAY_SIZE, SHADOW_ANGLE_SIZE, theBlockInstance, theField11, theField6, theFrfcLoc, theFrlcLoc, theLayoverAngle, theLLines, theLrfcLoc, theLrlcLoc, theNGray, and theShadowAngle.
Referenced by ossimNitfBlockaTag(), and parseStream().
|
protected |
Parses location string and initializes pt with result.
locationString | String to parse. |
pt | Point to initialize. |
Definition at line 279 of file ossimNitfBlockaTag.cpp.
References ossimDms::getDegrees(), ossimDms::setDegrees(), ossimString::size(), ossimString::toDouble(), ossimDpt::x, and ossimDpt::y.
Referenced by getFrfcLoc(), getFrlcLoc(), getLrfcLoc(), and getLrlcLoc().
ossimString ossimNitfBlockaTag::getBlockInstance | ( | ) | const |
Definition at line 145 of file ossimNitfBlockaTag.cpp.
References theBlockInstance.
ossimString ossimNitfBlockaTag::getFrfcLoc | ( | ) | const |
Definition at line 268 of file ossimNitfBlockaTag.cpp.
References theFrfcLoc.
Referenced by print().
void ossimNitfBlockaTag::getFrfcLoc | ( | ossimDpt & | pt | ) | const |
pt | Ground point to initialize with location. |
Definition at line 273 of file ossimNitfBlockaTag.cpp.
References converLocStringToPt(), and theFrfcLoc.
ossimString ossimNitfBlockaTag::getFrlcLoc | ( | ) | const |
Definition at line 217 of file ossimNitfBlockaTag.cpp.
References theFrlcLoc.
Referenced by print().
void ossimNitfBlockaTag::getFrlcLoc | ( | ossimDpt & | pt | ) | const |
pt | Ground point to initialize with location. |
Definition at line 222 of file ossimNitfBlockaTag.cpp.
References converLocStringToPt(), and theFrlcLoc.
ossimString ossimNitfBlockaTag::getLayoverAngle | ( | ) | const |
Definition at line 191 of file ossimNitfBlockaTag.cpp.
References theLayoverAngle.
ossimString ossimNitfBlockaTag::getLLines | ( | ) | const |
Definition at line 176 of file ossimNitfBlockaTag.cpp.
References theLLines.
ossimString ossimNitfBlockaTag::getLrfcLoc | ( | ) | const |
Definition at line 251 of file ossimNitfBlockaTag.cpp.
References theLrfcLoc.
Referenced by print().
void ossimNitfBlockaTag::getLrfcLoc | ( | ossimDpt & | pt | ) | const |
pt | Ground point to initialize with location. |
Definition at line 256 of file ossimNitfBlockaTag.cpp.
References converLocStringToPt(), and theLrfcLoc.
ossimString ossimNitfBlockaTag::getLrlcLoc | ( | ) | const |
Definition at line 234 of file ossimNitfBlockaTag.cpp.
References theLrlcLoc.
Referenced by print().
void ossimNitfBlockaTag::getLrlcLoc | ( | ossimDpt & | pt | ) | const |
pt | Ground point to initialize with location. |
Definition at line 239 of file ossimNitfBlockaTag.cpp.
References converLocStringToPt(), and theLrlcLoc.
ossimString ossimNitfBlockaTag::getNGray | ( | ) | const |
Definition at line 161 of file ossimNitfBlockaTag.cpp.
References theNGray.
ossimString ossimNitfBlockaTag::getShadowAngle | ( | ) | const |
Definition at line 206 of file ossimNitfBlockaTag.cpp.
References theShadowAngle.
|
virtual |
Parse method.
in | Stream to parse. |
Implements ossimNitfRegisteredTag.
Definition at line 35 of file ossimNitfBlockaTag.cpp.
References BLOCK_INSTANCE_SIZE, clearFields(), FIELD_11_SIZE, FIELD_6_SIZE, FRFC_LOC_SIZE, FRLC_LOC_SIZE, L_LINES_SIZE, LAYOVER_ANGLE_SIZE, LRFC_LOC_SIZE, LRLC_LOC_SIZE, N_GRAY_SIZE, SHADOW_ANGLE_SIZE, theBlockInstance, theField11, theField6, theFrfcLoc, theFrlcLoc, theLayoverAngle, theLLines, theLrfcLoc, theLrlcLoc, theNGray, and theShadowAngle.
|
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 95 of file ossimNitfBlockaTag.cpp.
References getFrfcLoc(), getFrlcLoc(), getLrfcLoc(), getLrlcLoc(), ossimNitfRegisteredTag::getTagLength(), ossimNitfRegisteredTag::getTagName(), theBlockInstance, theField11, theField6, theFrfcLoc, theFrlcLoc, theLayoverAngle, theLLines, theLrfcLoc, theLrlcLoc, theNGray, and theShadowAngle.
void ossimNitfBlockaTag::setBlockInstance | ( | ossim_uint32 | block | ) |
block | number to set block instance to. Valid range 01 to 99. |
Definition at line 134 of file ossimNitfBlockaTag.cpp.
References BLOCK_INSTANCE_SIZE, ossimString::c_str(), ossimNitfCommon::convertToIntString(), and theBlockInstance.
Referenced by ossimNitfWriterBase::addBlockaTag().
void ossimNitfBlockaTag::setFrfcLoc | ( | const ossimDpt & | pt | ) |
Convert latitude and logitude to theFrfcLoc string.
pt | Ground point of first row, first column. |
longitude | Longitude portion in decimal degrees. |
Definition at line 262 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToDdLatLonLocString(), FRFC_LOC_SIZE, and theFrfcLoc.
Referenced by ossimNitfWriterBase::addBlockaTag().
void ossimNitfBlockaTag::setFrlcLoc | ( | const ossimDpt & | pt | ) |
Convert latitude and logitude to theFrlcLoc string.
pt | Ground point of first row, last column. |
longitude | Longitude portion in decimal degrees. |
Definition at line 211 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToDdLatLonLocString(), FRLC_LOC_SIZE, and theFrlcLoc.
Referenced by ossimNitfWriterBase::addBlockaTag().
void ossimNitfBlockaTag::setLayoverAngle | ( | ossim_uint32 | angle | ) |
angle | Value to set theLayoverAngle to. |
Valid range: 000 to 359 or spaces
Definition at line 181 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToUIntString(), LAYOVER_ANGLE_SIZE, and theLayoverAngle.
void ossimNitfBlockaTag::setLLines | ( | ossim_uint32 | lines | ) |
lines | Number of rows. |
Valid range: 0 to 99999
Definition at line 166 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToUIntString(), L_LINES_SIZE, and theLLines.
Referenced by ossimNitfWriterBase::addBlockaTag().
void ossimNitfBlockaTag::setLrfcLoc | ( | const ossimDpt & | pt | ) |
Convert latitude and logitude to theLrfcLoc string.
pt | Ground point of last row, first column. |
longitude | Longitude portion in decimal degrees. |
Definition at line 245 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToDdLatLonLocString(), LRFC_LOC_SIZE, and theLrfcLoc.
Referenced by ossimNitfWriterBase::addBlockaTag().
void ossimNitfBlockaTag::setLrlcLoc | ( | const ossimDpt & | pt | ) |
Convert latitude and logitude to theLrlcLoc string.
pt | Ground point of last row, last column. |
longitude | Longitude portion in decimal degrees. |
Definition at line 228 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToDdLatLonLocString(), LRLC_LOC_SIZE, and theLrlcLoc.
Referenced by ossimNitfWriterBase::addBlockaTag().
void ossimNitfBlockaTag::setNGray | ( | ossim_uint32 | grayCount | ) |
grayCount | Count of gray fill. |
Valid range: 0 to 99999
Definition at line 150 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToUIntString(), N_GRAY_SIZE, and theNGray.
void ossimNitfBlockaTag::setShadowAngle | ( | ossim_uint32 | angle | ) |
angle | Value to set theLayoverAngle to. |
Valid range: 000 to 359 or spaces
Definition at line 196 of file ossimNitfBlockaTag.cpp.
References ossimString::c_str(), ossimNitfCommon::convertToUIntString(), SHADOW_ANGLE_SIZE, and theShadowAngle.
|
virtual |
Write method.
out | Stream to write to. |
Implements ossimNitfRegisteredTag.
Definition at line 53 of file ossimNitfBlockaTag.cpp.
References BLOCK_INSTANCE_SIZE, FIELD_11_SIZE, FIELD_6_SIZE, FRFC_LOC_SIZE, FRLC_LOC_SIZE, L_LINES_SIZE, LAYOVER_ANGLE_SIZE, LRFC_LOC_SIZE, LRLC_LOC_SIZE, N_GRAY_SIZE, SHADOW_ANGLE_SIZE, theBlockInstance, theField11, theField6, theFrfcLoc, theFrlcLoc, theLayoverAngle, theLLines, theLrfcLoc, theLrlcLoc, theNGray, and theShadowAngle.
|
protected |
FIELD: BLOCK_INSTANCE.
required 2 byte field
01 to 99
Block number of the image.
Definition at line 205 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getBlockInstance(), parseStream(), print(), setBlockInstance(), and writeStream().
|
protected |
FIELD: FIELD_11.
Reserved field of 5 bytes containing: 010.0
Definition at line 331 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: FIELD_6.
Reserved field of 16 spaces.
Definition at line 264 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), parseStream(), print(), and writeStream().
|
protected |
FIELD: FRFC_LOC.
required 21 byte field
XDDMMSS.SSYDDDMMSS.SS OR +-dd.dddddd+-ddd.dddddd OR 21 spaces
Location of the first row, first column of the image block.
Definition at line 324 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getFrfcLoc(), parseStream(), print(), setFrfcLoc(), and writeStream().
|
protected |
FIELD: FRLC_LOC.
required 21 byte field
XDDMMSS.SSYDDDMMSS.SS OR +-dd.dddddd+-ddd.dddddd OR 21 spaces
Location of the first row, last column of the image block.
Definition at line 279 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getFrlcLoc(), parseStream(), print(), setFrlcLoc(), and writeStream().
|
protected |
FIELD: LAYOVER_ANGLE.
required 3 byte field
000 to 359 or spaces
SAR: Angle between the first row of pixels and the layover direction in the image, measured in a clockwise direction.
EO-IR: spaces
Definition at line 243 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getLayoverAngle(), parseStream(), print(), setLayoverAngle(), and writeStream().
|
protected |
FIELD: L_LINES.
required 5 byte field
00000 to 99999
Row count.
Definition at line 229 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getLLines(), parseStream(), print(), setLLines(), and writeStream().
|
protected |
FIELD: LRFC_LOC.
required 21 byte field
XDDMMSS.SSYDDDMMSS.SS OR +-dd.dddddd+-ddd.dddddd OR 21 spaces
Location of the last row, first column of the image block.
Definition at line 309 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getLrfcLoc(), parseStream(), print(), setLrfcLoc(), and writeStream().
|
protected |
FIELD: LRLC_LOC.
required 21 byte field
XDDMMSS.SSYDDDMMSS.SS OR +-dd.dddddd+-ddd.dddddd OR 21 spaces
Location of the last row, last column of the image block.
Definition at line 294 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getLrlcLoc(), parseStream(), print(), setLrlcLoc(), and writeStream().
|
protected |
FIELD: N_GRAY.
required 5 byte field
00000 to 99999
SAR The number of gray fill pixels.
EO-IR: 00000
Definition at line 218 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getNGray(), parseStream(), print(), setNGray(), and writeStream().
|
protected |
FIELD: SHADOW_ANGLE.
required 3 byte field
000 to 359 or spaces
SAR: Angle between the first row of pixels and the radar shadow in the image, measured in a clockwase direction.
EO-IR: spaces
Definition at line 257 of file ossimNitfBlockaTag.h.
Referenced by clearFields(), getShadowAngle(), parseStream(), print(), setShadowAngle(), and writeStream().