Logo ROOT  
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
19class TGLRnrCtx;
20class TH2;
21class TAxis;
22
23class TH2GL : public TGLPlot3D
24{
25private:
26 TH2GL(const TH2GL&); // Not implemented
27 TH2GL& operator=(const TH2GL&); // Not implemented
28
29protected:
30 TH2 *fM; // Model object dynamic-casted to TH2.
31
32public:
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
const char Option_t
Definition: RtypesCore.h:64
#define ClassDef(name, id)
Definition: Rtypes.h:322
Class to manage histogram axis.
Definition: TAxis.h:30
Description of TGLPlot3D.
Definition: TGLPlot3D.h:23
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:41
Rendering of TH2 and derived classes.
Definition: TH2GL.h:24
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render the object.
Definition: TH2GL.cxx:108
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TH2GL.cxx:56
TH2GL & operator=(const TH2GL &)
virtual ~TH2GL()
Destructor.
Definition: TH2GL.cxx:49
TH2GL(const TH2GL &)
TH2GL()
Constructor.
Definition: TH2GL.cxx:41
virtual void SetBBox()
Setup bounding-box.
Definition: TH2GL.cxx:100
TH2 * fM
Definition: TH2GL.h:30
Service class for 2-Dim histogram classes.
Definition: TH2.h:30
Mother of all ROOT objects.
Definition: TObject.h:37