[vtkusers] [EXTERNAL] Embed C++ vtk window into java

Gerrick Bivins Gerrick.Bivins at halliburton.com
Mon Mar 16 08:03:44 EDT 2015


Hi James,
It's not clear to me what you are trying to  accomplish.
VTK can run in C++ or Java (and Python).
Why do you need to embed a C++ window in Java? Using the Java API's you can
create a "VTK  window" for your Java application like this:
http://www.vtk.org/Wiki/VTK/Examples/Java/Cylinder

More examples here:
http://www.vtk.org/Wiki/VTK/Examples/Java

Gerrick


-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of James Potota
Sent: Monday, March 16, 2015 3:29 AM
To: vtkusers at vtk.org
Subject: [EXTERNAL] [vtkusers] Embed C++ vtk window into java

Hi.

I'm new to vtk. I can launch a C++ VTK window in my Java application by using JNI but they were in separate windows. What I want to do is embed that
C++ vtk window into my java application.

I hava an idea which is pass the "vtkRenderWindow" as an object from C++ to Java via JNI. Because I assume both "vtkRenderWindow" in C++ and Java were the same data type but i doubt it would works.

Can anyone please show me a correct way to achieve this ? I would really appreciate that.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Embed-C-vtk-window-into-java-tp5730831.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.


More information about the vtkusers mailing list