GEOS  3.14.0dev
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
28 namespace geos {
29 namespace geom {
30 class Coordinate;
31 }
32 namespace geomgraph {
33 class Node;
34 }
35 }
36 
37 namespace geos {
38 namespace operation { // geos::operation
39 namespace overlay { // geos::operation::overlay
40 
45 class GEOS_DLL OverlayNodeFactory: public geomgraph::NodeFactory {
46 public:
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:217
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: Angle.h:25