Constants

The NodeGraphQt.constants namespace contains variables and enums used throughout the NodeGraphQt library.

Classes:

VersionEnum(value)

Current framework version.

LayoutDirectionEnum(value)

Node graph nodes layout direction: NodeGraphQt.constants.ViewerLayoutEnum

ViewerEnum(value)

Node graph viewer styling layout: NodeGraphQt.constants.ViewerEnum

ViewerNavEnum(value)

Node graph viewer navigation styling layout: NodeGraphQt.constants.ViewerNavEnum

NodeEnum(value)

Node styling layout: NodeGraphQt.constants.NodeEnum

PortEnum(value)

Port styling layout: NodeGraphQt.constants.PortEnum

PortTypeEnum(value)

Port connection types: NodeGraphQt.constants.PortTypeEnum

PipeEnum(value)

Pipe styling layout: NodeGraphQt.constants.PipeEnum

PipeSlicerEnum(value)

Slicer Pipe styling layout: NodeGraphQt.constants.PipeSlicerEnum

PipeLayoutEnum(value)

Pipe connection drawing layout: NodeGraphQt.constants.PipeLayoutEnum

NodePropWidgetEnum(value)

Mapping used for the NodeGraphQt.PropertiesBinWidget to display a node property in the specified widget type.

class NodeGraphQt.constants.VersionEnum(value)

Current framework version. NodeGraphQt.constants.VersionEnum

Attributes:

VERSION

current version string.

MAJOR

version major int.

MINOR

version minor int.

PATCH

version patch int.

VERSION = '0.6.36'

current version string.

MAJOR = 0

version major int.

MINOR = 6

version minor int.

PATCH = 36

version patch int.

class NodeGraphQt.constants.LayoutDirectionEnum(value)

Node graph nodes layout direction: NodeGraphQt.constants.ViewerLayoutEnum

Attributes:

HORIZONTAL

layout nodes left to right.

VERTICAL

layout nodes top to bottom.

HORIZONTAL = 0

layout nodes left to right.

VERTICAL = 1

layout nodes top to bottom.

class NodeGraphQt.constants.ViewerEnum(value)

Node graph viewer styling layout: NodeGraphQt.constants.ViewerEnum

Attributes:

BACKGROUND_COLOR

default background color for the node graph.

GRID_DISPLAY_NONE

style node graph background with no grid or dots.

GRID_DISPLAY_DOTS

style node graph background with dots.

GRID_DISPLAY_LINES

style node graph background with grid lines.

GRID_SIZE

grid size when styled with grid lines.

GRID_COLOR

grid line color.

BACKGROUND_COLOR = (35, 35, 35)

default background color for the node graph.

GRID_DISPLAY_NONE = 0

style node graph background with no grid or dots.

GRID_DISPLAY_DOTS = 1

style node graph background with dots.

GRID_DISPLAY_LINES = 2

style node graph background with grid lines.

GRID_SIZE = 50

grid size when styled with grid lines.

GRID_COLOR = (45, 45, 45)

grid line color.

class NodeGraphQt.constants.ViewerNavEnum(value)

Node graph viewer navigation styling layout: NodeGraphQt.constants.ViewerNavEnum

Attributes:

BACKGROUND_COLOR

default background color.

ITEM_COLOR

default item color.

BACKGROUND_COLOR = (25, 25, 25)

default background color.

ITEM_COLOR = (35, 35, 35)

default item color.

class NodeGraphQt.constants.NodeEnum(value)

Node styling layout: NodeGraphQt.constants.NodeEnum

Attributes:

WIDTH

default node width.

HEIGHT

default node height.

ICON_SIZE

default node icon size (WxH).

SELECTED_COLOR

default node overlay color when selected.

SELECTED_BORDER_COLOR

default node border color when selected.

WIDTH = 160

default node width.

HEIGHT = 60

default node height.

ICON_SIZE = 18

default node icon size (WxH).

SELECTED_COLOR = (255, 255, 255, 30)

default node overlay color when selected.

SELECTED_BORDER_COLOR = (254, 207, 42, 255)

default node border color when selected.

class NodeGraphQt.constants.PortEnum(value)

Port styling layout: NodeGraphQt.constants.PortEnum

Attributes:

SIZE

default port size.

COLOR

default port color.

BORDER_COLOR

default port border color.

ACTIVE_COLOR

port color when selected.

ACTIVE_BORDER_COLOR

port border color when selected.

HOVER_COLOR

port color on mouse over.

HOVER_BORDER_COLOR

port border color on mouse over.

CLICK_FALLOFF

threshold for selecting a port.

SIZE = 22.0

default port size.

COLOR = (49, 115, 100, 255)

default port color. (r, g, b, a)

BORDER_COLOR = (29, 202, 151, 255)

default port border color.

ACTIVE_COLOR = (14, 45, 59, 255)

port color when selected.

ACTIVE_BORDER_COLOR = (107, 166, 193, 255)

port border color when selected.

HOVER_COLOR = (17, 43, 82, 255)

port color on mouse over.

HOVER_BORDER_COLOR = (136, 255, 35, 255)

port border color on mouse over.

CLICK_FALLOFF = 15.0

threshold for selecting a port.

class NodeGraphQt.constants.PortTypeEnum(value)

