Bridges-C++  3.4.5-dev1-6-g935685a
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 #ifndef POLYGON_H
8 
9 #define POLYGON_H
10 
11 namespace bridges {
12  namespace datastructure {
23  class Polygon : public Polyline {
24 
25  private:
31  virtual string getShapeType() const override {
32  return "polygon";
33  }
34 
35  public:
39  Polygon () : Polyline() {
40  }
41 
46  Polygon (vector<float> pts) : Polyline (pts) {
47  }
48 
49  public:
54  void setPolygon (vector<float> pts) {
55  this->setPolyline(pts);
56  }
57  };
58  }
59 } // namespace bridges
60 
61 #endif
This class defines a polygon and is part of the symbol collection. A polygon has a set of vertices,...
Definition: Polygon.h:23
void setPolygon(vector< float > pts)
constructs a polygon, given a set of points
Definition: Polygon.h:54
Polygon(vector< float > pts)
constructor, given a set of points
Definition: Polygon.h:46
Polygon()
default constructor
Definition: Polygon.h:39
This class defines a polyline and is part of the symbol collection. A polyline has a set of vertices ...
Definition: Polyline.h:23
Support for drawing Bar charts.
Definition: alltypes.h:4