#include "FWTEveViewer.h"
Public Member Functions | |
std::future< int > | CaptureAndSaveImage (const TString &file, int height=-1) |
FWTGLViewer * | fwGlViewer () |
FWTEveViewer (const char *n="FWTEveViewer", const char *t="") | |
FWTGLViewer * | SpawnFWTGLViewer () |
~FWTEveViewer () override | |
Static Public Member Functions | |
static bool | SaveJpg (const TString &file, UChar_t *xx, int ww, int hh) |
static bool | SavePng (const TString &file, UChar_t *xx, int ww, int hh) |
Private Member Functions | |
FWTEveViewer (const FWTEveViewer &)=delete | |
const FWTEveViewer & | operator= (const FWTEveViewer &)=delete |
void | spawn_image_thread () |
Private Attributes | |
std::condition_variable | m_cnd |
FWTGLViewer * | m_fwGlViewer |
int | m_hh |
std::vector< unsigned char > | m_imgBuffer |
std::mutex | m_moo |
TString | m_name |
std::promise< int > | m_prom |
std::thread * | m_thr = nullptr |
bool | m_thr_exit = false |
int | m_ww |
FWTEveViewer::FWTEveViewer | ( | const char * | n = "FWTEveViewer" , |
const char * | t = "" |
||
) |
|
override |
|
privatedelete |
std::future< int > FWTEveViewer::CaptureAndSaveImage | ( | const TString & | file, |
int | height = -1 |
||
) |
Definition at line 125 of file FWTEveViewer.cc.
References FrontierConditions_GlobalTag_cff::file, m_cnd, m_fwGlViewer, m_hh, m_imgBuffer, m_moo, m_name, m_prom, m_thr, m_ww, FWTGLViewer::MakeFbo(), FWTGLViewer::MakeFboHeight(), and spawn_image_thread().
Referenced by fwGlViewer().
|
inline |
Definition at line 50 of file FWTEveViewer.h.
References CaptureAndSaveImage(), FWTEveViewer(), m_fwGlViewer, operator=(), spawn_image_thread(), and SpawnFWTGLViewer().
Referenced by FWEveView::fwViewerGL().
|
privatedelete |
Referenced by fwGlViewer().
|
static |
Definition at line 270 of file FWTEveViewer.cc.
References personalPlayback::fp, mps_fire::i, dqmiolumiharvest::j, postprocess-scan-build::rows, and TRUE.
Referenced by spawn_image_thread().
|
static |
Definition at line 185 of file FWTEveViewer.cc.
References personalPlayback::fp, mps_fire::i, dqmiolumiharvest::j, and postprocess-scan-build::rows.
Referenced by spawn_image_thread().
|
private |
Definition at line 77 of file FWTEveViewer.cc.
References m_cnd, m_hh, m_imgBuffer, m_moo, m_name, m_prom, m_thr, m_thr_exit, m_ww, SaveJpg(), and SavePng().
Referenced by CaptureAndSaveImage(), and fwGlViewer().
FWTGLViewer * FWTEveViewer::SpawnFWTGLViewer | ( | ) |
Definition at line 109 of file FWTEveViewer.cc.
References m_fwGlViewer.
Referenced by FWEveView::FWEveView(), and fwGlViewer().
|
private |
Definition at line 75 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 65 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), fwGlViewer(), and SpawnFWTGLViewer().
|
private |
Definition at line 70 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 67 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 74 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 69 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 73 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 72 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 71 of file FWTEveViewer.h.
Referenced by spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 70 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().