In GoFigure2, the events and visualization gesture is based on the classes developed at INRIA, vtkRenderingAddOn2. The classes has been adapted to fit our requirements since we are processing biological data instead of medical images.
The interaction between the user and a window is based on 3 classes:vtkViewImage
This class allows the user to display an image.
Add an observer to the current interactor style (vtkInteractorStyleImage). Choose the events we want to observe. Add the class to be called when the event occurs is vtkViewImageCommand.
This class defines the behaviour of the interactor, i.e., which event should be sent when a specific action is performed by the user.
Reimplement an existing interactor. Don't forget to call the superclass if you want to add functionnalities to the original behaviour.
This class defines what to do when a particular event has been caught.
The source code can be found at:
5. Example ¶
It is implemented at: