OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimLasHdr.h>
Public Member Functions | |
ossimLasHdr () | |
ossimLasHdr (const ossimLasHdr &hdr) | |
const ossimLasHdr & | operator= (const ossimLasHdr &hdr) |
~ossimLasHdr () | |
bool | checkSignature (std::istream &in) const |
Checks for LASF in first four bytes. More... | |
void | readStream (std::istream &in) |
Method to initialize from input stream. More... | |
void | writeStream (std::ostream &out) |
Writes header to stream. More... | |
std::ostream & | print (std::ostream &out) const |
print method. More... | |
void | getKeywordlist (ossimKeywordlist &kwl) const |
bool | getGpsTimeTypeBit () const |
bool | getWaveforDataPacketsInternalBit () const |
bool | getWaveforDataPacketsExternalBit () const |
bool | getReturnsSyntheticallyGeneratedBit () const |
bool | getWktBit () const |
std::string | getProjectIdGuid () const |
std::string | getVersion () const |
std::string | getSystemIndentifier () const |
std::string | getGeneratingSoftware () const |
ossim_uint16 | getHeaderSize () const |
ossim_uint32 | getOffsetToPointData () const |
ossim_uint32 | getNumberOfVlrs () const |
ossim_uint8 | getPointDataFormatId () const |
ossim_uint64 | getNumberOfPoints () const |
ossim_uint64 | getNumberOfPoints (ossim_uint32 entry) const |
Gets number of points for entry where entry is synonymous returns. More... | |
const ossim_float64 & | getScaleFactorX () const |
const ossim_float64 & | getScaleFactorY () const |
const ossim_float64 & | getScaleFactorZ () const |
const ossim_float64 & | getOffsetX () const |
const ossim_float64 & | getOffsetY () const |
const ossim_float64 & | getOffsetZ () const |
const ossim_float64 & | getMinX () const |
const ossim_float64 & | getMinY () const |
const ossim_float64 & | getMinZ () const |
const ossim_float64 & | getMaxX () const |
const ossim_float64 & | getMaxY () const |
const ossim_float64 & | getMaxZ () const |
Private Member Functions | |
void | swap () |
Performs a swap if system byte order is not little endian. More... | |
bool | versionGreaterThan (ossim_uint8 major, ossim_uint8 minor) const |
Test version. More... | |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimLasHdr &hdr) |
Convenience operator<< method. More... | |
Definition at line 24 of file ossimLasHdr.h.
ossimLasHdr::ossimLasHdr | ( | ) |
Definition at line 28 of file ossimLasHdr.cpp.
References m_fileSignature, m_generatingSoftware, m_legacyNumberOfPointsByReturn, m_numberOfPointsByReturn, m_projectIdGuidData4, and m_systemIndentifier.
ossimLasHdr::ossimLasHdr | ( | const ossimLasHdr & | hdr | ) |
Definition at line 71 of file ossimLasHdr.cpp.
References m_fileSignature, m_generatingSoftware, m_legacyNumberOfPointsByReturn, m_numberOfPointsByReturn, m_projectIdGuidData4, and m_systemIndentifier.
ossimLasHdr::~ossimLasHdr | ( | ) |
Definition at line 163 of file ossimLasHdr.cpp.
bool ossimLasHdr::checkSignature | ( | std::istream & | in | ) | const |
Checks for LASF in first four bytes.
Definition at line 167 of file ossimLasHdr.cpp.
Referenced by ossimLasInfo::open(), and ossimLasInfo::print().
std::string ossimLasHdr::getGeneratingSoftware | ( | ) | const |
Definition at line 473 of file ossimLasHdr.cpp.
References m_generatingSoftware.
Referenced by getKeywordlist().
bool ossimLasHdr::getGpsTimeTypeBit | ( | ) | const |
Definition at line 405 of file ossimLasHdr.cpp.
References m_globalEncoding.
Referenced by getKeywordlist().
ossim_uint16 ossimLasHdr::getHeaderSize | ( | ) | const |
Definition at line 484 of file ossimLasHdr.cpp.
References m_headerSize.
void ossimLasHdr::getKeywordlist | ( | ossimKeywordlist & | kwl | ) | const |
Definition at line 323 of file ossimLasHdr.cpp.
References ossimKeywordlist::add(), getGeneratingSoftware(), getGpsTimeTypeBit(), getProjectIdGuid(), getReturnsSyntheticallyGeneratedBit(), getSystemIndentifier(), getVersion(), getWaveforDataPacketsExternalBit(), getWaveforDataPacketsInternalBit(), getWktBit(), m_fileCreateionYear, m_fileCreationDay, m_fileSourceId, m_headerSize, m_legacyNumberOfPointRecords, m_legacyNumberOfPointsByReturn, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, m_minZ, m_numberOfPointRecords, m_numberOfPointsByReturn, m_numberOfVariableLengthRecords, m_offsetToPointData, m_pointDataFormatId, m_pointDataRecordLength, m_startOfWaveformDataPacket, m_xOffset, m_xScaleFactor, m_yOffset, m_yScaleFactor, m_zOffset, m_zScaleFactor, and versionGreaterThan().
Referenced by print().
const ossim_float64 & ossimLasHdr::getMaxX | ( | ) | const |
Definition at line 564 of file ossimLasHdr.cpp.
References m_maxX.
Referenced by ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getMaxY | ( | ) | const |
Definition at line 569 of file ossimLasHdr.cpp.
References m_maxY.
Referenced by ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getMaxZ | ( | ) | const |
Definition at line 574 of file ossimLasHdr.cpp.
References m_maxZ.
Referenced by ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getMinX | ( | ) | const |
Definition at line 549 of file ossimLasHdr.cpp.
References m_minX.
Referenced by ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getMinY | ( | ) | const |
Definition at line 554 of file ossimLasHdr.cpp.
References m_minY.
Referenced by ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getMinZ | ( | ) | const |
Definition at line 559 of file ossimLasHdr.cpp.
References m_minZ.
Referenced by ossimLasReader::initValues().
ossim_uint64 ossimLasHdr::getNumberOfPoints | ( | ) | const |
Definition at line 504 of file ossimLasHdr.cpp.
References m_numberOfPointRecords.
ossim_uint64 ossimLasHdr::getNumberOfPoints | ( | ossim_uint32 | entry | ) | const |
Gets number of points for entry where entry is synonymous returns.
Definition at line 509 of file ossimLasHdr.cpp.
References m_numberOfPointsByReturn.
ossim_uint32 ossimLasHdr::getNumberOfVlrs | ( | ) | const |
Definition at line 494 of file ossimLasHdr.cpp.
References m_numberOfVariableLengthRecords.
ossim_uint32 ossimLasHdr::getOffsetToPointData | ( | ) | const |
Definition at line 489 of file ossimLasHdr.cpp.
References m_offsetToPointData.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getOffsetX | ( | ) | const |
Definition at line 534 of file ossimLasHdr.cpp.
References m_xOffset.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getOffsetY | ( | ) | const |
Definition at line 539 of file ossimLasHdr.cpp.
References m_yOffset.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getOffsetZ | ( | ) | const |
Definition at line 544 of file ossimLasHdr.cpp.
References m_zOffset.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
ossim_uint8 ossimLasHdr::getPointDataFormatId | ( | ) | const |
Definition at line 499 of file ossimLasHdr.cpp.
References m_pointDataFormatId.
Referenced by ossimLasReader::getNewPointRecord().
std::string ossimLasHdr::getProjectIdGuid | ( | ) | const |
Definition at line 440 of file ossimLasHdr.cpp.
References m_projectIdGuidData1, m_projectIdGuidData2, m_projectIdGuidData3, and m_projectIdGuidData4.
Referenced by getKeywordlist().
bool ossimLasHdr::getReturnsSyntheticallyGeneratedBit | ( | ) | const |
Definition at line 426 of file ossimLasHdr.cpp.
References m_globalEncoding.
Referenced by getKeywordlist().
const ossim_float64 & ossimLasHdr::getScaleFactorX | ( | ) | const |
Definition at line 519 of file ossimLasHdr.cpp.
References m_xScaleFactor.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getScaleFactorY | ( | ) | const |
Definition at line 524 of file ossimLasHdr.cpp.
References m_yScaleFactor.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
const ossim_float64 & ossimLasHdr::getScaleFactorZ | ( | ) | const |
Definition at line 529 of file ossimLasHdr.cpp.
References m_zScaleFactor.
Referenced by ossimLasReader::getTile(), and ossimLasReader::initValues().
std::string ossimLasHdr::getSystemIndentifier | ( | ) | const |
Definition at line 462 of file ossimLasHdr.cpp.
References m_systemIndentifier.
Referenced by getKeywordlist().
std::string ossimLasHdr::getVersion | ( | ) | const |
Definition at line 455 of file ossimLasHdr.cpp.
References m_versionMajor, and m_versionMinor.
Referenced by getKeywordlist().
bool ossimLasHdr::getWaveforDataPacketsExternalBit | ( | ) | const |
Definition at line 419 of file ossimLasHdr.cpp.
References m_globalEncoding.
Referenced by getKeywordlist().
bool ossimLasHdr::getWaveforDataPacketsInternalBit | ( | ) | const |
Definition at line 412 of file ossimLasHdr.cpp.
References m_globalEncoding.
Referenced by getKeywordlist().
bool ossimLasHdr::getWktBit | ( | ) | const |
Definition at line 433 of file ossimLasHdr.cpp.
References m_globalEncoding.
Referenced by getKeywordlist().
const ossimLasHdr & ossimLasHdr::operator= | ( | const ossimLasHdr & | hdr | ) |
Definition at line 113 of file ossimLasHdr.cpp.
References m_fileCreateionYear, m_fileCreationDay, m_fileSignature, m_fileSourceId, m_generatingSoftware, m_globalEncoding, m_headerSize, m_legacyNumberOfPointRecords, m_legacyNumberOfPointsByReturn, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, m_minZ, m_numberOfExtendedVariableLengthRecords, m_numberOfPointRecords, m_numberOfPointsByReturn, m_numberOfVariableLengthRecords, m_offsetToPointData, m_pointDataFormatId, m_pointDataRecordLength, m_projectIdGuidData1, m_projectIdGuidData2, m_projectIdGuidData3, m_projectIdGuidData4, m_startOfExtendedVariableLengthRecords, m_startOfWaveformDataPacket, m_systemIndentifier, m_versionMajor, m_versionMinor, m_xOffset, m_xScaleFactor, m_yOffset, m_yScaleFactor, m_zOffset, and m_zScaleFactor.
std::ostream & ossimLasHdr::print | ( | std::ostream & | out | ) | const |
print method.
Definition at line 311 of file ossimLasHdr.cpp.
References getKeywordlist().
Referenced by operator<<(), and ossimLasInfo::print().
void ossimLasHdr::readStream | ( | std::istream & | in | ) |
Method to initialize from input stream.
Input stream should be at beginning of file.
in | Stream to read from. |
Definition at line 180 of file ossimLasHdr.cpp.
References ossim::byteOrder(), m_fileCreateionYear, m_fileCreationDay, m_fileSignature, m_fileSourceId, m_generatingSoftware, m_globalEncoding, m_headerSize, m_legacyNumberOfPointRecords, m_legacyNumberOfPointsByReturn, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, m_minZ, m_numberOfExtendedVariableLengthRecords, m_numberOfPointRecords, m_numberOfPointsByReturn, m_numberOfVariableLengthRecords, m_offsetToPointData, m_pointDataFormatId, m_pointDataRecordLength, m_projectIdGuidData1, m_projectIdGuidData2, m_projectIdGuidData3, m_projectIdGuidData4, m_startOfExtendedVariableLengthRecords, m_startOfWaveformDataPacket, m_systemIndentifier, m_versionMajor, m_versionMinor, m_xOffset, m_xScaleFactor, m_yOffset, m_yScaleFactor, m_zOffset, m_zScaleFactor, OSSIM_BIG_ENDIAN, swap(), and versionGreaterThan().
Referenced by ossimLasInfo::print().
|
private |
Performs a swap if system byte order is not little endian.
Definition at line 579 of file ossimLasHdr.cpp.
References m_fileCreateionYear, m_fileCreationDay, m_fileSourceId, m_globalEncoding, m_headerSize, m_legacyNumberOfPointRecords, m_legacyNumberOfPointsByReturn, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, m_minZ, m_numberOfExtendedVariableLengthRecords, m_numberOfPointRecords, m_numberOfPointsByReturn, m_numberOfVariableLengthRecords, m_offsetToPointData, m_pointDataRecordLength, m_projectIdGuidData1, m_projectIdGuidData2, m_projectIdGuidData3, m_startOfExtendedVariableLengthRecords, m_startOfWaveformDataPacket, m_xOffset, m_xScaleFactor, m_yOffset, m_yScaleFactor, m_zOffset, m_zScaleFactor, and ossimEndian::swap().
Referenced by readStream(), and writeStream().
|
private |
Test version.
major | |
minor |
Definition at line 614 of file ossimLasHdr.cpp.
References m_versionMajor, and m_versionMinor.
Referenced by getKeywordlist(), readStream(), and writeStream().
void ossimLasHdr::writeStream | ( | std::ostream & | out | ) |
Writes header to stream.
Definition at line 249 of file ossimLasHdr.cpp.
References ossim::byteOrder(), m_fileCreateionYear, m_fileCreationDay, m_fileSignature, m_fileSourceId, m_generatingSoftware, m_globalEncoding, m_headerSize, m_legacyNumberOfPointRecords, m_legacyNumberOfPointsByReturn, m_maxX, m_maxY, m_maxZ, m_minX, m_minY, m_minZ, m_numberOfExtendedVariableLengthRecords, m_numberOfPointRecords, m_numberOfPointsByReturn, m_numberOfVariableLengthRecords, m_offsetToPointData, m_pointDataFormatId, m_pointDataRecordLength, m_projectIdGuidData1, m_projectIdGuidData2, m_projectIdGuidData3, m_projectIdGuidData4, m_startOfExtendedVariableLengthRecords, m_startOfWaveformDataPacket, m_systemIndentifier, m_versionMajor, m_versionMinor, m_xOffset, m_xScaleFactor, m_yOffset, m_yScaleFactor, m_zOffset, m_zScaleFactor, OSSIM_BIG_ENDIAN, swap(), and versionGreaterThan().
|
friend |
Convenience operator<< method.
Definition at line 318 of file ossimLasHdr.cpp.
|
private |
Definition at line 159 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 158 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 147 of file ossimLasHdr.h.
Referenced by operator=(), ossimLasHdr(), readStream(), and writeStream().
|
private |
Definition at line 148 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 157 of file ossimLasHdr.h.
Referenced by getGeneratingSoftware(), operator=(), ossimLasHdr(), readStream(), and writeStream().
|
private |
Definition at line 149 of file ossimLasHdr.h.
Referenced by getGpsTimeTypeBit(), getReturnsSyntheticallyGeneratedBit(), getWaveforDataPacketsExternalBit(), getWaveforDataPacketsInternalBit(), getWktBit(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 160 of file ossimLasHdr.h.
Referenced by getHeaderSize(), getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 165 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 166 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), ossimLasHdr(), readStream(), swap(), and writeStream().
|
private |
Definition at line 173 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getMaxX(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 175 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getMaxY(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 177 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getMaxZ(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 174 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getMinX(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 176 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getMinY(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 178 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getMinZ(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 181 of file ossimLasHdr.h.
Referenced by operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 182 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getNumberOfPoints(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 183 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getNumberOfPoints(), operator=(), ossimLasHdr(), readStream(), swap(), and writeStream().
|
private |
Definition at line 162 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getNumberOfVlrs(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 161 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getOffsetToPointData(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 163 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getPointDataFormatId(), operator=(), readStream(), and writeStream().
|
private |
Definition at line 164 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 150 of file ossimLasHdr.h.
Referenced by getProjectIdGuid(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 151 of file ossimLasHdr.h.
Referenced by getProjectIdGuid(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 152 of file ossimLasHdr.h.
Referenced by getProjectIdGuid(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 153 of file ossimLasHdr.h.
Referenced by getProjectIdGuid(), operator=(), ossimLasHdr(), readStream(), and writeStream().
|
private |
Definition at line 180 of file ossimLasHdr.h.
Referenced by operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 179 of file ossimLasHdr.h.
Referenced by getKeywordlist(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 156 of file ossimLasHdr.h.
Referenced by getSystemIndentifier(), operator=(), ossimLasHdr(), readStream(), and writeStream().
|
private |
Definition at line 154 of file ossimLasHdr.h.
Referenced by getVersion(), operator=(), readStream(), versionGreaterThan(), and writeStream().
|
private |
Definition at line 155 of file ossimLasHdr.h.
Referenced by getVersion(), operator=(), readStream(), versionGreaterThan(), and writeStream().
|
private |
Definition at line 170 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getOffsetX(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 167 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getScaleFactorX(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 171 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getOffsetY(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 168 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getScaleFactorY(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 172 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getOffsetZ(), operator=(), readStream(), swap(), and writeStream().
|
private |
Definition at line 169 of file ossimLasHdr.h.
Referenced by getKeywordlist(), getScaleFactorZ(), operator=(), readStream(), swap(), and writeStream().