DYT/Tool/OpenSceneGraph-3.6.5/include/geos/geom/CurvePolygon.h

59 lines
1.3 KiB
C
Raw Normal View History

2024-12-24 23:49:36 +00:00
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2024 ISciences, LLC
*
* 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.
*
**********************************************************************/
#pragma once
#include <geos/geom/SurfaceImpl.h>
namespace geos {
namespace geom {
class GEOS_DLL CurvePolygon : public SurfaceImpl<Curve> {
friend class GeometryFactory;
public:
~CurvePolygon() override = default;
double getArea() const override;
std::unique_ptr<Geometry> getBoundary() const override;
std::unique_ptr<CoordinateSequence> getCoordinates() const override;
std::string getGeometryType() const override;
GeometryTypeId getGeometryTypeId() const override;
bool hasCurvedComponents() const override;
void normalize() override;
protected:
using SurfaceImpl::SurfaceImpl;
Geometry* cloneImpl() const override;
int
getSortIndex() const override
{
return SORTINDEX_CURVEPOLYGON;
}
Geometry* reverseImpl() const override;
};
}
}