GEOS 3.11.1
OverlayNodeFactory.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: operation/overlay/OverlayNodeFactory.java rev. 1.11 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#pragma once
20
21#include <geos/export.h>
22
23#include <vector>
24
25#include <geos/geomgraph/NodeFactory.h> // for inheritance
26
27// Forward declarations
28namespace geos {
29namespace geom {
30class Coordinate;
31}
32namespace geomgraph {
33class Node;
34}
35}
36
37namespace geos {
38namespace operation { // geos::operation
39namespace overlay { // geos::operation::overlay
40
45class GEOS_DLL OverlayNodeFactory: public geomgraph::NodeFactory {
46public:
47 OverlayNodeFactory(): geomgraph::NodeFactory() {}
48 geomgraph::Node* createNode(const geom::Coordinate& coord) const override;
49 static const geomgraph::NodeFactory& instance();
50};
51
52
53} // namespace geos::operation::overlay
54} // namespace geos::operation
55} // namespace geos
56
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
The node component of a geometry graph.
Definition: geomgraph/Node.h:59
Creates nodes for use in the geomgraph::PlanarGraph constructed during overlay operations....
Definition: OverlayNodeFactory.h:45
Basic namespace for all GEOS functionalities.
Definition: geos.h:39