hpp-gui  4.12.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>
10 
12 
13 namespace Ui {
14  class JointTreeWidget;
15 }
16 
17 namespace hpp {
18  namespace gui {
19  class JointTreeWidget : public QWidget
20  {
21  Q_OBJECT
22 
23  public:
24  explicit JointTreeWidget(HppWidgetsPlugin *plugin, QWidget *parent = 0);
25 
26  virtual ~JointTreeWidget ();
27 
30  void dockWidget (QDockWidget* dock);
31 
33  std::string selectedJoint () const;
34 
35 signals:
36 
37  public slots:
40  void customContextMenu (const QPoint& pos);
41 
44  void selectJoint (const std::string& jointName);
45 
47  QString getSelectedJoint () const;
48 
51  void openJointBoundDialog (const std::string jointName);
52 
55  void openJointMoveDialog(const std::string jointName);
56 
60  void moveJoint(hpp::Transform__slice* transform, std::string const& jointName);
61 
63  void reload ();
64 
65  private slots:
66  void resize (const QModelIndex index);
67 
70  void currentJointChanged (const QModelIndex& current, const QModelIndex& previous);
71 
72  private:
73  void initSearchActions();
74 
76  void reset ();
77 
78  JointTreeItem* buildJointTreeItem (const char* name, CORBA::ULong& rkConfig, CORBA::ULong& rkVel);
79 
80  HppWidgetsPlugin* plugin_;
81  ::Ui::JointTreeWidget* ui_;
82 
83  QStandardItemModel* model_;
84  QDockWidget* dock_;
85  };
86  } // namespace gui
87 } // namespace hpp
88 
89 #endif // HPP_GUI_JOINTTREEWIDGET_HH
void openJointBoundDialog(const std::string jointName)
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: configurationlistwidget.hh:20
Definition: jointtreewidget.hh:19
void moveJoint(hpp::Transform__slice *transform, std::string const &jointName)
Definition: joint-tree-item.hh:25
void dockWidget(QDockWidget *dock)
QString getSelectedJoint() const
Get the currently selected joint name.
std::string selectedJoint() const
Get the currently selected joint.
JointTreeWidget(HppWidgetsPlugin *plugin, QWidget *parent=0)
void reload()
Reload the joint in the tree.
void openJointMoveDialog(const std::string jointName)
void selectJoint(const std::string &jointName)
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:29
void customContextMenu(const QPoint &pos)