// @(#)root/gl:$Id$
// Author:  Matevz Tadel, Jun 2007

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TF2GL
#define ROOT_TF2GL

#include <TGLPlot3D.h>

class TGLRnrCtx;
class TF2;
class TH2;

class TF2GL : public TGLPlot3D
{
private:
   TF2GL(const TF2GL&);            // Not implemented
   TF2GL& operator=(const TF2GL&); // Not implemented

protected:
   TF2                *fM; // fModel dynamic-casted to TH2
   TH2                *fH; // Visualization histogram.

public:
   TF2GL();
   virtual ~TF2GL();

   virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
   virtual void   SetBBox();
   virtual void   DirectDraw(TGLRnrCtx & rnrCtx) const;

   virtual Bool_t KeepDuringSmartRefresh() const { return kFALSE; }

   // To support two-level selection
   // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
   // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);

   ClassDef(TF2GL, 0); // GL renderer for TF2 and TF3.
};

#endif
 TF2GL.h:1
 TF2GL.h:2
 TF2GL.h:3
 TF2GL.h:4
 TF2GL.h:5
 TF2GL.h:6
 TF2GL.h:7
 TF2GL.h:8
 TF2GL.h:9
 TF2GL.h:10
 TF2GL.h:11
 TF2GL.h:12
 TF2GL.h:13
 TF2GL.h:14
 TF2GL.h:15
 TF2GL.h:16
 TF2GL.h:17
 TF2GL.h:18
 TF2GL.h:19
 TF2GL.h:20
 TF2GL.h:21
 TF2GL.h:22
 TF2GL.h:23
 TF2GL.h:24
 TF2GL.h:25
 TF2GL.h:26
 TF2GL.h:27
 TF2GL.h:28
 TF2GL.h:29
 TF2GL.h:30
 TF2GL.h:31
 TF2GL.h:32
 TF2GL.h:33
 TF2GL.h:34
 TF2GL.h:35
 TF2GL.h:36
 TF2GL.h:37
 TF2GL.h:38
 TF2GL.h:39
 TF2GL.h:40
 TF2GL.h:41
 TF2GL.h:42
 TF2GL.h:43
 TF2GL.h:44
 TF2GL.h:45
 TF2GL.h:46
 TF2GL.h:47
 TF2GL.h:48