7 #include <QOpenGLWidget> |
7 #include <QOpenGLWidget> |
8 |
8 |
9 class PartRenderer final : public QOpenGLWidget |
9 class PartRenderer final : public QOpenGLWidget |
10 { |
10 { |
11 Q_OBJECT |
11 Q_OBJECT |
12 Model* const model; |
12 QTextDocument* const model; |
13 DocumentManager* const documents; |
13 DocumentManager* const documents; |
14 const ColorTable& colorTable; |
14 const ColorTable& colorTable; |
15 BoundingBox boundingBox; |
15 BoundingBox boundingBox; |
16 gl::ModelShaders shaders; |
16 gl::ModelShaders shaders; |
17 ModelId highlighted = {0}; |
17 ModelId highlighted = {0}; |
30 std::vector<RenderLayer*> inactiveRenderLayers; |
30 std::vector<RenderLayer*> inactiveRenderLayers; |
31 std::chrono::time_point<std::chrono::steady_clock> lastClickTime; |
31 std::chrono::time_point<std::chrono::steady_clock> lastClickTime; |
32 bool frozen = false; |
32 bool frozen = false; |
33 public: |
33 public: |
34 PartRenderer( |
34 PartRenderer( |
35 Model* model, |
35 QTextDocument* model, |
36 DocumentManager* documents, |
36 DocumentManager* documents, |
37 const ColorTable& colorTable, |
37 const ColorTable& colorTable, |
38 QWidget* parent = nullptr); |
38 QWidget* parent = nullptr); |
39 ~PartRenderer() override; |
39 ~PartRenderer() override; |
40 void setRenderPreferences(const gl::RenderPreferences& newPreferences); |
40 void setRenderPreferences(const gl::RenderPreferences& newPreferences); |