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

  paintObjects(context);
}
예제 #3
0
void ScreenUpdates_process (void)
{
	if (redrawRequired() && GTK_WIDGET_VISIBLE(g_wait.m_window)) {
		while (gtk_events_pending()) {
			gtk_main_iteration();
		}
	}
}
예제 #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);
		}