FWTGLViewer

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
#ifndef Subsystem_Package_FWTGLViewer_h
#define Subsystem_Package_FWTGLViewer_h
// -*- C++ -*-
//
// Package:     Subsystem/Package
// Class  :     FWTGLViewer
//
/**\class FWTGLViewer FWTGLViewer.h "FWTGLViewer.h"

 Description: [one line class summary]

 Usage:
    <usage>

*/
//
// Original Author:
//         Created:  Tue, 03 Feb 2015 21:45:22 GMT
//

// system include files

// user include files

#include "TGLEmbeddedViewer.h"

// forward declarations

class TGWindow;
class TGLFBO;

class FWTGLViewer : public TGLEmbeddedViewer {
public:
  FWTGLViewer(const TGWindow* parent);
  ~FWTGLViewer() override;

  // ---------- const member functions ---------------------

  // ---------- static member functions --------------------

  // ---------- member functions ---------------------------

  void DrawHiLod(Bool_t swap_buffers);
  void JustSwap();

  TGLFBO* MakeFbo();
  TGLFBO* MakeFboWidth(Int_t width, Bool_t pixel_object_scale = kTRUE);
  TGLFBO* MakeFboHeight(Int_t height, Bool_t pixel_object_scale = kTRUE);
  TGLFBO* MakeFboScale(Float_t scale, Bool_t pixel_object_scale = kTRUE);

  TGLFBO* GenerateFbo(Int_t w, Int_t h, Float_t pixel_object_scale);

  FWTGLViewer(const FWTGLViewer&) = delete;  // stop default

  const FWTGLViewer& operator=(const FWTGLViewer&) = delete;  // stop default

private:
  // ---------- member data --------------------------------

  TGLFBO* m_fbo;
  int m_fbo_w, m_fbo_h;
};

#endif