GEOS  3.14.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 #pragma once
20 
21 #include <string>
22 
23 #include <geos/export.h>
24 
25 // Forward declarations
26 // ...
27 
28 namespace geos {
29 namespace algorithm { // geos::algorithm
30 
31 
52 class GEOS_DLL BoundaryNodeRule {
53 
54 public:
55 
56  // virtual classes should always have a virtual destructor..
57  virtual
58  ~BoundaryNodeRule() {}
59 
60  virtual std::string toString() const = 0;
61 
72  virtual bool isInBoundary(int boundaryCount) const = 0;
73 
86  //static const BoundaryNodeRule& MOD2_BOUNDARY_RULE;
88 
107  //static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE;
109 
118  //static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE;
120 
128  //static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE;
130 
140  //static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE;
142 };
143 
144 } // namespace geos::algorithm
145 } // namespace geos
146 
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition: BoundaryNodeRule.h:52
static const BoundaryNodeRule & getBoundaryRuleMod2()
The Mod-2 Boundary Node Rule (which is the rule specified in the OGC SFS).
static const BoundaryNodeRule & getBoundaryMultivalentEndPoint()
The MultiValent Endpoint Boundary Node Rule.
static const BoundaryNodeRule & getBoundaryMonovalentEndPoint()
The Monovalent Endpoint Boundary Node Rule.
virtual bool isInBoundary(int boundaryCount) const =0
Tests whether a point that lies in boundaryCount geometry component boundaries is considered to form ...
static const BoundaryNodeRule & getBoundaryEndPoint()
The Endpoint Boundary Node Rule.
static const BoundaryNodeRule & getBoundaryOGCSFS()
The Boundary Node Rule specified by the OGC Simple Features Specification, which is the same as the M...
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25