LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 62 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 70 of file SweepEvent.h.

70  :
71  dcel2d::Point(point),
72  m_valid(true),
73  m_node(NULL)
74  {
75  m_circleCenter = center;
76  }
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:34
voronoi2d::CircleEvent::~CircleEvent ( )
inline

Definition at line 77 of file SweepEvent.h.

77 {}

Member Function Documentation

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

Implements voronoi2d::IEvent.

Definition at line 89 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 90 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_node.

90 {return m_node;}
const dcel2d::Coords& voronoi2d::CircleEvent::getCoords ( ) 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
const dcel2d::Point& voronoi2d::CircleEvent::getPoint ( ) const
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 85 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 83 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 82 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 84 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_valid.

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

Implements voronoi2d::IEvent.

Definition at line 92 of file SweepEvent.h.

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

92 {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:112
double xPos() const override
Definition: SweepEvent.h:86
void voronoi2d::CircleEvent::setBSTNode ( BSTNode node)
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 80 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_node.

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

Interface for configuring the particular algorithm tool.

Implements voronoi2d::IEvent.

Definition at line 79 of file SweepEvent.h.

References voronoi2d::SiteEvent::m_valid.

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

Implements voronoi2d::IEvent.

Definition at line 86 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 87 of file SweepEvent.h.

87 {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: