hpp-gui  4.15.1
Graphical interface for HPP
transformwidget.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Heidy Dallard
4 //
5 
6 #ifndef HPP_GUI_TRANSFORMWIDGET_HH__
7 #define HPP_GUI_TRANSFORMWIDGET_H__
8 
9 #include <gepetto/viewer/node.h>
10 
11 #include <QDialog>
12 #include <QDoubleSpinBox>
13 #include <QVector3D>
14 #include <string>
15 
16 #include "gepetto/gui/mainwindow.hh"
17 #include "hppwidgetsplugin.hh"
18 
19 namespace hpp {
20 namespace gui {
21 class TransformWidget : public QDialog {
22  Q_OBJECT
23  public:
24  TransformWidget(hpp::Transform__slice* transform,
25  std::string const& jointName, QWidget* parent,
26  bool doPosition = true, bool doQuaternion = true);
27 
28  signals:
29  void valueChanged(hpp::Transform__slice* transform,
30  std::string const& jointName);
31 
32  private slots:
33  void xChanged(double);
34  void yChanged(double);
35  void zChanged(double);
36  void xRotateChanged(double);
37  void yRotateChanged(double);
38  void zRotateChanged(double);
39 
40  private:
41  void changed(bool axisChanged = false);
42 
43  QVector3D rAxis_;
44  hpp::Transform__slice* transform_;
45  std::string jointName_;
46 
47  QDoubleSpinBox* xSlider_;
48  QDoubleSpinBox* ySlider_;
49  QDoubleSpinBox* zSlider_;
50 
51  QDoubleSpinBox* xQuaternion_;
52  QDoubleSpinBox* yQuaternion_;
53  QDoubleSpinBox* zQuaternion_;
54 };
55 } // namespace gui
56 } // namespace hpp
57 
58 #endif /* HPP_GUI_TRANSFORMWIDGET_HH__ */
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
void valueChanged(hpp::Transform__slice *transform, std::string const &jointName)
TransformWidget(hpp::Transform__slice *transform, std::string const &jointName, QWidget *parent, bool doPosition=true, bool doQuaternion=true)
Definition: transformwidget.hh:21