22 class LinePathMode : public AbstractDrawMode |
22 class LinePathMode : public AbstractDrawMode |
23 { |
23 { |
24 DEFINE_CLASS (LinePathMode, AbstractDrawMode) |
24 DEFINE_CLASS (LinePathMode, AbstractDrawMode) |
25 |
25 |
26 public: |
26 public: |
27 LinePathMode (GLRenderer* renderer); |
27 LinePathMode (Canvas* canvas); |
28 |
28 |
29 void render (QPainter& painter) const override; |
29 void render (QPainter& painter) const override; |
30 EditModeType type() const override { return EditModeType::LinePath; } |
30 EditModeType type() const override { return EditModeType::LinePath; } |
31 bool mouseReleased (MouseEventData const& data) override; |
31 bool mouseReleased (MouseEventData const& data) override; |
32 bool preAddVertex (Vertex const& pos) override; |
32 bool preAddVertex (Vertex const& pos) override; |