pdkmaster.dispatch¶
pdkmaster.dispatch.shape¶
-
class
pdkmaster.dispatch.shape.
ShapeDispatcher
[source]¶ Bases:
object
Dispatch to class method based on type of _Shape subclasses.
This dispatcher follows the common way of working in the dispatch module. Exception is the “geometry.MultiPartShape._Part”, for this one can overload the MultiPartShape__Part method. The default implementation with call the dispatcher on the part_shape of the given object. Assume that dispatcher is called with a MultiPartShape._Part with object part with part.part_shape of type Rect. Then the default implement will call the Rect method with part.part_shape as shape.
-
Polygon
(polygon: pdkmaster.technology.geometry.Polygon, _dispatch_hier: bool = True, *args, **kwargs)[source]¶
-