GEOS 3.6.2
PreparedGeometry.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: geom/prep/PreparedGeometry.java rev. 1.11 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRY_H
20#define GEOS_GEOM_PREP_PREPAREDGEOMETRY_H
21
22#include <geos/export.h>
23
24// Forward declarations
25namespace geos {
26 namespace geom {
27 class Geometry;
28 }
29}
30
31
32namespace geos {
33namespace geom { // geos::geom
34namespace prep { // geos::geom::prep
35
53class GEOS_DLL PreparedGeometry {
54public:
55 virtual ~PreparedGeometry() {}
56
62 virtual const geom::Geometry & getGeometry() const =0;
63
72 virtual bool contains(const geom::Geometry *geom) const =0;
73
113 virtual bool containsProperly(const geom::Geometry *geom) const =0;
114
123 virtual bool coveredBy(const geom::Geometry *geom) const =0;
124
133 virtual bool covers(const geom::Geometry *geom) const =0;
134
143 virtual bool crosses(const geom::Geometry *geom) const =0;
144
153 virtual bool disjoint(const geom::Geometry *geom) const =0;
154
163 virtual bool intersects(const geom::Geometry *geom) const =0;
164
173 virtual bool overlaps(const geom::Geometry *geom) const =0;
174
183 virtual bool touches(const geom::Geometry *geom) const =0;
184
193 virtual bool within(const geom::Geometry *geom) const =0;
194};
195
196
197} // namespace geos::geom::prep
198} // namespace geos::geom
199} // namespace geos
200
201
202#endif // ndef GEOS_GEOM_PREP_PREPAREDGEOMETRY_H
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
An interface for classes which prepare Geometrys in order to optimize the performance of repeated cal...
Definition PreparedGeometry.h:53
virtual bool intersects(const geom::Geometry *geom) const =0
virtual bool contains(const geom::Geometry *geom) const =0
virtual bool coveredBy(const geom::Geometry *geom) const =0
virtual bool overlaps(const geom::Geometry *geom) const =0
virtual bool containsProperly(const geom::Geometry *geom) const =0
Tests whether the base Geometry properly contains a given geometry.
virtual bool disjoint(const geom::Geometry *geom) const =0
virtual bool crosses(const geom::Geometry *geom) const =0
virtual bool within(const geom::Geometry *geom) const =0
virtual bool covers(const geom::Geometry *geom) const =0
virtual bool touches(const geom::Geometry *geom) const =0
virtual const geom::Geometry & getGeometry() const =0
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25