GeometryGraphOperation.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/GeometryGraphOperation.java rev. 1.18 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/algorithm/LineIntersector.h> // for composition
#include <vector>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
#endif
// Forward declarations
namespace geos {
namespace algorithm {
class BoundaryNodeRule;
}
namespace geom {
class Geometry;
class PrecisionModel;
}
namespace geomgraph {
class GeometryGraph;
}
}
namespace geos {
namespace operation { // geos.operation
class GEOS_DLL GeometryGraphOperation {
public:
GeometryGraphOperation(const geom::Geometry* g0,
const geom::Geometry* g1);
GeometryGraphOperation(const geom::Geometry* g0,
const geom::Geometry* g1,
const algorithm::BoundaryNodeRule& boundaryNodeRule);
GeometryGraphOperation(const geom::Geometry* g0);
virtual ~GeometryGraphOperation();
const geom::Geometry* getArgGeometry(unsigned int i) const;
protected:
algorithm::LineIntersector li;
const geom::PrecisionModel* resultPrecisionModel;
std::vector<std::unique_ptr<geomgraph::GeometryGraph>> arg;
void setComputationPrecision(const geom::PrecisionModel* pm);
// Declare type as noncopyable
GeometryGraphOperation(const GeometryGraphOperation& other) = delete;
GeometryGraphOperation& operator=(const GeometryGraphOperation& rhs) = delete;
};
} // namespace geos.operation
} // namespace geos
#ifdef _MSC_VER
#pragma warning(pop)
#endif
geos::algorithm::BoundaryNodeRule
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition BoundaryNodeRule.h:52
geos::algorithm::LineIntersector
A LineIntersector is an algorithm that can both test whether two line segments intersect and compute ...
Definition LineIntersector.h:53
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::PrecisionModel
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
geos::geomgraph::GeometryGraph
A GeometryGraph is a graph that models a given Geometry.
Definition GeometryGraph.h:71
geos::operation::GeometryGraphOperation::arg
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
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos::geomgraph
Contains classes that implement topology graphs.
Definition Depth.h:31
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38