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

Computes the intersects spatial relationship predicate for a target PreparedLineString relative to all other Geometry classes. More...

#include <PreparedLineStringIntersects.h>

Collaboration diagram for geos::geom::prep::PreparedLineStringIntersects:
[legend]

Public Member Functions

 PreparedLineStringIntersects (PreparedLineString &prep)
 
bool intersects (const geom::Geometry *g) const
 

Static Public Member Functions

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

Protected Member Functions

bool isAnyTestPointInTarget (const geom::Geometry *testGeom) const
 
 PreparedLineStringIntersects (const PreparedLineStringIntersects &other)=delete
 
PreparedLineStringIntersectsoperator= (const PreparedLineStringIntersects &rhs)=delete
 

Protected Attributes

PreparedLineStringprepLine
 

Detailed Description

Computes the intersects spatial relationship predicate for a target PreparedLineString relative to all other Geometry classes.

Uses short-circuit tests and indexing to improve performance.

Author
Martin Davis

Definition at line 44 of file PreparedLineStringIntersects.h.

Constructor & Destructor Documentation

geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects ( PreparedLineString prep)
inline
Todo:
FIXME - mloskot: Why not taking linestring through const reference?

Definition at line 65 of file PreparedLineStringIntersects.h.

References intersects().

Here is the call graph for this function:

geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects ( const PreparedLineStringIntersects other)
protecteddelete

Member Function Documentation

static bool geos::geom::prep::PreparedLineStringIntersects::intersects ( PreparedLineString prep,
const geom::Geometry geom 
)
inlinestatic

Computes the intersects predicate between a PreparedLineString and a Geometry.

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

Definition at line 56 of file PreparedLineStringIntersects.h.

References intersects().

Referenced by intersects(), and PreparedLineStringIntersects().

Here is the call graph for this function:

Here is the caller graph for this function:

bool geos::geom::prep::PreparedLineStringIntersects::intersects ( const geom::Geometry g) const

Tests whether this geometry intersects a given geometry.

Parameters
gthe test geometry
Returns
true if the test geometry intersects
bool geos::geom::prep::PreparedLineStringIntersects::isAnyTestPointInTarget ( const geom::Geometry testGeom) const
protected

Tests whether any representative point of the test Geometry intersects the target geometry. Only handles test geometries which are Puntal (dimension 0)

Parameters
testGeoma Puntal geometry to test
Returns
true if any point of the argument intersects the prepared geometry
PreparedLineStringIntersects& geos::geom::prep::PreparedLineStringIntersects::operator= ( const PreparedLineStringIntersects rhs)
protecteddelete

Member Data Documentation

PreparedLineString& geos::geom::prep::PreparedLineStringIntersects::prepLine
protected

Definition at line 78 of file PreparedLineStringIntersects.h.


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