
Public Member Functions | |
| FileConverter (std::string inputFileName, std::string outputFileName) | |
| Constructor. | |
| virtual | ~FileConverter () |
| Destructor. | |
| bool | Convert (ParametersWalz ¶m) |
| Do the conversion. | |
| bool | Compare (ParametersWalz ¶m, Point3D &RMSE, Point3D &maxError) |
| Compare the points given as constructor arguments. | |
| io * | GetReader () |
| Get the reader instance. | |
| io * | GetWriter () |
| Get the writer instance. | |
| bool | DeleteIO (bool bDeleteReader=true, bool bDeleteWriter=true) |
| Delete Input/Output members. | |
| virtual void | OnReaderIsInitialized () |
| Called when reader is initialized. | |
| virtual void | OnWriterIsInitialized () |
| Called when writer has been initialized. | |
| virtual void | OnBlockIsRead () |
| Called when a block has been read. | |
| virtual void | OnBlockIsCompressed () |
| Called when a block has been compressed. | |
| virtual void | OnBlockIsWritten () |
| Called when a block has been written to file. | |
Private Attributes | |
| io * | cpReader |
| Reader instance. | |
| io * | cpWriter |
| Writer instance. | |
| ParametersWalz | cParameters |
| Parameters to be applied. | |
| std::string | cInputFile |
| Input file name. | |
| std::string | cOutputFile |
| Output file name. | |
Converts from one point cloud file format to another
| FileConverter::FileConverter | ( | std::string | inputFileName, | |
| std::string | outputFileName | |||
| ) |
Constructor.
The file formats are determined from the file name extensions
| inputFileName | Input file name | |
| outputFileName | Output file name |
| FileConverter::~FileConverter | ( | ) | [virtual] |
Destructor.
Deletes reader and writer if any
| bool FileConverter::Convert | ( | ParametersWalz & | param | ) |
| bool FileConverter::Compare | ( | ParametersWalz & | param, | |
| laserlib::Point3D & | RMSE, | |||
| laserlib::Point3D & | maxError | |||
| ) |
Compare the points given as constructor arguments.
Only the X,Y,Z coordinates are compared. The files are assumed to contain the same number of points.
| param | Parameters to guide read/write | |
| RMSE | Root mean sqaure error in x, y, z of all points | |
| maxError | Maximum error in x, y, z |
| io * FileConverter::GetReader | ( | ) |
Get the reader instance.
Maintained by this class - do not delete!
| io * FileConverter::GetWriter | ( | ) |
Get the writer instance.
Maintained by this class - do not delete!
| bool FileConverter::DeleteIO | ( | bool | bDeleteReader = true, |
|
| bool | bDeleteWriter = true | |||
| ) |
Delete Input/Output members.
| bDeleteReader | Delete reader if true | |
| bDeleteWriter | Delete write if true |
| virtual void laserlib::FileConverter::OnReaderIsInitialized | ( | ) | [inline, virtual] |
Called when reader is initialized.
File has been opened. First point has been set as "origin".
| virtual void laserlib::FileConverter::OnWriterIsInitialized | ( | ) | [inline, virtual] |
Called when writer has been initialized.
File has been opened
| virtual void laserlib::FileConverter::OnBlockIsRead | ( | ) | [inline, virtual] |
Called when a block has been read.
The coordinates are available in the readers io::GetX(), io::GetY(), io::GetZ()
Reimplemented in sgis::image::WalzFileConverterWX.
| virtual void laserlib::FileConverter::OnBlockIsCompressed | ( | ) | [inline, virtual] |
Called when a block has been compressed.
It has not really been compressed, just e.g. wavelet transformed etc. The writer now contains wavelet coefficients id lidarlib::walz is the writer.
Reimplemented in sgis::image::WalzFileConverterWX.
| virtual void laserlib::FileConverter::OnBlockIsWritten | ( | ) | [inline, virtual] |
Called when a block has been written to file.
io* laserlib::FileConverter::cpReader [private] |
Reader instance.
io* laserlib::FileConverter::cpWriter [private] |
Writer instance.
Parameters to be applied.
std::string laserlib::FileConverter::cInputFile [private] |
Input file name.
std::string laserlib::FileConverter::cOutputFile [private] |
Output file name.
1.5.6