SimpleNoder.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: noding/SimpleNoder.java rev. 1.7 (JTS-1.9)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <vector>
#include <geos/noding/SinglePassNoder.h>
#include <geos/noding/NodedSegmentString.h> // for inlined (FIXME)
// Forward declarations
namespace geos {
namespace noding {
//class SegmentString;
}
}
namespace geos {
namespace noding { // geos.noding
class GEOS_DLL SimpleNoder: public SinglePassNoder {
private:
std::vector<SegmentString*>* nodedSegStrings;
virtual void computeIntersects(SegmentString* e0, SegmentString* e1);
public:
SimpleNoder(SegmentIntersector* nSegInt = nullptr)
:
SinglePassNoder(nSegInt)
{}
void computeNodes(std::vector<SegmentString*>* inputSegmentStrings) override;
std::vector<SegmentString*>*
getNodedSubstrings() const override
{
return NodedSegmentString::getNodedSubstrings(*nodedSegStrings);
}
};
} // namespace geos.noding
} // namespace geos
geos::noding::SegmentIntersector
Processes possible intersections detected by a Noder.
Definition noding/SegmentIntersector.h:45
geos::noding::SegmentString
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:47
geos::noding::SimpleNoder::getNodedSubstrings
std::vector< SegmentString * > * getNodedSubstrings() const override
Returns a Collection of fully noded SegmentStrings.
Definition SimpleNoder.h:62
geos::noding::SimpleNoder::computeNodes
void computeNodes(std::vector< SegmentString * > *inputSegmentStrings) override
Computes the noding for a collection of SegmentStrings.
geos::noding
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition CoverageCleaner.h:42
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38