#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="") | |
FWTEveViewer (const FWTEveViewer &)=delete | |
const FWTEveViewer & | operator= (const FWTEveViewer &)=delete |
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 | |
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 = "" |
||
) |
Definition at line 38 of file FWTEveViewer.cc.
|
override |
|
delete |
std::future< int > FWTEveViewer::CaptureAndSaveImage | ( | const TString & | file, |
int | height = -1 |
||
) |
Definition at line 125 of file FWTEveViewer.cc.
References geometryDiff::file, hh, 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().
|
inline |
Definition at line 50 of file FWTEveViewer.h.
References m_fwGlViewer.
Referenced by FWEveView::fwViewerGL().
|
delete |
|
static |
Definition at line 270 of file FWTEveViewer.cc.
References geometryDiff::file, personalPlayback::fp, hh, mps_fire::i, dqmiolumiharvest::j, postprocess-scan-build::rows, TRUE, and geometryCSVtoXML::xx.
Referenced by spawn_image_thread().
|
static |
Definition at line 185 of file FWTEveViewer.cc.
References geometryDiff::file, personalPlayback::fp, hh, mps_fire::i, dqmiolumiharvest::j, postprocess-scan-build::rows, and geometryCSVtoXML::xx.
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().
FWTGLViewer * FWTEveViewer::SpawnFWTGLViewer | ( | ) |
Definition at line 109 of file FWTEveViewer.cc.
References m_fwGlViewer.
Referenced by FWEveView::FWEveView().
|
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().