Logo ROOT   6.12/07
Reference Guide
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 
18 class TVirtualPad;
19 class TPolyMarker3D;
20 class TH3;
21 
22 class TGLPlot3D : public TGLObject
23 {
24 private:
25  TGLPlot3D(const TGLPlot3D&); // Not implemented
26  TGLPlot3D& operator=(const TGLPlot3D&); // Not implemented
27 
28 protected:
31 
32  void SetPainter(TGLPlotPainter* p);
33 
34  static TGLPlot3D* InstantiatePlot(TObject* obj);
35 
36 public:
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
TGLPlot3D()
Constructor.
Definition: TGLPlot3D.cxx:36
void SetPainter(TGLPlotPainter *p)
Set painter object and destroy the old one.
Definition: TGLPlot3D.cxx:52
const char Option_t
Definition: RtypesCore.h:62
static TGLPlot3D * CreatePlot(TH3 *h, TPolyMarker3D *pm)
Create GL plot for specified TH3 and polymarker.
Definition: TGLPlot3D.cxx:87
TH1 * h
Definition: legend2.C:5
bool Bool_t
Definition: RtypesCore.h:59
static TGLPlot3D * InstantiatePlot(TObject *obj)
Instantiate the correct plot-painter for given object.
Definition: TGLPlot3D.cxx:62
#define ClassDef(name, id)
Definition: Rtypes.h:320
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
TGLPlotPainter * fPlotPainter
Definition: TGLPlot3D.h:29
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:49
The 3-D histogram classes derived from the 1-D histogram classes.
Definition: TH3.h:31
Description of TGLPlot3D.
Definition: TGLPlot3D.h:22
Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if ce...
TGLPlotCoordinates fCoord
Definition: TGLPlot3D.h:30
Base class for plot-painters that provide GL rendering of various 2D and 3D histograms, functions and parametric surfaces.
const Bool_t kFALSE
Definition: RtypesCore.h:88
virtual ~TGLPlot3D()
Destructor.
Definition: TGLPlot3D.cxx:44
Mother of all ROOT objects.
Definition: TObject.h:37
TGLPlot3D & operator=(const TGLPlot3D &)
virtual Bool_t KeepDuringSmartRefresh() const
Definition: TGLPlot3D.h:40
A 3D polymarker.
Definition: TPolyMarker3D.h:32