GEOS  3.2.3
Public Member Functions | Protected Member Functions
geos::geom::prep::BasicPreparedGeometry Class Reference

A base class for PreparedGeometry subclasses. More...

#include <BasicPreparedGeometry.h>

Inheritance diagram for geos::geom::prep::BasicPreparedGeometry:
geos::geom::prep::PreparedGeometry geos::geom::prep::PreparedLineString geos::geom::prep::PreparedPoint geos::geom::prep::PreparedPolygon

List of all members.

Public Member Functions

 BasicPreparedGeometry (const Geometry *geom)
const geom::GeometrygetGeometry () const
const Coordinate::ConstVectgetRepresentativePoints () const
bool isAnyTargetComponentInTest (const geom::Geometry *testGeom) const
bool contains (const geom::Geometry *g) const
bool containsProperly (const geom::Geometry *g) const
bool coveredBy (const geom::Geometry *g) const
bool covers (const geom::Geometry *g) const
bool crosses (const geom::Geometry *g) const
bool disjoint (const geom::Geometry *g) const
bool intersects (const geom::Geometry *g) const
bool overlaps (const geom::Geometry *g) const
bool touches (const geom::Geometry *g) const
bool within (const geom::Geometry *g) const
std::string toString ()

Protected Member Functions

void setGeometry (const geom::Geometry *geom)
bool envelopesIntersect (const geom::Geometry *g) const
bool envelopeCovers (const geom::Geometry *g) const

Detailed Description

A base class for PreparedGeometry subclasses.

Contains default implementations for methods, which simply delegate to the equivalent Geometry methods. This class may be used as a "no-op" class for Geometry types which do not have a corresponding PreparedGeometry implementation.

Author:
Martin Davis

Member Function Documentation

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Reimplemented in geos::geom::prep::PreparedPolygon.

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Reimplemented in geos::geom::prep::PreparedPolygon.

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Reimplemented in geos::geom::prep::PreparedPolygon.

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Standard implementation for all geometries. Supports GeometryCollections as input.

Implements geos::geom::prep::PreparedGeometry.

Determines whether the envelope of this geometry covers the Geometry g.

Parameters:
ga Geometry
Returns:
true if g is contained in this envelope

Determines whether a Geometry g interacts with this geometry by testing the geometry envelopes.

Parameters:
ga Geometry
Returns:
true if the envelopes intersect

Gets the original Geometry which has been prepared.

Returns:
the base geometry

Implements geos::geom::prep::PreparedGeometry.

Gets the list of representative points for this geometry. One vertex is included for every component of the geometry (i.e. including one for every ring of polygonal geometries)

Returns:
a List of Coordinate

Tests whether any representative of the target geometry intersects the test geometry. This is useful in A/A, A/L, A/P, L/P, and P/P cases.

Parameters:
geomthe test geometry
repPtsthe representative points of the target geometry
Returns:
true if any component intersects the areal test geometry

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Sets the original Geometry which will be prepared.

Default implementation.

Implements geos::geom::prep::PreparedGeometry.

Default implementation.

Implements geos::geom::prep::PreparedGeometry.


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