Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLPlot3D.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_TGLPlot3D
13#define ROOT_TGLPlot3D
14
15#include "TGLObject.h"
16#include "TGLPlotPainter.h"
17
18class TVirtualPad;
19class TPolyMarker3D;
20class TH3;
21
22class TGLPlot3D : public TGLObject
23{
24private:
25 TGLPlot3D(const TGLPlot3D&); // Not implemented
26 TGLPlot3D& operator=(const TGLPlot3D&); // Not implemented
27
28protected:
31
33
34 static TGLPlot3D* InstantiatePlot(TObject* obj);
35
36public:
37 TGLPlot3D();
38 virtual ~TGLPlot3D();
39
40 virtual Bool_t KeepDuringSmartRefresh() const { return kFALSE; }
41
42 static TGLPlot3D* CreatePlot(TH3 *h, TPolyMarker3D *pm);
43 static TGLPlot3D* CreatePlot(TObject* obj, const Option_t* opt, TVirtualPad* pad);
44 static TGLPlot3D* CreatePlot(TObject* obj, const Option_t* opt, Bool_t logx, Bool_t logy, Bool_t logz);
45
46 ClassDef(TGLPlot3D, 0); // Short description.
47};
48
49#endif
#define h(i)
Definition RSha256.hxx:106
const Bool_t kFALSE
Definition RtypesCore.h:101
bool Bool_t
Definition RtypesCore.h:63
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
Base-class for direct OpenGL renderers.
Definition TGLObject.h:22
Description of TGLPlot3D.
Definition TGLPlot3D.h:23
TGLPlot3D()
Constructor.
Definition TGLPlot3D.cxx:36
TGLPlot3D(const TGLPlot3D &)
static TGLPlot3D * CreatePlot(TH3 *h, TPolyMarker3D *pm)
Create GL plot for specified TH3 and polymarker.
Definition TGLPlot3D.cxx:87
TGLPlotCoordinates fCoord
Definition TGLPlot3D.h:30
TGLPlotPainter * fPlotPainter
Definition TGLPlot3D.h:29
static TGLPlot3D * InstantiatePlot(TObject *obj)
Instantiate the correct plot-painter for given object.
Definition TGLPlot3D.cxx:62
virtual ~TGLPlot3D()
Destructor.
Definition TGLPlot3D.cxx:44
virtual Bool_t KeepDuringSmartRefresh() const
Definition TGLPlot3D.h:40
void SetPainter(TGLPlotPainter *p)
Set painter object and destroy the old one.
Definition TGLPlot3D.cxx:52
TGLPlot3D & operator=(const TGLPlot3D &)
Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if ce...
Base class for plot-painters that provide GL rendering of various 2D and 3D histograms,...
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.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition TVirtualPad.h:51