VTK
|
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor More...
#include <vtkInteractorObserver.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkInteractorObserver * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | SetEnabled (int) |
Methods for turning the interactor observer on and off, and determining its state. More... | |
int | GetEnabled () |
void | EnabledOn () |
void | EnabledOff () |
void | On () |
void | Off () |
virtual void | OnChar () |
Sets up the keypress-i event. More... | |
virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
This method is used to associate the widget with the render window interactor. More... | |
virtual vtkRenderWindowInteractor * | GetInteractor () |
This method is used to associate the widget with the render window interactor. More... | |
virtual void | SetPriority (float) |
Set/Get the priority at which events are processed. More... | |
virtual float | GetPriority () |
Set/Get the priority at which events are processed. More... | |
virtual void | PickingManagedOn () |
Enable/Disable the use of a manager to process the picking. More... | |
virtual void | PickingManagedOff () |
Enable/Disable the use of a manager to process the picking. More... | |
virtual void | SetPickingManaged (bool managed) |
Enable/Disable the use of a manager to process the picking. More... | |
virtual bool | GetPickingManaged () |
Enable/Disable the use of a manager to process the picking. More... | |
virtual void | SetKeyPressActivation (vtkTypeBool) |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual vtkTypeBool | GetKeyPressActivation () |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual void | KeyPressActivationOn () |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual void | KeyPressActivationOff () |
Enable/Disable of the use of a keypress to turn on and off the interactor observer. More... | |
virtual void | SetKeyPressActivationValue (char) |
Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More... | |
virtual char | GetKeyPressActivationValue () |
Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More... | |
virtual vtkRenderer * | GetDefaultRenderer () |
Set/Get the default renderer to use when activating the interactor observer. More... | |
virtual void | SetDefaultRenderer (vtkRenderer *) |
Set/Get the default renderer to use when activating the interactor observer. More... | |
virtual vtkRenderer * | GetCurrentRenderer () |
Set/Get the current renderer. More... | |
virtual void | SetCurrentRenderer (vtkRenderer *) |
Set/Get the current renderer. More... | |
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More... | |
void | ReleaseFocus () |
These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
void | PrintRevisions (ostream &) |
Legacy. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkInteractorObserver * | SafeDownCast (vtkObjectBase *o) |
static void | ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4]) |
Convenience methods for outside classes. More... | |
static void | ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3]) |
Convenience methods for outside classes. More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkInteractorObserver () | |
~vtkInteractorObserver () override | |
virtual void | RegisterPickers () |
Register internal Pickers in the Picking Manager. More... | |
void | UnRegisterPickers () |
Unregister internal pickers from the Picking Manager. More... | |
vtkPickingManager * | GetPickingManager () |
Return the picking manager associated on the context on which the observer currently belong. More... | |
vtkAssemblyPath * | GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker) |
Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path. More... | |
int | RequestCursorShape (int requestedShape) |
virtual void | StartInteraction () |
Utility routines used to start and end interaction. More... | |
virtual void | EndInteraction () |
Utility routines used to start and end interaction. More... | |
void | ComputeDisplayToWorld (double x, double y, double z, double worldPt[4]) |
Helper method for subclasses. More... | |
void | ComputeWorldToDisplay (double x, double y, double z, double displayPt[3]) |
Helper method for subclasses. More... | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
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) |
Handles the char widget activation event. More... | |
Protected Attributes | |
int | Enabled |
vtkCallbackCommand * | EventCallbackCommand |
vtkCallbackCommand * | KeyPressCallbackCommand |
float | Priority |
bool | PickingManaged |
vtkTypeBool | KeyPressActivation |
char | KeyPressActivationValue |
vtkRenderWindowInteractor * | Interactor |
vtkRenderer * | CurrentRenderer |
vtkRenderer * | DefaultRenderer |
unsigned long | CharObserverTag |
unsigned long | DeleteObserverTag |
vtkObserverMediator * | ObserverMediator |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | 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 59 of file vtkInteractorObserver.h.
Definition at line 62 of file vtkInteractorObserver.h.
|
protected |
|
overrideprotected |
|
static |
|
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 vtkObjectBase.
Reimplemented in vtkInteractorStyle, vtkContourWidget, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkBoxWidget2, vtkImplicitPlaneWidget2, vtkSplineWidget, vtkBrokenLineWidget, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkImplicitCylinderWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkBoxWidget, vtkBalloonWidget, vtkLineWidget, vtkRectilinearWipeWidget, vtkImplicitPlaneWidget, vtkDistanceWidget, vtkAngleWidget, vtkBorderWidget, vtkSeedWidget, vtkCenteredSliderWidget, vtkImageTracerWidget, vtkFinitePlaneWidget, vtkSliderWidget, vtkHoverWidget, vtkPointWidget, vtkInteractorStyleImage, vtkHandleWidget, vtkOrientationMarkerWidget, vtkSphereWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtkCheckerboardWidget, vtkInteractorStyleTerrain, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyle3D, vtkCaptionWidget, vtkParallelopipedWidget, vtkResliceCursorWidget, vtkInteractorStyleSwitch, vtkParallelCoordinatesInteractorStyle, vtkOptiXTestInteractor, vtkCameraWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorStyleTreeMapHover, vtkOSPRayTestInteractor, vtkGeoInteractorStyle, vtkInteractorStyleFlight, vtkLogoWidget, vtkProgressBarWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleUser, vtkPlaybackWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkImageCroppingRegionsWidget, vtkPolyLineWidget, vtkScalarBarWidget, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkPolyDataSourceWidget, vtkInteractorEventRecorder, vtkOpenVRMenuWidget, vtkInteractorStyleRubberBandPick, vtkOpenVRPanelWidget, vtkInteractorStyleJoystickCamera, vtkXYPlotWidget, vtkOpenVRInteractorStyle, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkSplineWidget2, vtkInteractorStyleMultiTouchCamera, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
|
static |
|
protectedvirtual |
Reimplemented in vtkInteractorStyle, vtkContourWidget, vtkImagePlaneWidget, vtkBiDimensionalWidget, vtkBoxWidget2, vtkImplicitPlaneWidget2, vtkSplineWidget, vtkBrokenLineWidget, vtkPlaneWidget, vtkInteractorStyleUnicam, vtkSphereWidget2, vtkImplicitCylinderWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkBoxWidget, vtkBalloonWidget, vtkLineWidget, vtkRectilinearWipeWidget, vtkImplicitPlaneWidget, vtkDistanceWidget, vtkAngleWidget, vtkBorderWidget, vtkSeedWidget, vtkCenteredSliderWidget, vtkImageTracerWidget, vtkFinitePlaneWidget, vtkSliderWidget, vtkHoverWidget, vtkPointWidget, vtkInteractorStyleImage, vtkHandleWidget, vtkOrientationMarkerWidget, vtkSphereWidget, vtkCompassWidget, vtkAffineWidget, vtkContinuousValueWidget, vtkButtonWidget, vtkCheckerboardWidget, vtkInteractorStyleTerrain, vtk3DWidget, vtkAbstractWidget, vtkInteractorStyle3D, vtkCaptionWidget, vtkParallelopipedWidget, vtkResliceCursorWidget, vtkInteractorStyleSwitch, vtkParallelCoordinatesInteractorStyle, vtkOptiXTestInteractor, vtkCameraWidget, vtkTensorProbeWidget, vtkTextWidget, vtkInteractorStyleTreeMapHover, vtkOSPRayTestInteractor, vtkGeoInteractorStyle, vtkInteractorStyleFlight, vtkLogoWidget, vtkProgressBarWidget, vtkInteractorStyleRubberBand2D, vtkInteractorStyleUser, vtkPlaybackWidget, vtkInteractorStyleAreaSelectHover, vtkInteractorStyleTrackballCamera, vtkImageCroppingRegionsWidget, vtkPolyLineWidget, vtkScalarBarWidget, vtkInteractorStyleRubberBand3D, vtkInteractorStyleJoystickActor, vtkInteractorStyleTrackballActor, vtkPolyDataSourceWidget, vtkInteractorEventRecorder, vtkOpenVRMenuWidget, vtkInteractorStyleRubberBandPick, vtkOpenVRPanelWidget, vtkInteractorStyleJoystickCamera, vtkXYPlotWidget, vtkOpenVRInteractorStyle, vtkContextInteractorStyle, vtkInteractorStyleDrawPolygon, vtkInteractorStyleRubberBandZoom, vtkSplineWidget2, vtkInteractorStyleMultiTouchCamera, vtkInteractorStyleSwitchBase, and vtkInteractorStyleTrackball.
vtkInteractorObserver* vtkInteractorObserver::NewInstance | ( | ) | const |
|
overridevirtual |
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 vtkInteractorStyle, vtkInteractorStyle3D, vtkInteractorStyleTreeMapHover, vtkInteractorStyleAreaSelectHover, vtkOpenVRMenuWidget, vtkOpenVRPanelWidget, vtkOpenVRInteractorStyle, vtkContextInteractorStyle, and vtkInteractorStyleSwitchBase.
|
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 vtkHandleWidget, vtkInteractorStyle, vtkContourWidget, vtkImagePlaneWidget, vtkImplicitPlaneWidget2, vtkBiDimensionalWidget, vtkImplicitCylinderWidget, vtkSplineWidget, vtkBrokenLineWidget, vtkPlaneWidget, vtkLineWidget2, vtkAxesTransformWidget, vtkBoxWidget, vtkBalloonWidget, vtkAffineWidget, vtkHoverWidget, vtkButtonWidget, vtkLineWidget, vtkDistanceWidget, vtkImplicitPlaneWidget, vtkAngleWidget, vtkSeedWidget, vtkOrientationMarkerWidget, vtkImageTracerWidget, vtkPointWidget, vtkSphereWidget, vtkResliceCursorWidget, vtkAbstractWidget, vtkCheckerboardWidget, vtkCaptionWidget, vtkParallelopipedWidget, vtkImageCroppingRegionsWidget, vtkXYPlotWidget, and vtkInteractorEventRecorder.
Definition at line 73 of file vtkInteractorObserver.h.
|
inline |
Definition at line 74 of file vtkInteractorObserver.h.
|
inline |
Definition at line 75 of file vtkInteractorObserver.h.
|
inline |
Definition at line 76 of file vtkInteractorObserver.h.
|
inline |
Definition at line 77 of file vtkInteractorObserver.h.
|
inline |
Definition at line 78 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. It automatically registers available pickers to the Picking Manager.
Reimplemented in vtkInteractorStyle, vtkOpenVRInteractorStyle, 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. It automatically registers available pickers to the Picking Manager.
Reimplemented in vtkInteractorStyleSwitchBase.
|
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 the use of a manager to process the picking.
Enabled by default.
|
virtual |
Enable/Disable the use of a manager to process the picking.
Enabled by default.
|
virtual |
Enable/Disable the use of a manager to process the picking.
Enabled by default.
|
virtual |
Enable/Disable the use of a manager to process the picking.
Enabled by default.
|
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. This is especially true with multiple viewports (renderers). 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. This is especially true with multiple viewports (renderers). 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, vtkContextInteractorStyle, vtkInteractorStyleUser, vtkParallelCoordinatesInteractorStyle, vtkInteractorStyleImage, vtkInteractorStyleTerrain, 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 = nullptr |
||
) |
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.
|
protected |
Helper method for subclasses.
|
protected |
Helper method for subclasses.
|
protectedvirtual |
Register internal Pickers in the Picking Manager.
Must be reimplemented by concrete widgets to register their pickers.
Reimplemented in vtkImagePlaneWidget, vtkImplicitPlaneWidget, vtkImageTracerWidget, vtkPlaneWidget, vtkSplineWidget, vtkBrokenLineWidget, vtkBoxWidget, vtkSphereWidget, vtkPointWidget, vtkLineWidget, and vtkBalloonWidget.
|
protected |
Unregister internal pickers from the Picking Manager.
|
protected |
Return the picking manager associated on the context on which the observer currently belong.
|
protected |
Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path.
|
protected |
Definition at line 235 of file vtkInteractorObserver.h.
|
protected |
Definition at line 238 of file vtkInteractorObserver.h.
|
protected |
Definition at line 239 of file vtkInteractorObserver.h.
|
protected |
Definition at line 242 of file vtkInteractorObserver.h.
|
protected |
Definition at line 246 of file vtkInteractorObserver.h.
|
protected |
Definition at line 274 of file vtkInteractorObserver.h.
|
protected |
Definition at line 275 of file vtkInteractorObserver.h.
|
protected |
Definition at line 278 of file vtkInteractorObserver.h.
|
protected |
Definition at line 281 of file vtkInteractorObserver.h.
|
protected |
Definition at line 282 of file vtkInteractorObserver.h.
|
protected |
Definition at line 284 of file vtkInteractorObserver.h.
|
protected |
Definition at line 285 of file vtkInteractorObserver.h.
|
protected |
Definition at line 288 of file vtkInteractorObserver.h.