GEOS  3.9.1dev
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
geos::geom::prep::PreparedPolygonPredicate Class Reference

A base class for predicate operations on PreparedPolygons. More...

#include <PreparedPolygonPredicate.h>

Inheritance diagram for geos::geom::prep::PreparedPolygonPredicate:
[legend]
Collaboration diagram for geos::geom::prep::PreparedPolygonPredicate:
[legend]

Public Member Functions

 PreparedPolygonPredicate (const PreparedPolygon *const p_prepPoly)
 Creates an instance of this operation. More...
 
virtual ~PreparedPolygonPredicate ()
 

Protected Member Functions

geom::Location getOutermostTestComponentLocation (const geom::Geometry *testGeom) const
 Returns the outermost Location among a test point from each components of the test 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
 

Protected Attributes

const PreparedPolygon *const prepPoly
 

Private Member Functions

 PreparedPolygonPredicate (const PreparedPolygonPredicate &other)=delete
 
PreparedPolygonPredicateoperator= (const PreparedPolygonPredicate &rhs)=delete
 

Detailed Description

A base class for predicate operations on PreparedPolygons.

Author
mbdavis

Definition at line 58 of file PreparedPolygonPredicate.h.

Constructor & Destructor Documentation

geos::geom::prep::PreparedPolygonPredicate::PreparedPolygonPredicate ( const PreparedPolygonPredicate other)
privatedelete
geos::geom::prep::PreparedPolygonPredicate::PreparedPolygonPredicate ( const PreparedPolygon *const  p_prepPoly)
inline

Creates an instance of this operation.

Parameters
p_prepPolythe PreparedPolygon to evaluate

Definition at line 129 of file PreparedPolygonPredicate.h.

virtual geos::geom::prep::PreparedPolygonPredicate::~PreparedPolygonPredicate ( )
inlinevirtual

Definition at line 134 of file PreparedPolygonPredicate.h.

Member Function Documentation

geom::Location geos::geom::prep::PreparedPolygonPredicate::getOutermostTestComponentLocation ( const geom::Geometry testGeom) const
protected

Returns the outermost Location among a test point from each components of the test geometry.

Parameters
testGeoma geometry to test
Returns
the outermost Location
bool geos::geom::prep::PreparedPolygonPredicate::isAllTestComponentsInTargetInterior ( const geom::Geometry testGeom) const
protected

Tests whether all components of the test Geometry are contained in the interior of the target geometry.

Handles both linear and point components.

Parameters
testGeoma geometry to test
Returns
true if all componenta of the argument are contained in the target geometry interior
bool geos::geom::prep::PreparedPolygonPredicate::isAnyTargetComponentInAreaTest ( const geom::Geometry testGeom,
const geom::Coordinate::ConstVect targetRepPts 
) const
protected

Tests whether any component of the target geometry intersects the test geometry (which must be an areal geometry)

Parameters
testGeomthe test geometry
targetRepPtsthe representative points of the target geometry
Returns
true if any component intersects the areal test geometry
bool geos::geom::prep::PreparedPolygonPredicate::isAnyTestComponentInTarget ( const geom::Geometry testGeom) const
protected

Tests whether any component of the test Geometry intersects the area of the target geometry.

Handles test geometries with both linear and point components.

Parameters
testGeoma geometry to test
Returns
true if any component of the argument intersects the prepared geometry
bool geos::geom::prep::PreparedPolygonPredicate::isAnyTestComponentInTargetInterior ( const geom::Geometry testGeom) const
protected

Tests whether any component of the test Geometry intersects the interior of the target geometry.

Handles test geometries with both linear and point components.

Parameters
testGeoma geometry to test
Returns
true if any component of the argument intersects the prepared area geometry interior
PreparedPolygonPredicate& geos::geom::prep::PreparedPolygonPredicate::operator= ( const PreparedPolygonPredicate rhs)
privatedelete

Member Data Documentation

const PreparedPolygon* const geos::geom::prep::PreparedPolygonPredicate::prepPoly
protected

Definition at line 65 of file PreparedPolygonPredicate.h.


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