ROOT logo
// @(#)root/eve:$Id: TEveCalo2DGL.h 25245 2008-08-25 21:44:09Z matevz $
// 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_TEveCalo2DGL
#define ROOT_TEveCalo2DGL

#include "TGLObject.h"
#include "TEveCaloData.h"

class TGLViewer;
class TGLScene;

class TEveCalo2D;
class TEveProjection;

class TEveCalo2DGL : public TGLObject
{
private:
   TEveCalo2DGL(const TEveCalo2DGL&);            // Not implemented
   TEveCalo2DGL& operator=(const TEveCalo2DGL&); // Not implemented

protected:
   TEveCalo2D   *fM;  // Model object.

   void      MakeRhoZCell(Float_t thetaMin, Float_t thetaMax, Float_t& offset, Bool_t isBarrel, Bool_t phiPlus, Float_t towerH) const;

   Float_t   MakeRPhiCell(Float_t phiMin, Float_t phiMax, Float_t towerH, Float_t offset) const;

   void      DrawRPhi(TGLRnrCtx & rnrCtx) const;
   void      DrawRhoZ(TGLRnrCtx & rnrCtx) const;

public:
   TEveCalo2DGL();
   virtual ~TEveCalo2DGL() {}

   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(TEveCalo2DGL, 0); // GL renderer class for TEveCalo2D.
};

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