Bridges-C++ 3.5.0-dev1
Bridges(C++ API)
Loading...
Searching...
No Matches
Polygon.h
Go to the documentation of this file.
1#include "DataStructure.h"
2#include "Polyline.h"
3#include <vector>
4
5using namespace std;
6
7#ifndef POLYGON_H
8
9#define POLYGON_H
10
11namespace 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:
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
void setPolyline(vector< float > pts)
Construct a polyline from sequence of points.
Definition Polyline.h:84
Support for drawing Bar charts.
Definition alltypes.h:4