MrSID Decode SDK for LiDAR Reference Manual 1.1.5.5244
TXTPointReader.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_TXT_POINT_READER_H__
9#define __LIDAR_TXT_POINT_READER_H__
10
11#include "lidar/PointReader.h"
12#include "lidar/IO.h"
13
14LT_BEGIN_LIDAR_NAMESPACE
15
23{
25public:
26
38 void init(const char *path, const char *format,
39 size_t header, bool doFullInit);
51 void init(IO *io, const char *format,
52 size_t header, bool doFullInit);
53
66 void init(const char *path, const PointInfo &fieldInfo,
67 size_t header, bool doFullInit);
80 void init(IO *io, const PointInfo &fieldInfo,
81 size_t header, bool doFullInit);
82
92
93 const char *getFileFormatString(void) const;
94
95 void loadMetadata(Metadata &metadata, bool sanitize) const;
96
97 double getTotalWork(const Bounds &bounds, double fraction) const;
98
100 double fraction,
101 const PointInfo &pointInfo,
102 ProgressDelegate *delegate) const;
103
132 static void parseFormat(const char *format,
133 PointInfo &fieldInfo);
144 static void parseFormat(const char *format,
145 PointInfo &fieldInfo,
146 const PointInfo &pointInfo);
147
174 static void parseQuantization(const char *format,
175 PointInfo &fieldInfo);
176
177
178protected:
179 void setBoundsAndNumPoints(bool doFullInit);
180
182 size_t m_header;
185
186 class Iterator;
187};
188
189LT_END_LIDAR_NAMESPACE
190#endif // __LIDAR_TXT_POINT_READER_H__
#define CONCRETE_OBJECT(classname)
CONCRETE_OBJECT(): should be used when deriving classes that are concrete.
Definition: Object.h:51
IO is the base class for binary input and output.
Definition: IO.h:26
Metadata is a container for storing metadata about the point cloud.
Definition: Metadata.h:61
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.
TXTPointReader reads LiDAR-based Text files.
void init(IO *io, const PointInfo &fieldInfo, size_t header, bool doFullInit)
Initialize with IO object and field list.
const char * getFileFormatString(void) const
Get the file type and version.
double getTotalWork(const Bounds &bounds, double fraction) const
Get the amount of work needed to decode bounds.
void init(const char *path, const PointInfo &fieldInfo, size_t header, bool doFullInit)
Initialize with filename and field list.
PointIterator * createIterator(const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) const
Get a PointIterator for a given bounds.
static void parseFormat(const char *format, PointInfo &fieldInfo, const PointInfo &pointInfo)
Build a ChannelInfo array form a format string.
PointInfo m_fieldInfo
void init(IO *io, const char *format, size_t header, bool doFullInit)
Initialize with IO object and format string.
void setBoundsAndNumPoints(bool doFullInit)
static void parseFormat(const char *format, PointInfo &fieldInfo)
Build a ChannelInfo array form a format string.
void init(const char *path, const char *format, size_t header, bool doFullInit)
Initialize with filename and format string.
static void parseQuantization(const char *format, PointInfo &fieldInfo)
Update the quantization values of a PointInfo.
void initBoundsAndNumPoints(void)
Setup the bounds and number of points.
void loadMetadata(Metadata &metadata, bool sanitize) const
Load the point clouds metadata.
Bounds is a 3-dimensional bounding box.
Definition: Types.h:124

Extensis