[vtkusers] Updating view in vtkCanvas.
Jeff Lee
jeff at cdnorthamerica.com
Wed Oct 1 09:57:43 EDT 2003
From which thread are you calling update()? i.e.
System.out.println(Thread.currentThread().toString()); It should be the
AWT Event thread. If not, try scheduling a Runnable with
SwingUtilities.invokeLater(...).
-Jeff
Said. wrote:
>Hi vtkusers,
>
>The screenshot
>http://www-sop.inria.fr/caiman/personnel/Said.El_Kasmi/vtk/vtk.htm give
>an idea about the environement for visualization and simulations'
>steering I'm developping. The concept is very simple, I have a solver
>connected to the desktop. The solver compute a solution and send it to
>the desktop every N iteration where N is one of the simulation
>paraneters. The desktop should, every time a new solution arrives,
>update the 3D View.
>
>To accomlish this, I use vtkCanvas in an JInternalFrame this way:
>
>class Desktop{
>
> PlotFrame pf;
> :
> :
> public void update3DView(){
> pf.update();
> }
>
>}
>
>class PlotFrame extends JInternalFrame{
>
> vtkCanvas renWin;
> :
> :
> public void update(){
> renWin.Render();
> }
>
>
>}
>
>The probleme is the call desktop.update3DView(); have no effect that
>means the call renWin.Render() have NO EFFECT TOO. So to update the view
>I'm obliged to do the call : pf.updateUI(); to perform the updating view
>operation.
>
>Does any of you have an idea about how to resolv this problem. THANKS.
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
More information about the vtkusers
mailing list