GEOS 3.9.1
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#ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINS_H
21#define GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINS_H
22
23#include <geos/geom/prep/AbstractPreparedPolygonContains.h> // inherited
24
25// forward declarations
26namespace geos {
27namespace geom {
28class Geometry;
29
30namespace prep {
31class PreparedPolygon;
32}
33}
34}
35
36namespace geos {
37namespace geom { // geos::geom
38namespace prep { // geos::geom::prep
39
55public:
56
63
70 bool
72 {
73 return eval(geom);
74 }
75
84 static bool
85 contains(const PreparedPolygon* const prep, const geom::Geometry* geom)
86 {
87 PreparedPolygonContains polyInt(prep);
88 return polyInt.contains(geom);
89 }
90
91protected:
99 bool fullTopologicalPredicate(const geom::Geometry* geom) override;
100
101};
102
103} // geos::geom::prep
104} // geos::geom
105} // geos
106
107#endif // GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINS_H
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A base class containing the logic for computes the contains and covers spatial relationship predicate...
Definition: AbstractPreparedPolygonContains.h:65
bool eval(const geom::Geometry *geom)
Computes the contains spatial relationship predicate for a PreparedPolygon relative to all other Geom...
Definition: PreparedPolygonContains.h:54
PreparedPolygonContains(const PreparedPolygon *const prepPoly)
bool contains(const geom::Geometry *geom)
Definition: PreparedPolygonContains.h:71
bool fullTopologicalPredicate(const geom::Geometry *geom) override
static bool contains(const PreparedPolygon *const prep, const geom::Geometry *geom)
Definition: PreparedPolygonContains.h:85
A prepared version of Polygon or MultiPolygon geometries.
Definition: PreparedPolygon.h:52
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26