17 #ifndef GAZEBO_GUI_MODEL_GRAPHVIEW_HH_
18 #define GAZEBO_GUI_MODEL_GRAPHVIEW_HH_
41 private:
void resizeEvent(QResizeEvent *_event);
46 private:
void scrollContentsBy(
int _dx,
int _dy);
50 private:
void contextMenuEvent(QContextMenuEvent *_event);
54 private:
void wheelEvent(QWheelEvent *_event);
58 private:
void mouseMoveEvent(QMouseEvent *_event);
62 private:
void mousePressEvent(QMouseEvent *_event);
66 private:
void mouseReleaseEvent(QMouseEvent *_event);
70 private:
void mouseDoubleClickEvent(QMouseEvent *_event);
74 private:
void keyPressEvent(QKeyEvent *_event);
88 private:
double viewScale;
void customContextMenuRequested(QString _id)
Qt signal emitted when a context menu event is triggered.
A view for the graph scene.
Definition: GraphView.hh:28
GraphView(QWidget *_parent=0)
Constructor.
QGraphicsItem * lastClickedItem
Store which item was clicked last.
Definition: GraphView.hh:85
void itemDoubleClicked(QString _id)
Qt signal emitted when an item is double clicked.
virtual ~GraphView()=default
Destructor.