Proxies¶
-
class
rodlayout.proxy.
DbShape
(db: skillbridge.client.objects.RemoteObject)¶ A proxy to an existing shape in Virtuoso.
The shape only consists of a db object without a rod object. E.g. figure groups will be represented as a
DbShape
-
children
() → Generator[rodlayout.proxy.RodShape, None, None]¶ Get all RodShapes within a Group and its hierarchy
-
copy
(translate: geometry.point.Point = (0, 0), transform: rodlayout.transform.Transform = <Transform.identity: 'R0'>) → rodlayout.proxy.DbShape¶ Copy the dbShape and translate, transform the copy.
-
delete
(children: bool = True, redraw: bool = False) → None¶ Delete the db object.
Setting
children
toTrue
will also delete the child shapes if this is a figure group.Setting
redraw
toTrue
will refresh the view in VirtuosoWarning
After you deleted an object you should discard the python variable, too, because the underlying db object is not valid anymore.
-
property
height
¶ The height of the bounding box of the db object
-
move
(offset: geometry.point.Point) → None¶ Move the db object relative by a given offset
This actually moves the object in virtuoso
-
property
valid
¶ Check if the db object is still valid and was not deleted.
-
property
width
¶ The width of the bounding box of the db object
-
property
x
¶ The x coordinate of the center of the bounding box of the db object
Assigning the property will translate the object horizontally such that the new x coordinate and the given x coordinate match
-
property
xy
¶ The center of the bounding box of the db object
Assigning the property will translate the object such that the new center of its bounding box is at the given point
-
property
y
¶ The y coordinate of the center of the bounding box of the db object
Assigning the property will translate the object vertically such that the new y coordinate and the given y coordinate match
-
-
class
rodlayout.proxy.
RodShape
(db: skillbridge.client.objects.RemoteObject, rod: skillbridge.client.objects.RemoteObject)¶ A proxy to an existing shape in Virtuoso with a rod object.
This proxy also contains the rod object which allows aligning and other features. E.g. rectangles and paths will be represented as a
RodShape
-
copy
(translate: geometry.point.Point = (0, 0), transform: rodlayout.transform.Transform = <Transform.identity: 'R0'>) → rodlayout.proxy.RodShape¶ Copy the RodShape and translate, transform the copy.
-
classmethod
from_rod
(rod: skillbridge.client.objects.RemoteObject) → rodlayout.proxy.RodShape¶ Create a rod proxy from an existing rod object in virtuoso.
-