CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWTEveViewer.h
Go to the documentation of this file.
1 #ifndef Subsystem_Package_FWTEveViewer_h
2 #define Subsystem_Package_FWTEveViewer_h
3 // -*- C++ -*-
4 //
5 // Package: Subsystem/Package
6 // Class : FWTEveViewer
7 //
16 //
17 // Original Author:
18 // Created: Tue, 03 Feb 2015 21:46:04 GMT
19 //
20 
21 // system include files
22 
23 #include <thread>
24 
25 
26 // user include files
27 
28 #include "TEveViewer.h"
29 
30 // forward declarations
31 
32 class FWTGLViewer;
33 
34 
35 class FWTEveViewer : public TEveViewer
36 {
37 
38 public:
39  FWTEveViewer(const char* n="FWTEveViewer", const char* t="");
40  virtual ~FWTEveViewer();
41 
42  // ---------- const member functions ---------------------
43 
44  // ---------- static member functions --------------------
45 
46  static bool SavePng(const TString& file, UChar_t* xx, int ww, int hh);
47  static bool SaveJpg(const TString& file, UChar_t* xx, int ww, int hh);
48 
49  // ---------- member functions ---------------------------
50 
52 
54 
55  std::thread CaptureAndSaveImage(const TString& file, int height=-1);
56 
57 private:
58  FWTEveViewer(const FWTEveViewer&); // stop default
59 
60  const FWTEveViewer& operator=(const FWTEveViewer&); // stop default
61 
62  // ---------- member data --------------------------------
63 
65 };
66 
67 
68 #endif
const FWTEveViewer & operator=(const FWTEveViewer &)
FWTEveViewer(const char *n="FWTEveViewer", const char *t="")
Definition: FWTEveViewer.cc:41
FWTGLViewer * fwGlViewer()
Definition: FWTEveViewer.h:51
static bool SaveJpg(const TString &file, UChar_t *xx, int ww, int hh)
virtual ~FWTEveViewer()
Definition: FWTEveViewer.cc:51
FWTGLViewer * m_fwGlViewer
Definition: FWTEveViewer.h:64
static bool SavePng(const TString &file, UChar_t *xx, int ww, int hh)
std::thread CaptureAndSaveImage(const TString &file, int height=-1)
Definition: FWTEveViewer.cc:87
FWTGLViewer * SpawnFWTGLViewer()
Definition: FWTEveViewer.cc:70