OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimCcfHead.h>
Private Member Functions | |
bool | parseV5CcfHeader (std::istream &is) |
bool | parseV6CcfHeader (std::istream &is) |
void | parseRadString () |
Additional Inherited Members | |
![]() | |
ossimErrorCode | theErrorStatus |
Definition at line 34 of file ossimCcfHead.h.
ossimCcfHead::ossimCcfHead | ( | ) |
Definition at line 30 of file ossimCcfHead.cpp.
ossimCcfHead::ossimCcfHead | ( | const char * | ccf_file | ) |
Definition at line 65 of file ossimCcfHead.cpp.
References ossimErrorCodes::OSSIM_ERROR, parseCcfHeader(), and ossimErrorStatusInterface::theErrorStatus.
ossimCcfHead::ossimCcfHead | ( | std::shared_ptr< ossim::istream > & | str, |
const std::string & | connectionString | ||
) |
Definition at line 112 of file ossimCcfHead.cpp.
References ossimErrorCodes::OSSIM_ERROR, parseCcfHeader(), and ossimErrorStatusInterface::theErrorStatus.
ossimCcfHead::~ossimCcfHead | ( | ) |
Definition at line 137 of file ossimCcfHead.cpp.
|
inline |
Returns the bytes per chip.
Definition at line 109 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
|
inline |
Returns the bytes per chunk.
Definition at line 104 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
|
inline |
Returns the number of pixels in a single band of a chip. Note: This is not in bytes but in pixels.
Definition at line 135 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
ossim_uint32 ossimCcfHead::chunksInLineDir | ( | ossim_uint32 | reduced_res_level | ) | const |
Definition at line 677 of file ossimCcfHead.cpp.
References highestReducedResSet(), ossimNotify(), ossimNotifyLevel_WARN, and theChunksInLineDir.
ossim_uint32 ossimCcfHead::chunksInSampleDir | ( | ossim_uint32 | reduced_res_level | ) | const |
Definition at line 697 of file ossimCcfHead.cpp.
References highestReducedResSet(), ossimNotify(), ossimNotifyLevel_WARN, and theChunksInSampleDir.
Referenced by ossimCcfTileSource::fillUcharBuffer().
|
inline |
Definition at line 138 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::initVerticesFromHeader().
|
inline |
Returns the highest available reduced resolution level. Zero based.
Definition at line 71 of file ossimCcfHead.h.
Referenced by chunksInLineDir(), chunksInSampleDir(), imageRect(), numberOfLines(), numberOfSamples(), and startOfData().
|
inline |
ossimIrect ossimCcfHead::imageRect | ( | ossim_uint32 | reduced_res_level | ) | const |
Returns the zero based image rectangle for the reduced resolution level passed in. Returns a rectangle of (0,0,0,0) if reduced_res_level is out of range.
Definition at line 737 of file ossimCcfHead.cpp.
References highestReducedResSet(), numberOfLines(), numberOfSamples(), ossimNotify(), and ossimNotifyLevel_WARN.
Referenced by ossimCcfTileSource::getImageRectangle(), and ossimCcfTileSource::getTile().
|
inline |
Returns the number of chips in line direction of a chunk.
Definition at line 119 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
|
inline |
Returns the lines per chip.
Definition at line 129 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
|
inline |
Returns the number of bands.
Definition at line 94 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), ossimCcfTileSource::fillUshortBuffer(), and ossimCcfTileSource::getNumberOfInputBands().
ossim_uint32 ossimCcfHead::numberOfLines | ( | ossim_uint32 | reduced_res_level | ) | const |
Definition at line 637 of file ossimCcfHead.cpp.
References highestReducedResSet(), ossimNotify(), ossimNotifyLevel_WARN, and theNumberOfLines.
Referenced by ossimCcfTileSource::getNumberOfLines(), and imageRect().
|
inline |
Definition at line 55 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::getNumberOfDecimationLevels().
ossim_uint32 ossimCcfHead::numberOfSamples | ( | ossim_uint32 | reduced_res_level | ) | const |
Definition at line 657 of file ossimCcfHead.cpp.
References highestReducedResSet(), ossimNotify(), ossimNotifyLevel_WARN, and theNumberOfSamples.
Referenced by ossimCcfTileSource::getNumberOfSamples(), and imageRect().
bool ossimCcfHead::parseCcfHeader | ( | const char * | ccf_file | ) |
Reads the ccf header and initializes data members. Returns true on successful read, false on error.
Definition at line 143 of file ossimCcfHead.cpp.
References ossim::StreamFactoryRegistry::instance(), ossimErrorCodes::OSSIM_ERROR, and ossimErrorStatusInterface::theErrorStatus.
Referenced by ossimCcfHead().
bool ossimCcfHead::parseCcfHeader | ( | std::shared_ptr< ossim::istream > & | str, |
const std::string & | connectionString | ||
) |
Definition at line 168 of file ossimCcfHead.cpp.
References m_ccfStr, m_connectionString, parseV5CcfHeader(), parseV6CcfHeader(), theFileType, and theVersionNumber.
|
private |
Parses the radiometry string and initializes "theNumberOfBands" and "thePixelType".
Definition at line 759 of file ossimCcfHead.cpp.
References ossimString::contains(), OSSIM_UCHAR, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, OSSIM_USHORT16, ossimNotify(), ossimNotifyLevel_WARN, theNumberOfBands, thePixelType, and theRadiometryString.
|
private |
Parses a version five header.
Definition at line 256 of file ossimCcfHead.cpp.
Referenced by parseCcfHeader().
|
private |
Parses a version six header.
Definition at line 407 of file ossimCcfHead.cpp.
Referenced by parseCcfHeader().
|
inline |
Returns the enumerated pixel type.
Definition at line 99 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillBuffer(), and ossimCcfTileSource::getOutputScalarType().
|
virtual |
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
Reimplemented from ossimErrorStatusInterface.
Definition at line 579 of file ossimCcfHead.cpp.
References ossimLookUpTable::getEntryString(), ossimScalarTypeLut::instance(), m_connectionString, ossimErrorStatusInterface::print(), theBytesPerChip, theBytesPerChunk, theBytesPerPixel, theChunksInLineDir, theChunksInSampleDir, theCompressionType, ossimErrorStatusInterface::theErrorStatus, theFileType, theFirstBandHeaderPointer, theLineChipsPerChunk, theLinesPerChip, theNumberOfBands, theNumberOfLines, theNumberOfRLevels, theNumberOfSamples, theNumberOfValidImageVertices, theOccupiedFlag, thePixelType, theRadiometryString, theRectInFuleImageStartSample, theRectInFuleImageStopSample, theRectInFullImageStartLine, theRectInFullImageStopLine, theSampleChipsPerChunk, theSamplesPerChip, theStartOfData, theValidImageVertices, and theVersionNumber.
|
inline |
|
inline |
Returns the number of chips in sample direction of a chunk.
Definition at line 114 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
|
inline |
Returns the samples per chip.
Definition at line 124 of file ossimCcfHead.h.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
std::streampos ossimCcfHead::startOfData | ( | ossim_uint32 | reduced_res_level | ) | const |
Definition at line 718 of file ossimCcfHead.cpp.
References highestReducedResSet(), ossimNotify(), ossimNotifyLevel_WARN, and theStartOfData.
Referenced by ossimCcfTileSource::fillUcharBuffer(), and ossimCcfTileSource::fillUshortBuffer().
|
private |
Definition at line 160 of file ossimCcfHead.h.
Referenced by parseCcfHeader().
|
private |
Definition at line 161 of file ossimCcfHead.h.
Referenced by parseCcfHeader(), and print().
|
private |
Definition at line 179 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 180 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 178 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 187 of file ossimCcfHead.h.
Referenced by chunksInLineDir(), and print().
|
private |
Definition at line 188 of file ossimCcfHead.h.
Referenced by chunksInSampleDir(), and print().
|
private |
Definition at line 181 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 164 of file ossimCcfHead.h.
Referenced by parseCcfHeader(), and print().
|
private |
Definition at line 176 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 168 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 166 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 162 of file ossimCcfHead.h.
Referenced by parseRadString(), and print().
|
private |
Definition at line 185 of file ossimCcfHead.h.
Referenced by numberOfLines(), and print().
|
private |
Definition at line 182 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 186 of file ossimCcfHead.h.
Referenced by numberOfSamples(), and print().
|
private |
Definition at line 174 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 183 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 163 of file ossimCcfHead.h.
Referenced by parseRadString(), and print().
|
private |
Definition at line 177 of file ossimCcfHead.h.
Referenced by parseRadString(), and print().
|
private |
Definition at line 171 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 173 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 170 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 172 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 169 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 167 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 184 of file ossimCcfHead.h.
Referenced by print(), and startOfData().
|
private |
Definition at line 175 of file ossimCcfHead.h.
Referenced by print().
|
private |
Definition at line 165 of file ossimCcfHead.h.
Referenced by parseCcfHeader(), and print().