GEOS 3.6.2
BoundaryNodeRule.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2009 Sandro Santilli <strk@keybit.net>
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
27namespace geos {
28namespace algorithm { // geos::algorithm
29
30
50class GEOS_DLL BoundaryNodeRule {
51
52public:
53
54 // virtual classes should always have a virtual destructor..
55 virtual ~BoundaryNodeRule() {}
56
67 virtual bool isInBoundary(int boundaryCount) const=0;
68
75 //static const BoundaryNodeRule& MOD2_BOUNDARY_RULE;
77
83 //static const BoundaryNodeRule& ENDPOINT_BOUNDARY_RULE;
85
91 //static const BoundaryNodeRule& MULTIVALENT_ENDPOINT_BOUNDARY_RULE;
93
99 //static const BoundaryNodeRule& MONOVALENT_ENDPOINT_BOUNDARY_RULE;
101
108 //static const BoundaryNodeRule& OGC_SFS_BOUNDARY_RULE;
110};
111
112} // namespace geos::algorithm
113} // namespace geos
114
115#endif // GEOS_ALGORITHM_BOUNDARYNODERULE_H
116
Definition BoundaryNodeRule.h:50
static const BoundaryNodeRule & getBoundaryEndPoint()
The Endpoint Boundary Node Rule.
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
static const BoundaryNodeRule & getBoundaryOGCSFS()
The Boundary Node Rule specified by the OGC Simple Features Specification, which is the same as the M...
static const BoundaryNodeRule & getBoundaryRuleMod2()
The Mod-2 Boundary Node Rule (which is the rule specified in the OGC SFS).
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25