CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
FWTEveViewer Class Reference

#include "FWTEveViewer.h"

Inheritance diagram for FWTEveViewer:

Public Member Functions

std::future< int > CaptureAndSaveImage (const TString &file, int height=-1)
 
FWTGLViewerfwGlViewer ()
 
 FWTEveViewer (const char *n="FWTEveViewer", const char *t="")
 
FWTGLViewerSpawnFWTGLViewer ()
 
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 FWTEveVieweroperator= (const FWTEveViewer &)
 
void spawn_image_thread ()
 

Private Attributes

std::condition_variable m_cnd
 
FWTGLViewerm_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
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 37 of file FWTEveViewer.h.

Constructor & Destructor Documentation

FWTEveViewer::FWTEveViewer ( const char *  n = "FWTEveViewer",
const char *  t = "" 
)

Definition at line 39 of file FWTEveViewer.cc.

FWTEveViewer::~FWTEveViewer ( )
virtual

Definition at line 49 of file FWTEveViewer.cc.

FWTEveViewer::FWTEveViewer ( const FWTEveViewer )
private

Member Function Documentation

std::future< int > FWTEveViewer::CaptureAndSaveImage ( const TString &  file,
int  height = -1 
)

Definition at line 134 of file FWTEveViewer.cc.

FWTGLViewer* FWTEveViewer::fwGlViewer ( )
inline

Definition at line 53 of file FWTEveViewer.h.

References m_fwGlViewer.

53 { return m_fwGlViewer; }
FWTGLViewer * m_fwGlViewer
Definition: FWTEveViewer.h:68
const FWTEveViewer& FWTEveViewer::operator= ( const FWTEveViewer )
private
bool FWTEveViewer::SaveJpg ( const TString &  file,
UChar_t *  xx,
int  ww,
int  hh 
)
static

Definition at line 279 of file FWTEveViewer.cc.

bool FWTEveViewer::SavePng ( const TString &  file,
UChar_t *  xx,
int  ww,
int  hh 
)
static

Definition at line 199 of file FWTEveViewer.cc.

void FWTEveViewer::spawn_image_thread ( )
private

Definition at line 81 of file FWTEveViewer.cc.

FWTGLViewer * FWTEveViewer::SpawnFWTGLViewer ( )

Definition at line 116 of file FWTEveViewer.cc.

Member Data Documentation

std::condition_variable FWTEveViewer::m_cnd
private

Definition at line 78 of file FWTEveViewer.h.

FWTGLViewer* FWTEveViewer::m_fwGlViewer
private

Definition at line 68 of file FWTEveViewer.h.

Referenced by fwGlViewer().

int FWTEveViewer::m_hh
private

Definition at line 73 of file FWTEveViewer.h.

std::vector<unsigned char> FWTEveViewer::m_imgBuffer
private

Definition at line 70 of file FWTEveViewer.h.

std::mutex FWTEveViewer::m_moo
private

Definition at line 77 of file FWTEveViewer.h.

TString FWTEveViewer::m_name
private

Definition at line 72 of file FWTEveViewer.h.

std::promise<int> FWTEveViewer::m_prom
private

Definition at line 76 of file FWTEveViewer.h.

std::thread* FWTEveViewer::m_thr = 0
private

Definition at line 75 of file FWTEveViewer.h.

bool FWTEveViewer::m_thr_exit = false
private

Definition at line 74 of file FWTEveViewer.h.

int FWTEveViewer::m_ww
private

Definition at line 73 of file FWTEveViewer.h.