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

/*************************************************************************
 * Copyright (C) 1995-2007, 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_TH3GL
#define ROOT_TH3GL

#include "TGLPlot3D.h"
#include <TGLUtil.h>
#include <TGLAxisPainter.h>

class TPolyMarker3D;
class TGLRnrCtx;
class TH3;
class TAxis;

class TH3;

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

protected:
   TH3                *fM;  // Model object dynamic-casted to TH3.

public:
   TH3GL();
   TH3GL(TH3 *h, TPolyMarker3D *pm);
   virtual ~TH3GL();

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

   virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;

   // To support two-level selection
   // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
   // virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);

   ClassDef(TH3GL, 0); // GL renderer class for TH3.
};

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