OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimPointBlock.h>
Public Types | |
typedef std::vector< ossimRefPtr< ossimPointRecord > > | PointList |
Public Member Functions | |
ossimPointBlock (ossimSource *owner=0, ossim_uint32 fields=0) | |
~ossimPointBlock () | |
virtual ossim_uint32 | size () const |
Returns allocated size. More... | |
bool | empty () const |
ossim_uint32 | getFieldCode () const |
Returns OR'd mash-up of ossimPointRecord field codes being stored (or desired to be stored) More... | |
vector< ossimPointRecord::FIELD_CODES > | getFieldCodesAsList () const |
void | setFieldCode (ossim_uint32 code) |
Initializes the desired fields to be stored. More... | |
virtual void | addPoint (ossimPointRecord *point) |
Adds single point to the tail of the list. More... | |
virtual const ossimPointRecord * | getPoint (ossim_uint32 point_offset) const |
virtual ossimPointRecord * | getPoint (ossim_uint32 point_offset) |
const ossimPointRecord * | operator[] (ossim_uint32 i) const |
ossimPointRecord * | operator[] (ossim_uint32 i) |
virtual const PointList & | getPoints () const |
virtual PointList & | getPoints () |
void | getFieldMin (ossimPointRecord::FIELD_CODES field, ossim_float32 &value) const |
void | getFieldMax (ossimPointRecord::FIELD_CODES field, ossim_float32 &value) const |
void | getBounds (ossimGrect &block_bounds) const |
virtual const ossimPointBlock & | operator= (const ossimPointBlock &rhs) |
virtual ossimObject * | dup () const |
virtual void | clear () |
Resets any storage to empty. More... | |
virtual bool | isEqualTo (const ossimDataObject &, bool) const |
Fulfills base class pure virtual. More... | |
virtual ossim_uint32 | getHashId () const |
virtual ossim_uint32 | getDataSizeInBytes () const |
virtual void | initialize () |
Will allow derived classes to initialize their buffers. More... | |
![]() | |
ossimDataObject (ossimSource *source=0, ossimDataObjectStatus status=OSSIM_STATUS_UNKNOWN) | |
ossimDataObject (const ossimDataObject &rhs) | |
virtual | ~ossimDataObject () |
virtual void | setOwner (ossimSource *aSource) |
Sets the owner of this Data object. More... | |
virtual ossimSource * | getOwner () |
virtual const ossimSource * | getOwner () const |
virtual void | setDataObjectStatus (ossimDataObjectStatus status) const |
Full list found in ossimConstants.h. More... | |
virtual ossimDataObjectStatus | getDataObjectStatus () const |
virtual ossimString | getDataObjectStatusString () const |
virtual ossim_uint32 | getObjectSizeInBytes () const |
virtual bool | isInitialize () const |
This is to be overriden in the derived classes so they can check If their data is null. More... | |
virtual void | assign (const ossimDataObject *rhs) |
virtual const ossimDataObject * | operator= (const ossimDataObject *rhs) |
virtual const ossimDataObject & | operator= (const ossimDataObject &rhs) |
virtual bool | operator== (const ossimDataObject &rhs) const |
virtual bool | operator!= (const ossimDataObject &rhs) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
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 Member Functions | |
ossimPointBlock (const ossimPointBlock &) | |
void | scanForMinMax () const |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimPointRecord | m_nullPCR |
ossimPointRecord | m_minRecord |
ossimPointRecord | m_maxRecord |
bool | m_minMaxValid |
PointList | m_pointList |
ossim_uint32 | m_fieldCode |
bool | m_isNormalized |
![]() | |
ossimSource * | theOwner |
ossimDataObjectStatus | theDataObjectStatus |
Definition at line 24 of file ossimPointBlock.h.
typedef std::vector< ossimRefPtr<ossimPointRecord> > ossimPointBlock::PointList |
Definition at line 27 of file ossimPointBlock.h.
|
explicit |
Definition at line 12 of file ossimPointBlock.cpp.
Referenced by dup().
ossimPointBlock::~ossimPointBlock | ( | ) |
Definition at line 21 of file ossimPointBlock.cpp.
|
inlineprotected |
Definition at line 83 of file ossimPointBlock.h.
|
virtual |
Adds single point to the tail of the list.
Definition at line 133 of file ossimPointBlock.cpp.
References ossimPointRecord::getFieldCode(), m_fieldCode, m_minMaxValid, and m_pointList.
Referenced by ossimPointCloudHandler::getBlock(), ossimGenericPointCloudHandler::getFileBlock(), ossimGenericPointCloudHandler::ossimGenericPointCloudHandler(), and ossimPdalReader::parsePointView().
|
inlinevirtual |
Resets any storage to empty.
Definition at line 72 of file ossimPointBlock.h.
Referenced by ossimRialtoReader::getBlock(), ossimPointCloudHandler::getBlock(), ossimGenericPointCloudHandler::getFileBlock(), ossimRialtoReader::getFileBlock(), ossimPdalFileReader::getFileBlock(), ossimPointCloudImageHandler::getTile(), setFieldCode(), and ossimGenericPointCloudHandler::~ossimGenericPointCloudHandler().
|
virtual |
Reimplemented from ossimObject.
Definition at line 88 of file ossimPointBlock.cpp.
References m_fieldCode, and ossimPointBlock().
|
inline |
Definition at line 36 of file ossimPointBlock.h.
References size.
Referenced by getFieldMax(), getFieldMin(), and ossimHlzTool::PatchProcessorJob::level2Test().
void ossimPointBlock::getBounds | ( | ossimGrect & | block_bounds | ) | const |
Definition at line 47 of file ossimPointBlock.cpp.
References ossimPointRecord::getPosition(), m_maxRecord, m_minMaxValid, m_minRecord, and scanForMinMax().
Referenced by ossimGenericPointCloudHandler::ossimGenericPointCloudHandler().
|
inlinevirtual |
ossim_uint32 ossimPointBlock::getFieldCode | ( | ) | const |
Returns OR'd mash-up of ossimPointRecord field codes being stored (or desired to be stored)
Definition at line 95 of file ossimPointBlock.cpp.
References m_fieldCode, and m_pointList.
Referenced by ossimPdalReader::parsePointView(), and setFieldCode().
vector< ossimPointRecord::FIELD_CODES > ossimPointBlock::getFieldCodesAsList | ( | ) | const |
Definition at line 103 of file ossimPointBlock.cpp.
References ossimPointRecord::Blue, ossimPointRecord::GpsTime, ossimPointRecord::Green, ossimPointRecord::Infrared, ossimPointRecord::Intensity, m_fieldCode, ossimPointRecord::NumberOfReturns, ossimPointRecord::Red, and ossimPointRecord::ReturnNumber.
Referenced by ossimPointCloudHandler::normalizeBlock().
void ossimPointBlock::getFieldMax | ( | ossimPointRecord::FIELD_CODES | field, |
ossim_float32 & | value | ||
) | const |
Definition at line 36 of file ossimPointBlock.cpp.
References empty(), ossimPointRecord::getField(), m_maxRecord, m_minMaxValid, ossim::nan(), and scanForMinMax().
void ossimPointBlock::getFieldMin | ( | ossimPointRecord::FIELD_CODES | field, |
ossim_float32 & | value | ||
) | const |
Definition at line 26 of file ossimPointBlock.cpp.
References empty(), ossimPointRecord::getField(), m_minMaxValid, m_minRecord, ossim::nan(), and scanForMinMax().
|
inlinevirtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 61 of file ossimPointBlock.h.
|
inlinevirtual |
Will allow derived classes to initialize their buffers.
This class does nothing with this and reset any internal attributes.
Implements ossimDataObject.
Definition at line 80 of file ossimPointBlock.h.
|
inlinevirtual |
Fulfills base class pure virtual.
TODO: Needs to be correctly implemented
Definition at line 77 of file ossimPointBlock.h.
|
virtual |
Definition at line 69 of file ossimPointBlock.cpp.
References m_fieldCode, m_isNormalized, m_maxRecord, m_minMaxValid, m_minRecord, m_nullPCR, m_pointList, and size().
|
inline |
Definition at line 57 of file ossimPointBlock.h.
|
inline |
Definition at line 58 of file ossimPointBlock.h.
|
protected |
Definition at line 143 of file ossimPointBlock.cpp.
References ossimPointRecord::getPosition(), ossimPointRecord::Green, ossimPointRecord::Intensity, m_maxRecord, m_minRecord, m_pointList, ossimPointRecord::Red, and size().
Referenced by getBounds(), getFieldMax(), and getFieldMin().
void ossimPointBlock::setFieldCode | ( | ossim_uint32 | code | ) |
Initializes the desired fields to be stored.
This will affect future getBlock() calls. If the point list contains points from prior read, they will be deleted unless the points field code matches the code argument.
Definition at line 125 of file ossimPointBlock.cpp.
References clear(), getFieldCode(), and m_fieldCode.
Referenced by ossimPointCloudImageHandler::getTile().
|
inlinevirtual |
Returns allocated size.
The pointList may contain only null points if not assigned
Definition at line 34 of file ossimPointBlock.h.
Referenced by ossimPointCloudHandler::getBlock(), ossimGenericPointCloudHandler::getFileBlock(), ossimGenericPointCloudHandler::getNumPoints(), ossimPointCloudImageHandler::getTile(), ossimHlzTool::PatchProcessorJob::level2Test(), ossimPointCloudHandler::normalizeBlock(), operator=(), ossimPdalReader::parsePointView(), and scanForMinMax().
|
mutableprotected |
Definition at line 91 of file ossimPointBlock.h.
Referenced by addPoint(), dup(), getFieldCode(), getFieldCodesAsList(), operator=(), and setFieldCode().
|
protected |
Definition at line 92 of file ossimPointBlock.h.
Referenced by operator=().
|
mutableprotected |
Definition at line 88 of file ossimPointBlock.h.
Referenced by getBounds(), getFieldMax(), operator=(), and scanForMinMax().
|
mutableprotected |
Definition at line 89 of file ossimPointBlock.h.
Referenced by addPoint(), getBounds(), getFieldMax(), getFieldMin(), and operator=().
|
mutableprotected |
Definition at line 87 of file ossimPointBlock.h.
Referenced by getBounds(), getFieldMin(), operator=(), and scanForMinMax().
|
protected |
Definition at line 86 of file ossimPointBlock.h.
Referenced by operator=().
|
protected |
Definition at line 90 of file ossimPointBlock.h.
Referenced by addPoint(), getFieldCode(), getPoint(), operator=(), and scanForMinMax().