Helios++
Helios software for LiDAR simulations
|
Parser for helios-plusplus invocation arguments. More...
#include <ArgumentsParser.h>
Public Member Functions | |
ArgumentsParser (int argc, char **argv) | |
Instantiate an ArgumentsParser. More... | |
bool | parseHelpRequest () |
Parse help request argument if any (-h or –help) More... | |
bool | parseTestRequest () |
Parse test request argument if any (–test) More... | |
bool | parseVersionRequest () |
Parse version request argument if any (–version) More... | |
std::string | parseTestDir () |
Parse test directory specification (not necessary, default one will be relative path "data/test/") More... | |
std::string | parseDemoRequest () |
Parse demo request argument if any (–demo) More... | |
std::string | parseDemoSurveyPath () |
Parse the demo survey path from invocation arguments. More... | |
std::string | parseDemoAssetsPath () |
Parse the demo assets path from invocation arguments. More... | |
std::string | parseSurveyPath () |
Parse the survey path from invocation arguments. More... | |
std::string | parseAssetsPath () |
Parse the assets path from invocation arguments. More... | |
std::string | parseOutputPath () |
Parse the output path from invocation arguments. More... | |
bool | parseWriteWaveform () |
Parse the write waveform flag specification. More... | |
bool | parseCalcEchowidth () |
Parse the calc echo width flag specification. More... | |
std::string | parseSeed () |
Parse the seed for RandomnessGenerator from invocation arguments. More... | |
int | parseParallelizationStrategy () |
Parse the parallelization strategy from invocation arguments. More... | |
std::size_t | parseNJobs () |
Parse the number of jobs from invocation arguments. More... | |
int | parseChunkSize () |
Parse the chunk size for the pulse task dropper from invocation arguments. More... | |
int | parseWarehouseFactor () |
Parse the warehouse factor for the warehouse based parallelization strategy from invocation arguments. More... | |
bool | parseDisablePlatformNoise () |
Parse the disable platform noise flag from invocation arguments. More... | |
bool | parseDisableLegNoise () |
Parse the disable leg noise flag from invocation arguments. More... | |
bool | parseRebuildScene () |
Parse the rebuild scene flag from invocation arguments. More... | |
void | parseLoggingVerbosity () |
Parse the verbosity level for logging from invocation arguments. | |
std::string | parseLoggingOutputMode () |
Parse the logging output mode from invocation arguments. More... | |
bool | parseFullWaveNoise () |
Parse the full wave noise specification. More... | |
bool | parseLasOutput () |
Parse the LAS output specification. More... | |
bool | parseLas10 () |
Parse the LAS version output specification. More... | |
bool | parseZipOutput () |
Parse the ZIP output specification. More... | |
double | parseLasScale () |
Parse the scale factor to be used by the LasSyncFileWriter. More... | |
bool | parseUnzip (std::string *inputPath, std::string *outputPath) |
Parse an unzip request for given input and output path. More... | |
bool | parseFixedIncidenceAngle () |
Parse the fixed incidence angle specification. When fixed incidence angle is requested, incidence angle for all primitives will be exactly 1.0. More... | |
std::string | parseGpsStartTime () |
Parse the fixed GPS time start for Simulation. More... | |
int | parseKDTreeType () |
Parse the type of KDTree. More... | |
size_t | parseKDTreeJobs () |
Parse how many KDTree jobs must be used to build the KDTree. More... | |
size_t | parseKDTreeGeometricJobs () |
Parse how many KDTree geometry-level jobs must be used to build the KDTree upper nodes. More... | |
size_t | parseSAHLossNodes () |
Parse on how many nodes the loss function of the surface area heuristic must be evaluated when building the KDTree. For the Fast SAH it is the number of iterations computed to approximate SAH. More... | |
bool | parseSplitByChannel () |
Parse whether the output point clouds must be exported on a different file per channel or not. More... | |
Private Member Functions | |
int | findIndexOfArgument (std::string &&arg) |
Find the index of received argument. More... | |
Private Attributes | |
int | argc |
Number of arguments in array or arguments (argv) More... | |
char ** | argv |
Array of arguments. More... | |
Parser for helios-plusplus invocation arguments.
|
inline |
Instantiate an ArgumentsParser.
argc | Number of arguments |
argv | Array of arguments |
|
private |
Find the index of received argument.
arg | Argument to be found |
std::string ArgumentsParser::parseAssetsPath | ( | ) |
Parse the assets path from invocation arguments.
bool ArgumentsParser::parseCalcEchowidth | ( | ) |
Parse the calc echo width flag specification.
int ArgumentsParser::parseChunkSize | ( | ) |
Parse the chunk size for the pulse task dropper from invocation arguments.
std::string ArgumentsParser::parseDemoAssetsPath | ( | ) |
Parse the demo assets path from invocation arguments.
std::string ArgumentsParser::parseDemoRequest | ( | ) |
Parse demo request argument if any (–demo)
std::string ArgumentsParser::parseDemoSurveyPath | ( | ) |
Parse the demo survey path from invocation arguments.
bool ArgumentsParser::parseDisableLegNoise | ( | ) |
Parse the disable leg noise flag from invocation arguments.
bool ArgumentsParser::parseDisablePlatformNoise | ( | ) |
Parse the disable platform noise flag from invocation arguments.
bool ArgumentsParser::parseFixedIncidenceAngle | ( | ) |
Parse the fixed incidence angle specification. When fixed incidence angle is requested, incidence angle for all primitives will be exactly 1.0.
bool ArgumentsParser::parseFullWaveNoise | ( | ) |
Parse the full wave noise specification.
std::string ArgumentsParser::parseGpsStartTime | ( | ) |
Parse the fixed GPS time start for Simulation.
bool ArgumentsParser::parseHelpRequest | ( | ) |
Parse help request argument if any (-h or –help)
size_t ArgumentsParser::parseKDTreeGeometricJobs | ( | ) |
Parse how many KDTree geometry-level jobs must be used to build the KDTree upper nodes.
1 : Only node-level parallelization, which corresponds with only 1 node at geometry-level parallelization
0 (default) : As many threads as KDTree jobs
>1 : Exactly this number of threads for geometry-level parallel building
size_t ArgumentsParser::parseKDTreeJobs | ( | ) |
Parse how many KDTree jobs must be used to build the KDTree.
1 : Sequential building
0 (default) : As many threads as available by the system
>1 : Exactly this number of threads for parallel building
int ArgumentsParser::parseKDTreeType | ( | ) |
Parse the type of KDTree.
1 : The simple KDTree built based on balancing through median heuristic
2 : The SAH KDTree built based on surface area heuristic
3 : The SAH KDTree built based on surface area heuristic and best axis
4 (default) : The Fast SAH KDtree built based on a fast iterative approximation of SAH
bool ArgumentsParser::parseLas10 | ( | ) |
Parse the LAS version output specification.
bool ArgumentsParser::parseLasOutput | ( | ) |
Parse the LAS output specification.
double ArgumentsParser::parseLasScale | ( | ) |
Parse the scale factor to be used by the LasSyncFileWriter.
std::string ArgumentsParser::parseLoggingOutputMode | ( | ) |
Parse the logging output mode from invocation arguments.
std::size_t ArgumentsParser::parseNJobs | ( | ) |
Parse the number of jobs from invocation arguments.
std::string ArgumentsParser::parseOutputPath | ( | ) |
Parse the output path from invocation arguments.
int ArgumentsParser::parseParallelizationStrategy | ( | ) |
Parse the parallelization strategy from invocation arguments.
bool ArgumentsParser::parseRebuildScene | ( | ) |
Parse the rebuild scene flag from invocation arguments.
size_t ArgumentsParser::parseSAHLossNodes | ( | ) |
Parse on how many nodes the loss function of the surface area heuristic must be evaluated when building the KDTree. For the Fast SAH it is the number of iterations computed to approximate SAH.
std::string ArgumentsParser::parseSeed | ( | ) |
Parse the seed for RandomnessGenerator from invocation arguments.
bool ArgumentsParser::parseSplitByChannel | ( | ) |
Parse whether the output point clouds must be exported on a different file per channel or not.
std::string ArgumentsParser::parseSurveyPath | ( | ) |
Parse the survey path from invocation arguments.
std::string ArgumentsParser::parseTestDir | ( | ) |
Parse test directory specification (not necessary, default one will be relative path "data/test/")
bool ArgumentsParser::parseTestRequest | ( | ) |
Parse test request argument if any (–test)
bool ArgumentsParser::parseUnzip | ( | std::string * | inputPath, |
std::string * | outputPath | ||
) |
Parse an unzip request for given input and output path.
inputPath | Where the input path will be stored |
outputPath | Where the output path will be stored |
bool ArgumentsParser::parseVersionRequest | ( | ) |
Parse version request argument if any (–version)
int ArgumentsParser::parseWarehouseFactor | ( | ) |
Parse the warehouse factor for the warehouse based parallelization strategy from invocation arguments.
bool ArgumentsParser::parseWriteWaveform | ( | ) |
Parse the write waveform flag specification.
bool ArgumentsParser::parseZipOutput | ( | ) |
Parse the ZIP output specification.
|
private |
Number of arguments in array or arguments (argv)
|
private |
Array of arguments.