Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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:
29  TGLPlotPainter *fPlotPainter;
30  TGLPlotCoordinates fCoord;
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