[vtkusers] VTK Animations with Java Swing
William E Lucarell
welucarell at equityeng.com
Fri Feb 22 08:38:41 EST 2008
I am developing a Java Swing application to animate 2D and 3D drawings. I
am embedding a JPanel which houses a vtkPanel. The vtkPanel is derived from
AWT component Canvas. However, my application is in Swing and I'd like to
automatically animate my application without any flickering of the image.
My application should be able to start, stop, and continue animations. What
would be the best way of going about this? Is it doable in Swing?
Here is some of the code that embeds the VTK drawing. The drawing renders
fine. I just want to be able to animate it. Note: vtkWindow is a JPanel
that I created in NetBeans:
vtkPanel p1;
VtkPanelUtil.setSize(p1,vtkWindow.getSize().width,vtkWindow.getSize().height
);
vtkWindow.add(p1);
Thanks,
Bill Lucarell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080222/8ddddf43/attachment.htm>
More information about the vtkusers
mailing list