GEOS 3.4.2

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

RelateOp.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/relate/RelateOp.java rev. 1.19 (JTS-1.10)
16 *
17 **********************************************************************/
18
19 #ifndef GEOS_OP_RELATE_RELATEOP_H
20 #define GEOS_OP_RELATE_RELATEOP_H
21
22 #include <geos/export.h>
23
24 #include <geos/operation/GeometryGraphOperation.h> // for inheritance
25 #include <geos/operation/relate/RelateComputer.h> // for composition
26
27 // Forward declarations
28 namespace geos {
29 namespace algorithm {
30 class BoundaryNodeRule;
31 }
32 namespace geom {
33 class IntersectionMatrix;
34 class Geometry;
35 }
36 }
37
38
39 namespace geos {
40 namespace operation { // geos::operation
41 namespace relate { // geos::operation::relate
42
57 class GEOS_DLL RelateOp: public GeometryGraphOperation {
58
59 public:
60
72 static geom::IntersectionMatrix* relate(
73 const geom::Geometry *a,
74 const geom::Geometry *b);
75
88 static geom::IntersectionMatrix* relate(
89 const geom::Geometry *a,
90 const geom::Geometry *b,
91 const algorithm::BoundaryNodeRule& boundaryNodeRule);
92
100 RelateOp(const geom::Geometry *g0,
101 const geom::Geometry *g1);
102
111 RelateOp(const geom::Geometry *g0,
112 const geom::Geometry *g1,
113 const algorithm::BoundaryNodeRule& boundaryNodeRule);
114
115 virtual ~RelateOp();
116
125 geom::IntersectionMatrix* getIntersectionMatrix();
126
127 private:
128
129 RelateComputer relateComp;
130 };
131
132
133 } // namespace geos:operation:relate
134 } // namespace geos:operation
135 } // namespace geos
136
137 #endif // GEOS_OP_RELATE_RELATEOP_H