Choreonoid  1.8
PositionWidget.h
Go to the documentation of this file.
1 #ifndef CNOID_BASE_POSITION_WIDGET_H
2 #define CNOID_BASE_POSITION_WIDGET_H
3 
4 #include <cnoid/EigenTypes>
5 #include <QWidget>
6 #include <functional>
7 #include "exportdecl.h"
8 
9 namespace cnoid {
10 
11 class MenuManager;
12 class Archive;
13 
14 class CNOID_EXPORT PositionWidget : public QWidget
15 {
16 public:
17  PositionWidget(QWidget* parent);
18  ~PositionWidget();
19 
20  void setOptionMenuTo(MenuManager& menuManager);
21  void setEditable(bool on);
22  void setUserInputValuePriorityMode(bool on);
23  void setCallbacks(
24  std::function<bool(const Isometry3& T)> callbackOnPositionInput,
25  std::function<void()> callbackOnPositionInputFinished);
26  [[deprecated("Use setCallbacks")]]
27  void setPositionCallback(std::function<bool(const Isometry3& T)> callback);
28  void clearPosition();
29  void refreshPosition();
30  void applyPositionInput();
31  Vector3 getRpyInput() const;
32  void setReferenceRpy(const Vector3& rpy);
33  void setPosition(const Isometry3& T);
34  void setErrorHighlight(bool on);
35  void storeState(Archive& archive);
36  void restoreState(const Archive& archive);
37 
38 private:
39  class Impl;
40  Impl* impl;
41 };
42 
43 }
44 
45 #endif
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::Isometry3
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
cnoid::Archive
Definition: Archive.h:22
cnoid::MenuManager
Definition: MenuManager.h:14
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::PositionWidget
Definition: PositionWidget.h:14