RenderAreaListenerOnMouseDown Method |
Triggered when a MouseDown event is received from the client.
Namespace: OIV.RemoteViz.RenderingAssembly: OIV.RemoteViz (in OIV.RemoteViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic virtual bool OnMouseDown(
RenderArea renderArea,
Connection sender,
int x,
int y,
SoMouseButtonEventButtons button
)
Public Overridable Function OnMouseDown (
renderArea As RenderArea,
sender As Connection,
x As Integer,
y As Integer,
button As SoMouseButtonEventButtons
) As Boolean
public:
virtual bool OnMouseDown(
RenderArea^ renderArea,
Connection^ sender,
int x,
int y,
SoMouseButtonEventButtons button
)
abstract OnMouseDown :
renderArea : RenderArea *
sender : Connection *
x : int *
y : int *
button : SoMouseButtonEventButtons -> bool
override OnMouseDown :
renderArea : RenderArea *
sender : Connection *
x : int *
y : int *
button : SoMouseButtonEventButtons -> bool
Parameters
- renderArea
- Type: OIV.RemoteViz.RenderingRenderArea
: pointer to the RenderArea
- sender
- Type: OIV.RemoteViz.RenderingConnection
: pointer to the connection that send the event
- x
- Type: SystemInt32
: horizontal coordinate
- y
- Type: SystemInt32
: vertical coordinate
- button
- Type: OIV.Inventor.EventsSoMouseButtonEventButtons
: The button that was pressed when the mouse event was fired.
Return Value
Type:
Booleantrue to process the event, it will apply a SoHandleEventAction to the scene graph.
This return value does not have any influence when the ServiceSettings.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