EdgeGraphBuilder.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2020 Paul Ramsey <pramsey@cleverelephant.ca>
*
* 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.
*
**********************************************************************/
#pragma once
#include <geos/edgegraph/EdgeGraph.h>
#include <geos/export.h>
#include <string>
#include <cassert>
// Forward declarations
namespace geos {
namespace geom {
class Coordinate;
class LineString;
class Geometry;
class GeometryCollection;
}
}
namespace geos {
namespace edgegraph { // geos.edgegraph
class GEOS_DLL EdgeGraphBuilder {
private:
/* members */
std::unique_ptr<EdgeGraph> graph;
public:
EdgeGraphBuilder() :
graph(new EdgeGraph())
{};
static std::unique_ptr<EdgeGraph> build(const geom::GeometryCollection* geoms);
std::unique_ptr<EdgeGraph> getGraph();
void add(const geom::Geometry* geometry);
void add(const geom::LineString* linestring);
void add(const geom::GeometryCollection* geometries);
};
} // namespace geos.edgegraph
} // namespace geos
geos::edgegraph::EdgeGraphBuilder::add
void add(const geom::Geometry *geometry)
geos::edgegraph::EdgeGraphBuilder::add
void add(const geom::GeometryCollection *geometries)
geos::edgegraph::EdgeGraph
Definition EdgeGraph.h:51
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::GeometryCollection
Represents a collection of heterogeneous Geometry objects.
Definition GeometryCollection.h:51
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::LineString
Definition LineString.h:66
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38