src/canvas.h

changeset 1106
7541b0209057
parent 1104
edddb9b0db9e
child 1108
90d6f4b7782e
equal deleted inserted replaced
1105:4f4d219e527d 1106:7541b0209057
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;

mercurial