19 #pragma once |
19 #pragma once |
20 #include "abstractEditMode.h" |
20 #include "abstractEditMode.h" |
21 |
21 |
22 class DrawMode : public AbstractDrawMode |
22 class DrawMode : public AbstractDrawMode |
23 { |
23 { |
24 DEFINE_CLASS (DrawMode, AbstractDrawMode) |
24 DEFINE_CLASS(DrawMode, AbstractDrawMode) |
25 bool m_rectdraw; |
25 bool m_rectdraw; |
26 |
26 |
27 public: |
27 public: |
28 DrawMode (GLRenderer* renderer); |
28 DrawMode(GLRenderer* renderer); |
29 |
29 |
30 void render (QPainter& painter) const override; |
30 void render(QPainter& painter) const override; |
31 int maxVertices() const override { return 4; } |
31 int maxVertices() const override { return 4; } |
32 EditModeType type() const override; |
32 EditModeType type() const override; |
33 void endDraw() override; |
33 void endDraw() override; |
34 bool preAddVertex (Vertex const&) override; |
34 bool preAddVertex(Vertex const&) override; |
35 }; |
35 }; |