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 {
34 
35 public:
36  FWTGLViewer(const TGWindow *parent);
37  ~FWTGLViewer() override;
38 
39  // ---------- const member functions ---------------------
40 
41  // ---------- static member functions --------------------
42 
43  // ---------- member functions ---------------------------
44 
45  void DrawHiLod(Bool_t swap_buffers);
46  void JustSwap();
47 
48  TGLFBO* MakeFbo();
49  TGLFBO* MakeFboWidth (Int_t width, Bool_t pixel_object_scale=kTRUE);
50  TGLFBO* MakeFboHeight(Int_t height, Bool_t pixel_object_scale=kTRUE);
51  TGLFBO* MakeFboScale (Float_t scale, Bool_t pixel_object_scale=kTRUE);
52 
53  TGLFBO* GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale);
54 
55 private:
56  FWTGLViewer(const FWTGLViewer&) = delete; // stop default
57 
58  const FWTGLViewer& operator=(const FWTGLViewer&) = delete; // stop default
59 
60  // ---------- member data --------------------------------
61 
62  TGLFBO *m_fbo;
64 };
65 
66 
67 #endif
TGLFBO * MakeFboScale(Float_t scale, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:145
TGLFBO * MakeFboWidth(Int_t width, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:119
TGLFBO * MakeFboHeight(Int_t height, Bool_t pixel_object_scale=kTRUE)
Definition: FWTGLViewer.cc:132
TGLFBO * GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale)
Definition: FWTGLViewer.cc:158
const double w
Definition: UKUtility.cc:23
const FWTGLViewer & operator=(const FWTGLViewer &)=delete
TGLFBO * m_fbo
Definition: FWTGLViewer.h:62
~FWTGLViewer() override
Definition: FWTGLViewer.cc:51
FWTGLViewer(const TGWindow *parent)
Definition: FWTGLViewer.cc:39
void JustSwap()
Definition: FWTGLViewer.cc:101
void DrawHiLod(Bool_t swap_buffers)
Definition: FWTGLViewer.cc:76
TGLFBO * MakeFbo()
Definition: FWTGLViewer.cc:111