#include <Acts/Geometry/GenericCuboidVolumeBounds.hpp>
|
| struct | BoundValues |
| | This struct helps to symmetrize with the the other volume bounds classes. More...
|
|
| | GenericCuboidVolumeBounds ()=delete |
| | GenericCuboidVolumeBounds (const std::array< Acts::Vector3, 8 > &vertices) noexcept(false) |
| | Constructor from a set of vertices.
|
| | GenericCuboidVolumeBounds (const std::array< double, BoundValues::eSize > &values) noexcept(false) |
| | Constructor from a fixed size array.
|
| | ~GenericCuboidVolumeBounds () override=default |
| Volume::BoundingBox | boundingBox (const Transform3 *trf=nullptr, const Vector3 &envelope={0, 0, 0}, const Volume *entity=nullptr) const final |
| | Construct bounding box for this shape.
|
| std::vector< AxisDirection > | canonicalAxes () const override |
| | Get the canonical direction values, i.e.
|
| void | draw (IVisualization3D &helper, const Transform3 &transform=Transform3::Identity()) const |
| | Draw this shape using a visualization helper.
|
| bool | inside (const Vector3 &gpos, double tol=0.) const override |
| | Checking if position given in volume frame is inside.
|
| std::vector< OrientedSurface > | orientedSurfaces (const Transform3 &transform=Transform3::Identity()) const override |
| | Oriented surfaces, i.e.
|
| std::ostream & | toStream (std::ostream &sl) const override |
| VolumeBounds::BoundsType | type () const final |
| | Return the bounds type - for persistency optimization.
|
| std::vector< double > | values () const final |
| | Return the bound values as dynamically sized vector.
|
| | VolumeBounds ()=default |
| virtual | ~VolumeBounds ()=default |
| virtual double | referenceBorder (AxisDirection aDir) const |
| | Binning borders in double.
|
| virtual Vector3 | referenceOffset (AxisDirection aDir) const |
| | Binning offset - overloaded for some R-binning types.
|
◆ GenericCuboidVolumeBounds() [1/3]
| Acts::GenericCuboidVolumeBounds::GenericCuboidVolumeBounds |
( |
| ) |
|
|
delete |
◆ GenericCuboidVolumeBounds() [2/3]
| Acts::GenericCuboidVolumeBounds::GenericCuboidVolumeBounds |
( |
const std::array< Acts::Vector3, 8 > & | vertices | ) |
|
|
explicit |
Constructor from a set of vertices.
- Parameters
-
| vertices | The set of input vertices |
The ordering is considered to be:
- the first 4 vertices are the "top" face
- the second 4 vertices are the "bottom" face
- both faces are given in counter clock wise order
◆ GenericCuboidVolumeBounds() [3/3]
| Acts::GenericCuboidVolumeBounds::GenericCuboidVolumeBounds |
( |
const std::array< double, BoundValues::eSize > & | values | ) |
|
|
explicit |
Constructor from a fixed size array.
- Parameters
-
◆ ~GenericCuboidVolumeBounds()
| Acts::GenericCuboidVolumeBounds::~GenericCuboidVolumeBounds |
( |
| ) |
|
|
overridedefault |
◆ boundingBox()
Construct bounding box for this shape.
- Parameters
-
| trf | Optional transform |
| envelope | Optional envelope to add / subtract from min/max |
| entity | Entity to associate this bounding box with |
- Returns
- Constructed bounding box
Implements Acts::VolumeBounds.
◆ canonicalAxes()
| std::vector< AxisDirection > Acts::GenericCuboidVolumeBounds::canonicalAxes |
( |
| ) |
const |
|
overridevirtual |
Get the canonical direction values, i.e.
the axis directions that fully describe the shape's extent
- Returns
- vector of canonical binning values
Reimplemented from Acts::VolumeBounds.
◆ draw()
| void Acts::GenericCuboidVolumeBounds::draw |
( |
IVisualization3D & | helper, |
|
|
const Transform3 & | transform = Transform3::Identity() ) const |
Draw this shape using a visualization helper.
- Parameters
-
| helper | The visualizatin helper |
| transform | Optional transformation matrix |
◆ inside()
| bool Acts::GenericCuboidVolumeBounds::inside |
( |
const Vector3 & | gpos, |
|
|
double | tol = 0. ) const |
|
overridevirtual |
Checking if position given in volume frame is inside.
- Parameters
-
| gpos | is the global position to be checked |
| tol | is the tolerance applied for the inside check |
- Returns
- boolean indicating if the position is inside
Implements Acts::VolumeBounds.
◆ orientedSurfaces()
| std::vector< OrientedSurface > Acts::GenericCuboidVolumeBounds::orientedSurfaces |
( |
const Transform3 & | transform = Transform3::Identity() | ) |
const |
|
overridevirtual |
Oriented surfaces, i.e.
the decomposed boundary surfaces and the according navigation direction into the volume given the normal vector on the surface
- Parameters
-
| transform | is the 3D transform to be applied to the boundary surfaces to position them in 3D space |
It will throw an exception if the orientation prescription is not adequate
- Returns
- a vector of surfaces bounding this volume
Implements Acts::VolumeBounds.
◆ toStream()
| std::ostream & Acts::GenericCuboidVolumeBounds::toStream |
( |
std::ostream & | sl | ) |
const |
|
overridevirtual |
◆ type()
Return the bounds type - for persistency optimization.
- Returns
- is a BoundsType enum
Implements Acts::VolumeBounds.
◆ values()
| std::vector< double > Acts::GenericCuboidVolumeBounds::values |
( |
| ) |
const |
|
finalvirtual |
Return the bound values as dynamically sized vector.
- Returns
- this returns a copy of the internal values
Implements Acts::VolumeBounds.