Geodot Plugin
Loading...
Searching...
No Matches
PolygonFeature.h
1#ifndef __POLYGONFEATURE_H__
2#define __POLYGONFEATURE_H__
3
4#include "Feature.h"
5
6#include <list>
7#include <vector>
8
9// Foward declarations
10class OGRPolygon;
11
12class PolygonFeature : public Feature {
13 public:
15 explicit PolygonFeature(OGRFeature *feature);
16
20 PolygonFeature(OGRFeature *feature, OGRGeometry *ogrPolygon);
21
23 std::list<std::vector<double>> get_outer_vertices();
24
26 void set_outer_vertices(std::list<std::vector<double>> vertices);
27
29 std::list<std::list<std::vector<double>>> get_holes();
30
31 private:
32 OGRPolygon *polygon;
33};
34
35#endif // __POLYGONFEATURE_H__
Definition: Feature.h:12
Definition: PolygonFeature.h:12
std::list< std::list< std::vector< double > > > get_holes()
Get all cutout shapes.
Definition: PolygonFeature.cpp:50
void set_outer_vertices(std::list< std::vector< double > > vertices)
Replace the outer vertices with new geometry (holes, if any, are left unchanged)
Definition: PolygonFeature.cpp:37
std::list< std::vector< double > > get_outer_vertices()
Get the vertices of the base shape.
Definition: PolygonFeature.cpp:14