7 template <
typename Derived>
14 Derived& this_ = *
static_cast<Derived*
>(
this);
26 Derived&
min(std::array<float, 1>
v)
35 Derived&
max(std::array<float, 1>
v)
49 Derived&
min(
float x,
float y,
float z)
51 return Base::min(Eigen::Vector3f{x, y, z});
53 Derived&
min(std::array<float, 3>
v)
55 return min(
v.at(0),
v.at(1),
v.at(2));
58 Derived&
max(
float x,
float y,
float z)
60 return Base::max(Eigen::Vector3f{x, y, z});
62 Derived&
max(std::array<float, 3>
v)
64 return max(
v.at(0),
v.at(1),
v.at(2));
67 Derived&
steps(
int x,
int y,
int z)
69 return steps(Eigen::Vector3i{x, y, z});
73 return steps(
v.at(0),
v.at(1),
v.at(2));
78 :
public ValueMixin<Vector3fSpinBoxes, Eigen::Vector3f, Vector3fSpinBoxesBuilder>
84 widget().steps =
toIceI(Eigen::Vector3i::Ones() *
static_cast<int>(2 * limpos + 1));
86 widget().min =
toIceF(Eigen::Vector3f::Ones() * -limpos);
87 widget().max =
toIceF(Eigen::Vector3f::Ones() * +limpos);
88 widget().defaultValue =
makeValue(Eigen::Vector3f{Eigen::Vector3f::Zero()});
98 return decimals(Eigen::Vector3i(x, y, z));
102 return decimals(Eigen::Vector3i(d, d, d));
115 return {name, limpos};