GEOS 3.3.4

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

- File List

MonotoneChainOverlapAction.h
1 /**********************************************************************
2 * $Id: MonotoneChainOverlapAction.h 2961 2010-03-29 12:17:37Z mloskot $
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/MonotoneChainOverlapAction.java rev. 1.6 (JTS-1.10)
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
21 #define GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
22
23 #include <geos/export.h>
24 #include <geos/geom/LineSegment.h>
25 #include <geos/geom/Envelope.h>
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
45 class GEOS_DLL MonotoneChainOverlapAction {
46
47 protected:
48
49 geom::LineSegment overlapSeg1;
50
51 geom::LineSegment overlapSeg2;
52
53 public:
54
55 MonotoneChainOverlapAction() {};
56
57 virtual ~MonotoneChainOverlapAction() {};
58
67 virtual void overlap(MonotoneChain& mc1, std::size_t start1,
68 MonotoneChain& mc2, std::size_t start2);
69
76 virtual void overlap(const geom::LineSegment& /*seg1*/,
77 const geom::LineSegment& /*seg2*/)
78 {}
79
80 // these envelopes are used during the MonotoneChain search process
81 geom::Envelope tempEnv1;
82 geom::Envelope tempEnv2;
83 };
84
85 } // namespace geos::index::chain
86 } // namespace geos::index
87 } // namespace geos
88
89 #endif // GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
90
91 /**********************************************************************
92 * $Log$
93 * Revision 1.1 2006/03/22 18:12:31 strk
94 * indexChain.h header split.
95 *
96 **********************************************************************/
97