Class SoRemoteVizClient.ServiceMessageEventArg
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.remoteviz.clients.nodes.SoRemoteVizClient.ServiceMessageEventArg
- All Implemented Interfaces:
SbEventArg
- Enclosing class:
SoRemoteVizClient
Structure given when a ServiceMessage event is raised.
Please refer to
onServiceMessage
event.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionServiceMessageEventArg
(SoRemoteVizClient source, SoRemoteVizClient.ServiceMessageEventArg.States state, SbVec2s renderAreaSize, String details) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns details of the event.Returns the renderArea size.Returns theSoRemoteVizClient
node that triggered the event.getState()
Returns the connection state with the service.void
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
ServiceMessageEventArg
public ServiceMessageEventArg(SoRemoteVizClient source, SoRemoteVizClient.ServiceMessageEventArg.States state, SbVec2s renderAreaSize, String details) Default constructor.
-
-
Method Details
-
getState
Returns the connection state with the service. -
setValue
-
getSource
Returns theSoRemoteVizClient
node that triggered the event.- Specified by:
getSource
in interfaceSbEventArg
-
getRenderAreaSize
Returns the renderArea size. -
getDetails
Returns details of the event. If State is equal to DISCONNECTED: This parameter is the disconnected reason. It can take the following values "DISPOSED", "REFUSED", "KICKED" and "NETWORKFAILURE". If State is equal to FINISH_BANDWIDTH_CALIBRATION: This parameter is the network bandwidth calibration value (in bit/s). Else if State is equal to FINISH_LATENCY_CALIBRATION: This parameter is the network latency calibration value (in ms). Else this parameter is empty.
-