/usr/include/root/TSPHE.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 | // @(#)root/g3d:$Id$
// Author: Rene Brun 13/06/97
/*************************************************************************
* 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_TSPHE
#define ROOT_TSPHE
////////////////////////////////////////////////////////////////////////////
// //
// TSPHE //
// //
// SPHE is Sphere. Not implemented yet. //
// //
////////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TBRIK
#include "TShape.h"
#endif
// const Int_t kDiv = 30; //default number of z segments for semi-sphere
class TSPHE : public TShape {
private:
// Internal cache
mutable Double_t *fSiTab; //! Table of sin(fPhimin) .... sin(Phi)
mutable Double_t *fCoTab; //! Table of cos(fPhimin) .... cos(Phi)
mutable Double_t *fCoThetaTab; //! Table of sin(gThemin) .... cos(Theta)
Int_t fNdiv; // number of divisions
Int_t fNz; //! number of sections
Float_t fAspectRatio; // Relation between asumth and grid size (by default 1.0)
protected:
Float_t fRmin; // minimum radius
Float_t fRmax; // maximum radius
Float_t fThemin; // minimum theta
Float_t fThemax; // maximum theta
Float_t fPhimin; // minimum phi
Float_t fPhimax; // maximum phi
Float_t faX; // Coeff along Ox
Float_t faY; // Coeff along Oy
Float_t faZ; // Coeff along Oz
virtual void MakeTableOfCoSin() const; // Create the table of the fSiTab; fCoTab
virtual void SetPoints(Double_t *points) const;
public:
TSPHE();
TSPHE(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t themin,
Float_t themax, Float_t phimin, Float_t phimax);
TSPHE(const char *name, const char *title, const char *material, Float_t rmax);
virtual ~TSPHE();
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual const TBuffer3D &GetBuffer3D(Int_t reqSections) const;
virtual Float_t GetRmin() const {return fRmin;}
virtual Float_t GetRmax() const {return fRmax;}
virtual Float_t GetThemin() const {return fThemin;}
virtual Float_t GetThemax() const {return fThemax;}
virtual Float_t GetPhimin() const {return fPhimin;}
virtual Float_t GetPhimax() const {return fPhimax;}
virtual Float_t GetAspectRatio() const { return fAspectRatio;}
virtual Int_t GetNumberOfDivisions () const {return fNdiv;}
virtual void SetAspectRatio(Float_t factor=1.0){ fAspectRatio = factor; MakeTableOfCoSin();}
virtual void SetEllipse(const Float_t *factors);
virtual void SetNumberOfDivisions (Int_t p);
virtual void Sizeof3D() const;
ClassDef(TSPHE,3) //SPHE shape
};
#endif
|