GEOS: MonotoneChainBuilder.h Source File

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

# MonotoneChainBuilder.h

    00001 /**********************************************************************
    00002  * $Id: MonotoneChainBuilder.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_MONOTONECHAINBUILDER_H
    00017 #define GEOS_IDX_CHAIN_MONOTONECHAINBUILDER_H
    00018
    00019 #include <vector>
    00020
    00021 // Forward declarations
    00022 namespace geos {
    00023         namespace geom {
    00024                 class CoordinateSequence;
    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
    00044 class MonotoneChainBuilder {
    00045
    00046 public:
    00047
    00048         MonotoneChainBuilder(){}
    00049
    00055         static std::vector<MonotoneChain*>* getChains(
    00056                         const geom::CoordinateSequence *pts,
    00057                         void* context);
    00058
    00064         static void getChains(const geom::CoordinateSequence *pts,
    00065                         void* context,
    00066                         std::vector<MonotoneChain*>& mcList);
    00067
    00068         static std::vector<MonotoneChain*>* getChains(const geom::CoordinateSequence *pts)
    00069         {
    00070                 return getChains(pts, NULL);
    00071         }
    00072
    00079         static void getChainStartIndices(const geom::CoordinateSequence *pts,
    00080                         std::vector<int>& startIndexList);
    00081
    00086         static int findChainEnd(const geom::CoordinateSequence *pts, int start);
    00087 };
    00088
    00089 } // namespace geos::index::chain
    00090 } // namespace geos::index
    00091 } // namespace geos
    00092
    00093 #endif // GEOS_IDX_CHAIN_MONOTONECHAINBUILDER_H
    00094
    00095 /**********************************************************************
    00096  * $Log$
    00097  * Revision 1.1  2006/03/22 18:12:31  strk
    00098  * indexChain.h header split.
    00099  *
    00100  **********************************************************************/
    00101