GEOS 3.6.2
DelaunayTriangulationBuilder.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2012 Excensus LLC.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: triangulate/DelaunayTriangulationBuilder.java r524
16 *
17 **********************************************************************/
18
19#ifndef GEOS_TRIANGULATE_DELAUNAYTRIANGULATIONBUILDER_H
20#define GEOS_TRIANGULATE_DELAUNAYTRIANGULATIONBUILDER_H
21
22#include <geos/triangulate/IncrementalDelaunayTriangulator.h>
23
24
25namespace geos {
26 namespace geom{
28 class Geometry;
29 class MultiLineString;
31 class GeometryFactory;
32 class Envelope;
33 }
34 namespace triangulate {
35 namespace quadedge {
37 }
38 }
39}
40
41namespace geos {
42namespace triangulate { //geos.triangulate
43
44
55{
56public:
63
64 static void unique(geom::CoordinateSequence& coords);
65
71 static IncrementalDelaunayTriangulator::VertexList* toVertices(const geom::CoordinateSequence &coords);
72
73private:
74 geom::CoordinateSequence* siteCoords;
75 double tolerance;
77
78public:
84
86
94
102
110 inline void setTolerance(double tolerance)
111 {
112 this->tolerance = tolerance;
113 }
114
115private:
116 void create();
117
118public:
125
132 std::auto_ptr<geom::MultiLineString> getEdges(const geom::GeometryFactory &geomFact);
133
141 std::auto_ptr<geom::GeometryCollection> getTriangles(const geom::GeometryFactory& geomFact);
142
149
151
152};
153
154} //namespace geos.triangulate
155} //namespace goes
156
157#endif //GEOS_TRIANGULATE_QUADEDGE_DELAUNAYTRIANGULATIONBUILDER_H
158
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:53
Represents a collection of heterogeneous Geometry objects.
Definition GeometryCollection.h:56
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:67
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Models a collection of (}s.
Definition MultiLineString.h:51
std::auto_ptr< geom::GeometryCollection > getTriangles(const geom::GeometryFactory &geomFact)
static IncrementalDelaunayTriangulator::VertexList * toVertices(const geom::CoordinateSequence &coords)
quadedge::QuadEdgeSubdivision & getSubdivision()
static geom::CoordinateSequence * extractUniqueCoordinates(const geom::Geometry &geom)
void setSites(const geom::CoordinateSequence &coords)
std::auto_ptr< geom::MultiLineString > getEdges(const geom::GeometryFactory &geomFact)
static geom::Envelope envelope(const geom::CoordinateSequence &coords)
void setSites(const geom::Geometry &geom)
void setTolerance(double tolerance)
Definition DelaunayTriangulationBuilder.h:110
Definition QuadEdgeSubdivision.h:79
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25