Port connection types: NodeGraphQt.constants.PortTypeEnum

Attributes:

IN

Connection type for input ports.

OUT

Connection type for output ports.

IN = 'in'

Connection type for input ports.

OUT = 'out'

Connection type for output ports.

class NodeGraphQt.constants.PipeEnum(value)

Pipe styling layout: NodeGraphQt.constants.PipeEnum

Attributes:

WIDTH

default width.

COLOR

default color.

DISABLED_COLOR

pipe color to a node when it's disabled.

ACTIVE_COLOR

pipe color when selected or mouse over.

HIGHLIGHT_COLOR

pipe color to a node when it's selected.

DRAW_TYPE_DEFAULT

draw connection as a line.

DRAW_TYPE_DASHED

draw connection as dashed lines.

DRAW_TYPE_DOTTED

draw connection as a dotted line.

WIDTH = 1.2

default width.

COLOR = (175, 95, 30, 255)

default color.

DISABLED_COLOR = (200, 60, 60, 255)

pipe color to a node when it’s disabled.

ACTIVE_COLOR = (70, 255, 220, 255)

pipe color when selected or mouse over.

HIGHLIGHT_COLOR = (232, 184, 13, 255)

pipe color to a node when it’s selected.

DRAW_TYPE_DEFAULT = 0

draw connection as a line.

DRAW_TYPE_DASHED = 1

draw connection as dashed lines.

DRAW_TYPE_DOTTED = 2

draw connection as a dotted line.

class NodeGraphQt.constants.PipeSlicerEnum(value)

Slicer Pipe styling layout: NodeGraphQt.constants.PipeSlicerEnum

Attributes:

WIDTH

default width.

COLOR

default color.

WIDTH = 1.5

default width.

COLOR = (255, 50, 75)

default color.

class NodeGraphQt.constants.PipeLayoutEnum(value)

Pipe connection drawing layout: NodeGraphQt.constants.PipeLayoutEnum

Attributes:

STRAIGHT

draw straight lines for pipe connections.

CURVED

draw curved lines for pipe connections.

ANGLE

draw angled lines for pipe connections.

STRAIGHT = 0

draw straight lines for pipe connections.

CURVED = 1

draw curved lines for pipe connections.

ANGLE = 2

draw angled lines for pipe connections.

class NodeGraphQt.constants.NodePropWidgetEnum(value)

Mapping used for the NodeGraphQt.PropertiesBinWidget to display a node property in the specified widget type.

NodeGraphQt.constants.NodePropWidgetEnum

Attributes:

HIDDEN

Node property will be hidden in the PropertiesBinWidget (default).

QLABEL

Node property represented with a QLabel widget.

QLINE_EDIT

Node property represented with a QLineEdit widget.

QTEXT_EDIT

Node property represented with a QTextEdit widget.

QCOMBO_BOX

Node property represented with a QComboBox widget.

QCHECK_BOX

Node property represented with a QCheckBox widget.

QSPIN_BOX

Node property represented with a QSpinBox widget.

QDOUBLESPIN_BOX

Node property represented with a QDoubleSpinBox widget.

COLOR_PICKER

Node property represented with a ColorPicker widget.

COLOR4_PICKER

Node property represented with a ColorPicker (RGBA) widget.

SLIDER

Node property represented with an (Int) Slider widget.

DOUBLE_SLIDER

Node property represented with a (Dobule) Slider widget.

FILE_OPEN

Node property represented with a file selector widget.

FILE_SAVE

Node property represented with a file save widget.

VECTOR2

Node property represented with a vector2 widget.

VECTOR3

Node property represented with vector3 widget.

VECTOR4

Node property represented with vector4 widget.

FLOAT

Node property represented with float line edit widget.

INT

Node property represented with int line edit widget.

BUTTON

Node property represented with button widget.

HIDDEN = 0

Node property will be hidden in the PropertiesBinWidget (default).

QLABEL = 2

Node property represented with a QLabel widget.

QLINE_EDIT = 3

Node property represented with a QLineEdit widget.

QTEXT_EDIT = 4

Node property represented with a QTextEdit widget.

QCOMBO_BOX = 5

Node property represented with a QComboBox widget.

QCHECK_BOX = 6

Node property represented with a QCheckBox widget.

QSPIN_BOX = 7

Node property represented with a QSpinBox widget.

QDOUBLESPIN_BOX = 8

Node property represented with a QDoubleSpinBox widget.

COLOR_PICKER = 9

Node property represented with a ColorPicker widget.

COLOR4_PICKER = 10

Node property represented with a ColorPicker (RGBA) widget.

SLIDER = 11

Node property represented with an (Int) Slider widget.

DOUBLE_SLIDER = 12

Node property represented with a (Dobule) Slider widget.

FILE_OPEN = 13

Node property represented with a file selector widget.

FILE_SAVE = 14

Node property represented with a file save widget.

VECTOR2 = 15

Node property represented with a vector2 widget.

VECTOR3 = 16

Node property represented with vector3 widget.

VECTOR4 = 17

Node property represented with vector4 widget.

FLOAT = 18

Node property represented with float line edit widget.

INT = 19

Node property represented with int line edit widget.

BUTTON = 20

Node property represented with button widget.