hpp-gui  4.12.0
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  {
21  Q_OBJECT
22 
23  protected slots:
24  void firstJointSelect(int index);
25  void globalSelected(bool action);
26 
27  public:
28  virtual ~ATwoJointConstraint();
29 
30  virtual QWidget* getWidget() const;
31  virtual void reload();
32 
33  protected:
35 
36  QWidget* widget_;
37  QComboBox* firstJoint_;
38  QComboBox* secondJoint_;
39  QCheckBox* globalFirst_;
40  QCheckBox* globalSecond_;
41 
43  hpp::Names_t_var joints_;
44 
45  QString name_;
46  QString firstJointName_;
48  };
49 
51  {
52  Q_OBJECT
53 
54  private slots:
55  void getPositionConstraint(std::pair<QVector<double>, QVector<bool> > result);
56 
57  public:
58  explicit PositionConstraint(HppWidgetsPlugin* plugin);
60 
61  virtual QString getName() const;
62  virtual void operator()(QString const& name);
63 
64  private:
66  };
67 
69  {
70  Q_OBJECT
71 
72  private slots:
73  void getOrientationConstraint(std::pair<QVector<double>, QVector<bool> > result);
74 
75  public:
76  explicit OrientationConstraint(HppWidgetsPlugin* plugin);
78 
79  QString getName() const;
80  void operator()(QString const& name);
81 
82  private:
84  };
85 
87  {
88  Q_OBJECT
89 
90  private slots:
91  void getTransformConstraint(std::pair<QVector<double>, QVector<bool> > result);
92 
93  public:
94  explicit TransformConstraint(HppWidgetsPlugin* plugin);
96 
97  QString getName() const;
98  void operator()(QString const& name);
99 
100  private:
102  QString name_;
103  };
104  } // namespace hpp
105 } // namespace gui
106 
107 #endif // HPP_GUI_TWOJOINTSCONSTRAINT_HH
HppWidgetsPlugin * plugin_
Definition: twojointsconstraint.hh:42
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: twojointsconstraint.hh:68
QWidget * widget_
Definition: twojointsconstraint.hh:36
void firstJointSelect(int index)
QCheckBox * globalSecond_
Definition: twojointsconstraint.hh:40
QString firstJointName_
Definition: twojointsconstraint.hh:46
QComboBox * firstJoint_
Definition: twojointsconstraint.hh:37
Definition: iconstraint.hh:13
Definition: twojointsconstraint.hh:50
Definition: twojointsconstraint.hh:86
void globalSelected(bool action)
QComboBox * secondJoint_
Definition: twojointsconstraint.hh:38
Definition: twojointsconstraint.hh:19
hpp::Names_t_var joints_
Definition: twojointsconstraint.hh:43
ATwoJointConstraint(HppWidgetsPlugin *plugin)
virtual QWidget * getWidget() const
QString secondJointName_
Definition: twojointsconstraint.hh:47
QCheckBox * globalFirst_
Definition: twojointsconstraint.hh:39
virtual void operator()(QString const &name)=0
QString name_
Definition: twojointsconstraint.hh:45
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:29
virtual QString getName() const =0