Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Core/include/Acts/Surfaces/ConvexPolygonBounds.hpp>
Public Member Functions | |
ConvexPolygonBounds ()=delete | |
Default constructor, deleted. | |
~ConvexPolygonBounds () override=default | |
Defaulted destructor. | |
ConvexPolygonBounds (const std::vector< Vector2 > &vertices) | |
BoundsType | type () const final |
bool | inside (const Vector2 &lposition, const BoundaryCheck &bcheck) const final |
std::vector< Vector2 > | vertices (unsigned int lseg=1) const final |
const RectangleBounds & | boundingBox () const final |
Public Member Functions inherited from Acts::ConvexPolygonBoundsBase | |
std::ostream & | toStream (std::ostream &sl) const final |
std::vector< double > | values () const final |
Static Public Attributes | |
static constexpr int | eSize = -1 |
Private Member Functions | |
void | checkConsistency () const noexcept(false) |
Private Attributes | |
boost::container::small_vector < Vector2, 10 > | m_vertices |
RectangleBounds | m_boundingBox |
Additional Inherited Members | |
Public Types inherited from Acts::SurfaceBounds | |
enum | BoundsType : int { eCone = 0, eCylinder = 1, eDiamond = 2, eDisc = 3, eEllipse = 4, eLine = 5, eRectangle = 6, eTrapezoid = 7, eTriangle = 8, eDiscTrapezoid = 9, eConvexPolygon = 10, eAnnulus = 11, eBoundless = 12, eOther = 13 } |
Static Protected Member Functions inherited from Acts::ConvexPolygonBoundsBase | |
template<typename coll_t > | |
static RectangleBounds | makeBoundingBox (const coll_t &vertices) |
template<typename coll_t > | |
static void | convex_impl (const coll_t &vertices) noexcept(false) |
This is the specialization handling a polygon with a dynamic number of points. It can accept any number of points.
Definition at line 143 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 143 of file ConvexPolygonBounds.hpp
|
delete |
Default constructor, deleted.
|
overridedefault |
Defaulted destructor.
Acts::ConvexPolygonBounds< PolygonDynamic >::ConvexPolygonBounds | ( | const std::vector< Vector2 > & | vertices | ) |
Constructor from a vector of vertices, to facilitate construction. This will throw if the vertices do not form a convex polygon.
vertices | The list of vertices. |
|
finalvirtual |
Return a rectangle bounds object that encloses this polygon.
Implements Acts::PlanarBounds.
|
privatenoexcept |
Return whether this bounds class is in fact convex thorws a logic error if not
|
finalvirtual |
Return whether a local 2D point lies inside of the bounds defined by this object.
lposition | The local position to check |
bcheck | The BoundaryCheck object handling tolerances. |
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the bounds type of this bounds object.
Implements Acts::SurfaceBounds.
|
finalvirtual |
Return the vertices
lseg | the number of segments used to approximate and eventually curved line |
Implements Acts::PlanarBounds.
|
static |
Definition at line 145 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 145 of file ConvexPolygonBounds.hpp
|
private |
Definition at line 188 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 188 of file ConvexPolygonBounds.hpp
|
private |
Definition at line 187 of file ConvexPolygonBounds.hpp.
View newest version in sPHENIX GitHub at line 187 of file ConvexPolygonBounds.hpp