EdgeString.h

00001 /**********************************************************************
00002  * $Id: EdgeString.h 1820 2006-09-06 16:54:23Z mloskot $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2006 Refractions Research Inc.
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Public Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  **********************************************************************/
00015 
00016 #ifndef GEOS_OP_LINEMERGE_EDGESTRING_H
00017 #define GEOS_OP_LINEMERGE_EDGESTRING_H
00018 
00019 #include <vector>
00020 
00021 // Forward declarations 
00022 namespace geos {
00023         namespace geom { 
00024                 class GeometryFactory;
00025                 class CoordinateSequence;
00026                 class LineString;
00027         }
00028         namespace operation { 
00029                 namespace linemerge { 
00030                         class LineMergeDirectedEdge;
00031                 }
00032         }
00033 }
00034 
00035 
00036 namespace geos {
00037 namespace operation { // geos::operation
00038 namespace linemerge { // geos::operation::linemerge
00039 
00045 class EdgeString {
00046 private:
00047         const geom::GeometryFactory *factory;
00048         std::vector<LineMergeDirectedEdge*> *directedEdges;
00049         geom::CoordinateSequence *coordinates;
00050         geom::CoordinateSequence* getCoordinates();
00051 public:
00052         /*
00053          * \brief
00054          * Constructs an EdgeString with the given factory used to
00055          * convert this EdgeString to a LineString
00056          */
00057         EdgeString(const geom::GeometryFactory *newFactory);
00058 
00059         ~EdgeString();
00060 
00064         void add(LineMergeDirectedEdge *directedEdge);
00065 
00066         /*
00067          * Converts this EdgeString into a LineString.
00068          */
00069         geom::LineString* toLineString();
00070 };
00071 
00072 } // namespace geos::operation::linemerge
00073 } // namespace geos::operation
00074 } // namespace geos
00075 
00076 #endif // GEOS_OP_LINEMERGE_EDGESTRING_H
00077 
00078 /**********************************************************************
00079  * $Log$
00080  * Revision 1.1  2006/03/22 10:13:53  strk
00081  * opLinemerge.h split
00082  *
00083  **********************************************************************/

Generated on Fri Mar 27 04:52:41 2009 for GEOS by  doxygen 1.5.4