Logo ROOT   6.14/05
Reference Guide
TH3GL.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, 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_TH3GL
13 #define ROOT_TH3GL
14 
15 #include "TGLPlot3D.h"
16 #include <TGLUtil.h>
17 #include <TGLAxisPainter.h>
18 
19 class TPolyMarker3D;
20 class TGLRnrCtx;
21 class TH3;
22 class TAxis;
23 
24 class TH3;
25 
26 class TH3GL : public TGLPlot3D
27 {
28 private:
29  TH3GL(const TH3GL&); // Not implemented
30  TH3GL& operator=(const TH3GL&); // Not implemented
31 
32 protected:
33  TH3 *fM; // Model object dynamic-casted to TH3.
34 
35 public:
36  TH3GL();
37  TH3GL(TH3 *h, TPolyMarker3D *pm);
38  virtual ~TH3GL();
39 
40  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
41  virtual void SetBBox();
42 
43  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
44 
45  // To support two-level selection
46  // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
47  // virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
48 
49  ClassDef(TH3GL, 0); // GL renderer class for TH3.
50 };
51 
52 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render with OpenGL.
Definition: TH3GL.cxx:114
const char Option_t
Definition: RtypesCore.h:62
bool Bool_t
Definition: RtypesCore.h:59
virtual void SetBBox()
Set bounding box.
Definition: TH3GL.cxx:106
TH3 * fM
Definition: TH3GL.h:33
#define ClassDef(name, id)
Definition: Rtypes.h:320
The 3-D histogram classes derived from the 1-D histogram classes.
Definition: TH3.h:31
Description of TGLPlot3D.
Definition: TGLPlot3D.h:22
OpenGL renderer class for TH3.
Definition: TH3GL.h:26
Class to manage histogram axis.
Definition: TAxis.h:30
TH3GL & operator=(const TH3GL &)
virtual ~TH3GL()
Destructor.
Definition: TH3GL.cxx:58
#define h(i)
Definition: RSha256.hxx:106
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TH3GL.cxx:65
Mother of all ROOT objects.
Definition: TObject.h:37
A 3D polymarker.
Definition: TPolyMarker3D.h:32
TH3GL()
Constructor.
Definition: TH3GL.cxx:40