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.
|
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.
|
static int |
CROP
Deprecated.
Use
SoRemoteVizClient.DisplayModes.CROP instead. |
SoSFEnum<SoRemoteVizClient.DisplayModes> |
displayMode
This setting allows you to specify how to map the renderArea image (server-side) into the container (client-side).
|
static int |
FIT
Deprecated.
Use
SoRemoteVizClient.DisplayModes.FIT instead. |
static int |
IMAGE
Deprecated.
Use
SoRemoteVizClient.StreamingModes.IMAGE instead. |
static int |
INTEL_QUICKSYNC
Deprecated.
Use
SoRemoteVizClient.VideoDecoderType.INTEL_QUICKSYNC instead. |
SoSFString |
ipAddress
Specifies the IP address of the RemoteViz Service to which the client will connect.
|
static int |
NONE
Deprecated.
Use
SoRemoteVizClient.VideoDecoderType.NONE instead. |
static int |
NVDECODE
Deprecated.
Use
SoRemoteVizClient.VideoDecoderType.NVDECODE instead. |
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.
|
static int |
OPENH264
Deprecated.
Use
SoRemoteVizClient.VideoDecoderType.OPENH264 instead. |
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.
|
static int |
SSLv2
Deprecated.
Use
SoRemoteVizClient.SecurityProtocols.SSLv2 instead. |
static int |
SSLv3
Deprecated.
Use
SoRemoteVizClient.SecurityProtocols.SSLv3 instead. |
static int |
STRETCH
Deprecated.
Use
SoRemoteVizClient.DisplayModes.STRETCH instead. |
static int |
TLSv1
Deprecated.
Use
SoRemoteVizClient.SecurityProtocols.TLSv1 instead. |
static int |
TLSv1_1
Deprecated.
Use
SoRemoteVizClient.SecurityProtocols.TLSv1_1 instead. |
static int |
TLSv1_2
Deprecated.
Use
SoRemoteVizClient.SecurityProtocols.TLSv1_2 instead. |
static int |
UNKNOWN
Deprecated.
Use
SoRemoteVizClient.StreamingModes.UNKNOWN instead. |
static int |
VIDEO
Deprecated.
Use
SoRemoteVizClient.StreamingModes.VIDEO instead. |
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.getValue() | SoRemoteVizClient.SecurityProtocols.TLSv1_1.getValue() | SoRemoteVizClient.SecurityProtocols.TLSv1_2.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, 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, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int STRETCH
SoRemoteVizClient.DisplayModes.STRETCH
instead.@Deprecated public static final int CROP
SoRemoteVizClient.DisplayModes.CROP
instead.@Deprecated public static final int FIT
SoRemoteVizClient.DisplayModes.FIT
instead.@Deprecated public static final int NONE
SoRemoteVizClient.VideoDecoderType.NONE
instead.@Deprecated public static final int OPENH264
SoRemoteVizClient.VideoDecoderType.OPENH264
instead.@Deprecated public static final int INTEL_QUICKSYNC
SoRemoteVizClient.VideoDecoderType.INTEL_QUICKSYNC
instead.@Deprecated public static final int NVDECODE
SoRemoteVizClient.VideoDecoderType.NVDECODE
instead.@Deprecated public static final int UNKNOWN
SoRemoteVizClient.StreamingModes.UNKNOWN
instead.@Deprecated public static final int IMAGE
SoRemoteVizClient.StreamingModes.IMAGE
instead.@Deprecated public static final int VIDEO
SoRemoteVizClient.StreamingModes.VIDEO
instead.@Deprecated public static final int SSLv2
SoRemoteVizClient.SecurityProtocols.SSLv2
instead.@Deprecated public static final int SSLv3
SoRemoteVizClient.SecurityProtocols.SSLv3
instead.@Deprecated public static final int TLSv1
SoRemoteVizClient.SecurityProtocols.TLSv1
instead.@Deprecated public static final int TLSv1_1
SoRemoteVizClient.SecurityProtocols.TLSv1_1
instead.@Deprecated public static final int TLSv1_2
SoRemoteVizClient.SecurityProtocols.TLSv1_2
instead.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 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, the TLSv1, TLSv1.1 and TLSv1.2 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 isSecureConnection()
public SoRemoteVizClient.SecurityProtocols getEnabledSecurityProtocols()
public boolean isImageStreamingSupported()
public boolean isVideoStreamingSupported()
public SoRemoteVizClient.VideoDecoderType getVideoDecoder()
getStreamingMode
), this method will return VideoDecoder.NONE.
VideoDecoder
public SbVec2s getContainerSize()
public SoRemoteVizClient.StreamingModes getStreamingMode()
public void requestRenderAreaSize(SbVec2s size)
size
- : renderArea sizepublic SbVec2s getRenderAreaSize()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com