GEOS
3.4.2
|
Computes the contains
spatial relationship predicate for a PreparedPolygon relative to all other Geometry classes.
More...
#include <PreparedPolygonContains.h>
Public Member Functions | |
PreparedPolygonContains (const PreparedPolygon *const prepPoly) | |
bool | contains (const geom::Geometry *geom) |
![]() | |
AbstractPreparedPolygonContains (const PreparedPolygon *const prepPoly) | |
AbstractPreparedPolygonContains (const PreparedPolygon *const prepPoly, bool requireSomePointInInterior) | |
![]() | |
PreparedPolygonPredicate (const PreparedPolygon *const prepPoly) | |
Static Public Member Functions | |
static bool | contains (const PreparedPolygon *const prep, const geom::Geometry *geom) |
Protected Member Functions | |
bool | fullTopologicalPredicate (const geom::Geometry *geom) |
![]() | |
bool | eval (const geom::Geometry *geom) |
![]() | |
bool | isAllTestComponentsInTarget (const geom::Geometry *testGeom) const |
Tests whether all components of the test Geometry are contained in the target geometry. More... | |
bool | isAllTestComponentsInTargetInterior (const geom::Geometry *testGeom) const |
Tests whether all components of the test Geometry are contained in the interior of the target geometry. More... | |
bool | isAnyTestComponentInTarget (const geom::Geometry *testGeom) const |
Tests whether any component of the test Geometry intersects the area of the target geometry. More... | |
bool | isAnyTestComponentInTargetInterior (const geom::Geometry *testGeom) const |
Tests whether any component of the test Geometry intersects the interior of the target geometry. More... | |
bool | isAnyTargetComponentInAreaTest (const geom::Geometry *testGeom, const geom::Coordinate::ConstVect *targetRepPts) const |
Additional Inherited Members | |
![]() | |
bool | requireSomePointInInterior |
![]() | |
const PreparedPolygon *const | prepPoly |
Computes the contains
spatial relationship predicate for a PreparedPolygon relative to all other Geometry classes.
Uses short-circuit tests and indexing to improve performance.
It is not possible to short-circuit in all cases, in particular in the case where the test geometry touches the polygon linework. In this case full topology must be computed.
geos::geom::prep::PreparedPolygonContains::PreparedPolygonContains | ( | const PreparedPolygon *const | prepPoly | ) |
Creates an instance of this operation.
prepPoly | the PreparedPolygon to evaluate |
|
inline |
Tests whether this PreparedPolygon contains
a given geometry.
geom | the test geometry |
References geos::geom::prep::AbstractPreparedPolygonContains::eval().
Referenced by contains().
|
inlinestatic |
Computes the contains predicate between a PreparedPolygon and a Geometry.
prep | the prepared polygon |
geom | a test geometry |
References contains().
|
protectedvirtual |
Computes the full topological contains
predicate. Used when short-circuit tests are not conclusive.
geom | the test geometry |
Implements geos::geom::prep::AbstractPreparedPolygonContains.