Beispiel #1
0
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);
}
Beispiel #3
0
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);
		}