Hi Antonio,<div><br></div><div>I do not think VTK officially supports clojure and I am not aware of anybody else doing this type of work. I am not a clojure expert but can read clojure (common lisp in general) so maybe can give a shot at  this. </div>

<div><br></div><div>So it seems like your main problem is that you need to register a clojure callback into the java API so that when an event is triggered your method gets executed. I found this solution online and hope it helps you</div>

<div><br></div><div><a href="http://clojure.org/java_interop">http://clojure.org/java_interop</a></div><div><a href="http://stackoverflow.com/questions/2181774/calling-clojure-from-java">http://stackoverflow.com/questions/2181774/calling-clojure-from-java</a></div>

<div><br></div><div>What I gather is that you may have to declare a clojure method and define it pretended with a dash (&#39;-&#39;) for java to be able to call it. Let me know if this helps. </div><div><br></div><div>-Nix</div>

<div><br><br><div class="gmail_quote">On Sat, Mar 3, 2012 at 5:33 PM, Antonio Recio <span dir="ltr">&lt;<a href="mailto:amdx64bt@gmail.com">amdx64bt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I want to translate the example Cone6.java to clojure. I don&#39;t know<br>
how to use InteractionEvent in clojure. Can you give some advice? Do<br>
yo know some tutorials/projects for vtk in clojure?<br>
<br>
void myCallback() {<br>
        vtkTransform t = new vtkTransform();<br>
        boxWidget.GetTransform(t);<br>
        boxWidget.GetProp3D().SetUserTransform(t);<br>
}<br>
<br>
boxWidget.AddObserver(&quot;InteractionEvent&quot;, this, &quot;myCallback&quot;);<br>
<br>
<br>
Sources:<br>
<a href="http://www.cmake.org/Wiki/VTK/Examples/Java/Miscellaneous/Cone6" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Java/Miscellaneous/Cone6</a><br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkBoxWidget.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkBoxWidget.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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>
</blockquote></div><br></div>