|
MeVisLab Toolbox Reference
|
#include <SoInteractionController.h>
Public Member Functions | |
| SoInteractionController () | |
| Default constructor. | |
| ~SoInteractionController () override | |
| Destructor. | |
| void | handleEvent (SoHandleEventAction *action) override |
| Handles the mouse and keyboard events and send them to interaction nodes. | |
| bool | isDragThresholdExceeded () const override |
| Return whether the drag threshold was exceeded, that is, endPress will get a clickCount of 0. | |
| Public Member Functions inherited from SoInteractionCoordinator | |
| SoInteractionCoordinator () | |
| virtual | ~SoInteractionCoordinator () |
| size_t | getNumMappers () |
| Returns the number of added mappers, to be used with truncateMappers. | |
| void | addMapper (SoInteractionMapper *mapper) |
| void | clearMappers () |
| Clears the list of mappers. | |
| void | truncateMappers (size_t n=0) |
| SoPointingAction * | getCurrentPointingAction () const |
| Returns the currently selected pointing action. | |
| SoInteractionHandler * | getCurrentPointingActionHandler () const |
| Returns the handler for currently selected pointing action. | |
| bool | getCurrentPointingActionAllowed () const |
| Returns whether the current pointing action may be applied at the current location. | |
| void | affirmSelectedPointingAction () |
| bool | isPointingActionSelected () const |
| bool | maySelectPointingAction () const |
| Returns whether one is even allowed to select a (new) pointing action. | |
| virtual void | setLockedPointingAction (SoPointingAction *action, SoInteractionHandler *handler) |
| SoPointingAction * | getLockedPointingAction () |
| Returns the locked pointing action. | |
| SoInteractionHandler * | getLockedPointingActionHandler () |
| Returns the handler for locked pointing action. | |
| void | grabReleasedByAction (SoPointingAction *action) |
| This method is called from a PointingAction if a grab should be released. | |
| virtual bool | isPointingActionActive (SoPointingAction *action, int currentMask) |
| This method will be used to override the default action selection mechanism. | |
| virtual int | getModeModifierMask (int numModes) |
| virtual int | getModeFromModifiers (int numModes, int modifierMask) |
| virtual bool | startPress (const SoPointerPosition &position, int modifierMask) |
| Starts a mouse button press for current action. | |
| virtual void | endPress (int clickCount) |
| Stops a mouse button press for current action. | |
| virtual bool | isDragging () |
| Queries the flag indicating drag action. | |
| bool | isCancelled () const |
| This returns true if the current drag action has been canceled. | |
| void | cancelDrag () |
| bool | wheelModifiersFitOffsetAction (SoOffsetAction *action, int modifiers, double &sensitivityX, double &sensitivityY, bool &swapAxes) |
| void | setWheelActionExecuted () |
| Prevents further wheel actions from being executed. | |
| bool | mayExecuteWheelAction () const |
| Checks whether it is allowed to execute wheel actions. | |
| bool | keyFitsCommandAction (SoCommandAction *action, int modifiers, SoKeyboardEvent::Key nKey) |
| Checks whether a keyboard event fits a certain command action. | |
| bool | keyFitsOffsetAction (SoOffsetAction *action, int modifiers, SoKeyboardEvent::Key nKey, double &sensitivityX, double &sensitivityY, bool &swapAxes) |
| Checks whether a keyboard event fits a certain offset action. | |
| void | setKeyboardActionExecuted () |
| Prevents further keyboard actions from being executed. | |
| bool | mayExecuteKeyboardAction () const |
| Checks whether it is allowed to execute keyboard actions. | |
| SoPointingAction::TriggerList | getTriggers (SoPointingAction *action) |
| Returns the current triggers for a pointing action. | |
| SoCommandAction::ShortcutList | getShortcuts (SoCommandAction *action) |
| Returns the current shortcuts for a command action. | |
| SoOffsetAction::TriggerList | getTriggers (SoOffsetAction *action) |
| Returns current triggers for an offset action. | |
Static Public Member Functions | |
| static void | initClass () |
| Initialization of the Inventor runtime type system. | |
Public Attributes | |
| SoSFString | activePointingAction |
| SoSFString | activePointingActionProvider |
| This field contains the ID of the provider of the pointing action. | |
| SoSFBool | inDrag |
This flag is true if an pointer action is active (dragging). | |
| SoSFString | activePointingActionStatus |
| Status string returned by the pointing action indicated by activePointerAction. | |
| SoSFBool | enableMouseHandling |
If this flag is false, no pointing actions are enabled. | |
| SoSFBool | enableKeyHandling |
If this flag is false, no command actions will be executed when a key is pressed. | |
| SoSFBool | enableWheelHandling |
If this flag is false, no offset actions will be executed when the mouse wheel is rotated. | |
Protected Member Functions | |
| void | setDragging (bool dragging=true) override |
| Protected Member Functions inherited from SoInteractionCoordinator | |
| void | unsetPointingActionSelected () |
| Resets the _pointingActionSelected flag (before traversing the scene). | |
Additional Inherited Members | |
| Protected Attributes inherited from SoInteractionCoordinator | |
| bool | _maySelectPointingAction |
| bool | _mayExecuteKeyboardAction |
| bool | _mayExecuteWheelAction |
SoInteractionController is the controlling instance of managed interactions. It should be instantiated by the viewer and contain the remaining scene graph. SoInteractionController will pass itself as a SoInteractionCoordinator through the SoInteractionCoordinatorElement into the scene, where it can be queried, e.g., by SoInteractionHandlers.
SoInteractionController is the controlling instance of managed interactions. It should be instantiated by the viewer and contain the remaining scene graph. SoInteractionController will pass itself as a SoInteractionCoordinator through the SoInteractionCoordinatorElement into the scene, where it can be queried, e.g., by SoInteractionHandlers.
Definition at line 46 of file SoInteractionController.h.
| SoInteractionController::SoInteractionController | ( | ) |
Default constructor.
|
override |
Destructor.
|
override |
Handles the mouse and keyboard events and send them to interaction nodes.
|
static |
Initialization of the Inventor runtime type system.
|
inlineoverridevirtual |
Return whether the drag threshold was exceeded, that is, endPress will get a clickCount of 0.
Reimplemented from SoInteractionCoordinator.
Definition at line 88 of file SoInteractionController.h.
|
overrideprotectedvirtual |
Method inherited from SoInteractionCoordinator, overridden to update the inDrag field
Reimplemented from SoInteractionCoordinator.
| SoSFString SoInteractionController::activePointingAction |
This field contains the ID of the pointing action that would be activated on left mouse click or which is currently active (dragging).
Definition at line 64 of file SoInteractionController.h.
| SoSFString SoInteractionController::activePointingActionProvider |
This field contains the ID of the provider of the pointing action.
Definition at line 67 of file SoInteractionController.h.
| SoSFString SoInteractionController::activePointingActionStatus |
Status string returned by the pointing action indicated by activePointerAction.
Definition at line 73 of file SoInteractionController.h.
| SoSFBool SoInteractionController::enableKeyHandling |
If this flag is false, no command actions will be executed when a key is pressed.
Definition at line 79 of file SoInteractionController.h.
| SoSFBool SoInteractionController::enableMouseHandling |
If this flag is false, no pointing actions are enabled.
Definition at line 76 of file SoInteractionController.h.
| SoSFBool SoInteractionController::enableWheelHandling |
If this flag is false, no offset actions will be executed when the mouse wheel is rotated.
Definition at line 82 of file SoInteractionController.h.
| SoSFBool SoInteractionController::inDrag |
This flag is true if an pointer action is active (dragging).
Definition at line 70 of file SoInteractionController.h.