/usr/include/root/TEveCalo3DGL.h is in libroot-graf3d-eve-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | // @(#)root/eve:$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_TEveCalo3DGL
#define ROOT_TEveCalo3DGL
#include "TGLObject.h"
#include "TEveCaloData.h"
class TEveCalo3D;
class TEveCalo3DGL : public TGLObject
{
private:
TEveCalo3DGL(const TEveCalo3DGL&); // Not implemented
TEveCalo3DGL& operator=(const TEveCalo3DGL&); // Not implemented
void CrossProduct(const Float_t a[3], const Float_t b[3], const Float_t c[3], Float_t out[3]) const;
void RenderBox(const Float_t pnts[8]) const;
void RenderGridEndCap() const;
void RenderGridBarrel() const;
void RenderGrid(TGLRnrCtx & rnrCtx) const;
void RenderBarrelCell(const TEveCaloData::CellGeom_t &cell, Float_t towerH, Float_t& offset) const;
void RenderEndCapCell(const TEveCaloData::CellGeom_t &cell, Float_t towerH, Float_t& offset) const;
void DrawSelectedCells(TEveCaloData::vCellId_t cells) const;
protected:
TEveCalo3D *fM; // Model object.
mutable std::vector<Float_t> fOffset;
public:
TEveCalo3DGL();
virtual ~TEveCalo3DGL() {}
virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
virtual void SetBBox();
virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
virtual void DrawHighlight(TGLRnrCtx & rnrCtx, const TGLPhysicalShape* ps, Int_t lvl=-1) const;
virtual Bool_t ShouldDLCache(const TGLRnrCtx& rnrCtx) const;
virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
virtual Bool_t AlwaysSecondarySelect() const { return kTRUE; }
virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
ClassDef(TEveCalo3DGL, 0); // GL renderer class for TEveCalo.
};
#endif
|