MrSID Decode SDK for LiDAR Reference Manual  1.1.3.4427
TXTPointWriter.h
Go to the documentation of this file.
1 /* //////////////////////////////////////////////////////////////////////////
2 // //
3 // This code is Copyright (c) 2008-2010 LizardTech, Inc, 1008 Western //
4 // Avenue, Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
5 // prohibited. Access to and use of this code is permitted only under //
6 // license from LizardTech, Inc. Portions of the code are protected by //
7 // US and foreign patents and other filings. All Rights Reserved. //
8 // //
10 /* PUBLIC */
11 
12 #ifndef __LIDAR_TXT_POINT_WRITER_H__
13 #define __LIDAR_TXT_POINT_WRITER_H__
14 
16 #include "lidar/Stream.h"
17 
18 LT_BEGIN_LIDAR_NAMESPACE
19 
27 {
28  CONCRETE_OBJECT(TXTPointWriter);
29 public:
42  void init(const PointSource *src, const char *path, const char *format);
55  void init(const PointSource *src, IO *io, const char *format);
56 
69  void init(const PointSource *src, const char *path, const PointInfo &fieldInfo);
82  void init(const PointSource *src, IO *io, const PointInfo &fieldInfo);
83 
84  void writeBegin(const PointInfo &pointInfo);
85  void writePoints(const PointData &points,
86  size_t numPoints,
87  ProgressDelegate *delegate);
88  void writeEnd(PointSource::count_type numPoints,
89  const Bounds &bounds);
90 
91 protected:
92  struct Handler;
93 
95  size_t m_numHandlers;
96  Handler *m_handler;
97 };
98 
99 LT_END_LIDAR_NAMESPACE
100 #endif // __LIDAR_TXT_POINT_WRITER_H__
Handler * m_handler
Bounds is a 3-dimensional bounding box.
Definition: Types.h:127
void writePoints(const PointData &points, size_t numPoints, ProgressDelegate *delegate)
Write a set of points.
ProgressDelegate is the base class for progress and interrupt reporting.
PointSource is the base class of LiDAR point cloud extraction pipeline.
Definition: PointSource.h:40
PointInfo is a group of ChannelInfo objects.
Definition: PointData.h:181
SimplePointWriter handles some of the bookkeeping of writing a file.
void init(const PointSource *src, const char *path, const char *format)
Initialize with input PointSource and output filename and format string.
StreamWriter implements buffered writes to IO objects.
Definition: Stream.h:204
PointData is a group of ChannelData objects.
Definition: PointData.h:411
void writeBegin(const PointInfo &pointInfo)
Begin writing the file.
size_t m_numHandlers
IO is the base class for binary input and output.
Definition: IO.h:29
TXTPointWriter writes LiDAR-based Text files.
StreamWriter m_stream
lt_int64 count_type
Definition: PointSource.h:44
void writeEnd(PointSource::count_type numPoints, const Bounds &bounds)
Finish writing the file.

LizardTech