diff -r 3fb8ad4d27b1 -r 3eace926af7f src/canvas.h --- a/src/canvas.h Sat May 26 17:28:15 2018 +0300 +++ b/src/canvas.h Wed May 30 22:31:06 2018 +0300 @@ -19,6 +19,7 @@ #pragma once #include "glrenderer.h" #include "editmodes/abstractEditMode.h" +#include "geometry/plane.h" class Canvas : public GLRenderer { @@ -27,6 +28,7 @@ ~Canvas(); EditModeType currentEditModeType() const; + const Plane& drawPlane() const; int depthNegateFactor() const; LDDocument* document() const; void drawPoint(QPainter& painter, QPointF pos, QColor color = QColor (64, 192, 0)) const; @@ -34,12 +36,11 @@ void drawBlipCoordinates(QPainter& painter, const Vertex& pos3d, QPointF pos) const; void clearCurrentCullValue(); double currentCullValue() const; - double getDepthValue() const; void getRelativeAxes(Axis& relX, Axis& relY) const; Axis getRelativeZ() const; QPen linePen() const; const Vertex& position3D() const; - void setDepthValue(double depth); + void setDrawPlane(const Plane& plane); void setCullValue(double value); void setEditMode(EditModeType type); @@ -60,6 +61,6 @@ LDDocument& m_document; AbstractEditMode* m_currentEditMode = nullptr; Vertex m_position3D; - double m_depthValues[6] = {0}; + Plane m_drawPlane; double cullValues[6] = {0}; };