vtkWidgetEventTranslator

Section: Visualization Toolkit Widget Classes

Usage

vtkWidgetEventTranslator maps VTK events (defined on vtkCommand) into widget events (defined in vtkWidgetEvent.h). This class is typically used in combination with vtkWidgetCallbackMapper, which is responsible for translating widget events into method callbacks, and then invoking the callbacks.

This class can be used to define different mappings of VTK events into the widget events. Thus widgets can be reconfigured to use different event bindings.

To create an instance of class vtkWidgetEventTranslator, simply invoke its constructor as follows

  obj = vtkWidgetEventTranslator

Methods

The class vtkWidgetEventTranslator has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkWidgetEventTranslator class.