openPSTD  2.0
Open source simulation for sound propagation in urban environments
ViewOperations.h
1 // This file is part of openPSTD. //
3 // //
4 // openPSTD is free software: you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation, either version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // openPSTD is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with openPSTD. If not, see <http://www.gnu.org/licenses/>. //
16 // //
18 
20 //
21 // Date:
22 //
23 //
24 // Authors:
25 //
26 //
27 // Purpose:
28 //
29 //
31 
32 //
33 // Created by michiel on 16-8-2015.
34 //
35 
36 #ifndef OPENPSTD_VIEWOPERATIONS_H
37 #define OPENPSTD_VIEWOPERATIONS_H
38 
39 #include "BaseOperation.h"
40 #include <QMatrix4x4>
41 #include <QVector2D>
42 
43 namespace OpenPSTD
44 {
45  namespace GUI
46  {
48  {
49  public:
50  virtual void Run(const Reciever &reciever);
51  };
52 
54  {
55  private:
56  QMatrix4x4 M;
57 
58  public:
59  ChangeAspectMatrix() : M()
60  { }
61 
62  ChangeAspectMatrix(QMatrix4x4 m);
63 
64  ChangeAspectMatrix(float w, float h);
65 
66  virtual void Run(const Reciever &reciever);
67  };
68 
70  {
71  private:
72  QMatrix4x4 M;
73 
74  public:
75  ChangeWorldMatrix() : M()
76  { }
77 
78  ChangeWorldMatrix(QMatrix4x4 m);
79 
80  virtual void Run(const Reciever &reciever);
81  };
82 
83 
85  {
86  protected:
87  QMatrix4x4 M;
88 
89  public:
90  ModifyWorldMatrix() : M()
91  { }
92 
93  ModifyWorldMatrix(QMatrix4x4 m);
94 
95  virtual void Run(const Reciever &reciever);
96  };
97 
99  {
100  public:
101  virtual void Run(const Reciever &reciever);
102  };
103 
105  {
106  public:
107  TranslateScene(QVector2D vec);
108  };
109 
111  {
112  public:
113  ResizeScene(float scale, QVector2D pos);
114  };
115 
116  }
117 }
118 
119 #endif //OPENPSTD_VIEWOPERATIONS_H
120 
121 
122 
This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Definition: ViewOperations.h:104
Definition: ViewOperations.h:69
Definition: ViewOperations.h:98
Definition: BaseOperation.h:61
Definition: ViewOperations.h:84
Definition: ViewOperations.h:53
Definition: ViewOperations.h:47
Definition: ViewOperations.h:110
Definition: BaseOperation.h:68