GEOS  3.6.2
Public Member Functions
geos::triangulate::VoronoiDiagramBuilder Class Reference

#include <VoronoiDiagramBuilder.h>

List of all members.

Public Member Functions

 VoronoiDiagramBuilder ()
void setSites (const geom::Geometry &geom)
void setSites (const geom::CoordinateSequence &coords)
void setClipEnvelope (const geom::Envelope *clipEnv)
void setTolerance (double tolerance)
std::auto_ptr
< quadedge::QuadEdgeSubdivision
getSubdivision ()
std::auto_ptr
< geom::GeometryCollection
getDiagram (const geom::GeometryFactory &geomFact)
std::auto_ptr< geom::GeometrygetDiagramEdges (const geom::GeometryFactory &geomFact)

Detailed Description

A utility class which creates Voronoi Diagrams from collections of points. The diagram is returned as a GeometryCollection of Polygons, clipped to the larger of a supplied envelope or to an envelope determined by the input sites.

Author:
Martin Davis

Constructor & Destructor Documentation

Creates a new Voronoi diagram builder.


Member Function Documentation

Gets the faces of the computed diagram as a GeometryCollection of Polygons, clipped as specified.

Parameters:
geomFactthe geometry factory to use to create the output
Returns:
the faces of the diagram

Gets the faces of the computed diagram as a GeometryCollection of LineStrings, clipped as specified.

Parameters:
geomFactthe geometry factory to use to create the output
Returns:
the faces of the diagram

Gets the QuadEdgeSubdivision which models the computed diagram.

Returns:
the subdivision containing the triangulation

Sets the envelope to clip the diagram to. The diagram will be clipped to the larger of this envelope or an envelope surrounding the sites.

Parameters:
clipEnvthe clip envelope; must be kept alive by caller until done with this instance; set to 0 for no clipping.

Sets the sites (point or vertices) which will be diagrammed. All vertices of the given geometry will be used as sites.

Parameters:
geomthe geometry from which the sites will be extracted.

Sets the sites (point or vertices) which will be diagrammed from a collection of Coordinates.

Parameters:
coordsa collection of Coordinates.

Sets the snapping tolerance which will be used to improved the robustness of the triangulation computation. A tolerance of 0.0 specifies that no snapping will take place.

Parameters:
tolerancethe tolerance distance to use

The documentation for this class was generated from the following file: