GEOS  3.14.0dev
PreparedPolygonContainsProperly.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/PreparedPolygonContainsProperly.java rev 1.5 (JTS-1.10)
17  * (2007-12-12)
18  *
19  **********************************************************************/
20 
21 #pragma once
22 
23 #include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
24 
25 namespace geos {
26 namespace geom {
27 class Geometry;
28 
29 namespace prep {
30 class PreparedPolygon;
31 }
32 }
33 }
34 
35 namespace geos {
36 namespace geom { // geos::geom
37 namespace prep { // geos::geom::prep
38 
59 private:
60 protected:
61 public:
70  static
71  bool
72  containsProperly(const PreparedPolygon* const prep, const geom::Geometry* geom)
73  {
74  PreparedPolygonContainsProperly polyInt(prep);
75  return polyInt.containsProperly(geom);
76  }
77 
85  { }
86 
93  bool
95 
96 };
97 
98 } // geos::geom::prep
99 } // geos::geom
100 } // geos
101 
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Computes the containsProperly spatial relationship predicate for PreparedPolygons relative to all oth...
Definition: PreparedPolygonContainsProperly.h:58
bool containsProperly(const geom::Geometry *geom)
Tests whether this PreparedPolygon containsProperly a given geometry.
PreparedPolygonContainsProperly(const PreparedPolygon *const prep)
Creates an instance of this operation.
Definition: PreparedPolygonContainsProperly.h:83
static bool containsProperly(const PreparedPolygon *const prep, const geom::Geometry *geom)
Computes the containsProperly predicate between a PreparedPolygon and a Geometry.
Definition: PreparedPolygonContainsProperly.h:72
A base class for predicate operations on PreparedPolygons.
Definition: PreparedPolygonPredicate.h:57
A prepared version of Polygon or MultiPolygon geometries.
Definition: PreparedPolygon.h:51
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25