hpp-gui  5.0.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  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:
63  HppWidgetsPlugin* plugin_;
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:
81  HppWidgetsPlugin* plugin_;
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:
99  HppWidgetsPlugin* plugin_;
100  QString name_;
101 };
102 } // namespace gui
103 } // namespace hpp
104 
105 #endif // HPP_GUI_TWOJOINTSCONSTRAINT_HH
hpp.gui::ATwoJointConstraint::secondJointName_
QString secondJointName_
Definition: twojointsconstraint.hh:46
hpp.gui::OrientationConstraint
Definition: twojointsconstraint.hh:66
hpp.gui::ATwoJointConstraint::globalSecond_
QCheckBox * globalSecond_
Definition: twojointsconstraint.hh:39
hpp.gui::ATwoJointConstraint::widget_
QWidget * widget_
Definition: twojointsconstraint.hh:35
hpp.gui::ATwoJointConstraint
Definition: twojointsconstraint.hh:19
hpp.gui::ATwoJointConstraint::firstJoint_
QComboBox * firstJoint_
Definition: twojointsconstraint.hh:36
hpp.gui::ATwoJointConstraint::firstJointName_
QString firstJointName_
Definition: twojointsconstraint.hh:45
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:84
hpp.gui::ATwoJointConstraint::name_
QString name_
Definition: twojointsconstraint.hh:44
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:38
iconstraint.hh
hpp.gui::ATwoJointConstraint::joints_
hpp::Names_t_var joints_
Definition: twojointsconstraint.hh:42
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:37
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:30
hpp.gui::ATwoJointConstraint::plugin_
HppWidgetsPlugin * plugin_
Definition: twojointsconstraint.hh:41
hpp.gui::OrientationConstraint::operator()
void operator()(QString const &name)
hpp.gui::PositionConstraint
Definition: twojointsconstraint.hh:49
hpp.gui::TransformConstraint::operator()
void operator()(QString const &name)
hpp.gui::ATwoJointConstraint::~ATwoJointConstraint
virtual ~ATwoJointConstraint()