InteriorPointArea.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2019 Martin Davis <mtnclimb@gmail.com>
*
* 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: algorithm/InteriorPointArea.java (JTS-1.17+)
* https://github.com/locationtech/jts/commit/a140ca30cc51be4f65c950a30b0a8f51a6df75ba
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Coordinate.h>
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
class Polygon;
}
}
namespace geos {
namespace algorithm { // geos::algorithm
class GEOS_DLL InteriorPointArea {
public:
InteriorPointArea(const geom::Geometry* g);
bool getInteriorPoint(geom::Coordinate& ret) const;
private:
geom::Coordinate interiorPoint;
double maxWidth;
void process(const geom::Geometry* geom);
void processPolygon(const geom::Polygon* polygon);
};
} // namespace geos::algorithm
} // namespace geos
geos::algorithm::InteriorPointArea::getInteriorPoint
bool getInteriorPoint(geom::Coordinate &ret) const
geos::algorithm::InteriorPointArea::InteriorPointArea
InteriorPointArea(const geom::Geometry *g)
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::geom::Polygon
Represents a linear polygon, which may include holes.
Definition Polygon.h:61
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38