Walls And Holes  1
abstractmeshviewcamera.h
Go to the documentation of this file.
1 #ifndef MESHVIEWCAMERA_H
2 #define MESHVIEWCAMERA_H
3 
4 #include <QObject>
5 #include <QMatrix4x4>
6 #include <QMouseEvent>
7 #include <QWheelEvent>
8 
9 
10 #include "abstracttool.h"
11 
17  Q_OBJECT
18 
19 public:
21 
26  virtual QMatrix4x4 getTransformationMatrix() const = 0;
27 
32  virtual QVector3D getPosition() const = 0;
33 
34 
35  virtual void activate() override {}
36  virtual void deactivate() override {}
37 
38  virtual void mousePressEvent(QMouseEvent *) override {}
39  virtual void mouseReleaseEvent(QMouseEvent *) override {}
40  virtual void mouseMoveEvent(QMouseEvent *) override {}
41  virtual void wheelEvent(QWheelEvent *) override {}
42 
43 signals:
47  void changed();
48 };
49 
50 #endif // MESHVIEWCAMERA_H
The AbstractMeshViewCamera class Abstract class that will determine how the camera moves based on the...
Definition: abstractmeshviewcamera.h:16
virtual void mouseReleaseEvent(QMouseEvent *) override
Definition: abstractmeshviewcamera.h:39
virtual QMatrix4x4 getTransformationMatrix() const =0
getTransformationMatrix
virtual QVector3D getPosition() const =0
Gets the world-space camera position.
void changed()
This signal should be emitted when the camera is moved.
virtual ~AbstractMeshViewCamera()
Definition: abstractmeshviewcamera.h:20
The AbstractTool class represents a UI tool. A UI tool can be activated or deactivated.
Definition: abstracttool.h:24
virtual void mousePressEvent(QMouseEvent *) override
Definition: abstractmeshviewcamera.h:38
virtual void deactivate() override
Deactivates the tool. This is called before the tool stops being used.
Definition: abstractmeshviewcamera.h:36
virtual void wheelEvent(QWheelEvent *) override
Definition: abstractmeshviewcamera.h:41
virtual void activate() override
Activates the tool. This is called before the tool is used.
Definition: abstractmeshviewcamera.h:35
virtual void mouseMoveEvent(QMouseEvent *) override
Definition: abstractmeshviewcamera.h:40