kigadgets.via¶
Classes¶
Careful setting top_layer, then getting top_layer may |
Module Contents¶
- class kigadgets.via.Via(center: kigadgets.units.CoordinateLike, size: float | None = None, drill: float | None = None, layer_pair: List[str] | None = None, board: Board | None = None)¶
Bases:
digraph inheritance8d98bf6264 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BoardItem" [URL="../item/index.html#kigadgets.item.BoardItem",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for all PCB board items."]; "GeoHashable" -> "BoardItem" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GeoHashable" [URL="../item/index.html#kigadgets.item.GeoHashable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for objects that can be geometrically hashed."]; "HasConnection" [URL="../item/index.html#kigadgets.item.HasConnection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin for board items with electrical connections."]; "GeoHashable" -> "HasConnection" [arrowsize=0.5,style="setlinewidth(0.5)"]; "HasPosition" [URL="../item/index.html#kigadgets.item.HasPosition",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin for board items with position properties."]; "GeoHashable" -> "HasPosition" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Selectable" [URL="../item/index.html#kigadgets.item.Selectable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin for board items that can be selected in the GUI."]; "GeoHashable" -> "Selectable" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Via" [URL="#kigadgets.via.Via",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Careful setting top_layer, then getting top_layer may"]; "HasPosition" -> "Via" [arrowsize=0.5,style="setlinewidth(0.5)"]; "HasConnection" -> "Via" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Selectable" -> "Via" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoardItem" -> "Via" [arrowsize=0.5,style="setlinewidth(0.5)"]; }kigadgets.item.HasPosition,kigadgets.item.HasConnection,kigadgets.item.Selectable,kigadgets.item.BoardItemCareful setting top_layer, then getting top_layer may return different values if the new top_layer is below the existing bottom layer
- property center: kigadgets.Point¶
Via center
- property size: float¶
Via diameter
- property drill: float¶
Via drill diameter
- property is_through: bool¶
Returns False if it’s a blind via OR microvia.
- width¶
- diameter¶
- set_layer_pair(layer_pair: Tuple[str, str] | List[str]) None¶
- get_layer_pair_hash() int¶
- property top_layer: str¶
- property bottom_layer: str¶
- geohash() int¶
- property position: kigadgets.Point¶
- property x: float¶
- property y: float¶
- property net_name: str¶
- property net_code: int¶
- property is_selected: bool¶
- select(value: bool = True) None¶
Selecting changes the appearance and also plays a role in determining what will be the subject of a subsequent command (delete, move to layer, etc.)
- deselect() None¶
- brighten(value: bool = True) None¶
Brightening gives a bright green appearance
- property native_obj: Any¶
- property board: kigadgets.board.Board | None¶