PreparedPolygonContains.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/PreparedPolygonContains.java rev 1.5 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/geom/prep/AbstractPreparedPolygonContains.h> // inherited
// forward declarations
namespace geos {
namespace geom {
class Geometry;
namespace prep {
class PreparedPolygon;
}
}
}
namespace geos {
namespace geom { // geos::geom
namespace prep { // geos::geom::prep
class PreparedPolygonContains : public AbstractPreparedPolygonContains {
public:
PreparedPolygonContains(const PreparedPolygon* const prepPoly);
bool
contains(const geom::Geometry* geom)
{
return eval(geom);
}
static bool
contains(const PreparedPolygon* const prep, const geom::Geometry* geom)
{
PreparedPolygonContains polyInt(prep);
return polyInt.contains(geom);
}
protected:
bool fullTopologicalPredicate(const geom::Geometry* geom) override;
};
} // geos::geom::prep
} // geos::geom
} // geos
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::prep::AbstractPreparedPolygonContains::eval
bool eval(const geom::Geometry *geom)
geos::geom::prep::PreparedPolygonContains::PreparedPolygonContains
PreparedPolygonContains(const PreparedPolygon *const prepPoly)
geos::geom::prep::PreparedPolygonContains::contains
bool contains(const geom::Geometry *geom)
Definition PreparedPolygonContains.h:70
geos::geom::prep::PreparedPolygonContains::fullTopologicalPredicate
bool fullTopologicalPredicate(const geom::Geometry *geom) override
geos::geom::prep::PreparedPolygonContains::contains
static bool contains(const PreparedPolygon *const prep, const geom::Geometry *geom)
Definition PreparedPolygonContains.h:84
geos::geom::prep::PreparedPolygon
A prepared version of Polygon or MultiPolygon geometries.
Definition PreparedPolygon.h:51
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
Basic namespace for all GEOS functionalities.
Definition geos.h:38