[vtkusers] creating custom events for interactorStyle classes
David Doria
daviddoria at gmail.com
Mon May 20 09:44:09 EDT 2013
On Fri, May 17, 2013 at 5:33 PM, Fatih Ergüner <f.erguner at gmail.com> wrote:
> Hello all,
>
> i want to create custom event for manipuating the rendered 3d volumes. For
> example when i say "hello" then this event is invoked and i move the objects
> etc. I created a custom interactorstyle which is a subclass of
> vtkInteractorStyle.
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/UserEvent
> in above example, a test class which is inherited from vtkPolyDataAlgorithm
> has a user defined RefreshEvent which is invoked in RequestData.
>
> But vtkInteractorStyle class has no RequestData method. is there a way of
> overriding the ProgressEvent Method. Or how can i accomplish this task?
>
> thanks in advance...
>
> --
> Best Regards;
> Fatih Ergüner
Perhaps you can be a bit more concrete. What do you mean by "say hello"?
You should be able to invoke an event from anywhere as long as the
class is derived from vtkObject. It would probably be easier if you
could show us a minimal, compilable example of what you've tried so
far, and explain exactly where it is not working for you.
David
More information about the vtkusers
mailing list