GEOS 3.14.0dev
PreparedPolygonContains.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 *
16 * Last port: geom/prep/PreparedPolygonContains.java rev 1.5 (JTS-1.10)
17 *
18 **********************************************************************/
19
20#pragma once
21
22#include <geos/geom/prep/AbstractPreparedPolygonContains.h> // inherited
23
24// forward declarations
25namespace geos {
26namespace geom {
27class Geometry;
28
29namespace prep {
30class PreparedPolygon;
31}
32}
33}
34
35namespace geos {
36namespace geom { // geos::geom
37namespace prep { // geos::geom::prep
38
54public:
55
62
69 bool
71 {
72 return eval(geom);
73 }
74
83 static bool
84 contains(const PreparedPolygon* const prep, const geom::Geometry* geom)
85 {
86 PreparedPolygonContains polyInt(prep);
87 return polyInt.contains(geom);
88 }
89
90protected:
98 bool fullTopologicalPredicate(const geom::Geometry* geom) override;
99
100};
101
102} // geos::geom::prep
103} // geos::geom
104} // geos
105
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
A base class containing the logic for computes the contains and covers spatial relationship predicate...
Definition AbstractPreparedPolygonContains.h:64
bool eval(const geom::Geometry *geom)
Computes the contains spatial relationship predicate for a PreparedPolygon relative to all other Geom...
Definition PreparedPolygonContains.h:53
PreparedPolygonContains(const PreparedPolygon *const prepPoly)
bool contains(const geom::Geometry *geom)
Definition PreparedPolygonContains.h:70
bool fullTopologicalPredicate(const geom::Geometry *geom) override
static bool contains(const PreparedPolygon *const prep, const geom::Geometry *geom)
Definition PreparedPolygonContains.h:84
A prepared version of Polygon or MultiPolygon geometries.
Definition PreparedPolygon.h:51
Basic namespace for all GEOS functionalities.
Definition geos.h:39