10.1.8.3. Sketch

class Patro.Pattern.Sketch.Sketch(pattern)[source]

Bases: object

AlongLinePoint(*args, **kwargs)
EndLinePoint(*args, **kwargs)
Line(*args, **kwargs)
LineIntersectPoint(*args, **kwargs)
NormalPoint(*args, **kwargs)
Point(*args, **kwargs)
PointOfIntersection(*args, **kwargs)
SimpleInteractiveSpline(*args, **kwargs)
SinglePoint(*args, **kwargs)
SketchOperation(*args, **kwargs)
__init__(pattern)[source]

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

_add_operation(operation)[source]
_logger = <Logger Patro.Pattern.Sketch.Sketch (WARNING)>
_operation_to_path_style(operation, **kwargs)[source]

Generate a GraphicPathStyle instance for a operation

bounding_box

Compute the bounding box of the pattern.

calculator
detail_scene(scene_cls=<class 'Patro.GraphicEngine.GraphicScene.Scene.GraphicScene'>, style=None)[source]

Generate a graphic scene for the detail mode

Scene class can be customised using the scene_cls parameter.

dump()[source]
eval()[source]
get_operation(id)[source]
has_operation_id(id)[source]
measurements
operations
pattern
unit