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
14LT_BEGIN_LIDAR_NAMESPACE
15
16
24{
26public:
27 const PointInfo &getPointInfo(void) const;
28
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
58protected:
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
118private:
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];
125protected:
127};
128
129LT_END_LIDAR_NAMESPACE
130#endif // __LIDAR_POINT_READER_H__
#define ABSTRACT_OBJECT(classname)
Macros for defining boilerplate parts of derived Object classes.
Definition: Object.h:41
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
virtual const char * getFileFormatString(void) const =0
Get the file type and version.
size_t getNumClassIdNames(void) const
Get the number of classification names.
void overrideWKT(const char *wkt)
void setNumPoints(count_type numPoints)
Set the number of points in the point cloud.
bool m_ignoreNativeWKTMetadata
Definition: PointReader.h:126
char const *const * getClassIdNames(void) const
Get the classification names.
void setBounds(const Bounds &bounds)
Set the bounding box of the point cloud.
const Bounds & getBounds(void) const
Get the bounding box.
void setPointInfo(const PointInfo &pointInfo)
Set the point information.
double getTotalWork(const Bounds &bounds, double fraction) const
Get the amount of work needed to decode bounds.
const double * getScale(void) const
Get the quantization scale.
const double * getOffset(void) const
Get the quantization offset.
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.
const PointInfo & getPointInfo(void) const
Get the point information.
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