/usr/include/root/TShape.h is in libroot-graf3d-g3d-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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | // @(#)root/g3d:$Id$
// Author: Nenad Buncic 17/09/95
/*************************************************************************
* Copyright (C) 1995-2000, 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_TShape
#define ROOT_TShape
//////////////////////////////////////////////////////////////////////////
// //
// TShape //
// //
// Basic shape class //
// //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TMaterial
#include "TMaterial.h"
#endif
#ifndef ROOT_TAttLine
#include "TAttLine.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
#ifndef ROOT_TAtt3D
#include "TAtt3D.h"
#endif
#ifndef ROOT_X3DBuffer
#include "X3DBuffer.h"
#endif
class TBuffer3D;
class TNode;
class TShape : public TNamed, public TAttLine, public TAttFill, public TAtt3D {
protected:
Int_t fNumber; //Shape number
Int_t fVisibility; //Visibility flag
TMaterial *fMaterial; //Pointer to material
virtual void FillBuffer3D(TBuffer3D & buffer, Int_t reqSections) const;
Int_t GetBasicColor() const;
Int_t ShapeDistancetoPrimitive(Int_t numPoints, Int_t px, Int_t py);
public:
TShape();
TShape(const char *name, const char *title, const char *material);
TShape(const TShape&);
TShape& operator=(const TShape&);
virtual ~TShape();
virtual const TBuffer3D &GetBuffer3D(Int_t reqSections) const;
TMaterial *GetMaterial() const {return fMaterial;}
virtual Int_t GetNumber() const {return fNumber;}
Int_t GetVisibility() const {return fVisibility;}
virtual void Paint(Option_t *option="");
virtual void SetName(const char *name);
virtual void SetPoints(Double_t *points) const ;
virtual void SetVisibility(Int_t vis) {fVisibility = vis;} // *MENU*
void TransformPoints(Double_t *points, UInt_t NbPnts) const;
ClassDef(TShape,2) //Basic shape
};
R__EXTERN TNode *gNode;
inline void TShape::SetName(const char *) { }
#endif
|