GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 * 00014 ********************************************************************** 00015 * 00016 * Last port: geom/prep/PreparedLineString.java rev 1.3 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_GEOM_PREP_PREPAREDLINESTRING_H 00021 #define GEOS_GEOM_PREP_PREPAREDLINESTRING_H 00022 00023 #include <geos/geom/prep/BasicPreparedGeometry.h> // for inheritance 00024 #include <geos/noding/SegmentString.h> 00025 00026 namespace geos { 00027 namespace noding { 00028 class FastSegmentSetIntersectionFinder; 00029 } 00030 } 00031 00032 namespace geos { 00033 namespace geom { // geos::geom 00034 namespace prep { // geos::geom::prep 00035 00043 class PreparedLineString : public BasicPreparedGeometry 00044 { 00045 private: 00046 noding::FastSegmentSetIntersectionFinder * segIntFinder; 00047 mutable noding::SegmentString::ConstVect segStrings; 00048 00049 protected: 00050 public: 00051 PreparedLineString(const Geometry * geom) 00052 : 00053 BasicPreparedGeometry( geom), 00054 segIntFinder( NULL) 00055 { } 00056 00057 ~PreparedLineString(); 00058 00059 noding::FastSegmentSetIntersectionFinder * getIntersectionFinder(); 00060 00061 bool intersects(const geom::Geometry * g) const; 00062 00063 }; 00064 00065 } // namespace geos::geom::prep 00066 } // namespace geos::geom 00067 } // namespace geos 00068 00069 #endif // GEOS_GEOM_PREP_PREPAREDLINESTRING_H