SoShowMousePosition

InventorModule
genre InventorMain
author Christian Schumann
package FMEstable/ReleaseMeVis
dll SoMouseCursor
definition SoShowMousePosition.def
keywords highlight, test, debug

Purpose

Shows the mouse cursor position in an inventor viewer using a simple square independent of the window’s cursor drawing. The color of the square indicates if a button is pressed.

Usage

Connect to the viewer as any other inventor node.

Details

The position is only shown in the viewer the interaction occurred in. However, all connected viewers are redrawn on moving the mouse. That is because the handle event action leads to an update of the field position, which triggers a redraw on all connected viewers! Hence, this module is not thought to be used in applications. It’s main purpose is to show the cursor in remote and offscreen renderings during testing.

Windows

Default Panel

../../../Projects/SoMouseCursor/Modules/mhelp/Images/Screenshots/SoShowMousePosition._default.png

Output Fields

self

name: self, type: SoNode

Connect to viewer.

Parameter Fields

Visible Fields

Size

name: size, type: Integer, default: 10

Size of the square.

Color

name: color, type: Color, default: 1 1 0

Color of the square.

Pressed Color

name: pressedColor, type: Color, default: 1 0 0

Color of the square when a mouse button is pressed.

Hidden Fields

position

name: position, type: IntVector2, default: -1 -1