src
tools
lvr2_viewer
widgets
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
;
28
double
m_zoom_factor_base
;
29
QPointF
m_target_scene_pos
;
30
QPointF
m_target_viewport_pos
;
31
32
Q_SIGNALS:
33
void
zoomed
();
34
void
closed
();
35
};
36
37
}
// namespace lvr2
38
39
#endif
lvr2::LVRGraphicsView::m_modifiers
Qt::KeyboardModifiers m_modifiers
Definition:
LVRGraphicsView.hpp:27
lvr2::LVRGraphicsView::gentle_zoom
void gentle_zoom(double factor)
Definition:
LVRGraphicsView.cpp:18
lvr2::LVRGraphicsView::m_zoom_factor_base
double m_zoom_factor_base
Definition:
LVRGraphicsView.hpp:28
lvr2::LVRGraphicsView::closeEvent
void closeEvent(QCloseEvent *event)
Definition:
LVRGraphicsView.cpp:65
lvr2::LVRGraphicsView
Definition:
LVRGraphicsView.hpp:12
lvr2::LVRGraphicsView::zoomed
void zoomed()
lvr2::LVRGraphicsView::set_modifiers
void set_modifiers(Qt::KeyboardModifiers modifiers)
Definition:
LVRGraphicsView.cpp:28
lvr2::LVRGraphicsView::m_target_scene_pos
QPointF m_target_scene_pos
Definition:
LVRGraphicsView.hpp:29
lvr2
Definition:
BaseBufferManipulators.hpp:39
lvr2::LVRGraphicsView::set_zoom_factor_base
void set_zoom_factor_base(double value)
Definition:
LVRGraphicsView.cpp:33
lvr2::LVRGraphicsView::eventFilter
bool eventFilter(QObject *object, QEvent *event)
Definition:
LVRGraphicsView.cpp:38
lvr2::LVRGraphicsView::init
void init()
Definition:
LVRGraphicsView.cpp:10
lvr2::LVRGraphicsView::m_target_viewport_pos
QPointF m_target_viewport_pos
Definition:
LVRGraphicsView.hpp:30
lvr2::LVRGraphicsView::closed
void closed()
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 Wed Mar 2 2022 00:37:24