MrSID Decode SDK for LiDAR Reference Manual 1.1.5.5244
PointSource.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_SOURCE_H__
9#define __LIDAR_POINT_SOURCE_H__
10
11#include "lidar/Metadata.h"
12#include "lidar/PointIterator.h"
14
15LT_BEGIN_LIDAR_NAMESPACE
16
36class PointSource : public Object
37{
39public:
41
47 virtual const PointInfo &getPointInfo(void) const = 0;
48
55 size_t getNumChannels(void) const;
56
65 bool hasChannel(const char *name) const;
66
76 const ChannelInfo &getChannel(size_t idx) const;
77
87 const ChannelInfo *getChannel(const char *name) const;
88
94 virtual count_type getNumPoints(void) const = 0;
95
103 virtual const char *getWKT(void) const = 0;
104
116 virtual void loadMetadata(Metadata &metadata,
117 bool sanitize) const = 0;
118
124 virtual const Bounds &getBounds(void) const = 0;
125
133 virtual const double *getScale(void) const = 0;
134
142 virtual const double *getOffset(void) const = 0;
143
149 virtual size_t getNumClassIdNames(void) const = 0;
150
157 virtual char const * const *getClassIdNames(void) const = 0;
158
172 virtual double getTotalWork(const Bounds &bounds,
173 double fraction) const = 0;
174
188 virtual PointIterator *createIterator(const Bounds &bounds,
189 double fraction,
190 const PointInfo &pointInfo,
191 ProgressDelegate *delegate) const = 0;
192
201 size_t read(const Bounds &bounds,
202 PointData &points,
203 ProgressDelegate *delegate) const;
204};
205
206LT_END_LIDAR_NAMESPACE
207#endif // __LIDAR_POINT_SOURCE_H__
long long int lt_int64
signed 64-bit integer
Definition: Base.h:42
#define ABSTRACT_OBJECT(classname)
Macros for defining boilerplate parts of derived Object classes.
Definition: Object.h:41
Metadata is a container for storing metadata about the point cloud.
Definition: Metadata.h:61
Object is the base class for implementing reference counting.
Definition: Object.h:31
ChannelInfo stores the basic properties of a channel.
Definition: PointData.h:123
PointInfo is a group of ChannelInfo objects.
Definition: PointData.h:182
PointData is a group of ChannelData objects.
Definition: PointData.h:433
PointIterator is the base class for accessing the point cloud.
Definition: PointIterator.h:28
PointSource is the base class of LiDAR point cloud extraction pipeline.
Definition: PointSource.h:37
virtual const double * getOffset(void) const =0
Get the quantization offset.
virtual char const *const * getClassIdNames(void) const =0
Get the classification names.
virtual const Bounds & getBounds(void) const =0
Get the bounding box.
const ChannelInfo & getChannel(size_t idx) const
Access the channel info.
lt_int64 count_type
Definition: PointSource.h:40
virtual const PointInfo & getPointInfo(void) const =0
Get the point information.
bool hasChannel(const char *name) const
Determine if there is a channel with a given name.
virtual count_type getNumPoints(void) const =0
Get the number of points.
virtual double getTotalWork(const Bounds &bounds, double fraction) const =0
Get the amount of work needed to decode bounds.
virtual void loadMetadata(Metadata &metadata, bool sanitize) const =0
Load the point clouds metadata.
const ChannelInfo * getChannel(const char *name) const
Access the channel data.
virtual const double * getScale(void) const =0
Get the quantization scale.
size_t getNumChannels(void) const
Get the number of channels.
virtual const char * getWKT(void) const =0
Get the spatial reference system.
virtual size_t getNumClassIdNames(void) const =0
Get the number of classification names.
virtual PointIterator * createIterator(const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) const =0
Get a PointIterator for a given bounds.
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.
ProgressDelegate is the base class for progress and interrupt reporting.
Bounds is a 3-dimensional bounding box.
Definition: Types.h:124

Extensis