GEOS 3.13.1
GeometryGraphOperation.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************
15 *
16 * Last port: operation/GeometryGraphOperation.java rev. 1.18 (JTS-1.10)
17 *
18 **********************************************************************/
19
20#pragma once
21
22#include <geos/export.h>
23#include <geos/algorithm/LineIntersector.h> // for composition
24
25#include <vector>
26
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
30#endif
31
32// Forward declarations
33namespace geos {
34namespace algorithm {
36}
37namespace geom {
38class Geometry;
39class PrecisionModel;
40}
41namespace geomgraph {
42class GeometryGraph;
43}
44}
45
46
47namespace geos {
48namespace operation { // geos.operation
49
51class GEOS_DLL GeometryGraphOperation {
52
53public:
54
55 GeometryGraphOperation(const geom::Geometry* g0,
56 const geom::Geometry* g1);
57
58 GeometryGraphOperation(const geom::Geometry* g0,
59 const geom::Geometry* g1,
60 const algorithm::BoundaryNodeRule& boundaryNodeRule);
61
62 GeometryGraphOperation(const geom::Geometry* g0);
63
64 virtual ~GeometryGraphOperation();
65
66 const geom::Geometry* getArgGeometry(unsigned int i) const;
67
68protected:
69
71
72 const geom::PrecisionModel* resultPrecisionModel;
73
77 std::vector<std::unique_ptr<geomgraph::GeometryGraph>> arg;
78
79 void setComputationPrecision(const geom::PrecisionModel* pm);
80
81 // Declare type as noncopyable
82 GeometryGraphOperation(const GeometryGraphOperation& other) = delete;
83 GeometryGraphOperation& operator=(const GeometryGraphOperation& rhs) = delete;
84};
85
86} // namespace geos.operation
87} // namespace geos
88
89#ifdef _MSC_VER
90#pragma warning(pop)
91#endif
92
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition BoundaryNodeRule.h:52
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:53
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:88
A GeometryGraph is a graph that models a given Geometry.
Definition GeometryGraph.h:71
std::vector< std::unique_ptr< geomgraph::GeometryGraph > > arg
The operation args into an array so they can be accessed by index.
Definition GeometryGraphOperation.h:77
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
Definition Angle.h:26
Contains classes that implement topology graphs.
Definition Depth.h:31
Provides classes for implementing operations on geometries.
Definition namespaces.h:179
Basic namespace for all GEOS functionalities.
Definition geos.h:39