Go to the documentation of this file.
7 template <
typename Derived>
15 Derived& this_ = *
static_cast<Derived*
>(
this);
30 min(std::array<float, 1>
v)
42 max(std::array<float, 1>
v)
60 min(
float x,
float y,
float z)
66 min(std::array<float, 3>
v)
68 return min(
v.at(0),
v.at(1),
v.at(2));
72 max(
float x,
float y,
float z)
78 max(std::array<float, 3>
v)
80 return max(
v.at(0),
v.at(1),
v.at(2));
86 return steps(Eigen::Vector3i{
x, y, z});
92 return steps(
v.at(0),
v.at(1),
v.at(2));
97 public ValueMixin<Vector3fSpinBoxes, Eigen::Vector3f, Vector3fSpinBoxesBuilder>,
103 widget().steps =
toIceI(Eigen::Vector3i::Ones() *
static_cast<int>(2 * limpos + 1));
105 widget().min =
toIceF(Eigen::Vector3f::Ones() * -limpos);
106 widget().max =
toIceF(Eigen::Vector3f::Ones() * +limpos);
107 widget().defaultValue =
makeValue(Eigen::Vector3f{Eigen::Vector3f::Zero()});
120 return decimals(Eigen::Vector3i(
x, y, z));
126 return decimals(Eigen::Vector3i(d, d, d));
139 inline detail::Vector3fSpinBoxesBuilder
142 return {name, limpos};
Derived & steps(std::array< int, 3 > v)
Derived & max(float x, float y, float z)
Vector3f toIceF(Eigen::Vector3f v)
detail::Vector3fSpinBoxesBuilder makeVector3fSpinBoxes(std::string const &name, float limpos=1000)
Derived & min(float x, float y, float z)
Vector3fSpinBoxesBuilder & decimals(const Eigen::Vector3i decimals)
Vector3fSpinBoxesBuilder & decimals(std::array< int, 1 > d)
Vector3i toIceI(Eigen::Vector3i v)
Derived & max(std::array< float, 3 > v)
Vector3fSpinBoxesBuilder(std::string const &name, float limpos=1000)
Vector3fSpinBoxesBuilder & decimals(int x, int y, int z)
Derived & min(std::array< float, 1 > v)
ValueVariant makeValue(bool value)
Derived & steps(const Eigen::Vector3i steps)
double v(double t, double v0, double a0, double j)
Vector3fSpinBoxesBuilder & decimals(int d)
Derived & steps(std::array< int, 1 > v)
Derived & min(std::array< float, 3 > v)
Derived & steps(int x, int y, int z)
This file offers overloads of toIce() and fromIce() functions for STL container types.
Derived & max(std::array< float, 1 > v)