Sync linemerge package to JTS-1.12 (nothing changed)
[geos.git] / include / geos / operation / linemerge / LineMergeEdge.h
blob36f87c472dfe7d8ab9868fb40baad1938fcbcd02
1 /**********************************************************************
2 * $Id$
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
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.
15 **********************************************************************
17 * Last port: operation/linemerge/LineMergeEdge.java r378 (JTS-1.12)
19 **********************************************************************/
21 #ifndef GEOS_OP_LINEMERGE_LINEMERGEEDGE_H
22 #define GEOS_OP_LINEMERGE_LINEMERGEEDGE_H
24 #include <geos/export.h>
26 #include <geos/planargraph/Edge.h> // for inheritance
28 // Forward declarations
29 namespace geos {
30 namespace geom {
31 class LineString;
36 namespace geos {
37 namespace operation { // geos::operation
38 namespace linemerge { // geos::operation::linemerge
40 /** \brief
41 * An edge of a LineMergeGraph. The <code>marked</code> field indicates
42 * whether this Edge has been logically deleted from the graph.
44 class GEOS_DLL LineMergeEdge: public planargraph::Edge {
45 private:
46 const geom::LineString *line;
47 public:
48 /**
49 * Constructs a LineMergeEdge with vertices given by the specified
50 * LineString.
52 LineMergeEdge(const geom::LineString *newLine);
54 /**
55 * Returns the LineString specifying the vertices of this edge.
57 const geom::LineString* getLine() const;
61 } // namespace geos::operation::linemerge
62 } // namespace geos::operation
63 } // namespace geos
65 #endif // GEOS_OP_LINEMERGE_LINEMERGEEDGE_H
67 /**********************************************************************
68 * $Log$
69 * Revision 1.1 2006/03/22 10:13:53 strk
70 * opLinemerge.h split
72 **********************************************************************/