On Sat, Mar 3, 2012 at 12:47 PM, Antonio Recio <amdx6...@gmail.com> wrote: > Any advice? >
This is an odd library. My first shot would be to try something like: (def myCallback (fn [] (let [t (vtkTransform.)] (.GetTransform t) (-> boxWidget .GetProp3D (.SetUserTransform t))))) ; AddObserver is looking for a no-args method, and fns with no args qualify. Their method is named "invoke" from the IFn interface (.AddObserver boxWidget "interactionEvent" myCallback "invoke") If this can't be made to work, you'll have to fall back to gen-class to make something that fully matches what the example does. This library doesn't even really look like java code, so it's super-weird seeing it in clojure. Good luck! --Aaron -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en