genre | Interaction |
author | Florian Link |
package | MeVisLab/Standard |
dll | SoUtils |
definition | utils.def |
see also | SoKeyGrabber |
keywords | iv, event, interaction |
The module SoMouseGrabber grabs mouse events in an Inventor scene and converts them to float fields.
The mouse coordinates received from a connected display can be filtered and scaled before the fields X and Y are set.
Alt: Enum | cursorShape: Enum | Wheel Min: Float |
Alt Pressed: Bool | Flip X: Bool | Wheel Overflow: Bool |
Button1: Enum | Flip Y: Bool | Wheel Step: Float |
button1DoubleClicked: Trigger | Mask Valid: Bool | wheelDown: Trigger |
Button1Pressed: Bool | Normalized: Bool | wheelUp: Trigger |
Button2: Enum | On: Bool | X: Float |
button2DoubleClicked: Trigger | released: Trigger | X absolute: Float |
Button2Pressed: Bool | Sensitivity: Float | Xmax: Float |
Button3: Enum | Set Event Handled: Bool | Xmin: Float |
button3DoubleClicked: Trigger | Set Wheel Event Handled: Bool | Y: Float |
Button3Pressed: Bool | Shift: Enum | Y absolute: Float |
Clamp: Bool | Shift Pressed: Bool | Ymax: Float |
Ctrl: Enum | Swap XY: Bool | Ymin: Float |
Ctrl Pressed: Bool | Wheel: Float | |
Cursor Present: Bool | Wheel Max: Float |
If checked, the x and y values are generated to be between xmin/xmax and ymin/ymax regarding the current viewport.
If checked, values are clamped to [xmin,xmax] and [ymin, ymax] in normalized-mode.
Otherwise values out of this range are possible if the mouse is moved outside the viewport.
Defines a filter for mouse button 1.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines a filter for mouse button 2.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines a filter for mouse button 3.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Shows whether mouse button 1 is pressed.
Shows whether mouse button 2 is pressed.
Shows whether mouse button 3 is pressed.
Sets a filter for the SHIFT key.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Sets a filter for the CTRL key.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Shows the absolute x-position of the mouse cursor in pixel from the left border of the viewer.
Shows the absolute y-position of the mouse cursor in pixel from the lower border of the viewer.
Shows the x-position of the mouse cursor.
Shows the y-position of the mouse cursor.
Sets a minimum value for the x-position for clamping and normalizing.
Sets a maximum value for the x-position for clamping and normalizing.
Sets a minimum value for the y-position for clamping and normalizing.
Sets a maximum value for the y-position for clamping and normalizing.
Shows whether the mouse cursor is within the viewing area.
This will stay set as long as mouse buttons are pressed, since then an automatic mouse grab is in effect. This flag is completely independent of any modifiers/buttons.
Shows whether the conditions set by the mask filters are met.
If checked, button and move events are set handled if the mask is valid.
The event is therefore consumed and not evaluated by any further nodes! This can be of use if you want to coordinate several SoMouseGrabbers. It is also compatible with the event consumption mechanism of the SoView2D framework (see SoView2D Overview for details).
If checked, wheel events are set handled.
The event is therefore consumed and not evaluated by any further nodes! This can be of use if you want to coordinate several SoMouseGrabbers. It is also compatible with the event consumption mechanism of the SoView2D framework (see SoView2D Overview for details).
If checked, the x-axis and the y-axis are swapped.
Sets the sensitivity for mouse movement.
Sets the step of mouse wheel increment and decrement.