| 18 glm::mat4 projectionMatrix; |
18 glm::mat4 projectionMatrix; |
| 19 glm::mat4 viewMatrix; |
19 glm::mat4 viewMatrix; |
| 20 glm::mat4 modelMatrix; |
20 glm::mat4 modelMatrix; |
| 21 glm::vec4 viewportVector; |
21 glm::vec4 viewportVector; |
| 22 glm::quat modelQuaternion; |
22 glm::quat modelQuaternion; |
| |
23 glm::vec3 modelViewOrigin = {0, 0, 0}; |
| 23 QPoint lastMousePosition; |
24 QPoint lastMousePosition; |
| 24 int totalMouseMove = 0; |
25 int totalMouseMove = 0; |
| 25 gl::RenderPreferences renderPreferences; |
26 gl::RenderPreferences renderPreferences; |
| 26 double zoom = 1.0; |
27 double zoom = 1.0; |
| 27 bool initialized = false; |
28 bool initialized = false; |
| 46 bool isDark() const; |
47 bool isDark() const; |
| 47 std::int32_t pick(QPoint where); |
48 std::int32_t pick(QPoint where); |
| 48 void setSelection(const QSet<std::int32_t>& selectedIds); |
49 void setSelection(const QSet<std::int32_t>& selectedIds); |
| 49 glm::vec3 cameraVector(const QPointF& point) const; |
50 glm::vec3 cameraVector(const QPointF& point) const; |
| 50 Line<3> cameraLine(const QPointF& point) const; |
51 Line<3> cameraLine(const QPointF& point) const; |
| |
52 Q_SLOT void setModelViewOrigin(const glm::vec3& newViewOrigin); |
| 51 Q_SIGNALS: |
53 Q_SIGNALS: |
| 52 void projectionMatrixChanged(const glm::mat4& newMatrix); |
54 void projectionMatrixChanged(const glm::mat4& newMatrix); |
| 53 void modelMatrixChanged(const glm::mat4& newMatrix); |
55 void modelMatrixChanged(const glm::mat4& newMatrix); |
| 54 void viewMatrixChanged(const glm::mat4& newMatrix); |
56 void viewMatrixChanged(const glm::mat4& newMatrix); |
| 55 void renderPreferencesChanged(); |
57 void renderPreferencesChanged(); |