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
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
TGLFBO * MakeFboScale(Float_t scale, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:128
TGLFBO * MakeFboWidth(Int_t width, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:104
TGLFBO * MakeFboHeight(Int_t height, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:116
TGLFBO * GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale)
Definition: FWTGLViewer.cc:140
const double w
Definition: UKUtility.cc:23
const FWTGLViewer & operator=(const FWTGLViewer &)=delete
TGLFBO * m_fbo
Definition: FWTGLViewer.h:60
~FWTGLViewer() override
Definition: FWTGLViewer.cc:46
FWTGLViewer(const TGWindow *parent)
Definition: FWTGLViewer.cc:38
void JustSwap()
Definition: FWTGLViewer.cc:90
void DrawHiLod(Bool_t swap_buffers)
Definition: FWTGLViewer.cc:68
TGLFBO * MakeFbo()
Definition: FWTGLViewer.cc:97