Class RenderAreaHardware
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.remoteviz.rendering.RenderAreaHardware
-
- All Implemented Interfaces:
java.lang.Cloneable
public class RenderAreaHardware extends Inventor implements java.lang.Cloneable
Settings to setup hardware for a render area. If the application explicitly creates theRenderArea
, an instance of this class must be passed toService.createRenderArea
.If the
RenderArea
is automatically created by RemoteViz, an instance of this class will be passed to the ServiceListener.onPendingCreateRenderArea method and can be used to modify settings (for example which GPU to use for rendering).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description RenderAreaHardware()
Constructor.RenderAreaHardware(RenderAreaHardware obj)
Copy constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
void
setGpu(java.lang.String value)
Sets the Graphics Processing Unit (GPU) used for rendering.void
setValue(RenderAreaHardware copyFrom)
static RenderAreaHardware[]
toArray(long nativeArray, long length)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
RenderAreaHardware
public RenderAreaHardware()
Constructor.
-
RenderAreaHardware
public RenderAreaHardware(RenderAreaHardware obj)
Copy constructor.
-
-
Method Detail
-
clone
public java.lang.Object clone()
-
toArray
public static RenderAreaHardware[] toArray(long nativeArray, long length)
-
setGpu
public void setGpu(java.lang.String value)
Sets the Graphics Processing Unit (GPU) used for rendering. This value can be retrieved usingRenderArea.getGpu
.On X11 Linux, the default value is the value of the environment variable DISPLAY, typically ":0.0". The specification for a specific GPU depends on the X11 configuration file, but usually the first digit is the GPU index.
On Headless EGL Linux, the default value is EGL_DEFAULT_DISPLAY, typically "0". The parameter is a GPU index (0..N) (see eglQueryDevicesEXT and eglGetPlatformDisplayEXT).
Limitations:
- Currently this feature
only works on Linux.
Calling this method on Windows is allowed, but has no effect. - This feature only works with the modes
ServiceSettings.INVENTOR_SERVICE
andServiceSettings.INVENTOR_APPLICATION
. - Currently this feature can
only specify the GPU to be used for rendering.
GPU accelerated video encoding, for example H.264, is always done on the GPU with id "0".
- Parameters:
value
- : GPU used to compute the render.
- Currently this feature
only works on Linux.
-
setValue
public void setValue(RenderAreaHardware copyFrom)
-
-