src/canvas.cpp

changeset 1182
813d020f92d4
parent 1181
ca6d0ef9aadb
child 1184
393babf1319d
equal deleted inserted replaced
1181:ca6d0ef9aadb 1182:813d020f92d4
93 /* 93 /*
94 * Assuming we're currently viewing from a fixed camera, draw a backdrop into it. Currently this means drawing the grid. 94 * Assuming we're currently viewing from a fixed camera, draw a backdrop into it. Currently this means drawing the grid.
95 */ 95 */
96 void Canvas::drawFixedCameraBackdrop() 96 void Canvas::drawFixedCameraBackdrop()
97 { 97 {
98 static const enum { Cartesian, Polar } gridType = Cartesian; 98 static const enum { Cartesian, Polar } gridType = Polar;
99 99
100 // Find the top left corner of the grid 100 // Find the top left corner of the grid
101 Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0})); 101 Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0}));
102 Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()})); 102 Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()}));
103 qreal gridSize = grid()->coordinateSnap(); 103 qreal gridSize = grid()->coordinateSnap();

mercurial