Helios++
Helios software for LiDAR simulations
|
Class to handle writing of trajectories to generate HELIOS++ output virtual trajectories. More...
#include <TrajectoryWriter.h>
Public Member Functions | |
TrajectoryWriter ()=default | |
Default constructor for trajectory writer. | |
void | configure (string const &parent, string const &prefix) |
Configure the output path for the trajectory writer. More... | |
void | writeTrajectory (Trajectory const &t) |
Write a trajectory point. More... | |
void | writeTrajectoryUnsafe (Trajectory const &t) const |
Like filems::TrajectoryWriter::writeTrajectory but faster because there is no validation. More... | |
void | setSyncFileWriter (shared_ptr< SyncFileWriter< Trajectory const & >> sfw) |
Set synchronous file writer for trajectory writer. More... | |
shared_ptr< SyncFileWriter< Trajectory const & > > | getSyncFileWriter () const |
Get the synchronous file writer used to write trajectories. More... | |
void | setOutputFilePath (string const &path) |
Set path to output file. More... | |
fs::path | getOutputFilePath () const |
Get the path to the output file. More... | |
string | getOutputPath () const |
![]() | |
HeliosWriter ()=default | |
Default constructor for HELIOS++ writer. | |
virtual void | finish () |
Finish the sync file writer. More... | |
virtual bool | hasWriter () const |
Check whether the HeliosWriter has a non null writer (true) or not (false) More... | |
bool | isLasOutput () const |
Get the LAS output flag. More... | |
void | setLasOutput (bool const lasOutput) |
Set the LAS output flag. More... | |
bool | isLas10 () const |
Get the LAS 10 specification flag. More... | |
void | setLas10 (bool const las10) |
Set the LAS output flag. More... | |
bool | isZipOutput () const |
Get the zip output flag. More... | |
void | setZipOutput (bool const zipOutput) |
Set the zip output flag. More... | |
double | getLasScale () const |
Obtain the LAS scale of the measurement writer. More... | |
void | setLasScale (double const lasScale) |
Set the LAS scale of the measurement writer. More... | |
Additional Inherited Members | |
![]() | |
shared_ptr< SyncFileWriter< WriteArgs ... > > | sfw |
Synchronous file writer. More... | |
bool | lasOutput |
Flag specifying if detector output must be written in LAS format (true) or not (false) More... | |
bool | las10 |
Flag specifying if detect output must be writing in LAS 1.0 (LAS 1.4 is written by default) | |
bool | zipOutput |
Flag specifying if detector output must be zipped (true) or not (false) | |
double | lasScale |
Scale factor specification to be used when LAS output format specified. More... | |
Class to handle writing of trajectories to generate HELIOS++ output virtual trajectories.
void TrajectoryWriter::configure | ( | string const & | parent, |
string const & | prefix | ||
) |
Configure the output path for the trajectory writer.
parent | Path to output directory for trajectory files |
prefix | Prefix for the name of the output file |
|
inlinevirtual |
Get the path to the output file.
Reimplemented from helios::filems::HeliosWriter< Trajectory const & >.
|
inlinevirtual |
Reimplemented from helios::filems::HeliosWriter< Trajectory const & >.
|
inline |
Get the synchronous file writer used to write trajectories.
void TrajectoryWriter::setOutputFilePath | ( | string const & | path | ) |
Set path to output file.
path | New path to output file |
|
inline |
Set synchronous file writer for trajectory writer.
sfw | Synchronous file writer to be used to write trajectory |
void TrajectoryWriter::writeTrajectory | ( | Trajectory const & | t | ) |
Write a trajectory point.
t | Trajectory point to be written |
|
inline |
Like filems::TrajectoryWriter::writeTrajectory but faster because there is no validation.