OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimRpfFrame.h>
Public Member Functions | |
ossimRpfFrame () | |
~ossimRpfFrame () | |
std::ostream & | print (std::ostream &out, const std::string &prefix=std::string()) const |
print method that outputs a key/value type format adding prefix to keys. More... | |
ossimErrorCode | parseFile (const ossimFilename &filename, bool minimalParse=false) |
const ossimRpfHeader * | getRpfHeader () const |
bool | hasSubframeMaskTable () const |
const vector< vector< ossim_uint32 > > & | getSubFrameMask (ossim_uint32 spectralGroup) |
bool | fillSubFrameBuffer (ossim_uint8 *buffer, ossim_uint32 spectralGroup, ossim_uint32 row, ossim_uint32 col) const |
const ossimRpfCompressionSection * | getCompressionSection () const |
const vector< ossimRpfColorGrayscaleTable > & | getColorGrayscaleTable () const |
const ossimRpfColorConverterSubsection * | getColorConverterSubsection () const |
const ossimRpfAttributes * | getAttributes () const |
const ossimNitfFile * | getNitfFile () const |
ossimRefPtr< ossimRpfReplaceUpdateTable > | getRpfReplaceUpdateTable () const |
![]() | |
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 |
Private Member Functions | |
void | clearFields () |
void | deleteAll () |
ossimErrorCode | populateCoverageSection (std::istream &in) |
ossimErrorCode | populateCompressionSection (std::istream &in) |
ossimErrorCode | populateImageSection (std::istream &in) |
ossimErrorCode | populateAttributeSection (std::istream &in) |
ossimErrorCode | populateColorGrayscaleSection (std::istream &in) |
ossimErrorCode | populateMasks (std::istream &in) |
ossimErrorCode | populateReplaceUpdateTable (std::istream &in) |
Private Attributes | |
ossimRpfHeader * | theHeader |
ossimFilename | theFilename |
ossimRpfCoverageSection * | theCoverage |
ossimRpfAttributes * | theAttributes |
ossimRpfImageDescriptionSubheader * | theImageDescriptionSubheader |
ossimRpfMaskSubheader * | theMaskSubheader |
ossimRpfImageDisplayParameterSubheader * | theImageDisplayParameterSubheader |
ossimRpfCompressionSection * | theCompressionSection |
ossimRpfColorGrayscaleSubheader * | theColorGrayscaleSubheader |
ossimRpfColorConverterSubsection * | theColorConverterSubsection |
vector< ossimRpfColorGrayscaleTable > | theColorGrayscaleTable |
ossimRefPtr< ossimNitfFile > | theNitfFile |
vector< vector< vector< ossim_uint32 > > > | theSubframeMaskTable |
vector< vector< vector< ossim_uint32 > > > | theSubframeTransparencyMaskTable |
ossimRefPtr< ossimRpfReplaceUpdateTable > | theReplaceUpdateTable |
Holds table of "replace / update" records if present. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ossimRpfFrame &data) |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 38 of file ossimRpfFrame.h.
ossimRpfFrame::ossimRpfFrame | ( | ) |
Definition at line 53 of file ossimRpfFrame.cpp.
ossimRpfFrame::~ossimRpfFrame | ( | ) |
Definition at line 71 of file ossimRpfFrame.cpp.
References deleteAll().
|
private |
|
private |
Definition at line 424 of file ossimRpfFrame.cpp.
References theAttributes, theColorConverterSubsection, theColorGrayscaleSubheader, theCompressionSection, theCoverage, theHeader, theImageDescriptionSubheader, theImageDisplayParameterSubheader, theMaskSubheader, theNitfFile, and ossimRefPtr< T >::valid().
Referenced by ~ossimRpfFrame().
bool ossimRpfFrame::fillSubFrameBuffer | ( | ossim_uint8 * | buffer, |
ossim_uint32 | spectralGroup, | ||
ossim_uint32 | row, | ||
ossim_uint32 | col | ||
) | const |
Definition at line 341 of file ossimRpfFrame.cpp.
References ossimString::c_str(), ossimRpfLocationSection::getComponent(), ossimRpfImageDisplayParameterSubheader::getImageCodeLength(), ossimRpfHeader::getLocationSection(), ossimRpfImageDisplayParameterSubheader::getNumberOfImageCodesPerRow(), ossimRpfImageDisplayParameterSubheader::getNumberOfImageRows(), ossimRpfImageDescriptionSubheader::getNumberOfSubframesHorizontal(), hasSubframeMaskTable(), ossimRpfComponentLocationRecord::m_componentLocation, OSSIM_RPF_SPATIAL_DATA_SUBSECTION, OSSIM_RPF_ULONG_NULL, theFilename, theHeader, theImageDescriptionSubheader, theImageDisplayParameterSubheader, and theSubframeMaskTable.
Referenced by ossimRpfCacheTileSource::fillSubTileCadrg(), ossimCibCadrgTileSource::fillSubTileCadrg(), ossimRpfCacheTileSource::fillSubTileCib(), and ossimCibCadrgTileSource::fillSubTileCib().
|
inline |
Definition at line 88 of file ossimRpfFrame.h.
|
inline |
Definition at line 84 of file ossimRpfFrame.h.
|
inline |
Definition at line 80 of file ossimRpfFrame.h.
Referenced by ossimRpfCacheTileSource::fillSubTileCadrg(), ossimCibCadrgTileSource::fillSubTileCadrg(), ossimRpfCacheTileSource::fillSubTileCib(), ossimCibCadrgTileSource::fillSubTileCib(), ossimRpfCacheTileSource::populateLut(), and ossimCibCadrgTileSource::populateLut().
|
inline |
Definition at line 76 of file ossimRpfFrame.h.
Referenced by ossimRpfCacheTileSource::fillSubTileCadrg(), ossimCibCadrgTileSource::fillSubTileCadrg(), ossimRpfCacheTileSource::fillSubTileCib(), and ossimCibCadrgTileSource::fillSubTileCib().
|
inline |
Definition at line 92 of file ossimRpfFrame.h.
|
inline |
Definition at line 61 of file ossimRpfFrame.h.
ossimRefPtr< ossimRpfReplaceUpdateTable > ossimRpfFrame::getRpfReplaceUpdateTable | ( | ) | const |
Definition at line 1141 of file ossimRpfFrame.cpp.
References theReplaceUpdateTable.
|
inline |
Definition at line 65 of file ossimRpfFrame.h.
bool ossimRpfFrame::hasSubframeMaskTable | ( | ) | const |
Definition at line 330 of file ossimRpfFrame.cpp.
References ossimRpfImageDescriptionSubheader::isSubframeMaskTableOffsetNull(), and theImageDescriptionSubheader.
Referenced by fillSubFrameBuffer().
ossimErrorCode ossimRpfFrame::parseFile | ( | const ossimFilename & | filename, |
bool | minimalParse = false |
||
) |
Definition at line 234 of file ossimRpfFrame.cpp.
Referenced by ossimRpfCacheTileSource::fillTile(), ossimCibCadrgTileSource::fillTile(), ossimRpfCacheTileSource::populateLut(), ossimCibCadrgTileSource::populateLut(), and ossimCibCadrgTileSource::updatePropertiesToFirstValidFrame().
|
private |
Definition at line 601 of file ossimRpfFrame.cpp.
|
private |
Definition at line 499 of file ossimRpfFrame.cpp.
References ossimRpfHeader::getByteOrder(), ossimRpfColorGrayscaleOffsetRecord::getColorGrayscaleTableId(), ossimRpfColorGrayscaleOffsetRecord::getColorGrayscaleTableOffset(), ossimRpfLocationSection::getComponent(), ossimRpfHeader::getLocationSection(), ossimRpfHeader::getNewColorGrayscaleSubheader(), ossimRpfColorGrayscaleSubheader::getNumberOfColorConverterOffsetRecords(), ossimRpfColorGrayscaleOffsetRecord::getNumberOfColorGrayscaleRecords(), ossimRpfColorGrayscaleSubheader::getNumberOfColorGreyscaleOffsetRecords(), ossimRpfComponentLocationRecord::m_componentLocation, ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, OSSIM_RPF_COLOR_CONVERTER_SUBSECTION, OSSIM_RPF_COLORMAP_SUBSECTION, ossimRpfColorGrayscaleOffsetRecord::parseStream(), ossimRpfColorConverterSubsection::parseStream(), ossimRpfColorConverterSubsection::setNumberOfColorConverterOffsetRecords(), theColorConverterSubsection, theColorGrayscaleSubheader, theColorGrayscaleTable, and theHeader.
|
private |
Definition at line 488 of file ossimRpfFrame.cpp.
References ossimRpfHeader::getNewCompressionSection(), ossimErrorCodes::OSSIM_OK, theCompressionSection, and theHeader.
|
private |
Definition at line 477 of file ossimRpfFrame.cpp.
References ossimRpfHeader::getNewCoverageSection(), ossimErrorCodes::OSSIM_OK, theCoverage, and theHeader.
|
private |
Definition at line 568 of file ossimRpfFrame.cpp.
References ossimRpfHeader::getByteOrder(), ossimRpfImageDescriptionSubheader::getEndOffset(), ossimRpfHeader::getNewImageDescriptionSubheader(), ossimRpfHeader::getNewImageDisplayParameterSubheader(), ossimRpfImageDescriptionSubheader::getSubframeMaskTableOffset(), ossimRpfImageDescriptionSubheader::isSubframeMaskTableOffsetNull(), ossimErrorCodes::OSSIM_OK, ossimRpfMaskSubheader::parseStream(), theHeader, theImageDescriptionSubheader, theImageDisplayParameterSubheader, and theMaskSubheader.
|
private |
Definition at line 971 of file ossimRpfFrame.cpp.
References ossimRpfHeader::getByteOrder(), ossimRpfLocationSection::getComponent(), ossimRpfHeader::getLocationSection(), ossimRpfImageDescriptionSubheader::getNumberOfSpectralGroups(), ossimRpfImageDescriptionSubheader::getNumberOfSubframesHorizontal(), ossimRpfImageDescriptionSubheader::getNumberOfSubframesVertical(), ossimRpfImageDescriptionSubheader::getSubframeMaskTableOffset(), ossimEndian::getSystemEndianType(), ossimRpfImageDescriptionSubheader::getTransparencyMaskTableOffset(), ossimRpfImageDescriptionSubheader::isSubframeMaskTableOffsetNull(), ossimRpfImageDescriptionSubheader::isTransparencyMaskTableOffsetNull(), ossimRpfComponentLocationRecord::m_componentLocation, ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, OSSIM_RPF_MASK_SUBSECTION, ossimEndian::swap(), theHeader, theImageDescriptionSubheader, theSubframeMaskTable, and theSubframeTransparencyMaskTable.
|
private |
Definition at line 1081 of file ossimRpfFrame.cpp.
References ossimRpfReplaceUpdateTable::addRecord(), ossimRpfReplaceUpdateTable::clear(), ossimRpfHeader::getByteOrder(), ossimRpfLocationSection::getComponent(), ossimRpfHeader::getLocationSection(), ossimRpfReplaceUpdateSectionSubheader::getNumberOfRecords(), ossimRpfLocationSection::hasComponent(), ossimRpfComponentLocationRecord::m_componentLocation, ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, OSSIM_RPF_REPLACE_UPDATE_SECTION_SUBHEADER, ossimRpfReplaceUpdateRecord::parseStream(), ossimRpfReplaceUpdateSectionSubheader::parseStream(), theHeader, theReplaceUpdateTable, and ossimRefPtr< T >::valid().
std::ostream & ossimRpfFrame::print | ( | std::ostream & | out, |
const std::string & | prefix = std::string() |
||
) | const |
print method that outputs a key/value type format adding prefix to keys.
out | String to output to. |
prefix | This will be prepended to key. e.g. Where prefix = "nitf." and key is "file_name" key becomes: "nitf.file_name:" |
Definition at line 76 of file ossimRpfFrame.cpp.
Referenced by operator<<().
|
friend |
Definition at line 46 of file ossimRpfFrame.cpp.
|
private |
This will hold the attributes of this frame.
Definition at line 134 of file ossimRpfFrame.h.
Referenced by deleteAll().
|
private |
Definition at line 166 of file ossimRpfFrame.h.
Referenced by deleteAll(), and populateColorGrayscaleSection().
|
private |
If present, it will hold the color grayscale subheader.
Definition at line 161 of file ossimRpfFrame.h.
Referenced by deleteAll(), and populateColorGrayscaleSection().
|
private |
Definition at line 171 of file ossimRpfFrame.h.
Referenced by populateColorGrayscaleSection().
|
private |
Will hold a pointer to the compression information section.
Definition at line 156 of file ossimRpfFrame.h.
Referenced by deleteAll(), and populateCompressionSection().
|
private |
This will hold the coverage.
Definition at line 129 of file ossimRpfFrame.h.
Referenced by deleteAll(), and populateCoverageSection().
|
private |
The filename is set if its a successful open.
Definition at line 124 of file ossimRpfFrame.h.
Referenced by clearFields(), and fillSubFrameBuffer().
|
private |
The header will be instantiated during the opening of the frame file.
Definition at line 119 of file ossimRpfFrame.h.
Referenced by deleteAll(), fillSubFrameBuffer(), populateColorGrayscaleSection(), populateCompressionSection(), populateCoverageSection(), populateImageSection(), populateMasks(), and populateReplaceUpdateTable().
|
private |
This is the subheader for the image. It will have some general information about the image.
Definition at line 140 of file ossimRpfFrame.h.
Referenced by deleteAll(), fillSubFrameBuffer(), hasSubframeMaskTable(), populateImageSection(), and populateMasks().
|
private |
This is the subheader for the display parameters for this frame.
Definition at line 151 of file ossimRpfFrame.h.
Referenced by deleteAll(), fillSubFrameBuffer(), and populateImageSection().
|
private |
This is the mask subheader.
Definition at line 145 of file ossimRpfFrame.h.
Referenced by deleteAll(), and populateImageSection().
|
private |
Definition at line 176 of file ossimRpfFrame.h.
Referenced by deleteAll().
|
private |
Holds table of "replace / update" records if present.
Definition at line 203 of file ossimRpfFrame.h.
Referenced by getRpfReplaceUpdateTable(), and populateReplaceUpdateTable().
|
private |
We have a 3-D array. For the most part the numberof spectral groups should be one. The indexes are as follows:
theSubframeMasKTable[spectralGroup][row][col]
It will hold RPF_NULL(0xffffffff) if the subframe does not exist and it will hold an offset value from the start of the [spatial data section] to the first byte of the subframe table.
Definition at line 188 of file ossimRpfFrame.h.
Referenced by fillSubFrameBuffer(), and populateMasks().
|
private |
We have a 3-D array. For the most part the numberof spectral groups should be one. The indexes are as follows:
theSubframeTransparencyMaskTable[spectralGroup][row][col]
It will hold RPF_NULL(0xffffffff) if the subframe does not exist and it will hold an offset value from the start of the [spatial data section] to the first byte of the subframe table.
Definition at line 200 of file ossimRpfFrame.h.
Referenced by populateMasks().