|
OverSim
|
#include <VastDefs.h>
Public Member Functions | |
| EdgeList () | |
| Standard constructor. | |
| void | initialize (int sqrt_nsites, double xmin, double deltax, Site *bottomsite) |
| Initializes the list before building the diagram. | |
| void | reset () |
| Resets the list for further use. | |
| Halfedge * | HEcreate (Edge *e, int pm) |
| Creates a halfedge from a given edge. | |
| void | ELinsert (Halfedge *lb, Halfedge *new_he) |
| Inserts a new halfedge to the list. | |
| Halfedge * | ELgethash (int b) |
| Get an entry from the list by number. | |
| Halfedge * | ELleftbnd (Vector2D *p) |
| Get an entry from the list by point. | |
| void | ELdelete (Halfedge *he) |
| Delete an entry from the list. | |
| Halfedge * | ELright (Halfedge *he) |
| Get right neighbor of an edge. | |
| Halfedge * | ELleft (Halfedge *he) |
| Get left neighbor of an edge. | |
| Site * | leftreg (Halfedge *he) |
| Get site left of an edge. | |
| Site * | rightreg (Halfedge *he) |
| Get site right of an edge. | |
| int | right_of (Halfedge *el, Vector2D *p) |
| Determines if a point is right of an halfedge. | |
Public Attributes | |
| Halfedge * | ELleftend |
| Halfedge * | ELrightend |
Protected Attributes | |
| int | ELhashsize |
| int | totalsearch |
| int | ntry |
| int | HEcount |
| double | xmin |
| double | deltax |
| Halfedge ** | ELhash |
| Halfedge ** | HEmemmap |
| Site * | bottomsite |
EdgeList class.
Maintains the edges found while building the voronoi diagram.
Definition at line 153 of file VastDefs.h.
| EdgeList::EdgeList | ( | ) |
| void EdgeList::ELdelete | ( | Halfedge * | he | ) |
| Halfedge * EdgeList::ELgethash | ( | int | b | ) |
Get an entry from the list by number.
@param b An integer. @return Returns halfedge number b.
Definition at line 462 of file VastDefs.cc.
Referenced by ELleftbnd().
Inserts a new halfedge to the list.
@param lb lower bound for this edge. @param new_he A new halfedge to be added to the list.
Definition at line 453 of file VastDefs.cc.
Referenced by Vast::buildVoronoi().
Get left neighbor of an edge.
@param he A halfedge. @return Returns left neighbor of halfedge he.
Definition at line 562 of file VastDefs.cc.
Referenced by Vast::buildVoronoi(), and ELinsert().
Get an entry from the list by point.
@param p A pointer to a point. @return Returns halfedge nearest to p.
Definition at line 518 of file VastDefs.cc.
Referenced by Vast::buildVoronoi().
Get right neighbor of an edge.
@param he A halfedge. @return Returns right neighbor of halfedge he.
Definition at line 557 of file VastDefs.cc.
Referenced by Vast::buildVoronoi(), and ELdelete().
Creates a halfedge from a given edge.
@param e A pointer to an edge. @param pm Determins wether the halfedge represents the left or right "side" of the given edge (le/re). @return Returns the created halfedge.
Definition at line 437 of file VastDefs.cc.
Referenced by Vast::buildVoronoi(), and initialize().
| void EdgeList::initialize | ( | int | sqrt_nsites, |
| double | xmin, | ||
| double | deltax, | ||
| Site * | bottomsite | ||
| ) |
Initializes the list before building the diagram.
@param sqrt_nsites Squareroot of the total number of sites. @param xmin Min x coordinate of all sites. @param deltax xmin+deltax is max x coordinate of all sites. @param bottomsite A pointer to the bottom site of the sites list.
Definition at line 405 of file VastDefs.cc.
Referenced by Vast::buildVoronoi().
Get site left of an edge.
@param he A halfedge. @return Returns site left of halfedge he.
Definition at line 568 of file VastDefs.cc.
Referenced by Vast::buildVoronoi().
| void EdgeList::reset | ( | ) |
Resets the list for further use.
Definition at line 429 of file VastDefs.cc.
Referenced by Vast::buildVoronoi().
Determines if a point is right of an halfedge.
@param he A halfedge. @param p A point. @return Returns 1 if point p is right of halfedge el, 0 otherwise.
Definition at line 476 of file VastDefs.cc.
Referenced by ELleftbnd().
Get site right of an edge.
@param he A halfedge. @return Returns site right of halfedge he.
Definition at line 574 of file VastDefs.cc.
Referenced by Vast::buildVoronoi().
|
protected |
Definition at line 237 of file VastDefs.h.
Referenced by initialize(), leftreg(), and rightreg().
|
protected |
Definition at line 234 of file VastDefs.h.
Referenced by ELleftbnd(), and initialize().
|
protected |
Definition at line 235 of file VastDefs.h.
Referenced by EdgeList(), ELgethash(), ELleftbnd(), initialize(), and reset().
|
protected |
Definition at line 233 of file VastDefs.h.
Referenced by ELgethash(), ELleftbnd(), HEcreate(), and initialize().
| Halfedge* EdgeList::ELleftend |
Definition at line 230 of file VastDefs.h.
Referenced by Vast::buildVoronoi(), ELleftbnd(), and initialize().
| Halfedge * EdgeList::ELrightend |
Definition at line 230 of file VastDefs.h.
Referenced by Vast::buildVoronoi(), ELleftbnd(), and initialize().
|
protected |
Definition at line 233 of file VastDefs.h.
Referenced by HEcreate(), initialize(), and reset().
|
protected |
Definition at line 236 of file VastDefs.h.
Referenced by HEcreate(), initialize(), and reset().
|
protected |
Definition at line 233 of file VastDefs.h.
Referenced by ELleftbnd().
|
protected |
Definition at line 233 of file VastDefs.h.
Referenced by ELleftbnd().
|
protected |
Definition at line 234 of file VastDefs.h.
Referenced by ELleftbnd(), and initialize().