12 #ifndef ROOT_TGeoShape 13 #define ROOT_TGeoShape 18 class TGeoBoolCombinator;
126 virtual const char *
GetName()
const;
void CheckShape(Int_t testNo, Int_t nsamples=10000, Option_t *option="")
Test for shape navigation methods.
virtual void Sizeof3D() const =0
virtual Bool_t IsVecGeom() const
virtual ~TGeoShape()
Destructor.
virtual void SetDimensions(Double_t *param)=0
#define snext(osub1, osub2)
static Double_t ComputeEpsMch()
Compute machine round-off double precision error as the smallest number that if added to 1...
virtual Bool_t IsReflected() const
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute mouse actions on this shape.
void SetOnBoundary(Bool_t)
static Double_t EpsMch()
static function returning the machine round-off error
virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)=0
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)=0
Computes distance from point (px,py) to the object.
Geometrical transformation package.
virtual Int_t GetByteCount() const =0
virtual void CreateThreadData(Int_t)
virtual void ComputeNormal_v(const Double_t *, const Double_t *, Double_t *, Int_t)
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const =0
Matrix class used for computing global transformations Should NOT be used for node definition...
virtual TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const =0
static Double_t SafetyPhi(const Double_t *point, Bool_t in, Double_t phi1, Double_t phi2)
Static method to compute safety w.r.t a phi corner defined by cosines/sines of the angles phi1...
virtual void GetBoundingCylinder(Double_t *param) const =0
static Bool_t IsSameWithinTolerance(Double_t a, Double_t b)
Check if two numbers differ with less than a tolerance.
virtual void DistFromOutside_v(const Double_t *, const Double_t *, Double_t *, Int_t, Double_t *) const
virtual Bool_t IsAssembly() const
static Double_t Tolerance()
virtual void FillBuffer3D(TBuffer3D &buffer, Int_t reqSections, Bool_t localFrame) const
Fill the supplied buffer, with sections in desired frame See TBuffer3D.h for explanation of sections...
virtual Bool_t Contains(const Double_t *point) const =0
static const double x2[5]
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
static Bool_t IsCrossingSemiplane(const Double_t *point, const Double_t *dir, Double_t cphi, Double_t sphi, Double_t &snext, Double_t &rxy)
Compute distance from POINT to semiplane defined by PHI angle along DIR.
static const double x4[22]
static TGeoMatrix * fgTransform
virtual void SetSegsAndPols(TBuffer3D &buff) const =0
static void SetTransform(TGeoMatrix *matrix)
Set current transformation matrix that applies to shape.
virtual Bool_t IsValidBox() const =0
virtual void SetPoints(Double_t *points) const =0
const char * GetPointerName() const
Provide a pointer name containing uid.
virtual TBuffer3D * MakeBuffer3D() const
static Double_t SafetySeg(Double_t r, Double_t z, Double_t r1, Double_t z1, Double_t r2, Double_t z2, Bool_t outer)
Compute distance from point of coordinates (r,z) to segment (r1,z1):(r2,z2)
static Bool_t IsSegCrossing(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t x3, Double_t y3, Double_t x4, Double_t y4)
Check if segments (A,B) and (C,D) are crossing, where: A(x1,y1), B(x2,y2), C(x3,y3), D(x4,y4)
virtual const char * GetName() const
Get the shape name.
TGeoShape()
Default constructor.
virtual Bool_t CouldBeCrossed(const Double_t *point, const Double_t *dir) const =0
Int_t ShapeDistancetoPrimitive(Int_t numpoints, Int_t px, Int_t py) const
Returns distance to shape primitive mesh.
virtual void AfterStreamer()
Base abstract class for all shapes.
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const =0
unsigned int r1[N_CITIES]
virtual Bool_t IsComposite() const
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Stub implementation to avoid forcing implementation at this stage.
void ResetShapeBit(UInt_t f)
virtual Int_t GetNmeshVertices() const
static Double_t DistToPhiMin(const Double_t *point, const Double_t *dir, Double_t s1, Double_t c1, Double_t s2, Double_t c2, Double_t sm, Double_t cm, Bool_t in=kTRUE)
compute distance from point (inside phi) to both phi planes. Return minimum.
void TransformPoints(Double_t *points, UInt_t NbPoints) const
Tranform a set of points (LocalToMaster)
virtual void Contains_v(const Double_t *, Bool_t *, Int_t) const
static Bool_t IsInPhiRange(const Double_t *point, Double_t phi1, Double_t phi2)
Static method to check if a point is in the phi range (phi1, phi2) [degrees].
Generic 3D primitive description class.
virtual Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const =0
virtual const char * GetAxisName(Int_t iaxis) const =0
virtual void ClearThreadData() const
virtual Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=0) const =0
static Bool_t IsCloseToPhi(Double_t epsil, const Double_t *point, Double_t c1, Double_t s1, Double_t c2, Double_t s2)
True if point is closer than epsil to one of the phi planes defined by c1,s1 or c2,s2.
static const double x1[5]
virtual void GetMeshNumbers(Int_t &, Int_t &, Int_t &) const
Bool_t TestShapeBit(UInt_t f) const
virtual void DistFromInside_v(const Double_t *, const Double_t *, Double_t *, Int_t, Double_t *) const
Int_t TestShapeBits(UInt_t f) const
virtual TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)=0
virtual void ComputeBBox()=0
void SetRuntime(Bool_t flag=kTRUE)
virtual Double_t Capacity() const =0
static TGeoMatrix * GetTransform()
Returns current transformation matrix that applies to shape.
void SetShapeBit(UInt_t f, Bool_t set)
Equivalent of TObject::SetBit.
you should not use this method at all Int_t Int_t z
virtual void InspectShape() const =0
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const =0
static void NormalPhi(const Double_t *point, const Double_t *dir, Double_t *norm, Double_t c1, Double_t s1, Double_t c2, Double_t s2)
Static method to compute normal to phi planes.
void SetShapeBit(UInt_t f)
virtual void Paint(Option_t *option="")
Paint this shape.
virtual Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const =0
void InvertShapeBit(UInt_t f)
virtual void Draw(Option_t *option="")
Draw this shape.
double norm(double *x, double *p)
virtual Bool_t IsCylType() const =0
Int_t GetBasicColor() const
Get the basic color (0-7).
virtual void Safety_v(const Double_t *, const Bool_t *, Double_t *, Int_t) const
unsigned int r2[N_CITIES]
Bool_t IsRunTimeShape() const
static const double x3[11]