Click or drag to resize
SoEventGetPosition Method (SbViewportRegion)

Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as integer values.

Namespace: OIV.Inventor.Events
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SbVec2s GetPosition(
	SbViewportRegion vpRgn
)

Parameters

vpRgn
Type: OIV.InventorSbViewportRegion

Return Value

Type: SbVec2s
Remarks

Position should be set for all events, but that may not be possible for some events in some display environments. If position was not available, the method returns the viewport origin.

See Also