|
MeVisLab Toolbox Reference
|
View2DInteractionHandler is derived from SoInteractionHandler mainly to provide additional SoView2D information to the SoPointerPosition passed to many SoPointingAction methods. More...
#include <SoView2DInteraction.h>
Public Member Functions | |
| View2DInteractionHandler (SoView2D *viewer, SoInteractionProvider *provider) | |
Public Member Functions inherited from SoInteractionHandler | |
| SoInteractionHandler (SoInteractionProvider *provider) | |
| virtual | ~SoInteractionHandler () |
| virtual void | handleEventForInteraction (SoHandleEventAction *action) |
| Handles the mouse and keyboard events and send them to interaction nodes. | |
Protected Member Functions | |
| bool | augmentLocation (SoPointerPosition &position, bool dragging) override |
| Set SoView2D information in position. | |
| bool | isEnabled (SoPointingAction *action, int currentMask) override |
| Only enable actions if the image in the SoView2D is valid. | |
| bool | isValidStartingLocation (const SoPointerPosition &location) override |
| Only start pointing actions on a valid starting location (to allow cooperation between multiple SoView2Ds) | |
Protected Member Functions inherited from SoInteractionHandler | |
| bool | handleKeyPress (SoState *state, const SoPointerPosition &location, int modifiers, SoKeyboardEvent::Key nKey, bool positionValid) |
| Handles a key press by checking for commands actions with matching key shortcuts and executing (one of) them. | |
| void | buttonMaskChanged (SoState *state, const SoPointerPosition &location, int buttonMask) |
| Called if the button mask changed since the last input event. | |
| void | modifierMaskChanged (SoState *state, const SoPointerPosition &location, int modifierMask) |
| Called if the modifier mask changed since the last input event. | |
| void | locationChanged (SoState *state, const SoPointerPosition &location, bool force=false, bool renderRefresh=false) |
| Called if the pointer location changed since the last input event. | |
| bool | wheelRotated (SoState *state, const SoPointerPosition &location, int modifierMask, SoMouseWheelEvent::Orientation orientation, short rotation) |
| Called when the mouse wheel is rotated. | |
| void | handlePointerLeftWindow (SoState *state) |
| Called if the pointer left the scene widget. | |
| SoInteractionCoordinator * | getCoordinator () |
| Access method, returns the interaction coordinator during event handling. | |
| SoPointingAction * | getLocalCurrentPointingAction () |
| bool | canSelectPointingAction () |
| void | selectTargetPointingAction (SoState *state, const SoPointerPosition &location, int mask) |
| bool | trySwitchGlobalPointingAction (SoState *state, const SoPointerPosition &location, int buttonMask, int modifierMask) |
| Attemps to switch from one global pointing action to another during a drag. | |
| int | getCurrentButtonMask () |
| int | getCurrentModifierMask () |
| Returns the currently active button modifier. | |
| SoPointerPosition | getCurrentPointerLocation () |
| Returns the current position of the mouse cursor. | |
| bool | isCurrentPointerLocationValid () |
| Returns whether the current mouse cursor position is valid. | |
Protected Attributes | |
| MutableView2DPosition | _view2DPosition |
| We always use the same View2DPosition object - we can only get one event at a time, so this is adequate... | |
| SoView2D * | _viewer |
| Back-reference to the SoView2D object. | |
| bool | _dragging |
| While dragging convert positions relative to the start slice. | |
View2DInteractionHandler is derived from SoInteractionHandler mainly to provide additional SoView2D information to the SoPointerPosition passed to many SoPointingAction methods.
Definition at line 39 of file SoView2DInteraction.h.
| View2DInteractionHandler::View2DInteractionHandler | ( | SoView2D * | viewer, |
| SoInteractionProvider * | provider | ||
| ) |
|
overrideprotectedvirtual |
Set SoView2D information in position.
Reimplemented from SoInteractionHandler.
|
overrideprotectedvirtual |
Only enable actions if the image in the SoView2D is valid.
Reimplemented from SoInteractionHandler.
|
overrideprotectedvirtual |
Only start pointing actions on a valid starting location (to allow cooperation between multiple SoView2Ds)
Reimplemented from SoInteractionHandler.
|
protected |
While dragging convert positions relative to the start slice.
Definition at line 63 of file SoView2DInteraction.h.
|
protected |
We always use the same View2DPosition object - we can only get one event at a time, so this is adequate...
Definition at line 57 of file SoView2DInteraction.h.
|
protected |
Back-reference to the SoView2D object.
Definition at line 60 of file SoView2DInteraction.h.