Click or drag to resize
PoBaseViewGetView Method

Returns the view (if any) that contains the given mouse cursor position.

Namespace: OIV.Inventor.Gui.View
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public static PoBaseView GetView(
	SoWinViewer viewer,
	int mouseX,
	int mouseY
)

Parameters

viewer
Type: OIV.Inventor.Win.ViewersSoWinViewer
mouseX
Type: SystemInt32
mouseY
Type: SystemInt32

Return Value

Type: PoBaseView
Remarks

If the viewports of multiple views overlap, the chosen view is the last view drawn (i.e. last view node traversed). Only a sensitive view (see OIV.Inventor.Gui.View.PoBaseView.SensitiveOnEvents(System.Boolean) method) can be selected, others are ignored during the search. (See Chapter 10 of the Open Inventor Mentor, page 266-268, for the method for getting mouse coordinates).

Note: For portability, this method does not take a system dependent viewer class, e.g. SoXtViewer, as its parameter. The SoGuiViewer associated with a viewer can be retrieved using the viewer's getGuiViewer() method.

See Also