public class Connection extends Inventor
Client
to a RenderArea
managed by the RemoteViz service.
RemoteViz is protected by the Open Inventor license key mechanism limiting its usage to specified computers or network environments based on commercial agreements. RemoteViz uses floating licenses managed by a license server or an encrypted "master password" string (see SoLockManager).
Each Connection
requires one RemoteViz license (an SDK license for development/debugging or Runtime license for deployment).
If no license is found, the listener ServiceListener.onMissingLicense
will be triggered.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection.
|
Client |
getClient()
Gets the id of the client associated with the connection.
|
int |
getContainerHeight()
Gets the client container height.
|
int |
getContainerWidth()
Gets the client container width.
|
java.lang.String |
getId()
Gets the id of the connection.
|
EncodedFrame |
getLastEncodedFrame()
Gets the last encoded frame sent by the connection.
|
ConnectionParameters |
getParameters()
Gets the connection parameters (field-value pairs included in the url during the client connection).
|
RenderArea |
getRenderArea()
Gets the
RenderArea associated with the connection. |
int |
getRequestedHeight()
Gets the last renderArea height requested by the client.
|
int |
getRequestedWidth()
Gets the last renderArea width requested by the client.
|
ConnectionSettings |
getSettings()
Gets the connection settings.
|
boolean |
sendMessage(java.lang.String message)
Sends a text message to the client.
|
dispose, getNativeResourceHandle
public ConnectionSettings getSettings()
public void close()
public EncodedFrame getLastEncodedFrame()
public int getContainerWidth()
public java.lang.String getId()
public int getRequestedWidth()
public int getContainerHeight()
public int getRequestedHeight()
public Client getClient()
public ConnectionParameters getParameters()
public boolean sendMessage(java.lang.String message)
message
- : the message to be sent to the client
public RenderArea getRenderArea()
RenderArea
associated with the connection.
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com