Bridges-C++  3.1.1
Bridges(C++API)
Polygon.h
Go to the documentation of this file.
1 #include "DataStructure.h"
2 #include "Polyline.h"
3 #include <vector>
4 
5 using namespace std;
6 
7 
8 #ifndef POLYGON_H
9 
10 #define POLYGON_H
11 
12 namespace bridges {
13  namespace datastructure {
24  class Polygon : public Polyline {
25 
26  public:
27  // constructors
28  Polygon () : Polyline() {
29  setShapeType("polygon");
30  }
31 
32  Polygon (vector<float> pts) : Polyline (pts) {
33  setShapeType("polygon");
34  }
35 
41  virtual string getDataStructType() {
42  return "polygon";
43  }
44 
50  virtual string getName() const {
51  return "polygon";
52  }
53 
54  void setPolygon (vector<float> pts) {
55  this->setPolyline(pts);
56  setShapeType("polygon");
57  }
58  };
59  }
60 } // namespace bridges
61 
62 #endif
This class defines a polygon and is part of the symbol collection. A polygon has a set of vertices...
Definition: Polygon.h:24
STL namespace.
virtual string getName() const
Definition: Polygon.h:50
This class defines a polyline and is part of the symbol collection. A polyline has a set of vertices ...
Definition: Polyline.h:24
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
void setPolygon(vector< float > pts)
Definition: Polygon.h:54
Polygon()
Definition: Polygon.h:28
virtual string getDataStructType()
Definition: Polygon.h:41
Polygon(vector< float > pts)
Definition: Polygon.h:32