hpp-gui  4.12.0
Graphical interface for HPP
constraintwidget.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Heidy Dallard
4 //
5 
6 #ifndef HPP_GUI_CONSTRAINTWIDGET_HH
7 #define HPP_GUI_CONSTRAINTWIDGET_HH
8 
9 #include <QWidget>
10 
12 
13 class QDockWidget;
14 
15 namespace Ui {
16  class ConstraintWidget;
17 }
18 
19 namespace hpp {
20  namespace gui {
21  class HppWidgetsPlugin;
22 
24  class ConstraintWidget : public QWidget
25  {
26  Q_OBJECT
27 
28  public:
29  ConstraintWidget(HppWidgetsPlugin* plugin, QWidget *parent = 0);
30  virtual ~ConstraintWidget();
31 
32  public slots:
34  void reload();
35 
38  void addConstraint(IConstraint* constraint);
39 
40  virtual void refresh();
41 
42  private slots:
44  void createConstraint();
45 
47  virtual void confirmNumerical();
48 
50  virtual void applyConstraints();
51 
53  virtual void reset();
54 
57  void onConstraintCreated(QString name);
58 
59  void onFinished();
60 
61  void typeChanged(int index);
62 
63  protected:
65  Ui::ConstraintWidget *ui;
66  QDockWidget* dock_;
68  std::vector<IConstraint*> funcs_;
69  bool haveWidget;
70  };
71  } // namespace gui
72 } // namespace hpp
73 
74 
75 #endif // HPP_GUI_CONSTRAINTWIDGET_HH
Ui::ConstraintWidget * ui
Definition: constraintwidget.hh:65
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
std::vector< IConstraint * > funcs_
Definition: constraintwidget.hh:68
Definition: configurationlistwidget.hh:20
QDockWidget * dock_
Definition: constraintwidget.hh:66
Definition: iconstraint.hh:13
int lastInsert_
Definition: constraintwidget.hh:67
bool haveWidget
Definition: constraintwidget.hh:69
HppWidgetsPlugin * plugin_
Definition: constraintwidget.hh:64
Widget that allows to create constraints.
Definition: constraintwidget.hh:24
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:29