/usr/include/root/TEveBoxGL.h is in libroot-graf3d-eve-dev 5.34.19+dfsg-1.2.
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | // @(#)root/eve:$Id$
// Author: Matevz Tadel, 2010
/*************************************************************************
* 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_TEveBoxGL
#define ROOT_TEveBoxGL
#include "TGLObject.h"
class TGLViewer;
class TGLScene;
class TEveBox;
class TEveBoxProjected;
//------------------------------------------------------------------------------
// TEveBoxGL
//------------------------------------------------------------------------------
class TEveBoxGL : public TGLObject
{
private:
TEveBoxGL(const TEveBoxGL&); // Not implemented
TEveBoxGL& operator=(const TEveBoxGL&); // Not implemented
protected:
TEveBox *fM; // Model object.
void RenderOutline (const Float_t p[8][3]) const;
void RenderBoxStdNorm (const Float_t p[8][3]) const;
void RenderBoxAutoNorm(const Float_t p[8][3]) const;
public:
TEveBoxGL();
virtual ~TEveBoxGL() {}
virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
virtual void SetBBox();
virtual void Draw(TGLRnrCtx& rnrCtx) const;
virtual void DirectDraw(TGLRnrCtx& rnrCtx) const;
virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
// To support two-level selection
// virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
// virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
ClassDef(TEveBoxGL, 0); // GL renderer class for TEveBox.
};
//------------------------------------------------------------------------------
// TEveBoxProjectedGL
//------------------------------------------------------------------------------
class TEveBoxProjectedGL : public TGLObject
{
private:
TEveBoxProjectedGL(const TEveBoxProjectedGL&); // Not implemented
TEveBoxProjectedGL& operator=(const TEveBoxProjectedGL&); // Not implemented
protected:
TEveBoxProjected *fM; // Model object.
void RenderPoints(Int_t mode) const;
public:
TEveBoxProjectedGL();
virtual ~TEveBoxProjectedGL() {}
virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
virtual void SetBBox();
virtual void Draw(TGLRnrCtx& rnrCtx) const;
virtual void DirectDraw(TGLRnrCtx& rnrCtx) const;
virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
// To support two-level selection
// virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
// virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
ClassDef(TEveBoxProjectedGL, 0); // GL renderer class for TEveBoxProjected.
};
#endif
|