Thanks, so addObserver method is the best way to go then?<br><br><div class="gmail_quote">2012/6/21 Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can not override vtkObject in Java. That code need to be written in C++.<br>
<div><div class="h5"><br>
<br>
On Thu, Jun 21, 2012 at 11:17 AM, Jonathan Ruiz Peinado<br>
<<a href="mailto:jonathan.ruiz3@gmail.com">jonathan.ruiz3@gmail.com</a>> wrote:<br>
> Hi I'm trying to build my own interactor style class, as it's shown in the<br>
> documentation seems an easy job but is not working for some reason this is<br>
> part of the code:<br>
><br>
> ----------------------------------------------------------------------------------------------------<br>
> vtkInteractorStylePointer interactor = new vtkInteractorStylePointer();<br>
><br>
> interactor.SetInteractor(vtkPanel.getRenderWindowInteractor());<br>
> vtkPanel.setInteractorStyle(interactor);<br>
> ----------------------------------------------------------------------------------------------------<br>
><br>
> if I use one of the predefined styles vtkInteractorStyle* they work<br>
> perfectly well , but when I try to use mine vtkInteractorStylePointer()<br>
> doesn't work at all.<br>
><br>
><br>
> vtkInteractorStylePointer should print out some text when left button is<br>
> pressed, but it doesn't.<br>
><br>
> ----------------------------------------------------------------------------------------------------<br>
> public class vtkInteractorStylePointer extends vtk.vtkInteractorStyle{<br>
><br>
> @Override<br>
> public void OnLeftButtonDown() {<br>
> System.out.println("xxx");<br>
> super.OnLeftButtonDown();<br>
><br>
> }<br>
> @Override<br>
> public void OnLeftButtonUp() {<br>
> System.out.println("yyy");<br>
> super.OnLeftButtonUp();<br>
> }<br>
><br>
> }<br>
> ------------------------------------------------------------------------------------------------------<br>
><br>
> do some body know what's going wrong ?<br>
><br>
> Thanks for your time!<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
</blockquote></div><br>