#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. | |
void | init (const PointSource *src, IO *io, const char *format) |
Initialize with input PointSource and output IO object and format string. | |
void | init (const PointSource *src, const char *path, const PointInfo &fieldInfo) |
Initialize with input PointSource and output filename and field list. | |
void | init (const PointSource *src, IO *io, const PointInfo &fieldInfo) |
Initialize with input PointSource and output IO object and field list. | |
void | writeBegin (const PointInfo &pointInfo) |
Begin writing the file. | |
void | writePoints (const PointData &points, size_t numPoints, ProgressDelegate *delegate) |
Write a set of points. | |
void | writeEnd (PointSource::count_type numPoints, const Bounds &bounds) |
Finish writing the file. | |
Protected Attributes | |
StreamWriter | m_stream |
size_t | m_numHandlers |
Handler * | m_handler |
Definition at line 26 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, | |
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, | |
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 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 |
void TXTPointWriter::writeBegin | ( | const PointInfo & | pointInfo | ) | [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.
void TXTPointWriter::writePoints | ( | const PointData & | points, | |
size_t | numPoints, | |||
ProgressDelegate * | delegate | |||
) | [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) |
Implements SimplePointWriter.
void TXTPointWriter::writeEnd | ( | PointSource::count_type | numPoints, | |
const Bounds & | bounds | |||
) | [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.
StreamWriter TXTPointWriter::m_stream [protected] |
Definition at line 92 of file TXTPointWriter.h.
size_t TXTPointWriter::m_numHandlers [protected] |
Definition at line 95 of file TXTPointWriter.h.
Handler* TXTPointWriter::m_handler [protected] |
Definition at line 96 of file TXTPointWriter.h.
LizardTech |