10.1.5.2.6. QtPainter¶
Module to implement a Qt Painter.
-
class
Patro.GraphicEngine.Painter.QtPainter.
QtPainter
(scene=None)[source]¶ Bases:
Patro.GraphicEngine.Painter.Painter.Painter
Class to implement a Qt painter.
-
__CAP_STYLE__
= {<CapStyle.FlatCap: 1>: 0, <CapStyle.SquareCap: 2>: 16, <CapStyle.RoundCap: 3>: 32}¶
-
__JOIN_STYLE__
= {<JoinStyle.MiterJoin: 1>: 0, <JoinStyle.BevelJoin: 2>: 64, <JoinStyle.RoundJoin: 3>: 128, <JoinStyle.SvgMiterJoin: 4>: 256}¶
-
__STROKE_STYLE__
= {<StrokeStyle.NoPen: 1>: 0, <StrokeStyle.SolidLine: 2>: 1, <StrokeStyle.DashLine: 3>: 2, <StrokeStyle.DotLine: 4>: 3, <StrokeStyle.DashDotLine: 5>: 4, <StrokeStyle.DashDotDotLine: 6>: 5}¶
-
__paint_method__
= {<class 'Patro.GraphicEngine.GraphicScene.GraphicItem.TextItem'>: <function QtPainter.paint_TextItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CircleItem'>: <function QtPainter.paint_CircleItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.EllipseItem'>: <function QtPainter.paint_EllipseItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.SegmentItem'>: <function QtPainter.paint_SegmentItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolylineItem'>: <function QtPainter.paint_PolylineItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolygonItem'>: <function QtPainter.paint_PolygonItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.ImageItem'>: <function QtPainter.paint_ImageItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CubicBezierItem'>: <function QtPainter.paint_CubicBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.QuadraticBezierItem'>: <function QtPainter.paint_QuadraticBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PathItem'>: <function QtPainter.paint_PathItem>}¶
-
_logger
= <Logger Patro.GraphicEngine.Painter.QtPainter.QtPainter (WARNING)>¶
-
cast_position
(position)[source]¶ Cast coordinate, apply scope transformation and convert scene to viewport, position can be a coordinate name string of a:class:Vector2D.
-
scene_area
¶
-
-
class
Patro.GraphicEngine.Painter.QtPainter.
QtQuickPaintedSceneItem
(parent=None)[source]¶ Bases:
PyQt5.QtQuick.QQuickPaintedItem
,Patro.GraphicEngine.Painter.QtPainter.QtPainter
Class to implement a painter as Qt Quick item
-
__paint_method__
= {<class 'Patro.GraphicEngine.GraphicScene.GraphicItem.TextItem'>: <function QtPainter.paint_TextItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CircleItem'>: <function QtPainter.paint_CircleItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.EllipseItem'>: <function QtPainter.paint_EllipseItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.SegmentItem'>: <function QtPainter.paint_SegmentItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolylineItem'>: <function QtPainter.paint_PolylineItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PolygonItem'>: <function QtPainter.paint_PolygonItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.ImageItem'>: <function QtPainter.paint_ImageItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.CubicBezierItem'>: <function QtPainter.paint_CubicBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.QuadraticBezierItem'>: <function QtPainter.paint_QuadraticBezierItem>, <class 'Patro.GraphicEngine.GraphicScene.GraphicItem.PathItem'>: <function QtPainter.paint_PathItem>}¶
-
_logger
= <Logger Patro.GraphicEngine.Painter.QtPainter.QtQuickPaintedSceneItem (WARNING)>¶
-
scene
¶
-
sceneChanged
¶
-
scene_area
¶
-
zoom
¶
-
-
class
Patro.GraphicEngine.Painter.QtPainter.
QtScene
[source]¶ Bases:
PyQt5.QtCore.QObject
,Patro.GraphicEngine.GraphicScene.Scene.GraphicScene
Class to add Qt Object features to GraphicScene .
-
_logger
= <Logger Patro.GraphicEngine.Painter.QtPainter.QtScene (WARNING)>¶
-