78 const CameraInfo& cameraInfo(Camera camera) const; |
80 const CameraInfo& cameraInfo(Camera camera) const; |
79 QString cameraName(Camera camera) const; |
81 QString cameraName(Camera camera) const; |
80 QByteArray capturePixels(); |
82 QByteArray capturePixels(); |
81 void compileObject(LDObject* obj); |
83 void compileObject(LDObject* obj); |
82 GLCompiler* compiler() const; |
84 GLCompiler* compiler() const; |
83 Vertex convert2dTo3d(const QPoint& pos2d, bool snap) const; |
|
84 QPoint convert3dTo2d(const Vertex& pos3d) const; |
|
85 QString currentCameraName() const; |
85 QString currentCameraName() const; |
86 int depthNegateFactor() const; |
|
87 void drawGLScene(); |
86 void drawGLScene(); |
88 void forgetObject(LDObject* obj); |
87 void forgetObject(LDObject* obj); |
89 Axis getCameraAxis(bool y, Camera camid = (Camera) -1); |
88 Axis getCameraAxis(bool y, Camera camid = (Camera) -1); |
90 double getDepthValue() const; |
|
91 void getRelativeAxes(Axis& relX, Axis& relY) const; |
|
92 Axis getRelativeZ() const; |
|
93 void hardRefresh(); |
89 void hardRefresh(); |
94 void highlightCursorObject(); |
90 void highlightCursorObject(); |
95 void initGLData(); |
91 void initGLData(); |
96 bool isDrawOnly() const; |
92 bool isDrawOnly() const; |
97 bool isPicking() const; |
93 bool isPicking() const; |
107 void refresh(); |
103 void refresh(); |
108 void resetAllAngles(); |
104 void resetAllAngles(); |
109 void resetAngles(); |
105 void resetAngles(); |
110 void setBackground(); |
106 void setBackground(); |
111 void setCamera(Camera cam); |
107 void setCamera(Camera cam); |
112 void setDepthValue(double depth); |
|
113 void setDrawOnly(bool value); |
108 void setDrawOnly(bool value); |
114 void setPicking(bool a); |
109 void setPicking(bool a); |
115 QPen textPen() const; |
110 QPen textPen() const; |
|
111 double virtualHeight() const; |
|
112 double virtualWidth() const; |
116 void zoomNotch(bool inward); |
113 void zoomNotch(bool inward); |
117 |
114 |
118 static const QPen thinBorderPen; |
115 static const QPen thinBorderPen; |
119 |
116 |
120 protected: |
117 protected: |
158 double m_virtualHeight; |
155 double m_virtualHeight; |
159 QGenericMatrix<4, 4, GLfloat> m_rotationMatrix; |
156 QGenericMatrix<4, 4, GLfloat> m_rotationMatrix; |
160 double m_panX[7] = {0}; |
157 double m_panX[7] = {0}; |
161 double m_panY[7] = {0}; |
158 double m_panY[7] = {0}; |
162 double m_zoom[7] = {30}; |
159 double m_zoom[7] = {30}; |
163 double m_depthValues[6]; |
|
164 bool m_useDarkBackground = false; |
160 bool m_useDarkBackground = false; |
165 bool m_drawToolTip = false; |
161 bool m_drawToolTip = false; |
166 bool m_takingScreenCapture = false; |
162 bool m_takingScreenCapture = false; |
167 bool m_panning = false; |
163 bool m_panning = false; |
168 bool m_initialized = false; |
164 bool m_initialized = false; |