hpp-gui  4.15.1
Graphical interface for HPP
twojointsconstraint.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Heidy Dallard
4 //
5 
6 #ifndef HPP_GUI_TWOJOINTSCONSTRAINT_HH
7 #define HPP_GUI_TWOJOINTSCONSTRAINT_HH
8 
10 #include "iconstraint.hh"
11 
12 class QCheckBox;
13 class QComboBox;
14 class QString;
15 class QWidget;
16 
17 namespace hpp {
18 namespace gui {
20  Q_OBJECT
21 
22  protected slots:
23  void firstJointSelect(int index);
24  void globalSelected(bool action);
25 
26  public:
27  virtual ~ATwoJointConstraint();
28 
29  virtual QWidget* getWidget() const;
30  virtual void reload();
31 
32  protected:
34 
35  QWidget* widget_;
36  QComboBox* firstJoint_;
37  QComboBox* secondJoint_;
38  QCheckBox* globalFirst_;
39  QCheckBox* globalSecond_;
40 
42  hpp::Names_t_var joints_;
43 
44  QString name_;
45  QString firstJointName_;
47 };
48 
50  Q_OBJECT
51 
52  private slots:
53  void getPositionConstraint(std::pair<QVector<double>, QVector<bool> > result);
54 
55  public:
56  explicit PositionConstraint(HppWidgetsPlugin* plugin);
58 
59  virtual QString getName() const;
60  virtual void operator()(QString const& name);
61 
62  private:
64 };
65 
67  Q_OBJECT
68 
69  private slots:
70  void getOrientationConstraint(
71  std::pair<QVector<double>, QVector<bool> > result);
72 
73  public:
74  explicit OrientationConstraint(HppWidgetsPlugin* plugin);
76 
77  QString getName() const;
78  void operator()(QString const& name);
79 
80  private:
82 };
83 
85  Q_OBJECT
86 
87  private slots:
88  void getTransformConstraint(
89  std::pair<QVector<double>, QVector<bool> > result);
90 
91  public:
92  explicit TransformConstraint(HppWidgetsPlugin* plugin);
94 
95  QString getName() const;
96  void operator()(QString const& name);
97 
98  private:
100  QString name_;
101 };
102 } // namespace gui
103 } // namespace hpp
104 
105 #endif // HPP_GUI_TWOJOINTSCONSTRAINT_HH
HppWidgetsPlugin * plugin_
Definition: twojointsconstraint.hh:41
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: twojointsconstraint.hh:66
QWidget * widget_
Definition: twojointsconstraint.hh:35
void firstJointSelect(int index)
QCheckBox * globalSecond_
Definition: twojointsconstraint.hh:39
QString firstJointName_
Definition: twojointsconstraint.hh:45
QComboBox * firstJoint_
Definition: twojointsconstraint.hh:36
Definition: iconstraint.hh:13
Definition: twojointsconstraint.hh:49
Definition: twojointsconstraint.hh:84
void globalSelected(bool action)
QComboBox * secondJoint_
Definition: twojointsconstraint.hh:37
Definition: twojointsconstraint.hh:19
hpp::Names_t_var joints_
Definition: twojointsconstraint.hh:42
ATwoJointConstraint(HppWidgetsPlugin *plugin)
virtual QWidget * getWidget() const
QString secondJointName_
Definition: twojointsconstraint.hh:46
QCheckBox * globalFirst_
Definition: twojointsconstraint.hh:38
virtual void operator()(QString const &name)=0
QString name_
Definition: twojointsconstraint.hh:44
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:30
virtual QString getName() const =0