RemoteViz::Rendering::Connection Class Reference
[RemoteViz]

RemoteViz More...

#include <RemoteViz/Rendering/Connection.h>

List of all members.

Public Member Functions

const std::string & getId () const
ConnectionSettingsgetSettings () const
ConnectionParametersgetParameters () const
RenderAreagetRenderArea () const
unsigned int getRequestedWidth () const
unsigned int getRequestedHeight () const
unsigned int getContainerWidth () const
unsigned int getContainerHeight () const
ClientgetClient () const
bool sendMessage (const std::string &message) const
void close ()
EncodedFramegetLastEncodedFrame () const

Detailed Description

RemoteViz

Represents a connection from a Client to a RenderArea managed by the RemoteViz service.


Member Function Documentation

void RemoteViz::Rendering::Connection::close (  ) 

Closes the connection.

A KICKED disconnect message will be sent to the client.

Client* RemoteViz::Rendering::Connection::getClient (  )  const

Gets the id of the client associated with the connection.

Returns:
the ID identifying the client
unsigned int RemoteViz::Rendering::Connection::getContainerHeight (  )  const

Gets the client container height.

Returns:
the client container height
unsigned int RemoteViz::Rendering::Connection::getContainerWidth (  )  const

Gets the client container width.

Returns:
the client container width
const std::string& RemoteViz::Rendering::Connection::getId (  )  const

Gets the id of the connection.

Returns:
the ID identifying the connection
EncodedFrame* RemoteViz::Rendering::Connection::getLastEncodedFrame (  )  const

Gets the last encoded frame sent by the connection.

Returns:
encoded frame.
ConnectionParameters* RemoteViz::Rendering::Connection::getParameters (  )  const

Gets the connection parameters (field-value pairs included in the url during the client connection).

Returns:
a pointer to the connection parameters
RenderArea* RemoteViz::Rendering::Connection::getRenderArea (  )  const

Gets the RenderArea associated with the connection.

Returns:
a pointer to the renderArea
unsigned int RemoteViz::Rendering::Connection::getRequestedHeight (  )  const

Gets the last renderArea height requested by the client.

Returns:
the requested renderArea height
unsigned int RemoteViz::Rendering::Connection::getRequestedWidth (  )  const

Gets the last renderArea width requested by the client.

Returns:
the requested renderArea width
ConnectionSettings* RemoteViz::Rendering::Connection::getSettings (  )  const

Gets the connection settings.

Returns:
a pointer to the connection settings
bool RemoteViz::Rendering::Connection::sendMessage ( const std::string &  message  )  const

Sends a text message to the client.

The client-side message event will be triggered.

Parameters:
message : the message to be sent to the client
Returns:
true if the message has been successfully sent, otherwise returns false.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 24 Mar 2020
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/