[vtk-developers] Java question
Bill Hoffman
bill.hoffman at kitware.com
Fri Aug 2 13:12:40 EDT 2002
Without looking at your code at all, if a VTK OpenGL window is popping up, you are doing a render before SetWindowId has been called on your vtkRenderWindow.
-Bill
At 01:02 PM 8/2/2002 -0400, Blezek, Daniel J (Research) wrote:
>Hi all,
>
> To Java-VTK developers out there. I ported the ImagePlaneWidget.tcl code to Java (included), just
>to poke around. These are the things I found:
>
>- if you do not make a vtkPanel object first, the dynamic vtk*Java.so libraries are not loaded
>- Hybrid was not included in the list of loaded native libraries, likely because it's optional (could
>be caught in the code)
>- When I add the interactor, I get two windows. One is the Swing/vtkPanel window, and the other
>looks like a VTK OpenGL window. This is really funny, and not expected. Without the interactor, I
>get one window (but the image plane widget doesn't work).
>
>Does anyone have some ideas what's going on? I modified the ImagePlaneWidget.tcl example to use a
>vtkTKRenderWidget (the TCL version of vtkPanel), and it does the right thing (also included).
>
>Thanks,
>-dan <<ImagePlaneWidget.tcl>> <<ImagePlaneWidget.java>>
>
>--
>Daniel Blezek, Ph.D.
>blezek at crd.ge.com
>Visualization and Computer Vision Lab, Imaging Technologies
>GE Global Research Center
>
>
>
>
>
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list