Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7660 from osschar/from-CMSSW_7_3_1
Optimize creation of images for Online operation at P5
- Loading branch information
Showing
11 changed files
with
797 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#ifndef Subsystem_Package_FWTEveViewer_h | ||
#define Subsystem_Package_FWTEveViewer_h | ||
// -*- C++ -*- | ||
// | ||
// Package: Subsystem/Package | ||
// Class : FWTEveViewer | ||
// | ||
/**\class FWTEveViewer FWTEveViewer.h "FWTEveViewer.h" | ||
Description: [one line class summary] | ||
Usage: | ||
<usage> | ||
*/ | ||
// | ||
// Original Author: | ||
// Created: Tue, 03 Feb 2015 21:46:04 GMT | ||
// | ||
|
||
// system include files | ||
|
||
#include <thread> | ||
|
||
|
||
// user include files | ||
|
||
#include "TEveViewer.h" | ||
|
||
// forward declarations | ||
|
||
class FWTGLViewer; | ||
|
||
|
||
class FWTEveViewer : public TEveViewer | ||
{ | ||
|
||
public: | ||
FWTEveViewer(const char* n="FWTEveViewer", const char* t=""); | ||
virtual ~FWTEveViewer(); | ||
|
||
// ---------- const member functions --------------------- | ||
|
||
// ---------- static member functions -------------------- | ||
|
||
static bool SavePng(const TString& file, UChar_t* xx, int ww, int hh); | ||
static bool SaveJpg(const TString& file, UChar_t* xx, int ww, int hh); | ||
|
||
// ---------- member functions --------------------------- | ||
|
||
FWTGLViewer* fwGlViewer() { return m_fwGlViewer; } | ||
|
||
FWTGLViewer* SpawnFWTGLViewer(); | ||
|
||
std::thread CaptureAndSaveImage(const TString& file, int height=-1); | ||
|
||
private: | ||
FWTEveViewer(const FWTEveViewer&); // stop default | ||
|
||
const FWTEveViewer& operator=(const FWTEveViewer&); // stop default | ||
|
||
// ---------- member data -------------------------------- | ||
|
||
FWTGLViewer *m_fwGlViewer; | ||
}; | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#ifndef Subsystem_Package_FWTGLViewer_h | ||
#define Subsystem_Package_FWTGLViewer_h | ||
// -*- C++ -*- | ||
// | ||
// Package: Subsystem/Package | ||
// Class : FWTGLViewer | ||
// | ||
/**\class FWTGLViewer FWTGLViewer.h "FWTGLViewer.h" | ||
Description: [one line class summary] | ||
Usage: | ||
<usage> | ||
*/ | ||
// | ||
// Original Author: | ||
// Created: Tue, 03 Feb 2015 21:45:22 GMT | ||
// | ||
|
||
// system include files | ||
|
||
// user include files | ||
|
||
#include "TGLEmbeddedViewer.h" | ||
|
||
// forward declarations | ||
|
||
class TGWindow; | ||
class TGLFBO; | ||
|
||
class FWTGLViewer : public TGLEmbeddedViewer | ||
{ | ||
|
||
public: | ||
FWTGLViewer(const TGWindow *parent); | ||
virtual ~FWTGLViewer(); | ||
|
||
// ---------- const member functions --------------------- | ||
|
||
// ---------- static member functions -------------------- | ||
|
||
// ---------- member functions --------------------------- | ||
|
||
void DrawHiLod(Bool_t swap_buffers); | ||
void JustSwap(); | ||
|
||
TGLFBO* MakeFbo(); | ||
TGLFBO* MakeFboWidth (Int_t width, Bool_t pixel_object_scale=kTRUE); | ||
TGLFBO* MakeFboHeight(Int_t height, Bool_t pixel_object_scale=kTRUE); | ||
TGLFBO* MakeFboScale (Float_t scale, Bool_t pixel_object_scale=kTRUE); | ||
|
||
TGLFBO* GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale); | ||
|
||
private: | ||
FWTGLViewer(const FWTGLViewer&); // stop default | ||
|
||
const FWTGLViewer& operator=(const FWTGLViewer&); // stop default | ||
|
||
// ---------- member data -------------------------------- | ||
|
||
}; | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.