GEOS
3.3.9
|
00001 /********************************************************************** 00002 * $Id: MonotoneChain.h 3332 2011-05-06 18:51:46Z strk $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2005-2006 Refractions Research Inc. 00008 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00009 * 00010 * This is free software; you can redistribute and/or modify it under 00011 * the terms of the GNU Lesser General Public Licence as published 00012 * by the Free Software Foundation. 00013 * See the COPYING file for more information. 00014 * 00015 ********************************************************************** 00016 * 00017 * Last port: geomgraph/index/MonotoneChain.java rev. 1.3 (JTS-1.7) 00018 * 00019 **********************************************************************/ 00020 00021 #ifndef GEOS_GEOMGRAPH_INDEX_MONOTONECHAIN_H 00022 #define GEOS_GEOMGRAPH_INDEX_MONOTONECHAIN_H 00023 00024 00025 #include <geos/export.h> 00026 #include <geos/geomgraph/index/SweepLineEventObj.h> // for inheritance 00027 #include <geos/geomgraph/index/MonotoneChainEdge.h> // for inline 00028 00029 // Forward declarations 00030 namespace geos { 00031 namespace geomgraph { 00032 namespace index { 00033 class SegmentIntersector; 00034 } 00035 } 00036 } 00037 00038 namespace geos { 00039 namespace geomgraph { // geos::geomgraph 00040 namespace index { // geos::geomgraph::index 00041 00045 class GEOS_DLL MonotoneChain: public SweepLineEventOBJ { 00046 private: 00047 MonotoneChainEdge *mce; 00048 int chainIndex; 00049 00050 public: 00051 00052 MonotoneChain(MonotoneChainEdge *newMce, int newChainIndex): 00053 mce(newMce), 00054 chainIndex(newChainIndex) 00055 {} 00056 00057 ~MonotoneChain() {} 00058 00059 void computeIntersections(MonotoneChain *mc,SegmentIntersector *si) { 00060 mce->computeIntersectsForChain(chainIndex,*(mc->mce),mc->chainIndex,*si); 00061 } 00062 }; 00063 00064 00065 00066 00067 } // namespace geos.geomgraph.index 00068 } // namespace geos.geomgraph 00069 } // namespace geos 00070 00071 #endif 00072 00073 /********************************************************************** 00074 * $Log$ 00075 * Revision 1.1 2006/03/14 12:55:55 strk 00076 * Headers split: geomgraphindex.h, nodingSnapround.h 00077 * 00078 **********************************************************************/ 00079