Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
ServiceListener.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20
21#pragma once
22
23#include <Inventor/sys/port.h>
24#include <RemoteViz/Rendering/LibHelper.h>
25#include <SoDeprecationRules.h>
26
27#include <RemoteViz/Rendering/HTTPResponse.h>
28
29#include <string>
30#include <memory>
31
32namespace RemoteViz
33{
34 namespace Rendering
35 {
36
37 class RenderArea;
38
39 class Client;
40
41 class ConnectionParameters;
42
43 class NetworkPerformance;
44
45 class RenderAreaHardware;
46
47 class HTTPRequest;
48
89 class RENDERSERVICE_API ServiceListener
90 {
91 public:
130 virtual bool onPendingCreateRenderArea(const std::string& renderAreaId, unsigned int& width, unsigned int& height, std::shared_ptr<RenderAreaHardware> renderAreaHardware, std::shared_ptr<Client> client, std::shared_ptr<const ConnectionParameters> parameters);
149 virtual bool onPendingShareRenderArea(std::shared_ptr<RenderArea> renderArea, std::shared_ptr<Client> client, std::shared_ptr<const ConnectionParameters> parameters);
159 virtual void onInstantiatedRenderArea(std::shared_ptr<RenderArea> renderArea);
171 virtual void onDisposingRenderArea(std::shared_ptr<RenderArea> renderArea);
180 virtual void onDisposedRenderArea(const std::string& renderAreaId);
201 virtual void onConnectedClient(const std::string& clientId, std::shared_ptr<NetworkPerformance> networkPerformance);
223 virtual void onInitializedClient(std::shared_ptr<Client> client, std::shared_ptr<const NetworkPerformance> networkPerformance);
231 virtual void onDisconnectedClient(const std::string& clientId);
232#if 1 SoDEPRECATED
252 virtual void onMissingLicense(const std::string& renderAreaId, std::shared_ptr<const ConnectionParameters> parameters);
253#endif
268 virtual std::string onRequestedPrivateKeyPassphrase();
269
296 virtual HTTPResponse onHTTPRequest(std::shared_ptr<const HTTPRequest> httpRequest);
297 };
298 }
299}
<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>
virtual bool onPendingShareRenderArea(std::shared_ptr< RenderArea > renderArea, std::shared_ptr< Client > client, std::shared_ptr< const ConnectionParameters > parameters)
Triggered when a connection is pending and the requested renderArea exists.
virtual void onInstantiatedRenderArea(std::shared_ptr< RenderArea > renderArea)
Triggered when a renderArea has been instantiated.
virtual void onConnectedClient(const std::string &clientId, std::shared_ptr< NetworkPerformance > networkPerformance)
Triggered when a client is connected to the service.
virtual SoDEPRECATED void onMissingLicense(const std::string &renderAreaId, std::shared_ptr< const ConnectionParameters > parameters)
This listener is deprecated from Open Inventor 10.9 and is not triggered by RemoteViz anymore.
virtual void onDisposedRenderArea(const std::string &renderAreaId)
Triggered when a renderArea has been disposed.
virtual bool onPendingCreateRenderArea(const std::string &renderAreaId, unsigned int &width, unsigned int &height, std::shared_ptr< RenderAreaHardware > renderAreaHardware, std::shared_ptr< Client > client, std::shared_ptr< const ConnectionParameters > parameters)
Triggered when a connection is pending and the requested renderArea does not exist.
virtual HTTPResponse onHTTPRequest(std::shared_ptr< const HTTPRequest > httpRequest)
Triggered when an HTTP connection is made that does not attempt to upgrade the connection to the WebS...
virtual std::string onRequestedPrivateKeyPassphrase()
Triggered when the secure connection is enabled.
virtual void onDisconnectedClient(const std::string &clientId)
Triggered when a client is disconnected from the service.
virtual void onInitializedClient(std::shared_ptr< Client > client, std::shared_ptr< const NetworkPerformance > networkPerformance)
Triggered when a client is initialized.
virtual void onDisposingRenderArea(std::shared_ptr< RenderArea > renderArea)
Triggered before a renderArea is disposed.
virtual ~ServiceListener()
Destructor.
Class to render an OpenInventor scene in a Qt OpenGL window.
Definition RenderArea.h:46