void GUISUMOAbstractView::paintGL() { if (getWidth() == 0 || getHeight() == 0) { return; } if (getTrackedID() > 0) { centerTo(getTrackedID(), false); } unsigned int id = 0; if (myUseToolTips) { id = getObjectUnderCursor(); } // draw glClearColor( myVisualizationSettings->backgroundColor.red() / 255., myVisualizationSettings->backgroundColor.green() / 255., myVisualizationSettings->backgroundColor.blue() / 255., myVisualizationSettings->backgroundColor.alpha() / 255.); glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); if (myVisualizationSettings->dither) { glEnable(GL_DITHER); } else { glDisable(GL_DITHER); } if (myVisualizationSettings->antialiase) { glEnable(GL_BLEND); glEnable(GL_POLYGON_SMOOTH); glEnable(GL_LINE_SMOOTH); } else { glDisable(GL_BLEND); glDisable(GL_POLYGON_SMOOTH); glDisable(GL_LINE_SMOOTH); } applyGLTransform(); doPaintGL(GL_RENDER, myChanger->getViewport()); if (myVisualizationSettings->showSizeLegend) { displayLegend(); } // check whether the select mode /tooltips) // shall be computed, too if (myUseToolTips && id != 0) { showToolTipFor(id); } swapBuffers(); }
void CenterToDialog::slotOk() { setVisible( false ); emit centerTo( latE->KFLogDegree(), longE->KFLogDegree() ); close(); }