MonotoneChainSelectAction.h

00001 /**********************************************************************
00002  * $Id: MonotoneChainSelectAction.h 1820 2006-09-06 16:54:23Z 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 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
00017 #define GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
00018 
00019 
00020 // Forward declarations
00021 namespace geos {
00022         namespace geom {
00023                 class Envelope;
00024                 class LineSegment;
00025         }
00026         namespace index { 
00027                 namespace chain { 
00028                         class MonotoneChain;
00029                 }
00030         }
00031 }
00032 
00033 namespace geos {
00034 namespace index { // geos::index
00035 namespace chain { // geos::index::chain
00036 
00043 class MonotoneChainSelectAction {
00044 
00045 protected:
00046 
00047         geom::LineSegment* selectedSegment;
00048 
00049 public:
00050 
00051         MonotoneChainSelectAction();
00052 
00053         virtual ~MonotoneChainSelectAction();
00054 
00056         virtual void select(MonotoneChain& mc, unsigned int start);
00057 
00063         virtual void select(geom::LineSegment* newSeg)=0;
00064 
00065         // these envelopes are used during the MonotoneChain search process
00066         geom::Envelope* tempEnv1;
00067 };
00068 
00069 
00070 } // namespace geos::index::chain
00071 } // namespace geos::index
00072 } // namespace geos
00073 
00074 #endif // GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
00075 
00076 /**********************************************************************
00077  * $Log$
00078  * Revision 1.1  2006/03/22 18:12:31  strk
00079  * indexChain.h header split.
00080  *
00081  **********************************************************************/
00082 

Generated on Fri Mar 27 04:52:52 2009 for GEOS by  doxygen 1.5.4