Click or drag to resize
SoEventCallbackAddEventCallback Method

Add an event delegate.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public void AddEventCallback(
	Type eventType,
	SoEventCallbackEventCB f
)

Parameters

eventType
Type: SystemType
f
Type: OIV.Inventor.NodesSoEventCallbackEventCB
Remarks

Specifies the delegatesto be invoked for different event types. When invoked, the delegatewill be passed the userData, along with a referenceto this OIV.Inventor.Nodes.SoEventCallback node. For example, passing the type of OIV.Inventor.Events.SoMouseButtonEvent means callbacks will be invoked only when a mouse button is pressed or released. Passing the type of OIV.Inventor.Events.SoEvent for the eventType will cause the callback to be invoked for every event which passes through this event callback node.

See Also