GEOS: PreparedPolygonContains.h Source File

GEOS 3.5.0

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

- File List

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