Public Member Functions | Private Attributes | List of all members
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 48 of file DCEL.h.

Constructor & Destructor Documentation

dcel2d::Vertex::Vertex ( void  )
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 59 of file DCEL.h.

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

Definition at line 61 of file DCEL.h.

61  : fHalfEdge(half)
62  {
63  setCoords(coords);
64  }
HalfEdge * fHalfEdge
Definition: DCEL.h:85
void setCoords(const double *coords)
Definition: DCEL.h:72
dcel2d::Vertex::Vertex ( const Coords coords,
HalfEdge half 
)
inline

Definition at line 66 of file DCEL.h.

66  : fCoords(coords), fHalfEdge(half)
67  {}
Coords fCoords
Definition: DCEL.h:84
HalfEdge * fHalfEdge
Definition: DCEL.h:85

Member Function Documentation

const Coords& dcel2d::Vertex::getCoords ( ) const
inline

Definition at line 69 of file DCEL.h.

69 {return fCoords;}
Coords fCoords
Definition: DCEL.h:84
const HalfEdge* dcel2d::Vertex::getHalfEdge ( ) const
inline

Definition at line 70 of file DCEL.h.

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

Definition at line 72 of file DCEL.h.

73  {
74  fCoords[0] = coords[0];
75  fCoords[1] = coords[1];
76  fCoords[2] = coords[2];
77  }
Coords fCoords
Definition: DCEL.h:84
void dcel2d::Vertex::setCoords ( const Coords coords)
inline

Definition at line 79 of file DCEL.h.

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

Definition at line 81 of file DCEL.h.

81 {fHalfEdge = half;}
HalfEdge * fHalfEdge
Definition: DCEL.h:85

Member Data Documentation

Coords dcel2d::Vertex::fCoords
private

Definition at line 84 of file DCEL.h.

HalfEdge* dcel2d::Vertex::fHalfEdge
private

Definition at line 85 of file DCEL.h.


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