23 std::vector<std::string> angleRelatedParameters()
25 std::vector<std::string> result{
26 "InclinationAngle",
"AzimuthalAngle",
"Alpha",
"Beta",
"Gamma",
"Angle"};
33 static std::vector<std::string> angleRelated = angleRelatedParameters();
35 for (
const auto& par : angleRelated) {
36 if (par_name.find(par) != std::string::npos)
43 const std::string& parName)
Defines interface IParametricComponent.
Defines class ParameterPool.
Defines namespace ParameterUtils.
Defines class RealParameter.
Manages a local parameter pool, and a tree of child pools.
virtual ParameterPool * createParameterTree() const
Creates new parameter pool, with all local parameters and those of its children.
RealParameter * getUniqueMatch(const std::string &pattern) const
Returns the one parameter that matches the pattern (wildcards '*' allowed), or throws.
std::string poolParameterUnits(const IParametricComponent &node, const std::string &parName)
Returns units of main parameter.
bool isAngleRelated(const std::string &par_name)
Returns true if given parameter name is related to angles.