8#ifndef __LIDAR_TXT_POINT_READER_H__
9#define __LIDAR_TXT_POINT_READER_H__
14LT_BEGIN_LIDAR_NAMESPACE
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);
67 size_t header,
bool doFullInit);
81 size_t header,
bool doFullInit);
189LT_END_LIDAR_NAMESPACE
#define CONCRETE_OBJECT(classname)
CONCRETE_OBJECT(): should be used when deriving classes that are concrete.
IO is the base class for binary input and output.
Metadata is a container for storing metadata about the point cloud.
PointInfo is a group of ChannelInfo objects.
PointIterator is the base class for accessing the point cloud.
PointReader is the base class for reading LiDAR file formats.
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.
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.