CMS 3D CMS Logo

FWTGLViewer.h
Go to the documentation of this file.
1 #ifndef Subsystem_Package_FWTGLViewer_h
2 #define Subsystem_Package_FWTGLViewer_h
3 // -*- C++ -*-
4 //
5 // Package: Subsystem/Package
6 // Class : FWTGLViewer
7 //
16 //
17 // Original Author:
18 // Created: Tue, 03 Feb 2015 21:45:22 GMT
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 #include "TGLEmbeddedViewer.h"
26 
27 // forward declarations
28 
29 class TGWindow;
30 class TGLFBO;
31 
32 class FWTGLViewer : public TGLEmbeddedViewer {
33 public:
34  FWTGLViewer(const TGWindow* parent);
35  ~FWTGLViewer() override;
36 
37  // ---------- const member functions ---------------------
38 
39  // ---------- static member functions --------------------
40 
41  // ---------- member functions ---------------------------
42 
43  void DrawHiLod(Bool_t swap_buffers);
44  void JustSwap();
45 
46  TGLFBO* MakeFbo();
47  TGLFBO* MakeFboWidth(Int_t width, Bool_t pixel_object_scale = kTRUE);
48  TGLFBO* MakeFboHeight(Int_t height, Bool_t pixel_object_scale = kTRUE);
49  TGLFBO* MakeFboScale(Float_t scale, Bool_t pixel_object_scale = kTRUE);
50 
51  TGLFBO* GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale);
52 
53 private:
54  FWTGLViewer(const FWTGLViewer&) = delete; // stop default
55 
56  const FWTGLViewer& operator=(const FWTGLViewer&) = delete; // stop default
57 
58  // ---------- member data --------------------------------
59 
60  TGLFBO* m_fbo;
62 };
63 
64 #endif
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
FWTGLViewer::MakeFboScale
TGLFBO * MakeFboScale(Float_t scale, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:128
L1EGammaCrystalsEmulatorProducer_cfi.scale
scale
Definition: L1EGammaCrystalsEmulatorProducer_cfi.py:10
FWTGLViewer::MakeFboWidth
TGLFBO * MakeFboWidth(Int_t width, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:104
FWTGLViewer::GenerateFbo
TGLFBO * GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale)
Definition: FWTGLViewer.cc:140
FWTGLViewer::operator=
const FWTGLViewer & operator=(const FWTGLViewer &)=delete
w
const double w
Definition: UKUtility.cc:23
h
FWTGLViewer::FWTGLViewer
FWTGLViewer(const TGWindow *parent)
Definition: FWTGLViewer.cc:38
FWTGLViewer::~FWTGLViewer
~FWTGLViewer() override
Definition: FWTGLViewer.cc:46
FWTGLViewer::JustSwap
void JustSwap()
Definition: FWTGLViewer.cc:90
FWTGLViewer::m_fbo
TGLFBO * m_fbo
Definition: FWTGLViewer.h:60
FWTGLViewer::m_fbo_w
int m_fbo_w
Definition: FWTGLViewer.h:61
FWTGLViewer::DrawHiLod
void DrawHiLod(Bool_t swap_buffers)
Definition: FWTGLViewer.cc:68
FWTGLViewer
Definition: FWTGLViewer.h:32
FWTGLViewer::MakeFbo
TGLFBO * MakeFbo()
Definition: FWTGLViewer.cc:97
class-composition.parent
parent
Definition: class-composition.py:88
FWTGLViewer::MakeFboHeight
TGLFBO * MakeFboHeight(Int_t height, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:116
FWTGLViewer::m_fbo_h
int m_fbo_h
Definition: FWTGLViewer.h:61