KicadModTree.nodes package

KicadModTree.nodes.Footprint module

class KicadModTree.nodes.Footprint.Footprint(name)[source]

Bases: KicadModTree.nodes.Node.Node

Root Node to generate KicadMod

setAttribute(value)[source]
setDescription(description)[source]
setMaskMargin(value)[source]
setName(name)[source]
setPasteMargin(value)[source]
setPasteMarginRatio(value)[source]
setTags(tags)[source]

KicadModTree.nodes.Node module

exception KicadModTree.nodes.Node.MultipleParentsError(message)[source]

Bases: exceptions.RuntimeError

class KicadModTree.nodes.Node.Node[source]

Bases: object

append(node)[source]

add node to child

calculateBoundingBox(outline=None)[source]
copy()[source]
extend(nodes)[source]

add list of nodes to child

getAllChilds()[source]

Get virtual and normal childs of this node

getCompleteRenderTree(rendered_nodes=None)[source]

print virtual render tree

getNormalChilds()[source]

Get all normal childs of this node

getParent()[source]

get Parent Node of this Node

getRealPosition(coordinate, rotation=None)[source]

return position of point after applying all transformation and rotation operations

getRenderTree(rendered_nodes=None)[source]

print render tree

getRootNode()[source]

get Root Node of this Node

getVirtualChilds()[source]

Get virtual childs of this node

insert(node)[source]

moving all childs into the node, and using the node as new parent of those childs

remove(node)[source]

remove child from node

serialize()[source]
exception KicadModTree.nodes.Node.RecursionDetectedError(message)[source]

Bases: exceptions.RuntimeError