Helios++
Helios software for LiDAR simulations
helios::filems::LasVectorialSyncFileMeasurementWriter Class Reference

Concrete class specializing LasSyncFileWriter to write a vector of measurements to a LAS file. More...

#include <LasVectorialSyncFileMeasurementWriter.h>

Inheritance diagram for helios::filems::LasVectorialSyncFileMeasurementWriter:
Collaboration diagram for helios::filems::LasVectorialSyncFileMeasurementWriter:

Public Member Functions

 LasVectorialSyncFileMeasurementWriter (const std::string &path, bool const compress=false, double const scaleFactor=0.0001, glm::dvec3 const offset=glm::dvec3(0, 0, 0), double const minIntensity=0.0, double const deltaIntensity=1000000.0, bool const createWriter=true)
 LAS vectorial synchronous file measurement vector writer constructor. More...
 
- Public Member Functions inherited from helios::filems::LasSyncFileWriter< vector< Measurement > const &, glm::dvec3 const & >
 LasSyncFileWriter ()
 Default constructor for Synchronous LAS file writer.
 
 LasSyncFileWriter (const std::string &path, bool const compress=false, double const scaleFactor=0.0001, glm::dvec3 const offset=glm::dvec3(0, 0, 0), double const minIntensity=0.0, double const deltaIntensity=1000000.0, bool const createWriter=true)
 Synchronous LAS file writer constructor. More...
 
virtual void createLasWriter (const std::string &path, bool const compress)
 Creation of the LasWriter itself, including LASpoint initialization. More...
 
virtual void craftSpec (LasWriterSpec &lws)
 Assist the LasSyncFileWriter::createLasWriters method by crafting the given specification. More...
 
void finish () override
 LasSyncFileWriter updates header and guarantees writings have been done only after the finish method has been invoked. If it has not been manually invoked, then it will when destroying the instance. Once the finish method has been invoked, the LasSyncFileWriter should not be used again. More...
 
- Public Member Functions inherited from helios::filems::SingleSyncFileWriter< WriteArgs ... >
 SingleSyncFileWriter ()
 Default constructor for synchronous single-file writer.
 
 SingleSyncFileWriter (const std::string &path)
 Instantiate a SingleSyncFileWriter which writes to file at given path. More...
 
void write (WriteArgs ... writeArgs) override
 Synchronously write to a single file. More...
 
std::string getPath (size_t const idx) const override
 Obtain the path to the file. More...
 
- Public Member Functions inherited from helios::filems::SyncFileWriter< WriteArgs ... >
 SyncFileWriter ()=default
 Default constructor for synchronous file writer.
 
std::string getPath ()
 Non index version of the SyncFileWriter::getPath(size_t const) function. More...
 

Protected Attributes

LasMeasurementWriteStrategy lmws
 The measurement write strategy that is wrapped by the main write strategy in a vectorial fashion ( filems::LasSyncFileWriter::writeStrategy ) More...
 
- Protected Attributes inherited from helios::filems::LasSyncFileWriter< vector< Measurement > const &, glm::dvec3 const & >
LasWriterSpec lws
 The specification defining the LAS writer.
 
std::shared_ptr< LASwriter > lw
 LASwriter. Used to write to LAS file.
 
bool finished
 Flag used to control the sync writer status.
 
- Protected Attributes inherited from helios::filems::SingleSyncFileWriter< WriteArgs ... >
std::string path
 Path to file to be written.
 
std::mutex mutex
 Mutex to synchronize concurrent write operations.
 
std::shared_ptr< WriteStrategy< WriteArgs ... > > writeStrategy
 The write strategy specifying how to write data to file.
 

Detailed Description

Concrete class specializing LasSyncFileWriter to write a vector of measurements to a LAS file.

Author
Alberto M. Esmoris Pena @verison 1.0
See also
filems::LasSyncFileWriter
filems::LasMeasurementWriteStrategy
Measurement
LasSyncFileMeasurementWriter

Constructor & Destructor Documentation

◆ LasVectorialSyncFileMeasurementWriter()

helios::filems::LasVectorialSyncFileMeasurementWriter::LasVectorialSyncFileMeasurementWriter ( const std::string &  path,
bool const  compress = false,
double const  scaleFactor = 0.0001,
glm::dvec3 const  offset = glm::dvec3(0, 0, 0),
double const  minIntensity = 0.0,
double const  deltaIntensity = 1000000.0,
bool const  createWriter = true 
)
inlineexplicit

LAS vectorial synchronous file measurement vector writer constructor.

See also
filems::LasSyncFileWriter::LasSyncFileWriter

Member Data Documentation

◆ lmws

LasMeasurementWriteStrategy helios::filems::LasVectorialSyncFileMeasurementWriter::lmws
protected

The measurement write strategy that is wrapped by the main write strategy in a vectorial fashion ( filems::LasSyncFileWriter::writeStrategy )

See also
filems::LasMeasurementWriteStrategy

The documentation for this class was generated from the following file: