GEOS
3.4.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/RelateNode.java rev. 1.11 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_OP_RELATE_RELATENODE_H 00020 #define GEOS_OP_RELATE_RELATENODE_H 00021 00022 #include <geos/export.h> 00023 00024 #include <geos/geomgraph/Node.h> // for inheritance 00025 00026 // Forward declarations 00027 namespace geos { 00028 namespace geom { 00029 class IntersectionMatrix; 00030 class Coordinate; 00031 } 00032 namespace geomgraph { 00033 class EdgeEndStar; 00034 } 00035 } 00036 00037 00038 namespace geos { 00039 namespace operation { // geos::operation 00040 namespace relate { // geos::operation::relate 00041 00046 class GEOS_DLL RelateNode: public geomgraph::Node { 00047 00048 public: 00049 00050 RelateNode(const geom::Coordinate& coord, geomgraph::EdgeEndStar *edges); 00051 00052 virtual ~RelateNode(); 00053 00057 void updateIMFromEdges(geom::IntersectionMatrix& im); 00058 00059 protected: 00060 00061 void computeIM(geom::IntersectionMatrix& im); 00062 }; 00063 00064 00065 } // namespace geos:operation:relate 00066 } // namespace geos:operation 00067 } // namespace geos 00068 00069 #endif // GEOS_OP_RELATE_RELATENODE_H