GEOS 3.15.0dev
SinglePassNoder.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#pragma once
16
17#include <geos/export.h>
18#include <geos/noding/Noder.h>
19
20// Forward declarations
21namespace geos {
22namespace noding {
23class SegmentString;
24class SegmentIntersector;
25}
26}
27
28namespace geos {
29namespace noding { // geos.noding
30
31
43class GEOS_DLL SinglePassNoder : public Noder { // implements Noder
44
45protected:
46
49
50public:
51
52 SinglePassNoder(SegmentIntersector* nSegInt = nullptr): segInt(nSegInt) {}
53
54 ~SinglePassNoder() override {}
55
66 virtual void
68 {
69 segInt = newSegInt;
70 }
71
72};
73
74} // namespace geos.noding
75} // namespace geos
Computes all intersections between segments in a set of SegmentString.
Definition Noder.h:44
Processes possible intersections detected by a Noder.
Definition noding/SegmentIntersector.h:45
Base class for Noders which make a single pass to find intersections.
Definition SinglePassNoder.h:43
SegmentIntersector * segInt
Externally owned.
Definition SinglePassNoder.h:48
virtual void setSegmentIntersector(SegmentIntersector *newSegInt)
Sets the SegmentIntersector to use with this noder.
Definition SinglePassNoder.h:67
Basic namespace for all GEOS functionalities.
Definition geos.h:38