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

- File List

# EdgeString.h

    00001 /**********************************************************************
    00002  * $Id: EdgeString.h 2562 2009-06-08 15:28:27Z strk $
    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  * Last port: operation/linemerge/EdgeString.java rev. 1.5 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_OP_LINEMERGE_EDGESTRING_H
    00021 #define GEOS_OP_LINEMERGE_EDGESTRING_H
    00022
    00023 #include <geos/export.h>
    00024 #include <vector>
    00025
    00026 // Forward declarations
    00027 namespace geos {
    00028         namespace geom {
    00029                 class GeometryFactory;
    00030                 class CoordinateSequence;
    00031                 class LineString;
    00032         }
    00033         namespace operation {
    00034                 namespace linemerge {
    00035                         class LineMergeDirectedEdge;
    00036                 }
    00037         }
    00038 }
    00039
    00040
    00041 namespace geos {
    00042 namespace operation { // geos::operation
    00043 namespace linemerge { // geos::operation::linemerge
    00044
    00050 class GEOS_DLL EdgeString {
    00051 private:
    00052         const geom::GeometryFactory *factory;
    00053         std::vector<LineMergeDirectedEdge*> *directedEdges;
    00054         geom::CoordinateSequence *coordinates;
    00055         geom::CoordinateSequence* getCoordinates();
    00056 public:
    00057         /*
    00058          * \brief
    00059          * Constructs an EdgeString with the given factory used to
    00060          * convert this EdgeString to a LineString
    00061          */
    00062         EdgeString(const geom::GeometryFactory *newFactory);
    00063
    00064         ~EdgeString();
    00065
    00069         void add(LineMergeDirectedEdge *directedEdge);
    00070
    00071         /*
    00072          * Converts this EdgeString into a LineString.
    00073          */
    00074         geom::LineString* toLineString();
    00075 };
    00076
    00077 } // namespace geos::operation::linemerge
    00078 } // namespace geos::operation
    00079 } // namespace geos
    00080
    00081 #endif // GEOS_OP_LINEMERGE_EDGESTRING_H
    00082
    00083 /**********************************************************************
    00084  * $Log$
    00085  * Revision 1.1  2006/03/22 10:13:53  strk
    00086  * opLinemerge.h split
    00087  *
    00088  **********************************************************************/