ged2doc.ancestor_tree_emf¶
Module containing methods/classes for laying out ancestor trees.
Classes
|
|
-
class
ged2doc.ancestor_tree_emf.EMFTreeVisitor(width, height, dpi=300)[source]¶ Bases:
ged2doc.ancestor_tree.AncestorTreeVisitorAncestorTreeVisitorimplementation which makes EMF image.- Parameters
- width, height
ged2doc.size.Size Width and height of the image.
- dpi
float Image resolution.
- width, height
Methods
makeEMF()Produce EMF image from a visited tree.
visitFatherEdge(node, parentNode)Visitor method for an edge leading from node to its mother.
visitMotherEdge(node, parentNode)Visitor method for an edge leading from node to its mother.
visitNode(node)Visitor method for a node in tree.
-
visitMotherEdge(node, parentNode)[source]¶ Visitor method for an edge leading from node to its mother.
It is guaranteed that
visitNodeis called for both nodes before this method is called.- Parameters
- node
TreeNode Tree node.
- parentNode
TreeNode Parent tree node.
- node
-
visitFatherEdge(node, parentNode)[source]¶ Visitor method for an edge leading from node to its mother.
It is guaranteed that
visitNodeis called for both nodes before this method is called.- Parameters
- node
TreeNode Tree node.
- parentNode
TreeNode Parent tree node.
- node
-
makeEMF()[source]¶ Produce EMF image from a visited tree.
- Returns
- document
bytes Concents of generated EMF image.
- mime_type
str MIME type of produced document.
- width
ged2doc.size.Size Width of SVG document
- height
ged2doc.size.Size Height of SVG document
- document
-
_abc_impl= <_abc_data object>¶