23#include <Inventor/sys/port.h>
24#include <RemoteViz/Rendering/LibHelper.h>
29#include <Inventor/events/SoKeyboardEvent.h>
30#include <Inventor/events/SoMouseButtonEvent.h>
113 virtual void onOpenedConnection(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> connection, std::shared_ptr<FrameEncoders> frameEncoders);
124 virtual void onInitializedConnection(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender, std::shared_ptr<const FrameEncoders> frameEncoders);
138 virtual void onClosedConnection(std::shared_ptr<RenderArea> renderArea,
const std::string& connectionId,
bool aborted);
150 virtual void onReceivedMessage(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
const std::string& message);
162 virtual void onReceivedMessage(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
const std::vector<unsigned char>& buffer);
182 virtual bool onPreRender(std::shared_ptr<RenderArea> renderArea,
bool &clearWindow,
bool &clearZbuffer);
203 virtual void onResize(std::shared_ptr<RenderArea> renderArea,
unsigned int width,
unsigned int height);
219 virtual void onRequestedSize(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
unsigned int width,
unsigned int height);
236 virtual void onRefusedEncoder(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender, std::shared_ptr<FrameEncoders> encoders);
315 virtual bool onMouseMove(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
int x,
int y);
333 virtual bool onMouseEnter(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
int x,
int y);
351 virtual bool onMouseLeave(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
int x,
int y);
371 virtual bool onMouseWheel(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
int x,
int y,
int delta);
431 virtual bool onTouchStart(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
unsigned int id,
int x,
int y);
451 virtual bool onTouchMove(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
unsigned int id,
int x,
int y);
471 virtual bool onTouchEnd(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender,
unsigned int id,
int x,
int y);
517 virtual void onSendingFrame(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Connection> sender, std::string& message);
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
virtual ~RenderAreaListener()
Destructor.
virtual void onSendingFrame(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, std::string &message)
Triggered before sending a frame to the client.
virtual bool onMouseUp(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y, SoMouseButtonEvent::Button button)
Triggered when a MouseUp event is received from the client.
virtual void onClosedConnection(std::shared_ptr< RenderArea > renderArea, const std::string &connectionId, bool aborted)
Triggered when a connection is closed.
virtual bool onPreRender(std::shared_ptr< RenderArea > renderArea, bool &clearWindow, bool &clearZbuffer)
Triggered before a rendering is done.
virtual bool onTouchEnd(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, unsigned int id, int x, int y)
Triggered when a TouchEnd event is received from the client.
virtual bool onMouseLeave(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y)
Triggered when a MouseLeave event is received from the client.
virtual void onReceivedMessage(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, const std::vector< unsigned char > &buffer)
Triggered when a binary message is received from a client.
virtual void onReceivedMessage(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, const std::string &message)
Triggered when a text message is received from a client.
virtual void onPostRender(std::shared_ptr< RenderArea > renderArea)
Triggered after a rendering is done.
virtual void onInitializedConnection(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, std::shared_ptr< const FrameEncoders > frameEncoders)
Triggered when the connection and the frame encoders are initialized successfully.
virtual void onRequestedFrame(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, SbRasterImage *rasterImage, bool &isInteractive)
Triggered when a new frame is requested by a connection.
virtual bool onMouseDoubleClick(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y, SoMouseButtonEvent::Button button)
Triggered when a MouseDoubleClick event is received from the client.
virtual void onOpenedConnection(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > connection, std::shared_ptr< FrameEncoders > frameEncoders)
Triggered when a client connects to the RenderArea.
virtual bool onMouseMove(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y)
Triggered when a MouseMove event is received from the client.
virtual bool onMouseWheel(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y, int delta)
Triggered when a mouse wheel event (rotatation) is received from the client.
virtual bool onTouchMove(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, unsigned int id, int x, int y)
Triggered when a TouchMove event is received from the client.
virtual bool onMouseDown(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y, SoMouseButtonEvent::Button button)
Triggered when a MouseDown event is received from the client.
virtual void onRefusedEncoder(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, std::shared_ptr< FrameEncoders > encoders)
Triggered when a frame encoder cannot be initialized.
virtual bool onMouseEnter(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y)
Triggered when a MouseEnter event is received from the client.
virtual void onRequestedSize(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, unsigned int width, unsigned int height)
Triggered when a client requests a new renderArea size.
virtual bool onTouchStart(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, unsigned int id, int x, int y)
Triggered when a TouchStart event is received from the client.
virtual bool onKeyUp(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y, const SoKeyboardEvent::Key &key)
Triggered when a KeyUp event is received from the client.
virtual void onResize(std::shared_ptr< RenderArea > renderArea, unsigned int width, unsigned int height)
Triggered when the renderArea is resized.
virtual bool onKeyDown(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Connection > sender, int x, int y, const SoKeyboardEvent::Key &key)
Triggered when a KeyDown event is received from the client.
Class to render an OpenInventor scene in a Qt OpenGL window.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class encapsulat...