GEOS 3.3.8

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

- File List

SweepLineSegment.h
1 /**********************************************************************
2 * $Id: SweepLineSegment.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) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************/
16
17 #ifndef GEOS_GEOMGRAPH_INDEX_SWEEPLINESEGMENT_H
18 #define GEOS_GEOMGRAPH_INDEX_SWEEPLINESEGMENT_H
19
20
21 #include <geos/export.h>
22 #include <geos/geomgraph/index/SweepLineEventObj.h> // for inheritance
23
24 // Forward declarations
25 namespace geos {
26 namespace geom {
27 class CoordinateSequence;
28 }
29 namespace geomgraph {
30 class Edge;
31 namespace index {
32 class SegmentIntersector;
33 }
34 }
35 }
36
37 namespace geos {
38 namespace geomgraph { // geos::geomgraph
39 namespace index { // geos::geomgraph::index
40
41 class GEOS_DLL SweepLineSegment: public SweepLineEventOBJ {
42 public:
43 SweepLineSegment(Edge *newEdge, int newPtIndex);
44 ~SweepLineSegment();
45 double getMinX();
46 double getMaxX();
47 void computeIntersections(SweepLineSegment *ss, SegmentIntersector *si);
48 protected:
49 Edge *edge;
50 const geom::CoordinateSequence* pts;
51 int ptIndex;
52 };
53
54
55
56 } // namespace geos.geomgraph.index
57 } // namespace geos.geomgraph
58 } // namespace geos
59
60 #endif
61
62 /**********************************************************************
63 * $Log$
64 * Revision 1.1 2006/03/14 12:55:56 strk
65 * Headers split: geomgraphindex.h, nodingSnapround.h
66 *
67 **********************************************************************/
68