GEOS: EdgeEndBuilder.h Source File

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

- File List

# EdgeEndBuilder.h

    00001 /**********************************************************************
    00002  * $Id: EdgeEndBuilder.h 2557 2009-06-08 09:30:55Z 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/relate/EdgeEndBuilder.java rev. 1.12 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_OP_RELATE_EDGEENDBUILDER_H
    00021 #define GEOS_OP_RELATE_EDGEENDBUILDER_H
    00022
    00023 #include <geos/export.h>
    00024
    00025 #include <vector>
    00026
    00027 // Forward declarations
    00028 namespace geos {
    00029         namespace geom {
    00030                 class IntersectionMatrix;
    00031                 class Coordinate;
    00032         }
    00033         namespace geomgraph {
    00034                 class Edge;
    00035                 class EdgeIntersection;
    00036                 class EdgeEnd;
    00037         }
    00038 }
    00039
    00040
    00041 namespace geos {
    00042 namespace operation { // geos::operation
    00043 namespace relate { // geos::operation::relate
    00044
    00049 class GEOS_DLL EdgeEndBuilder {
    00050 public:
    00051         EdgeEndBuilder() {}
    00052
    00053         std::vector<geomgraph::EdgeEnd*> *computeEdgeEnds(std::vector<geomgraph::Edge*> *edges);
    00054         void computeEdgeEnds(geomgraph::Edge *edge,std::vector<geomgraph::EdgeEnd*> *l);
    00055
    00056 protected:
    00057
    00058         void createEdgeEndForPrev(geomgraph::Edge *edge,
    00059                         std::vector<geomgraph::EdgeEnd*> *l,
    00060                         geomgraph::EdgeIntersection *eiCurr,
    00061                         geomgraph::EdgeIntersection *eiPrev);
    00062
    00063         void createEdgeEndForNext(geomgraph::Edge *edge,
    00064                         std::vector<geomgraph::EdgeEnd*> *l,
    00065                         geomgraph::EdgeIntersection *eiCurr,
    00066                         geomgraph::EdgeIntersection *eiNext);
    00067 };
    00068
    00069 } // namespace geos:operation:relate
    00070 } // namespace geos:operation
    00071 } // namespace geos
    00072
    00073 #endif // GEOS_OP_RELATE_EDGEENDBUILDER_H
    00074
    00075 /**********************************************************************
    00076  * $Log$
    00077  * Revision 1.1  2006/03/21 13:11:29  strk
    00078  * opRelate.h header split
    00079  *
    00080  **********************************************************************/
    00081