Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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&) = delete;
27 TH2GL& operator=(const TH2GL&) = delete;
28
29protected:
30 TH2 *fM; // Model object dynamic-casted to TH2.
31
32public:
33 TH2GL();
34 ~TH2GL() override;
35
36 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
37 void SetBBox() override;
38 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
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 ClassDefOverride(TH2GL, 0); // GL renderer for TH2.
45}; // endclass TH2GL
46
47#endif
const char Option_t
Definition RtypesCore.h:66
Class to manage histogram axis.
Definition TAxis.h:32
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
~TH2GL() override
Destructor.
Definition TH2GL.cxx:47
TH2GL & operator=(const TH2GL &)=delete
ClassDefOverride(TH2GL, 0)
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
Definition TH2GL.cxx:54
TH2GL(const TH2GL &)=delete
TH2GL()
Constructor.
Definition TH2GL.cxx:39
void SetBBox() override
Setup bounding-box.
Definition TH2GL.cxx:98
TH2 * fM
Definition TH2GL.h:30
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Render the object.
Definition TH2GL.cxx:106
Service class for 2-D histogram classes.
Definition TH2.h:30
Mother of all ROOT objects.
Definition TObject.h:41