src/canvas.h

changeset 1369
1e2391b78d17
parent 1326
69a90bd2dba2
child 1385
2f18c0da749d
child 1390
3eace926af7f
equal deleted inserted replaced
1368:36105978da93 1369:1e2391b78d17
30 int depthNegateFactor() const; 30 int depthNegateFactor() const;
31 LDDocument* document() const; 31 LDDocument* document() const;
32 void drawPoint(QPainter& painter, QPointF pos, QColor color = QColor (64, 192, 0)) const; 32 void drawPoint(QPainter& painter, QPointF pos, QColor color = QColor (64, 192, 0)) const;
33 void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d) const; 33 void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d) const;
34 void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d, QPointF pos) const; 34 void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d, QPointF pos) const;
35 void clearCurrentCullValue();
36 double currentCullValue() const;
35 double getDepthValue() const; 37 double getDepthValue() const;
36 void getRelativeAxes(Axis& relX, Axis& relY) const; 38 void getRelativeAxes(Axis& relX, Axis& relY) const;
37 Axis getRelativeZ() const; 39 Axis getRelativeZ() const;
38 QPen linePen() const; 40 QPen linePen() const;
39 const Vertex& position3D() const; 41 const Vertex& position3D() const;
40 void setDepthValue(double depth); 42 void setDepthValue(double depth);
43 void setCullValue(double value);
41 void setEditMode(EditModeType type); 44 void setEditMode(EditModeType type);
42 45
43 protected: 46 protected:
44 void contextMenuEvent(QContextMenuEvent* event) override; 47 void contextMenuEvent(QContextMenuEvent* event) override;
45 void dragEnterEvent(QDragEnterEvent* event) override; 48 void dragEnterEvent(QDragEnterEvent* event) override;
56 private: 59 private:
57 LDDocument& m_document; 60 LDDocument& m_document;
58 AbstractEditMode* m_currentEditMode = nullptr; 61 AbstractEditMode* m_currentEditMode = nullptr;
59 Vertex m_position3D; 62 Vertex m_position3D;
60 double m_depthValues[6] = {0}; 63 double m_depthValues[6] = {0};
64 double cullValues[6] = {0};
61 }; 65 };

mercurial