GEOS  3.9.1dev
OverlayNodeFactory.h
Go to the documentation of this file.
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 #ifndef GEOS_OP_OVERLAY_OVERLAYNODEFACTORY_H
20 #define GEOS_OP_OVERLAY_OVERLAYNODEFACTORY_H
21 
22 #include <geos/export.h>
23 
24 #include <vector>
25 
26 #include <geos/geomgraph/NodeFactory.h> // for inheritance
27 
28 // Forward declarations
29 namespace geos {
30 namespace geom {
31 class Coordinate;
32 }
33 namespace geomgraph {
34 class Node;
35 }
36 }
37 
38 namespace geos {
39 namespace operation { // geos::operation
40 namespace overlay { // geos::operation::overlay
41 
47 public:
48  OverlayNodeFactory(): geomgraph::NodeFactory() {}
49  geomgraph::Node* createNode(const geom::Coordinate& coord) const override;
50  static const geomgraph::NodeFactory& instance();
51 };
52 
53 
54 } // namespace geos::operation::overlay
55 } // namespace geos::operation
56 } // namespace geos
57 
58 #endif // ndef GEOS_OP_OVERLAY_OVERLAYNODEFACTORY_H
#define GEOS_DLL
Definition: export.h:28
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic namespace for all GEOS functionalities.
The node component of a geometry graph.
Creates nodes for use in the geomgraph::PlanarGraph constructed during overlay operations. NOTE: also used by operation::valid.