[vtkusers] extending c++ interaction classes and using them with Java
Denis Barbier
bouzim at gmail.com
Tue Dec 15 13:50:40 EST 2009
On 2009/12/15 Henrik Westerberg wrote:
>
> Hi vtkusers,
>
> After some checking on the list I realized that its not possible to sub class a vtk class in Java and use
> the class due to the Wrapping.
>
> So I have chosen to extend vtkInteractorTrackballActor.cxx. However I don't know anything about programming
> in C++ or changing VTK classes so if someone can eyeball my class and tell me if I missed anything obvious
> I would really appreciate it. I have attempted to override UniformScale to only scale in X .
>
> The reason is I am quite often getting a Java VM crash when swapping interactor styles between my extended
> Interactor and any of the default VTK ones. The swap is going through: setInteractorStyle in vtkCanvas.
[...]
Maybe your code is not at fault, did you try switching between
different VTK interactor styles?
Denis
More information about the vtkusers
mailing list