GEOS  3.8.0dev
BoundaryNodeRule.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************
14  *
15  * Last port: algorithm/BoundaryNodeRule.java rev 1.4 (JTS-1.10)
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_ALGORITHM_BOUNDARYNODERULE_H
20 #define GEOS_ALGORITHM_BOUNDARYNODERULE_H
21 
22 #include <geos/export.h>
23 
24 // Forward declarations
25 // ...
26 
27 namespace geos {
28 namespace algorithm { // geos::algorithm
29 
30 
51 class GEOS_DLL BoundaryNodeRule {
52 
53 public:
54 
55  // virtual classes should always have a virtual destructor..
56  virtual
57  ~BoundaryNodeRule() {}
58 
69  virtual bool isInBoundary(int boundaryCount) const = 0;
70 
83  //static const BoundaryNodeRule& MOD2_BOUNDARY_RULE;
84  static const BoundaryNodeRule& getBoundaryRuleMod2();
85 
104  //static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE;
105  static const BoundaryNodeRule& getBoundaryEndPoint();
106 
115  //static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE;
116  static const BoundaryNodeRule& getBoundaryMultivalentEndPoint();
117 
125  //static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE;
126  static const BoundaryNodeRule& getBoundaryMonovalentEndPoint();
127 
137  //static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE;
138  static const BoundaryNodeRule& getBoundaryOGCSFS();
139 };
140 
141 } // namespace geos::algorithm
142 } // namespace geos
143 
144 #endif // GEOS_ALGORITHM_BOUNDARYNODERULE_H
145 
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition: BoundaryNodeRule.h:51
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25