EdgeEndBundle.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/relate/EdgeEndBundle.java rev. 1.17 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geomgraph/EdgeEnd.h> // for EdgeEndBundle inheritance
#include <string>
// Forward declarations
namespace geos {
namespace algorithm {
class BoundaryNodeRule;
}
namespace geom {
class IntersectionMatrix;
}
}
namespace geos {
namespace operation { // geos::operation
namespace relate { // geos::operation::relate
class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd {
public:
EdgeEndBundle(geomgraph::EdgeEnd* e);
~EdgeEndBundle() override;
const std::vector<geomgraph::EdgeEnd*>& getEdgeEnds();
void insert(geomgraph::EdgeEnd* e);
void computeLabel(const algorithm::BoundaryNodeRule& bnr) override;
void updateIM(geom::IntersectionMatrix& im);
std::string print() const override;
protected:
std::vector<geomgraph::EdgeEnd*> edgeEnds;
void computeLabelOn(uint8_t geomIndex,
const algorithm::BoundaryNodeRule& boundaryNodeRule);
void computeLabelSides(uint8_t geomIndex);
void computeLabelSide(uint8_t geomIndex, uint32_t side);
};
} // namespace geos:operation:relate
} // namespace geos:operation
} // namespace geos
geos::algorithm::BoundaryNodeRule
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition BoundaryNodeRule.h:52
geos::geom::IntersectionMatrix
Implementation of Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix.
Definition IntersectionMatrix.h:51
geos::geomgraph::EdgeEnd
Models the end of an edge incident on a node.
Definition EdgeEnd.h:54
geos::operation::relate::EdgeEndBundle::computeLabelOn
void computeLabelOn(uint8_t geomIndex, const algorithm::BoundaryNodeRule &boundaryNodeRule)
geos::operation::relate::EdgeEndBundle::updateIM
void updateIM(geom::IntersectionMatrix &im)
Update the IM with the contribution for the computed label for the EdgeStubs.
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos::operation::relate
Contains classes to implement the computation of the spatial relationships of Geometrys.
Definition namespaces.h:280
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38