#include <PointWriter.h>
Public Types | |
typedef PointSource::count_type | count_type |
Public Member Functions | |
void | setMetadata (const Metadata &metadata) |
Set the metadata. | |
Metadata & | getMetadata (void) |
Get the Metadata. | |
virtual void | setQuantization (const double scale[3], const double offset[3])=0 |
Set the quantization. | |
virtual const double * | getScale (void) const =0 |
Get the quantization scale. | |
virtual const double * | getOffset (void) const =0 |
Get the quantization offset. | |
virtual count_type | write (const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate)=0 |
Write out the point cloud. | |
void | setChunckSize (size_t size) |
Protected Member Functions | |
void | init (const PointSource *src) |
Initalize the object. | |
const PointSource * | getSrc (void) const |
Get the input PointSource. | |
void | groomMetadata (const Bounds &bounds, double fraction) |
Remove metadata that is inappropriate for the given bounds and fraction. | |
size_t | getChunckSize (void) const |
Definition at line 24 of file PointWriter.h.
Definition at line 28 of file PointWriter.h.
void PointWriter::setMetadata | ( | const Metadata & | metadata | ) |
This method sets the metadata that will be written to the output file. By default the metadata from the PointSource is not copied.
metadata | the source metadata |
Metadata& PointWriter::getMetadata | ( | void | ) |
This method returns the metadata that will be writen to the output file.
virtual void PointWriter::setQuantization | ( | const double | scale[3], | |
const double | offset[3] | |||
) | [pure virtual] |
This method set the output files quantization values.
scale | the quantization scale factor (may be NULL) | |
offset | the quantization offset (may be NULL) |
The default values are the input PointSource values.
Implemented in SimplePointWriter.
virtual const double* PointWriter::getScale | ( | void | ) | const [pure 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.
Implemented in SimplePointWriter.
virtual const double* PointWriter::getOffset | ( | void | ) | const [pure 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.
Implemented in SimplePointWriter.
virtual count_type PointWriter::write | ( | const Bounds & | bounds, | |
double | fraction, | |||
const PointInfo & | pointInfo, | |||
ProgressDelegate * | delegate | |||
) | [pure virtual] |
This method writes the output 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) | |
pointInfo | the list of channels to be extracted | |
delegate | a ProgressDelegate for feedback (can be NULL) |
Implemented in SimplePointWriter.
void PointWriter::setChunckSize | ( | size_t | size | ) |
void PointWriter::init | ( | const PointSource * | src | ) | [protected] |
src | the input PointSource |
const PointSource* PointWriter::getSrc | ( | void | ) | const [protected] |
This method returns the input PointSource.
void PointWriter::groomMetadata | ( | const Bounds & | bounds, | |
double | fraction | |||
) | [protected] |
bounds | the region of interest | |
fraction | the fraction of the points you want |
size_t PointWriter::getChunckSize | ( | void | ) | const [protected] |
LizardTech |