|
MrSID Decode SDK for LiDAR Reference Manual 1.1.5.5244
|
PointReader is the base class for reading LiDAR file formats. More...
#include <PointReader.h>


Public Member Functions | |
| const PointInfo & | getPointInfo (void) const |
| Get the point information. More... | |
| count_type | getNumPoints (void) const |
| Get the number of points. More... | |
| const char * | getWKT (void) const |
| Get the spatial reference system. More... | |
| void | overrideWKT (const char *wkt) |
| virtual const char * | getFileFormatString (void) const =0 |
| Get the file type and version. More... | |
| const Bounds & | getBounds (void) const |
| Get the bounding box. More... | |
| const double * | getScale (void) const |
| Get the quantization scale. More... | |
| const double * | getOffset (void) const |
| Get the quantization offset. More... | |
| char const *const * | getClassIdNames (void) const |
| Get the classification names. More... | |
| size_t | getNumClassIdNames (void) const |
| Get the number of classification names. More... | |
| double | getTotalWork (const Bounds &bounds, double fraction) const |
| Get the amount of work needed to decode bounds. More... | |
Public Member Functions inherited from PointSource | |
| virtual const PointInfo & | getPointInfo (void) const =0 |
| Get the point information. More... | |
| size_t | getNumChannels (void) const |
| Get the number of channels. More... | |
| bool | hasChannel (const char *name) const |
| Determine if there is a channel with a given name. More... | |
| const ChannelInfo & | getChannel (size_t idx) const |
| Access the channel info. More... | |
| const ChannelInfo * | getChannel (const char *name) const |
| Access the channel data. More... | |
| virtual count_type | getNumPoints (void) const =0 |
| Get the number of points. More... | |
| virtual const char * | getWKT (void) const =0 |
| Get the spatial reference system. More... | |
| virtual void | loadMetadata (Metadata &metadata, bool sanitize) const =0 |
| Load the point clouds metadata. More... | |
| virtual const Bounds & | getBounds (void) const =0 |
| Get the bounding box. More... | |
| virtual const double * | getScale (void) const =0 |
| Get the quantization scale. More... | |
| virtual const double * | getOffset (void) const =0 |
| Get the quantization offset. More... | |
| virtual size_t | getNumClassIdNames (void) const =0 |
| Get the number of classification names. More... | |
| virtual char const *const * | getClassIdNames (void) const =0 |
| Get the classification names. More... | |
| virtual double | getTotalWork (const Bounds &bounds, double fraction) const =0 |
| Get the amount of work needed to decode bounds. More... | |
| virtual PointIterator * | createIterator (const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) const =0 |
| Get a PointIterator for a given bounds. More... | |
| size_t | read (const Bounds &bounds, PointData &points, ProgressDelegate *delegate) const |
| Fill the point buffer with the best sample of the point cloud in bounds. More... | |
Public Member Functions inherited from Object | |
| int | retain (void) const |
| Increment the reference count by one. More... | |
| int | release (void) const |
| Decrement the reference count by one. More... | |
Protected Member Functions | |
| void | setPointInfo (const PointInfo &pointInfo) |
| Set the point information. More... | |
| void | setNumPoints (count_type numPoints) |
| Set the number of points in the point cloud. More... | |
| void | setBounds (const Bounds &bounds) |
| Set the bounding box of the point cloud. More... | |
| void | setWKT (const char *wkt) |
| Set the spatial reference system. More... | |
| void | setQuantization (const double scale[3], const double offset[3]) |
| Set the quantization scale and offset. More... | |
Protected Member Functions inherited from Object | |
| Object (void) | |
| virtual | ~Object (void) |
Protected Attributes | |
| bool | m_ignoreNativeWKTMetadata |
Additional Inherited Members | |
Public Types inherited from PointSource | |
| typedef lt_int64 | count_type |
The PointReader class is the base class for reading LiDAR file formats. It add one method to the PointSource interface, getFileFormatString().
Definition at line 23 of file PointReader.h.
|
virtual |
This method returns the geo bounding box of the point cloud.
Implements PointSource.
|
virtual |
This methods returns an array of classification names with length getNumClassIdNames().
Implements PointSource.
|
pure virtual |
This method returns a string the contains the File Type and version of the PointReader. For example for a MrSID file this will will return "MG4 4.0.0.1".
Implemented in MG4PointReader, and TXTPointReader.
|
virtual |
This methods returns the number of classification names.
Implements PointSource.
|
virtual |
This method returns the number of points in the point cloud.
Implements PointSource.
|
virtual |
This method returns the quantization offset for X, Y, and Z channels. It returns nullptr then the point cloud is not quantized or quantization is unknown.
Implements PointSource.
|
virtual |
This method returns a PointInfo object.
Implements PointSource.
|
virtual |
This method returns the quantization scale factors for X, Y, and Z channels. It returns nullptr then the point cloud is not quantized or quantization is unknown.
Implements PointSource.
|
virtual |
This method returns the amount of work needed to decode the points in bounds. getTotalWork() is used with ProgressDelegate to track the progress of a decode or encode.
| bounds | the region of interest |
| fraction | the fraction of the points you want (use 1.0 for all the points and use 0.1 to keep every tenth point) |
Implements PointSource.
Reimplemented in TXTPointReader.
|
virtual |
This method returns the spatial reference system as a Well Known Text (WKT) string. If the PointSource does not have a spatial reference system it will return nullptr.
Implements PointSource.
| void PointReader::overrideWKT | ( | const char * | wkt | ) |
|
protected |
This method sets the bounding box of the point cloud. All subclasses must call this function in thier init() function.
| bounds | the bounding box of the point cloud. |
|
protected |
This method sets the number of points in the point cloud. All subclasses must call this function in thier init() function.
| numPoints | the number of points in the point cloud |
|
protected |
This method sets the channel information. All subclasses must call this function in thier init() function.
| pointInfo | the channel information |
|
protected |
This method sets the quantization scale and offset for the point cloud. If the data is not quantized do not call this function or call it with scale = nullptr and offset = nullptr.
| scale | the quantization scale for the X, Y, and Z channels |
| offset | the offset for the X, Y, and Z channels |
|
protected |
This method uses a Well Known Test (WKT) string to set the spatial reference system.
| wkt | the WKT representation of the spatial reference system |
|
protected |
Definition at line 126 of file PointReader.h.
| Extensis |