hpp-gui  4.11.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:
65  HppWidgetsPlugin* plugin_;
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:
83  HppWidgetsPlugin* plugin_;
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:
101  HppWidgetsPlugin* plugin_;
102  QString name_;
103  };
104  } // namespace hpp
105 } // namespace gui
106 
107 #endif // HPP_GUI_TWOJOINTSCONSTRAINT_HH
hpp.gui::ATwoJointConstraint::secondJointName_
QString secondJointName_
Definition: twojointsconstraint.hh:47
hpp.gui::OrientationConstraint
Definition: twojointsconstraint.hh:68
hpp.gui::ATwoJointConstraint::globalSecond_
QCheckBox * globalSecond_
Definition: twojointsconstraint.hh:40
hpp.gui::ATwoJointConstraint::widget_
QWidget * widget_
Definition: twojointsconstraint.hh:36
hpp.gui::ATwoJointConstraint
Definition: twojointsconstraint.hh:19
hpp.gui::ATwoJointConstraint::firstJoint_
QComboBox * firstJoint_
Definition: twojointsconstraint.hh:37
hpp.gui::ATwoJointConstraint::firstJointName_
QString firstJointName_
Definition: twojointsconstraint.hh:46
hpp.gui::PositionConstraint::getName
virtual QString getName() const
hppwidgetsplugin.hh
hpp.gui::PositionConstraint::~PositionConstraint
~PositionConstraint()
hpp.gui::PositionConstraint::operator()
virtual void operator()(QString const &name)
hpp.gui::TransformConstraint
Definition: twojointsconstraint.hh:86
hpp.gui::ATwoJointConstraint::name_
QString name_
Definition: twojointsconstraint.hh:45
hpp.gui::PositionConstraint::PositionConstraint
PositionConstraint(HppWidgetsPlugin *plugin)
hpp.gui::OrientationConstraint::~OrientationConstraint
~OrientationConstraint()
hpp.gui::ATwoJointConstraint::getWidget
virtual QWidget * getWidget() const
hpp.gui::IConstraint
Definition: iconstraint.hh:13
hpp.gui::ATwoJointConstraint::globalFirst_
QCheckBox * globalFirst_
Definition: twojointsconstraint.hh:39
iconstraint.hh
hpp.gui::ATwoJointConstraint::joints_
hpp::Names_t_var joints_
Definition: twojointsconstraint.hh:43
hpp
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
hpp.gui::OrientationConstraint::getName
QString getName() const
hpp.gui::ATwoJointConstraint::reload
virtual void reload()
hpp.gui::TransformConstraint::~TransformConstraint
~TransformConstraint()
hpp.gui::OrientationConstraint::OrientationConstraint
OrientationConstraint(HppWidgetsPlugin *plugin)
hpp.gui::TransformConstraint::getName
QString getName() const
hpp.gui::ATwoJointConstraint::ATwoJointConstraint
ATwoJointConstraint(HppWidgetsPlugin *plugin)
hpp.gui::ATwoJointConstraint::globalSelected
void globalSelected(bool action)
hpp.gui::TransformConstraint::TransformConstraint
TransformConstraint(HppWidgetsPlugin *plugin)
hpp.gui::ATwoJointConstraint::secondJoint_
QComboBox * secondJoint_
Definition: twojointsconstraint.hh:38
hpp.gui::ATwoJointConstraint::firstJointSelect
void firstJointSelect(int index)
hpp.gui::HppWidgetsPlugin
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:29
hpp.gui::ATwoJointConstraint::plugin_
HppWidgetsPlugin * plugin_
Definition: twojointsconstraint.hh:42
hpp.gui::OrientationConstraint::operator()
void operator()(QString const &name)
hpp.gui::PositionConstraint
Definition: twojointsconstraint.hh:50
hpp.gui::TransformConstraint::operator()
void operator()(QString const &name)
hpp.gui::ATwoJointConstraint::~ATwoJointConstraint
virtual ~ATwoJointConstraint()