GEOS 3.6.2
SweepLineSegment.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
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#ifndef GEOS_GEOMGRAPH_INDEX_SWEEPLINESEGMENT_H
17#define GEOS_GEOMGRAPH_INDEX_SWEEPLINESEGMENT_H
18
19
20#include <geos/export.h>
21#include <geos/geomgraph/index/SweepLineEventObj.h> // for inheritance
22
23// Forward declarations
24namespace geos {
25 namespace geom {
27 }
28 namespace geomgraph {
29 class Edge;
30 namespace index {
31 class SegmentIntersector;
32 }
33 }
34}
35
36namespace geos {
37namespace geomgraph { // geos::geomgraph
38namespace index { // geos::geomgraph::index
39
40class GEOS_DLL SweepLineSegment: public SweepLineEventOBJ {
41public:
42 SweepLineSegment(Edge *newEdge, int newPtIndex);
43 ~SweepLineSegment();
44 double getMinX();
45 double getMaxX();
46 void computeIntersections(SweepLineSegment *ss, SegmentIntersector *si);
47protected:
48 Edge *edge;
49 const geom::CoordinateSequence* pts;
50 int ptIndex;
51};
52
53
54
55} // namespace geos.geomgraph.index
56} // namespace geos.geomgraph
57} // namespace geos
58
59#endif
60
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Definition geomgraph/Edge.h:66
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes that implement topology graphs.
Definition IndexedNestedRingTester.h:34
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25