11#ifndef ROOT_TGeoVGShape
12#define ROOT_TGeoVGShape
23 inline namespace cxx {
24 class Transformation3D;
26 class VUnplacedVolume;
42 static vecgeom::cxx::Transformation3D *
44 static vecgeom::cxx::VUnplacedVolume *
#define ClassDef(name, id)
Generic 3D primitive description class.
Geometrical transformation package.
Base abstract class for all shapes.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)=0
Computes distance from point (px,py) to the object.
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Stub implementation to avoid forcing implementation at this stage.
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const =0
virtual Int_t GetNmeshVertices() const
virtual void GetMeshNumbers(Int_t &, Int_t &, Int_t &) const
virtual void SetSegsAndPols(TBuffer3D &buff) const =0
virtual void SetDimensions(Double_t *param)=0
virtual void Sizeof3D() const =0
virtual const char * GetAxisName(Int_t iaxis) const =0
virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const =0
virtual Bool_t IsComposite() const
virtual void GetBoundingCylinder(Double_t *param) const =0
virtual Bool_t IsValidBox() const =0
virtual Bool_t IsReflected() const
virtual Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const =0
virtual const char * GetName() const
Get the shape name.
virtual Int_t GetByteCount() const =0
virtual void Paint(Option_t *option="")
Paint this shape.
virtual Bool_t CouldBeCrossed(const Double_t *point, const Double_t *dir) const =0
virtual TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const =0
virtual void SetPoints(Double_t *points) const =0
virtual Bool_t IsAssembly() const
virtual TBuffer3D * MakeBuffer3D() const
virtual void Draw(Option_t *option="")
Draw this shape.
Bridge class for using a VecGeom solid as TGeoShape.
virtual void GetBoundingCylinder(Double_t *param) const
Fill vector param[4] with the bounding cylinder parameters.
virtual const char * GetAxisName(Int_t iaxis) const
Returns name of axis IAXIS.
static vecgeom::cxx::VPlacedVolume * CreateVecGeomSolid(TGeoShape *shape)
Conversion method to create VecGeom solid corresponding to TGeoShape.
static TGeoVGShape * Create(TGeoShape *shape)
Factory creating TGeoVGShape from a Root shape.
virtual TBuffer3D * MakeBuffer3D() const
Creates a TBuffer3D describing this shape.
virtual void ComputeBBox()
Compute bounding box.
virtual Int_t GetNmeshVertices() const
virtual void Paint(Option_t *option="")
Paint this shape.
virtual void Draw(Option_t *option="")
Draw this shape.
virtual void SetPoints(Float_t *points) const
Fill box points.
virtual Bool_t Contains(const Double_t *point) const
Test if point is inside this shape.
virtual TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const
In case shape has some negative parameters, these has to be computed in order to fit the mother.
virtual Bool_t IsVecGeom() const
virtual Bool_t IsAssembly() const
virtual TGeoVolume * Divide(TGeoVolume *, const char *, Int_t, Int_t, Double_t, Double_t)
Divide this box shape belonging to volume "voldiv" into ndiv equal volumes called divname,...
virtual const char * GetName() const
Get the shape name.
virtual void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm)
Normal computation.
virtual ~TGeoVGShape()
Destructor.
virtual Bool_t IsComposite() const
virtual Double_t Capacity() const
Returns analytic capacity of the solid.
vecgeom::cxx::VPlacedVolume * GetVGShape() const
vecgeom::cxx::VPlacedVolume * fVGShape
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
Compute distance from outside point to surface of the box.
virtual void Sizeof3D() const
virtual Bool_t IsReflected() const
virtual const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const
Fills a static 3D buffer and returns a reference.
virtual Bool_t CouldBeCrossed(const Double_t *point, const Double_t *dir) const
Decides fast if the bounding box could be crossed by a vector.
virtual void InspectShape() const
Print info about the VecGeom solid.
virtual Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const
Fills array with n random points located on the line segments of the shape mesh.
TGeoShape * GetShape() const
virtual Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const
Computes the closest distance from given point to this shape.
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const
Get range of shape for a given axis.
virtual Bool_t IsCylType() const
virtual void SetDimensions(Double_t *param)
Set dimensions based on the array of parameters param[0] - half-length in x param[1] - half-length in...
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
Compute distance from inside point to surface of the box.
virtual Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const
Fills real parameters of a positioned box inside this one. Returns 0 if successful.
virtual void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const
Returns numbers of vertices, segments and polygons composing the shape mesh.
virtual Int_t GetByteCount() const
virtual Bool_t IsValidBox() const
virtual void SetSegsAndPols(TBuffer3D &buff) const
Fills TBuffer3D structure for segments and polygons.
static vecgeom::cxx::Transformation3D * Convert(TGeoMatrix const *const geomatrix)
Convert a TGeoMatrix to a TRansformation3D.
virtual void SetPoints(Double_t *points) const
Fill box points.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute closest distance from point px,py to each corner.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.