GEOS  3.9.1dev
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
geos::geomgraph::index::SegmentIntersector Class Reference

Computes the intersection of line segments, and adds the intersection to the edges containing the segments. More...

#include <SegmentIntersector.h>

Collaboration diagram for geos::geomgraph::index::SegmentIntersector:
[legend]

Public Member Functions

virtual ~SegmentIntersector ()
 
 SegmentIntersector (algorithm::LineIntersector *newLi, bool newIncludeProper, bool newRecordIsolated)
 
void setBoundaryNodes (std::vector< Node * > *bdyNodes0, std::vector< Node * > *bdyNodes1)
 Parameters are externally owned. Make sure they live for the whole lifetime of this object. More...
 
geom::CoordinategetProperIntersectionPoint ()
 
bool hasIntersection ()
 
bool hasProperIntersection ()
 
bool hasProperInteriorIntersection ()
 
void addIntersections (Edge *e0, size_t segIndex0, Edge *e1, size_t segIndex1)
 
void setIsDoneIfProperInt (bool isDoneWhenProperInt)
 
bool getIsDone ()
 

Static Public Member Functions

static bool isAdjacentSegments (size_t i1, size_t i2)
 

Public Attributes

int numTests
 

Private Member Functions

bool isTrivialIntersection (Edge *e0, size_t segIndex0, Edge *e1, size_t segIndex1)
 
bool isBoundaryPoint (algorithm::LineIntersector *li, std::array< std::vector< Node * > *, 2 > &tstBdyNodes)
 
bool isBoundaryPoint (algorithm::LineIntersector *li, std::vector< Node * > *tstBdyNodes)
 

Private Attributes

bool hasIntersectionVar
 
bool hasProper
 
bool hasProperInterior
 
bool isDone
 
bool isDoneWhenProperInt
 
geom::Coordinate properIntersectionPoint
 
algorithm::LineIntersectorli
 
bool includeProper
 
bool recordIsolated
 
int numIntersections
 
std::array< std::vector< Node * > *, 2 > bdyNodes
 Elements are externally owned. More...
 

Detailed Description

Computes the intersection of line segments, and adds the intersection to the edges containing the segments.

Definition at line 47 of file geomgraph/index/SegmentIntersector.h.

Constructor & Destructor Documentation

virtual geos::geomgraph::index::SegmentIntersector::~SegmentIntersector ( )
inlinevirtual

Definition at line 101 of file geomgraph/index/SegmentIntersector.h.

geos::geomgraph::index::SegmentIntersector::SegmentIntersector ( algorithm::LineIntersector newLi,
bool  newIncludeProper,
bool  newRecordIsolated 
)
inline

Definition at line 103 of file geomgraph/index/SegmentIntersector.h.

Member Function Documentation

void geos::geomgraph::index::SegmentIntersector::addIntersections ( Edge e0,
size_t  segIndex0,
Edge e1,
size_t  segIndex1 
)
bool geos::geomgraph::index::SegmentIntersector::getIsDone ( )
geom::Coordinate& geos::geomgraph::index::SegmentIntersector::getProperIntersectionPoint ( )
bool geos::geomgraph::index::SegmentIntersector::hasIntersection ( )
bool geos::geomgraph::index::SegmentIntersector::hasProperInteriorIntersection ( )
bool geos::geomgraph::index::SegmentIntersector::hasProperIntersection ( )
static bool geos::geomgraph::index::SegmentIntersector::isAdjacentSegments ( size_t  i1,
size_t  i2 
)
static
bool geos::geomgraph::index::SegmentIntersector::isBoundaryPoint ( algorithm::LineIntersector li,
std::array< std::vector< Node * > *, 2 > &  tstBdyNodes 
)
private
bool geos::geomgraph::index::SegmentIntersector::isBoundaryPoint ( algorithm::LineIntersector li,
std::vector< Node * > *  tstBdyNodes 
)
private
bool geos::geomgraph::index::SegmentIntersector::isTrivialIntersection ( Edge e0,
size_t  segIndex0,
Edge e1,
size_t  segIndex1 
)
private
void geos::geomgraph::index::SegmentIntersector::setBoundaryNodes ( std::vector< Node * > *  bdyNodes0,
std::vector< Node * > *  bdyNodes1 
)

Parameters are externally owned. Make sure they live for the whole lifetime of this object.

void geos::geomgraph::index::SegmentIntersector::setIsDoneIfProperInt ( bool  isDoneWhenProperInt)

Member Data Documentation

std::array<std::vector<Node*>*, 2> geos::geomgraph::index::SegmentIntersector::bdyNodes
private

Elements are externally owned.

Definition at line 81 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::hasIntersectionVar
private

These variables keep track of what types of intersections were found during ALL edges that have been intersected.

Definition at line 55 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::hasProper
private

Definition at line 57 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::hasProperInterior
private

Definition at line 59 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::includeProper
private

Definition at line 70 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::isDone
private

Definition at line 61 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::isDoneWhenProperInt
private

Definition at line 63 of file geomgraph/index/SegmentIntersector.h.

algorithm::LineIntersector* geos::geomgraph::index::SegmentIntersector::li
private

Definition at line 68 of file geomgraph/index/SegmentIntersector.h.

int geos::geomgraph::index::SegmentIntersector::numIntersections
private

Definition at line 78 of file geomgraph/index/SegmentIntersector.h.

int geos::geomgraph::index::SegmentIntersector::numTests

Definition at line 96 of file geomgraph/index/SegmentIntersector.h.

geom::Coordinate geos::geomgraph::index::SegmentIntersector::properIntersectionPoint
private

Definition at line 66 of file geomgraph/index/SegmentIntersector.h.

bool geos::geomgraph::index::SegmentIntersector::recordIsolated
private

Definition at line 72 of file geomgraph/index/SegmentIntersector.h.


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