OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Polygon.h
Go to the documentation of this file.
1#ifndef MYPOLYGON_H_
2#define MYPOLYGON_H_
3
4#include <vector>
5
6
7
8
10private:
11 unsigned int layer;
12 std::vector<std::pair<int, int>> coordinates;
13
14public:
15 MyPolygon(unsigned int l, std::vector<std::pair<int, int>> c);
16 MyPolygon();
17
18 void setLayer(unsigned int layer);
19
20 unsigned int getLayer();
21 std::vector<std::pair<int, int>> getCoordinates();
22 void setCoordinates(std::vector<std::pair<int, int>> coords);
23};
24
25#endif // !POLYGON_H_
Definition Polygon.h:9
void setCoordinates(std::vector< std::pair< int, int > > coords)
Definition Polygon.cpp:10
void setLayer(unsigned int layer)
Definition Polygon.cpp:12
std::vector< std::pair< int, int > > getCoordinates()
Definition Polygon.cpp:16
unsigned int getLayer()
Definition Polygon.cpp:14
MyPolygon()
Definition Polygon.cpp:5