src/gldraw.cc

changeset 590
7aec744ce97b
parent 587
507e5d5c348c
child 592
d3cf7a23bb59
equal deleted inserted replaced
589:1417828920e6 590:7aec744ce97b
54 { { 2, 0, 0, 0, 1, 0, 0, 0, 2 }, 54 { { 2, 0, 0, 0, 1, 0, 0, 0, 2 },
55 { 2, 0, 0, 0, 0, 2, 0, 1, 0 }, 55 { 2, 0, 0, 0, 0, 2, 0, 1, 0 },
56 { 0, 1, 0, 2, 0, 0, 0, 0, 2 }, 56 { 0, 1, 0, 2, 0, 0, 0, 0, 2 },
57 }; 57 };
58 58
59 cfg (String, gl_bgcolor, "#CCCCD9"); 59 cfg (String, gl_bgcolor, "#FFFFFF")
60 cfg (String, gl_maincolor, "#707078"); 60 cfg (String, gl_maincolor, "#A0A0A0")
61 cfg (Float, gl_maincolor_alpha, 1.0); 61 cfg (Float, gl_maincolor_alpha, 1.0)
62 cfg (Int, gl_linethickness, 2); 62 cfg (Int, gl_linethickness, 2)
63 cfg (Bool, gl_colorbfc, false); 63 cfg (Bool, gl_colorbfc, false)
64 cfg (Int, gl_camera, GLRenderer::EFreeCamera); 64 cfg (Int, gl_camera, GLRenderer::EFreeCamera)
65 cfg (Bool, gl_blackedges, false); 65 cfg (Bool, gl_blackedges, false)
66 cfg (Bool, gl_axes, false); 66 cfg (Bool, gl_axes, false)
67 cfg (Bool, gl_wireframe, false); 67 cfg (Bool, gl_wireframe, false)
68 cfg (Bool, gl_logostuds, false); 68 cfg (Bool, gl_logostuds, false)
69 cfg (Bool, gl_aa, true); 69 cfg (Bool, gl_aa, true)
70 cfg (Bool, gl_linelengths, true); 70 cfg (Bool, gl_linelengths, true)
71 cfg (Bool, gl_drawangles, false); 71 cfg (Bool, gl_drawangles, false)
72 72
73 // argh 73 // argh
74 const char* g_CameraNames[7] = 74 const char* g_CameraNames[7] =
75 { QT_TRANSLATE_NOOP ("GLRenderer", "Top"), 75 { QT_TRANSLATE_NOOP ("GLRenderer", "Top"),
76 QT_TRANSLATE_NOOP ("GLRenderer", "Front"), 76 QT_TRANSLATE_NOOP ("GLRenderer", "Front"),
106 106
107 // ============================================================================= 107 // =============================================================================
108 // ----------------------------------------------------------------------------- 108 // -----------------------------------------------------------------------------
109 GLRenderer::GLRenderer (QWidget* parent) : QGLWidget (parent) 109 GLRenderer::GLRenderer (QWidget* parent) : QGLWidget (parent)
110 { m_Picking = m_rangepick = false; 110 { m_Picking = m_rangepick = false;
111 m_camera = (GL::EFixedCamera) gl_camera.value; 111 m_camera = (GL::EFixedCamera) gl_camera;
112 m_drawToolTip = false; 112 m_drawToolTip = false;
113 m_EditMode = ESelectMode; 113 m_EditMode = ESelectMode;
114 m_rectdraw = false; 114 m_rectdraw = false;
115 m_panning = false; 115 m_panning = false;
116 setFile (null); 116 setFile (null);

mercurial