PoseWidget.cpp
Go to the documentation of this file.
1 #include "PoseWidget.h"
2 
3 namespace armarx
4 {
5  void PoseWidget::addTo(viz::Layer& layer) const
6  {
7  const auto adr = reinterpret_cast<std::intptr_t>(this);
8  layer.add(viz::Pose("Pose_" + std::to_string(adr))
9  .position(_ui.doubleSpinBoxTX->value(),
10  _ui.doubleSpinBoxTY->value(),
11  _ui.doubleSpinBoxTZ->value())
12  .orientation(_ui.doubleSpinBoxRX->value(),
13  _ui.doubleSpinBoxRY->value(),
14  _ui.doubleSpinBoxRZ->value())
15  .scale(_ui.doubleSpinBoxScale->value()));
16  }
17 }
armarx::viz::Layer::add
void add(ElementT const &element)
Definition: Layer.h:29
armarx::viz::ElementOps::position
DerivedT & position(float x, float y, float z)
Definition: ElementOps.h:127
armarx::viz::ElementOps::orientation
DerivedT & orientation(Eigen::Quaternionf const &ori)
Definition: ElementOps.h:140
armarx::viz::Pose
Definition: Elements.h:179
armarx::to_string
const std::string & to_string(const std::string &s)
Definition: StringHelpers.h:40
armarx::viz::ElementOps::scale
DerivedT & scale(Eigen::Vector3f scale)
Definition: ElementOps.h:227
PoseWidget.h
armarx::viz::Layer
Definition: Layer.h:12
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28