Click or drag to resize
RenderAreaListenerOnMouseWheel Method

Triggered when a mouse wheel event (rotatation) is received from the client.

Namespace: OIV.RemoteViz.Rendering
Assembly: OIV.RemoteViz (in OIV.RemoteViz.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public virtual bool OnMouseWheel(
	RenderArea renderArea,
	Connection sender,
	int x,
	int y,
	int delta
)

Parameters

renderArea
Type: OIV.RemoteViz.RenderingRenderArea

: the OIV.RemoteViz.Rendering.RenderArea that will process the event

sender
Type: OIV.RemoteViz.RenderingConnection

: the connection that sent the event

x
Type: SystemInt32

: horizontal coordinate

y
Type: SystemInt32

: vertical coordinate

delta
Type: SystemInt32

: abstract value which indicates how far the wheel turned

Return Value

Type: Boolean

true to process the event, this will apply an OIV.Inventor.Actions.SoHandleEventAction to the scene graph. This return value does not have any effect when the OIV.RemoteViz.Rendering.ServiceSettings.RunModes.INDEPENDENT_SERVICE mode is enabled. If there are many listeners, the logical operator OR will be applied on all the returned value of listeners. If there are no listeners to call, the event will be processed.

Remarks

Default behavior : Accept the event by returning true.

See Also