Client node enables to integrate RemoteViz into Open Inventor applications. More...
#include <RemoteViz/Clients/nodes/SoRemoteVizClient.h>
This node is a RemoteViz client enabling software developers to easily integrate remote 3D interaction and visualization into their Open Inventor applications. It enables to establish a connection to a RemoteViz service so that display frames into an Open Inventor viewer.
NOTE: Before using this node, initialize the RemoteVizClient module database by calling RemoteVizClient::init.
Display mode value.
Video decoder values.
NONE |
The video decoder is not yet initialized or the streaming mode is not StreamingMode::VIDEO. |
OPENH264 |
OpenH264 is a H.264 software decoding implementation.
|
INTEL_QUICKSYNC |
Intel QuickSync enables to use an Intel CPU or GPU for H.264 and VP9 hardware accelerated decoding.
|
NVDECODE |
NVIDIA Video Codec enables to use an NVIDIA GPU for H.264 and VP9 hardware accelerated decoding.
|
VPX |
libvpx is a VP9 software decoding implementation.
|
SoRemoteVizClient::SoRemoteVizClient | ( | ) |
Default constructor.
virtual SoRemoteVizClient::~SoRemoteVizClient | ( | ) | [virtual] |
Default destructor.
void SoRemoteVizClient::enableSecureConnection | ( | const SbString & | publicCertificateFilePath, | |
const SbString & | privateKeyFilePath, | |||
unsigned int | enabledSecurityProtocols = TLSv1_1|TLSv1_2|TLSv1_3 , |
|||
const SbString & | privateKeyPassphrase = "" | |||
) |
Secures the connection between the client and the server.
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 !! Read it from a SECURE location on your system. |
static SoType SoRemoteVizClient::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
SbVec2s SoRemoteVizClient::getContainerSize | ( | ) | const |
Returns the size of the renderArea container.
unsigned int SoRemoteVizClient::getEnabledSecurityProtocols | ( | ) | const |
SbVec2s SoRemoteVizClient::getRenderAreaSize | ( | ) | const |
Returns the size of the renderArea managed by the RemoteViz service.
StreamingMode SoRemoteVizClient::getStreamingMode | ( | ) | const |
Returns the type of streaming currently used by the client.
This information is known after receiving the first frame. For instance, you can retrieve this information in the event callback onDecodedFrame.
If this method is called before receiving the first frame, it will return StreamingMode::UNKNOWN.
virtual SoType SoRemoteVizClient::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
VideoDecoder SoRemoteVizClient::getVideoDecoder | ( | ) | const |
Returns the video decoder that has been successfully initialized and currently used by the client to decode video stream.
This information is known after receiving the first frame. For instance, you can retrieve this information in the event callback onDecodedFrame.
If this method is called before receiving the first frame, it will return VideoDecoder::NONE. If the streaming mode is not StreamingMode::VIDEO (
bool SoRemoteVizClient::isImageStreamingSupported | ( | ) | const |
Checks if the client supports image streaming.
bool SoRemoteVizClient::isSecureConnection | ( | ) | const |
Gets the SSL engine activation.
bool SoRemoteVizClient::isVideoStreamingSupported | ( | ) | const |
Checks if the client supports video streaming.
void SoRemoteVizClient::requestRenderAreaSize | ( | const SbVec2s & | size | ) |
Sends a request to resize the renderArea associated with the connection.
A server-side onRequestedSize event will be triggered.
If the renderarea size is modified in the server-side onRequestSize callback, the client-side resize event will be triggered.
size | : renderArea size |
void SoRemoteVizClient::sendMessage | ( | SoCpuBufferObject * | buffer | ) |
Sends a binary message to the server.
After being sent, the server-side onReceivedMessage callback will be triggered.
buffer | : buffer to be sent |
void SoRemoteVizClient::sendMessage | ( | const SbString & | message | ) |
Sends a text message to the server.
After being sent, the server-side onReceivedMessage callback will be triggered.
message | : message to be sent |
Opens/Closes a connection between the client and the RemoteViz service.
After being connected, the server-side onPendingCreateRenderArea callback will be triggered if the renderArea does not exist otherwise the server-side onPendingShareRenderArea callback will be triggered.
Connection parameters that will be sent to the RemoteViz service during the connection establishment.
The container size will be sent to the service as RenderArea requested size. This behavior can be overriden by including the requested height ("requestedHeight") and the requested width ("requestedWidth") in the parameters. If the connection is accepted, a server-side onRequestedSize callback will be triggered.
This setting allows you to specify how to map the renderArea image (server-side) into the container (client-side).
Use enum DisplayMode. Default is FIT.
Specifies the IP address of the RemoteViz Service to which the client will connect.
Triggered when a frame is decoded and displayed.
Triggered when a keyboard event is fired on the client.
Triggered when a mouse button event is fired on the client.
Triggered when a mouse location event is fired on the client.
Triggered when a mouse wheel event is fired on the client.
Triggered when a binary message is received from the RemoteViz service.
Triggered when a frame is received from the RemoteViz service.
Triggered when a text message is received from the RemoteViz service.
Triggered when the renderArea has been resized.
Triggered when a service message is received from the RemoteViz service.
Triggered when a touch event is fired on the client.
Specifies the port of the RemoteViz Service to which the client will connect.
Specifies the renderArea name to which the client will connect.
This setting allows you to specify a preference list of video decoders.
The first decoder (among the decoders of the list) successfully initialized will be used to decode the video stream.
If all decoders of the list fail to be initialized, the decoder VideoDecoder::OPENH264 will be used.
Use enum VideoDecoder. Default is OPENH264.