public class ConnectionSettings extends Inventor
Connection
.
The application can query this object from a Connection
object.
The Connection
object can obtained in, e.g., RenderAreaListener.onInitializedConnection()
.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
FrameEncoders |
getFrameEncoders()
Gets the frame encoders used by the connection.
|
int |
getKeepAliveTimeOut()
Gets the keepalive timeout (ms).
|
int |
getMaxFPS()
Deprecated.
As of Open Inventor 9900 Please use new method IFrameEncodingPolicy.getFPS() instead.
|
boolean |
isSupportedEncoders(FrameEncoders frameEncoders)
Returns if encoders are supported by the host.
|
void |
setFrameEncodingPolicy(IFrameEncodingPolicy policy)
Sets the frame encoding policy used by the
Connection . |
void |
setKeepAliveTimeOut(int value)
Sets the keepalive timeout (ms).
|
void |
setMaxFPS(int value)
Deprecated.
As of Open Inventor 9900 Please use new method setFrameEncodingPolicy instead.
|
dispose, getNativeResourceHandle
public void setFrameEncodingPolicy(IFrameEncodingPolicy policy)
Connection
.
A policy is used to calculate two values: FPS (frames per second) and interactive frame encoding quality. There are two predefined policies: KeepFramesPerSecondPolicy
and KeepFrameQualityPolicy
. The default value is KeepFrameQualityPolicy
with default parameters. (Replaces the old setMaxFPS method.)
policy
- : a shared pointer to a frame encoding policy.public int getKeepAliveTimeOut()
@Deprecated public void setMaxFPS(int value)
KeepFrameQualityPolicy
(see setFrameEncodingPolicy) and the FPS target value.
The frame quality target is set to the default value (0.7).
value
- : FPS target.Deprecated since Open Inventor 9900. public FrameEncoders getFrameEncoders()
RenderAreaListener.onOpenedConnection
.
public void setKeepAliveTimeOut(int value)
value
- : the keepalive timeout delay (ms).public boolean isSupportedEncoders(FrameEncoders frameEncoders)
frameEncoders
- : frame encoder
@Deprecated public int getMaxFPS()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com