00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #pragma once
00022
00023 #include <Inventor/sys/port.h>
00024
00025 #include <memory>
00026
00027 namespace RemoteViz
00028 {
00029 namespace Rendering
00030 {
00031 class Client;
00032 class RenderArea;
00033 class Connection;
00034
00057 class RENDERSERVICE_API MetricsListener
00058 {
00059 public:
00063 virtual ~MetricsListener();
00064
00073 virtual void onMeasuredNetworkLatency( unsigned int time, std::shared_ptr<Client> client );
00074
00083 virtual void onMeasuredDecodingTime( unsigned int time, std::shared_ptr<Connection> connection );
00084
00093 virtual void onMeasuredRenderingTime( unsigned int time, std::shared_ptr<RenderArea> renderArea );
00094
00103 virtual void onMeasuredEncodingTime( unsigned int time, std::shared_ptr<Connection> connection );
00104
00111 virtual void onChangedNumClients( unsigned int number );
00112
00119 virtual void onChangedNumConnections( unsigned int number );
00120
00127 virtual void onChangedNumRenderAreas( unsigned int number );
00128
00129 };
00130 }
00131 }
00132