SegmentIntersectionTester.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 Sandro Santilli <strk@kbt.io>
* 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: operation/predicate/SegmentIntersectionTester.java r378 (JTS-1.12)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/algorithm/LineIntersector.h> // for composition
#include <geos/geom/Coordinate.h> // for composition
// Forward declarations
namespace geos {
namespace geom {
class LineString;
class CoordinateSequence;
}
}
namespace geos {
namespace operation { // geos::operation
namespace predicate { // geos::operation::predicate
class GEOS_DLL SegmentIntersectionTester {
private:
algorithm::LineIntersector li; // Robust
bool hasIntersectionVar;
public:
SegmentIntersectionTester(): hasIntersectionVar(false) {}
bool hasIntersectionWithLineStrings(const geom::LineString& line,
const std::vector<const geom::LineString*>& lines);
bool hasIntersection(const geom::LineString& line,
const geom::LineString& testLine);
bool hasIntersectionWithEnvelopeFilter(const geom::LineString& line,
const geom::LineString& testLine);
};
} // namespace geos::operation::predicate
} // namespace geos::operation
} // namespace geos
geos::algorithm::LineIntersector
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:53
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
geos::geom::LineString
Definition LineString.h:66
geos::operation::predicate::SegmentIntersectionTester::hasIntersectionWithEnvelopeFilter
bool hasIntersectionWithEnvelopeFilter(const geom::LineString &line, const geom::LineString &testLine)
geos::geom
Definition Angle.h:26
geos::operation::predicate
Classes which implement topological predicates optimized for particular kinds of geometries.
Definition namespaces.h:236
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38