overview.hpp
Go to the documentation of this file.
1 
9 #ifndef QTCTRL_GUI_MOTION
10 #define QTCTRL_GUI_MOTION
11 
12 #include <QTabWidget>
13 #include <QGraphicsScene>
14 #include <list>
15 #include <model/state.hpp>
16 
24 class QtMotionGUI : public QObject {
25  Q_OBJECT // This macro is needed to handle graphical events
26 
27  QTabWidget motion_window;
28  QGraphicsScene path_scene;
29  QGraphicsScene trans_vel_scene;
32  QGraphicsScene rot_vel_scene;
33 
36 
37 public:
38  QtMotionGUI();
39 
40  void addTrajectory(const std::list<State*>& trajectory);
41 
42  void addState(const State& state,
43  const Qt::GlobalColor motion_color = Qt::blue);
44 
45 public Q_SLOTS:
46  void showHide()
47  { motion_window.setVisible( !motion_window.isVisible() ); }
48 
49  void clear();
50 
51 }; // end of class QtMotionGUI
52 
53 #endif // QTCTRL_GUI_MOTION
QGraphicsScene rot_vel_scene
The scene containing the rotation velocity profile.
Definition: overview.hpp:32
State class, i.e. configuration and velocities.
This class shows the motion of the robot.
Definition: overview.hpp:24
void addTrajectory(const std::list< State * > &trajectory)
Definition: overview.cpp:29
This class defines a state, i.e. a configuration and its (translation and rotation) velocities...
Definition: state.hpp:22
void addState(const State &state, const Qt::GlobalColor motion_color=Qt::blue)
Definition: overview.cpp:39
QGraphicsScene path_scene
Definition: overview.hpp:28
bool not_first_state
Is next state the first one?
Definition: overview.hpp:34
void clear()
Definition: overview.cpp:80
QTabWidget motion_window
The window containing the displays.
Definition: overview.hpp:27
void showHide()
Definition: overview.hpp:46
State last_state
Last state added.
Definition: overview.hpp:35
QGraphicsScene trans_vel_scene
The scene containing the translation velocity profile.
Definition: overview.hpp:30


qt_ctrl
Author(s): Alexis Scheuer
autogenerated on Wed Dec 16 2020 15:51:32