OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Gds2Path.h
Go to the documentation of this file.
1#ifndef GDS2PATH_H_
2#define GDS2PATH_H_
3
4#include <vector>
5#include <string>
6#include "Polygon.h"
7
8class Gds2Path {
9private:
10 unsigned int width; // width of the path
11 unsigned int layer;
12 unsigned int pathType;
13 std::vector<std::pair<int, int>> coordinates;
14
15 std::pair<int, int> calcVector(std::pair<int, int>& p1, std::pair<int, int>& p2);
16 std::pair<int, int> calcOffset(std::pair<int, int>& p1, std::pair<int, int>& p2);
17
18
19
20
21public:
23
24 unsigned int getWidth();
25 unsigned int getLayer();
26 unsigned int getPathType();
27 std::vector<std::pair<int, int>> getCoordinates();
28 void setWidth(int width);
29 void setLayer(unsigned int layer);
30 void setPathType(unsigned int pathType);
31 void setCoordinates(std::vector<std::pair<int, int>> coordinates);
32
33};
34
35#endif
36
Definition Gds2Path.h:8
void setPathType(unsigned int pathType)
Definition Gds2Path.cpp:183
unsigned int getLayer()
Definition Gds2Path.cpp:173
unsigned int getPathType()
Definition Gds2Path.cpp:175
unsigned int getWidth()
Definition Gds2Path.cpp:171
std::vector< std::pair< int, int > > getCoordinates()
Definition Gds2Path.cpp:177
void setCoordinates(std::vector< std::pair< int, int > > coordinates)
Definition Gds2Path.cpp:185
void setWidth(int width)
Definition Gds2Path.cpp:179
MyPolygon pathToPolygon()
Definition Gds2Path.cpp:134
void setLayer(unsigned int layer)
Definition Gds2Path.cpp:181
Definition Polygon.h:9