- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# MonotoneChainOverlapAction.h

    00001 /**********************************************************************
    00002  * $Id: MonotoneChainOverlapAction.h 1986 2007-06-08 15:27:42Z 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_MONOTONECHAINOVERLAPACTION_H
    00017 #define GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_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
    00041 class MonotoneChainOverlapAction {
    00042
    00043 protected:
    00044
    00045         geom::LineSegment *overlapSeg1;
    00046
    00047         geom::LineSegment *overlapSeg2;
    00048
    00049 public:
    00050
    00051         MonotoneChainOverlapAction();
    00052
    00053         virtual ~MonotoneChainOverlapAction();
    00054
    00061         virtual void overlap(MonotoneChain *mc1, int start1,
    00062                         MonotoneChain *mc2, int start2);
    00063
    00070         virtual void overlap(geom::LineSegment* /*newSeg1*/,
    00071                         geom::LineSegment* /*newSeg2*/)
    00072         {}
    00073
    00074         // these envelopes are used during the MonotoneChain search process
    00075         geom::Envelope *tempEnv1;
    00076         geom::Envelope *tempEnv2;
    00077 };
    00078
    00079 } // namespace geos::index::chain
    00080 } // namespace geos::index
    00081 } // namespace geos
    00082
    00083 #endif // GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
    00084
    00085 /**********************************************************************
    00086  * $Log$
    00087  * Revision 1.1  2006/03/22 18:12:31  strk
    00088  * indexChain.h header split.
    00089  *
    00090  **********************************************************************/
    00091