Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
19class TPolyMarker3D;
20class TGLRnrCtx;
21class TH3;
22class TAxis;
23
24class TH3;
25
26class TH3GL : public TGLPlot3D
27{
28private:
29 TH3GL(const TH3GL&) = delete;
30 TH3GL& operator=(const TH3GL&) = delete;
31
32protected:
33 TH3 *fM; // Model object dynamic-casted to TH3.
34
35public:
36 TH3GL();
37 TH3GL(TH3 *h, TPolyMarker3D *pm);
38 ~TH3GL() override;
39
40 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
41 void SetBBox() override;
42
43 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
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 ClassDefOverride(TH3GL, 0); // GL renderer class for TH3.
50};
51
52#endif
#define h(i)
Definition RSha256.hxx:106
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Class to manage histogram axis.
Definition TAxis.h:31
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
OpenGL renderer class for TH3.
Definition TH3GL.h:27
~TH3GL() override
Destructor.
Definition TH3GL.cxx:56
TH3GL & operator=(const TH3GL &)=delete
TH3GL(const TH3GL &)=delete
TH3 * fM
Definition TH3GL.h:33
TH3GL()
Constructor.
Definition TH3GL.cxx:38
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
Definition TH3GL.cxx:63
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Render with OpenGL.
Definition TH3GL.cxx:112
void SetBBox() override
Set bounding box.
Definition TH3GL.cxx:104
The 3-D histogram classes derived from the 1-D histogram classes.
Definition TH3.h:31
Mother of all ROOT objects.
Definition TObject.h:41
A 3D polymarker.