EdgeEndBundle.h

00001 /**********************************************************************
00002  * $Id: EdgeEndBundle.h 1820 2006-09-06 16:54:23Z mloskot $
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 #ifndef GEOS_OP_RELATE_EDGEENDBUNDLE_H
00017 #define GEOS_OP_RELATE_EDGEENDBUNDLE_H
00018 
00019 #include <geos/geomgraph/EdgeEnd.h> // for EdgeEndBundle inheritance
00020 
00021 #include <string>
00022 
00023 // Forward declarations
00024 namespace geos {
00025         namespace geom {
00026                 class IntersectionMatrix;
00027         }
00028 }
00029 
00030 
00031 namespace geos {
00032 namespace operation { // geos::operation
00033 namespace relate { // geos::operation::relate
00034 
00039 class EdgeEndBundle: public geomgraph::EdgeEnd {
00040 public:
00041         EdgeEndBundle(geomgraph::EdgeEnd *e);
00042         virtual ~EdgeEndBundle();
00043         geomgraph::Label *getLabel();
00044 //Iterator iterator() //Not needed
00045         std::vector<geomgraph::EdgeEnd*>* getEdgeEnds();
00046         void insert(geomgraph::EdgeEnd *e);
00047         void computeLabel() ; 
00048         void updateIM(geom::IntersectionMatrix *im);
00049         std::string print();
00050 protected:
00051         std::vector<geomgraph::EdgeEnd*> *edgeEnds;
00052         void computeLabelOn(int geomIndex);
00053         void computeLabelSides(int geomIndex);
00054         void computeLabelSide(int geomIndex,int side);
00055 };
00056 
00057 } // namespace geos:operation:relate
00058 } // namespace geos:operation
00059 } // namespace geos
00060 
00061 #endif // GEOS_OP_RELATE_EDGEENDBUNDLE_H
00062 
00063 /**********************************************************************
00064  * $Log$
00065  * Revision 1.1  2006/03/21 13:11:29  strk
00066  * opRelate.h header split
00067  *
00068  **********************************************************************/
00069 

Generated on Fri Mar 27 04:52:40 2009 for GEOS by  doxygen 1.5.4