Shapes
shapes
VShapes
Emulate [klayout.db.Shapes][klayout.db.Shapes].
Source code in kfactory/shapes.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
__init__
__init__(
cell: VKCell, _shapes: Sequence[ShapeLike] | None = None
) -> None
Initialize the shapes.
Source code in kfactory/shapes.py
25 26 27 28 29 30 31 | |
__iter__
__iter__() -> Iterator[ShapeLike]
Emulate [klayout.db.Shapes][klayout.db.Shapes]'s __iter__'.
Source code in kfactory/shapes.py
55 56 57 | |
bbox
bbox() -> kdb.DBox
Emulate [klayout.db.Shapes][klayout.db.Shapes]'s bbox'.
Source code in kfactory/shapes.py
51 52 53 | |
each
each() -> Iterator[ShapeLike]
Emulate [klayout.db.Shapes][klayout.db.Shapes]'s each'.
Source code in kfactory/shapes.py
59 60 61 | |
insert
insert(shape: ShapeLike) -> None
Emulate [klayout.db.Shapes][klayout.db.Shapes]'s insert'.
Source code in kfactory/shapes.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
size
size() -> int
Emulate [klayout.db.Shapes][klayout.db.Shapes]'s size'.
Source code in kfactory/shapes.py
93 94 95 | |
transform
transform(
trans: Trans | DTrans | ICplxTrans | DCplxTrans,
) -> VShapes
Emulate [klayout.db.Shapes][klayout.db.Shapes]'s transform'.
Source code in kfactory/shapes.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |