public class Service extends Inventor
ServiceListener enables you to manage the service events.
Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ServiceListener listener)
Adds a
ServiceListener. |
boolean |
close()
Closes the rendering service.
|
void |
createRenderArea(java.lang.String id,
int width,
int height,
RenderAreaHardware renderAreaHardware)
Creates a renderArea.
|
void |
dispatch()
This method has to be used with the
ServiceSettings.INVENTOR_SERVICE and ServiceSettings.INDEPENDENT_SERVICE mode in a loop. |
Client |
getClient(int index)
Gets a
Client from index. |
Client |
getClient(java.lang.String id)
Gets a
Client from id. |
int |
getNumClients()
Gets the number of clients.
|
int |
getNumListeners()
Gets the number of
ServiceListener. |
int |
getNumRenderAreas()
Gets the number of renderAreas.
|
RenderArea |
getRenderArea(int index)
Gets a
RenderArea from index. |
RenderArea |
getRenderArea(java.lang.String id)
Gets a
RenderArea from id. |
ServiceSettings |
getSettings()
Gets the settings of the service.
|
static Service |
instance()
Renderering service instance (Singleton)
|
boolean |
isRunning()
This method is used to know if the rendering service is running.
|
boolean |
open(ServiceSettings instanceSettings)
Opens the rendering service.
|
void |
removeAllListeners()
Removes all ServiceListeners.
|
void |
removeListener(ServiceListener listener)
Removes a
ServiceListener. |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic boolean open(ServiceSettings instanceSettings)
instanceSettings - : the settings of the instance. This object cannot be null and will be copied.
See also:
public Client getClient(int index)
Client from index.
Range is [0..getNumClients - 1].
index - : index identifying the client
public boolean close()
public int getNumClients()
public ServiceSettings getSettings()
public static Service instance()
public void dispatch()
ServiceSettings.INVENTOR_SERVICE and ServiceSettings.INDEPENDENT_SERVICE mode in a loop.
It processes all waiting RemoteViz events.public Client getClient(java.lang.String id)
Client from id.
Range is [0..getNumClients - 1].
id - : ID identifying the client
public RenderArea getRenderArea(int index)
RenderArea from index.
Range is [0..getNumRenderAreas - 1].
index - : index identifying the renderArea
public void removeListener(ServiceListener listener)
ServiceListener.
listener - : object that listens to the service eventspublic int getNumRenderAreas()
public void addListener(ServiceListener listener)
ServiceListener.
listener - : object that listens to the service eventspublic RenderArea getRenderArea(java.lang.String id)
RenderArea from id.
Range is [0..getNumRenderAreas - 1].
id - : ID identifying the RenderArea
public int getNumListeners()
ServiceListener.
ServiceListener.public boolean isRunning()
public void removeAllListeners()
public void createRenderArea(java.lang.String id,
int width,
int height,
RenderAreaHardware renderAreaHardware)
id - : ID identifying the RenderArea
width - : renderArea width
height - : renderArea height
renderAreaHardware - : renderArea hardware settings. This object will be copied.Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com