LVRGraphicsView.hpp
Go to the documentation of this file.
1 #ifndef LVR2_TOOLS_VIEWER_WIDGETS_LVRGraphicsView_HPP
2 #define LVR2_TOOLS_VIEWER_WIDGETS_LVRGraphicsView_HPP
3 
4 #include <QObject>
5 #include <QGraphicsView>
6 #include <QtGui>
7 #include <QCloseEvent>
8 #include <iostream>
9 
10 namespace lvr2 {
11 
12 class LVRGraphicsView : public QGraphicsView {
13  Q_OBJECT
14 public:
15  using QGraphicsView::QGraphicsView;
16 
17  void init();
18 
19  void gentle_zoom(double factor);
20  void set_modifiers(Qt::KeyboardModifiers modifiers);
21  void set_zoom_factor_base(double value);
22 
23 private:
24  bool eventFilter(QObject* object, QEvent* event);
25  void closeEvent(QCloseEvent *event);
26 
27  Qt::KeyboardModifiers m_modifiers;
31 
32 Q_SIGNALS:
33  void zoomed();
34  void closed();
35 };
36 
37 } // namespace lvr2
38 
39 #endif
void set_zoom_factor_base(double value)
bool eventFilter(QObject *object, QEvent *event)
void closeEvent(QCloseEvent *event)
void gentle_zoom(double factor)
void set_modifiers(Qt::KeyboardModifiers modifiers)
Qt::KeyboardModifiers m_modifiers


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08