QGIS API Documentation  2.10.1-Pisa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgssurfacev2.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssurfacev2.h
3  --------------
4  begin : September 2014
5  copyright : (C) 2014 by Marco Hugentobler
6  email : marco at sourcepole dot ch
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSSURFACEV2_H
19 #define QGSSURFACEV2_H
20 
21 #include "qgsabstractgeometryv2.h"
22 #include "qgspointv2.h"
23 
24 class QgsPolygonV2;
25 
26 class CORE_EXPORT QgsSurfaceV2: public QgsAbstractGeometryV2
27 {
28  public:
29  virtual QgsPointV2 centroid() const = 0;
30  virtual QgsPointV2 pointOnSurface() const = 0;
31  virtual QgsPolygonV2* surfaceToPolygon() const = 0;
32 };
33 
34 #endif // QGSSURFACEV2_H
Abstract base class for all geometries.
Polygon geometry type.
Definition: qgspolygonv2.h:29
Point geometry type.
Definition: qgspointv2.h:29