10.1.5.2.1. DxfPainter¶
-
Patro.GraphicEngine.Painter.DxfPainter.
DxfPainter
(*args, **kwargs)[source]¶ Wrapper to driver classes
-
class
Patro.GraphicEngine.Painter.DxfPainter.
DxfPainterBase
(path, scene, paper)[source]¶ Bases:
Patro.GraphicEngine.Painter.Painter.Painter
-
__paint_method__
= {<class 'Patro.GraphicEngine.GraphicScene.GraphicItem.TextItem'>: <function Painter.paint_TextItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CircleItem'>: <function Painter.paint_CircleItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.EllipseItem'>: <function Painter.paint_EllipseItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.SegmentItem'>: <function Painter.paint_SegmentItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolylineItem'>: <function Painter.paint_PolylineItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolygonItem'>: <function Painter.paint_PolygonItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.ImageItem'>: <function Painter.paint_ImageItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CubicBezierItem'>: <function Painter.paint_CubicBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.QuadraticBezierItem'>: <function Painter.paint_QuadraticBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PathItem'>: <function Painter.paint_PathItem>}¶
-
-
class
Patro.GraphicEngine.Painter.DxfPainter.
EzdxfPainter
(path, scene, paper, dxf_version='R2010')[source]¶ Bases:
Patro.GraphicEngine.Painter.DxfPainter.DxfPainterBase
-
__COLOR__
= {None: None, 'black': 0}¶
-
__STROKE_STYLE__
= {<StrokeStyle.NoPen: 1>: 'PHANTOM', <StrokeStyle.SolidLine: 2>: 'CONTINUOUS', <StrokeStyle.DashLine: 3>: 'DASH', <StrokeStyle.DotLine: 4>: 'DOTTED', <StrokeStyle.DashDotLine: 5>: 'DASHDOT', <StrokeStyle.DashDotDotLine: 6>: 'DASHDOTDOT'}¶
-
__init__
(path, scene, paper, dxf_version='R2010')[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
__paint_method__
= {<class 'Patro.GraphicEngine.GraphicScene.GraphicItem.TextItem'>: <function EzdxfPainter.paint_TextItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CircleItem'>: <function EzdxfPainter.paint_CircleItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.EllipseItem'>: <function Painter.paint_EllipseItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.SegmentItem'>: <function EzdxfPainter.paint_SegmentItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolylineItem'>: <function Painter.paint_PolylineItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolygonItem'>: <function Painter.paint_PolygonItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.ImageItem'>: <function Painter.paint_ImageItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CubicBezierItem'>: <function EzdxfPainter.paint_CubicBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.QuadraticBezierItem'>: <function Painter.paint_QuadraticBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PathItem'>: <function Painter.paint_PathItem>}¶
-