public class SoGLDeviceSettings extends Inventor
setSettingName()
, with a predefined name, or one by one using setParameter()
. Applications should only create an SoDeviceSettings object using the SoGLDevice
method getDeviceSettings() (see below).
Device settings should be changed before any rendering is done, i.e. before the OpenGL render context is created.
Setting and parameter changes do not take effect until applySettings()
is called.
Changes should only affect the current running application (but this may depend on the graphics board vendor and driver installed).
The settings and parameters that can be queried through this interface may not correspond to the parameters displayed by the graphics board vendor's "control panel" application. This depends on the vendor and the driver installed.
Set a predefined driver setting (profile) for an NVIDIA graphics board.
SoGLDevice gldevice = SoGLDevice.getDevice( 0 ); SoGLDeviceSettings devSettings = gldevice.getDeviceSettings(); if (devSettings != null) { devSettings.setSettingName( "Workstation App - Dynamic Streaming" ); devSettings.applySettings(); }
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
boolean |
applySettings()
Apply changes to the setting and/or parameters.
|
java.lang.String |
getParameter(java.lang.String pParameterId)
Returns current value of specified parameter in current setting.
|
int |
getParameterCount()
Returns number of parameters in current setting.
|
java.lang.String |
getParameterIdbyIndex(int index)
Returns the name of the parameter with the specified index in the current setting.
|
java.lang.String |
getSettingName()
Returns the name of the current setting (vendor defined list of parameters).
|
java.lang.String |
getSettingNameByIndex(int index)
Returns the name of the specified setting.
|
int |
getSettingsCount()
Returns the number of vendor defined settings.
|
boolean |
setParameter(java.lang.String pParameterId,
java.lang.String pParameterValue)
Set the value of a parameter in the current setting.
|
boolean |
setSettingName(java.lang.String pPredefinedSettingName)
Set a setting (vendor defined list of parameters) by name.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public int getParameterCount()
public boolean setSettingName(java.lang.String pPredefinedSettingName)
getSettingsCount
and getSettingNameByIndex
to retrieved predefined list of settings.
public java.lang.String getParameterIdbyIndex(int index)
getParameterCount()
to get the number of parameters in the current setting. For example "Ambient Occlusion", "Anisotropic filtering mode", "Anisotropic filtering setting", "Antialiasing - Behavior Flags", "Preferred OpenGL GPU", etc.public boolean setParameter(java.lang.String pParameterId, java.lang.String pParameterValue)
public int getSettingsCount()
public java.lang.String getSettingName()
public boolean applySettings()
public java.lang.String getParameter(java.lang.String pParameterId)
public java.lang.String getSettingNameByIndex(int index)
getSettingsCount
to get the number of settings available.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com