VTK
|
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor More...
#include <vtkInteractorObserver.h>
Public Types | |
typedef vtkObject | Superclass |
![]() |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | OnChar () |
virtual void | SetEnabled (int) |
int | GetEnabled () |
void | EnabledOn () |
void | EnabledOff () |
void | On () |
void | Off () |
virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
virtual vtkRenderWindowInteractor * | GetInteractor () |
virtual void | SetPriority (float) |
virtual float | GetPriority () |
virtual void | SetKeyPressActivation (int) |
virtual int | GetKeyPressActivation () |
virtual void | KeyPressActivationOn () |
virtual void | KeyPressActivationOff () |
virtual void | SetKeyPressActivationValue (char) |
virtual char | GetKeyPressActivationValue () |
virtual vtkRenderer * | GetDefaultRenderer () |
virtual void | SetDefaultRenderer (vtkRenderer *) |
virtual vtkRenderer * | GetCurrentRenderer () |
virtual void | SetCurrentRenderer (vtkRenderer *) |
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | ReleaseFocus () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkInteractorObserver * | SafeDownCast (vtkObject *o) |
static void | ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4]) |
static void | ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3]) |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Protected Member Functions | |
vtkInteractorObserver () | |
~vtkInteractorObserver () | |
int | RequestCursorShape (int requestedShape) |
virtual void | StartInteraction () |
virtual void | EndInteraction () |
void | ComputeDisplayToWorld (double x, double y, double z, double worldPt[4]) |
void | ComputeWorldToDisplay (double x, double y, double z, double displayPt[3]) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Static Protected Member Functions | |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
int | Enabled |
vtkCallbackCommand * | EventCallbackCommand |
vtkCallbackCommand * | KeyPressCallbackCommand |
float | Priority |
int | KeyPressActivation |
char | KeyPressActivationValue |
vtkRenderWindowInteractor * | Interactor |
vtkRenderer * | CurrentRenderer |
vtkRenderer * | DefaultRenderer |
unsigned long | CharObserverTag |
unsigned long | DeleteObserverTag |
vtkObserverMediator * | ObserverMediator |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
vtkInteractorObserver is an abstract superclass for subclasses that observe events invoked by vtkRenderWindowInteractor. These subclasses are typically things like 3D widgets; objects that interact with actors in the scene, or interactively probe the scene for information.
vtkInteractorObserver defines the method SetInteractor() and enables and disables the processing of events by the vtkInteractorObserver. Use the methods EnabledOn() or SetEnabled(1) to turn on the interactor observer, and the methods EnabledOff() or SetEnabled(0) to turn off the interactor. Initial value is 0.
To support interactive manipulation of objects, this class (and subclasses) invoke the events StartInteractionEvent, InteractionEvent, and EndInteractionEvent. These events are invoked when the vtkInteractorObserver enters a state where rapid response is desired: mouse motion, etc. The events can be used, for example, to set the desired update frame rate (StartInteractionEvent), operate on data or update a pipeline (InteractionEvent), and set the desired frame rate back to normal values (EndInteractionEvent). Two other events, EnableEvent and DisableEvent, are invoked when the interactor observer is enabled or disabled.
Definition at line 58 of file vtkInteractorObserver.h.
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkImagePlaneWidget, vtkInteractorStyle, vtkSplineWidget, vtkBoxWidget2, vtkBiDimensionalWidget, vtkPlaneWidget, vtkImplicitPlaneWidget2, vtkSphereWidget2, vtkInteractorStyleUnicam, vtkBoxWidget, vtkLineWidget2, vtkLineWidget, vtkAxesTransformWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkBorderWidget, vtkPointWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkSliderWidget, vtkHoverWidget, vtkSphereWidget, vtkHandleWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyleTerrain, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkCameraWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkLogoWidget, vtkPolyDataSourceWidget, vtkInteractorStyleJoystickCamera, vtkPlaybackWidget, vtkXYPlotWidget, vtkInteractorStyleRubberBandPick, vtkSplineWidget2, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTrackball, and vtkContextInteractorStyle.
Definition at line 61 of file vtkInteractorObserver.h.
|
protected |
|
protected |
|
virtual |
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkImagePlaneWidget, vtkInteractorStyle, vtkSplineWidget, vtkBoxWidget2, vtkBiDimensionalWidget, vtkPlaneWidget, vtkImplicitPlaneWidget2, vtkSphereWidget2, vtkInteractorStyleUnicam, vtkBoxWidget, vtkLineWidget2, vtkLineWidget, vtkAxesTransformWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkBorderWidget, vtkPointWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkSliderWidget, vtkHoverWidget, vtkSphereWidget, vtkHandleWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyleTerrain, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkCameraWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkLogoWidget, vtkPolyDataSourceWidget, vtkInteractorStyleJoystickCamera, vtkPlaybackWidget, vtkXYPlotWidget, vtkInteractorStyleRubberBandPick, vtkSplineWidget2, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTrackball, and vtkContextInteractorStyle.
|
static |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkImagePlaneWidget, vtkInteractorStyle, vtkSplineWidget, vtkBoxWidget2, vtkBiDimensionalWidget, vtkPlaneWidget, vtkImplicitPlaneWidget2, vtkSphereWidget2, vtkInteractorStyleUnicam, vtkBoxWidget, vtkLineWidget2, vtkLineWidget, vtkAxesTransformWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkBorderWidget, vtkPointWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkSliderWidget, vtkHoverWidget, vtkSphereWidget, vtkHandleWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyleTerrain, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkCameraWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkLogoWidget, vtkPolyDataSourceWidget, vtkInteractorStyleJoystickCamera, vtkPlaybackWidget, vtkXYPlotWidget, vtkInteractorStyleRubberBandPick, vtkSplineWidget2, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTrackball, and vtkContextInteractorStyle.
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkImagePlaneWidget, vtkInteractorStyle, vtkSplineWidget, vtkBoxWidget2, vtkBiDimensionalWidget, vtkPlaneWidget, vtkImplicitPlaneWidget2, vtkSphereWidget2, vtkInteractorStyleUnicam, vtkBoxWidget, vtkLineWidget2, vtkLineWidget, vtkAxesTransformWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkBorderWidget, vtkPointWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkSliderWidget, vtkHoverWidget, vtkSphereWidget, vtkHandleWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyleTerrain, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkCameraWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkLogoWidget, vtkPolyDataSourceWidget, vtkInteractorStyleJoystickCamera, vtkPlaybackWidget, vtkXYPlotWidget, vtkInteractorStyleRubberBandPick, vtkSplineWidget2, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTrackball, and vtkContextInteractorStyle.
|
static |
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkImagePlaneWidget, vtkInteractorStyle, vtkSplineWidget, vtkBoxWidget2, vtkBiDimensionalWidget, vtkPlaneWidget, vtkImplicitPlaneWidget2, vtkSphereWidget2, vtkInteractorStyleUnicam, vtkBoxWidget, vtkLineWidget2, vtkLineWidget, vtkAxesTransformWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkBorderWidget, vtkPointWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkSliderWidget, vtkHoverWidget, vtkSphereWidget, vtkHandleWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyleTerrain, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkCameraWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkLogoWidget, vtkPolyDataSourceWidget, vtkInteractorStyleJoystickCamera, vtkPlaybackWidget, vtkXYPlotWidget, vtkInteractorStyleRubberBandPick, vtkSplineWidget2, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTrackball, and vtkContextInteractorStyle.
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkImagePlaneWidget, vtkInteractorStyle, vtkSplineWidget, vtkBoxWidget2, vtkBiDimensionalWidget, vtkPlaneWidget, vtkImplicitPlaneWidget2, vtkSphereWidget2, vtkInteractorStyleUnicam, vtkBoxWidget, vtkLineWidget2, vtkLineWidget, vtkAxesTransformWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkBorderWidget, vtkPointWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkSliderWidget, vtkHoverWidget, vtkSphereWidget, vtkHandleWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyleTerrain, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkCameraWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkLogoWidget, vtkPolyDataSourceWidget, vtkInteractorStyleJoystickCamera, vtkPlaybackWidget, vtkXYPlotWidget, vtkInteractorStyleRubberBandPick, vtkSplineWidget2, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleTrackball, and vtkContextInteractorStyle.
|
inlinevirtual |
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Initial value is 0.
Reimplemented in vtkInteractorStyle, vtkContourWidget, vtkImagePlaneWidget, vtkSplineWidget, vtkBiDimensionalWidget, vtkPlaneWidget, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkAffineWidget, vtkAngleWidget, vtkBalloonWidget, vtkHoverWidget, vtkOrientationMarkerWidget, vtkDistanceWidget, vtkPointWidget, vtkSeedWidget, vtkImageTracerWidget, vtkSphereWidget, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkXYPlotWidget, and vtkInteractorEventRecorder.
Definition at line 71 of file vtkInteractorObserver.h.
|
inline |
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Initial value is 0.
Definition at line 72 of file vtkInteractorObserver.h.
|
inline |
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Initial value is 0.
Definition at line 73 of file vtkInteractorObserver.h.
|
inline |
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Initial value is 0.
Definition at line 74 of file vtkInteractorObserver.h.
|
inline |
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Initial value is 0.
Definition at line 75 of file vtkInteractorObserver.h.
|
inline |
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Initial value is 0.
Definition at line 76 of file vtkInteractorObserver.h.
|
virtual |
This method is used to associate the widget with the render window interactor. Observers of the appropriate events invoked in the render window interactor are set up as a result of this method invocation. The SetInteractor() method must be invoked prior to enabling the vtkInteractorObserver.
Reimplemented in vtkInteractorStyle, vtkSeedWidget, vtkInteractorStyleTreeMapHover, vtkGeoInteractorStyle, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleSwitch, and vtkInteractorEventRecorder.
|
virtual |
This method is used to associate the widget with the render window interactor. Observers of the appropriate events invoked in the render window interactor are set up as a result of this method invocation. The SetInteractor() method must be invoked prior to enabling the vtkInteractorObserver.
|
virtual |
Set/Get the priority at which events are processed. This is used when multiple interactor observers are used simultaneously. The default value is 0.0 (lowest priority.) Note that when multiple interactor observer have the same priority, then the last observer added will process the event first. (Note: once the SetInteractor() method has been called, changing the priority does not effect event processing. You will have to SetInteractor(NULL), change priority, and then SetInteractor(iren) to have the priority take effect.)
Reimplemented in vtkAbstractWidget.
|
virtual |
Set/Get the priority at which events are processed. This is used when multiple interactor observers are used simultaneously. The default value is 0.0 (lowest priority.) Note that when multiple interactor observer have the same priority, then the last observer added will process the event first. (Note: once the SetInteractor() method has been called, changing the priority does not effect event processing. You will have to SetInteractor(NULL), change priority, and then SetInteractor(iren) to have the priority take effect.)
|
virtual |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. (By default, the keypress is 'i' for "interactor observer".) Set the KeyPressActivationValue to change which key activates the widget.)
|
virtual |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. (By default, the keypress is 'i' for "interactor observer".) Set the KeyPressActivationValue to change which key activates the widget.)
|
virtual |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. (By default, the keypress is 'i' for "interactor observer".) Set the KeyPressActivationValue to change which key activates the widget.)
|
virtual |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. (By default, the keypress is 'i' for "interactor observer".) Set the KeyPressActivationValue to change which key activates the widget.)
|
virtual |
Specify which key press value to use to activate the interactor observer (if key press activation is enabled). By default, the key press activation value is 'i'. Note: once the SetInteractor() method is invoked, changing the key press activation value will not affect the key press until SetInteractor(NULL)/SetInteractor(iren) is called.
|
virtual |
Specify which key press value to use to activate the interactor observer (if key press activation is enabled). By default, the key press activation value is 'i'. Note: once the SetInteractor() method is invoked, changing the key press activation value will not affect the key press until SetInteractor(NULL)/SetInteractor(iren) is called.
|
virtual |
Set/Get the default renderer to use when activating the interactor observer. Normally when the widget is activated (SetEnabled(1) or when keypress activation takes place), the renderer over which the mouse pointer is positioned is used. Alternatively, you can specify the renderer to bind the interactor to when the interactor observer is activated.
|
virtual |
Set/Get the default renderer to use when activating the interactor observer. Normally when the widget is activated (SetEnabled(1) or when keypress activation takes place), the renderer over which the mouse pointer is positioned is used. Alternatively, you can specify the renderer to bind the interactor to when the interactor observer is activated.
Reimplemented in vtkInteractorStyleSwitch.
|
virtual |
Set/Get the current renderer. Normally when the widget is activated (SetEnabled(1) or when keypress activation takes place), the renderer over which the mouse pointer is positioned is used and assigned to this Ivar. Alternatively, you might want to set the CurrentRenderer explicitly. WARNING: note that if the DefaultRenderer Ivar is set (see above), it will always override the parameter passed to SetCurrentRenderer, unless it is NULL. (i.e., SetCurrentRenderer(foo) = SetCurrentRenderer(DefaultRenderer).
|
virtual |
Set/Get the current renderer. Normally when the widget is activated (SetEnabled(1) or when keypress activation takes place), the renderer over which the mouse pointer is positioned is used and assigned to this Ivar. Alternatively, you might want to set the CurrentRenderer explicitly. WARNING: note that if the DefaultRenderer Ivar is set (see above), it will always override the parameter passed to SetCurrentRenderer, unless it is NULL. (i.e., SetCurrentRenderer(foo) = SetCurrentRenderer(DefaultRenderer).
Reimplemented in vtkGeoInteractorStyle, vtkSeedWidget, and vtkInteractorStyleSwitch.
|
virtual |
Sets up the keypress-i event.
Reimplemented in vtkImagePlaneWidget, vtkInteractorStyle, vtkInteractorStyleFlight, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleUser, vtkInteractorStyleTerrain, vtkInteractorStyleImage, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, and vtkInteractorStyleRubberBandPick.
|
static |
Convenience methods for outside classes. Make sure that the parameter "ren" is not-null.
|
static |
Convenience methods for outside classes. Make sure that the parameter "ren" is not-null.
void vtkInteractorObserver::GrabFocus | ( | vtkCommand * | mouseEvents, |
vtkCommand * | keypressEvents = NULL |
||
) |
These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. (This method is typically used by widgets to grab events once an event sequence begins.) The GrabFocus() signature takes up to two vtkCommands corresponding to mouse events and keypress events. (These two commands are separated so that the widget can listen for its activation keypress, as well as listening for DeleteEvents, without actually having to process mouse events.)
void vtkInteractorObserver::ReleaseFocus | ( | ) |
These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. (This method is typically used by widgets to grab events once an event sequence begins.) The GrabFocus() signature takes up to two vtkCommands corresponding to mouse events and keypress events. (These two commands are separated so that the widget can listen for its activation keypress, as well as listening for DeleteEvents, without actually having to process mouse events.)
|
protectedvirtual |
Utility routines used to start and end interaction. For example, it switches the display update rate. It does not invoke the corresponding events.
|
protectedvirtual |
Utility routines used to start and end interaction. For example, it switches the display update rate. It does not invoke the corresponding events.
|
staticprotected |
Handles the char widget activation event. Also handles the delete event.
Reimplemented in vtkImagePlaneWidget, vtkInteractorStyle, vtkImageTracerWidget, vtkPlaneWidget, vtkImplicitPlaneWidget, vtkSphereWidget, vtkBoxWidget, vtkPointWidget, vtkLineWidget, vtkOrientationMarkerWidget, vtkInteractorEventRecorder, and vtkXYPlotWidget.
|
protected |
Helper method for subclasses.
|
protected |
Helper method for subclasses.
|
protected |
|
protected |
Definition at line 204 of file vtkInteractorObserver.h.
|
protected |
Definition at line 207 of file vtkInteractorObserver.h.
|
protected |
Definition at line 208 of file vtkInteractorObserver.h.
|
protected |
Definition at line 211 of file vtkInteractorObserver.h.
|
protected |
Definition at line 214 of file vtkInteractorObserver.h.
|
protected |
Definition at line 215 of file vtkInteractorObserver.h.
|
protected |
Definition at line 218 of file vtkInteractorObserver.h.
|
protected |
Definition at line 221 of file vtkInteractorObserver.h.
|
protected |
Definition at line 222 of file vtkInteractorObserver.h.
|
protected |
Definition at line 224 of file vtkInteractorObserver.h.
|
protected |
Definition at line 225 of file vtkInteractorObserver.h.
|
protected |
Definition at line 228 of file vtkInteractorObserver.h.