node_graphics_cutline Module

A module containing the class for Cutting Line

class nodeeditor.node_graphics_cutline.QDMCutLine(parent: Optional[PyQt5.QtWidgets.QWidget] = None)

Bases: PyQt5.QtWidgets.QGraphicsItem

Class representing Cutting Line used for cutting multiple Edges with one stroke

Parameters

parent (QWidget) – parent widget

boundingRect()PyQt5.QtCore.QRectF

Defining Qt’ bounding rectangle

shape()PyQt5.QtGui.QPainterPath

Calculate the QPainterPath object from list of line points

Returns

shape function returning QPainterPath representation of Cutting Line

Return type

QPainterPath

paint(painter, QStyleOptionGraphicsItem, widget=None)

Paint the Cutting Line