10.1.3.3.2. Pattern

This module implements the Valentina val XML file format.

class Patro.FileFormat.Valentina.Pattern.CalculationDispatcher[source]

Bases: Patro.FileFormat.Valentina.Pattern.Dispatcher

Class to implement a dispatcher for calculations.

__TAGS__ = {'arc': None, 'ellipse': None, 'line': <class 'Patro.FileFormat.Valentina.VitFormat.Line'>, 'operation': None, 'point': <class 'Patro.FileFormat.Valentina.VitFormat.Point'>, 'spline': <class 'Patro.FileFormat.Valentina.VitFormat.Spline'>}
__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

_init_mapper()[source]
_logger = <Logger Patro.FileFormat.Valentina.Pattern.CalculationDispatcher (WARNING)>
_register_mapping(xml_cls)[source]
from_operation(operation)[source]
from_xml(element)[source]
class Patro.FileFormat.Valentina.Pattern.DetailDispatcher[source]

Bases: Patro.FileFormat.Valentina.Pattern.Dispatcher

Class to implement a dispatcher for detail.

__TAGS__ = {'data': <class 'Patro.FileFormat.Valentina.VitFormat.DetailData'>, 'grainline': <class 'Patro.FileFormat.Valentina.VitFormat.DetailGrainline'>, 'patternInfo': <class 'Patro.FileFormat.Valentina.VitFormat.DetailPatternInfo'>}
class Patro.FileFormat.Valentina.Pattern.Dispatcher[source]

Bases: object

Baseclass to dispatch XML to Python class.

__TAGS__ = {}
from_xml(element)[source]
class Patro.FileFormat.Valentina.Pattern.Modeling[source]

Bases: object

Class to implement a modeling mapper.

__getitem__(id)[source]
__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

add(item)[source]
class Patro.FileFormat.Valentina.Pattern.ModelingDispatcher[source]

Bases: Patro.FileFormat.Valentina.Pattern.Dispatcher

Class to implement a dispatcher for modeling.

__TAGS__ = {'point': <class 'Patro.FileFormat.Valentina.VitFormat.ModelingPoint'>, 'spline': <class 'Patro.FileFormat.Valentina.VitFormat.ModelingSpline'>}
class Patro.FileFormat.Valentina.Pattern.ValFileReader(path)[source]

Bases: object

Class to read val file.

__init__(path)[source]

Initialize self. See help(type(self)) for accurate signature.

measurements
pattern
vit_file
class Patro.FileFormat.Valentina.Pattern.ValFileReaderInternal(path)[source]

Bases: Patro.Common.Xml.XmlFile.XmlFileMixin

Class to read val file.

__init__(path)[source]

Initialize self. See help(type(self)) for accurate signature.

_logger = <Logger Patro.FileFormat.Valentina.Pattern.ValFileReader (WARNING)>
measurements
read()[source]
read_attributes()[source]
read_detail(scope, modeling, detail_element)[source]
read_measurements()[source]
read_piece(piece)[source]
class Patro.FileFormat.Valentina.Pattern.ValFileWriter(path, vit_file, pattern)[source]

Bases: object

Class to write val file.

__init__(path, vit_file, pattern)[source]

Initialize self. See help(type(self)) for accurate signature.

_build_xml_tree()[source]
_logger = <Logger Patro.FileFormat.Valentina.Pattern.ValFileWriter (WARNING)>
_write(root)[source]