OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimRpfTocEntry.h>
Public Member Functions | |
ossimRpfTocEntry () | |
ossimErrorCode | parseStream (std::istream &in, ossimByteOrder byteOrder) |
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... | |
void | setEntry (const ossimRpfFrameEntry &entry, long row, long col) |
bool | getEntry (long row, long col, ossimRpfFrameEntry &result) const |
ossimString | getProductType () const |
ossim_uint32 | getNumberOfFramesHorizontal () const |
ossim_uint32 | getNumberOfFramesVertical () const |
ossim_uint32 | getNumberOfLines () const |
ossim_uint32 | getNumberOfSamples () const |
ossim_uint32 | getNumberOfBands () const |
void | getBoundingRect (ossimIrect &rect) const |
Get the bounding rect of entry. More... | |
const ossimRpfBoundaryRectRecord & | getBoundaryInformation () const |
bool | isEmpty () const |
ossimRefPtr< ossimImageGeometry > | getImageGeometry () const |
Returns the image geometry object associated with this tile source or NULL if non defined. More... | |
void | getDecimalDegreesPerPixel (ossimDpt &scale) const |
Get the scale in decimal degrees per pixel. More... | |
void | getMetersPerPixel (ossimDpt &scale) const |
Get the scale in meters per pixel. More... | |
Private Member Functions | |
void | allocateFrameEntryArray () |
Private Attributes | |
ossimRpfBoundaryRectRecord | theBoundaryInformation |
ossim_uint32 | theNumSamples |
std::vector< std::vector< ossimRpfFrameEntry > > | theFrameEntryArray |
More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ossimRpfTocEntry &data) |
Definition at line 27 of file ossimRpfTocEntry.h.
ossimRpfTocEntry::ossimRpfTocEntry | ( | ) |
Definition at line 32 of file ossimRpfTocEntry.cpp.
|
private |
Definition at line 270 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getNumberOfFramesHorizontal(), ossimRpfBoundaryRectRecord::getNumberOfFramesVertical(), theBoundaryInformation, and theFrameEntryArray.
Referenced by parseStream().
const ossimRpfBoundaryRectRecord & ossimRpfTocEntry::getBoundaryInformation | ( | ) | const |
Definition at line 122 of file ossimRpfTocEntry.cpp.
References theBoundaryInformation.
Referenced by ossimCibCadrgTileSource::getProductEntryList(), ossimCibCadrgTileSource::getProductScale(), ossimCibCadrgTileSource::getProductScaleList(), and ossimCibCadrgTileSource::setEntryToRender().
void ossimRpfTocEntry::getBoundingRect | ( | ossimIrect & | rect | ) | const |
Get the bounding rect of entry.
rect | Gets initialized with rect. |
Definition at line 117 of file ossimRpfTocEntry.cpp.
References getNumberOfLines(), and getNumberOfSamples().
void ossimRpfTocEntry::getDecimalDegreesPerPixel | ( | ossimDpt & | scale | ) | const |
Get the scale in decimal degrees per pixel.
Definition at line 247 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getCoverage(), ossimRpfCoverageSection::getHorizontalInterval(), ossimRpfCoverageSection::getLrLat(), getNumberOfLines(), getNumberOfSamples(), ossimRpfCoverageSection::getUlLat(), ossimRpfCoverageSection::getUlLon(), ossimRpfCoverageSection::getUrLon(), ossimRpfCoverageSection::getVerticalInterval(), theBoundaryInformation, ossimDpt::x, and ossimDpt::y.
Referenced by getImageGeometry(), and parseStream().
bool ossimRpfTocEntry::getEntry | ( | long | row, |
long | col, | ||
ossimRpfFrameEntry & | result | ||
) | const |
Definition at line 140 of file ossimRpfTocEntry.cpp.
References theFrameEntryArray.
Referenced by ossimRpfToc::getFirstEntry(), ossimCibCadrgTileSource::getIntersectingEntries(), ossimRpfToc::getRpfFrameEntry(), ossimCibCadrgTileSource::populateLut(), and ossimCibCadrgTileSource::updatePropertiesToFirstValidFrame().
ossimRefPtr< ossimImageGeometry > ossimRpfTocEntry::getImageGeometry | ( | ) | const |
Returns the image geometry object associated with this tile source or NULL if non defined.
The geometry contains full-to-local image transform as well as projection (image-to-world).
Definition at line 194 of file ossimRpfTocEntry.cpp.
References ossimRefPtr< T >::get(), ossimRpfBoundaryRectRecord::getCoverage(), getDecimalDegreesPerPixel(), ossimRpfCoverageSection::getLlLat(), ossimRpfCoverageSection::getUlLat(), ossimRpfCoverageSection::getUlLon(), ossimRpfBoundaryRectRecord::getZone(), ossimGpt::lon, ossimMapProjection::setDecimalDegreesPerPixel(), ossimMapProjection::setOrigin(), ossimImageGeometry::setProjection(), ossimMapProjection::setUlTiePoints(), and theBoundaryInformation.
Referenced by ossimCibCadrgTileSource::getImageGeometry().
void ossimRpfTocEntry::getMetersPerPixel | ( | ossimDpt & | scale | ) | const |
Get the scale in meters per pixel.
Definition at line 264 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getCoverage(), ossimRpfCoverageSection::getHorizontalResolution(), ossimRpfCoverageSection::getVerticalResolution(), theBoundaryInformation, ossimDpt::x, and ossimDpt::y.
ossim_uint32 ossimRpfTocEntry::getNumberOfBands | ( | ) | const |
Definition at line 102 of file ossimRpfTocEntry.cpp.
References getProductType(), ossimString::trim(), and ossimString::upcase().
ossim_uint32 ossimRpfTocEntry::getNumberOfFramesHorizontal | ( | ) | const |
returns how many subimges or frames exist in the horizontal direction.
Definition at line 82 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getNumberOfFramesHorizontal(), and theBoundaryInformation.
Referenced by ossimRpfToc::getFirstEntry(), ossimRpfToc::getNumberOfFramesHorizontal(), ossimCibCadrgTileSource::populateLut(), and ossimCibCadrgTileSource::updatePropertiesToFirstValidFrame().
ossim_uint32 ossimRpfTocEntry::getNumberOfFramesVertical | ( | ) | const |
returns how many subimges or frames exist in the vertical direction.
Definition at line 87 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getNumberOfFramesVertical(), and theBoundaryInformation.
Referenced by ossimRpfToc::getFirstEntry(), ossimCibCadrgTileSource::getIntersectingEntries(), ossimRpfToc::getNumberOfFramesVertical(), ossimCibCadrgTileSource::populateLut(), and ossimCibCadrgTileSource::updatePropertiesToFirstValidFrame().
ossim_uint32 ossimRpfTocEntry::getNumberOfLines | ( | ) | const |
Definition at line 92 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getNumberOfFramesVertical(), and theBoundaryInformation.
Referenced by getBoundingRect(), getDecimalDegreesPerPixel(), and ossimCibCadrgTileSource::setTocEntryToRender().
ossim_uint32 ossimRpfTocEntry::getNumberOfSamples | ( | ) | const |
Definition at line 97 of file ossimRpfTocEntry.cpp.
References theNumSamples.
Referenced by getBoundingRect(), getDecimalDegreesPerPixel(), and ossimCibCadrgTileSource::setTocEntryToRender().
ossimString ossimRpfTocEntry::getProductType | ( | ) | const |
Definition at line 163 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::getProductType(), and theBoundaryInformation.
Referenced by getNumberOfBands(), and ossimCibCadrgTileSource::setEntryToRender().
bool ossimRpfTocEntry::isEmpty | ( | ) | const |
If there is an entry and all the files don't exist we will return true.
Definition at line 172 of file ossimRpfTocEntry.cpp.
References size, and theFrameEntryArray.
Referenced by ossimCibCadrgTileSource::getProductEntryList().
ossimErrorCode ossimRpfTocEntry::parseStream | ( | std::istream & | in, |
ossimByteOrder | byteOrder | ||
) |
Definition at line 37 of file ossimRpfTocEntry.cpp.
References allocateFrameEntryArray(), ossim::byteOrder(), getDecimalDegreesPerPixel(), ossimRpfBoundaryRectRecord::getNumberOfFramesHorizontal(), ossimErrorCodes::OSSIM_OK, ossimRpfBoundaryRectRecord::parseStream(), theBoundaryInformation, theNumSamples, and ossimDpt::x.
std::ostream & ossimRpfTocEntry::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 60 of file ossimRpfTocEntry.cpp.
References ossimRpfBoundaryRectRecord::print(), theBoundaryInformation, and theFrameEntryArray.
Referenced by operator<<().
void ossimRpfTocEntry::setEntry | ( | const ossimRpfFrameEntry & | entry, |
long | row, | ||
long | col | ||
) |
Definition at line 127 of file ossimRpfTocEntry.cpp.
References theFrameEntryArray.
|
friend |
Definition at line 25 of file ossimRpfTocEntry.cpp.
|
private |
Definition at line 108 of file ossimRpfTocEntry.h.
Referenced by allocateFrameEntryArray(), getBoundaryInformation(), getDecimalDegreesPerPixel(), getImageGeometry(), getMetersPerPixel(), getNumberOfFramesHorizontal(), getNumberOfFramesVertical(), getNumberOfLines(), getProductType(), parseStream(), and print().
|
private |
May be less than actual image width in case of > 360 deg wrap condition. (OLK 10/10)
Definition at line 110 of file ossimRpfTocEntry.h.
Referenced by allocateFrameEntryArray(), getEntry(), isEmpty(), print(), and setEntry().
|
private |
Definition at line 109 of file ossimRpfTocEntry.h.
Referenced by getNumberOfSamples(), and parseStream().