Warning, file /include/root/TSPHE.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TSPHE
0013 #define ROOT_TSPHE
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "TShape.h"
0025
0026
0027
0028 class TSPHE : public TShape {
0029 private:
0030
0031 mutable Double_t *fSiTab;
0032 mutable Double_t *fCoTab;
0033 mutable Double_t *fCoThetaTab;
0034 Int_t fNdiv;
0035 Int_t fNz;
0036 Float_t fAspectRatio;
0037
0038 protected:
0039 Float_t fRmin;
0040 Float_t fRmax;
0041 Float_t fThemin;
0042 Float_t fThemax;
0043 Float_t fPhimin;
0044 Float_t fPhimax;
0045 Float_t faX;
0046 Float_t faY;
0047 Float_t faZ;
0048
0049 virtual void MakeTableOfCoSin() const;
0050 void SetPoints(Double_t *points) const override;
0051
0052 public:
0053 TSPHE();
0054 TSPHE(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t themin,
0055 Float_t themax, Float_t phimin, Float_t phimax);
0056 TSPHE(const char *name, const char *title, const char *material, Float_t rmax);
0057 ~TSPHE() override;
0058 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0059 const TBuffer3D &GetBuffer3D(Int_t reqSections) const override;
0060 virtual Float_t GetRmin() const {return fRmin;}
0061 virtual Float_t GetRmax() const {return fRmax;}
0062 virtual Float_t GetThemin() const {return fThemin;}
0063 virtual Float_t GetThemax() const {return fThemax;}
0064 virtual Float_t GetPhimin() const {return fPhimin;}
0065 virtual Float_t GetPhimax() const {return fPhimax;}
0066 virtual Float_t GetAspectRatio() const { return fAspectRatio;}
0067 virtual Int_t GetNumberOfDivisions () const {return fNdiv;}
0068 virtual void SetAspectRatio(Float_t factor=1.0){ fAspectRatio = factor; MakeTableOfCoSin();}
0069 virtual void SetEllipse(const Float_t *factors);
0070 virtual void SetNumberOfDivisions (Int_t p);
0071 void Sizeof3D() const override;
0072
0073 ClassDefOverride(TSPHE,3)
0074 };
0075
0076 #endif