[vtkusers] VTK and JNI
Gahide Jérôme
gahidej at libertysurf.fr
Tue Feb 24 11:01:31 EST 2004
Hi everybody,
I have a Java application that use VTK. This appliaction create all the VTK objects we need.
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).
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.
So the question are :
- How can I get back the the C++ pointer on the vtkActor from the jobject I have, when I program with JNI.
example :
java file.
import vtk.*;
...
private vtkActor va;
public native void getJNIvtkActor();
cxx file .
JNIEXPORT void ...(JNIEnv* env, jobject obj){
what can I do here to work with my vtkActor? and not a jobject
}
- Where can I find this file (.h .cxx) where Wrapping with Java is defined. (with JNI?).
Thanks a lot.
Jérôme.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040224/f1414e08/attachment.htm>
More information about the vtkusers
mailing list