def __init__(self, refname: str, xy: typing.Tuple[int, int]): super().__init__() self._SREF = records.SREF() self._SNAME = records.SNAME(refname) self._XY = records.XY() self.coordinates = xy
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()
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()
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()
def __init__(self, refname: str, reference_point: typing.Tuple[int, int], dimensions: typing.Tuple[int, int], row_spacing: typing.Tuple[int, int], col_spacing: typing.Tuple[int, int]): super().__init__() self._AREF = records.AREF() self._SNAME = records.SNAME(refname) self._COLROW = records.COLROW(*dimensions) self._XY = records.XY() self.coordinates = np.c_[ reference_point, np.array(col_spacing) * dimensions[1], np.array(row_spacing) * dimensions[0]].T self._ENDEL = records.ENDEL()
def __init__(self, text: str, xy: typing.Tuple[int, int], width: int = 0, pathtype: gdstypes.PathType = gdstypes.PathType.BUTT, datatype: gdstypes.DataType = gdstypes.DataType.NO_DATA_PRESENT): super().__init__() self._TEXTTYPE = records.TEXTTYPE() self._XY = records.XY() self.coordinates = xy self._STRING = records.STRING(text) if width != 0: self._WIDTH = records.WIDTH(width) if pathtype != gdstypes.PathType.BUTT: self._PATHTYPE = records.PATHTYPE(pathtype) if datatype != gdstypes.DataType.NO_DATA_PRESENT: self._DATATYPE = records.DATATYPE(datatype)
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()
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()