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