15 entry.position = currentPosition;
20 }
else if (axis ==
"y") {
21 entry.position.setY(
value);
22 }
else if (axis ==
"z") {
23 entry.position.setZ(
value);
32 const double degrees) {
34 bool recognised =
true;
37 }
else if (axis ==
"roty") {
39 }
else if (axis ==
"rotz") {
48 std::map<size_t, Kernel::V3D> result;
49 for (
const auto &[componentIndex, entry] :
m_positions) {
50 result.emplace(componentIndex, entry.position);
56 std::map<size_t, Kernel::Quat> result;
57 for (
const auto &[componentIndex, entry] :
m_rotations) {
double value
The value of the point.
void setCoordinate(const size_t componentIndex, const std::string &axis, const double value, const Kernel::V3D ¤tPosition)
Set one coordinate.
void setPosition(const size_t componentIndex, const Kernel::V3D &position)
Set the whole position at once, discarding any coordinates accumulated so far.
std::map< size_t, Kernel::V3D > positions() const
The accumulated position for each component that had any coordinate set.
bool setRotationAngle(const size_t componentIndex, const std::string &axis, const double degrees)
Set one rotation angle, in degrees.
std::map< size_t, Kernel::Quat > rotations() const
The composed rotation for each component that had any angle set.
std::map< size_t, Position > m_positions
std::map< size_t, Rotation > m_rotations
void setX(const double xx) noexcept
Set is x position.