[vtkusers] VTK and JNI
Jeff Lee
jeff at cdnorthamerica.com
Tue Feb 24 11:08:13 EST 2004
any reason you're not using the java wrappers?
-Jeff
Gahide Jérôme wrote:
> 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.
More information about the vtkusers
mailing list