Project
Loading...
Searching...
No Matches
Screenshot.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
16
17#ifndef ALICE_O2_EVENTVISUALISATION_SCREENSHOT_H
18#define ALICE_O2_EVENTVISUALISATION_SCREENSHOT_H
19
20#include <TASImage.h>
22#include <string>
23namespace o2
24{
25namespace event_visualisation
26{
27
29{
30 private:
31 static bool CopyImage(TASImage* dst, TASImage* src, Int_t x_dst, Int_t y_dst, Int_t x_src, Int_t y_src,
32 UInt_t w_src, UInt_t h_src);
33 static TASImage* ScaleImage(TASImage* image, UInt_t desiredWidth, UInt_t desiredHeight, const std::string& backgroundColor);
34
35 public:
36 static std::string perform(const char* prefix, std::string fileName, o2::detectors::DetID::mask_t detectorsMask, int runNumber, int firstTFOrbit, const std::string& collisionTime);
37};
38
39} // namespace event_visualisation
40} // namespace o2
41
42#endif // ALICE_O2_EVENTVISUALISATION_SCREENSHOT_H
static std::string perform(const char *prefix, std::string fileName, o2::detectors::DetID::mask_t detectorsMask, int runNumber, int firstTFOrbit, const std::string &collisionTime)
GLeglImageOES image
Definition glcorearb.h:4021
GLenum src
Definition glcorearb.h:1767
GLenum GLenum dst
Definition glcorearb.h:1767
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...