A class to parse the program options for the reconstruction executable. More...
#include <Options.hpp>
Public Member Functions | |
Options (int argc, char **argv) | |
Ctor. Parses the command parameters given to the main function of the program. | |
virtual | ~Options () |
float | getVoxelsize () const |
Returns the given voxelsize. | |
int | getNumThreads () const |
Returns the number of used threads. | |
bool | printUsage () const |
Prints a usage message to stdout. | |
bool | filenameSet () const |
Returns true if an output filen name was set. | |
bool | saveFaceNormals () const |
Returns true if the face normals of the reconstructed mesh should be saved to an extra file ("face_normals.nor"). | |
bool | saveNormals () const |
Returns true if the interpolated normals should be saved in the putput file. | |
bool | createClusters () const |
Returns true if clustering is enabled. | |
bool | optimizeClusters () const |
Returns true if cluster optimization is enabled. | |
bool | savePointsAndNormals () const |
Indicates whether to save the used points together with the interpolated normals. | |
bool | recalcNormals () const |
If true, normals should be calculated even if they are already given in the input file. | |
int | getKi () const |
Returns the number of neighbors for normal interpolation. | |
int | getKn () const |
Returns the number of neighbors used for initial normal estimation. | |
int | getKd () const |
Returns the number of neighbors used for distance function evaluation. | |
string | getInputFileName () const |
Returns the output file name. | |
int | getIntersections () const |
Returns the number of intersections. If the return value is positive it will be used for reconstruction instead of absolute voxelsize. | |
Private Attributes | |
float | m_voxelsize |
The set voxelsize. | |
int | m_numThreads |
The number of uesed threads. | |
variables_map | m_variables |
The internally used variable map. | |
options_description | m_descr |
The internally used option description. | |
positional_options_description | m_pdescr |
The internally used positional option desription. | |
string | m_faceNormalFile |
The putput file name for face normals. | |
int | m_numberOfDefaults |
The number of used default values. | |
int | m_kd |
The number of neighbors for distance function evaluation. | |
int | m_kn |
The number of neighbors for normal estimation. | |
int | m_ki |
The number of neighbors for normal interpolation. | |
int | m_intersections |
The number of intersections used for reconstruction. |
A class to parse the program options for the reconstruction executable.
Definition at line 31 of file Options.hpp.
reconstruct::Options::Options | ( | int | argc, | |
char ** | argv | |||
) |
Ctor. Parses the command parameters given to the main function of the program.
Definition at line 12 of file Options.cpp.
reconstruct::Options::~Options | ( | ) | [virtual] |
Definition at line 137 of file Options.cpp.
bool reconstruct::Options::createClusters | ( | ) | const |
Returns true if clustering is enabled.
Definition at line 112 of file Options.cpp.
bool reconstruct::Options::filenameSet | ( | ) | const |
Returns true if an output filen name was set.
Definition at line 107 of file Options.cpp.
string reconstruct::Options::getInputFileName | ( | ) | const |
Returns the output file name.
Definition at line 78 of file Options.cpp.
int reconstruct::Options::getIntersections | ( | ) | const |
Returns the number of intersections. If the return value is positive it will be used for reconstruction instead of absolute voxelsize.
Definition at line 73 of file Options.cpp.
int reconstruct::Options::getKd | ( | ) | const |
Returns the number of neighbors used for distance function evaluation.
Definition at line 63 of file Options.cpp.
int reconstruct::Options::getKi | ( | ) | const |
Returns the number of neighbors for normal interpolation.
Definition at line 58 of file Options.cpp.
int reconstruct::Options::getKn | ( | ) | const |
Returns the number of neighbors used for initial normal estimation.
Definition at line 68 of file Options.cpp.
int reconstruct::Options::getNumThreads | ( | ) | const |
Returns the number of used threads.
Definition at line 53 of file Options.cpp.
float reconstruct::Options::getVoxelsize | ( | ) | const |
Returns the given voxelsize.
Definition at line 48 of file Options.cpp.
bool reconstruct::Options::optimizeClusters | ( | ) | const |
Returns true if cluster optimization is enabled.
Definition at line 132 of file Options.cpp.
bool reconstruct::Options::printUsage | ( | ) | const |
Prints a usage message to stdout.
Definition at line 83 of file Options.cpp.
bool reconstruct::Options::recalcNormals | ( | ) | const |
If true, normals should be calculated even if they are already given in the input file.
Definition at line 117 of file Options.cpp.
bool reconstruct::Options::saveFaceNormals | ( | ) | const |
Returns true if the face normals of the reconstructed mesh should be saved to an extra file ("face_normals.nor").
Definition at line 102 of file Options.cpp.
bool reconstruct::Options::saveNormals | ( | ) | const |
Returns true if the interpolated normals should be saved in the putput file.
Definition at line 127 of file Options.cpp.
bool reconstruct::Options::savePointsAndNormals | ( | ) | const |
Indicates whether to save the used points together with the interpolated normals.
Definition at line 122 of file Options.cpp.
options_description reconstruct::Options::m_descr [private] |
The internally used option description.
Definition at line 137 of file Options.hpp.
string reconstruct::Options::m_faceNormalFile [private] |
The putput file name for face normals.
Definition at line 143 of file Options.hpp.
int reconstruct::Options::m_intersections [private] |
The number of intersections used for reconstruction.
Definition at line 158 of file Options.hpp.
int reconstruct::Options::m_kd [private] |
The number of neighbors for distance function evaluation.
Definition at line 149 of file Options.hpp.
int reconstruct::Options::m_ki [private] |
The number of neighbors for normal interpolation.
Definition at line 155 of file Options.hpp.
int reconstruct::Options::m_kn [private] |
The number of neighbors for normal estimation.
Definition at line 152 of file Options.hpp.
int reconstruct::Options::m_numberOfDefaults [private] |
The number of used default values.
Definition at line 146 of file Options.hpp.
int reconstruct::Options::m_numThreads [private] |
The number of uesed threads.
Definition at line 131 of file Options.hpp.
positional_options_description reconstruct::Options::m_pdescr [private] |
The internally used positional option desription.
Definition at line 140 of file Options.hpp.
variables_map reconstruct::Options::m_variables [private] |
The internally used variable map.
Definition at line 134 of file Options.hpp.
float reconstruct::Options::m_voxelsize [private] |
The set voxelsize.
Definition at line 128 of file Options.hpp.