/********************************************************************** * $Id: EdgeEndBundle.h 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2006 Refractions Research Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation. * See the COPYING file for more information. * **********************************************************************/ #ifndef GEOS_OP_RELATE_EDGEENDBUNDLE_H #define GEOS_OP_RELATE_EDGEENDBUNDLE_H #include // for EdgeEndBundle inheritance #include // Forward declarations namespace geos { namespace geom { class IntersectionMatrix; } } namespace geos { namespace operation { // geos::operation namespace relate { // geos::operation::relate /** \brief * Contains all geomgraph::EdgeEnd objectss which start at the same point * and are parallel. */ class EdgeEndBundle: public geomgraph::EdgeEnd { public: EdgeEndBundle(geomgraph::EdgeEnd *e); virtual ~EdgeEndBundle(); geomgraph::Label *getLabel(); //Iterator iterator() //Not needed std::vector* getEdgeEnds(); void insert(geomgraph::EdgeEnd *e); void computeLabel() ; void updateIM(geom::IntersectionMatrix *im); std::string print(); protected: std::vector *edgeEnds; void computeLabelOn(int geomIndex); void computeLabelSides(int geomIndex); void computeLabelSide(int geomIndex,int side); }; } // namespace geos:operation:relate } // namespace geos:operation } // namespace geos #endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H /********************************************************************** * $Log$ * Revision 1.1 2006/03/21 13:11:29 strk * opRelate.h header split * **********************************************************************/