LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
dcel2d::HalfEdge Class Reference

#include "DCEL.h"

Public Member Functions

 HalfEdge ()
 HalfEdge class definition for use in a doubly connected edge list The half edge class represents one connection from the vertex it emanates from and pointing to the next vertex. It is the workhorse of the doubly connected edge list and contains all necessary pointers to enable completely traverse of the list. More...
 
 HalfEdge (Vertex *vertex, Face *face, HalfEdge *twin, HalfEdge *next, HalfEdge *last)
 
VertexgetTargetVertex () const
 
FacegetFace () const
 
HalfEdgegetTwinHalfEdge () const
 
HalfEdgegetNextHalfEdge () const
 
HalfEdgegetLastHalfEdge () const
 
void setTargetVertex (Vertex *vertex)
 
void setFace (Face *face)
 
void setTwinHalfEdge (HalfEdge *twin)
 
void setNextHalfEdge (HalfEdge *next)
 
void setLastHalfEdge (HalfEdge *last)
 

Private Attributes

Vertexm_targetVertex
 
Facem_face
 
HalfEdgem_twinHalfEdge
 
HalfEdgem_nextHalfEdge
 
HalfEdgem_lastHalfEdge
 

Detailed Description

Definition at line 120 of file DCEL.h.

Constructor & Destructor Documentation

dcel2d::HalfEdge::HalfEdge ( )
inline

HalfEdge class definition for use in a doubly connected edge list The half edge class represents one connection from the vertex it emanates from and pointing to the next vertex. It is the workhorse of the doubly connected edge list and contains all necessary pointers to enable completely traverse of the list.

Constructor

Definition at line 132 of file DCEL.h.

133  : m_targetVertex(NULL)
134  , m_face(NULL)
135  , m_twinHalfEdge(NULL)
136  , m_nextHalfEdge(NULL)
137  , m_lastHalfEdge(NULL)
138  {}
HalfEdge * m_lastHalfEdge
Definition: DCEL.h:165
HalfEdge * m_nextHalfEdge
Definition: DCEL.h:164
Vertex * m_targetVertex
Definition: DCEL.h:161
Face * m_face
Definition: DCEL.h:162
HalfEdge * m_twinHalfEdge
Definition: DCEL.h:163
dcel2d::HalfEdge::HalfEdge ( Vertex vertex,
Face face,
HalfEdge twin,
HalfEdge next,
HalfEdge last 
)
inline

Definition at line 140 of file DCEL.h.

142  , m_face(face)
143  , m_twinHalfEdge(twin)
144  , m_nextHalfEdge(next)
145  , m_lastHalfEdge(last)
146  {}
HalfEdge * m_lastHalfEdge
Definition: DCEL.h:165
HalfEdge * m_nextHalfEdge
Definition: DCEL.h:164
Vertex * m_targetVertex
Definition: DCEL.h:161
Face * m_face
Definition: DCEL.h:162
HalfEdge * m_twinHalfEdge
Definition: DCEL.h:163
vertex reconstruction

Member Function Documentation

Face* dcel2d::HalfEdge::getFace ( ) const
inline
HalfEdge* dcel2d::HalfEdge::getLastHalfEdge ( ) const
inline
HalfEdge* dcel2d::HalfEdge::getNextHalfEdge ( ) const
inline
void dcel2d::HalfEdge::setFace ( Face face)
inline
void dcel2d::HalfEdge::setLastHalfEdge ( HalfEdge last)
inline

Definition at line 158 of file DCEL.h.

Referenced by voronoi2d::VoronoiDiagram::boostTranslation(), and voronoi2d::VoronoiDiagram::handleCircleEvents().

158 { m_lastHalfEdge = last; }
HalfEdge * m_lastHalfEdge
Definition: DCEL.h:165
void dcel2d::HalfEdge::setNextHalfEdge ( HalfEdge next)
inline

Definition at line 157 of file DCEL.h.

Referenced by voronoi2d::VoronoiDiagram::boostTranslation(), and voronoi2d::VoronoiDiagram::handleCircleEvents().

157 { m_nextHalfEdge = next; }
HalfEdge * m_nextHalfEdge
Definition: DCEL.h:164
void dcel2d::HalfEdge::setTargetVertex ( Vertex vertex)
inline
void dcel2d::HalfEdge::setTwinHalfEdge ( HalfEdge twin)
inline

Member Data Documentation

Face* dcel2d::HalfEdge::m_face
private

Definition at line 162 of file DCEL.h.

HalfEdge* dcel2d::HalfEdge::m_lastHalfEdge
private

Definition at line 165 of file DCEL.h.

HalfEdge* dcel2d::HalfEdge::m_nextHalfEdge
private

Definition at line 164 of file DCEL.h.

Vertex* dcel2d::HalfEdge::m_targetVertex
private

Definition at line 161 of file DCEL.h.

HalfEdge* dcel2d::HalfEdge::m_twinHalfEdge
private

Definition at line 163 of file DCEL.h.


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