Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Abstract base class for solids. More...
#include <Solid.hh>
Public Member Functions | |
Solid () | |
Constructor. | |
virtual | ~Solid () |
Destructor. | |
virtual bool | IsInside (const double x, const double y, const double z) const =0 |
Check whether a given point is inside the solid. | |
virtual bool | GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const =0 |
Return the bounding box of the solid. | |
virtual bool | IsBox () const |
Return true if the solid is a box. | |
virtual bool | IsTube () const |
Return true if the solid is a tube. | |
virtual bool | IsSphere () const |
Return true if the solid is a sphere. | |
virtual bool | GetCenter (double &x, double &y, double &z) const =0 |
virtual bool | GetDimensions (double &l1, double &l2, double &l3) const =0 |
virtual bool | GetOrientation (double &ctheta, double &stheta, double &cphi, double &shpi) const =0 |
void | EnableDebugging () |
Switch on debugging messages. | |
void | DisableDebugging () |
Protected Attributes | |
bool | m_debug |
|
inlinevirtual |
|
inline |
|
inline |
|
pure virtual |
Return the bounding box of the solid.
Implemented in Garfield::SolidBox, Garfield::SolidSphere, and Garfield::SolidTube.
Referenced by Garfield::GeometrySimple::AddSolid().
|
pure virtual |
Implemented in Garfield::SolidBox, Garfield::SolidSphere, and Garfield::SolidTube.
Referenced by Garfield::ViewGeometry::Plot().
|
pure virtual |
Implemented in Garfield::SolidBox, Garfield::SolidSphere, and Garfield::SolidTube.
Referenced by Garfield::ViewGeometry::Plot().
|
pure virtual |
Implemented in Garfield::SolidBox, Garfield::SolidSphere, and Garfield::SolidTube.
Referenced by Garfield::ViewGeometry::Plot().
|
inlinevirtual |
Return true if the solid is a box.
Reimplemented in Garfield::SolidBox.
Definition at line 23 of file Solid.hh.
Referenced by Garfield::ViewGeometry::Plot().
|
pure virtual |
Check whether a given point is inside the solid.
Implemented in Garfield::SolidBox, Garfield::SolidSphere, and Garfield::SolidTube.
|
inlinevirtual |
Return true if the solid is a sphere.
Reimplemented in Garfield::SolidSphere.
Definition at line 27 of file Solid.hh.
Referenced by Garfield::ViewGeometry::Plot().
|
inlinevirtual |
Return true if the solid is a tube.
Reimplemented in Garfield::SolidTube.
Definition at line 25 of file Solid.hh.
Referenced by Garfield::ViewGeometry::Plot().
|
protected |
Definition at line 39 of file Solid.hh.
Referenced by DisableDebugging(), EnableDebugging(), Garfield::SolidBox::IsInside(), Garfield::SolidSphere::IsInside(), and Garfield::SolidTube::IsInside().