hpp-gui  4.10.1
Graphical interface for HPP
jointbounddialog.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Joseph Mirabel
4 //
5 
6 #ifndef HPP_GUI_JOINTBOUNDDIALOG_HH
7 #define HPP_GUI_JOINTBOUNDDIALOG_HH
8 
9 #include <hpp/common-idl.hh>
10 #include <QDialog>
11 #include <QLabel>
12 #include <QDoubleSpinBox>
13 
14 namespace hpp {
15  namespace gui {
16  class JointBoundDialog : public QDialog
17  {
18  Q_OBJECT
19 
20  public:
21  explicit JointBoundDialog(QString name, std::size_t nbDof, QWidget *parent = 0);
22 
23  void setBounds (const hpp::floatSeq& bounds);
24 
25  void getBounds (hpp::floatSeq& bounds) const;
26 
28 
29  private:
30  struct Line {
31  QLabel* label;
32  QDoubleSpinBox *min, *max;
33  Line (const QString& name, QWidget* parent);
34  void addToLayout (QLayout* l);
35  };
36 
37  QList <Line> lines_;
38  };
39  } // namespace gui
40 } // namespace hpp
41 
42 #endif // HPP_GUI_JOINTBOUNDDIALOG_HH
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
void getBounds(hpp::floatSeq &bounds) const
Definition: jointbounddialog.hh:16
JointBoundDialog(QString name, std::size_t nbDof, QWidget *parent=0)
void setBounds(const hpp::floatSeq &bounds)