25 const std::string PARAM_FIELD_DISTANCE =
"field-distance";
26 const std::string PARAM_FIELD_CUTOFF =
"field-cutoff";
27 const std::string PARAM_FIELD_GRADIENT_SHADING =
"field-gradient-shading";
28 const std::string PARAM_FIELD_GRADIENT_OFFSET =
"field-gradient-offset";
29 const std::string PARAM_FIELD_SAMPLING_RATE =
"field-sampling-rate";
30 const std::string PARAM_FIELD_EPSILON =
"field-epsilon";
40 (PARAM_FIELD_GRADIENT_SHADING.c_str(), po::value<bool>(),
"Gradient shading [bool]")
42 (PARAM_FIELD_GRADIENT_OFFSET.c_str(), po::value<float>(),
"Gradient shading offset [float]")
44 (PARAM_FIELD_SAMPLING_RATE.c_str(), po::value<float>(),
"Gradient shading sampling rate [float]")
46 (PARAM_FIELD_DISTANCE.c_str(), po::value<float>(),
"Initial distance between leafs in the octree [float]")
48 (PARAM_FIELD_CUTOFF.c_str(), po::value<float>(),
"Cutoff distance between leafs in the octree [float]")
50 (PARAM_FIELD_EPSILON.c_str(), po::value<float>(),
"Epsilon between intersections [float]");
55 if (vm.count(PARAM_FIELD_GRADIENT_SHADING))
57 if (vm.count(PARAM_FIELD_GRADIENT_OFFSET))
59 if (vm.count(PARAM_FIELD_SAMPLING_RATE))
61 if (vm.count(PARAM_FIELD_CUTOFF))
62 _cutoff = vm[PARAM_FIELD_CUTOFF].as<float>();
63 if (vm.count(PARAM_FIELD_CUTOFF))
64 _cutoff = vm[PARAM_FIELD_CUTOFF].as<float>();
65 if (vm.count(PARAM_FIELD_EPSILON))
66 _epsilon = vm[PARAM_FIELD_EPSILON].as<float>();
static std::string asString(const bool flag)
po::options_description _parameters
void markModified(const bool triggerCallback=true)
void parse(const po::variables_map &vm) final