GEOS: InteriorPointPoint.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

InteriorPointPoint.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 #ifndef GEOS_ALGORITHM_INTERIORPOINTPOINT_H
17 #define GEOS_ALGORITHM_INTERIORPOINTPOINT_H
18
19 #include <geos/export.h>
20 #include <geos/geom/Coordinate.h>
21
22 // Forward declarations
23 namespace geos {
24 namespace geom {
25 class Geometry;
26 }
27 }
28
29 namespace geos {
30 namespace algorithm { // geos::algorithm
31
41 class GEOS_DLL InteriorPointPoint {
42 private:
43
44 bool hasInterior;
45
46 geom::Coordinate centroid;
47
48 double minDistance;
49
50 geom::Coordinate interiorPoint;
51
57 void add(const geom::Geometry *geom);
58
59 void add(const geom::Coordinate *point);
60
61 public:
62
63 InteriorPointPoint(const geom::Geometry *g);
64
65 ~InteriorPointPoint() {}
66
67 bool getInteriorPoint(geom::Coordinate& ret) const;
68
69 };
70
71 } // namespace geos::algorithm
72 } // namespace geos
73
74
75 #endif // GEOS_ALGORITHM_INTERIORPOINTPOINT_H
76
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos::algorithm::InteriorPointPoint
Computes a point in the interior of an point geometry.
Definition: InteriorPointPoint.h:41
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25