26 Canvas(LDDocument* document, QWidget* parent = nullptr); |
26 Canvas(LDDocument* document, QWidget* parent = nullptr); |
27 ~Canvas(); |
27 ~Canvas(); |
28 |
28 |
29 EditModeType currentEditModeType() const; |
29 EditModeType currentEditModeType() const; |
30 LDDocument* document() const; |
30 LDDocument* document() const; |
|
31 void drawPoint(QPainter& painter, QPointF pos, QColor color = QColor (64, 192, 0)) const; |
|
32 void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d) const; |
|
33 void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d, QPointF pos) const; |
|
34 QPen linePen() const; |
31 const Vertex& position3D() const; |
35 const Vertex& position3D() const; |
32 void setEditMode(EditModeType type); |
36 void setEditMode(EditModeType type); |
33 |
37 |
34 protected: |
38 protected: |
35 void dropEvent(QDropEvent* event) override; |
39 void dropEvent(QDropEvent* event) override; |