LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
dcel2d::Face Class Reference

#include "DCEL.h"

Public Member Functions

 Face (HalfEdge *half, const Coords &coords, const reco::ClusterHit3D *clusterHit3D)
 Face class definition for use in a doubly connected edge list A Face represents the area enclosed by a set of half edges and vertices. It simply needs to store a pointer to one of the half edges to be able to recover all. More...
 
 ~Face ()
 
const HalfEdgegetHalfEdge () const
 
const bool onConvexHull () const
 
const CoordsgetCoords () const
 
const double getFaceArea () const
 
const reco::ClusterHit3DgetClusterHit3D () const
 
void setHalfEdge (HalfEdge *half)
 
void setOnConvexHull ()
 
void setFaceArea (double area)
 

Private Attributes

HalfEdgefHalfEdge
 
bool fConvexHull
 
Coords fCoords
 
double fFaceArea
 
const reco::ClusterHit3DfClusterHit3D
 

Detailed Description

Definition at line 80 of file DCEL.h.

Constructor & Destructor Documentation

dcel2d::Face::Face ( HalfEdge half,
const Coords coords,
const reco::ClusterHit3D clusterHit3D 
)
inline

Face class definition for use in a doubly connected edge list A Face represents the area enclosed by a set of half edges and vertices. It simply needs to store a pointer to one of the half edges to be able to recover all.

Constructor

Definition at line 94 of file DCEL.h.

94  :
95  fHalfEdge(half),
96  fConvexHull(false),
97  fCoords(coords),
98  fFaceArea(0.),
99  fClusterHit3D(clusterHit3D)
100  {}
HalfEdge * fHalfEdge
Definition: DCEL.h:115
double fFaceArea
Definition: DCEL.h:118
Coords fCoords
Definition: DCEL.h:117
bool fConvexHull
Definition: DCEL.h:116
const reco::ClusterHit3D * fClusterHit3D
Definition: DCEL.h:119
dcel2d::Face::~Face ( )
inline

Definition at line 102 of file DCEL.h.

102 {}

Member Function Documentation

const reco::ClusterHit3D* dcel2d::Face::getClusterHit3D ( ) const
inline

Definition at line 108 of file DCEL.h.

108 {return fClusterHit3D;}
const reco::ClusterHit3D * fClusterHit3D
Definition: DCEL.h:119
const Coords& dcel2d::Face::getCoords ( ) const
inline

Definition at line 106 of file DCEL.h.

106 {return fCoords;}
Coords fCoords
Definition: DCEL.h:117
const double dcel2d::Face::getFaceArea ( ) const
inline

Definition at line 107 of file DCEL.h.

107 {return fFaceArea;}
double fFaceArea
Definition: DCEL.h:118
const HalfEdge* dcel2d::Face::getHalfEdge ( ) const
inline

Definition at line 104 of file DCEL.h.

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

104 {return fHalfEdge;}
HalfEdge * fHalfEdge
Definition: DCEL.h:115
const bool dcel2d::Face::onConvexHull ( ) const
inline

Definition at line 105 of file DCEL.h.

105 {return fConvexHull;}
bool fConvexHull
Definition: DCEL.h:116
void dcel2d::Face::setFaceArea ( double  area)
inline

Definition at line 112 of file DCEL.h.

112 {fFaceArea = area;}
double fFaceArea
Definition: DCEL.h:118
void dcel2d::Face::setHalfEdge ( HalfEdge half)
inline

Definition at line 110 of file DCEL.h.

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

110 {fHalfEdge = half;}
HalfEdge * fHalfEdge
Definition: DCEL.h:115
void dcel2d::Face::setOnConvexHull ( )
inline

Definition at line 111 of file DCEL.h.

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

111 {fConvexHull = true;}
bool fConvexHull
Definition: DCEL.h:116

Member Data Documentation

const reco::ClusterHit3D* dcel2d::Face::fClusterHit3D
private

Definition at line 119 of file DCEL.h.

bool dcel2d::Face::fConvexHull
mutableprivate

Definition at line 116 of file DCEL.h.

Coords dcel2d::Face::fCoords
private

Definition at line 117 of file DCEL.h.

double dcel2d::Face::fFaceArea
private

Definition at line 118 of file DCEL.h.

HalfEdge* dcel2d::Face::fHalfEdge
private

Definition at line 115 of file DCEL.h.


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