GEOS 3.6.2
NodeFactory.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************
15 *
16 * Last port: geomgraph/NodeFactory.java rev. 1.3 (JTS-1.10)
17 *
18 **********************************************************************/
19
20
21#ifndef GEOS_GEOMGRAPH_NODEFACTORY_H
22#define GEOS_GEOMGRAPH_NODEFACTORY_H
23
24#include <geos/export.h>
25#include <geos/inline.h>
26
27// Forward declarations
28namespace geos {
29 namespace geom {
30 class Coordinate;
31 }
32 namespace geomgraph {
33 class Node;
34 }
35}
36
37namespace geos {
38namespace geomgraph { // geos.geomgraph
39
40class GEOS_DLL NodeFactory {
41public:
42 virtual Node* createNode(const geom::Coordinate &coord) const;
43 static const NodeFactory &instance();
44 virtual ~NodeFactory() {}
45protected:
46 NodeFactory() {}
47};
48
49
50} // namespace geos.geomgraph
51} // namespace geos
52
53#endif // ifndef GEOS_GEOMGRAPH_NODEFACTORY_H
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Definition geomgraph/Node.h:62
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25