23#include <Inventor/sys/port.h>
24#include <RemoteViz/Rendering/LibHelper.h>
45 class RenderAreaListener;
47 class RenderAreaHardware;
82 friend class ServiceImpl;
83 friend class ConnectionImpl;
171 bool sendMessage(
const std::string& message, std::vector<std::shared_ptr<Connection>> excludedConnections = {})
const;
181 bool sendMessage(
const std::vector<unsigned char>& buffer, std::vector<std::shared_ptr<Connection>> excludedConnections = {})
const;
206 void resize(
unsigned int width,
unsigned int height);
265 std::shared_ptr<RenderAreaImpl> getImpl()
const;
270 std::shared_ptr<RenderAreaImpl> pImpl;
280 static std::shared_ptr<RenderArea> createInstance(
const std::string&
id,
unsigned int width,
unsigned int height,
const RenderAreaHardware& renderAreaHardware);
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
<a href="IconLegend.html"><img src="extRV.gif" alt="RemoteViz" border="0"></a>
std::shared_ptr< Connection > getConnection(unsigned int index) const
Gets an existing Connection to the renderArea.
void removeAllListeners()
Removes all RenderAreaListeners.
bool sendMessage(const std::vector< unsigned char > &buffer, std::vector< std::shared_ptr< Connection > > excludedConnections={}) const
Sends a binary message to the renderArea connections.
void removeListener(std::shared_ptr< RenderAreaListener > listener)
Removes a RenderAreaListener.
SoSceneManager * getSceneManager() const
Gets the Open Inventor scene manager associated with the renderArea.
bool sendMessage(const std::string &message, std::vector< std::shared_ptr< Connection > > excludedConnections={}) const
Sends a text message to the renderArea connections.
unsigned int getWidth() const
Gets the renderArea width.
SoGLContext * getGLContext() const
Gets the OpenGL context associated with the renderArea.
void closeConnectionsAndDispose()
Closes all connections of the renderArea and disposes it.
void resize(unsigned int width, unsigned int height)
Resizes the renderArea at a specific size.
std::shared_ptr< Connection > getConnection(const std::string &id) const
Gets an existing Connection to the renderArea.
SoTouchManager * getTouchManager() const
Gets the Open Inventor touch manager associated with the renderArea.
unsigned int getNumListeners() const
Gets the number of RenderAreaListener.
const std::string & getId() const
Gets the renderArea id.
unsigned int getNumConnections() const
Gets the number of connections (see Connection) that exist for this renderArea.
const std::string & getGpu() const
Gets the Graphics Processing Unit (GPU) used to render images.
void setFrameMessage(const std::string &message)
Sets the message which will be associate with the next rendered frames.
void addListener(std::shared_ptr< RenderAreaListener > listener)
Adds a RenderAreaListener to manage the renderArea.
bool isDisposed() const
Gets the state of the RenderArea: alive or disposed.
unsigned int getHeight() const
Gets the renderArea height.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> OpenGL context m...
Manages scene graph rendering and event handling.
Class for managing events from touch screen input devices.