[vtkusers] intergrating vtk with java

Denis Barbier bouzim at gmail.com
Sun Jan 31 05:53:57 EST 2010


On 2010/1/31 nikhil singhania <niksinghania at gmail.com>:
> hi all,
> Can any one help me in using  BoxWidget in java? I have used the boxwidget
> successfully in vtk , but now i am trying to integrate my code in java. Then
> i am getting an error in the function
> "boxWidget.AddObserver("EndInteractionEvent", SelectPolygons);"
> I dont' know how to apply it, since netbeans requires three arguments and
> there were only two in vtk in vtk.

Hi,

There is an optional 3rd parameter, see
  http://www.vtk.org/doc/nightly/html/classvtkObject.html#aa9f4bcd0e0052a2ea4347f62ed0a5156
So you may need to add "0" in the call to AddObserver (not tested):
  boxWidget.AddObserver("EndInteractionEvent", SelectPolygons, "0");

Denis



More information about the vtkusers mailing list