GEOS: PreparedPolygonIntersects.h Source File

GEOS 3.5.0

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

- File List

PreparedPolygonIntersects.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/PreparedPolygonIntersects.java rev 1.6 (JTS-1.10)
17 * (2007-12-12)
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
22 #define GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
23
24 #include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
25
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
50 class PreparedPolygonIntersects : public PreparedPolygonPredicate
51 {
52 private:
53 protected:
54 public:
63 static bool intersects( const PreparedPolygon * const prep, const geom::Geometry * geom)
64 {
65 PreparedPolygonIntersects polyInt(prep);
66 return polyInt.intersects( geom);
67 }
68
74 PreparedPolygonIntersects( const PreparedPolygon * const prep)
75 : PreparedPolygonPredicate( prep)
76 { }
77
84 bool intersects( const geom::Geometry * geom);
85
86 };
87
88 } // geos::geom::prep
89 } // geos::geom
90 } // geos
91
92 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos::geom::prep::PreparedPolygonPredicate
A base class for predicate operations on PreparedPolygons.
Definition: PreparedPolygonPredicate.h:57
geos::geom::prep::PreparedPolygonIntersects::PreparedPolygonIntersects
PreparedPolygonIntersects(const PreparedPolygon *const prep)
Definition: PreparedPolygonIntersects.h:74
geos::geom::prep::PreparedPolygonIntersects::intersects
static bool intersects(const PreparedPolygon *const prep, const geom::Geometry *geom)
Definition: PreparedPolygonIntersects.h:63
geos::geom::prep::PreparedPolygonIntersects
Computes the intersects spatial relationship predicate for PreparedPolygons relative to all other Geo...
Definition: PreparedPolygonIntersects.h:50
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::geom::prep::PreparedPolygon
A prepared version of Polygon or MultiPolygon geometries.
Definition: PreparedPolygon.h:48