GEOS
3.12.0
include
geos
geomgraph
index
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
#pragma once
17
18
#include <vector>
19
#include <geos/export.h>
20
21
// Forward declarations
22
namespace
geos
{
23
namespace
geom {
24
class
CoordinateSequence;
25
}
26
}
27
28
namespace
geos
{
29
namespace
geomgraph {
// geos::geomgraph
30
namespace
index {
// geos::geomgraph::index
31
54
class
GEOS_DLL
MonotoneChainIndexer
{
55
56
public
:
57
58
MonotoneChainIndexer
() {}
59
60
void
getChainStartIndices(
const
geom::CoordinateSequence
*, std::vector<std::size_t>&);
61
62
private
:
63
64
std::size_t findChainEnd(
const
geom::CoordinateSequence
* pts, std::size_t start);
65
66
};
67
68
}
// namespace geos.geomgraph.index
69
}
// namespace geos.geomgraph
70
}
// namespace geos
71
geos::geomgraph::index::MonotoneChainIndexer
MonotoneChains are a way of partitioning the segments of an edge to allow for fast searching of inter...
Definition:
MonotoneChainIndexer.h:54
geos
Basic namespace for all GEOS functionalities.
Definition:
Angle.h:25
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition:
CoordinateSequence.h:56
Generated by
1.8.20