GEOS 3.9.1
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#ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONPREDICATE_H
22#define GEOS_GEOM_PREP_PREPAREDPOLYGONPREDICATE_H
23
24#include <geos/geom/Coordinate.h>
25#include <geos/geom/Location.h>
26
27// forward declarations
28namespace geos {
29namespace algorithm {
30namespace locate {
31class PointOnGeometryLocator;
32}
33}
34namespace geom {
35class Geometry;
36
37namespace prep {
38class PreparedPolygon;
39}
40}
41namespace noding {
42class FastSegmentSetIntersectionFinder;
43}
44}
45
46
47namespace geos {
48namespace geom { // geos::geom
49namespace prep { // geos::geom::prep
50
59private:
60 // Declare type as noncopyable
62 PreparedPolygonPredicate& operator=(const PreparedPolygonPredicate& rhs) = delete;
63
64protected:
65 const PreparedPolygon* const prepPoly;
66
75
87
98 bool isAnyTestComponentInTarget(const geom::Geometry* testGeom) const;
99
111
121 const geom::Coordinate::ConstVect* targetRepPts) const;
122
123public:
130 : prepPoly(p_prepPoly)
131 { }
132
133 virtual
135 { }
136
137};
138
139} // namespace geos::geom::prep
140} // namespace geos::geom
141} // namespace geos
142
143#endif // GEOS_GEOM_PREP_PREPAREDPOLYGONPREDICATE_H
144
std::vector< const Coordinate * > ConstVect
A vector of const Coordinate pointers.
Definition: Coordinate.h:71
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A base class for predicate operations on PreparedPolygons.
Definition: PreparedPolygonPredicate.h:58
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 geom::Coordinate::ConstVect *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:129
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:52
Location
Constants representing the location of a point relative to a geometry.
Definition: Location.h:34
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26