11#ifndef ROOT_TGeoVGShape
12#define ROOT_TGeoVGShape
24class Transformation3D;
41 static vecgeom::cxx::Transformation3D *
Convert(
TGeoMatrix const *
const geomatrix);
54 Double_t *safe =
nullptr)
const override;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Generic 3D primitive description class.
Geometrical transformation package.
Base abstract class for all shapes.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override=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
void Draw(Option_t *option="") override
Draw this shape.
virtual Bool_t IsCylType() const =0
void Paint(Option_t *option="") override
Paint this shape.
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 Int_t GetByteCount() const =0
const char * GetName() const override
Get the shape name.
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
Bridge class for using a VecGeom solid as TGeoShape.
Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const override
~TGeoVGShape() override
Destructor.
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.
Int_t GetByteCount() const override
TGeoVolume * Divide(TGeoVolume *, const char *, Int_t, Int_t, Double_t, Double_t) override
void SetPoints(Double_t *points) const override
Bool_t IsReflected() const override
TGeoShape * fShape
VecGeom placed solid.
TGeoShape * GetMakeRuntimeShape(TGeoShape *mother, TGeoMatrix *mat) const override
Bool_t CouldBeCrossed(const Double_t *point, const Double_t *dir) const override
Bool_t IsValidBox() const override
void Paint(Option_t *option="") override
Paint this shape.
Bool_t Contains(const Double_t *point) const override
Test if point is inside this shape.
Bool_t GetPointsOnSegments(Int_t npoints, Double_t *array) const override
Double_t DistFromOutside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=nullptr) const override
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Computes distance from point (px,py) to the object.
const char * GetAxisName(Int_t iaxis) const override
Bool_t IsCylType() const override
void SetDimensions(Double_t *param) override
void GetMeshNumbers(Int_t &nvert, Int_t &nsegs, Int_t &npols) const override
Double_t Safety(const Double_t *point, Bool_t in=kTRUE) const override
Int_t GetNmeshVertices() const override
void ComputeNormal(const Double_t *point, const Double_t *dir, Double_t *norm) override
Normal computation.
TBuffer3D * MakeBuffer3D() const override
Double_t Capacity() const override
Returns analytic capacity of the solid.
vecgeom::cxx::VPlacedVolume * GetVGShape() const
Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz) const override
vecgeom::cxx::VPlacedVolume * fVGShape
void GetBoundingCylinder(Double_t *param) const override
void SetPoints(Float_t *points) const override
void SetSegsAndPols(TBuffer3D &buff) const override
void ComputeBBox() override
Compute bounding box.
TGeoShape * GetShape() const
void Draw(Option_t *option="") override
Draw this shape.
const char * GetName() const override
Get the shape name.
Double_t DistFromInside(const Double_t *point, const Double_t *dir, Int_t iact=1, Double_t step=TGeoShape::Big(), Double_t *safe=nullptr) const override
void Sizeof3D() const override
void InspectShape() const override
Print info about the VecGeom solid.
const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame) const override
Stub implementation to avoid forcing implementation at this stage.
Bool_t IsAssembly() const override
Bool_t IsComposite() const override
Bool_t IsVecGeom() const override
static vecgeom::cxx::Transformation3D * Convert(TGeoMatrix const *const geomatrix)
Convert a TGeoMatrix to a TRansformation3D.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.