00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2009 Sandro Santilli <strk@keybit.net> 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: algorithm/BoundaryNodeRule.java rev 1.4 (JTS-1.10) 00016 * 00017 **********************************************************************/ 00018 00019 #ifndef GEOS_ALGORITHM_BOUNDARYNODERULE_H 00020 #define GEOS_ALGORITHM_BOUNDARYNODERULE_H 00021 00022 #include <geos/export.h> 00023 00024 // Forward declarations 00025 // ... 00026 00027 namespace geos { 00028 namespace algorithm { // geos::algorithm 00029 00030 00050 class GEOS_DLL BoundaryNodeRule { 00051 00052 public: 00053 00054 // virtual classes should always have a virtual destructor.. 00055 virtual ~BoundaryNodeRule() {} 00056 00067 virtual bool isInBoundary(int boundaryCount) const=0; 00068 00075 //static const BoundaryNodeRule& MOD2_BOUNDARY_RULE; 00076 static const BoundaryNodeRule& getBoundaryRuleMod2(); 00077 00083 //static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE; 00084 static const BoundaryNodeRule& getBoundaryEndPoint(); 00085 00091 //static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE; 00092 static const BoundaryNodeRule& getBoundaryMultivalentEndPoint(); 00093 00099 //static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE; 00100 static const BoundaryNodeRule& getBoundaryMonovalentEndPoint(); 00101 00108 //static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE; 00109 static const BoundaryNodeRule& getBoundaryOGCSFS(); 00110 }; 00111 00112 } // namespace geos::algorithm 00113 } // namespace geos 00114 00115 #endif // GEOS_ALGORITHM_BOUNDARYNODERULE_H 00116