Esempio n. 1
0
 def __init__(self,
              text: str,
              layer: int,
              xy: typing.Tuple[int, int]
              ):
     super().__init__()
     self._TEXT = records.TEXT()
     self._LAYER = records.LAYER(layer)
     self._TEXTBODY = Text.TextBody(text, xy)
     self._ENDEL = records.ENDEL()
Esempio n. 2
0
 def __init__(self,
              layer: int,
              xy: typing.Tuple[int, int],
              boxtype: int = 0):
     super().__init__()
     self._BOX = records.BOX()
     self._LAYER = records.LAYER(layer)
     self._XY = records.XY()
     self.coordinates = xy
     if boxtype != 0: self._BOXTYPE = records.BOXTYPE(boxtype)
     self._ENDEL = records.ENDEL()
Esempio n. 3
0
 def __init__(self,
              layer: int,
              xy: typing.Tuple[int, int],
              nodetype: int = 0):
     super().__init__()
     self._NODE = records.NODE()
     self._LAYER = records.LAYER(layer)
     self._XY = records.XY()
     self.coordinates = xy
     if nodetype != 0: self._NODETYPE = records.NODETYPE(nodetype)
     self._ENDEL = records.ENDEL()
Esempio n. 4
0
    def __init__(self,
                 layer: int,
                 xy: np.ndarray[int],
                 data_type: gdstypes.DataType = gdstypes.DataType.NO_DATA_PRESENT):
        super().__init__()

        self._BOUNDARY = records.BOUNDARY()
        self._LAYER = records.LAYER(layer)
        self._DATATYPE = records.DATATYPE(data_type)
        self._XY = records.XY()
        self.coordinates = xy
        self._ENDEL = records.ENDEL()
Esempio n. 5
0
 def __init__(self,
              layer: int,
              radii: typing.Tuple[int, int],
              center: typing.Tuple[int, int],
              width: int = 0,
              datatype: gdstypes.DataType = gdstypes.DataType.NO_DATA_PRESENT):
     super().__init__()
     self._RAITHCIRCLE = records.RaithCircle()
     self._LAYER = records.LAYER(layer)
     self._XY = records.XY()
     self.radii = radii
     self.center = center
     if width != 0: self._WIDTH = records.WIDTH(width)
     self._DATATYPE = records.DATATYPE(datatype)
     self._ENDEL = records.ENDEL()
Esempio n. 6
0
    def __init__(self,
                 layer: int,
                 xy: np.ndarray[int],
                 width: int = 0,
                 pathtype: gdstypes.PathType = gdstypes.PathType.BUTT,
                 datatype: gdstypes.DataType = gdstypes.DataType.NO_DATA_PRESENT):
        super().__init__()

        self._PATH = records.PATH()
        self._LAYER = records.LAYER(layer)
        self._XY = records.XY()
        self.coordinates = xy
        if width != 0: self._WIDTH = records.WIDTH(width)
        if pathtype != gdstypes.PathType.BUTT: self._PATHTYPE = records.PATHTYPE(pathtype)
        self._DATATYPE = records.DATATYPE(datatype)
        self._ENDEL = records.ENDEL()