GEOS  3.13.0dev
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
33 namespace geos {
34 namespace algorithm {
35 class BoundaryNodeRule;
36 }
37 namespace geom {
38 class Geometry;
39 class PrecisionModel;
40 }
41 namespace geomgraph {
42 class GeometryGraph;
43 }
44 }
45 
46 
47 namespace geos {
48 namespace operation { // geos.operation
49 
51 class GEOS_DLL GeometryGraphOperation {
52 
53 public:
54 
56  const geom::Geometry* g1);
57 
59  const geom::Geometry* g1,
60  const algorithm::BoundaryNodeRule& boundaryNodeRule);
61 
63 
64  virtual ~GeometryGraphOperation();
65 
66  const geom::Geometry* getArgGeometry(unsigned int i) const;
67 
68 protected:
69 
71 
72  const geom::PrecisionModel* resultPrecisionModel;
73 
77  std::vector<geomgraph::GeometryGraph*> arg;
78 
79  void setComputationPrecision(const geom::PrecisionModel* pm);
80 };
81 
82 } // namespace geos.operation
83 } // namespace geos
84 
85 #ifdef _MSC_VER
86 #pragma warning(pop)
87 #endif
88 
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition: BoundaryNodeRule.h:50
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:186
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:88
The base class for operations that require GeometryGraph.
Definition: GeometryGraphOperation.h:51
std::vector< geomgraph::GeometryGraph * > arg
The operation args into an array so they can be accessed by index.
Definition: GeometryGraphOperation.h:77
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25