Represents a session (connection) to an Iray Bridge Server. More...
#include <iiray_bridge_client.h>
Public Member Functions | |
virtual Client_session_state | get_state ()=0 |
Returns the state of the session. More... | |
virtual void | add_session_state_callback (IClient_session_state_callback *callback)=0 |
Adds a session state callback. More... | |
virtual void | remove_session_state_callback (IClient_session_state_callback *callback)=0 |
Removes a previously added session state callback. More... | |
virtual const IArray * | get_supported_render_modes ()=0 |
Returns an IArray containing IString instances with the names of all cloud render modes supported by the Bridge Server. More... | |
![]() | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
![]() | |
using | Self = Interface_declare< id1, ... > |
Own type. More... | |
using | IID = Uuid_t< id1, ... > |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
using | IID = Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
Represents a session (connection) to an Iray Bridge Server.
Normally a session doesn't need to be explicitly created since the Iray Bridge render and snapshot contexts handles sessions automatically. But creating an explicit session can allow a connection to be made at a specific point in time and can also serve to keep a session open even when no Iray bridge context is in use. Furthermore this session instance can be used to query the Iray Bridge Server for things where a connection to the server is needed, like which render modes are supported.
Bridge sessions are shared, so creating several session instances using the same connection credentials, explicitly or through Iray Bridge render contexts, will only create one actual connection to the server and this connection will be kept open as long as there are session instances still open.
|
pure virtual |
Adds a session state callback.
When adding a callback it will be called immediately once with the current state, and then every time the session state changes.
callback | The callback to be added. |
|
pure virtual |
Returns the state of the session.
|
pure virtual |
|
pure virtual |
Removes a previously added session state callback.
callback | The callback to be removed. |