GEOS 3.14.0dev
MonotoneChainSelectAction.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2001-2002 Vivid Solutions Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: index/chain/MonotoneChainSelectAction.java rev. 1.6 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#pragma once
20
21#include <geos/export.h>
22#include <geos/geom/LineSegment.h> // composition
23#include <geos/geom/Envelope.h> // composition
24
25
26// Forward declarations
27namespace geos {
28namespace index {
29namespace chain {
30class MonotoneChain;
31}
32}
33}
34
35namespace geos {
36namespace index { // geos::index
37namespace chain { // geos::index::chain
38
45
46protected:
47
48 geom::LineSegment selectedSegment;
49
50public:
51
53
54 virtual
56
58 virtual void select(const MonotoneChain& mc, std::size_t start);
59
66 virtual void select(const geom::LineSegment& seg) = 0;
67
68};
69
70
71} // namespace geos::index::chain
72} // namespace geos::index
73} // namespace geos
74
Definition LineSegment.h:61
Definition MonotoneChainSelectAction.h:44
virtual void select(const geom::LineSegment &seg)=0
virtual void select(const MonotoneChain &mc, std::size_t start)
This function can be overridden if the original chain is needed.
Monotone Chains are a way of partitioning the segments of a linestring to allow for fast searching of...
Definition index/chain/MonotoneChain.h:85
Basic namespace for all GEOS functionalities.
Definition geos.h:39