LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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...
 
const HalfEdgegetHalfEdge () const
 
bool onConvexHull () const
 
const CoordsgetCoords () 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 81 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.

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

Member Function Documentation

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

Definition at line 106 of file DCEL.h.

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

Definition at line 104 of file DCEL.h.

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

Definition at line 105 of file DCEL.h.

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

Definition at line 102 of file DCEL.h.

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

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

Definition at line 103 of file DCEL.h.

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

Definition at line 110 of file DCEL.h.

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

Definition at line 108 of file DCEL.h.

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

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

Definition at line 109 of file DCEL.h.

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

109 { fConvexHull = true; }
bool fConvexHull
Definition: DCEL.h:114

Member Data Documentation

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

Definition at line 117 of file DCEL.h.

bool dcel2d::Face::fConvexHull
mutableprivate

Definition at line 114 of file DCEL.h.

Coords dcel2d::Face::fCoords
private

Definition at line 115 of file DCEL.h.

double dcel2d::Face::fFaceArea
private

Definition at line 116 of file DCEL.h.

HalfEdge* dcel2d::Face::fHalfEdge
private

Definition at line 113 of file DCEL.h.


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