25 QVector<Vertex> m_rectangleVerts; |
25 QVector<Vertex> m_rectangleVerts; |
26 |
26 |
27 public: |
27 public: |
28 RectangleMode (GLRenderer* renderer); |
28 RectangleMode (GLRenderer* renderer); |
29 |
29 |
30 virtual void render (QPainter& painter) const override; |
30 void render (QPainter& painter) const override; |
31 virtual EditModeType type() const override; |
31 EditModeType type() const override; |
32 virtual bool mouseReleased (MouseEventData const& data) override; |
32 void endDraw() override; |
33 virtual bool mouseMoved (QMouseEvent*) override; |
33 bool mouseMoved (QMouseEvent*) override; |
|
34 int maxVertices() const override { return 2; } |
34 |
35 |
35 private: |
36 private: |
36 void updateRectVerts(); |
37 void updateRectVerts(); |
37 }; |
38 }; |