MrSID Decode SDK for LiDAR Reference Manual 1.1.5.5244
TXTPointWriter.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_WRITER_H__
9#define __LIDAR_TXT_POINT_WRITER_H__
10
12#include "lidar/Stream.h"
13
14LT_BEGIN_LIDAR_NAMESPACE
15
23{
25public:
38 void init(const PointSource *src, const char *path, const char *format);
51 void init(const PointSource *src, IO *io, const char *format);
52
65 void init(const PointSource *src, const char *path, const PointInfo &fieldInfo);
78 void init(const PointSource *src, IO *io, const PointInfo &fieldInfo);
79
80 void writeBegin(const PointInfo &pointInfo);
81 void writePoints(const PointData &points,
82 size_t numPoints,
83 ProgressDelegate *delegate);
85 const Bounds &bounds);
86
87 bool supportedChannels(const PointInfo &inputPointInfo,
88 PointInfo &supportedPointInfo) const;
89
90protected:
91 struct Handler;
92
95 Handler *m_handler;
96};
97
98LT_END_LIDAR_NAMESPACE
99#endif // __LIDAR_TXT_POINT_WRITER_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
PointInfo is a group of ChannelInfo objects.
Definition: PointData.h:182
PointData is a group of ChannelData objects.
Definition: PointData.h:433
PointSource is the base class of LiDAR point cloud extraction pipeline.
Definition: PointSource.h:37
lt_int64 count_type
Definition: PointSource.h:40
ProgressDelegate is the base class for progress and interrupt reporting.
SimplePointWriter handles some of the bookkeeping of writing a file.
StreamWriter implements buffered writes to IO objects.
Definition: Stream.h:201
TXTPointWriter writes LiDAR-based Text files.
void writePoints(const PointData &points, size_t numPoints, ProgressDelegate *delegate)
Write a set of points.
void writeBegin(const PointInfo &pointInfo)
Begin writing the file.
Handler * m_handler
StreamWriter m_stream
void init(const PointSource *src, const char *path, const char *format)
Initialize with input PointSource and output filename and format string.
void init(const PointSource *src, IO *io, const PointInfo &fieldInfo)
Initialize with input PointSource and output IO object and field list.
bool supportedChannels(const PointInfo &inputPointInfo, PointInfo &supportedPointInfo) const
Remove the unsupported channels.
void init(const PointSource *src, const char *path, const PointInfo &fieldInfo)
Initialize with input PointSource and output filename and field list.
void writeEnd(PointSource::count_type numPoints, const Bounds &bounds)
Finish writing the file.
void init(const PointSource *src, IO *io, const char *format)
Initialize with input PointSource and output IO object and format string.
size_t m_numHandlers
Bounds is a 3-dimensional bounding box.
Definition: Types.h:124

Extensis