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/MonotoneChainSelectAction.java rev. 1.6 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H 00020 #define GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H 00021 00022 #include <geos/export.h> 00023 #include <geos/geom/LineSegment.h> // composition 00024 #include <geos/geom/Envelope.h> // composition 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 00045 class GEOS_DLL MonotoneChainSelectAction { 00046 00047 protected: 00048 00049 geom::LineSegment selectedSegment; 00050 00051 public: 00052 00053 MonotoneChainSelectAction() {} 00054 00055 virtual ~MonotoneChainSelectAction() {} 00056 00058 virtual void select(MonotoneChain& mc, unsigned int start); 00059 00066 virtual void select(const geom::LineSegment& seg) = 0; 00067 00068 // these envelopes are used during the MonotoneChain search process 00069 // should only be visible by classes in this package 00070 geom::Envelope tempEnv1; 00071 }; 00072 00073 00074 } // namespace geos::index::chain 00075 } // namespace geos::index 00076 } // namespace geos 00077 00078 #endif // GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H 00079