← Back to team overview

yade-dev team mailing list archive

Re: [Yade-commits] r1397 - in branches/przewdnik: core gui/qt3 pkg/common/Engine/StandAloneEngine/Visualisation

 

You're using awfully outdated branch. There was big cleanup (by me;-) )
in the qt3 interface, bear that at least in mind. Otherwise merging will
be difficult afterwards. Regards, Vaclav
> Modified: branches/przewdnik/gui/qt3/SimulationController.cpp
> ===================================================================
> --- branches/przewdnik/gui/qt3/SimulationController.cpp	2008-06-18 15:47:25 UTC (rev 1396)
> +++ branches/przewdnik/gui/qt3/SimulationController.cpp	2008-06-18 17:14:33 UTC (rev 1397)
> @@ -32,6 +32,9 @@
>  	sync=false;
>  	refreshTime = 20;
>  	parentWorkspace = parent;
> +	
> +	queue = InterprocessQueue<BodyContainer>();
> +	queue.init("vis_queue");
>  
>  	scrollViewFrame = new QFrame();	
>  	
> @@ -437,6 +440,9 @@
>  void SimulationController::timerEvent( QTimerEvent* )
>  {
>  	updater->oneLoop();
> +	BodyContainer bc;
> +	queue.pop(bc);
> +	Omega::instance().setVisualisationBody(bc);
>  	redrawAll();
>  	if(sync)
>  		Omega::instance().spawnSingleSimulationLoop();
>
>   

_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev