hpp-gui  4.9.0
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 <string>
10 
11 #include <QDialog>
12 #include <QDoubleSpinBox>
13 #include <QVector3D>
14 
15 #include "gepetto/gui/mainwindow.hh"
16 #include "hppwidgetsplugin.hh"
17 #include <gepetto/viewer/node.h>
18 
19 namespace hpp {
20  namespace gui {
21  class TransformWidget : public QDialog
22  {
23  Q_OBJECT
24  public:
25  TransformWidget(hpp::Transform__slice* transform, std::string const& jointName,
26  QWidget* parent, bool doPosition = true, bool doQuaternion = true);
27 
28  signals:
29  void valueChanged(hpp::Transform__slice* transform, std::string const& jointName);
30 
31  private slots:
32  void xChanged(double);
33  void yChanged(double);
34  void zChanged(double);
35  void xRotateChanged(double);
36  void yRotateChanged(double);
37  void zRotateChanged(double);
38 
39  private:
40  void changed(bool axisChanged = false);
41 
42  QVector3D rAxis_;
43  hpp::Transform__slice* transform_;
44  std::string jointName_;
45 
46  QDoubleSpinBox* xSlider_;
47  QDoubleSpinBox* ySlider_;
48  QDoubleSpinBox* zSlider_;
49 
50  QDoubleSpinBox* xQuaternion_;
51  QDoubleSpinBox* yQuaternion_;
52  QDoubleSpinBox* zQuaternion_;
53  };
54  } // namespace gui
55 } // namespace hpp
56 
57 #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