Logo ROOT   6.08/07
Reference Guide
TF2GL.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel, Jun 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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_TF2GL
13 #define ROOT_TF2GL
14 
15 #include <TGLPlot3D.h>
16 
17 class TGLRnrCtx;
18 class TF2;
19 class TH2;
20 
21 class TF2GL : public TGLPlot3D
22 {
23 private:
24  TF2GL(const TF2GL&); // Not implemented
25  TF2GL& operator=(const TF2GL&); // Not implemented
26 
27 protected:
28  TF2 *fM; // fModel dynamic-casted to TH2
29  TH2 *fH; // Visualization histogram.
30 
31 public:
32  TF2GL();
33  virtual ~TF2GL();
34 
35  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
36  virtual void SetBBox();
37  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
38 
39  virtual Bool_t KeepDuringSmartRefresh() const { return kFALSE; }
40 
41  // To support two-level selection
42  // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
43  // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);
44 
45  ClassDef(TF2GL, 0); // GL renderer for TF2 and TF3.
46 };
47 
48 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
TH2 * fH
Definition: TF2GL.h:29
const char Option_t
Definition: RtypesCore.h:62
virtual ~TF2GL()
Destructor.
Definition: TF2GL.cxx:45
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TF2GL.cxx:53
#define ClassDef(name, id)
Definition: Rtypes.h:254
TF2 * fM
Definition: TF2GL.h:28
TF2GL & operator=(const TF2GL &)
GL renderer for TF2.
Definition: TF2GL.h:21
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render the object.
Definition: TF2GL.cxx:94
Description of TGLPlot3D.
Definition: TGLPlot3D.h:22
virtual void SetBBox()
Setup bounding-box.
Definition: TF2GL.cxx:86
Service class for 2-Dim histogram classes.
Definition: TH2.h:36
A 2-Dim function with parameters.
Definition: TF2.h:33
TF2GL()
Constructor.
Definition: TF2GL.cxx:38
Mother of all ROOT objects.
Definition: TObject.h:37
virtual Bool_t KeepDuringSmartRefresh() const
Definition: TF2GL.h:39