MrSID Decode SDK for LiDAR Reference Manual  1.1.5.5244
MG4PointReader.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_MG4_POINT_READER_H__
9 #define __LIDAR_MG4_POINT_READER_H__
10 
11 #include "lidar/PointReader.h"
12 #include "lidar/Stream.h"
13 
14 LT_BEGIN_LIDAR_NAMESPACE
15 
16 class WaveletDecoderInfo;
17 
27 {
28  CONCRETE_OBJECT(MG4PointReader);
29 public:
37  void init(const char *path);
45  void init(IO *io);
46 
47  void loadMetadata(Metadata &metadata, bool sanitize) const;
48 
49  char const * const *getClassIdNames(void) const;
50  size_t getNumClassIdNames(void) const;
51 
52  const char *getFileFormatString(void) const;
53 
54  double getTotalWork(const Bounds &bounds, double fraction) const;
56  double fraction,
57  const PointInfo &pointInfo,
58  ProgressDelegate *delegate) const;
59 
60 protected:
61  char m_version[32];
62 
63  WaveletDecoderInfo *m_waveletInfo;
65  char **m_classId;
66  size_t m_numClasses;
68 };
69 
70 LT_END_LIDAR_NAMESPACE
71 #endif // __LIDAR_MG4_POINT_READER_H__
IO is the base class for binary input and output.
Definition: IO.h:26
Location is a helper structure for holding the location of data in a IO object.
Definition: IO.h:137
Metadata is a container for storing metadata about the point cloud.
Definition: Metadata.h:61
MG4PointReader reads LiDAR-based MrSID files.
char m_version[32]
WaveletDecoderInfo * m_waveletInfo
void init(const char *path)
Initalize with a filename.
char const *const * getClassIdNames(void) const
Get the classification names.
size_t getNumClassIdNames(void) const
Get the number of classification names.
double getTotalWork(const Bounds &bounds, double fraction) const
Get the amount of work needed to decode bounds.
const char * getFileFormatString(void) const
Get the file type and version.
void init(IO *io)
Initalize with a IO object.
PointIterator * createIterator(const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) const
Get a PointIterator for a given bounds.
IO::Location m_metadata
void loadMetadata(Metadata &metadata, bool sanitize) const
Load the point clouds metadata.
PointInfo is a group of ChannelInfo objects.
Definition: PointData.h:182
PointIterator is the base class for accessing the point cloud.
Definition: PointIterator.h:28
PointReader is the base class for reading LiDAR file formats.
Definition: PointReader.h:24
ProgressDelegate is the base class for progress and interrupt reporting.
Bounds is a 3-dimensional bounding box.
Definition: Types.h:124

Extensis