25 const std::string PARAM_VOLUME_DIMENSIONS =
"volume-dimensions";
26 const std::string PARAM_VOLUME_ELEMENT_SPACING =
"volume-element-spacing";
27 const std::string PARAM_VOLUME_OFFSET =
"volume-offset";
34 , _dimensions(0, 0, 0)
35 , _elementSpacing(1.f, 1.f, 1.f)
36 , _offset(0.f, 0.f, 0.f)
38 _parameters.add_options()(PARAM_VOLUME_DIMENSIONS.c_str(), po::fixed_tokens_value<uints>(3, 3),
39 "Volume dimensions [uint uint uint]")(
40 PARAM_VOLUME_ELEMENT_SPACING.c_str(), po::fixed_tokens_value<floats>(3, 3),
41 "Element spacing in the volume [float float float]")(PARAM_VOLUME_OFFSET.c_str(),
42 po::fixed_tokens_value<floats>(3, 3),
43 "Volume offset [float float float]");
48 if (vm.count(PARAM_VOLUME_DIMENSIONS))
50 auto values = vm[PARAM_VOLUME_DIMENSIONS].as<
uints>();
53 if (vm.count(PARAM_VOLUME_ELEMENT_SPACING))
55 auto values = vm[PARAM_VOLUME_ELEMENT_SPACING].as<
floats>();
58 if (vm.count(PARAM_VOLUME_OFFSET))
60 auto values = vm[PARAM_VOLUME_OFFSET].as<
floats>();
po::options_description _parameters
void markModified(const bool triggerCallback=true)
void parse(const po::variables_map &vm) final
glm::vec< 3, uint32_t > Vector3ui