00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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>
00025
00026 #include <string>
00027
00028
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 {
00041 namespace 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 }
00105 }
00106 }
00107
00108 #endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H