LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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)
 
 ~HalfEdge ()
 
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 122 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 135 of file DCEL.h.

135  :
136  m_targetVertex(NULL),
137  m_face(NULL),
138  m_twinHalfEdge(NULL),
139  m_nextHalfEdge(NULL),
140  m_lastHalfEdge(NULL)
141  {}
HalfEdge * m_lastHalfEdge
Definition: DCEL.h:174
HalfEdge * m_nextHalfEdge
Definition: DCEL.h:173
Vertex * m_targetVertex
Definition: DCEL.h:170
Face * m_face
Definition: DCEL.h:171
HalfEdge * m_twinHalfEdge
Definition: DCEL.h:172
dcel2d::HalfEdge::HalfEdge ( Vertex vertex,
Face face,
HalfEdge twin,
HalfEdge next,
HalfEdge last 
)
inline

Definition at line 143 of file DCEL.h.

147  :
149  m_face(face),
150  m_twinHalfEdge(twin),
151  m_nextHalfEdge(next),
152  m_lastHalfEdge(last)
153  {}
HalfEdge * m_lastHalfEdge
Definition: DCEL.h:174
HalfEdge * m_nextHalfEdge
Definition: DCEL.h:173
Vertex * m_targetVertex
Definition: DCEL.h:170
Face * m_face
Definition: DCEL.h:171
HalfEdge * m_twinHalfEdge
Definition: DCEL.h:172
vertex reconstruction
dcel2d::HalfEdge::~HalfEdge ( )
inline

Definition at line 155 of file DCEL.h.

155 {}

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 167 of file DCEL.h.

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

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

Definition at line 166 of file DCEL.h.

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

166 {m_nextHalfEdge = next;}
HalfEdge * m_nextHalfEdge
Definition: DCEL.h:173
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 171 of file DCEL.h.

HalfEdge* dcel2d::HalfEdge::m_lastHalfEdge
private

Definition at line 174 of file DCEL.h.

HalfEdge* dcel2d::HalfEdge::m_nextHalfEdge
private

Definition at line 173 of file DCEL.h.

Vertex* dcel2d::HalfEdge::m_targetVertex
private

Definition at line 170 of file DCEL.h.

HalfEdge* dcel2d::HalfEdge::m_twinHalfEdge
private

Definition at line 172 of file DCEL.h.


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