GEOS  3.3.4
Public Member Functions | Static Public Member Functions | List of all members
geos::geom::prep::PreparedPolygonIntersects Class Reference

Computes the intersects spatial relationship predicate for PreparedPolygons relative to all other Geometry classes. More...

#include <PreparedPolygonIntersects.h>

Inheritance diagram for geos::geom::prep::PreparedPolygonIntersects:
geos::geom::prep::PreparedPolygonPredicate

Public Member Functions

 PreparedPolygonIntersects (const PreparedPolygon *const prep)
 
bool intersects (const geom::Geometry *geom)
 
- Public Member Functions inherited from geos::geom::prep::PreparedPolygonPredicate
 PreparedPolygonPredicate (const PreparedPolygon *const prepPoly)
 

Static Public Member Functions

static bool intersects (const PreparedPolygon *const prep, const geom::Geometry *geom)
 

Additional Inherited Members

- Protected Member Functions inherited from geos::geom::prep::PreparedPolygonPredicate
bool isAllTestComponentsInTarget (const geom::Geometry *testGeom) const
 Tests whether all components of the test Geometry are contained in 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 geometry.
 
bool isAnyTestComponentInTarget (const geom::Geometry *testGeom) const
 Tests whether any component of the test Geometry intersects the area of the target geometry.
 
bool isAnyTestComponentInTargetInterior (const geom::Geometry *testGeom) const
 Tests whether any component of the test Geometry intersects the interior of the target geometry.
 
bool isAnyTargetComponentInAreaTest (const geom::Geometry *testGeom, const geom::Coordinate::ConstVect *targetRepPts) const
 
- Protected Attributes inherited from geos::geom::prep::PreparedPolygonPredicate
const PreparedPolygon *const prepPoly
 

Detailed Description

Computes the intersects spatial relationship predicate for PreparedPolygons relative to all other Geometry classes.

Computes the intersects spatial relationship predicate for PreparedPolygons relative to all other Geometry classes.

Uses short-circuit tests and indexing to improve performance.

Author
Martin Davis

Constructor & Destructor Documentation

geos::geom::prep::PreparedPolygonIntersects::PreparedPolygonIntersects ( const PreparedPolygon *const  prep)
inline

Creates an instance of this operation.

Parameters
prepPolythe PreparedPolygon to evaluate

Member Function Documentation

static bool geos::geom::prep::PreparedPolygonIntersects::intersects ( const PreparedPolygon *const  prep,
const geom::Geometry geom 
)
inlinestatic

Computes the intersects predicate between a PreparedPolygon and a Geometry.

Parameters
prepthe prepared polygon
geoma test geometry
Returns
true if the polygon intersects the geometry

References intersects().

Referenced by intersects().

bool geos::geom::prep::PreparedPolygonIntersects::intersects ( const geom::Geometry geom)

Tests whether this PreparedPolygon intersects a given geometry.

Parameters
geomthe test geometry
Returns
true if the test geometry intersects

The documentation for this class was generated from the following file: