node_graphics_edge_path Module

Constants

nodeeditor.node_graphics_edge_path.EDGE_CP_ROUNDNESS = 100

Bezier control point distance on the line

GraphicsEdgePathBase base class

class nodeeditor.node_graphics_edge_path.GraphicsEdgePathBase(owner: QDMGraphicsEdge)

Bases: object

Base Class for calculating the graphics path to draw for an graphics Edge

calcPath()

Calculate the Direct line connection

Returns

QPainterPath of the graphics path to draw

Return type

QPainterPath or None

GraphicsEdgePathDirect class

class nodeeditor.node_graphics_edge_path.GraphicsEdgePathDirect(owner: QDMGraphicsEdge)

Bases: nodeeditor.node_graphics_edge_path.GraphicsEdgePathBase

Direct line connection Graphics Edge

calcPath()PyQt5.QtGui.QPainterPath

Calculate the Direct line connection

Returns

QPainterPath of the direct line

Return type

QPainterPath

GraphicsEdgePathBezier class

class nodeeditor.node_graphics_edge_path.GraphicsEdgePathBezier(owner: QDMGraphicsEdge)

Bases: nodeeditor.node_graphics_edge_path.GraphicsEdgePathBase

Cubic line connection Graphics Edge

calcPath()PyQt5.QtGui.QPainterPath

Calculate the cubic Bezier line connection with 2 control points

Returns

QPainterPath of the cubic Bezier line

Return type

QPainterPath