EdgeEndBuilder.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/EdgeEndBuilder.java rev. 1.12 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <memory>
#include <vector>
// Forward declarations
namespace geos {
namespace geom {
class IntersectionMatrix;
class Coordinate;
}
namespace geomgraph {
class Edge;
class EdgeIntersection;
class EdgeEnd;
}
}
namespace geos {
namespace operation { // geos::operation
namespace relate { // geos::operation::relate
class GEOS_DLL EdgeEndBuilder {
public:
EdgeEndBuilder() {}
std::vector<std::unique_ptr<geomgraph::EdgeEnd>> computeEdgeEnds(std::vector<geomgraph::Edge*>* edges);
void computeEdgeEnds(geomgraph::Edge* edge, std::vector<std::unique_ptr<geomgraph::EdgeEnd>>& l);
protected:
void createEdgeEndForPrev(geomgraph::Edge* edge,
std::vector<std::unique_ptr<geomgraph::EdgeEnd>>& l,
const geomgraph::EdgeIntersection* eiCurr,
const geomgraph::EdgeIntersection* eiPrev);
void createEdgeEndForNext(geomgraph::Edge* edge,
std::vector<std::unique_ptr<geomgraph::EdgeEnd>>& l,
const geomgraph::EdgeIntersection* eiCurr,
const geomgraph::EdgeIntersection* eiNext);
};
} // namespace geos:operation:relate
} // namespace geos:operation
} // namespace geos
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
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::geomgraph::EdgeIntersection
Represents a point on an edge which intersects with another edge.
Definition EdgeIntersection.h:42
geos::geomgraph::Edge
Definition geomgraph/Edge.h:63
geos::geom
Definition Angle.h:26
geos::geomgraph
Contains classes that implement topology graphs.
Definition Depth.h:31
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