hpp-gui  4.13.0
Graphical interface for HPP
jointtreewidget.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Joseph Mirabel and Heidy Dallard
4 //
5 
6 #ifndef HPP_GUI_JOINTTREEWIDGET_HH
7 #define HPP_GUI_JOINTTREEWIDGET_HH
8 
9 #include <QWidget>
11 
12 namespace Ui {
13 class JointTreeWidget;
14 }
15 
16 namespace hpp {
17 namespace gui {
18 class JointTreeWidget : public QWidget {
19  Q_OBJECT
20 
21  public:
22  explicit JointTreeWidget(HppWidgetsPlugin* plugin, QWidget* parent = 0);
23 
24  virtual ~JointTreeWidget();
25 
28  void dockWidget(QDockWidget* dock);
29 
31  std::string selectedJoint() const;
32 
33  signals:
34 
35  public slots:
38  void customContextMenu(const QPoint& pos);
39 
42  void selectJoint(const std::string& jointName);
43 
45  QString getSelectedJoint() const;
46 
49  void openJointBoundDialog(const std::string jointName);
50 
53  void openJointMoveDialog(const std::string jointName);
54 
58  void moveJoint(hpp::Transform__slice* transform,
59  std::string const& jointName);
60 
62  void reload();
63 
64  private slots:
65  void resize(const QModelIndex index);
66 
69  void currentJointChanged(const QModelIndex& current,
70  const QModelIndex& previous);
71 
72  private:
73  void initSearchActions();
74 
76  void reset();
77 
78  JointTreeItem* buildJointTreeItem(const char* name, CORBA::ULong& rkConfig,
79  CORBA::ULong& rkVel);
80 
81  HppWidgetsPlugin* plugin_;
82  ::Ui::JointTreeWidget* ui_;
83 
84  QStandardItemModel* model_;
85  QDockWidget* dock_;
86 };
87 } // namespace gui
88 } // namespace hpp
89 
90 #endif // HPP_GUI_JOINTTREEWIDGET_HH
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: configurationlistwidget.hh:18
Definition: jointtreewidget.hh:18
Definition: joint-tree-item.hh:26
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:30