00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GEOS_OP_RELATE_EDGEENDBUNDLE_H
00021 #define GEOS_OP_RELATE_EDGEENDBUNDLE_H
00022
00023 #include <geos/export.h>
00024
00025 #include <geos/geomgraph/EdgeEnd.h>
00026
00027 #include <string>
00028
00029
00030 namespace geos {
00031 namespace algorithm {
00032 class BoundaryNodeRule;
00033 }
00034 namespace geom {
00035 class IntersectionMatrix;
00036 }
00037 }
00038
00039
00040 namespace geos {
00041 namespace operation {
00042 namespace relate {
00043
00048 class GEOS_DLL EdgeEndBundle: public geomgraph::EdgeEnd
00049 {
00050 public:
00051 EdgeEndBundle(geomgraph::EdgeEnd *e);
00052 virtual ~EdgeEndBundle();
00053 geomgraph::Label *getLabel();
00054 std::vector<geomgraph::EdgeEnd*>* getEdgeEnds();
00055 void insert(geomgraph::EdgeEnd *e);
00056
00057 void computeLabel(const algorithm::BoundaryNodeRule& bnr);
00058
00059 void updateIM(geom::IntersectionMatrix *im);
00060 std::string print();
00061 protected:
00062 std::vector<geomgraph::EdgeEnd*> *edgeEnds;
00063
00093 void computeLabelOn(int geomIndex,
00094 const algorithm::BoundaryNodeRule& boundaryNodeRule);
00095
00096 void computeLabelSides(int geomIndex);
00097 void computeLabelSide(int geomIndex,int side);
00098 };
00099
00100 }
00101 }
00102 }
00103
00104 #endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H
00105
00106
00107
00108
00109
00110
00111
00112