GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2001-2002 Vivid Solutions 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 * Last port: index/chain/MonotoneChainOverlapAction.java rev. 1.6 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H 00020 #define GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H 00021 00022 #include <geos/export.h> 00023 #include <geos/geom/LineSegment.h> 00024 #include <geos/geom/Envelope.h> 00025 00026 00027 // Forward declarations 00028 namespace geos { 00029 namespace index { 00030 namespace chain { 00031 class MonotoneChain; 00032 } 00033 } 00034 } 00035 00036 namespace geos { 00037 namespace index { // geos::index 00038 namespace chain { // geos::index::chain 00039 00044 class GEOS_DLL MonotoneChainOverlapAction { 00045 00046 protected: 00047 00048 geom::LineSegment overlapSeg1; 00049 00050 geom::LineSegment overlapSeg2; 00051 00052 public: 00053 00054 MonotoneChainOverlapAction() {} 00055 00056 virtual ~MonotoneChainOverlapAction() {} 00057 00066 virtual void overlap(MonotoneChain& mc1, std::size_t start1, 00067 MonotoneChain& mc2, std::size_t start2); 00068 00075 virtual void overlap(const geom::LineSegment& /*seg1*/, 00076 const geom::LineSegment& /*seg2*/) 00077 {} 00078 00079 // these envelopes are used during the MonotoneChain search process 00080 geom::Envelope tempEnv1; 00081 geom::Envelope tempEnv2; 00082 }; 00083 00084 } // namespace geos::index::chain 00085 } // namespace geos::index 00086 } // namespace geos 00087 00088 #endif // GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H 00089