InteriorPointLine.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* 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/InteriorPointLine.java r317 (JTS-1.12)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/Coordinate.h>
// Forward declarations
namespace geos {
namespace geom {
class Geometry;
class CoordinateSequence;
}
}
namespace geos {
namespace algorithm { // geos::algorithm
class GEOS_DLL InteriorPointLine {
public:
InteriorPointLine(const geom::Geometry* g);
//Coordinate* getInteriorPoint() const;
bool getInteriorPoint(geom::Coordinate& ret) const;
private:
bool hasInterior;
geom::Coordinate centroid;
double minDistance;
geom::Coordinate interiorPoint;
void addInterior(const geom::Geometry* geom);
void addInterior(const geom::CoordinateSequence* pts);
void addEndpoints(const geom::Geometry* geom);
void addEndpoints(const geom::CoordinateSequence* pts);
void add(const geom::Coordinate& point);
};
} // namespace geos::algorithm
} // namespace geos
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
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::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