Project
Loading...
Searching...
No Matches
DebugGUI.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#ifndef O2_FRAMEWORK_DEBUGUIINTERFACE_H_
12#define O2_FRAMEWORK_DEBUGUIINTERFACE_H_
13
22
23#include <functional>
24#include <vector>
25
26namespace o2::framework
27{
28struct ServiceRegistry;
30struct DebugGUI {
31 virtual std::function<void(void)> getGUIDebugger(std::vector<o2::framework::DeviceInfo> const& infos,
32 std::vector<o2::framework::DeviceSpec> const& devices,
33 std::vector<o2::framework::DataProcessingStates> const& allStates,
34 std::vector<o2::framework::DataProcessorInfo> const& metadata,
35 std::vector<o2::framework::DeviceMetricsInfo> const& metricsInfos,
36 o2::framework::DriverInfo const& driverInfo,
37 std::vector<o2::framework::DeviceControl>& controls,
38 o2::framework::DriverControl& driverControl) = 0;
39 virtual void updateMousePos(float x, float y) = 0;
40 virtual void updateMouseButton(bool isClicked) = 0;
41 virtual void updateMouseWheel(int direction) = 0;
42 virtual void updateWindowSize(int x, int y) = 0;
43 virtual void keyEvent(char key, bool down) = 0;
44 virtual void charIn(char key) = 0;
45
46 virtual void* initGUI(char const* windowTitle, ServiceRegistry& registry) = 0;
47 virtual void getFrameRaw(void* data, void** raw_data, int* size, bool updateTextures = false) = 0;
48 virtual bool pollGUIPreRender(void* context, float delta) = 0;
49 virtual void* pollGUIRender(std::function<void(void)> guiCallback) = 0;
50 virtual void pollGUIPostRender(void* context, void* draw_data) = 0;
51 virtual bool supportsDeferredClose() = 0;
52 virtual void disposeGUI() = 0;
53};
54} // namespace o2::framework
55#endif // O2_FRAMEWORK_DEBUGUIINTERFACE_H_
StringRef key
GLint GLenum GLint x
Definition glcorearb.h:403
GLsizeiptr size
Definition glcorearb.h:659
GLboolean * data
Definition glcorearb.h:298
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
Plugin interface for DPL GUIs.
Definition DebugGUI.h:30
virtual void charIn(char key)=0
virtual bool supportsDeferredClose()=0
virtual void * initGUI(char const *windowTitle, ServiceRegistry &registry)=0
virtual void updateMousePos(float x, float y)=0
virtual void * pollGUIRender(std::function< void(void)> guiCallback)=0
virtual void keyEvent(char key, bool down)=0
virtual bool pollGUIPreRender(void *context, float delta)=0
virtual void getFrameRaw(void *data, void **raw_data, int *size, bool updateTextures=false)=0
virtual void updateMouseWheel(int direction)=0
virtual void updateMouseButton(bool isClicked)=0
virtual void pollGUIPostRender(void *context, void *draw_data)=0
virtual void disposeGUI()=0
virtual std::function< void(void)> getGUIDebugger(std::vector< o2::framework::DeviceInfo > const &infos, std::vector< o2::framework::DeviceSpec > const &devices, std::vector< o2::framework::DataProcessingStates > const &allStates, std::vector< o2::framework::DataProcessorInfo > const &metadata, std::vector< o2::framework::DeviceMetricsInfo > const &metricsInfos, o2::framework::DriverInfo const &driverInfo, std::vector< o2::framework::DeviceControl > &controls, o2::framework::DriverControl &driverControl)=0
virtual void updateWindowSize(int x, int y)=0