GEOS 3.6.2
MonotoneChainIndexer.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#ifndef GEOS_GEOMGRAPH_INDEX_MONOTONECHAININDEXER_H
17#define GEOS_GEOMGRAPH_INDEX_MONOTONECHAININDEXER_H
18
19#include <geos/export.h>
20#include <vector>
21
22// Forward declarations
23namespace geos {
24 namespace geom {
26 }
27}
28
29namespace geos {
30namespace geomgraph { // geos::geomgraph
31namespace index { // geos::geomgraph::index
32
33
34class GEOS_DLL MonotoneChainIndexer{
35
36public:
37
38 MonotoneChainIndexer(){}
39
40 void getChainStartIndices(const geom::CoordinateSequence*, std::vector<int>&);
41
42private:
43
44 int findChainEnd(const geom::CoordinateSequence* pts, int start);
45
46};
47
48} // namespace geos.geomgraph.index
49} // namespace geos.geomgraph
50} // namespace geos
51
52#endif // GEOS_GEOMGRAPH_INDEX_MONOTONECHAININDEXER_H
53
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25