SimplePointWriter handles some of the bookkeeping of writing a file.
More...
#include <SimplePointWriter.h>
Definition at line 22 of file SimplePointWriter.h.
§ getOffset()
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.
- Note
- By default this will be the same as the PointSources' offset.
Implements PointWriter.
§ getScale()
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.
- Note
- By default this will be the same as the PointSources' scale.
Implements PointWriter.
§ getTotalWork()
virtual double SimplePointWriter::getTotalWork |
( |
const Bounds & |
bounds, |
|
|
double |
fraction |
|
) |
| const |
|
protectedvirtual |
This method returns the work needed to wirte the file.
- Parameters
-
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) |
- Note
- This value does not include the work needed to read the source points.
§ setQuantization()
void SimplePointWriter::setQuantization |
( |
const double |
scale[3], |
|
|
const double |
offset[3] |
|
) |
| |
|
virtual |
This method set the output files quantization values.
- Parameters
-
scale | the quantization scale factor (may be NULL) |
offset | the quantization offset (may be NULL) |
- Note
- Some file format requier quantization, so make sure you call this if needed.
-
The default values are the input PointSource values.
Implements PointWriter.
§ write()
§ writeBegin()
virtual void SimplePointWriter::writeBegin |
( |
const PointInfo & |
pointInfo | ) |
|
|
pure virtual |
This method is called to start writing file.
- Parameters
-
channelInfo | an array describing which channels are being saved |
numChannels | the number of channels |
Implemented in TXTPointWriter.
§ writeEnd()
This method is called when no more points are left.
- Parameters
-
numPoints | the total number of points written |
bounds | the tight boundsing box the points |
- Note
- On faliure writeEnd() is called with numPoints = 0 and bounds = Bounds::Huge()
Implemented in TXTPointWriter.
§ writePoints()
This method is called when points need to be written.
- Parameters
-
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.
§ m_offsets
double SimplePointWriter::m_offsets[3] |
|
protected |
§ m_scale
double SimplePointWriter::m_scale[3] |
|
protected |
The documentation for this class was generated from the following file: