|
MrSID Decode SDK for LiDAR Reference Manual 1.1.5.5244
|
TXTPointWriter writes LiDAR-based Text files. More...
#include <TXTPointWriter.h>


Public Member Functions | |
| void | init (const PointSource *src, const char *path, const char *format) |
| Initialize with input PointSource and output filename and format string. More... | |
| void | init (const PointSource *src, IO *io, const char *format) |
| Initialize with input PointSource and output IO object and format string. More... | |
| void | init (const PointSource *src, const char *path, const PointInfo &fieldInfo) |
| Initialize with input PointSource and output filename and field list. More... | |
| void | init (const PointSource *src, IO *io, const PointInfo &fieldInfo) |
| Initialize with input PointSource and output IO object and field list. More... | |
| void | writeBegin (const PointInfo &pointInfo) |
| Begin writing the file. More... | |
| void | writePoints (const PointData &points, size_t numPoints, ProgressDelegate *delegate) |
| Write a set of points. More... | |
| void | writeEnd (PointSource::count_type numPoints, const Bounds &bounds) |
| Finish writing the file. More... | |
| bool | supportedChannels (const PointInfo &inputPointInfo, PointInfo &supportedPointInfo) const |
| Remove the unsupported channels. More... | |
Public Member Functions inherited from SimplePointWriter | |
| void | setQuantization (const double scale[3], const double offset[3]) |
| Set the quantization. More... | |
| const double * | getScale (void) const |
| Get the quantization scale. More... | |
| const double * | getOffset (void) const |
| Get the quantization offset. More... | |
| count_type | write (const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) |
| virtual void | writeBegin (const PointInfo &pointInfo)=0 |
| Begin writing the file. More... | |
| virtual void | writePoints (const PointData &points, size_t numPoints, ProgressDelegate *delegate)=0 |
| Write a set of points. More... | |
| virtual void | writeEnd (PointSource::count_type numPoints, const Bounds &bounds)=0 |
| Finish writing the file. More... | |
Public Member Functions inherited from PointWriter | |
| void | setMetadata (const Metadata &metadata) |
| Set the metadata. More... | |
| Metadata & | getMetadata (void) |
| Get the Metadata. More... | |
| virtual void | setQuantization (const double scale[3], const double offset[3])=0 |
| Set the quantization. More... | |
| virtual const double * | getScale (void) const =0 |
| Get the quantization scale. More... | |
| virtual const double * | getOffset (void) const =0 |
| Get the quantization offset. More... | |
| virtual count_type | write (const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate)=0 |
| Write out the point cloud. More... | |
| void | setChunckSize (size_t size) |
| virtual bool | supportedChannels (const PointInfo &inputPointInfo, PointInfo &supportedPointInfo) const =0 |
| Remove the unsupported channels. More... | |
Public Member Functions inherited from Object | |
| int | retain (void) const |
| Increment the reference count by one. More... | |
| int | release (void) const |
| Decrement the reference count by one. More... | |
Protected Attributes | |
| StreamWriter | m_stream |
| size_t | m_numHandlers |
| Handler * | m_handler |
Protected Attributes inherited from SimplePointWriter | |
| double | m_offsets [3] |
| double | m_scale [3] |
Additional Inherited Members | |
Public Types inherited from PointWriter | |
| typedef PointSource::count_type | count_type |
Protected Member Functions inherited from SimplePointWriter | |
| virtual double | getTotalWork (const Bounds &bounds, double fraction) const |
| Get the amount of work needed to write the file. More... | |
Protected Member Functions inherited from PointWriter | |
| void | init (const PointSource *src) |
| Initalize the object. More... | |
| const PointSource * | getSrc (void) const |
| Get the input PointSource. More... | |
| void | groomMetadata (const Bounds &bounds, double fraction) |
| Remove metadata that is inappropriate for the given bounds and fraction. More... | |
| size_t | getChunckSize (void) const |
Protected Member Functions inherited from Object | |
| Object (void) | |
| virtual | ~Object (void) |
The TXTPointWriter class writes point clouds to text files. Each line of the text file is point with the fields delimited by white spaces.
Definition at line 22 of file TXTPointWriter.h.
| void TXTPointWriter::init | ( | const PointSource * | src, |
| const char * | path, | ||
| const char * | format | ||
| ) |
This method initializes the writer with a intput PointSource and output filename and format string. The format string defines the order of the text columns.
| src | the input PointSource |
| path | the output filename |
| format | the channel layout format string, see TXTPointReader::parseString(). |
| void TXTPointWriter::init | ( | const PointSource * | src, |
| const char * | path, | ||
| const PointInfo & | fieldInfo | ||
| ) |
This method initializes the writer with a intput PointSource and output filename and field list. The field list defines the order of the text columns.
| src | the input PointSource |
| path | the output filename |
| fieldInfo | a ChannelInfo array describing the column layout |
| numFields | the number of fields |
| void TXTPointWriter::init | ( | const PointSource * | src, |
| IO * | io, | ||
| const char * | format | ||
| ) |
This method initializes the writer with a intput PointSource and output IO object and format string. The format string defines the order of the text columns.
| src | the input PointSource |
| path | the output filename |
| format | the channel layout format string, see TXTPointReader::parseString(). |
| void TXTPointWriter::init | ( | const PointSource * | src, |
| IO * | io, | ||
| const PointInfo & | fieldInfo | ||
| ) |
This method initializes the writer with a intput PointSource and output IO object and field list. The field list defines the order of the text columns.
| src | the input PointSource |
| path | the output filename |
| fieldInfo | a ChannelInfo array describing the column layout |
| numFields | the number of fields |
|
virtual |
This method take a list of channels and returns the supported channels.
| inputPointInfo | a list of channels |
| supportedPointInfo | a filtered version of inputPointInfo |
Implements PointWriter.
|
virtual |
This method is called to start writing file.
| channelInfo | an array describing which channels are being saved |
| numChannels | the number of channels |
Implements SimplePointWriter.
|
virtual |
This method is called when no more points are left.
| numPoints | the total number of points written |
| bounds | the tight boundsing box the points |
Implements SimplePointWriter.
|
virtual |
This method is called when points need to be written.
| points | the points to be written |
| numPoints | the number of points to write |
| delegete | the progress delegete to be updated (can be nullptr) |
Implements SimplePointWriter.
|
protected |
Definition at line 95 of file TXTPointWriter.h.
|
protected |
Definition at line 94 of file TXTPointWriter.h.
|
protected |
Definition at line 93 of file TXTPointWriter.h.
| Extensis |