GEOS 3.13.1
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#pragma once
22
23#include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
24
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
49class PreparedPolygonIntersects : public PreparedPolygonPredicate {
50private:
51protected:
52public:
61 static bool
63 {
65 return polyInt.intersects(geom);
66 }
67
74 : PreparedPolygonPredicate(prep)
75 { }
76
84
85};
86
87} // geos::geom::prep
88} // geos::geom
89} // geos
90
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
PreparedPolygonIntersects(const PreparedPolygon *const prep)
Creates an instance of this operation.
Definition PreparedPolygonIntersects.h:73
static bool intersects(const PreparedPolygon *const prep, const geom::Geometry *geom)
Computes the intersects predicate between a PreparedPolygon and a Geometry.
Definition PreparedPolygonIntersects.h:62
bool intersects(const geom::Geometry *geom)
Tests whether this PreparedPolygon intersects a given geometry.
A prepared version of Polygon or MultiPolygon geometries.
Definition PreparedPolygon.h:51
Contains classes and interfaces implementing algorithms that optimize the performance of repeated cal...
Definition AbstractPreparedPolygonContains.h:30
Definition Angle.h:26
Basic namespace for all GEOS functionalities.
Definition geos.h:39