File indexing completed on 2025-01-18 10:11:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGeoScaledShape
0013 #define ROOT_TGeoScaledShape
0014
0015 #include "TGeoBBox.h"
0016
0017 class TGeoScale;
0018 class TGeoShape;
0019
0020 class TGeoScaledShape : public TGeoBBox {
0021 protected:
0022
0023 TGeoShape *fShape;
0024 TGeoScale *fScale;
0025
0026 public:
0027
0028 TGeoScaledShape();
0029 TGeoScaledShape(const char *name, TGeoShape *shape, TGeoScale *scale);
0030 TGeoScaledShape(TGeoShape *shape, TGeoScale *scale);
0031
0032 ~TGeoScaledShape() override;
0033
0034 Double_t Capacity() const override;
0035 void ComputeBBox() override;
0036 void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override;
0037 void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize) override;
0038 Bool_t Contains(const Double_t *point) const override;
0039 void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const override;
0040 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0041 Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact = 1, Double_t step = TGeoShape::Big(),
0042 Double_t *safe = nullptr) const override;
0043 void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0044 Double_t *step) const override;
0045 Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact = 1,
0046 Double_t step = TGeoShape::Big(), Double_t *safe = nullptr) const override;
0047 void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0048 Double_t *step) const override;
0049 TGeoVolume *
0050 Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) override;
0051 TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const override;
0052 const TBuffer3D &GetBuffer3D(Int_t reqSections, Bool_t localFrame) const override;
0053 void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const override;
0054 Int_t GetNmeshVertices() const override { return fShape->GetNmeshVertices(); }
0055 TGeoShape *GetShape() const { return fShape; }
0056 TGeoScale *GetScale() const { return fScale; }
0057 void InspectShape() const override;
0058 Bool_t IsAssembly() const override;
0059 Bool_t IsCylType() const override { return fShape->IsCylType(); }
0060 Bool_t IsReflected() const override;
0061 TBuffer3D *MakeBuffer3D() const override;
0062 static TGeoShape *MakeScaledShape(const char *name, TGeoShape *shape, TGeoScale *scale);
0063 Double_t Safety(const Double_t *point, Bool_t in = kTRUE) const override;
0064 void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const override;
0065 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0066 void SetScale(TGeoScale *scale) { fScale = scale; }
0067 void SetPoints(Double_t *points) const override;
0068 void SetPoints(Float_t *points) const override;
0069 void SetSegsAndPols(TBuffer3D &buffer) const override;
0070
0071 ClassDefOverride(TGeoScaledShape, 1)
0072 };
0073
0074 #endif