GEOS  3.9.1dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
geos::operation::buffer::RightmostEdgeFinder Class Reference

A RightmostEdgeFinder find the geomgraph::DirectedEdge in a list which has the highest coordinate, and which is oriented L to R at that point. (I.e. the right side is on the RHS of the edge.) More...

#include <RightmostEdgeFinder.h>

Collaboration diagram for geos::operation::buffer::RightmostEdgeFinder:
[legend]

Public Member Functions

 RightmostEdgeFinder ()
 A RightmostEdgeFinder finds the geomgraph::DirectedEdge with the rightmost coordinate. More...
 
geomgraph::DirectedEdgegetEdge ()
 
geom::CoordinategetCoordinate ()
 
void findEdge (std::vector< geomgraph::DirectedEdge * > *dirEdgeList)
 Note that only Forward DirectedEdges will be checked. More...
 

Private Member Functions

void findRightmostEdgeAtNode ()
 
void findRightmostEdgeAtVertex ()
 
void checkForRightmostCoordinate (geomgraph::DirectedEdge *de)
 
int getRightmostSide (geomgraph::DirectedEdge *de, int index)
 
int getRightmostSideOfSegment (geomgraph::DirectedEdge *de, int i)
 

Private Attributes

int minIndex
 
geom::Coordinate minCoord
 
geomgraph::DirectedEdgeminDe
 
geomgraph::DirectedEdgeorientedDe
 

Detailed Description

A RightmostEdgeFinder find the geomgraph::DirectedEdge in a list which has the highest coordinate, and which is oriented L to R at that point. (I.e. the right side is on the RHS of the edge.)

Definition at line 47 of file RightmostEdgeFinder.h.

Constructor & Destructor Documentation

geos::operation::buffer::RightmostEdgeFinder::RightmostEdgeFinder ( )

A RightmostEdgeFinder finds the geomgraph::DirectedEdge with the rightmost coordinate.

The geomgraph::DirectedEdge returned is guaranteed to have the R of the world on its RHS.

Member Function Documentation

void geos::operation::buffer::RightmostEdgeFinder::checkForRightmostCoordinate ( geomgraph::DirectedEdge de)
private
void geos::operation::buffer::RightmostEdgeFinder::findEdge ( std::vector< geomgraph::DirectedEdge * > *  dirEdgeList)

Note that only Forward DirectedEdges will be checked.

void geos::operation::buffer::RightmostEdgeFinder::findRightmostEdgeAtNode ( )
private
void geos::operation::buffer::RightmostEdgeFinder::findRightmostEdgeAtVertex ( )
private
geom::Coordinate & geos::operation::buffer::RightmostEdgeFinder::getCoordinate ( )
inline

Definition at line 97 of file RightmostEdgeFinder.h.

geomgraph::DirectedEdge * geos::operation::buffer::RightmostEdgeFinder::getEdge ( )
inline

Definition at line 90 of file RightmostEdgeFinder.h.

int geos::operation::buffer::RightmostEdgeFinder::getRightmostSide ( geomgraph::DirectedEdge de,
int  index 
)
private
int geos::operation::buffer::RightmostEdgeFinder::getRightmostSideOfSegment ( geomgraph::DirectedEdge de,
int  i 
)
private

Member Data Documentation

geom::Coordinate geos::operation::buffer::RightmostEdgeFinder::minCoord
private

Definition at line 53 of file RightmostEdgeFinder.h.

geomgraph::DirectedEdge* geos::operation::buffer::RightmostEdgeFinder::minDe
private

Definition at line 55 of file RightmostEdgeFinder.h.

int geos::operation::buffer::RightmostEdgeFinder::minIndex
private

Definition at line 51 of file RightmostEdgeFinder.h.

geomgraph::DirectedEdge* geos::operation::buffer::RightmostEdgeFinder::orientedDe
private

Definition at line 57 of file RightmostEdgeFinder.h.


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