Warning, file /include/root/TGeoShapeAssembly.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_TGeoShapeAssembly
0013 #define ROOT_TGeoShapeAssembly
0014
0015 #include "TGeoBBox.h"
0016
0017 class TGeoVolumeAssembly;
0018
0019 class TGeoShapeAssembly : public TGeoBBox {
0020 protected:
0021
0022 TGeoVolumeAssembly *fVolume;
0023 Bool_t fBBoxOK;
0024
0025
0026 public:
0027
0028 TGeoShapeAssembly();
0029 TGeoShapeAssembly(TGeoVolumeAssembly *vol);
0030
0031 ~TGeoShapeAssembly() override;
0032
0033 void ComputeBBox() override;
0034 void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override;
0035 void ComputeNormal_v(const Double_t *points, const Double_t *dirs, Double_t *norms, Int_t vecsize) override;
0036 Bool_t Contains(const Double_t *point) const override;
0037 void Contains_v(const Double_t *points, Bool_t *inside, Int_t vecsize) const override;
0038 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
0039 Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact = 1, Double_t step = TGeoShape::Big(),
0040 Double_t *safe = nullptr) const override;
0041 void DistFromInside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0042 Double_t *step) const override;
0043 Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact = 1,
0044 Double_t step = TGeoShape::Big(), Double_t *safe = nullptr) const override;
0045 void DistFromOutside_v(const Double_t *points, const Double_t *dirs, Double_t *dists, Int_t vecsize,
0046 Double_t *step) const override;
0047 TGeoVolume *
0048 Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) override;
0049 TGeoShape *GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const override;
0050 void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const override;
0051 Int_t GetNmeshVertices() const override { return 0; }
0052 void InspectShape() const override;
0053 Bool_t IsAssembly() const override { return kTRUE; }
0054 Bool_t IsCylType() const override { return kFALSE; }
0055 void NeedsBBoxRecompute() { fBBoxOK = kFALSE; }
0056 void RecomputeBoxLast();
0057 Double_t Safety(const Double_t *point, Bool_t in = kTRUE) const override;
0058 void Safety_v(const Double_t *points, const Bool_t *inside, Double_t *safe, Int_t vecsize) const override;
0059 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0060 void SetPoints(Double_t *points) const override;
0061 void SetPoints(Float_t *points) const override;
0062 void SetSegsAndPols(TBuffer3D &buff) const override;
0063
0064 ClassDefOverride(TGeoShapeAssembly, 2)
0065 };
0066
0067 #endif