MrSID Decode SDK for LiDAR Reference Manual  1.1.5.5244
PointReader.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef __LIDAR_POINT_READER_H__
9 #define __LIDAR_POINT_READER_H__
10 
11 #include "lidar/PointSource.h"
12 #include "lidar/IO.h"
13 
14 LT_BEGIN_LIDAR_NAMESPACE
15 
16 
23 class PointReader : public PointSource
24 {
25  ABSTRACT_OBJECT(PointReader);
26 public:
27  const PointInfo &getPointInfo(void) const;
28 
29  count_type getNumPoints(void) const;
30  const char *getWKT(void) const;
31 
32  /*
33  * Override the WKT stored in the file.
34  *
35  * This method alows the caller to override the WKT store in the file. This
36  * useful when the file does not have a WKT.
37  */
38  void overrideWKT(const char *wkt);
39 
47  virtual const char *getFileFormatString(void) const = 0;
48 
49  const Bounds &getBounds(void) const;
50  const double *getScale(void) const;
51  const double *getOffset(void) const;
52 
53  char const * const *getClassIdNames(void) const;
54  size_t getNumClassIdNames(void) const;
55 
56  double getTotalWork(const Bounds &bounds, double fraction) const;
57 
58 protected:
69  void setPointInfo(const PointInfo &pointInfo);
80  void setNumPoints(count_type numPoints);
91  void setBounds(const Bounds &bounds);
102  void setWKT(const char *wkt);
116  void setQuantization(const double scale[3], const double offset[3]);
117 
118 private:
119  PointInfo m_pointInfo;
120  count_type m_numPoints;
121  char *m_wkt;
122  Bounds m_bounds;
123  double m_scale[3];
124  double m_offset[3];
125 protected:
127 };
128 
129 LT_END_LIDAR_NAMESPACE
130 #endif // __LIDAR_POINT_READER_H__
PointInfo is a group of ChannelInfo objects.
Definition: PointData.h:182
PointReader is the base class for reading LiDAR file formats.
Definition: PointReader.h:24
const PointInfo & getPointInfo(void) const
Get the point information.
char const *const * getClassIdNames(void) const
Get the classification names.
size_t getNumClassIdNames(void) const
Get the number of classification names.
void overrideWKT(const char *wkt)
const double * getOffset(void) const
Get the quantization offset.
void setNumPoints(count_type numPoints)
Set the number of points in the point cloud.
bool m_ignoreNativeWKTMetadata
Definition: PointReader.h:126
void setBounds(const Bounds &bounds)
Set the bounding box of the point cloud.
void setPointInfo(const PointInfo &pointInfo)
Set the point information.
const double * getScale(void) const
Get the quantization scale.
double getTotalWork(const Bounds &bounds, double fraction) const
Get the amount of work needed to decode bounds.
const char * getWKT(void) const
Get the spatial reference system.
void setQuantization(const double scale[3], const double offset[3])
Set the quantization scale and offset.
virtual const char * getFileFormatString(void) const =0
Get the file type and version.
const Bounds & getBounds(void) const
Get the bounding box.
count_type getNumPoints(void) const
Get the number of points.
void setWKT(const char *wkt)
Set the spatial reference system.
PointSource is the base class of LiDAR point cloud extraction pipeline.
Definition: PointSource.h:37
lt_int64 count_type
Definition: PointSource.h:40
Bounds is a 3-dimensional bounding box.
Definition: Types.h:124

Extensis