|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimPointRecord.h>
Public Types | |
| enum | FIELD_CODES { Intensity = 0x0008, ReturnNumber = 0x0010, NumberOfReturns = 0x0020, Red = 0x0040, Green = 0x0080, Blue = 0x0100, GpsTime = 0x0200, Infrared = 0x0400, All = 0x0777 } |
Public Member Functions | |
| ossimPointRecord (ossim_uint32 fields_code=0) | |
| ossimPointRecord (const ossimPointRecord &pcr) | |
| ossimPointRecord (const ossimGpt &pos) | |
| ~ossimPointRecord () | |
| Creates a point record with fields set to null values. More... | |
| ossimPointRecord & | operator= (const ossimPointRecord &pcr) |
| ossim_uint32 | getPointId () const |
| void | setPointId (ossim_uint32 id) |
| const ossimGpt & | getPosition () const |
| Returns the 3D position vector in the dataset's coodinate reference system (available from the ossimPointCloudSource object. More... | |
| void | setPosition (const ossimGpt &p) |
| virtual bool | hasFields (ossim_uint32 code_mashup) const |
| Argument can be mash-up of OR'd codes for check of multiple fields. More... | |
| virtual ossim_uint32 | getFieldCode () const |
| Returns mash-up of OR'd codes of multiple fields being stored. More... | |
| ossim_float32 | getField (FIELD_CODES fc) const |
| Return the float value of the requested field. More... | |
| const std::map< FIELD_CODES, ossim_float32 > & | getFieldMap () const |
| void | setField (FIELD_CODES fc, ossim_float32 value) |
| void | clear () |
| Initializes point to undefined state: More... | |
| bool | isValid () const |
Public Member Functions inherited from ossimReferenced | |
| 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 |
Protected Attributes | |
| ossim_uint32 | m_pointId |
| ossimGpt | m_position |
| std::map< FIELD_CODES, ossim_float32 > | m_fieldMap |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const ossimPointRecord &p) |
Additional Inherited Members | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Definition at line 23 of file ossimPointRecord.h.
| Enumerator | |
|---|---|
| Intensity | |
| ReturnNumber | |
| NumberOfReturns | |
| Red | |
| Green | |
| Blue | |
| GpsTime | |
| Infrared | |
| All | |
Definition at line 28 of file ossimPointRecord.h.
| ossimPointRecord::ossimPointRecord | ( | ossim_uint32 | fields_code = 0 | ) |
Definition at line 12 of file ossimPointRecord.cpp.
References Blue, GpsTime, Green, Infrared, Intensity, m_fieldMap, ossim::nan(), NumberOfReturns, Red, and ReturnNumber.
| ossimPointRecord::ossimPointRecord | ( | const ossimPointRecord & | pcr | ) |
Definition at line 33 of file ossimPointRecord.cpp.
| ossimPointRecord::ossimPointRecord | ( | const ossimGpt & | pos | ) |
Definition at line 40 of file ossimPointRecord.cpp.
| ossimPointRecord::~ossimPointRecord | ( | ) |
Creates a point record with fields set to null values.
Definition at line 46 of file ossimPointRecord.cpp.
| void ossimPointRecord::clear | ( | ) |
Initializes point to undefined state:
Definition at line 167 of file ossimPointRecord.cpp.
References m_pointId.
| ossim_float32 ossimPointRecord::getField | ( | FIELD_CODES | fc | ) | const |
Return the float value of the requested field.
Definition at line 98 of file ossimPointRecord.cpp.
References m_fieldMap, and ossim::nan().
Referenced by ossimPointCloudImageHandler::addSample(), ossimPdalReader::establishMinMax(), ossimPointBlock::getFieldMax(), ossimPointBlock::getFieldMin(), ossimPointCloudHandler::normalizeBlock(), ossimPdalReader::parsePointView(), and ossimPointCloudImageHandler::setCurrentEntry().
|
inlinevirtual |
Returns mash-up of OR'd codes of multiple fields being stored.
Definition at line 74 of file ossimPointRecord.cpp.
References Blue, GpsTime, Green, Infrared, Intensity, m_fieldMap, NumberOfReturns, Red, and ReturnNumber.
Referenced by ossimPointBlock::addPoint(), and ossimPdalReader::establishMinMax().
|
inline |
Definition at line 72 of file ossimPointRecord.h.
Referenced by ossimPdalReader::establishMinMax().
|
inline |
Definition at line 50 of file ossimPointRecord.h.
|
inline |
Returns the 3D position vector in the dataset's coodinate reference system (available from the ossimPointCloudSource object.
This is either map/meters (x, y, z) or geog (lat, lon, hgt). Refer to the ossimPointCloudGeometry::getStoredPosFormat() available from the associated ossimPointCloudSource->getGeometry()
Definition at line 59 of file ossimPointRecord.h.
Referenced by ossimPointCloudImageHandler::addSample(), ossimPdalReader::establishMinMax(), ossimPointBlock::getBounds(), ossimPointCloudHandler::getBounds(), ossimPointBlock::scanForMinMax(), and ossimPointCloudImageHandler::setCurrentEntry().
|
inlinevirtual |
Argument can be mash-up of OR'd codes for check of multiple fields.
Returns TRUE if ALL fields are present.
Definition at line 50 of file ossimPointRecord.cpp.
References Blue, GpsTime, Green, Infrared, Intensity, m_fieldMap, NumberOfReturns, Red, and ReturnNumber.
Referenced by ossimPdalReader::parsePoint().
| bool ossimPointRecord::isValid | ( | void | ) | const |
Definition at line 172 of file ossimPointRecord.cpp.
References ossimGpt::hasNans(), m_fieldMap, m_pointId, and m_position.
| ossimPointRecord & ossimPointRecord::operator= | ( | const ossimPointRecord & | pcr | ) |
Definition at line 112 of file ossimPointRecord.cpp.
References m_fieldMap, m_pointId, and m_position.
| void ossimPointRecord::setField | ( | FIELD_CODES | fc, |
| ossim_float32 | value | ||
| ) |
Definition at line 106 of file ossimPointRecord.cpp.
References m_fieldMap.
Referenced by ossimPdalReader::establishMinMax(), ossimPointCloudHandler::normalizeBlock(), ossimPdalReader::parsePoint(), and ossimPdalReader::parsePointView().
|
inline |
|
inline |
Definition at line 60 of file ossimPointRecord.h.
Referenced by ossimPdalReader::establishMinMax(), and ossimPdalReader::parsePoint().
|
friend |
Definition at line 124 of file ossimPointRecord.cpp.
|
protected |
Definition at line 87 of file ossimPointRecord.h.
Referenced by getField(), getFieldCode(), hasFields(), isValid(), operator<<(), operator=(), ossimPointRecord(), and setField().
|
protected |
Definition at line 85 of file ossimPointRecord.h.
Referenced by clear(), isValid(), operator<<(), and operator=().
|
protected |
Definition at line 86 of file ossimPointRecord.h.
Referenced by isValid(), operator<<(), and operator=().
1.8.14