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

#include "DCEL.h"

Public Member Functions

 Vertex ()
 Vertex class definition for use in a doubly connected edge list a Vertex will contain the coordinates of the point it represents and a pointer to one of the half edges that emanates from it. More...
 
 Vertex (const double *coords, HalfEdge *half)
 
 Vertex (const Coords &coords, HalfEdge *half)
 
const CoordsgetCoords () const
 
const HalfEdgegetHalfEdge () const
 
void setCoords (const double *coords)
 
void setCoords (const Coords &coords)
 
void setHalfEdge (HalfEdge *half)
 

Private Attributes

Coords fCoords
 
HalfEdgefHalfEdge
 

Detailed Description

Definition at line 46 of file DCEL.h.

Constructor & Destructor Documentation

dcel2d::Vertex::Vertex ( )
inline

Vertex class definition for use in a doubly connected edge list a Vertex will contain the coordinates of the point it represents and a pointer to one of the half edges that emanates from it.

Constructor

Definition at line 56 of file DCEL.h.

56 : fCoords(0., 0., 0.), fHalfEdge(NULL) {}
Coords fCoords
Definition: DCEL.h:77
HalfEdge * fHalfEdge
Definition: DCEL.h:78
dcel2d::Vertex::Vertex ( const double *  coords,
HalfEdge half 
)
inline

Definition at line 58 of file DCEL.h.

58 : fHalfEdge(half) { setCoords(coords); }
HalfEdge * fHalfEdge
Definition: DCEL.h:78
void setCoords(const double *coords)
Definition: DCEL.h:65
dcel2d::Vertex::Vertex ( const Coords coords,
HalfEdge half 
)
inline

Definition at line 60 of file DCEL.h.

60 : fCoords(coords), fHalfEdge(half) {}
Coords fCoords
Definition: DCEL.h:77
HalfEdge * fHalfEdge
Definition: DCEL.h:78

Member Function Documentation

const HalfEdge* dcel2d::Vertex::getHalfEdge ( ) const
inline

Definition at line 63 of file DCEL.h.

63 { return fHalfEdge; }
HalfEdge * fHalfEdge
Definition: DCEL.h:78
void dcel2d::Vertex::setCoords ( const double *  coords)
inline

Definition at line 65 of file DCEL.h.

66  {
67  fCoords[0] = coords[0];
68  fCoords[1] = coords[1];
69  fCoords[2] = coords[2];
70  }
Coords fCoords
Definition: DCEL.h:77
void dcel2d::Vertex::setCoords ( const Coords coords)
inline

Definition at line 72 of file DCEL.h.

72 { fCoords = coords; }
Coords fCoords
Definition: DCEL.h:77
void dcel2d::Vertex::setHalfEdge ( HalfEdge half)
inline

Definition at line 74 of file DCEL.h.

Referenced by voronoi2d::VoronoiDiagram::handleCircleEvents().

74 { fHalfEdge = half; }
HalfEdge * fHalfEdge
Definition: DCEL.h:78

Member Data Documentation

Coords dcel2d::Vertex::fCoords
private

Definition at line 77 of file DCEL.h.

HalfEdge* dcel2d::Vertex::fHalfEdge
private

Definition at line 78 of file DCEL.h.


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