GEOS 3.14.0dev
PreparedPolygonPredicate.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/PreparedPolygonPredicate.java rev. 1.4 (JTS-1.10)
17 * (2007-12-12)
18 *
19 **********************************************************************/
20
21#pragma once
22
23#include <geos/geom/Coordinate.h>
24#include <geos/geom/Location.h>
25
26// forward declarations
27namespace geos {
28namespace algorithm {
29namespace locate {
30class PointOnGeometryLocator;
31}
32}
33namespace geom {
34class Geometry;
35
36namespace prep {
37class PreparedPolygon;
38}
39}
40namespace noding {
41class FastSegmentSetIntersectionFinder;
42}
43}
44
45
46namespace geos {
47namespace geom { // geos::geom
48namespace prep { // geos::geom::prep
49
58private:
59 // Declare type as noncopyable
61 PreparedPolygonPredicate& operator=(const PreparedPolygonPredicate& rhs) = delete;
62
63protected:
64 const PreparedPolygon* const prepPoly;
65
74
86
97 bool isAnyTestComponentInTarget(const geom::Geometry* testGeom) const;
98
110
120 const std::vector<const geom::CoordinateXY*>* targetRepPts) const;
121
122public:
129 : prepPoly(p_prepPoly)
130 { }
131
132 virtual
134 { }
135
136};
137
138} // namespace geos::geom::prep
139} // namespace geos::geom
140} // namespace geos
141
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
A base class for predicate operations on PreparedPolygons.
Definition PreparedPolygonPredicate.h:57
bool isAnyTestComponentInTargetInterior(const geom::Geometry *testGeom) const
Tests whether any component of the test Geometry intersects the interior of the target geometry.
bool isAllTestComponentsInTargetInterior(const geom::Geometry *testGeom) const
Tests whether all components of the test Geometry are contained in the interior of the target geometr...
bool isAnyTargetComponentInAreaTest(const geom::Geometry *testGeom, const std::vector< const geom::CoordinateXY * > *targetRepPts) const
geom::Location getOutermostTestComponentLocation(const geom::Geometry *testGeom) const
Returns the outermost Location among a test point from each components of the test geometry.
PreparedPolygonPredicate(const PreparedPolygon *const p_prepPoly)
Creates an instance of this operation.
Definition PreparedPolygonPredicate.h:128
bool isAnyTestComponentInTarget(const geom::Geometry *testGeom) const
Tests whether any component of the test Geometry intersects the area of the target geometry.
A prepared version of Polygon or MultiPolygon geometries.
Definition PreparedPolygon.h:51
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
Basic namespace for all GEOS functionalities.
Definition geos.h:39