The node component of a geometry graph.
More...
#include <Node.h>
The node component of a geometry graph.
Definition at line 62 of file geomgraph/Node.h.
geos::geomgraph::Node::~Node |
( |
| ) |
|
|
override |
virtual void geos::geomgraph::Node::add |
( |
EdgeEnd * |
e | ) |
|
|
virtual |
Add the edge to the list of edges at this node.
virtual void geos::geomgraph::Node::addZ |
( |
double |
| ) |
|
|
virtual |
|
inlineoverrideprotectedvirtual |
virtual geom::Location geos::geomgraph::Node::computeMergedLocation |
( |
const Label & |
label2, |
|
|
int |
eltIndex |
|
) |
| |
|
virtual |
The location for a given eltIndex for a node will be one of { null, INTERIOR, BOUNDARY }. A node may be on both the boundary and the interior of a geometry; in this case, the rule is that the node is considered to be in the boundary. The merged location is the maximum of the two input values.
virtual EdgeEndStar* geos::geomgraph::Node::getEdges |
( |
| ) |
|
|
virtual |
virtual const std::vector<double>& geos::geomgraph::Node::getZ |
( |
| ) |
const |
|
virtual |
virtual bool geos::geomgraph::Node::isIncidentEdgeInResult |
( |
| ) |
const |
|
virtual |
Tests whether any incident edge is flagged as being in the result.
This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.
- Returns
true
if any indicident edge in the in the result
bool geos::geomgraph::Node::isIsolated |
( |
| ) |
const |
|
overridevirtual |
virtual void geos::geomgraph::Node::mergeLabel |
( |
const Node & |
n | ) |
|
|
virtual |
virtual void geos::geomgraph::Node::mergeLabel |
( |
const Label & |
label2 | ) |
|
|
virtual |
To merge labels for two nodes, the merged location for each LabelElement is computed.
The location for the corresponding node LabelElement is set to the result, as long as the location is non-null.
virtual std::string geos::geomgraph::Node::print |
( |
| ) |
|
|
virtual |
virtual void geos::geomgraph::Node::setLabel |
( |
int |
argIndex, |
|
|
geom::Location |
onLocation |
|
) |
| |
|
virtual |
virtual void geos::geomgraph::Node::setLabelBoundary |
( |
int |
argIndex | ) |
|
|
virtual |
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
void geos::geomgraph::Node::testInvariant |
( |
| ) |
const |
|
inlineprotected |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Node & |
node |
|
) |
| |
|
friend |
double geos::geomgraph::Node::ztot |
|
private |
std::vector<double> geos::geomgraph::Node::zvals |
|
private |
The documentation for this class was generated from the following file: