src/editmodes/drawMode.h

changeset 1217
314e12e23c3a
parent 1006
a6b462051ae0
child 1222
34def2630300
equal deleted inserted replaced
1216:12f9ea615cbc 1217:314e12e23c3a
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 };

mercurial