TXLWizard.Patterns.AbstractPattern

Provides an abstract class for Pattern objects

Classes

AbstractPattern(**kwargs) Provides an abstract class for Pattern objects.
class TXLWizard.Patterns.AbstractPattern.AbstractPattern(**kwargs)[source]

Bases: object

Provides an abstract class for Pattern objects.

Parameters:
  • Layer (int, optional) –

    Specifies the Layer attribute of the pattern.

    Defaults to None.

  • DataType (int, optional) –

    Specifies the DataType attribute of the pattern.

    Defaults to None.

  • RotationAngle (float, optional) –

    Specifies the RotationAngle attribute of the pattern.

    Defaults to None.

  • StrokeWidth (float, optional) –

    Specifies the StrokeWidth attribute of the pattern.

    Defaults to None.

  • ScaleFactor (float, optional) –

    Specifies the ScaleFactor attribute of the pattern.

    Defaults to None.

Attributes = None

dict – attribute values of the current pattern. Default values are copied from self.DefaultAttributes

DefaultAttributes = None

dict – default attributes that are copied to self.Attributes upon instantiation. Specifies the allowed attributes

GetSVGOutput()[source]

Generates the SVG output xml for the current pattern. Needs to be implemented for each pattern type separately in the corresponding inheriting class.

Returns:SVG output xml
Return type:str
GetTXLOutput()[source]

Generates the TXL output commands for the current pattern. Needs to be implemented for each pattern type separately in the corresponding inheriting class.

Returns:TXL output commands
Return type:str
ParentStructure = None

TXLWizard.Patterns.Structure.Structure, reference to the Structure instance containing the current pattern

Type = None

str – specifies the type of the pattern.