GEOS 3.15.0dev
NodablePath.h
1/**********************************************************************
2*
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2025 ISciences, LLC
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/geom/Coordinate.h>
19
20namespace geos::noding {
21
23class GEOS_DLL NodablePath {
24public:
25 virtual void addIntersection( const geom::Coordinate& intPt, size_t pathIndex) {
26 addIntersection(geom::CoordinateXYZM{intPt}, pathIndex);
27 }
28
29 virtual void addIntersection( const geom::CoordinateXYM& intPt, size_t pathIndex) {
30 addIntersection(geom::CoordinateXYZM{intPt}, pathIndex);
31 }
32
33 virtual void addIntersection(const geom::CoordinateXY& intPt, size_t pathIndex) {
34 addIntersection(geom::CoordinateXYZM{intPt}, pathIndex);
35 }
36
37 virtual void addIntersection(const geom::CoordinateXYZM& intPt, size_t pathIndex) =0;
38};
39
40}
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:220
A NodablePath represents a PathString to which coordinates can be added.
Definition NodablePath.h:23
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition CoverageCleaner.h:42