<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi everybody,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a Java application that use VTK. This 
appliaction create all the VTK objects we need.</FONT></DIV>
<DIV><FONT face=Arial size=2>After the application create the object, I 
have to pass an vtkActor to C++ using JNI (in order to print the render on 
a special big screen). </FONT></DIV>
<DIV><FONT face=Arial size=2>For now, I have learned with some tutorials JNI and 
in order to anderstand how to get back the C++ pointer on a vtkActor, I have 
looked for the header file and the cxx that make the link beetween Java and C++ 
but I don't find them.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So the question are : </FONT></DIV>
<DIV><FONT face=Arial size=2>- How can I get back the the C++ pointer on the 
vtkActor from the jobject I have, when I program with JNI.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>    example : </FONT></DIV>
<DIV><FONT face=Arial size=2>    java file.</FONT></DIV>
<DIV><FONT face=Arial size=2>    import vtk.*; </FONT></DIV>
<DIV><FONT face=Arial size=2>    ...</FONT></DIV>
<DIV><FONT face=Arial size=2>    private vtkActor 
va;</FONT></DIV>
<DIV><FONT face=Arial size=2>    public native void 
getJNIvtkActor();</FONT></DIV>
<DIV><FONT face=Arial size=2>        </FONT></DIV>
<DIV><FONT face=Arial size=2>    cxx file .</FONT></DIV>
<DIV><FONT face=Arial size=2>    JNIEXPORT void ...(JNIEnv* env, 
jobject obj){</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>        what can I do 
here to work with my vtkActor? and not a jobject</FONT></DIV>
<DIV><FONT face=Arial size=2>        
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>    }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Where can I find this file (.h .cxx) where 
Wrapping with Java is defined. (with JNI?).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks a lot.</FONT></DIV>
<DIV><FONT face=Arial size=2>Jérôme.</FONT></DIV></BODY></HTML>