[vtkusers] Re: Java fully supported?
David Marshburn
marshbur at cs.unc.edu
Mon Jan 29 16:35:13 EST 2007
On Mon, 29 Jan 2007, David E DeMarle wrote:
> As you've noticed, the vtk's wrapped language APIs (python, tcl, java)
> include a subset of the features of the C++ API. Generally speaking
> C++ methods that take or return void pointers are not exported to the
> wrapped languages. Also code between //BTX and //ETX in the header
> files is excluded from wrapping.
>
> However the subset that is wrapped is quite useable. For instance
> vtkStructuredGridGeometryFilter's parent class, vtkPolyDataAlgorithm,
> does have a SetInput method.
in addition, the java wrapping adds a few convenience methods.
see vtkUnsignedCharArray::SetJavaArray for a fast method of copying a java
array into a native vtk array (all the vtk*Array classes have this method
in java).
one very big problem is that these don't appear anywhere in the (otherwise
excellent) online documentation. i only accientally found the methods
while scrolling through the method list my IDE provided for
auto-completion. thank goodness for that!
our group has found vtk to be very useable with java wrapping; we have
several applications written in java and using java-wrapped vtk.
-david
More information about the vtkusers
mailing list