Class SoRemoteVizClient.ServiceMessageEventArg
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.remoteviz.clients.nodes.SoRemoteVizClient.ServiceMessageEventArg
-
- All Implemented Interfaces:
SbEventArg
- Enclosing class:
- SoRemoteVizClient
public static class SoRemoteVizClient.ServiceMessageEventArg extends Inventor implements SbEventArg
Structure given when a ServiceMessage event is raised. Please refer toonServiceMessageevent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoRemoteVizClient.ServiceMessageEventArg.States-
Nested 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
Constructors Constructor Description ServiceMessageEventArg(SoRemoteVizClient source, SoRemoteVizClient.ServiceMessageEventArg.States state, SbVec2s renderAreaSize, java.lang.String details)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDetails()Returns details of the event.SbVec2sgetRenderAreaSize()Returns the renderArea size.SoRemoteVizClientgetSource()Returns theSoRemoteVizClientnode that triggered the event.SoRemoteVizClient.ServiceMessageEventArg.StatesgetState()Returns the connection state with the service.voidsetValue(SoRemoteVizClient.ServiceMessageEventArg copyFrom)-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
ServiceMessageEventArg
public ServiceMessageEventArg(SoRemoteVizClient source, SoRemoteVizClient.ServiceMessageEventArg.States state, SbVec2s renderAreaSize, java.lang.String details)
Default constructor.
-
-
Method Detail
-
getState
public SoRemoteVizClient.ServiceMessageEventArg.States getState()
Returns the connection state with the service.
-
setValue
public void setValue(SoRemoteVizClient.ServiceMessageEventArg copyFrom)
-
getSource
public SoRemoteVizClient getSource()
Returns theSoRemoteVizClientnode that triggered the event.- Specified by:
getSourcein interfaceSbEventArg
-
getRenderAreaSize
public SbVec2s getRenderAreaSize()
Returns the renderArea size.
-
getDetails
public java.lang.String 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.
-
-