GEOS 3.6.2
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#ifndef GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
20#define GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
21
22#include <geos/export.h>
23#include <geos/geom/LineSegment.h> // composition
24#include <geos/geom/Envelope.h> // composition
25
26
27// Forward declarations
28namespace geos {
29 namespace index {
30 namespace chain {
31 class MonotoneChain;
32 }
33 }
34}
35
36namespace geos {
37namespace index { // geos::index
38namespace chain { // geos::index::chain
39
45class GEOS_DLL MonotoneChainSelectAction {
46
47protected:
48
49 geom::LineSegment selectedSegment;
50
51public:
52
53 MonotoneChainSelectAction() {}
54
55 virtual ~MonotoneChainSelectAction() {}
56
58 virtual void select(MonotoneChain& mc, unsigned int start);
59
66 virtual void select(const geom::LineSegment& seg) = 0;
67
68 // these envelopes are used during the MonotoneChain search process
69 // should only be visible by classes in this package
70 geom::Envelope tempEnv1;
71};
72
73
74} // namespace geos::index::chain
75} // namespace geos::index
76} // namespace geos
77
78#endif // GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
79
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:53
Definition LineSegment.h:57
virtual void select(MonotoneChain &mc, unsigned int start)
This function can be overridden if the original chain is needed.
virtual void select(const geom::LineSegment &seg)=0
Monotone Chains are a way of partitioning the segments of a linestring to allow for fast searching of...
Definition index/chain/MonotoneChain.h:86
Contains classes that implement Monotone Chains.
Definition MCPointInRing.h:41
Provides classes for various kinds of spatial indexes.
Definition IndexedNestedRingTester.h:31
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25