24 #include <geos/export.h> 28 #include <geos/geomgraph/GraphComponent.h> 29 #include <geos/geomgraph/Depth.h> 30 #include <geos/geomgraph/EdgeIntersectionList.h> 31 #include <geos/geom/CoordinateSequence.h> 32 #include <geos/geom/Envelope.h> 36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 42 class IntersectionMatrix;
46 class LineIntersector;
64 using GraphComponent::updateIM;
69 std::unique_ptr<index::MonotoneChainEdge> mce;
85 assert(pts->size() > 1);
88 friend std::ostream& operator<< (std::ostream& os,
const Edge& el);
93 std::unique_ptr<geom::CoordinateSequence>
pts;
108 return pts->getSize();
112 getCoordinates()
const 119 getCoordinate(std::size_t i)
const 122 return pts->getAt(i);
125 const geom::Coordinate&
126 getCoordinate()
const 129 return pts->getAt(0);
153 setDepthDelta(
int newDepthDelta)
155 depthDelta = newDepthDelta;
160 getMaximumSegmentIndex()
const 163 return getNumPoints() - 1;
166 EdgeIntersectionList&
167 getEdgeIntersectionList()
173 const EdgeIntersectionList&
174 getEdgeIntersectionList()
const 184 index::MonotoneChainEdge* getMonotoneChainEdge();
190 return pts->getAt(0) == pts->getAt(getNumPoints() - 1);
197 bool isCollapsed()
const;
199 Edge* getCollapsedEdge();
202 setIsolated(
bool newIsIsolated)
204 isIsolatedVar = newIsIsolated;
209 isIsolated()
const override 212 return isIsolatedVar;
219 void addIntersections(algorithm::LineIntersector* li, std::size_t segmentIndex,
220 std::size_t geomIndex);
227 void addIntersection(algorithm::LineIntersector* li, std::size_t segmentIndex,
228 std::size_t geomIndex, std::size_t intIndex);
243 bool isPointwiseEqual(
const Edge* e)
const;
245 std::string print()
const;
247 std::string printReverse()
const;
256 bool equals(
const Edge& e)
const;
259 equals(
const Edge* e)
const 271 operator==(
const Edge& a,
const Edge& b)
276 std::ostream& operator<< (std::ostream& os,
const Edge& el);
MonotoneChains are a way of partitioning the segments of an edge to allow for fast searching of inter...
Definition: MonotoneChainEdge.h:45
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:59
std::unique_ptr< geom::CoordinateSequence > pts
Externally-set, owned by Edge. FIXME: refuse ownership.
Definition: geomgraph/Edge.h:93
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:217
Implementation of Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix. ...
Definition: IntersectionMatrix.h:51
A list of edge intersections along an Edge.
Definition: EdgeIntersectionList.h:57
A Label indicates the topological relationship of a component of a topology graph to a given Geometry...
Definition: Label.h:57
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
int getDepthDelta() const
The depthDelta is the change in depth as an edge is crossed from R to L.
Definition: geomgraph/Edge.h:146
void computeIM(geom::IntersectionMatrix &im) override
Update the IM with the contribution for this component.
Definition: geomgraph/Edge.h:236
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
A Depth object records the topological depth of the sides of an Edge for up to two Geometries...
Definition: Depth.h:41
A GraphComponent is the parent class for the objects' that form a graph.
Definition: geomgraph/GraphComponent.h:45
Definition: geomgraph/Edge.h:63