GEOS  3.9.1dev
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
geos::noding::SegmentNode Class Reference

Represents an intersection point between two NodedSegmentString. More...

#include <SegmentNode.h>

Collaboration diagram for geos::noding::SegmentNode:
[legend]

Public Member Functions

 SegmentNode (const NodedSegmentString &ss, const geom::Coordinate &nCoord, size_t nSegmentIndex, int nSegmentOctant)
 
 ~SegmentNode ()
 
bool isInterior () const
 Return true if this Node is internal (not on the boundary) of the corresponding segment. Currently only the first segment endpoint is checked, actually. More...
 
bool isEndPoint (unsigned int maxSegmentIndex) const
 
int compareTo (const SegmentNode &other)
 

Public Attributes

geom::Coordinate coord
 the point of intersection (own copy) More...
 
size_t segmentIndex
 the index of the containing line segment in the parent edge More...
 

Private Member Functions

 SegmentNode (const SegmentNode &other)=delete
 
SegmentNodeoperator= (const SegmentNode &rhs)=delete
 

Private Attributes

const NodedSegmentStringsegString
 
int segmentOctant
 
bool isInteriorVar
 

Friends

std::ostream & operator<< (std::ostream &os, const SegmentNode &n)
 

Detailed Description

Represents an intersection point between two NodedSegmentString.

Final class.

Definition at line 47 of file SegmentNode.h.

Constructor & Destructor Documentation

geos::noding::SegmentNode::SegmentNode ( const SegmentNode other)
privatedelete
geos::noding::SegmentNode::SegmentNode ( const NodedSegmentString ss,
const geom::Coordinate nCoord,
size_t  nSegmentIndex,
int  nSegmentOctant 
)

Construct a node on the given NodedSegmentString

Parameters
ssthe parent NodedSegmentString
nCoordthe coordinate of the intersection, will be copied
nSegmentIndexthe index of the segment on parent NodedSegmentString where the Node is located.
nSegmentOctant
geos::noding::SegmentNode::~SegmentNode ( )
inline

Definition at line 84 of file SegmentNode.h.

Member Function Documentation

int geos::noding::SegmentNode::compareTo ( const SegmentNode other)
Returns
-1 this EdgeIntersection is located before the argument location
0 this EdgeIntersection is at the argument location
1 this EdgeIntersection is located after the argument location

Referenced by geos::noding::SegmentNodeLT::operator()().

Here is the caller graph for this function:

bool geos::noding::SegmentNode::isEndPoint ( unsigned int  maxSegmentIndex) const
bool geos::noding::SegmentNode::isInterior ( ) const
inline

Return true if this Node is internal (not on the boundary) of the corresponding segment. Currently only the first segment endpoint is checked, actually.

Definition at line 92 of file SegmentNode.h.

References geos::noding::operator<<().

Here is the call graph for this function:

SegmentNode& geos::noding::SegmentNode::operator= ( const SegmentNode rhs)
privatedelete

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SegmentNode n 
)
friend

Member Data Documentation

geom::Coordinate geos::noding::SegmentNode::coord

the point of intersection (own copy)

Definition at line 63 of file SegmentNode.h.

bool geos::noding::SegmentNode::isInteriorVar
private

Definition at line 53 of file SegmentNode.h.

size_t geos::noding::SegmentNode::segmentIndex

the index of the containing line segment in the parent edge

Definition at line 66 of file SegmentNode.h.

int geos::noding::SegmentNode::segmentOctant
private

Definition at line 51 of file SegmentNode.h.

const NodedSegmentString& geos::noding::SegmentNode::segString
private

Definition at line 49 of file SegmentNode.h.


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