Public Member Functions | Private Attributes | List of all members
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
 
- Public Member Functions inherited from voronoi2d::IEvent
virtual ~IEvent () noexcept=default
 Virtual Destructor. More...
 

Private Attributes

dcel2d::Coords m_circleCenter
 
bool m_valid
 
BSTNodem_node
 

Detailed Description

Definition at line 63 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.

71  :
72  dcel2d::Point(point),
73  m_valid(true),
74  m_node(NULL)
75  {
77  }
dcel2d::Coords m_circleCenter
Definition: SweepEvent.h:95
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
Definition: DCEL.h:44
def center(depos, point)
Definition: depos.py:117
voronoi2d::CircleEvent::~CircleEvent ( )
inline

Definition at line 78 of file SweepEvent.h.

78 {}

Member Function Documentation

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

Implements voronoi2d::IEvent.

Definition at line 90 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 91 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 89 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 86 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 84 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 83 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 85 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 93 of file SweepEvent.h.

93 {return xPos() < right.xPos();}
double xPos() const override
Definition: SweepEvent.h:87
void voronoi2d::CircleEvent::setBSTNode ( BSTNode node)
inlineoverridevirtual

Implements voronoi2d::IEvent.

Definition at line 81 of file SweepEvent.h.

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

Interface for configuring the particular algorithm tool.

Implements voronoi2d::IEvent.

Definition at line 80 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 87 of file SweepEvent.h.

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

Implements voronoi2d::IEvent.

Definition at line 88 of file SweepEvent.h.

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

Member Data Documentation

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

Definition at line 95 of file SweepEvent.h.

BSTNode* voronoi2d::CircleEvent::m_node
private

Definition at line 97 of file SweepEvent.h.

bool voronoi2d::CircleEvent::m_valid
mutableprivate

Definition at line 96 of file SweepEvent.h.


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