GEOS
3.8.1
include
geos
geom
prep
PreparedLineStringIntersects.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2006 Refractions Research Inc.
7
*
8
* This is free software; you can redistribute and/or modify it under
9
* the terms of the GNU Lesser General Public Licence as published
10
* by the Free Software Foundation.
11
* See the COPYING file for more information.
12
*
13
*
14
**********************************************************************
15
*
16
* Last port: geom/prep/PreparedLineStringIntersects.java r338 (JTS-1.12)
17
*
18
**********************************************************************/
19
20
#ifndef GEOS_GEOM_PREP_PREPAREDLINESTRINGINTERSECTS_H
21
#define GEOS_GEOM_PREP_PREPAREDLINESTRINGINTERSECTS_H
22
23
#include <geos/geom/prep/PreparedLineString.h>
24
#include <geos/algorithm/PointLocator.h>
25
#include <geos/geom/util/ComponentCoordinateExtracter.h>
26
#include <geos/geom/Coordinate.h>
27
#include <geos/noding/SegmentStringUtil.h>
28
29
namespace
geos
{
30
namespace
geom {
// geos::geom
31
namespace
prep {
// geos::geom::prep
32
44
class
PreparedLineStringIntersects {
45
public
:
46
55
static
bool
56
intersects
(PreparedLineString& prep,
const
geom::Geometry* geom)
57
{
58
PreparedLineStringIntersects
op(prep);
59
return
op.intersects(geom);
60
}
61
65
PreparedLineStringIntersects
(PreparedLineString& prep)
66
: prepLine(prep)
67
{ }
68
75
bool
intersects
(
const
geom::Geometry* g)
const
;
76
77
protected
:
78
PreparedLineString& prepLine;
79
88
bool
isAnyTestPointInTarget
(
const
geom::Geometry* testGeom)
const
;
89
90
// Declare type as noncopyable
91
PreparedLineStringIntersects
(
const
PreparedLineStringIntersects
& other) =
delete
;
92
PreparedLineStringIntersects
& operator=(
const
PreparedLineStringIntersects
& rhs) =
delete
;
93
};
94
95
}
// namespace geos::geom::prep
96
}
// namespace geos::geom
97
}
// namespace geos
98
99
#endif // GEOS_GEOM_PREP_PREPAREDLINESTRINGINTERSECTS_H
100
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:24
geos::geom::prep::PreparedLineStringIntersects::PreparedLineStringIntersects
PreparedLineStringIntersects(PreparedLineString &prep)
Definition:
PreparedLineStringIntersects.h:128
geos::geom::prep::PreparedLineStringIntersects::intersects
static bool intersects(PreparedLineString &prep, const geom::Geometry *geom)
Definition:
PreparedLineStringIntersects.h:119
geos::geom::prep::PreparedLineStringIntersects::isAnyTestPointInTarget
bool isAnyTestPointInTarget(const geom::Geometry *testGeom) const
geos::geom::prep::PreparedLineStringIntersects
Computes the intersects spatial relationship predicate for a target PreparedLineString relative to al...
Definition:
PreparedLineStringIntersects.h:91
Generated by
1.8.16