void MantidGLWidget::setSurface(boost::shared_ptr<ProjectionSurface> surface) { m_surface = surface; connect(m_surface.get(),SIGNAL(redrawRequired()),this,SLOT(repaint()),Qt::QueuedConnection); m_firstFrame = true; initializeGL(); }
void Relation::paint(const CurveRenderContext& context) { if (redrawRequired(context) || _redrawRequired) { updatePaintObjects(context); _redrawRequired = false; } paintObjects(context); }
void ScreenUpdates_process (void) { if (redrawRequired() && GTK_WIDGET_VISIBLE(g_wait.m_window)) { while (gtk_events_pending()) { gtk_main_iteration(); } } }
/// Assign a surface to draw on void SimpleWidget::setSurface(boost::shared_ptr<ProjectionSurface> surface) { m_surface = surface; connect(m_surface.get(), SIGNAL(redrawRequired()), this, SLOT(repaint()), Qt::QueuedConnection); }