GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 ********************************************************************** 00014 * 00015 * Last port: operation/relate/EdgeEndBundle.java rev. 1.17 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_OP_RELATE_EDGEENDBUNDLE_H 00020 #define GEOS_OP_RELATE_EDGEENDBUNDLE_H 00021 00022 #include <geos/export.h> 00023 00024 #include <geos/geomgraph/EdgeEnd.h> // for EdgeEndBundle inheritance 00025 00026 #include <string> 00027 00028 // Forward declarations 00029 namespace geos { 00030 namespace algorithm { 00031 class BoundaryNodeRule; 00032 } 00033 namespace geom { 00034 class IntersectionMatrix; 00035 } 00036 } 00037 00038 00039 namespace geos { 00040 namespace operation { // geos::operation 00041 namespace relate { // geos::operation::relate 00042 00047 class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd 00048 { 00049 public: 00050 EdgeEndBundle(geomgraph::EdgeEnd *e); 00051 virtual ~EdgeEndBundle(); 00052 std::vector<geomgraph::EdgeEnd*>* getEdgeEnds(); 00053 void insert(geomgraph::EdgeEnd *e); 00054 00055 void computeLabel(const algorithm::BoundaryNodeRule& bnr); 00056 00062 void updateIM(geom::IntersectionMatrix& im); 00063 00064 std::string print(); 00065 protected: 00066 std::vector<geomgraph::EdgeEnd*> *edgeEnds; 00067 00097 void computeLabelOn(int geomIndex, 00098 const algorithm::BoundaryNodeRule& boundaryNodeRule); 00099 00100 void computeLabelSides(int geomIndex); 00101 void computeLabelSide(int geomIndex,int side); 00102 }; 00103 00104 } // namespace geos:operation:relate 00105 } // namespace geos:operation 00106 } // namespace geos 00107 00108 #endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H