PreparedPolygonPredicate.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
*
**********************************************************************
*
* Last port: geom/prep/PreparedPolygonPredicate.java rev. 1.4 (JTS-1.10)
* (2007-12-12)
*
**********************************************************************/
#pragma once
#include <geos/geom/Coordinate.h>
#include <geos/geom/Location.h>
// forward declarations
namespace geos {
namespace algorithm {
namespace locate {
class PointOnGeometryLocator;
}
}
namespace geom {
class Geometry;
namespace prep {
class PreparedPolygon;
}
}
namespace noding {
class FastSegmentSetIntersectionFinder;
}
}
namespace geos {
namespace geom { // geos::geom
namespace prep { // geos::geom::prep
class PreparedPolygonPredicate {
private:
// Declare type as noncopyable
PreparedPolygonPredicate(const PreparedPolygonPredicate& other) = delete;
PreparedPolygonPredicate& operator=(const PreparedPolygonPredicate& rhs) = delete;
protected:
const PreparedPolygon* const prepPoly;
geom::Location getOutermostTestComponentLocation(const geom::Geometry* testGeom) const;
bool isAllTestComponentsInTargetInterior(const geom::Geometry* testGeom) const;
bool isAnyTestComponentInTarget(const geom::Geometry* testGeom) const;
bool isAnyTestComponentInTargetInterior(const geom::Geometry* testGeom) const;
bool isAnyTargetComponentInAreaTest(const geom::Geometry* testGeom,
const std::vector<const geom::CoordinateXY*>* targetRepPts) const;
public:
PreparedPolygonPredicate(const PreparedPolygon* const p_prepPoly)
: prepPoly(p_prepPoly)
{ }
virtual
~PreparedPolygonPredicate()
{ }
};
} // namespace geos::geom::prep
} // namespace geos::geom
} // namespace geos
geos::algorithm::locate::PointOnGeometryLocator
An interface for classes which determine the Location of points in Polygon or MultiPolygon geometries...
Definition PointOnGeometryLocator.h:36
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::prep::PreparedPolygonPredicate
A base class for predicate operations on PreparedPolygons.
Definition PreparedPolygonPredicate.h:57
geos::geom::prep::PreparedPolygonPredicate::isAnyTestComponentInTargetInterior
bool isAnyTestComponentInTargetInterior(const geom::Geometry *testGeom) const
Tests whether any component of the test Geometry intersects the interior of the target geometry.
geos::geom::prep::PreparedPolygonPredicate::isAllTestComponentsInTargetInterior
bool isAllTestComponentsInTargetInterior(const geom::Geometry *testGeom) const
Tests whether all components of the test Geometry are contained in the interior of the target geometr...
geos::geom::prep::PreparedPolygonPredicate::isAnyTargetComponentInAreaTest
bool isAnyTargetComponentInAreaTest(const geom::Geometry *testGeom, const std::vector< const geom::CoordinateXY * > *targetRepPts) const
geos::geom::prep::PreparedPolygonPredicate::getOutermostTestComponentLocation
geom::Location getOutermostTestComponentLocation(const geom::Geometry *testGeom) const
Returns the outermost Location among a test point from each components of the test geometry.
geos::geom::prep::PreparedPolygonPredicate::PreparedPolygonPredicate
PreparedPolygonPredicate(const PreparedPolygon *const p_prepPoly)
Creates an instance of this operation.
Definition PreparedPolygonPredicate.h:128
geos::geom::prep::PreparedPolygonPredicate::isAnyTestComponentInTarget
bool isAnyTestComponentInTarget(const geom::Geometry *testGeom) const
Tests whether any component of the test Geometry intersects the area of the target geometry.
geos::geom::prep::PreparedPolygon
A prepared version of Polygon or MultiPolygon geometries.
Definition PreparedPolygon.h:51
geos::noding::FastSegmentSetIntersectionFinder
Finds if two sets of SegmentStrings intersect.
Definition FastSegmentSetIntersectionFinder.h:50
geos::algorithm::locate
Classes which determine the Location of points in geometries.
Definition IndexedPointInAreaLocator.h:40
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom::prep
Contains classes and interfaces implementing algorithms that optimize the performance of repeated cal...
Definition AbstractPreparedPolygonContains.h:30
geos::geom
Definition Angle.h:26
geos::geom::Location
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
geos::noding
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition CoverageCleaner.h:42
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38