00001 /********************************************************************** 00002 * $Id$ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2009 Sandro Santilli <strk@keybit.net> 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 * Last port: algorithm/BoundaryNodeRule.java rev 1.4 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_ALGORITHM_BOUNDARYNODERULE_H 00021 #define GEOS_ALGORITHM_BOUNDARYNODERULE_H 00022 00023 // Forward declarations 00024 // ... 00025 00026 namespace geos { 00027 namespace algorithm { // geos::algorithm 00028 00029 00049 class BoundaryNodeRule { 00050 00051 public: 00052 00063 virtual bool isInBoundary(int boundaryCount) const=0; 00064 00071 static const BoundaryNodeRule& MOD2_BOUNDARY_RULE; 00072 00078 static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE; 00079 00085 static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE; 00086 00092 static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE; 00093 00100 static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE; 00101 00102 }; 00103 00104 } // namespace geos::algorithm 00105 } // namespace geos 00106 00107 #endif // GEOS_ALGORITHM_BOUNDARYNODERULE_H 00108
1.4.4