LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
voronoi2d::CircleEvent Class Reference

#include "SweepEvent.h"

Inheritance diagram for voronoi2d::CircleEvent:
voronoi2d::IEvent

Public Member Functions

 CircleEvent (const dcel2d::Point &point, const dcel2d::Coords &center)
 This defines "Circle" events which are generated during the "sweep" of the beach line and define when an arc on the beach line will disappear. More...
 
 ~CircleEvent ()
 
void setInvalid () const override
 Interface for configuring the particular algorithm tool. More...
 
void setBSTNode (BSTNode *node) override
 
bool isSite () const override
 
bool isCircle () const override
 
bool isValid () const override
 
const dcel2d::PointgetPoint () const override
 
double xPos () const override
 
double yPos () const override
 
const dcel2d::CoordsgetCoords () const override
 
const dcel2d::CoordscircleCenter () const override
 
BSTNodegetBSTNode () const override
 
bool operator< (const IEvent &right) const override
 

Private Attributes

dcel2d::Coords m_circleCenter
 
bool m_valid
 
BSTNodem_node
 

Detailed Description

Definition at line 64 of file SweepEvent.h.

Constructor & Destructor Documentation

voronoi2d::CircleEvent::CircleEvent ( const dcel2d::Point point,
const dcel2d::Coords center 
)
inline

This defines "Circle" events which are generated during the "sweep" of the beach line and define when an arc on the beach line will disappear.

Definition at line 71 of file SweepEvent.h.

72  : dcel2d::Point(point), m_valid(true), m_node(NULL)
73  {
74  m_circleCenter = center;
75  }
dcel2d::Coords m_circleCenter
Definition: SweepEvent.h:94
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
Definition: DCEL.h:42
voronoi2d::CircleEvent::~CircleEvent ( )
inline

Definition at line 76 of file SweepEvent.h.

76 {}

Member Function Documentation

const dcel2d::Coords& voronoi2d::CircleEvent::circleCenter ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 88 of file SweepEvent.h.

88 { return m_circleCenter; }
dcel2d::Coords m_circleCenter
Definition: SweepEvent.h:94
BSTNode* voronoi2d::CircleEvent::getBSTNode ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 89 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_node.

89 { return m_node; }
const dcel2d::Coords& voronoi2d::CircleEvent::getCoords ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 87 of file SweepEvent.h.

87 { return m_circleCenter; }
dcel2d::Coords m_circleCenter
Definition: SweepEvent.h:94
const dcel2d::Point& voronoi2d::CircleEvent::getPoint ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 84 of file SweepEvent.h.

84 { return *this; }
bool voronoi2d::CircleEvent::isCircle ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 82 of file SweepEvent.h.

82 { return std::get<2>(*this) == NULL; }
bool voronoi2d::CircleEvent::isSite ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 81 of file SweepEvent.h.

81 { return std::get<2>(*this) != NULL; }
bool voronoi2d::CircleEvent::isValid ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 83 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_valid.

83 { return m_valid; }
bool voronoi2d::CircleEvent::operator< ( const IEvent right) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 91 of file SweepEvent.h.

References voronoi2d::IEvent::xPos(), and voronoi2d::SiteEvent::xPos().

91 { return xPos() < right.xPos(); }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102
double xPos() const override
Definition: SweepEvent.h:85
void voronoi2d::CircleEvent::setBSTNode ( BSTNode node)
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 79 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_node.

79 { m_node = node; }
void voronoi2d::CircleEvent::setInvalid ( ) const
inlineoverridevirtual

Interface for configuring the particular algorithm tool.

Implements voronoi2d::IEvent.

Definition at line 78 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_valid.

78 { m_valid = false; }
double voronoi2d::CircleEvent::xPos ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 85 of file SweepEvent.h.

85 { return std::get<0>(*this); }
double voronoi2d::CircleEvent::yPos ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 86 of file SweepEvent.h.

86 { return std::get<1>(*this); }

Member Data Documentation

dcel2d::Coords voronoi2d::CircleEvent::m_circleCenter
private

Definition at line 94 of file SweepEvent.h.

BSTNode* voronoi2d::CircleEvent::m_node
private

Definition at line 96 of file SweepEvent.h.

bool voronoi2d::CircleEvent::m_valid
mutableprivate

Definition at line 95 of file SweepEvent.h.


The documentation for this class was generated from the following file: