#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 () |
virtual | ~FWTEveViewer () |
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 &) | |
const FWTEveViewer & | operator= (const FWTEveViewer &) |
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 = 0 |
bool | m_thr_exit = false |
int | m_ww |
FWTEveViewer::FWTEveViewer | ( | const char * | n = "FWTEveViewer" , |
const char * | t = "" |
||
) |
|
virtual |
|
private |
std::future< int > FWTEveViewer::CaptureAndSaveImage | ( | const TString & | file, |
int | height = -1 |
||
) |
Definition at line 134 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 53 of file FWTEveViewer.h.
References CaptureAndSaveImage(), FWTEveViewer(), m_fwGlViewer, operator=(), spawn_image_thread(), and SpawnFWTGLViewer().
Referenced by FWEveView::fwViewerGL().
|
private |
Referenced by fwGlViewer().
|
static |
Definition at line 279 of file FWTEveViewer.cc.
References mps_fire::i, tablePrinter::rows, and TRUE.
Referenced by spawn_image_thread().
|
static |
Definition at line 199 of file FWTEveViewer.cc.
References mps_fire::i, NULL, and tablePrinter::rows.
Referenced by spawn_image_thread().
|
private |
Definition at line 81 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 116 of file FWTEveViewer.cc.
References m_fwGlViewer.
Referenced by FWEveView::FWEveView(), and fwGlViewer().
|
private |
Definition at line 78 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 68 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), fwGlViewer(), and SpawnFWTGLViewer().
|
private |
Definition at line 73 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 70 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 77 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 72 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 76 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().
|
private |
Definition at line 75 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 74 of file FWTEveViewer.h.
Referenced by spawn_image_thread(), and ~FWTEveViewer().
|
private |
Definition at line 73 of file FWTEveViewer.h.
Referenced by CaptureAndSaveImage(), and spawn_image_thread().