GEOS: MonotoneChainSelectAction.h Source File

GEOS 3.3.8

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

- File List

MonotoneChainSelectAction.h
1 /**********************************************************************
2 * $Id: MonotoneChainSelectAction.h 2556 2009-06-06 22:22:28Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
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 * Last port: index/chain/MonotoneChainSelectAction.java rev. 1.6 (JTS-1.10)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
21 #define GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
22
23 #include <geos/export.h>
24 #include <geos/geom/LineSegment.h> // composition
25 #include <geos/geom/Envelope.h> // composition
26
27
28 // Forward declarations
29 namespace geos {
30 namespace index {
31 namespace chain {
32 class MonotoneChain;
33 }
34 }
35 }
36
37 namespace geos {
38 namespace index { // geos::index
39 namespace chain { // geos::index::chain
40
46 class GEOS_DLL MonotoneChainSelectAction {
47
48 protected:
49
50 geom::LineSegment selectedSegment;
51
52 public:
53
54 MonotoneChainSelectAction() {}
55
56 virtual ~MonotoneChainSelectAction() {}
57
59 virtual void select(MonotoneChain& mc, unsigned int start);
60
67 virtual void select(const geom::LineSegment& seg) = 0;
68
69 // these envelopes are used during the MonotoneChain search process
70 // should only be visible by classes in this package
71 geom::Envelope tempEnv1;
72 };
73
74
75 } // namespace geos::index::chain
76 } // namespace geos::index
77 } // namespace geos
78
79 #endif // GEOS_IDX_CHAIN_MONOTONECHAINSELECTACTION_H
80
81 /**********************************************************************
82 * $Log$
83 * Revision 1.1 2006/03/22 18:12:31 strk
84 * indexChain.h header split.
85 *
86 **********************************************************************/
87