Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
imagetaskgraphicsview.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <QGraphicsView>
6 #include <QObject>
7 
8 class QEvent;
9 class QKeyEvent;
10 class QWheelEvent;
11 
12 namespace geometrize
13 {
14 
15 namespace scene
16 {
17 
21 class ImageTaskGraphicsView : public QGraphicsView
22 {
23  Q_OBJECT
24 
25 public:
26  explicit ImageTaskGraphicsView(QWidget* parent = nullptr);
27  virtual ~ImageTaskGraphicsView();
28 
29 protected:
30  void changeEvent(QEvent*) override;
31 
32 private:
33  void populateUi();
34 
35  bool viewportEvent(QEvent* event) override;
36  void wheelEvent(QWheelEvent* event) override;
37  void mousePressEvent(QMouseEvent* event) override;
38  void mouseReleaseEvent(QMouseEvent* event) override;
39  void mouseMoveEvent(QMouseEvent* event) override;
40  void keyPressEvent(QKeyEvent* event) override;
41  void keyReleaseEvent(QKeyEvent* event) override;
42 
44  std::unique_ptr<ImageTaskGraphicsViewImpl> d;
45 };
46 
47 }
48 
49 }
virtual ~ImageTaskGraphicsView()
Definition: imagetaskgraphicsview.cpp:102
bool viewportEvent(QEvent *event) override
Definition: imagetaskgraphicsview.cpp:106
void keyPressEvent(QKeyEvent *event) override
Definition: imagetaskgraphicsview.cpp:212
ImageTaskGraphicsView(QWidget *parent=nullptr)
Definition: imagetaskgraphicsview.cpp:90
void mouseMoveEvent(QMouseEvent *event) override
Definition: imagetaskgraphicsview.cpp:207
void mousePressEvent(QMouseEvent *event) override
Definition: imagetaskgraphicsview.cpp:197
void populateUi()
Definition: imagetaskgraphicsview.cpp:230
void changeEvent(QEvent *) override
Definition: imagetaskgraphicsview.cpp:222
void keyReleaseEvent(QKeyEvent *event) override
Definition: imagetaskgraphicsview.cpp:217
The ImageTaskGraphicsView class models a graphics view for viewing the images and shapes used and/or ...
Definition: imagetaskgraphicsview.h:21
void wheelEvent(QWheelEvent *event) override
Definition: imagetaskgraphicsview.cpp:157
void mouseReleaseEvent(QMouseEvent *event) override
Definition: imagetaskgraphicsview.cpp:202
std::unique_ptr< ImageTaskGraphicsViewImpl > d
Definition: imagetaskgraphicsview.h:43