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

A prepared version of Polygon or MultiPolygon geometries. More...

#include <PreparedPolygon.h>

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

Public Member Functions

 PreparedPolygon (const geom::Geometry *geom)
 
 ~PreparedPolygon () override
 
noding::FastSegmentSetIntersectionFindergetIntersectionFinder () const
 
algorithm::locate::PointOnGeometryLocatorgetPointLocator () const
 
operation::distance::IndexedFacetDistancegetIndexedFacetDistance () const
 
bool contains (const geom::Geometry *g) const override
 
bool containsProperly (const geom::Geometry *g) const override
 
bool covers (const geom::Geometry *g) const override
 
bool intersects (const geom::Geometry *g) const override
 
double distance (const geom::Geometry *g) const override
 
- Public Member Functions inherited from geos::geom::prep::BasicPreparedGeometry
 BasicPreparedGeometry (const Geometry *geom)
 
 ~BasicPreparedGeometry () override=default
 
const geom::GeometrygetGeometry () const override
 Gets the original Geometry which has been prepared. More...
 
const Coordinate::ConstVectgetRepresentativePoints () const
 
bool isAnyTargetComponentInTest (const geom::Geometry *testGeom) const
 
bool coveredBy (const geom::Geometry *g) const override
 
bool crosses (const geom::Geometry *g) const override
 
bool disjoint (const geom::Geometry *g) const override
 
bool overlaps (const geom::Geometry *g) const override
 
bool touches (const geom::Geometry *g) const override
 
bool within (const geom::Geometry *g) const override
 
std::unique_ptr< geom::CoordinateSequencenearestPoints (const geom::Geometry *g) const override
 
std::string toString ()
 
- Public Member Functions inherited from geos::geom::prep::PreparedGeometry
virtual ~PreparedGeometry ()
 

Private Attributes

bool isRectangle
 
std::unique_ptr< noding::FastSegmentSetIntersectionFindersegIntFinder
 
std::unique_ptr< algorithm::locate::PointOnGeometryLocatorptOnGeomLoc
 
noding::SegmentString::ConstVect segStrings
 
std::unique_ptr< operation::distance::IndexedFacetDistanceindexedDistance
 

Additional Inherited Members

- Protected Member Functions inherited from geos::geom::prep::BasicPreparedGeometry
void setGeometry (const geom::Geometry *geom)
 
bool envelopesIntersect (const geom::Geometry *g) const
 
bool envelopeCovers (const geom::Geometry *g) const
 

Detailed Description

A prepared version of Polygon or MultiPolygon geometries.

Author
mbdavis

Definition at line 52 of file PreparedPolygon.h.

Constructor & Destructor Documentation

geos::geom::prep::PreparedPolygon::PreparedPolygon ( const geom::Geometry geom)
geos::geom::prep::PreparedPolygon::~PreparedPolygon ( )
override

Member Function Documentation

bool geos::geom::prep::PreparedPolygon::contains ( const geom::Geometry g) const
overridevirtual

Default implementation.

Reimplemented from geos::geom::prep::BasicPreparedGeometry.

bool geos::geom::prep::PreparedPolygon::containsProperly ( const geom::Geometry g) const
overridevirtual

Default implementation.

Reimplemented from geos::geom::prep::BasicPreparedGeometry.

bool geos::geom::prep::PreparedPolygon::covers ( const geom::Geometry g) const
overridevirtual

Default implementation.

Reimplemented from geos::geom::prep::BasicPreparedGeometry.

double geos::geom::prep::PreparedPolygon::distance ( const geom::Geometry g) const
overridevirtual

Default implementation.

Reimplemented from geos::geom::prep::BasicPreparedGeometry.

operation::distance::IndexedFacetDistance* geos::geom::prep::PreparedPolygon::getIndexedFacetDistance ( ) const
noding::FastSegmentSetIntersectionFinder* geos::geom::prep::PreparedPolygon::getIntersectionFinder ( ) const
algorithm::locate::PointOnGeometryLocator* geos::geom::prep::PreparedPolygon::getPointLocator ( ) const
bool geos::geom::prep::PreparedPolygon::intersects ( const geom::Geometry g) const
overridevirtual

Default implementation.

Reimplemented from geos::geom::prep::BasicPreparedGeometry.

Member Data Documentation

std::unique_ptr<operation::distance::IndexedFacetDistance> geos::geom::prep::PreparedPolygon::indexedDistance
mutableprivate

Definition at line 58 of file PreparedPolygon.h.

bool geos::geom::prep::PreparedPolygon::isRectangle
private

Definition at line 54 of file PreparedPolygon.h.

std::unique_ptr<algorithm::locate::PointOnGeometryLocator> geos::geom::prep::PreparedPolygon::ptOnGeomLoc
mutableprivate

Definition at line 56 of file PreparedPolygon.h.

std::unique_ptr<noding::FastSegmentSetIntersectionFinder> geos::geom::prep::PreparedPolygon::segIntFinder
mutableprivate

Definition at line 55 of file PreparedPolygon.h.

noding::SegmentString::ConstVect geos::geom::prep::PreparedPolygon::segStrings
mutableprivate

Definition at line 57 of file PreparedPolygon.h.


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