Logo ROOT  
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
19class TPolyMarker3D;
20class TGLRnrCtx;
21class TH3;
22class TAxis;
23
24class TH3;
25
26class TH3GL : public TGLPlot3D
27{
28private:
29 TH3GL(const TH3GL&); // Not implemented
30 TH3GL& operator=(const TH3GL&); // Not implemented
31
32protected:
33 TH3 *fM; // Model object dynamic-casted to TH3.
34
35public:
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
#define h(i)
Definition: RSha256.hxx:106
bool Bool_t
Definition: RtypesCore.h:63
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
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
OpenGL renderer class for TH3.
Definition: TH3GL.h:27
TH3 * fM
Definition: TH3GL.h:33
TH3GL(const TH3GL &)
TH3GL()
Constructor.
Definition: TH3GL.cxx:38
TH3GL & operator=(const TH3GL &)
virtual void SetBBox()
Set bounding box.
Definition: TH3GL.cxx:104
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TH3GL.cxx:63
virtual ~TH3GL()
Destructor.
Definition: TH3GL.cxx:56
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render with OpenGL.
Definition: TH3GL.cxx:112
The 3-D histogram classes derived from the 1-D histogram classes.
Definition: TH3.h:31
Mother of all ROOT objects.
Definition: TObject.h:37
A 3D polymarker.
Definition: TPolyMarker3D.h:33