GEOS 3.9.1
SimpleNoder.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 * Last port: noding/SimpleNoder.java rev. 1.7 (JTS-1.9)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_NODING_SIMPLENODER_H
20#define GEOS_NODING_SIMPLENODER_H
21
22#include <geos/export.h>
23
24#include <vector>
25
26#include <geos/inline.h>
27
28#include <geos/noding/SinglePassNoder.h>
29#include <geos/noding/NodedSegmentString.h> // for inlined (FIXME)
30
31// Forward declarations
32namespace geos {
33namespace noding {
34//class SegmentString;
35}
36}
37
38namespace geos {
39namespace noding { // geos.noding
40
41
51class GEOS_DLL SimpleNoder: public SinglePassNoder {
52private:
53 std::vector<SegmentString*>* nodedSegStrings;
54 virtual void computeIntersects(SegmentString* e0, SegmentString* e1);
55
56public:
57 SimpleNoder(SegmentIntersector* nSegInt = nullptr)
58 :
59 SinglePassNoder(nSegInt)
60 {}
61
62 void computeNodes(std::vector<SegmentString*>* inputSegmentStrings) override;
63
64 std::vector<SegmentString*>*
65 getNodedSubstrings() const override
66 {
67 return NodedSegmentString::getNodedSubstrings(*nodedSegStrings);
68 }
69};
70
71} // namespace geos.noding
72} // namespace geos
73
74#endif // GEOS_NODING_SIMPLENODER_H
Processes possible intersections detected by a Noder.
Definition noding/SegmentIntersector.h:48
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:46
Nodes a set of SegmentStrings by performing a brute-force comparison of every segment to every other ...
Definition SimpleNoder.h:51
std::vector< SegmentString * > * getNodedSubstrings() const override
Returns a Collection of fully noded SegmentStrings.
Definition SimpleNoder.h:65
void computeNodes(std::vector< SegmentString * > *inputSegmentStrings) override
Computes the noding for a collection of SegmentStrings.
Base class for Noders which make a single pass to find intersections.
Definition SinglePassNoder.h:51
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26