| 1 | /**********************************************************************
|
|---|
| 2 | * $Id: LineMergeEdge.cpp 3309 2011-04-27 15:47:14Z 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 | * Last port: operation/linemerge/LineMergeEdge.java r378 (JTS-1.12)
|
|---|
| 18 | *
|
|---|
| 19 | **********************************************************************/
|
|---|
| 20 |
|
|---|
| 21 | #include <geos/operation/linemerge/LineMergeEdge.h>
|
|---|
| 22 |
|
|---|
| 23 | using namespace geos::geom;
|
|---|
| 24 |
|
|---|
| 25 | namespace geos {
|
|---|
| 26 | namespace operation { // geos.operation
|
|---|
| 27 | namespace linemerge { // geos.operation.linemerge
|
|---|
| 28 |
|
|---|
| 29 | /**
|
|---|
| 30 | * Constructs a LineMergeEdge with vertices given by the specified LineString.
|
|---|
| 31 | */
|
|---|
| 32 | LineMergeEdge::LineMergeEdge(const LineString *newLine):
|
|---|
| 33 | line(newLine)
|
|---|
| 34 | {
|
|---|
| 35 | //line=newLine;
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | /**
|
|---|
| 39 | * Returns the LineString specifying the vertices of this edge.
|
|---|
| 40 | */
|
|---|
| 41 | const LineString *
|
|---|
| 42 | LineMergeEdge::getLine() const {
|
|---|
| 43 | return line;
|
|---|
| 44 | }
|
|---|
| 45 |
|
|---|
| 46 | } // namespace geos.operation.linemerge
|
|---|
| 47 | } // namespace geos.operation
|
|---|
| 48 | } // namespace geos
|
|---|
| 49 |
|
|---|
| 50 | /**********************************************************************
|
|---|
| 51 | * $Log$
|
|---|
| 52 | * Revision 1.6 2006/03/22 10:13:54 strk
|
|---|
| 53 | * opLinemerge.h split
|
|---|
| 54 | *
|
|---|
| 55 | **********************************************************************/
|
|---|
| 56 |
|
|---|