OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Gds2Structure.h
Go to the documentation of this file.
1#ifndef GDS2STRUCTURE_H_
2#define GDS2STRUCTURE_H_
3
4#include <string>
5#include <vector>
6#include "Polygon.h"
7#include "StructRef.h"
8#include "Gds2Path.h"
9
10
11
12
13// This class represents a gds2 structure whith all its polygons and structure references
14// WARNING: only the boundary type is tracked
16private:
17 std::string name;
18 std::vector<MyPolygon> polygons;
19 std::vector<StructRef> structureReferences;
20 std::vector<Gds2Path> paths;
21public:
22 Gds2Structure(std::string name, std::vector<MyPolygon> polygons);
23 Gds2Structure(std::string name);
25
26 std::string getName();
27 std::vector<MyPolygon> getPolygons();
28 std::vector<StructRef> getStructRef();
29 std::vector<Gds2Path> getPaths();
30
31 void setStructRef(std::vector<StructRef> structRef);
32 void setPolygons(std::vector<MyPolygon> polygons);
33 void setPaths(std::vector<Gds2Path> paths);
34 void addStuctRef(StructRef newStrRef);
35};
36
37
38#endif
Definition Gds2Structure.h:15
Gds2Structure()
Definition Gds2Structure.cpp:7
std::vector< MyPolygon > getPolygons()
Definition Gds2Structure.cpp:11
void setStructRef(std::vector< StructRef > structRef)
Definition Gds2Structure.cpp:17
std::vector< StructRef > getStructRef()
Definition Gds2Structure.cpp:13
std::vector< Gds2Path > getPaths()
Definition Gds2Structure.cpp:15
std::string getName()
Definition Gds2Structure.cpp:9
void setPolygons(std::vector< MyPolygon > polygons)
Definition Gds2Structure.cpp:19
void addStuctRef(StructRef newStrRef)
Definition Gds2Structure.cpp:23
void setPaths(std::vector< Gds2Path > paths)
Definition Gds2Structure.cpp:21
Definition StructRef.h:9