PreparedPolygonContainsProperly.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/PreparedPolygonContainsProperly.java rev 1.5 (JTS-1.10)
* (2007-12-12)
*
**********************************************************************/
#pragma once
#include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
namespace geos {
namespace geom {
class Geometry;
namespace prep {
class PreparedPolygon;
}
}
}
namespace geos {
namespace geom { // geos::geom
namespace prep { // geos::geom::prep
class PreparedPolygonContainsProperly : public PreparedPolygonPredicate {
private:
protected:
public:
static
bool
containsProperly(const PreparedPolygon* const prep, const geom::Geometry* geom)
{
PreparedPolygonContainsProperly polyInt(prep);
return polyInt.containsProperly(geom);
}
PreparedPolygonContainsProperly(const PreparedPolygon* const prep)
: PreparedPolygonPredicate(prep)
{ }
bool
containsProperly(const geom::Geometry* geom);
};
} // 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::PreparedPolygonContainsProperly::containsProperly
bool containsProperly(const geom::Geometry *geom)
Tests whether this PreparedPolygon containsProperly a given geometry.
geos::geom::prep::PreparedPolygonContainsProperly::PreparedPolygonContainsProperly
PreparedPolygonContainsProperly(const PreparedPolygon *const prep)
Creates an instance of this operation.
Definition PreparedPolygonContainsProperly.h:83
geos::geom::prep::PreparedPolygonContainsProperly::containsProperly
static bool containsProperly(const PreparedPolygon *const prep, const geom::Geometry *geom)
Computes the containsProperly predicate between a PreparedPolygon and a Geometry.
Definition PreparedPolygonContainsProperly.h:72
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