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

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

Definition at line 51 of file DCEL.h.

51  : fHalfEdge(half)
52  {
53  setCoords(coords);
54  }
HalfEdge * fHalfEdge
Definition: DCEL.h:77
void setCoords(const double *coords)
Definition: DCEL.h:64
dcel2d::Vertex::Vertex ( const Coords coords,
HalfEdge half 
)
inline

Definition at line 56 of file DCEL.h.

56  : fCoords(coords), fHalfEdge(half)
57  {}
Coords fCoords
Definition: DCEL.h:76
HalfEdge * fHalfEdge
Definition: DCEL.h:77
dcel2d::Vertex::~Vertex ( )
inline

Definition at line 59 of file DCEL.h.

59 {}

Member Function Documentation

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

Definition at line 62 of file DCEL.h.

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

Definition at line 64 of file DCEL.h.

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

Definition at line 71 of file DCEL.h.

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

Definition at line 73 of file DCEL.h.

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

73 {fHalfEdge = half;}
HalfEdge * fHalfEdge
Definition: DCEL.h:77

Member Data Documentation

Coords dcel2d::Vertex::fCoords
private

Definition at line 76 of file DCEL.h.

HalfEdge* dcel2d::Vertex::fHalfEdge
private

Definition at line 77 of file DCEL.h.


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