GEOS 3.3.1
|
00001 /********************************************************************** 00002 * $Id: MonotoneChainOverlapAction.h 2961 2010-03-29 12:17:37Z mloskot $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00008 * 00009 * This is free software; you can redistribute and/or modify it under 00010 * the terms of the GNU Lesser General Public Licence as published 00011 * by the Free Software Foundation. 00012 * See the COPYING file for more information. 00013 * 00014 ********************************************************************** 00015 * 00016 * Last port: index/chain/MonotoneChainOverlapAction.java rev. 1.6 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H 00021 #define GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H 00022 00023 #include <geos/export.h> 00024 #include <geos/geom/LineSegment.h> 00025 #include <geos/geom/Envelope.h> 00026 00027 00028 // Forward declarations 00029 namespace geos { 00030 namespace index { 00031 namespace chain { 00032 class MonotoneChain; 00033 } 00034 } 00035 } 00036 00037 namespace geos { 00038 namespace index { // geos::index 00039 namespace chain { // geos::index::chain 00040 00045 class GEOS_DLL MonotoneChainOverlapAction { 00046 00047 protected: 00048 00049 geom::LineSegment overlapSeg1; 00050 00051 geom::LineSegment overlapSeg2; 00052 00053 public: 00054 00055 MonotoneChainOverlapAction() {}; 00056 00057 virtual ~MonotoneChainOverlapAction() {}; 00058 00067 virtual void overlap(MonotoneChain& mc1, std::size_t start1, 00068 MonotoneChain& mc2, std::size_t start2); 00069 00076 virtual void overlap(const geom::LineSegment& /*seg1*/, 00077 const geom::LineSegment& /*seg2*/) 00078 {} 00079 00080 // these envelopes are used during the MonotoneChain search process 00081 geom::Envelope tempEnv1; 00082 geom::Envelope tempEnv2; 00083 }; 00084 00085 } // namespace geos::index::chain 00086 } // namespace geos::index 00087 } // namespace geos 00088 00089 #endif // GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H 00090 00091 /********************************************************************** 00092 * $Log$ 00093 * Revision 1.1 2006/03/22 18:12:31 strk 00094 * indexChain.h header split. 00095 * 00096 **********************************************************************/ 00097