MrSID Decode SDK for LiDAR Reference Manual
1.1.3.4427
|
SimplePointWriter handles some of the bookkeeping of writing a file.
#include <SimplePointWriter.h>
Public Member Functions | |
void | setQuantization (const double scale[3], const double offset[3]) |
Set the quantization. | |
const double * | getScale (void) const |
Get the quantization scale. | |
const double * | getOffset (void) const |
Get the quantization offset. | |
count_type | write (const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) |
virtual void | writeBegin (const PointInfo &pointInfo)=0 |
Begin writing the file. | |
virtual void | writePoints (const PointData &points, size_t numPoints, ProgressDelegate *delegate)=0 |
Write a set of points. | |
virtual void | writeEnd (PointSource::count_type numPoints, const Bounds &bounds)=0 |
Finish writing the file. | |
Protected Member Functions | |
virtual double | getTotalWork (const Bounds &bounds, double fraction) const |
Get the amount of work needed to write the file. | |
Protected Attributes | |
double | m_offsets [3] |
double | m_scale [3] |
Definition at line 22 of file SimplePointWriter.h.
const double* SimplePointWriter::getOffset | ( | void | ) | const [virtual] |
This method returns the quantization offset for X, Y, and Z channels. It returns NULL then the point cloud is not quantized or quantization is unknown.
Implements PointWriter.
const double* SimplePointWriter::getScale | ( | void | ) | const [virtual] |
This method returns the quantization scale factors for X, Y, and Z channels. It returns NULL then the point cloud is not quantized or quantization is unknown.
Implements PointWriter.
virtual double SimplePointWriter::getTotalWork | ( | const Bounds & | bounds, |
double | fraction | ||
) | const [protected, virtual] |
This method returns the work needed to wirte the file.
bounds | the region of interest (HUGE_VAL are handled) |
fraction | the fraction of the points you want (use 1.0 for all the points and use 0.1 to keep every tenth point) |
void SimplePointWriter::setQuantization | ( | const double | scale[3], |
const double | offset[3] | ||
) | [virtual] |
This method set the output files quantization values.
scale | the quantization scale factor (may be NULL) |
offset | the quantization offset (may be NULL) |
Implements PointWriter.
count_type SimplePointWriter::write | ( | const Bounds & | bounds, |
double | fraction, | ||
const PointInfo & | pointInfo, | ||
ProgressDelegate * | delegate | ||
) | [virtual] |
Implements PointWriter.
virtual void SimplePointWriter::writeBegin | ( | const PointInfo & | pointInfo | ) | [pure virtual] |
This method is called to start writing file.
channelInfo | an array describing which channels are being saved |
numChannels | the number of channels |
Implemented in TXTPointWriter.
virtual void SimplePointWriter::writeEnd | ( | PointSource::count_type | numPoints, |
const Bounds & | bounds | ||
) | [pure 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 |
Implemented in TXTPointWriter.
virtual void SimplePointWriter::writePoints | ( | const PointData & | points, |
size_t | numPoints, | ||
ProgressDelegate * | delegate | ||
) | [pure 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 NULL) |
Implemented in TXTPointWriter.
double SimplePointWriter::m_offsets[3] [protected] |
Definition at line 94 of file SimplePointWriter.h.
double SimplePointWriter::m_scale[3] [protected] |
Definition at line 95 of file SimplePointWriter.h.