public class RenderAreaListener extends Inventor
RenderArea.Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
RenderAreaListener()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onClosedConnection(RenderArea renderArea,
java.lang.String connectionId,
boolean aborted)
Triggered when a client disconnects.
|
void |
onInitializedConnection(RenderArea renderArea,
Connection sender,
FrameEncoders frameEncoders)
Triggered when the connection and the frame encoders are initialized successfully.
|
boolean |
onKeyDown(RenderArea renderArea,
Connection sender,
int x,
int y,
SoKeyboardEvent.Keys key)
Triggered when a KeyDown event is received from the client.
|
boolean |
onKeyUp(RenderArea renderArea,
Connection sender,
int x,
int y,
SoKeyboardEvent.Keys key)
Triggered when a KeyUp event is received from the client.
|
boolean |
onMouseDoubleClick(RenderArea renderArea,
Connection sender,
int x,
int y,
SoMouseButtonEvent.Buttons button)
Triggered when a MouseDoubleClick event is received from the client.
|
boolean |
onMouseDown(RenderArea renderArea,
Connection sender,
int x,
int y,
SoMouseButtonEvent.Buttons button)
Triggered when a MouseDown event is received from the client.
|
boolean |
onMouseEnter(RenderArea renderArea,
Connection sender,
int x,
int y)
Triggered when a MouseEnter event is received from the client.
|
boolean |
onMouseLeave(RenderArea renderArea,
Connection sender,
int x,
int y)
Triggered when a MouseLeave event is received from the client.
|
boolean |
onMouseMove(RenderArea renderArea,
Connection sender,
int x,
int y)
Triggered when a MouseMove event is received from the client.
|
boolean |
onMouseUp(RenderArea renderArea,
Connection sender,
int x,
int y,
SoMouseButtonEvent.Buttons button)
Triggered when a MouseUp event is received from the client.
|
boolean |
onMouseWheel(RenderArea renderArea,
Connection sender,
int x,
int y,
int delta)
Triggered when client wheel button is rotated.
|
void |
onOpenedConnection(RenderArea renderArea,
Connection connection,
FrameEncoders frameEncoders)
Triggered when a client connects.
|
void |
onPostRender(RenderArea renderArea)
Triggered when a rendering is done.
|
boolean[] |
onPreRender(RenderArea renderArea,
boolean clearWindow,
boolean clearZbuffer)
Triggered before a rendering is done.
|
void |
onReceivedMessage(RenderArea renderArea,
Connection sender,
java.lang.String message)
Triggered when a message is received from a client.
|
void |
onRefusedEncoder(RenderArea renderArea,
Connection sender,
FrameEncoders encoders)
Triggered when a frame encoder cannot be initialized.
|
boolean |
onRequestedFrame(RenderArea renderArea,
Connection sender,
SbRasterImage rasterImage)
Triggered when a new frame is requested by a connection.
|
void |
onRequestedSize(RenderArea renderArea,
Connection sender,
int width,
int height)
Triggered when a client requests a new renderArea size.
|
void |
onResize(RenderArea renderArea,
int width,
int height)
Triggered when the renderArea is resized.
|
boolean |
onTouchEnd(RenderArea renderArea,
Connection sender,
int id,
int x,
int y)
Triggered when a TouchEnd event is received from the client.
|
boolean |
onTouchMove(RenderArea renderArea,
Connection sender,
int id,
int x,
int y)
Triggered when a TouchMove event is received from the client.
|
boolean |
onTouchStart(RenderArea renderArea,
Connection sender,
int id,
int x,
int y)
Triggered when a TouchStart event is received from the client.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic boolean onMouseEnter(RenderArea renderArea, Connection sender, int x, int y)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onMouseLeave(RenderArea renderArea, Connection sender, int x, int y)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onMouseWheel(RenderArea renderArea, Connection sender, int x, int y, int delta)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
delta - : abstract value which indicates how far the wheel turned
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onMouseUp(RenderArea renderArea, Connection sender, int x, int y, SoMouseButtonEvent.Buttons button)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
button - : The button that was pressed when the mouse event was fired.
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public void onInitializedConnection(RenderArea renderArea, Connection sender, FrameEncoders frameEncoders)
renderArea - : the RenderArea requested by the connection
sender - : the Connection
frameEncoders - : frame encoders that have been initialized by the connectionpublic boolean onMouseDown(RenderArea renderArea, Connection sender, int x, int y, SoMouseButtonEvent.Buttons button)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
button - : The button that was pressed when the mouse event was fired.
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onMouseMove(RenderArea renderArea, Connection sender, int x, int y)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onMouseDoubleClick(RenderArea renderArea, Connection sender, int x, int y, SoMouseButtonEvent.Buttons button)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
button - : The button that was pressed when the mouse event was fired.
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onRequestedFrame(RenderArea renderArea, Connection sender, SbRasterImage rasterImage)
ServiceSettings.INDEPENDENT_SERVICE mode is enabled.renderArea - : the RenderArea of the Connection
sender - : the connection that requests a new frame
rasterImage - : contains the RGB raster image to render.
isInteractive - : This value can be modified to indicate if an user interaction is in progress. Default value is true.ServiceSettings.setRunMode
public boolean[] onPreRender(RenderArea renderArea, boolean clearWindow, boolean clearZbuffer)
ServiceSettings.INDEPENDENT_SERVICE mode, this callback is never triggered.
renderArea - : the RenderArea that will perform the rendering.
clearWindow - : if true, this clears the graphics window before rendering
clearZbuffer - : if true, the z buffer will be cleared before rendering
public boolean onTouchEnd(RenderArea renderArea, Connection sender, int id, int x, int y)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
id - : touch identifier
x - : horizontal coordinate
y - : vertical coordinate
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public void onPostRender(RenderArea renderArea)
ServiceSettings.INDEPENDENT_SERVICE mode, this callback is never triggered.
renderArea - : the RenderArea that performed the rendering.public void onClosedConnection(RenderArea renderArea, java.lang.String connectionId, boolean aborted)
renderArea - : the RenderArea
connectionId - : ID identifying the connection
aborted - : true if the network connection was closed unexpectedly by the client or has been lost.public void onOpenedConnection(RenderArea renderArea, Connection connection, FrameEncoders frameEncoders)
RenderAreaListener.onRefusedEncoder will be triggered. Otherwise, RenderAreaListener.onInitializedConnection will be triggered.renderArea - : the RenderArea requested by the connection
connection - : the Connection
frameEncoders - : frame encoders for interactive and still framespublic void onReceivedMessage(RenderArea renderArea, Connection sender, java.lang.String message)
renderArea - : the RenderArea requested by the connection
sender - : the Connection that receives the text message
message - : the received message sent by the clientpublic boolean onTouchMove(RenderArea renderArea, Connection sender, int id, int x, int y)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
id - : touch identifier
x - : horizontal coordinate
y - : vertical coordinate
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public boolean onKeyDown(RenderArea renderArea, Connection sender, int x, int y, SoKeyboardEvent.Keys key)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
key - : pressed key
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public void onRefusedEncoder(RenderArea renderArea, Connection sender, FrameEncoders encoders)
renderArea - : the RenderArea of the Connection
sender - : the connection that requests frame encoders
encoders - : frame encoders refused by the connectionpublic boolean onKeyUp(RenderArea renderArea, Connection sender, int x, int y, SoKeyboardEvent.Keys key)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
x - : horizontal coordinate
y - : vertical coordinate
key - : released key
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public void onResize(RenderArea renderArea, int width, int height)
RenderArea.resize(). Default behavior : Do nothing.
renderArea - : the resized RenderArea
width - : new width of the renderArea
height - : new height of the renderAreapublic boolean onTouchStart(RenderArea renderArea, Connection sender, int id, int x, int y)
renderArea - : the RenderArea that will process the event
sender - : the connection that sent the event
id - : touch identifier
x - : horizontal coordinate
y - : vertical coordinate
SoHandleEventAction to the scene graph. ServiceSettings.INDEPENDENT_SERVICE mode is enabled. public void onRequestedSize(RenderArea renderArea, Connection sender, int width, int height)
RenderArea.resize.renderArea - : the RenderArea of the Connection
sender - : the connection that made the size request
width - : requested width
height - : requested heightGenerated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com