Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TH2GL.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gl:$Id$
0002 // Author:  Matevz Tadel, Jun 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TH2GL
0013 #define ROOT_TH2GL
0014 
0015 #include <TGLPlot3D.h>
0016 #include <TGLUtil.h>
0017 #include <TGLAxisPainter.h>
0018 
0019 class TGLRnrCtx;
0020 class TH2;
0021 class TAxis;
0022 
0023 class TH2GL : public TGLPlot3D
0024 {
0025 private:
0026    TH2GL(const TH2GL&) = delete;
0027    TH2GL& operator=(const TH2GL&) = delete;
0028 
0029 protected:
0030    TH2                *fM; // Model object dynamic-casted to TH2.
0031 
0032 public:
0033    TH2GL();
0034    ~TH2GL() override;
0035 
0036    Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
0037    void   SetBBox() override;
0038    void   DirectDraw(TGLRnrCtx & rnrCtx) const override;
0039 
0040    // To support two-level selection
0041    // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
0042    // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);
0043 
0044    ClassDefOverride(TH2GL, 0); // GL renderer for TH2.
0045 }; // endclass TH2GL
0046 
0047 #endif