/usr/include/qgis/qgspolygonv2.h is in libqgis-dev 2.18.17+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | /***************************************************************************
qgspolygonv2.h
-------------------
begin : September 2014
copyright : (C) 2014 by Marco Hugentobler
email : marco at sourcepole dot ch
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSPOLYGONV2_H
#define QGSPOLYGONV2_H
#include "qgscurvepolygonv2.h"
/** \ingroup core
* \class QgsPolygonV2
* \brief Polygon geometry type.
* \note added in QGIS 2.10
* \note this API is not considered stable and may change for 2.12
*/
class CORE_EXPORT QgsPolygonV2: public QgsCurvePolygonV2
{
public:
QgsPolygonV2();
bool operator==( const QgsPolygonV2& other ) const;
bool operator!=( const QgsPolygonV2& other ) const;
virtual QString geometryType() const override { return "Polygon"; }
virtual QgsPolygonV2* clone() const override;
void clear() override;
virtual bool fromWkb( QgsConstWkbPtr wkb ) override;
// inherited: bool fromWkt( const QString &wkt );
int wkbSize() const override;
unsigned char* asWkb( int& binarySize ) const override;
// inherited: QString asWkt( int precision = 17 ) const;
// inherited: QDomElement asGML2( QDomDocument& doc, int precision = 17, const QString& ns = "gml" ) const;
// inherited: QDomElement asGML3( QDomDocument& doc, int precision = 17, const QString& ns = "gml" ) const;
// inherited: QString asJSON( int precision = 17 ) const;
QgsPolygonV2* surfaceToPolygon() const override;
/** Returns the geometry converted to the more generic curve type QgsCurvePolygonV2
@return the converted geometry. Caller takes ownership*/
QgsAbstractGeometryV2* toCurveType() const override;
void addInteriorRing( QgsCurveV2* ring ) override;
//overridden to handle LineString25D rings
virtual void setExteriorRing( QgsCurveV2* ring ) override;
virtual QgsAbstractGeometryV2* boundary() const override;
};
#endif // QGSPOLYGONV2_H
|