GEOS  3.9.1dev
PreparedLineStringIntersects.h
Go to the documentation of this file.
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 
26 #include <geos/geom/Coordinate.h>
28 
29 namespace geos {
30 namespace geom { // geos::geom
31 namespace prep { // geos::geom::prep
32 
45 public:
46 
55  static bool
57  {
59  return op.intersects(geom);
60  }
61 
66  : prepLine(prep)
67  { }
68 
75  bool intersects(const geom::Geometry* g) const;
76 
77 protected:
79 
88  bool isAnyTestPointInTarget(const geom::Geometry* testGeom) const;
89 
90  // Declare type as noncopyable
93 };
94 
95 } // namespace geos::geom::prep
96 } // namespace geos::geom
97 } // namespace geos
98 
99 #endif // GEOS_GEOM_PREP_PREPAREDLINESTRINGINTERSECTS_H
100 
PreparedLineStringIntersects & operator=(const PreparedLineStringIntersects &rhs)=delete
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
A prepared version of LinearRing, LineString or MultiLineString geometries.
Basic namespace for all GEOS functionalities.
bool isAnyTestPointInTarget(const geom::Geometry *testGeom) const
Computes the intersects spatial relationship predicate for a target PreparedLineString relative to al...
static bool intersects(PreparedLineString &prep, const geom::Geometry *geom)