VTK
|
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor More...
#include <vtkInteractorObserver.h>
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 61 of file vtkInteractorObserver.h.
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
Definition at line 64 of file vtkInteractorObserver.h.
vtkInteractorObserver::vtkInteractorObserver | ( | ) | [protected] |
vtkInteractorObserver::~vtkInteractorObserver | ( | ) | [protected] |
static int vtkInteractorObserver::IsTypeOf | ( | const char * | name | ) | [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, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
virtual int vtkInteractorObserver::IsA | ( | const char * | name | ) | [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, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
static vtkInteractorObserver* vtkInteractorObserver::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
virtual vtkObjectBase* vtkInteractorObserver::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
Reimplemented from vtkObject.
Reimplemented in vtkContourWidget, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
void vtkInteractorObserver::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [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, vtkInteractorStyle, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkSplineWidget, vtkBoxWidget2, vtkBrokenLineWidget, vtkImplicitPlaneWidget2, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkLineWidget, vtkImplicitPlaneWidget, vtkRectilinearWipeWidget, vtkAngleWidget, vtkBalloonWidget, vtkDistanceWidget, vtkBorderWidget, vtkImageTracerWidget, vtkCenteredSliderWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkInteractorStyleImage, vtkPointWidget, vtkSliderWidget, vtkHoverWidget, vtkHandleWidget, vtkCompassWidget, vtkSphereWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtk3DWidget, vtkInteractorStyleTerrain, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkResliceCursorWidget, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleTreeMapHover, vtkInteractorStyleFlight, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, vtkInteractorStyleRubberBand2D, vtkCameraWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkInteractorStyleUser, vtkImageCroppingRegionsWidget, vtkScalarBarWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorEventRecorder, vtkInteractorStyleJoystickCamera, vtkLogoWidget, vtkPlaybackWidget, vtkPolyDataSourceWidget, vtkInteractorStyleRubberBandPick, vtkXYPlotWidget, vtkSplineWidget2, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
virtual void vtkInteractorObserver::SetEnabled | ( | int | ) | [inline, virtual] |
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, vtkImplicitPlaneWidget2, vtkBiDimensionalWidget, vtkSplineWidget, vtkBrokenLineWidget, vtkPlaneWidget, vtkBoxWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkAffineWidget, vtkLineWidget, vtkAngleWidget, vtkBalloonWidget, vtkHoverWidget, vtkImplicitPlaneWidget, vtkDistanceWidget, vtkOrientationMarkerWidget, vtkSeedWidget, vtkImageTracerWidget, vtkPointWidget, vtkSphereWidget, vtkResliceCursorWidget, vtkAbstractWidget, vtkCheckerboardWidget, vtkParallelopipedWidget, vtkCaptionWidget, vtkImageCroppingRegionsWidget, vtkXYPlotWidget, and vtkInteractorEventRecorder.
Definition at line 74 of file vtkInteractorObserver.h.
int vtkInteractorObserver::GetEnabled | ( | ) | [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.
void vtkInteractorObserver::EnabledOn | ( | ) | [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.
void vtkInteractorObserver::EnabledOff | ( | ) | [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 77 of file vtkInteractorObserver.h.
void vtkInteractorObserver::On | ( | ) | [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 78 of file vtkInteractorObserver.h.
void vtkInteractorObserver::Off | ( | ) | [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 79 of file vtkInteractorObserver.h.
virtual void vtkInteractorObserver::SetInteractor | ( | vtkRenderWindowInteractor * | iren | ) | [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. It automatically registers available pickers to the Picking Manager.
Reimplemented in vtkInteractorStyle, vtkSeedWidget, vtkInteractorStyleTreeMapHover, vtkGeoInteractorStyle, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleSwitch, and vtkInteractorEventRecorder.
virtual vtkRenderWindowInteractor* vtkInteractorObserver::GetInteractor | ( | ) | [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. It automatically registers available pickers to the Picking Manager.
Reimplemented in vtkInteractorStyleSwitchBase.
virtual void vtkInteractorObserver::SetPriority | ( | float | ) | [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 float vtkInteractorObserver::GetPriority | ( | ) | [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 void vtkInteractorObserver::PickingManagedOn | ( | ) | [virtual] |
Enable/Disable the use of a manager to process the picking. Enabled by default.
virtual void vtkInteractorObserver::PickingManagedOff | ( | ) | [virtual] |
Enable/Disable the use of a manager to process the picking. Enabled by default.
virtual void vtkInteractorObserver::SetPickingManaged | ( | bool | ) | [virtual] |
Enable/Disable the use of a manager to process the picking. Enabled by default.
virtual bool vtkInteractorObserver::GetPickingManaged | ( | ) | [virtual] |
Enable/Disable the use of a manager to process the picking. Enabled by default.
virtual void vtkInteractorObserver::SetKeyPressActivation | ( | int | ) | [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 int vtkInteractorObserver::GetKeyPressActivation | ( | ) | [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 void vtkInteractorObserver::KeyPressActivationOn | ( | ) | [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 void vtkInteractorObserver::KeyPressActivationOff | ( | ) | [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 void vtkInteractorObserver::SetKeyPressActivationValue | ( | char | ) | [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 char vtkInteractorObserver::GetKeyPressActivationValue | ( | ) | [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 vtkRenderer* vtkInteractorObserver::GetDefaultRenderer | ( | ) | [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 void vtkInteractorObserver::SetDefaultRenderer | ( | vtkRenderer * | ) | [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 vtkRenderer* vtkInteractorObserver::GetCurrentRenderer | ( | ) | [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 void vtkInteractorObserver::SetCurrentRenderer | ( | vtkRenderer * | ) | [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 void vtkInteractorObserver::OnChar | ( | ) | [virtual] |
Sets up the keypress-i event.
Reimplemented in vtkImagePlaneWidget, vtkInteractorStyle, vtkInteractorStyleFlight, vtkInteractorStyleImage, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleUser, vtkContextInteractorStyle, vtkInteractorStyleTerrain, vtkInteractorStyleSwitch, vtkGeoInteractorStyle, and vtkInteractorStyleRubberBandPick.
static void vtkInteractorObserver::ComputeDisplayToWorld | ( | vtkRenderer * | ren, |
double | x, | ||
double | y, | ||
double | z, | ||
double | worldPt[4] | ||
) | [static] |
Convenience methods for outside classes. Make sure that the parameter "ren" is not-null.
static void vtkInteractorObserver::ComputeWorldToDisplay | ( | vtkRenderer * | ren, |
double | x, | ||
double | y, | ||
double | z, | ||
double | displayPt[3] | ||
) | [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.)
virtual void vtkInteractorObserver::StartInteraction | ( | ) | [protected, virtual] |
Utility routines used to start and end interaction. For example, it switches the display update rate. It does not invoke the corresponding events.
virtual void vtkInteractorObserver::EndInteraction | ( | ) | [protected, virtual] |
Utility routines used to start and end interaction. For example, it switches the display update rate. It does not invoke the corresponding events.
static void vtkInteractorObserver::ProcessEvents | ( | vtkObject * | object, |
unsigned long | event, | ||
void * | clientdata, | ||
void * | calldata | ||
) | [static, protected] |
Handles the char widget activation event. Also handles the delete event.
Reimplemented in vtkImagePlaneWidget, vtkInteractorStyle, vtkImageTracerWidget, vtkPlaneWidget, vtkImplicitPlaneWidget, vtkSphereWidget, vtkPointWidget, vtkBoxWidget, vtkLineWidget, vtkImageCroppingRegionsWidget, vtkOrientationMarkerWidget, vtkInteractorEventRecorder, and vtkXYPlotWidget.
void vtkInteractorObserver::ComputeDisplayToWorld | ( | double | x, |
double | y, | ||
double | z, | ||
double | worldPt[4] | ||
) | [protected] |
Helper method for subclasses.
void vtkInteractorObserver::ComputeWorldToDisplay | ( | double | x, |
double | y, | ||
double | z, | ||
double | displayPt[3] | ||
) | [protected] |
Helper method for subclasses.
virtual void vtkInteractorObserver::RegisterPickers | ( | ) | [protected, virtual] |
Register internal Pickers in the Picking Manager. Must be reimplemented by concrete widgets to register their pickers.
Reimplemented in vtkImagePlaneWidget, vtkImageTracerWidget, vtkImplicitPlaneWidget, vtkPlaneWidget, vtkSplineWidget, vtkBrokenLineWidget, vtkBoxWidget, vtkSphereWidget, vtkPointWidget, vtkLineWidget, and vtkBalloonWidget.
void vtkInteractorObserver::UnRegisterPickers | ( | ) | [protected] |
Unregister internal pickers from the Picking Manager.
virtual void vtkInteractorObserver::PickersModified | ( | ) | [protected, virtual] |
Update the pickers registered in the Picking Manager when pickers are modified.
vtkPickingManager* vtkInteractorObserver::GetPickingManager | ( | ) | [protected] |
Return the picking manager associated on the context on which the observer currently belong.
vtkAssemblyPath* vtkInteractorObserver::GetAssemblyPath | ( | double | X, |
double | Y, | ||
double | Z, | ||
vtkAbstractPropPicker * | picker | ||
) | [protected] |
Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path.
int vtkInteractorObserver::RequestCursorShape | ( | int | requestedShape | ) | [protected] |
int vtkInteractorObserver::Enabled [protected] |
Definition at line 216 of file vtkInteractorObserver.h.
Definition at line 219 of file vtkInteractorObserver.h.
Definition at line 220 of file vtkInteractorObserver.h.
float vtkInteractorObserver::Priority [protected] |
Definition at line 223 of file vtkInteractorObserver.h.
bool vtkInteractorObserver::PickingManaged [protected] |
Definition at line 227 of file vtkInteractorObserver.h.
int vtkInteractorObserver::KeyPressActivation [protected] |
Definition at line 253 of file vtkInteractorObserver.h.
char vtkInteractorObserver::KeyPressActivationValue [protected] |
Definition at line 254 of file vtkInteractorObserver.h.
Definition at line 257 of file vtkInteractorObserver.h.
vtkRenderer* vtkInteractorObserver::CurrentRenderer [protected] |
Definition at line 260 of file vtkInteractorObserver.h.
vtkRenderer* vtkInteractorObserver::DefaultRenderer [protected] |
Definition at line 261 of file vtkInteractorObserver.h.
unsigned long vtkInteractorObserver::CharObserverTag [protected] |
Definition at line 263 of file vtkInteractorObserver.h.
unsigned long vtkInteractorObserver::DeleteObserverTag [protected] |
Definition at line 264 of file vtkInteractorObserver.h.
Definition at line 267 of file vtkInteractorObserver.h.