Logo ROOT   6.12/07
Reference Guide
TH2GL.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel, Jun 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TH2GL
13 #define ROOT_TH2GL
14 
15 #include <TGLPlot3D.h>
16 #include <TGLUtil.h>
17 #include <TGLAxisPainter.h>
18 
19 class TGLRnrCtx;
20 class TH2;
21 class TAxis;
22 
23 class TH2GL : public TGLPlot3D
24 {
25 private:
26  TH2GL(const TH2GL&); // Not implemented
27  TH2GL& operator=(const TH2GL&); // Not implemented
28 
29 protected:
30  TH2 *fM; // Model object dynamic-casted to TH2.
31 
32 public:
33  TH2GL();
34  virtual ~TH2GL();
35 
36  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
37  virtual void SetBBox();
38  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
39 
40  // To support two-level selection
41  // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
42  // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);
43 
44  ClassDef(TH2GL, 0); // GL renderer for TH2.
45 }; // endclass TH2GL
46 
47 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
const char Option_t
Definition: RtypesCore.h:62
bool Bool_t
Definition: RtypesCore.h:59
TH2 * fM
Definition: TH2GL.h:30
#define ClassDef(name, id)
Definition: Rtypes.h:320
Description of TGLPlot3D.
Definition: TGLPlot3D.h:22
Rendering of TH2 and derived classes.
Definition: TH2GL.h:23
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render the object.
Definition: TH2GL.cxx:108
Service class for 2-Dim histogram classes.
Definition: TH2.h:30
virtual ~TH2GL()
Destructor.
Definition: TH2GL.cxx:49
Class to manage histogram axis.
Definition: TAxis.h:30
TH2GL & operator=(const TH2GL &)
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TH2GL.cxx:56
virtual void SetBBox()
Setup bounding-box.
Definition: TH2GL.cxx:100
Mother of all ROOT objects.
Definition: TObject.h:37
TH2GL()
Constructor.
Definition: TH2GL.cxx:41