Abstract base class for geometry classes.
More...
#include <Geometry.hh>
|
| Geometry ()=delete |
| Default constructor.
|
| Geometry (const std::string &name) |
| Constructor.
|
virtual | ~Geometry () |
| Destructor.
|
virtual Medium * | GetMedium (const double x, const double y, const double z, const bool tesselated=false) const =0 |
| Retrieve the medium at a given point.
|
virtual std::size_t | GetNumberOfSolids () const |
| Return the number of solids in the geometry.
|
virtual Solid * | GetSolid (const std::size_t) const |
| Get a solid from the list.
|
virtual Solid * | GetSolid (const std::size_t, Medium *&) const |
| Get a solid from the list, together with the associated medium.
|
virtual bool | IsInside (const double x, const double y, const double z, const bool tesselated=false) const =0 |
| Check if a point is inside the geometry.
|
virtual bool | GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax)=0 |
| Get the bounding box (envelope of the geometry).
|
Abstract base class for geometry classes.
Definition at line 13 of file Geometry.hh.
◆ Geometry() [1/2]
Garfield::Geometry::Geometry |
( |
| ) |
|
|
delete |
◆ Geometry() [2/2]
Garfield::Geometry::Geometry |
( |
const std::string & | name | ) |
|
|
inline |
◆ ~Geometry()
virtual Garfield::Geometry::~Geometry |
( |
| ) |
|
|
inlinevirtual |
◆ GetBoundingBox()
virtual bool Garfield::Geometry::GetBoundingBox |
( |
double & | xmin, |
|
|
double & | ymin, |
|
|
double & | zmin, |
|
|
double & | xmax, |
|
|
double & | ymax, |
|
|
double & | zmax ) |
|
pure virtual |
◆ GetMedium()
virtual Medium * Garfield::Geometry::GetMedium |
( |
const double | x, |
|
|
const double | y, |
|
|
const double | z, |
|
|
const bool | tesselated = false ) const |
|
pure virtual |
◆ GetNumberOfSolids()
virtual std::size_t Garfield::Geometry::GetNumberOfSolids |
( |
| ) |
const |
|
inlinevirtual |
◆ GetSolid() [1/2]
virtual Solid * Garfield::Geometry::GetSolid |
( |
const std::size_t | | ) |
const |
|
inlinevirtual |
Get a solid from the list.
Definition at line 29 of file Geometry.hh.
◆ GetSolid() [2/2]
virtual Solid * Garfield::Geometry::GetSolid |
( |
const std::size_t | , |
|
|
Medium *& | ) const |
|
inlinevirtual |
Get a solid from the list, together with the associated medium.
Definition at line 31 of file Geometry.hh.
31 {
32 return nullptr;
33 }
◆ IsInside()
virtual bool Garfield::Geometry::IsInside |
( |
const double | x, |
|
|
const double | y, |
|
|
const double | z, |
|
|
const bool | tesselated = false ) const |
|
pure virtual |
◆ m_className
std::string Garfield::Geometry::m_className = "Geometry" |
|
protected |
The documentation for this class was generated from the following file:
- /builds/garfield/docs/source/Include/Garfield/Geometry.hh