GEOS 3.6.2
SegmentIntersectionTester.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
7 * Copyright (C) 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************
15 *
16 * Last port: operation/predicate/SegmentIntersectionTester.java r378 (JTS-1.12)
17 *
18 **********************************************************************/
19
20#ifndef GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
21#define GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
22
23#include <geos/export.h>
24
25#include <geos/algorithm/LineIntersector.h> // for composition
26#include <geos/geom/Coordinate.h> // for composition
27
28// Forward declarations
29namespace geos {
30 namespace geom {
31 class LineString;
33 }
34}
35
36namespace geos {
37namespace operation { // geos::operation
38namespace predicate { // geos::operation::predicate
39
48class GEOS_DLL SegmentIntersectionTester {
49
50private:
51
56 algorithm::LineIntersector li; // Robust
57
58 bool hasIntersectionVar;
59
64
65
66public:
67
68 SegmentIntersectionTester(): hasIntersectionVar(false) {}
69
70 bool hasIntersectionWithLineStrings(const geom::LineString &line,
71 const std::vector<const geom::LineString *>& lines);
72
73 bool hasIntersection(const geom::LineString &line,
74 const geom::LineString &testLine);
75
91 const geom::LineString &testLine);
92
93
94};
95
96} // namespace geos::operation::predicate
97} // namespace geos::operation
98} // namespace geos
99
100#endif // ifndef GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:49
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Definition LineString.h:70
bool hasIntersectionWithEnvelopeFilter(const geom::LineString &line, const geom::LineString &testLine)
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25