Thanks for the info, I'll have a look, also I found the following site which is helping a lot<div><a href="http://ij-plugins.sourceforge.net/vtk-examples/index.html">http://ij-plugins.sourceforge.net/vtk-examples/index.html</a><br>
<br><div class="gmail_quote">On Tue, Oct 5, 2010 at 2:24 PM, Luke Dodd <span dir="ltr"><<a href="mailto:i.like.bread@gmail.com">i.like.bread@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">This is possible. Take a look at the vtk.vtkPanel and vtk.vtkCanvas<br>
classes. They are awt components, you can - with some caveats put them<br>
in a swing GUI like any other swing component.<br>
<br>
There are methods to get the renderer - so you can add things to it,<br>
and to paint so you can see the results. I think vtkPanel is the base<br>
class and vtkCanvas extends this with more functionality. I'd say look<br>
at the source of each and figure out what you need - they implement<br>
certain interaction behaviours and forward certain awt events to vtk<br>
interactors.<br>
<br>
There is not much documentation for this, but the source code is not<br>
too hard to read.<br>
<br>
</div>(Sorry for sending again Jonathan, but I hit reply instead of reply<br>
all - it's good to get this on the list for others to see)<br>
<div class="im"><br>
Best Regards,<br>
Luke Dodd<br>
<br>
On 5 October 2010 21:33, Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> I'm new to VTK and am interested in writing a very simple medical image<br>
> viewer that can view a 3D volume at three orthogonal planes and have the<br>
> user click around on various planes to navigate through the data. I was<br>
> able to get VTK compiling and examples running in Java, however I'm unsure<br>
> how to get the native VTK windows to interact with Java swing. Ideally, I'd<br>
> like there to be no VTK windows, and have everything live inside of Swing<br>
> components. Can anyone point me to some example code or good reading to<br>
> help getting started with this in Java?<br>
> Thanks<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>