public class SoRemoteVizClient extends SoNode
See also:
RemoteVizClient
Modifier and Type | Class and Description |
---|---|
static class |
SoRemoteVizClient.DisplayModes
Display mode value.
|
static class |
SoRemoteVizClient.FrameEventArg
Structure given when a received and decoded frame event is raised.
|
static class |
SoRemoteVizClient.KeyboardEventArg
Structure given when a keyboard event is raised.
|
static class |
SoRemoteVizClient.MessageEventArg
Structure given when a received message event is raised.
|
static class |
SoRemoteVizClient.MouseButtonEventArg
Structure given when a mouse button event is raised.
|
static class |
SoRemoteVizClient.MouseLocationEventArg
Structure given when a mouse location event is raised.
|
static class |
SoRemoteVizClient.MouseWheelEventArg
Structure given when a mouse wheel event is raised.
|
static class |
SoRemoteVizClient.RenderAreaSizeEventArg
Structure given when a renderArea resize event is raised.
|
static class |
SoRemoteVizClient.SecurityProtocols
Each enumeration represents a security protocol.
|
static class |
SoRemoteVizClient.ServiceMessageEventArg
Structure given when a ServiceMessage event is raised.
|
static class |
SoRemoteVizClient.StreamingModes
Streaming mode values.
|
static class |
SoRemoteVizClient.TouchEventArg
Structure given when a touch event is raised.
|
static class |
SoRemoteVizClient.VideoDecoderType
Video decoder values.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
connect
Opens/Closes a connection between the client and the RemoteViz service.
|
SoMFVec2String |
connectionParameters
Connection parameters that will be sent to the RemoteViz service during the connection establishment.
|
SoSFEnum<SoRemoteVizClient.DisplayModes> |
displayMode
This setting allows you to specify how to map the renderArea image (server-side) into the container (client-side).
|
SoSFString |
ipAddress
Specifies the IP address of the RemoteViz Service to which the client will connect.
|
SbEventHandler<SoRemoteVizClient.FrameEventArg> |
onDecodedFrame
Triggered when a frame is decoded and displayed.
|
SbEventHandler<SoRemoteVizClient.KeyboardEventArg> |
onKeyboardEvent
Triggered when a keyboard event is fired on the client.
|
SbEventHandler<SoRemoteVizClient.MouseButtonEventArg> |
onMouseButtonEvent
Triggered when a mouse button event is fired on the client.
|
SbEventHandler<SoRemoteVizClient.MouseLocationEventArg> |
onMouseLocationEvent
Triggered when a mouse location event is fired on the client.
|
SbEventHandler<SoRemoteVizClient.MouseWheelEventArg> |
onMouseWheelEvent
Triggered when a mouse wheel event is fired on the client.
|
SbEventHandler<SoRemoteVizClient.FrameEventArg> |
onReceivedFrame
Triggered when a frame is received from the RemoteViz service.
|
SbEventHandler<SoRemoteVizClient.MessageEventArg> |
onReceivedMessage
Triggered when a message is received from the RemoteViz service.
|
SbEventHandler<SoRemoteVizClient.RenderAreaSizeEventArg> |
onRenderAreaResize
Triggered when the renderArea has been resized.
|
SbEventHandler<SoRemoteVizClient.ServiceMessageEventArg> |
onServiceMessage
Triggered when a service message is received from the RemoteViz service.
|
SbEventHandler<SoRemoteVizClient.TouchEventArg> |
onTouchEvent
Triggered when a touch event is fired on the client.
|
SoSFUShort |
port
Specifies the port of the RemoteViz Service to which the client will connect.
|
SoSFString |
renderAreaName
Specifies the renderArea name to which the client will connect.
|
SoMFEnum<SoRemoteVizClient.VideoDecoderType> |
videoDecoders
This setting allows you to specify a preference list of video decoders.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRemoteVizClient()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath)
Calls enableSecureConnection(publicCertificateFilePath, privateKeyFilePath, SoRemoteVizClient.SecurityProtocols.valueOf( SoRemoteVizClient.SecurityProtocols.TLSv1_1.getValue() | SoRemoteVizClient.SecurityProtocols.TLSv1_2.getValue() | SoRemoteVizClient.SecurityProtocols.TLSv1_3.getValue() ), "").
|
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath,
SoRemoteVizClient.SecurityProtocols enabledSecurityProtocols)
Calls enableSecureConnection(publicCertificateFilePath, privateKeyFilePath, enabledSecurityProtocols, "").
|
void |
enableSecureConnection(java.lang.String publicCertificateFilePath,
java.lang.String privateKeyFilePath,
SoRemoteVizClient.SecurityProtocols enabledSecurityProtocols,
java.lang.String privateKeyPassphrase)
Secures the connection between the client and the server.
|
SbVec2s |
getContainerSize()
Returns the size of the renderArea container.
|
SoRemoteVizClient.SecurityProtocols |
getEnabledSecurityProtocols()
Gets the security procotols used in RemoteViz.
|
SbVec2s |
getRenderAreaSize()
Returns the size of the renderArea managed by the RemoteViz service.
|
SoRemoteVizClient.StreamingModes |
getStreamingMode()
Returns the type of streaming currently used by the client.
|
SoRemoteVizClient.VideoDecoderType |
getVideoDecoder()
Returns the video decoder that has been successfully initialized and currently used by the client to decode video stream.
|
boolean |
isImageStreamingSupported()
Checks if the client supports image streaming.
|
boolean |
isSecureConnection()
Gets the SSL engine activation.
|
boolean |
isVideoStreamingSupported()
Checks if the client supports video streaming.
|
void |
requestRenderAreaSize(SbVec2s size)
Sends a request to resize the renderArea associated with the connection.
|
void |
sendMessage(java.lang.String message)
Sends a message to the server.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFBool connect
public final SoSFString ipAddress
public final SoSFUShort port
public final SoSFString renderAreaName
public final SoMFEnum<SoRemoteVizClient.VideoDecoderType> videoDecoders
public final SoMFVec2String connectionParameters
public final SoSFEnum<SoRemoteVizClient.DisplayModes> displayMode
public final SbEventHandler<SoRemoteVizClient.ServiceMessageEventArg> onServiceMessage
public final SbEventHandler<SoRemoteVizClient.MessageEventArg> onReceivedMessage
public final SbEventHandler<SoRemoteVizClient.RenderAreaSizeEventArg> onRenderAreaResize
public final SbEventHandler<SoRemoteVizClient.FrameEventArg> onReceivedFrame
public final SbEventHandler<SoRemoteVizClient.FrameEventArg> onDecodedFrame
public final SbEventHandler<SoRemoteVizClient.MouseLocationEventArg> onMouseLocationEvent
public final SbEventHandler<SoRemoteVizClient.MouseButtonEventArg> onMouseButtonEvent
public final SbEventHandler<SoRemoteVizClient.MouseWheelEventArg> onMouseWheelEvent
public final SbEventHandler<SoRemoteVizClient.KeyboardEventArg> onKeyboardEvent
public final SbEventHandler<SoRemoteVizClient.TouchEventArg> onTouchEvent
public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath)
public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, SoRemoteVizClient.SecurityProtocols enabledSecurityProtocols)
public void sendMessage(java.lang.String message)
message
- : message to be sentpublic SoRemoteVizClient.SecurityProtocols getEnabledSecurityProtocols()
public void enableSecureConnection(java.lang.String publicCertificateFilePath, java.lang.String privateKeyFilePath, SoRemoteVizClient.SecurityProtocols enabledSecurityProtocols, java.lang.String privateKeyPassphrase)
publicCertificateFilePath
- : Path to a file containing the public certificate used to authenticate the server to the clients. The certificate has to be a PEM ("Privacy Enhanced Mail") encoded certificate.
privateKeyFilePath
- : Path to a file containing the private key used to sign the server key exchange between the client and the server.
enabledSecurityProtocols
- : Defines the security protocols used to secure the exchange between the client and the server. By default, TLSv1.1, TLSv1.2 and TLSv1.3 protocols are enabled. A bitmask of the security protocols is used. Many security protocols can be enabled by using the logical OR operator. privateKeyPassphrase
- : The passphrase that protect the private key. Security warning !! DO NOT hard-code the passphrase !!public boolean isImageStreamingSupported()
public SbVec2s getContainerSize()
public SoRemoteVizClient.VideoDecoderType getVideoDecoder()
getStreamingMode
), this method will return VideoDecoder.NONE.
public boolean isVideoStreamingSupported()
public boolean isSecureConnection()
public SoRemoteVizClient.StreamingModes getStreamingMode()
public SbVec2s getRenderAreaSize()
public void requestRenderAreaSize(SbVec2s size)
size
- : renderArea sizeGenerated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com