Ejemplo n.º 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();
}
Ejemplo n.º 2
0
void Relation::paint(const CurveRenderContext& context) {
  if (redrawRequired(context) || _redrawRequired) {
    updatePaintObjects(context);
    _redrawRequired = false;
  }

  paintObjects(context);
}
Ejemplo n.º 3
0
void ScreenUpdates_process (void)
{
	if (redrawRequired() && GTK_WIDGET_VISIBLE(g_wait.m_window)) {
		while (gtk_events_pending()) {
			gtk_main_iteration();
		}
	}
}
Ejemplo n.º 4
0
		/// 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);
		}