PreparedLineStringIntersects.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/PreparedLineStringIntersects.java r338 (JTS-1.12)
*
**********************************************************************/
#pragma once
#include <geos/geom/prep/PreparedLineString.h>
#include <geos/algorithm/PointLocator.h>
#include <geos/geom/util/ComponentCoordinateExtracter.h>
#include <geos/geom/Coordinate.h>
#include <geos/noding/SegmentStringUtil.h>
namespace geos {
namespace geom { // geos::geom
namespace prep { // geos::geom::prep
class PreparedLineStringIntersects {
public:
static bool
intersects(PreparedLineString& prep, const geom::Geometry* geom)
{
PreparedLineStringIntersects op(prep);
return op.intersects(geom);
}
PreparedLineStringIntersects(PreparedLineString& prep)
: prepLine(prep)
{ }
bool intersects(const geom::Geometry* g) const;
protected:
PreparedLineString& prepLine;
bool isAnyTestPointInTarget(const geom::Geometry* testGeom) const;
// Declare type as noncopyable
PreparedLineStringIntersects(const PreparedLineStringIntersects& other) = delete;
PreparedLineStringIntersects& operator=(const PreparedLineStringIntersects& rhs) = delete;
};
} // namespace geos::geom::prep
} // namespace geos::geom
} // namespace geos
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::prep::PreparedLineStringIntersects::intersects
static bool intersects(PreparedLineString &prep, const geom::Geometry *geom)
Definition PreparedLineStringIntersects.h:55
geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects
PreparedLineStringIntersects(PreparedLineString &prep)
Definition PreparedLineStringIntersects.h:64
geos::geom::prep::PreparedLineStringIntersects::intersects
bool intersects(const geom::Geometry *g) const
geos::geom::prep::PreparedLineStringIntersects::isAnyTestPointInTarget
bool isAnyTestPointInTarget(const geom::Geometry *testGeom) const
geos::geom::prep::PreparedLineString
A prepared version of LinearRing, LineString or MultiLineString geometries.
Definition PreparedLineString.h:41
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