From 5ca36717ac72440a99aa60e36a33cf14aa201808 Mon Sep 17 00:00:00 2001 From: ilgarlunin Date: Mon, 17 Jun 2019 11:18:40 +0300 Subject: [PATCH] pyrr moved to repo. base package rename --- PyFlow/App.py | 2 +- PyFlow/Core/GraphBase.py | 4 +- .../PyflowBase/Factories/UINodeFactory.py | 50 +- .../PyflowBase/Factories/UIPinFactory.py | 8 +- PyFlow/Packages/PyflowBase/Nodes/getVar.py | 2 +- PyFlow/Packages/PyflowBase/Nodes/setVar.py | 2 +- .../PyflowBase/Tools/AlignBottomTool.py | 2 +- .../PyflowBase/Tools/AlignLeftTool.py | 2 +- .../PyflowBase/Tools/AlignRightTool.py | 2 +- .../Packages/PyflowBase/Tools/AlignTopTool.py | 2 +- .../Packages/PyflowBase/Tools/CompileTool.py | 2 +- .../Packages/PyflowBase/Tools/HistoryTool.py | 2 +- .../PyflowBase/Tools/PropertiesTool.py | 4 +- .../PyflowBase/Tools/ScreenshotTool.py | 2 +- .../PyflowBase/Tools/SearchResultsTool.py | 2 +- PyFlow/Packages/PyflowBase/UI/UIAnyPin.py | 4 +- PyFlow/Packages/PyflowBase/__init__.py | 140 ++--- .../Pyrr/Factories/PinInputWidgetFactory.py | 531 ------------------ .../Packages/Pyrr/Factories/UINodeFactory.py | 5 - .../Packages/Pyrr/Factories/UIPinFactory.py | 5 - PyFlow/Packages/Pyrr/Factories/__init__.py | 0 .../Pyrr/FunctionLibraries/Matrix33.py | 188 ------- .../Pyrr/FunctionLibraries/Matrix44.py | 228 -------- .../Pyrr/FunctionLibraries/QuatLib.py | 215 ------- .../Pyrr/FunctionLibraries/Vector3.py | 167 ------ .../Pyrr/FunctionLibraries/Vector4.py | 149 ----- .../Pyrr/FunctionLibraries/__init__.py | 0 PyFlow/Packages/Pyrr/Pins/FloatVector3Pin.py | 59 -- PyFlow/Packages/Pyrr/Pins/FloatVector4Pin.py | 59 -- PyFlow/Packages/Pyrr/Pins/Matrix33Pin.py | 59 -- PyFlow/Packages/Pyrr/Pins/Matrix44Pin.py | 59 -- PyFlow/Packages/Pyrr/Pins/QuatPin.py | 59 -- PyFlow/Packages/Pyrr/Pins/__init__.py | 0 PyFlow/Packages/Pyrr/UI/__init__.py | 0 PyFlow/Packages/Pyrr/__init__.py | 79 --- PyFlow/Tests/Test_Arrays.py | 6 +- PyFlow/Tests/Test_BasePackage.py | 4 +- PyFlow/Tests/Test_General.py | 60 +- PyFlow/UI/Canvas/Canvas.py | 14 +- PyFlow/UI/Canvas/UIVariable.py | 2 +- .../PyFlow.Packages.PyflowBase.Exporters.rst | 12 +- .../PyFlow.Packages.PyflowBase.Factories.rst | 16 +- ....Packages.PyflowBase.FunctionLibraries.rst | 36 +- .../PyFlow.Packages.PyflowBase.Nodes.rst | 120 ++-- .../PyFlow.Packages.PyflowBase.Pins.rst | 32 +- .../PyFlow.Packages.PyflowBase.Tools.rst | 44 +- docs/source/PyFlow.Packages.PyflowBase.UI.rst | 56 +- docs/source/PyFlow.Packages.PyflowBase.rst | 18 +- docs/source/PyFlow.Packages.rst | 2 +- 49 files changed, 327 insertions(+), 2189 deletions(-) delete mode 100644 PyFlow/Packages/Pyrr/Factories/PinInputWidgetFactory.py delete mode 100644 PyFlow/Packages/Pyrr/Factories/UINodeFactory.py delete mode 100644 PyFlow/Packages/Pyrr/Factories/UIPinFactory.py delete mode 100644 PyFlow/Packages/Pyrr/Factories/__init__.py delete mode 100644 PyFlow/Packages/Pyrr/FunctionLibraries/Matrix33.py delete mode 100644 PyFlow/Packages/Pyrr/FunctionLibraries/Matrix44.py delete mode 100644 PyFlow/Packages/Pyrr/FunctionLibraries/QuatLib.py delete mode 100644 PyFlow/Packages/Pyrr/FunctionLibraries/Vector3.py delete mode 100644 PyFlow/Packages/Pyrr/FunctionLibraries/Vector4.py delete mode 100644 PyFlow/Packages/Pyrr/FunctionLibraries/__init__.py delete mode 100644 PyFlow/Packages/Pyrr/Pins/FloatVector3Pin.py delete mode 100644 PyFlow/Packages/Pyrr/Pins/FloatVector4Pin.py delete mode 100644 PyFlow/Packages/Pyrr/Pins/Matrix33Pin.py delete mode 100644 PyFlow/Packages/Pyrr/Pins/Matrix44Pin.py delete mode 100644 PyFlow/Packages/Pyrr/Pins/QuatPin.py delete mode 100644 PyFlow/Packages/Pyrr/Pins/__init__.py delete mode 100644 PyFlow/Packages/Pyrr/UI/__init__.py delete mode 100644 PyFlow/Packages/Pyrr/__init__.py diff --git a/PyFlow/App.py b/PyFlow/App.py index 4ee2c7bc7..05ea996a8 100644 --- a/PyFlow/App.py +++ b/PyFlow/App.py @@ -27,7 +27,7 @@ from PyFlow.UI.Views.NodeBox import NodesBox from PyFlow.UI.Canvas.UINodeBase import getUINodeInstance from PyFlow.UI.Tool.Tool import ShelfTool, DockTool -from PyFlow.Packages.PyflowBase.Tools.PropertiesTool import PropertiesTool +from PyFlow.Packages.PyFlowBase.Tools.PropertiesTool import PropertiesTool from PyFlow.UI.Tool import GET_TOOLS from PyFlow.Wizards.PackageWizard import PackageWizard from PyFlow import INITIALIZE diff --git a/PyFlow/Core/GraphBase.py b/PyFlow/Core/GraphBase.py index dd95ad373..1da3f319a 100644 --- a/PyFlow/Core/GraphBase.py +++ b/PyFlow/Core/GraphBase.py @@ -244,7 +244,7 @@ def getInputNode(self): pins on this node will be exposed on compound node as input pins """ - node = getRawNodeInstance("graphInputs", "PyflowBase") + node = getRawNodeInstance("graphInputs", "PyFlowBase") self.addNode(node) return node @@ -253,7 +253,7 @@ def getOutputNode(self): pins on this node will be exposed on compound node as output pins """ - node = getRawNodeInstance("graphOutputs", "PyflowBase") + node = getRawNodeInstance("graphOutputs", "PyFlowBase") self.addNode(node) return node diff --git a/PyFlow/Packages/PyflowBase/Factories/UINodeFactory.py b/PyFlow/Packages/PyflowBase/Factories/UINodeFactory.py index d2c9d7fa9..a7da32674 100644 --- a/PyFlow/Packages/PyflowBase/Factories/UINodeFactory.py +++ b/PyFlow/Packages/PyflowBase/Factories/UINodeFactory.py @@ -1,36 +1,36 @@ -from PyFlow.Packages.PyflowBase.Nodes.switchOnString import switchOnString -from PyFlow.Packages.PyflowBase.Nodes.getVar import getVar -from PyFlow.Packages.PyflowBase.Nodes.setVar import setVar -from PyFlow.Packages.PyflowBase.Nodes.sequence import sequence -from PyFlow.Packages.PyflowBase.Nodes.pythonNode import pythonNode -from PyFlow.Packages.PyflowBase.Nodes.commentNode import commentNode -from PyFlow.Packages.PyflowBase.Nodes.reroute import reroute -from PyFlow.Packages.PyflowBase.Nodes.rerouteExecs import rerouteExecs -from PyFlow.Packages.PyflowBase.Nodes.graphNodes import ( +from PyFlow.Packages.PyFlowBase.Nodes.switchOnString import switchOnString +from PyFlow.Packages.PyFlowBase.Nodes.getVar import getVar +from PyFlow.Packages.PyFlowBase.Nodes.setVar import setVar +from PyFlow.Packages.PyFlowBase.Nodes.sequence import sequence +from PyFlow.Packages.PyFlowBase.Nodes.pythonNode import pythonNode +from PyFlow.Packages.PyFlowBase.Nodes.commentNode import commentNode +from PyFlow.Packages.PyFlowBase.Nodes.reroute import reroute +from PyFlow.Packages.PyFlowBase.Nodes.rerouteExecs import rerouteExecs +from PyFlow.Packages.PyFlowBase.Nodes.graphNodes import ( graphInputs, graphOutputs ) -from PyFlow.Packages.PyflowBase.Nodes.compound import compound -from PyFlow.Packages.PyflowBase.Nodes.constant import constant -from PyFlow.Packages.PyflowBase.Nodes.convertTo import convertTo -from PyFlow.Packages.PyflowBase.Nodes.makeDict import makeDict +from PyFlow.Packages.PyFlowBase.Nodes.compound import compound +from PyFlow.Packages.PyFlowBase.Nodes.constant import constant +from PyFlow.Packages.PyFlowBase.Nodes.convertTo import convertTo +from PyFlow.Packages.PyFlowBase.Nodes.makeDict import makeDict -from PyFlow.Packages.PyflowBase.UI.UISwitchOnStringNode import UISwitchOnString -from PyFlow.Packages.PyflowBase.UI.UIGetVarNode import UIGetVarNode -from PyFlow.Packages.PyflowBase.UI.UISetVarNode import UISetVarNode -from PyFlow.Packages.PyflowBase.UI.UISequenceNode import UISequenceNode -from PyFlow.Packages.PyflowBase.UI.UICommentNode import UICommentNode -from PyFlow.Packages.PyflowBase.UI.UIRerouteNode import UIRerouteNode -from PyFlow.Packages.PyflowBase.UI.UIPythonNode import UIPythonNode -from PyFlow.Packages.PyflowBase.UI.UIGraphNodes import ( +from PyFlow.Packages.PyFlowBase.UI.UISwitchOnStringNode import UISwitchOnString +from PyFlow.Packages.PyFlowBase.UI.UIGetVarNode import UIGetVarNode +from PyFlow.Packages.PyFlowBase.UI.UISetVarNode import UISetVarNode +from PyFlow.Packages.PyFlowBase.UI.UISequenceNode import UISequenceNode +from PyFlow.Packages.PyFlowBase.UI.UICommentNode import UICommentNode +from PyFlow.Packages.PyFlowBase.UI.UIRerouteNode import UIRerouteNode +from PyFlow.Packages.PyFlowBase.UI.UIPythonNode import UIPythonNode +from PyFlow.Packages.PyFlowBase.UI.UIGraphNodes import ( UIGraphInputs, UIGraphOutputs ) -from PyFlow.Packages.PyflowBase.UI.UICompoundNode import UICompoundNode -from PyFlow.Packages.PyflowBase.UI.UIConstantNode import UIConstantNode -from PyFlow.Packages.PyflowBase.UI.UIConvertToNode import UIConvertToNode -from PyFlow.Packages.PyflowBase.UI.UIMakeDictNode import UIMakeDictNode +from PyFlow.Packages.PyFlowBase.UI.UICompoundNode import UICompoundNode +from PyFlow.Packages.PyFlowBase.UI.UIConstantNode import UIConstantNode +from PyFlow.Packages.PyFlowBase.UI.UIConvertToNode import UIConvertToNode +from PyFlow.Packages.PyFlowBase.UI.UIMakeDictNode import UIMakeDictNode from PyFlow.UI.Canvas.UINodeBase import UINodeBase diff --git a/PyFlow/Packages/PyflowBase/Factories/UIPinFactory.py b/PyFlow/Packages/PyflowBase/Factories/UIPinFactory.py index 8b35660a5..3527b8a85 100644 --- a/PyFlow/Packages/PyflowBase/Factories/UIPinFactory.py +++ b/PyFlow/Packages/PyflowBase/Factories/UIPinFactory.py @@ -1,9 +1,9 @@ from PyFlow.UI.Canvas.UIPinBase import UIPinBase -from PyFlow.Packages.PyflowBase.Pins.AnyPin import AnyPin -from PyFlow.Packages.PyflowBase.Pins.ExecPin import ExecPin +from PyFlow.Packages.PyFlowBase.Pins.AnyPin import AnyPin +from PyFlow.Packages.PyFlowBase.Pins.ExecPin import ExecPin -from PyFlow.Packages.PyflowBase.UI.UIAnyPin import UIAnyPin -from PyFlow.Packages.PyflowBase.UI.UIExecPin import UIExecPin +from PyFlow.Packages.PyFlowBase.UI.UIAnyPin import UIAnyPin +from PyFlow.Packages.PyFlowBase.UI.UIExecPin import UIExecPin def createUIPin(owningNode, raw_instance): diff --git a/PyFlow/Packages/PyflowBase/Nodes/getVar.py b/PyFlow/Packages/PyflowBase/Nodes/getVar.py index 83446ba41..4348a6ab7 100644 --- a/PyFlow/Packages/PyflowBase/Nodes/getVar.py +++ b/PyFlow/Packages/PyflowBase/Nodes/getVar.py @@ -1,7 +1,7 @@ from copy import copy import uuid -from PyFlow.Packages.PyflowBase import PACKAGE_NAME +from PyFlow.Packages.PyFlowBase import PACKAGE_NAME from PyFlow.Core import NodeBase from PyFlow.Core.Variable import Variable from PyFlow.Core.Common import * diff --git a/PyFlow/Packages/PyflowBase/Nodes/setVar.py b/PyFlow/Packages/PyflowBase/Nodes/setVar.py index 2c77ed046..2cc5c5b1a 100644 --- a/PyFlow/Packages/PyflowBase/Nodes/setVar.py +++ b/PyFlow/Packages/PyflowBase/Nodes/setVar.py @@ -1,6 +1,6 @@ from copy import copy -from PyFlow.Packages.PyflowBase import PACKAGE_NAME +from PyFlow.Packages.PyFlowBase import PACKAGE_NAME from PyFlow.Core import NodeBase from PyFlow.Core.Common import * from PyFlow import CreateRawPin diff --git a/PyFlow/Packages/PyflowBase/Tools/AlignBottomTool.py b/PyFlow/Packages/PyflowBase/Tools/AlignBottomTool.py index 2a74f7789..6c83678ce 100644 --- a/PyFlow/Packages/PyflowBase/Tools/AlignBottomTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/AlignBottomTool.py @@ -1,6 +1,6 @@ from nine import str from PyFlow.UI.Tool.Tool import ShelfTool -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.Core.Common import Direction from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/Tools/AlignLeftTool.py b/PyFlow/Packages/PyflowBase/Tools/AlignLeftTool.py index f579f3bc2..d3a7b6f06 100644 --- a/PyFlow/Packages/PyflowBase/Tools/AlignLeftTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/AlignLeftTool.py @@ -1,6 +1,6 @@ from nine import str from PyFlow.UI.Tool.Tool import ShelfTool -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.Core.Common import Direction from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/Tools/AlignRightTool.py b/PyFlow/Packages/PyflowBase/Tools/AlignRightTool.py index e3c52df22..8778425ba 100644 --- a/PyFlow/Packages/PyflowBase/Tools/AlignRightTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/AlignRightTool.py @@ -1,6 +1,6 @@ from nine import str from PyFlow.UI.Tool.Tool import ShelfTool -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.Core.Common import Direction from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/Tools/AlignTopTool.py b/PyFlow/Packages/PyflowBase/Tools/AlignTopTool.py index 0d21a9f04..76a20180b 100644 --- a/PyFlow/Packages/PyflowBase/Tools/AlignTopTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/AlignTopTool.py @@ -1,6 +1,6 @@ from nine import str from PyFlow.UI.Tool.Tool import ShelfTool -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.Core.Common import Direction from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/Tools/CompileTool.py b/PyFlow/Packages/PyflowBase/Tools/CompileTool.py index f1c8d52be..6e65d7ba7 100644 --- a/PyFlow/Packages/PyflowBase/Tools/CompileTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/CompileTool.py @@ -1,6 +1,6 @@ from nine import str from PyFlow.UI.Tool.Tool import ShelfTool -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.UI.ContextMenuDataBuilder import ContextMenuDataBuilder from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/Tools/HistoryTool.py b/PyFlow/Packages/PyflowBase/Tools/HistoryTool.py index 051f01394..598bf843c 100644 --- a/PyFlow/Packages/PyflowBase/Tools/HistoryTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/HistoryTool.py @@ -5,7 +5,7 @@ from Qt.QtWidgets import QWidget from Qt.QtWidgets import QVBoxLayout -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.UI.Tool.Tool import DockTool diff --git a/PyFlow/Packages/PyflowBase/Tools/PropertiesTool.py b/PyFlow/Packages/PyflowBase/Tools/PropertiesTool.py index be44f14c0..62a871e82 100644 --- a/PyFlow/Packages/PyflowBase/Tools/PropertiesTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/PropertiesTool.py @@ -3,7 +3,7 @@ from Qt import QtGui from Qt import QtWidgets -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.UI.Tool.Tool import DockTool from PyFlow.UI.Widgets.PropertiesFramework import PropertiesWidget @@ -22,7 +22,7 @@ def __init__(self): self.propertiesWidget.spawnDuplicate.connect(self.onTearOffCopy) def onTearOffCopy(self, *args, **kwargs): - instance = self.canvas.getApp().invokeDockToolByName("PyflowBase", self.name()) + instance = self.canvas.getApp().invokeDockToolByName("PyFlowBase", self.name()) instance.assignPropertiesWidget(self.fillDelegate) instance.setFloating(True) instance.resize(self.size()) diff --git a/PyFlow/Packages/PyflowBase/Tools/ScreenshotTool.py b/PyFlow/Packages/PyflowBase/Tools/ScreenshotTool.py index 9015a2930..80bc1f425 100644 --- a/PyFlow/Packages/PyflowBase/Tools/ScreenshotTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/ScreenshotTool.py @@ -1,6 +1,6 @@ from nine import str from PyFlow.UI.Tool.Tool import ShelfTool -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.UI.ContextMenuDataBuilder import ContextMenuDataBuilder from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/Tools/SearchResultsTool.py b/PyFlow/Packages/PyflowBase/Tools/SearchResultsTool.py index d537c7b5e..215296048 100644 --- a/PyFlow/Packages/PyflowBase/Tools/SearchResultsTool.py +++ b/PyFlow/Packages/PyflowBase/Tools/SearchResultsTool.py @@ -3,7 +3,7 @@ from Qt import QtGui from Qt.QtWidgets import * -from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR +from PyFlow.Packages.PyFlowBase.Tools import RESOURCES_DIR from PyFlow.UI.Tool.Tool import DockTool from PyFlow.UI.Widgets.PropertiesFramework import * diff --git a/PyFlow/Packages/PyflowBase/UI/UIAnyPin.py b/PyFlow/Packages/PyflowBase/UI/UIAnyPin.py index ed30a08b6..a573b4fc9 100644 --- a/PyFlow/Packages/PyflowBase/UI/UIAnyPin.py +++ b/PyFlow/Packages/PyflowBase/UI/UIAnyPin.py @@ -1,11 +1,11 @@ -from PyFlow.Packages.PyflowBase import PACKAGE_NAME +from PyFlow.Packages.PyFlowBase import PACKAGE_NAME from PyFlow.Core import PinBase from PyFlow import findPinClassByType from PyFlow.Core.Common import * from PyFlow.UI.Utils.Settings import Colors from PyFlow.UI.Canvas.Painters import PinPainter from PyFlow import getAllPinClasses -from PyFlow.Packages.PyflowBase.Pins.AnyPin import AnyPin +from PyFlow.Packages.PyFlowBase.Pins.AnyPin import AnyPin from PyFlow.UI.Widgets.SelectPinDialog import SelectPinDialog from PyFlow.UI.Canvas.UIPinBase import UIPinBase from Qt import QtGui diff --git a/PyFlow/Packages/PyflowBase/__init__.py b/PyFlow/Packages/PyflowBase/__init__.py index ebec37711..03b70b521 100644 --- a/PyFlow/Packages/PyflowBase/__init__.py +++ b/PyFlow/Packages/PyflowBase/__init__.py @@ -1,82 +1,82 @@ -PACKAGE_NAME = 'PyflowBase' +PACKAGE_NAME = 'PyFlowBase' from collections import OrderedDict from PyFlow.UI.UIInterfaces import IPackage # Pins -from PyFlow.Packages.PyflowBase.Pins.AnyPin import AnyPin -from PyFlow.Packages.PyflowBase.Pins.BoolPin import BoolPin -from PyFlow.Packages.PyflowBase.Pins.ExecPin import ExecPin -from PyFlow.Packages.PyflowBase.Pins.FloatPin import FloatPin -from PyFlow.Packages.PyflowBase.Pins.IntPin import IntPin -from PyFlow.Packages.PyflowBase.Pins.StringPin import StringPin +from PyFlow.Packages.PyFlowBase.Pins.AnyPin import AnyPin +from PyFlow.Packages.PyFlowBase.Pins.BoolPin import BoolPin +from PyFlow.Packages.PyFlowBase.Pins.ExecPin import ExecPin +from PyFlow.Packages.PyFlowBase.Pins.FloatPin import FloatPin +from PyFlow.Packages.PyFlowBase.Pins.IntPin import IntPin +from PyFlow.Packages.PyFlowBase.Pins.StringPin import StringPin # Function based nodes -from PyFlow.Packages.PyflowBase.FunctionLibraries.ArrayLib import ArrayLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.BoolLib import BoolLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.DefaultLib import DefaultLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.FloatLib import FloatLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.IntLib import IntLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.MathLib import MathLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.MathAbstractLib import MathAbstractLib -from PyFlow.Packages.PyflowBase.FunctionLibraries.RandomLib import RandomLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.ArrayLib import ArrayLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.BoolLib import BoolLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.DefaultLib import DefaultLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.FloatLib import FloatLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.IntLib import IntLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.MathLib import MathLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.MathAbstractLib import MathAbstractLib +from PyFlow.Packages.PyFlowBase.FunctionLibraries.RandomLib import RandomLib # Class based nodes -from PyFlow.Packages.PyflowBase.Nodes.branch import branch -from PyFlow.Packages.PyflowBase.Nodes.tick import tick -from PyFlow.Packages.PyflowBase.Nodes.charge import charge -from PyFlow.Packages.PyflowBase.Nodes.delay import delay -from PyFlow.Packages.PyflowBase.Nodes.deltaTime import deltaTime -from PyFlow.Packages.PyflowBase.Nodes.doN import doN -from PyFlow.Packages.PyflowBase.Nodes.doOnce import doOnce -from PyFlow.Packages.PyflowBase.Nodes.flipFlop import flipFlop -from PyFlow.Packages.PyflowBase.Nodes.forLoop import forLoop -from PyFlow.Packages.PyflowBase.Nodes.forEachLoop import forEachLoop -from PyFlow.Packages.PyflowBase.Nodes.forLoopWithBreak import forLoopWithBreak -from PyFlow.Packages.PyflowBase.Nodes.retriggerableDelay import retriggerableDelay -from PyFlow.Packages.PyflowBase.Nodes.sequence import sequence -from PyFlow.Packages.PyflowBase.Nodes.switchOnString import switchOnString -from PyFlow.Packages.PyflowBase.Nodes.timer import timer -from PyFlow.Packages.PyflowBase.Nodes.whileLoop import whileLoop -from PyFlow.Packages.PyflowBase.Nodes.commentNode import commentNode -from PyFlow.Packages.PyflowBase.Nodes.getVar import getVar -from PyFlow.Packages.PyflowBase.Nodes.setVar import setVar -from PyFlow.Packages.PyflowBase.Nodes.reroute import reroute -from PyFlow.Packages.PyflowBase.Nodes.rerouteExecs import rerouteExecs -from PyFlow.Packages.PyflowBase.Nodes.makeArray import makeArray -from PyFlow.Packages.PyflowBase.Nodes.makeList import makeList -from PyFlow.Packages.PyflowBase.Nodes.makeDict import makeDict -from PyFlow.Packages.PyflowBase.Nodes.makeDictElement import makeDictElement -from PyFlow.Packages.PyflowBase.Nodes.dictKeys import dictKeys - - -from PyFlow.Packages.PyflowBase.Nodes.consoleOutput import consoleOutput -from PyFlow.Packages.PyflowBase.Nodes.address import address -from PyFlow.Packages.PyflowBase.Nodes.graphNodes import graphInputs, graphOutputs -from PyFlow.Packages.PyflowBase.Nodes.pythonNode import pythonNode -from PyFlow.Packages.PyflowBase.Nodes.compound import compound -from PyFlow.Packages.PyflowBase.Nodes.constant import constant -from PyFlow.Packages.PyflowBase.Nodes.convertTo import convertTo - -from PyFlow.Packages.PyflowBase.Tools.ScreenshotTool import ScreenshotTool -from PyFlow.Packages.PyflowBase.Tools.NodeBoxTool import NodeBoxTool -from PyFlow.Packages.PyflowBase.Tools.SearchResultsTool import SearchResultsTool -from PyFlow.Packages.PyflowBase.Tools.AlignLeftTool import AlignLeftTool -from PyFlow.Packages.PyflowBase.Tools.AlignRightTool import AlignRightTool -from PyFlow.Packages.PyflowBase.Tools.AlignTopTool import AlignTopTool -from PyFlow.Packages.PyflowBase.Tools.AlignBottomTool import AlignBottomTool -from PyFlow.Packages.PyflowBase.Tools.HistoryTool import HistoryTool -from PyFlow.Packages.PyflowBase.Tools.PropertiesTool import PropertiesTool -from PyFlow.Packages.PyflowBase.Tools.VariablesTool import VariablesTool -from PyFlow.Packages.PyflowBase.Tools.CompileTool import CompileTool - -from PyFlow.Packages.PyflowBase.Exporters.PythonScriptExporter import PythonScriptExporter -from PyFlow.Packages.PyflowBase.Exporters.CPPCompiler import CPPCompiler +from PyFlow.Packages.PyFlowBase.Nodes.branch import branch +from PyFlow.Packages.PyFlowBase.Nodes.tick import tick +from PyFlow.Packages.PyFlowBase.Nodes.charge import charge +from PyFlow.Packages.PyFlowBase.Nodes.delay import delay +from PyFlow.Packages.PyFlowBase.Nodes.deltaTime import deltaTime +from PyFlow.Packages.PyFlowBase.Nodes.doN import doN +from PyFlow.Packages.PyFlowBase.Nodes.doOnce import doOnce +from PyFlow.Packages.PyFlowBase.Nodes.flipFlop import flipFlop +from PyFlow.Packages.PyFlowBase.Nodes.forLoop import forLoop +from PyFlow.Packages.PyFlowBase.Nodes.forEachLoop import forEachLoop +from PyFlow.Packages.PyFlowBase.Nodes.forLoopWithBreak import forLoopWithBreak +from PyFlow.Packages.PyFlowBase.Nodes.retriggerableDelay import retriggerableDelay +from PyFlow.Packages.PyFlowBase.Nodes.sequence import sequence +from PyFlow.Packages.PyFlowBase.Nodes.switchOnString import switchOnString +from PyFlow.Packages.PyFlowBase.Nodes.timer import timer +from PyFlow.Packages.PyFlowBase.Nodes.whileLoop import whileLoop +from PyFlow.Packages.PyFlowBase.Nodes.commentNode import commentNode +from PyFlow.Packages.PyFlowBase.Nodes.getVar import getVar +from PyFlow.Packages.PyFlowBase.Nodes.setVar import setVar +from PyFlow.Packages.PyFlowBase.Nodes.reroute import reroute +from PyFlow.Packages.PyFlowBase.Nodes.rerouteExecs import rerouteExecs +from PyFlow.Packages.PyFlowBase.Nodes.makeArray import makeArray +from PyFlow.Packages.PyFlowBase.Nodes.makeList import makeList +from PyFlow.Packages.PyFlowBase.Nodes.makeDict import makeDict +from PyFlow.Packages.PyFlowBase.Nodes.makeDictElement import makeDictElement +from PyFlow.Packages.PyFlowBase.Nodes.dictKeys import dictKeys + + +from PyFlow.Packages.PyFlowBase.Nodes.consoleOutput import consoleOutput +from PyFlow.Packages.PyFlowBase.Nodes.address import address +from PyFlow.Packages.PyFlowBase.Nodes.graphNodes import graphInputs, graphOutputs +from PyFlow.Packages.PyFlowBase.Nodes.pythonNode import pythonNode +from PyFlow.Packages.PyFlowBase.Nodes.compound import compound +from PyFlow.Packages.PyFlowBase.Nodes.constant import constant +from PyFlow.Packages.PyFlowBase.Nodes.convertTo import convertTo + +from PyFlow.Packages.PyFlowBase.Tools.ScreenshotTool import ScreenshotTool +from PyFlow.Packages.PyFlowBase.Tools.NodeBoxTool import NodeBoxTool +from PyFlow.Packages.PyFlowBase.Tools.SearchResultsTool import SearchResultsTool +from PyFlow.Packages.PyFlowBase.Tools.AlignLeftTool import AlignLeftTool +from PyFlow.Packages.PyFlowBase.Tools.AlignRightTool import AlignRightTool +from PyFlow.Packages.PyFlowBase.Tools.AlignTopTool import AlignTopTool +from PyFlow.Packages.PyFlowBase.Tools.AlignBottomTool import AlignBottomTool +from PyFlow.Packages.PyFlowBase.Tools.HistoryTool import HistoryTool +from PyFlow.Packages.PyFlowBase.Tools.PropertiesTool import PropertiesTool +from PyFlow.Packages.PyFlowBase.Tools.VariablesTool import VariablesTool +from PyFlow.Packages.PyFlowBase.Tools.CompileTool import CompileTool + +from PyFlow.Packages.PyFlowBase.Exporters.PythonScriptExporter import PythonScriptExporter +from PyFlow.Packages.PyFlowBase.Exporters.CPPCompiler import CPPCompiler # Factories -from PyFlow.Packages.PyflowBase.Factories.UIPinFactory import createUIPin -from PyFlow.Packages.PyflowBase.Factories.PinInputWidgetFactory import getInputWidget -from PyFlow.Packages.PyflowBase.Factories.UINodeFactory import createUINode +from PyFlow.Packages.PyFlowBase.Factories.UIPinFactory import createUIPin +from PyFlow.Packages.PyFlowBase.Factories.PinInputWidgetFactory import getInputWidget +from PyFlow.Packages.PyFlowBase.Factories.UINodeFactory import createUINode _FOO_LIBS = { @@ -157,9 +157,9 @@ _EXPORTERS[CPPCompiler.__name__] = CPPCompiler -class PyflowBase(IPackage): +class PyFlowBase(IPackage): def __init__(self): - super(PyflowBase, self).__init__() + super(PyFlowBase, self).__init__() @staticmethod def GetExporters(): diff --git a/PyFlow/Packages/Pyrr/Factories/PinInputWidgetFactory.py b/PyFlow/Packages/Pyrr/Factories/PinInputWidgetFactory.py deleted file mode 100644 index eef342f0e..000000000 --- a/PyFlow/Packages/Pyrr/Factories/PinInputWidgetFactory.py +++ /dev/null @@ -1,531 +0,0 @@ -import weakref -import pyrr - -from PyFlow.Core.Common import * -from PyFlow.UI.Widgets.InputWidgets import * - -from PyFlow.UI.Widgets.QtSliders import pyf_Slider - -from Qt import QtWidgets - -FLOAT_SINGLE_STEP = 0.01 -FLOAT_DECIMALS = 5 - - -class FloatVector3InputWidget(InputWidgetRaw): - """Vector3 data input widget""" - - def __init__(self, **kwds): - super(FloatVector3InputWidget, self).__init__(**kwds) - self.setLayout(QtWidgets.QHBoxLayout()) - self.layout().setContentsMargins(1, 1, 1, 1) - self.layout().setSpacing(1) - self.dsbX = pyf_Slider(self, "float", style=0, name="x") - self.dsbY = pyf_Slider(self, "float", style=0, name="y") - self.dsbZ = pyf_Slider(self, "float", style=0, name="z") - self.layout().addWidget(self.dsbX) - self.layout().addWidget(self.dsbY) - self.layout().addWidget(self.dsbZ) - - self._configSpinBoxes() - self.dsbX.valueChanged.connect(self._onDataChangedX) - self.dsbY.valueChanged.connect(self._onDataChangedY) - self.dsbZ.valueChanged.connect(self._onDataChangedZ) - - def blockWidgetSignals(self, bLocked): - for w in [self.dsbX, self.dsbY, self.dsbZ]: - w.blockSignals(bLocked) - - def asDataTypeClass(self): - return pyrr.Vector3([self.dsbX.value(), self.dsbY.value(), self.dsbZ.value()]) - - def _configSpinBoxes(self): - for x in [self.dsbX, self.dsbY, self.dsbZ]: - x.setDecimals(FLOAT_DECIMALS) - x.setRange(FLOAT_RANGE_MIN, FLOAT_RANGE_MAX) - x.setSingleStep(FLOAT_SINGLE_STEP) - x.setDisplayMinimun(0) - x.setDisplayMaximum(10) - - def _onDataChangedX(self, val): - v = self.asDataTypeClass() - v.x = val - self.dataSetCallback(v) - - def _onDataChangedY(self, val): - v = self.asDataTypeClass() - v.y = val - self.dataSetCallback(v) - - def _onDataChangedZ(self, val): - v = self.asDataTypeClass() - v.z = val - self.dataSetCallback(v) - - def setWidgetValue(self, val): - self.dsbX.setValue(val.x) - self.dsbY.setValue(val.y) - self.dsbZ.setValue(val.z) - - def resizeEvent(self, event): - if self.width() < 260: - for x in [self.dsbX, self.dsbY, self.dsbZ]: - x.hideSlider() - x.hideLabel() - else: - for x in [self.dsbX, self.dsbY, self.dsbZ]: - x.showSlider() - x.showLabel() - super(FloatVector3InputWidget, self).resizeEvent(event) - - -class FloatVector4InputWidget(InputWidgetRaw): - """Vector4 data input widget""" - - def __init__(self, **kwds): - super(FloatVector4InputWidget, self).__init__(**kwds) - self.setLayout(QtWidgets.QHBoxLayout()) - self.layout().setContentsMargins(1, 1, 1, 1) - self.layout().setSpacing(1) - self.dsbX = pyf_Slider(self, "float", style=0, name="x") - self.dsbY = pyf_Slider(self, "float", style=0, name="y") - self.dsbZ = pyf_Slider(self, "float", style=0, name="z") - self.dsbW = pyf_Slider(self, "float", style=0, name="w") - for x in [self.dsbX, self.dsbY, self.dsbZ, self.dsbW]: - self.layout().addWidget(x) - - self._configSpinBoxes() - self.dsbX.valueChanged.connect(self._onDataChangedX) - self.dsbY.valueChanged.connect(self._onDataChangedY) - self.dsbZ.valueChanged.connect(self._onDataChangedZ) - self.dsbW.valueChanged.connect(self._onDataChangedW) - - def blockWidgetSignals(self, bLocked): - for w in [self.dsbX, self.dsbY, self.dsbZ, self.dsbW]: - w.blockSignals(bLocked) - - def asDataTypeClass(self): - return pyrr.Vector4([self.dsbX.value(), self.dsbY.value(), self.dsbZ.value(), self.dsbW.value()]) - - def _configSpinBoxes(self): - for x in [self.dsbX, self.dsbY, self.dsbZ, self.dsbW]: - x.setDecimals(FLOAT_DECIMALS) - x.setRange(FLOAT_RANGE_MIN, FLOAT_RANGE_MAX) - x.setSingleStep(FLOAT_SINGLE_STEP) - x.setDisplayMinimun(0) - x.setDisplayMaximum(10) - - def _onDataChangedX(self, val): - v = self.asDataTypeClass() - v.x = val - self.dataSetCallback(v) - - def _onDataChangedY(self, val): - v = self.asDataTypeClass() - v.y = val - self.dataSetCallback(v) - - def _onDataChangedZ(self, val): - v = self.asDataTypeClass() - v.z = val - self.dataSetCallback(v) - - def _onDataChangedW(self, val): - v = self.asDataTypeClass() - v.w = val - self.dataSetCallback(v) - - def setWidgetValue(self, val): - self.dsbX.setValue(val.x) - self.dsbY.setValue(val.y) - self.dsbZ.setValue(val.z) - self.dsbW.setValue(val.w) - - def resizeEvent(self, event): - if self.width() < 340: - for x in [self.dsbX, self.dsbY, self.dsbZ, self.dsbW]: - x.hideSlider() - x.hideLabel() - else: - for x in [self.dsbX, self.dsbY, self.dsbZ, self.dsbW]: - x.showSlider() - x.showLabel() - super(FloatVector4InputWidget, self).resizeEvent(event) - - -class QuatInputWidget(FloatVector4InputWidget): - """Quaternion data input widget""" - - def __init__(self, **kwds): - super(QuatInputWidget, self).__init__(**kwds) - - def asDataTypeClass(self): - return pyrr.Quaternion([self.dsbX.value(), self.dsbY.value(), self.dsbZ.value(), self.dsbW.value()]) - - -class Matrix33InputWidget(InputWidgetRaw): - """Matrix33 data input widget""" - - def __init__(self, parent=None, **kwds): - super(Matrix33InputWidget, self).__init__(parent=parent, **kwds) - - self.setLayout(QtWidgets.QGridLayout()) - self.layout().setContentsMargins(1, 1, 1, 1) - self.layout().setSpacing(1) - self.dsbm11 = pyf_Slider(self, "float", style=0) - self.dsbm12 = pyf_Slider(self, "float", style=0) - self.dsbm13 = pyf_Slider(self, "float", style=0) - self.dsbm21 = pyf_Slider(self, "float", style=0) - self.dsbm22 = pyf_Slider(self, "float", style=0) - self.dsbm23 = pyf_Slider(self, "float", style=0) - self.dsbm31 = pyf_Slider(self, "float", style=0) - self.dsbm32 = pyf_Slider(self, "float", style=0) - self.dsbm33 = pyf_Slider(self, "float", style=0) - - self.layout().addWidget(self.dsbm22, 1, 1, 1, 1) - self.layout().addWidget(self.dsbm21, 1, 0, 1, 1) - self.layout().addWidget(self.dsbm31, 2, 0, 1, 1) - self.layout().addWidget(self.dsbm23, 1, 2, 1, 1) - self.layout().addWidget(self.dsbm32, 2, 1, 1, 1) - self.layout().addWidget(self.dsbm33, 2, 2, 1, 1) - self.layout().addWidget(self.dsbm12, 0, 1, 1, 1) - self.layout().addWidget(self.dsbm11, 0, 0, 1, 1) - self.layout().addWidget(self.dsbm13, 0, 2, 1, 1) - self._configSpinBoxes() - - self.dsbm11.valueChanged.connect(self.m11Changed) - self.dsbm12.valueChanged.connect(self.m12Changed) - self.dsbm13.valueChanged.connect(self.m13Changed) - - self.dsbm21.valueChanged.connect(self.m21Changed) - self.dsbm22.valueChanged.connect(self.m22Changed) - self.dsbm23.valueChanged.connect(self.m23Changed) - - self.dsbm31.valueChanged.connect(self.m31Changed) - self.dsbm32.valueChanged.connect(self.m32Changed) - self.dsbm33.valueChanged.connect(self.m33Changed) - - def blockWidgetSignals(self, bLocked): - for w in [self.dsbm11, self.dsbm12, self.dsbm13, - self.dsbm21, self.dsbm22, self.dsbm23, - self.dsbm31, self.dsbm32, self.dsbm33]: - w.blockSignals(bLocked) - - def asDataTypeClass(self): - return pyrr.Matrix33([ - [self.dsbm11.value(), self.dsbm12.value(), self.dsbm13.value()], - [self.dsbm21.value(), self.dsbm22.value(), self.dsbm23.value()], - [self.dsbm31.value(), self.dsbm32.value(), self.dsbm33.value()] - ]) - - def _configSpinBoxes(self): - ls = [self.dsbm11, self.dsbm12, self.dsbm13, - self.dsbm21, self.dsbm22, self.dsbm23, - self.dsbm31, self.dsbm32, self.dsbm33] - for x in ls: - x.setDecimals(FLOAT_DECIMALS) - x.setRange(FLOAT_RANGE_MIN, FLOAT_RANGE_MAX) - x.setSingleStep(FLOAT_SINGLE_STEP) - x.setDisplayMinimun(0) - x.setDisplayMaximum(10) - - def m11Changed(self, val): - m = self.asDataTypeClass() - m.m11 = val - self.dataSetCallback(m) - - def m12Changed(self, val): - m = self.asDataTypeClass() - m.m12 = val - self.dataSetCallback(m) - - def m13Changed(self, val): - m = self.asDataTypeClass() - m.m13 = val - self.dataSetCallback(m) - - def m21Changed(self, val): - m = self.asDataTypeClass() - m.m21 = val - self.dataSetCallback(m) - - def m22Changed(self, val): - m = self.asDataTypeClass() - m.m22 = val - self.dataSetCallback(m) - - def m23Changed(self, val): - m = self.asDataTypeClass() - m.m23 = val - self.dataSetCallback(m) - - def m31Changed(self, val): - m = self.asDataTypeClass() - m.m31 = val - self.dataSetCallback(m) - - def m32Changed(self, val): - m = self.asDataTypeClass() - m.m32 = val - self.dataSetCallback(m) - - def m33Changed(self, val): - m = self.asDataTypeClass() - m.m33 = val - self.dataSetCallback(m) - - def setWidgetValue(self, val): - self.dsbm11.setValue(val.m11) - self.dsbm12.setValue(val.m12) - self.dsbm13.setValue(val.m13) - - self.dsbm21.setValue(val.m21) - self.dsbm22.setValue(val.m22) - self.dsbm23.setValue(val.m23) - - self.dsbm31.setValue(val.m31) - self.dsbm32.setValue(val.m32) - self.dsbm33.setValue(val.m33) - - def resizeEvent(self, event): - if self.width() < 260: - for x in [self.dsbm11, self.dsbm12, self.dsbm13, - self.dsbm21, self.dsbm22, self.dsbm23, - self.dsbm31, self.dsbm32, self.dsbm33]: - x.hideSlider() - else: - for x in [self.dsbm11, self.dsbm12, self.dsbm13, - self.dsbm21, self.dsbm22, self.dsbm23, - self.dsbm31, self.dsbm32, self.dsbm33]: - x.showSlider() - super(Matrix33InputWidget, self).resizeEvent(event) - - -class Matrix44InputWidget(InputWidgetRaw): - """Matrix44 data input widget""" - - def __init__(self, parent=None, **kwds): - super(Matrix44InputWidget, self).__init__(parent=parent, **kwds) - - self.setLayout(QtWidgets.QGridLayout()) - self.layout().setContentsMargins(1, 1, 1, 1) - self.layout().setSpacing(1) - self.dsbm11 = pyf_Slider(self, "float", style=0) - self.dsbm12 = pyf_Slider(self, "float", style=0) - self.dsbm13 = pyf_Slider(self, "float", style=0) - self.dsbm14 = pyf_Slider(self, "float", style=0) - self.dsbm21 = pyf_Slider(self, "float", style=0) - self.dsbm22 = pyf_Slider(self, "float", style=0) - self.dsbm23 = pyf_Slider(self, "float", style=0) - self.dsbm24 = pyf_Slider(self, "float", style=0) - self.dsbm31 = pyf_Slider(self, "float", style=0) - self.dsbm32 = pyf_Slider(self, "float", style=0) - self.dsbm33 = pyf_Slider(self, "float", style=0) - self.dsbm34 = pyf_Slider(self, "float", style=0) - self.dsbm41 = pyf_Slider(self, "float", style=0) - self.dsbm42 = pyf_Slider(self, "float", style=0) - self.dsbm43 = pyf_Slider(self, "float", style=0) - self.dsbm44 = pyf_Slider(self, "float", style=0) - - self.layout().addWidget(self.dsbm11, 0, 0, 1, 1) - self.layout().addWidget(self.dsbm12, 0, 1, 1, 1) - self.layout().addWidget(self.dsbm13, 0, 2, 1, 1) - self.layout().addWidget(self.dsbm14, 0, 3, 1, 1) - self.layout().addWidget(self.dsbm21, 1, 0, 1, 1) - self.layout().addWidget(self.dsbm22, 1, 1, 1, 1) - self.layout().addWidget(self.dsbm23, 1, 2, 1, 1) - self.layout().addWidget(self.dsbm24, 1, 3, 1, 1) - self.layout().addWidget(self.dsbm31, 2, 0, 1, 1) - self.layout().addWidget(self.dsbm32, 2, 1, 1, 1) - self.layout().addWidget(self.dsbm33, 2, 2, 1, 1) - self.layout().addWidget(self.dsbm34, 2, 3, 1, 1) - self.layout().addWidget(self.dsbm41, 3, 0, 1, 1) - self.layout().addWidget(self.dsbm42, 3, 1, 1, 1) - self.layout().addWidget(self.dsbm43, 3, 2, 1, 1) - self.layout().addWidget(self.dsbm44, 3, 3, 1, 1) - - self._configSpinBoxes() - - self.dsbm11.valueChanged.connect(self.m11Changed) - self.dsbm12.valueChanged.connect(self.m12Changed) - self.dsbm13.valueChanged.connect(self.m13Changed) - self.dsbm14.valueChanged.connect(self.m14Changed) - - self.dsbm21.valueChanged.connect(self.m21Changed) - self.dsbm22.valueChanged.connect(self.m22Changed) - self.dsbm23.valueChanged.connect(self.m23Changed) - self.dsbm24.valueChanged.connect(self.m24Changed) - - self.dsbm31.valueChanged.connect(self.m31Changed) - self.dsbm32.valueChanged.connect(self.m32Changed) - self.dsbm33.valueChanged.connect(self.m33Changed) - self.dsbm34.valueChanged.connect(self.m34Changed) - - self.dsbm41.valueChanged.connect(self.m41Changed) - self.dsbm42.valueChanged.connect(self.m42Changed) - self.dsbm43.valueChanged.connect(self.m43Changed) - self.dsbm44.valueChanged.connect(self.m44Changed) - - def blockWidgetSignals(self, bLocked): - for w in [self.dsbm11, self.dsbm12, self.dsbm13, self.dsbm14, - self.dsbm21, self.dsbm22, self.dsbm23, self.dsbm24, - self.dsbm31, self.dsbm32, self.dsbm33, self.dsbm34, - self.dsbm41, self.dsbm42, self.dsbm43, self.dsbm44]: - w.blockSignals(bLocked) - - def asDataTypeClass(self): - return pyrr.Matrix44([ - [self.dsbm11.value(), self.dsbm12.value(), - self.dsbm13.value(), self.dsbm14.value()], - [self.dsbm21.value(), self.dsbm22.value(), - self.dsbm23.value(), self.dsbm24.value()], - [self.dsbm31.value(), self.dsbm32.value(), - self.dsbm33.value(), self.dsbm34.value()], - [self.dsbm41.value(), self.dsbm42.value(), - self.dsbm43.value(), self.dsbm44.value()] - ]) - - def _configSpinBoxes(self): - ls = [self.dsbm11, self.dsbm12, self.dsbm13, self.dsbm14, - self.dsbm21, self.dsbm22, self.dsbm23, self.dsbm24, - self.dsbm31, self.dsbm32, self.dsbm33, self.dsbm34, - self.dsbm41, self.dsbm42, self.dsbm43, self.dsbm44] - for x in ls: - x.setDecimals(FLOAT_DECIMALS) - x.setRange(FLOAT_RANGE_MIN, FLOAT_RANGE_MAX) - x.setSingleStep(FLOAT_SINGLE_STEP) - x.setDisplayMinimun(0) - x.setDisplayMaximum(10) - - def m11Changed(self, val): - m = self.asDataTypeClass() - m.m11 = val - self.dataSetCallback(m) - - def m12Changed(self, val): - m = self.asDataTypeClass() - m.m12 = val - self.dataSetCallback(m) - - def m13Changed(self, val): - m = self.asDataTypeClass() - m.m13 = val - self.dataSetCallback(m) - - def m14Changed(self, val): - m = self.asDataTypeClass() - m.m14 = val - self.dataSetCallback(m) - - def m21Changed(self, val): - m = self.asDataTypeClass() - m.m21 = val - self.dataSetCallback(m) - - def m22Changed(self, val): - m = self.asDataTypeClass() - m.m22 = val - self.dataSetCallback(m) - - def m23Changed(self, val): - m = self.asDataTypeClass() - m.m23 = val - self.dataSetCallback(m) - - def m24Changed(self, val): - m = self.asDataTypeClass() - m.m24 = val - self.dataSetCallback(m) - - def m31Changed(self, val): - m = self.asDataTypeClass() - m.m31 = val - self.dataSetCallback(m) - - def m32Changed(self, val): - m = self.asDataTypeClass() - m.m32 = val - self.dataSetCallback(m) - - def m33Changed(self, val): - m = self.asDataTypeClass() - m.m33 = val - self.dataSetCallback(m) - - def m34Changed(self, val): - m = self.asDataTypeClass() - m.m34 = val - self.dataSetCallback(m) - - def m41Changed(self, val): - m = self.asDataTypeClass() - m.m41 = val - self.dataSetCallback(m) - - def m42Changed(self, val): - m = self.asDataTypeClass() - m.m42 = val - self.dataSetCallback(m) - - def m43Changed(self, val): - m = self.asDataTypeClass() - m.m43 = val - self.dataSetCallback(m) - - def m44Changed(self, val): - m = self.asDataTypeClass() - m.m44 = val - self.dataSetCallback(m) - - def setWidgetValue(self, val): - self.dsbm11.setValue(val.m11) - self.dsbm12.setValue(val.m12) - self.dsbm13.setValue(val.m13) - self.dsbm14.setValue(val.m14) - - self.dsbm21.setValue(val.m21) - self.dsbm22.setValue(val.m22) - self.dsbm23.setValue(val.m23) - self.dsbm24.setValue(val.m24) - - self.dsbm31.setValue(val.m31) - self.dsbm32.setValue(val.m32) - self.dsbm33.setValue(val.m33) - self.dsbm34.setValue(val.m34) - - self.dsbm41.setValue(val.m41) - self.dsbm42.setValue(val.m42) - self.dsbm43.setValue(val.m43) - self.dsbm44.setValue(val.m44) - - def resizeEvent(self, event): - if self.width() < 340: - for x in [self.dsbm11, self.dsbm12, self.dsbm13, self.dsbm14, - self.dsbm21, self.dsbm22, self.dsbm23, self.dsbm24, - self.dsbm31, self.dsbm32, self.dsbm33, self.dsbm34, - self.dsbm41, self.dsbm42, self.dsbm43, self.dsbm44]: - x.hideSlider() - else: - for x in [self.dsbm11, self.dsbm12, self.dsbm13, self.dsbm14, - self.dsbm21, self.dsbm22, self.dsbm23, self.dsbm24, - self.dsbm31, self.dsbm32, self.dsbm33, self.dsbm34, - self.dsbm41, self.dsbm42, self.dsbm43, self.dsbm44]: - x.showSlider() - super(Matrix44InputWidget, self).resizeEvent(event) - - -def getInputWidget(dataType, dataSetter, defaultValue): - ''' - factory method - ''' - if dataType == 'FloatVector3Pin': - return FloatVector3InputWidget(dataSetCallback=dataSetter, defaultValue=defaultValue) - if dataType == 'FloatVector4Pin': - return FloatVector4InputWidget(dataSetCallback=dataSetter, defaultValue=defaultValue) - if dataType == 'QuatPin': - return QuatInputWidget(dataSetCallback=dataSetter, defaultValue=defaultValue) - if dataType == 'Matrix33Pin': - return Matrix33InputWidget(dataSetCallback=dataSetter, defaultValue=defaultValue) - if dataType == 'Matrix44Pin': - return Matrix44InputWidget(dataSetCallback=dataSetter, defaultValue=defaultValue) - return None diff --git a/PyFlow/Packages/Pyrr/Factories/UINodeFactory.py b/PyFlow/Packages/Pyrr/Factories/UINodeFactory.py deleted file mode 100644 index 742693a6e..000000000 --- a/PyFlow/Packages/Pyrr/Factories/UINodeFactory.py +++ /dev/null @@ -1,5 +0,0 @@ -from PyFlow.UI.Canvas.UINodeBase import UINodeBase - - -def createUINode(raw_instance): - return UINodeBase(raw_instance) diff --git a/PyFlow/Packages/Pyrr/Factories/UIPinFactory.py b/PyFlow/Packages/Pyrr/Factories/UIPinFactory.py deleted file mode 100644 index 5f3bbc8d4..000000000 --- a/PyFlow/Packages/Pyrr/Factories/UIPinFactory.py +++ /dev/null @@ -1,5 +0,0 @@ -from PyFlow.UI.Canvas.UIPinBase import UIPinBase - - -def createUIPin(owningNode, raw_instance): - return UIPinBase(owningNode, raw_instance) diff --git a/PyFlow/Packages/Pyrr/Factories/__init__.py b/PyFlow/Packages/Pyrr/Factories/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/PyFlow/Packages/Pyrr/FunctionLibraries/Matrix33.py b/PyFlow/Packages/Pyrr/FunctionLibraries/Matrix33.py deleted file mode 100644 index 623482bef..000000000 --- a/PyFlow/Packages/Pyrr/FunctionLibraries/Matrix33.py +++ /dev/null @@ -1,188 +0,0 @@ -import pyrr - -from PyFlow.Core import( - FunctionLibraryBase, - IMPLEMENT_NODE -) -from PyFlow.Core.Common import * - - -class Matrix33(FunctionLibraryBase): - '''doc string for Matrix33''' - def __init__(self,packageName): - super(Matrix33, self).__init__(packageName) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - ## Zero matrix33 - def m33Zero(): - '''Zero matrix33.''' - return pyrr.Matrix33() - - @staticmethod - @IMPLEMENT_NODE(returns=('StringPin', str(pyrr.Matrix33())), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Matrix33 to string - def m33ToStr(m=('Matrix33Pin', pyrr.Matrix33())): - '''Matrix33 to string.''' - return str(m) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33.identity()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Identity matrix33 - def m33Ident(): - '''Identity matrix33.''' - return pyrr.Matrix33.identity() - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns first column of matrix - def m33c1(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns first column of matrix.''' - return pyrr.Vector3(m.c1) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns second column of matrix - def m33c2(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns second column of matrix.''' - return pyrr.Vector3(m.c2) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns third column of matrix - def m33c3(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns third column of matrix.''' - return pyrr.Vector3(m.c3) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns first row of matrix - def m33r1(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns first row of matrix.''' - return pyrr.Vector3(m.r1) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns second row of matrix - def m33r2(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns second row of matrix.''' - return pyrr.Vector3(m.r2) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns third row of matrix - def m33r3(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns third row of matrix.''' - return pyrr.Vector3(m.r3) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns a Quaternion representing this matrix - def m33quat(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns a Quaternion representing this matrix.''' - return m.quaternion - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns a Matrix44 representing this matrix - def m33ToM44(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns a Matrix44 representing this matrix.''' - return m.matrix44 - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - ## Returns single scalar from matrix33. r and c taken as abs and clamped in range 1-3 - # \param r: matrix row - # \param c: matrix column - def m33GetComp(m=('Matrix33Pin', pyrr.Matrix33()), r=('IntPin', 1), c=('IntPin', 1)): - '''Returns single scalar from matrix33. r and c taken as abs and clamped in range 1-3.''' - _r = clamp(abs(r), 1, 3) - _c = clamp(abs(c), 1, 3) - name = 'm{0}{1}'.format(_r, _c) - return getattr(m, name) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33', 'quat']}) - ## Creates matrix33 from given quaternion - def m33FromQuat(q=('QuatPin', pyrr.Quaternion())): - '''Creates matrix33 from given quaternion.''' - return pyrr.Matrix33(q) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33', '*']}) - ## Multiplies two m33 matrices m1 by m2 - def m33MultM33(m1=('Matrix33Pin', pyrr.Matrix33()), m2=('Matrix33Pin', pyrr.Matrix33())): - '''Multiplies two m33 matrices m1 by m2.''' - return m1 * m2 - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33', '*']}) - def m33MultM44(m1=('Matrix33Pin', pyrr.Matrix33()), m2=('Matrix44Pin', pyrr.Matrix44())): - '''Multiplies m33 by m44.\nm1 - m33\nm2 - m44.''' - return m1 * m2 - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - def m33ApplyToV3(m=('Matrix33Pin', pyrr.Matrix33()), v=('FloatVector3Pin', pyrr.Vector3())): - '''The matrix rotation are applied to the vector.\nReturns the vectors rotated by the specified matrix.''' - return pyrr.Vector3(pyrr.matrix33.apply_to_vector(m, v)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - def m33DirectionScale(v=('FloatVector3Pin', pyrr.Vector3()), s=('FloatPin', 0.0)): - '''Creates a matrix which can apply a directional scaling to a set of vectors.\nAn example usage for this is to flatten a mesh against a single plane.\nReturns the scaling matrix.''' - return pyrr.Matrix33(pyrr.matrix33.create_direction_scale(v, s)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - def m33FromAxisAngle(axis=('FloatVector3Pin', pyrr.Vector3()), theta=('FloatPin', 0.0)): - '''Creates a matrix from the specified theta rotation around an axis.\ntheta in radians.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_axis_rotation(axis, theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - def m33FromEulers(eulers=('FloatVector3Pin', pyrr.Vector3())): - '''Creates a matrix from the specified Euler rotations.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_eulers(eulers)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['matrix33']}) - def m33FromInvOfQuat(q=('QuatPin', pyrr.Quaternion())): - '''Creates a matrix with the inverse rotation of a quaternion.\nReturns a matrix with shape (3,3) that respresents the inverse of the quaternion.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_inverse_of_quaternion(q)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - def m33From44(m=('Matrix44Pin', pyrr.Matrix44())): - '''Creates a Matrix33 from a Matrix44.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_matrix44(m)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - def m33FromScale(s=('FloatVector3Pin', pyrr.Vector3([1, 1, 1]))): - '''Creates an identity matrix with the scale set.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_scale(s)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - def m33FromX(theta=('FloatPin', 0.0)): - '''Creates a matrix with the specified rotation about the X axis.\ntheta in radians.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_x_rotation(theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - def m33FromY(theta=('FloatPin', 0.0)): - '''Creates a matrix with the specified rotation about the Y axis.\ntheta in radians.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_y_rotation(theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - def m33FromZ(theta=('FloatPin', 0.0)): - '''Creates a matrix with the specified rotation about the Z axis.\ntheta in radians.''' - return pyrr.Matrix33(pyrr.matrix33.create_from_z_rotation(theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Matrix33', 'Keywords': ['create', 'matrix33']}) - def m33Inverse(m=('Matrix33Pin', pyrr.Matrix33())): - '''Returns the inverse of the matrix.\nThis is essentially a wrapper around numpy.linalg.inv.''' - return m.inverse diff --git a/PyFlow/Packages/Pyrr/FunctionLibraries/Matrix44.py b/PyFlow/Packages/Pyrr/FunctionLibraries/Matrix44.py deleted file mode 100644 index 929ed71e8..000000000 --- a/PyFlow/Packages/Pyrr/FunctionLibraries/Matrix44.py +++ /dev/null @@ -1,228 +0,0 @@ -import pyrr - -from PyFlow.Core import( - FunctionLibraryBase, - IMPLEMENT_NODE -) -from PyFlow.Core.Common import * - -class Matrix44(FunctionLibraryBase): - '''doc string for Matrix44''' - def __init__(self,packageName): - super(Matrix44, self).__init__(packageName) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Matrix44', 'Keywords': []}) - def m44Zero(): - '''zero matrix44''' - return pyrr.Matrix44() - - @staticmethod - @IMPLEMENT_NODE(returns=('StringPin', str(pyrr.Matrix44())), meta={'Category': 'Math|Matrix44', 'Keywords': []}) - def m44ToStr(m=('Matrix44Pin', pyrr.Matrix44())): - '''M44 to string.''' - return str(m) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44.identity()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Matrix44', 'Keywords': []}) - def m44Ident(): - '''Identity matrix44.''' - return pyrr.Matrix44.identity() - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44ApplyToV3(m=('Matrix44Pin', pyrr.Matrix44()), v=('FloatVector3Pin', pyrr.Vector3())): - '''Apply a matrix to a vector.\nThe matrix rotation and translation are applied to the vector. ''' - return pyrr.Vector3(pyrr.matrix44.apply_to_vector(m, v)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44FromAxisAngle(axis=('FloatVector3Pin', pyrr.Vector3()), theta=('FloatPin', 0.0)): - '''Creates a matrix from the specified theta rotation around an axis.\ntheta in radians.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_axis_rotation(axis, theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44FromX(theta=('FloatPin', 0.0)): - '''Creates a matrix with the specified rotation about the X axis.\ntheta in radians.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_x_rotation(theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44FromY(theta=('FloatPin', 0.0)): - '''Creates a matrix with the specified rotation about the Y axis.\ntheta in radians.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_y_rotation(theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44FromZ(theta=('FloatPin', 0.0)): - '''Creates a matrix with the specified rotation about the Z axis.\ntheta in radians.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_z_rotation(theta)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44FromEulers(eulers=('FloatVector3Pin', pyrr.Vector3())): - '''Creates a matrix from the specified Euler rotations.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_eulers(eulers)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44FromInvOfQuat(q=('QuatPin', pyrr.Quaternion())): - '''Creates a matrix with the inverse rotation of a quaternion.\nReturns a matrix with shape (4,4) that respresents the inverse of the quaternion.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_inverse_of_quaternion(q)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44From33(m=('Matrix33Pin', pyrr.Matrix33())): - '''Creates a Matrix44 from a Matrix33.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_matrix33(m)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44', 'quat']}) - def m44FromQuat(q=('QuatPin', pyrr.Quaternion())): - '''Creates matrix44 from given quaternion.''' - return pyrr.Matrix44(q) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44FromScale(s=('FloatVector3Pin', pyrr.Vector3([1, 1, 1]))): - '''Creates an identity matrix with the scale set.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_scale(s)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44FromTransV3(t=('FloatVector3Pin', pyrr.Vector3())): - '''Creates an identity matrix with the translation set.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_translation(t)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44FromTransV4(t=('FloatVector4Pin', pyrr.Vector4())): - '''Creates an identity matrix with the translation set.''' - return pyrr.Matrix44(pyrr.matrix44.create_from_translation(t)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44LookAtCreate(eye=('FloatVector3Pin', pyrr.Vector3()), target=('FloatVector3Pin', pyrr.Vector3()), up=('FloatVector3Pin', pyrr.Vector3())): - '''Creates a look at matrix according to OpenGL standards.\nReturns a look at matrix that can be used as a viewMatrix.''' - return pyrr.Matrix44(pyrr.matrix44.create_look_at(eye, target, up)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m33ViewCreate(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns a view into the matrix in Matrix33 format.\nThis is different from m33From44, in that changes to the returned matrix will also alter the original matrix.''' - return pyrr.Matrix44(pyrr.matrix44.create_matrix33_view(m)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44OrthoProj(left=('FloatPin', -5.0), right=('FloatPin', 5.0), bottom=('FloatPin', -5.0), top=('FloatPin', 5.0), near=('FloatPin', 0.0), far=('FloatPin', 10.0), result=("Reference", ('BoolPin', False))): - '''Creates an orthogonal projection matrix.\n\nleft (float) - The left of the near plane relative to the planes centre.\n\nright (float) - The right of the near plane relative to the planes centre.\n\ntop (float) - The top of the near plane relative to the planes centre.\n\nbottom (float) - The bottom of the near plane relative to the planes centre.\n\nnear (float) - The distance of the near plane from the cameras origin. It is recommended that the near plane is set to 1.0 or above to avoid rendering issues at close range.\n\nfar (float) - The distance of the far plane from the cameras origin.''' - try: - m = pyrr.Matrix44(pyrr.matrix44.create_orthogonal_projection(left, right, bottom, top, near, far)) - result(True) - return m - except: - result(False) - return pyrr.Matrix44.identity() - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44PerspProj(fovy=('FloatPin', 0.0), aspect=('FloatPin', 0.0), near=('FloatPin', 0.0), far=('FloatPin', 0.0)): - '''Creates perspective projection matrix.\n\nfovy (float) - field of view in y direction in degrees\n\naspect (float) - aspect ratio of the view (width / height)\n\nnear (float) - distance from the viewer to the near clipping plane (only positive)\n\nfar (float) - distance from the viewer to the far clipping plane (only positive).''' - try: - m = pyrr.Matrix44(pyrr.matrix44.create_perspective_projection(fovy, aspect, near, far)) - result(True) - return m - except: - result(False) - return pyrr.Matrix44.identity() - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44PerspProjBounds(left=('FloatPin', -5.0), right=('FloatPin', 5.0), bottom=('FloatPin', -5.0), top=('FloatPin', 5.0), near=('FloatPin', 0.0), far=('FloatPin', 10.0), result=("Reference", ('BoolPin', False))): - '''Creates a perspective projection matrix using the specified near plane dimensions.\n\nleft (float) - The left of the near plane relative to the planes centre.\n\nright (float) - The right of the near plane relative to the planes centre.\n\ntop (float) - The top of the near plane relative to the planes centre.\n\nbottom (float) - The bottom of the near plane relative to the planes centre.\n\nnear (float) - The distance of the near plane from the cameras origin. It is recommended that the near plane is set to 1.0 or above to avoid rendering issues at close range.\n\nfar (float) - The distance of the far plane from the cameras origin.''' - try: - m = pyrr.Matrix44(pyrr.matrix44.create_perspective_projection_from_bounds(left, right, bottom, top, near, far)) - result(True) - return m - except: - result(False) - return pyrr.Matrix44.identity() - - @staticmethod - @IMPLEMENT_NODE(returns=None, meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44Decompose(m=('Matrix44Pin', pyrr.Matrix44()), t=("Reference", ('FloatVector3Pin', pyrr.Vector3())), r=("Reference", ('QuatPin', pyrr.Quaternion())), s=("Reference", ('FloatVector3Pin', pyrr.Vector3()))): - '''Decomposes an affine transformation matrix into its scale, rotation and translation components.''' - _s, _r, _t = pyrr.matrix44.decompose(m) - t(pyrr.Vector3(_t)) - r(pyrr.Quaternion(_r)) - s(pyrr.Vector3(_s)) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Matrix44', 'Keywords': ['create', 'matrix44']}) - def m44Inverse(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns the inverse of the matrix.\nThis is essentially a wrapper around numpy.linalg.inv.''' - return ~m - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44c1(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns first column of matrix.''' - return pyrr.Vector4(m.c1.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44c2(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns second column of matrix.''' - return pyrr.Vector4(m.c2.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44c3(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns third column of matrix.''' - return pyrr.Vector4(m.c3.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44c4(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns fourth column of matrix.''' - return pyrr.Vector4(m.c4.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44r1(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns first row of matrix.''' - return pyrr.Vector4(m.r1.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44r2(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns second row of matrix.''' - return pyrr.Vector4(m.r2.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44r3(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns third row of matrix.''' - return pyrr.Vector4(m.r3.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44r4(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns fourth row of matrix.''' - return pyrr.Vector4(m.r4.tolist()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44GetComp(m=('Matrix44Pin', pyrr.Matrix44()), r=('IntPin', 1), c=('IntPin', 1)): - '''Returns single scalar from matrix44. r and c taken as abs and clamped in range 1-4.''' - _r = clamp(abs(r), 1, 4) - _c = clamp(abs(c), 1, 4) - name = 'm{0}{1}'.format(_r, _c) - return getattr(m, name) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Matrix44', 'Keywords': ['matrix44']}) - def m44quat(m=('Matrix44Pin', pyrr.Matrix44())): - '''Returns a Quaternion representing this matrix.''' - return m.quaternion diff --git a/PyFlow/Packages/Pyrr/FunctionLibraries/QuatLib.py b/PyFlow/Packages/Pyrr/FunctionLibraries/QuatLib.py deleted file mode 100644 index 35a95fcce..000000000 --- a/PyFlow/Packages/Pyrr/FunctionLibraries/QuatLib.py +++ /dev/null @@ -1,215 +0,0 @@ -import pyrr - -from PyFlow.Core import( - FunctionLibraryBase, - IMPLEMENT_NODE -) -from PyFlow.Core.Common import * - -class QuatLib(FunctionLibraryBase): - '''doc string for QuatLib''' - def __init__(self,packageName): - super(QuatLib, self).__init__(packageName) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def zeroQuat(): - '''Returns zero quaternion.''' - return pyrr.Quaternion() - - @staticmethod - @IMPLEMENT_NODE(returns=('StringPin', ''), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatToString(q=('QuatPin', pyrr.Quaternion())): - '''Convert to quat to str''' - return str(q) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion.from_x_rotation(0.0)), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromXRotation(theta=('FloatPin', 0.0)): - '''Creates a new Quaternion with a rotation around the X-axis.''' - return pyrr.Quaternion.from_x_rotation(theta) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion.from_y_rotation(0.0)), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromYRotation(theta=('FloatPin', 0.0)): - '''Creates a new Quaternion with a rotation around the Y-axis.''' - return pyrr.Quaternion.from_y_rotation(theta) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion.from_z_rotation(0.0)), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromZRotation(theta=('FloatPin', 0.0)): - '''Creates a new Quaternion with a rotation around the Z-axis.''' - return pyrr.Quaternion.from_z_rotation(theta) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion.from_matrix(pyrr.Matrix33())), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromMatrix33(m=('Matrix33Pin', pyrr.Matrix33())): - '''Creates a Quaternion from the specified Matrix33.''' - return pyrr.Quaternion.from_matrix(m) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion.from_matrix(pyrr.Matrix44())), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromMatrix44(m=('Matrix44Pin', pyrr.Matrix44())): - '''Creates a Quaternion from the specified Matrix44.''' - return pyrr.Quaternion.from_matrix(m) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromEulers(a=('FloatPin', 0.0), b=('FloatPin', 0.0), c=('FloatPin', 0.0)): - '''Creates a Quaternion from the specified Euler angles.''' - return pyrr.Quaternion.from_eulers([a, b, c]) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromInverseOfEulers(a=('FloatPin', 0.0), b=('FloatPin', 0.0), c=('FloatPin', 0.0)): - '''Creates a Quaternion from the specified Euler angles.''' - return pyrr.Quaternion.from_inverse_of_eulers([a, b, c]) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatFromAxisRotation(a=('FloatPin', 0.0), b=('FloatPin', 0.0), c=('FloatPin', 0.0), theta=('FloatPin', 0.0)): - '''Creates a new Quaternion with a rotation around the specified axis.''' - return pyrr.Quaternion.from_axis_rotation([a, b, c], theta) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatApplyToVector(q=('QuatPin', pyrr.Quaternion()), v=('FloatVector3Pin', pyrr.Vector3())): - '''Rotates a vector by a quaternion.''' - return pyrr.Vector3(pyrr.quaternion.apply_to_vector(quat=q, vec=v)) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatX(q=('QuatPin', pyrr.Quaternion())): - '''Returns the x component of the quat.''' - return q.x - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatY(q=('QuatPin', pyrr.Quaternion())): - '''Returns the y component of the quat.''' - return q.y - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatZ(q=('QuatPin', pyrr.Quaternion())): - '''Returns the z component of the quat.''' - return q.z - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatW(q=('QuatPin', pyrr.Quaternion())): - '''Returns the w component of the quat.''' - return q.w - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatAngle(q=('QuatPin', pyrr.Quaternion())): - '''Returns the angle around the axis of rotation of this Quaternion as a float.''' - return q.angle - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatAxis(q=('QuatPin', pyrr.Quaternion())): - '''Returns the axis of rotation of this Quaternion as a Vector3.''' - return q.axis - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatConjugate(q=('QuatPin', pyrr.Quaternion())): - '''Returns the conjugate of this Quaternion.\nThis is a Quaternion with the opposite rotation.''' - return q.conjugate - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatCross(q=('QuatPin', pyrr.Quaternion()), other=('QuatPin', pyrr.Quaternion())): - '''Returns the cross of this Quaternion and another.\nThis is the equivalent of combining Quaternion rotations (like Matrix multiplication).''' - return q.cross(other) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatDot(q=('QuatPin', pyrr.Quaternion()), other=('QuatPin', pyrr.Quaternion())): - '''Returns the dot of this Quaternion and another.''' - return q.dot(other) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatInverse(q=('QuatPin', pyrr.Quaternion())): - '''Returns the inverse of this quaternion.''' - return q.inverse - - @staticmethod - @IMPLEMENT_NODE(returns=('BoolPin', False), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatIsIdentity(q=('QuatPin', pyrr.Quaternion())): - '''Returns True if the Quaternion has no rotation (0.,0.,0.,1.).''' - return q.is_identity - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', False), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatLength(q=('QuatPin', pyrr.Quaternion())): - '''Returns the length of this Quaternion.''' - return q.length - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', False), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatSquaredLength(q=('QuatPin', pyrr.Quaternion())): - '''Calculates the squared length of a quaternion.\nUseful for avoiding the performanc penalty of the square root function.''' - return pyrr.quaternion.squared_length(q) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatLerp(q1=('QuatPin', pyrr.Quaternion()), q2=('QuatPin', pyrr.Quaternion()), t=('FloatPin', 0.0)): - '''Interpolates between q1 and q2 by t. The parameter t is clamped to the range [0, 1].''' - return q1.lerp(q2, t) - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix33Pin', pyrr.Matrix33()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatAsMatrix33(q=('QuatPin', pyrr.Quaternion())): - '''Returns a Matrix33 representation of this Quaternion.''' - return q.matrix33 - - @staticmethod - @IMPLEMENT_NODE(returns=('Matrix44Pin', pyrr.Matrix44()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatAsMatrix44(q=('QuatPin', pyrr.Quaternion())): - '''Returns a Matrix44 representation of this Quaternion.''' - return q.matrix44 - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatNegative(q=('QuatPin', pyrr.Quaternion())): - '''Returns the negative of the Quaternion.''' - return q.negative - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatNormalize(q=('QuatPin', pyrr.Quaternion())): - '''Returns a normalized version of this Quaternion as a new Quaternion.''' - return q.normalized - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatPower(q=('QuatPin', pyrr.Quaternion()), exp=('FloatPin', 0.0), result=("Reference", ('BoolPin', False))): - '''Returns a new Quaternion representing this Quaternion to the power of the exponent. Checks for identify quaternion''' - try: - powered = q.power(exp) - result(True) - return powered - except: - result(False) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatSlerp(q1=('QuatPin', pyrr.Quaternion()), q2=('QuatPin', pyrr.Quaternion()), t=('FloatPin', 0.0)): - '''Spherically interpolates between quat1 and quat2 by t. The parameter t is clamped to the range [0, 1].''' - return q1.slerp(q2, t) - - @staticmethod - @IMPLEMENT_NODE(returns=('BoolPin', False), meta={'Category': 'Math|Quaternion', 'Keywords': []}) - def quatIsZeroLength(q=('QuatPin', pyrr.Quaternion())): - '''Checks if a quaternion is zero length.''' - return pyrr.quaternion.is_zero_length(q) - - @staticmethod - @IMPLEMENT_NODE(returns=('QuatPin', pyrr.Quaternion()), meta={'Category': 'Math|Quaternion', 'Keywords': ['*']}) - def quatMult(q1=('QuatPin', pyrr.Quaternion()), q2=('QuatPin', pyrr.Quaternion())): - '''"*" operator for quaternions.''' - return q1 * q2 diff --git a/PyFlow/Packages/Pyrr/FunctionLibraries/Vector3.py b/PyFlow/Packages/Pyrr/FunctionLibraries/Vector3.py deleted file mode 100644 index dbe9b972f..000000000 --- a/PyFlow/Packages/Pyrr/FunctionLibraries/Vector3.py +++ /dev/null @@ -1,167 +0,0 @@ -import pyrr - -from PyFlow.Core import( - FunctionLibraryBase, - IMPLEMENT_NODE -) -from PyFlow.Core.Common import * - -class Vector3(FunctionLibraryBase): - '''doc string for Vector3''' - def __init__(self,packageName): - super(Vector3, self).__init__(packageName) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3Create(): - '''Zero Vector3.''' - v = pyrr.Vector3() - return v - - @staticmethod - @IMPLEMENT_NODE(returns=("FloatPin", 0.0), meta={'Category': 'Math|Basic', 'Keywords': ['vector', '|', 'dot', 'product']}) - def dotProduct(a=("AnyPin", None, {"constraint": "1", "supportedDataTypes": ["FloatVector4Pin", "FloatVector3Pin", "QuatPin"]}), - b=("AnyPin", None, {"constraint": "1", "supportedDataTypes": ["FloatVector4Pin", "FloatVector3Pin", "QuatPin"]})): - '''Dot product''' - if type(a) == "Quaternion": - return a.dot(b) - return a | b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3UnitLenX(): - '''Unit length x vector3.''' - return pyrr.Vector3(pyrr.vector3.create_unit_length_x()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3UnitLenY(): - '''Unit length y vector3.''' - return pyrr.Vector3(pyrr.vector3.create_unit_length_y()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3UnitLenZ(): - '''Unit length z vector3.''' - return pyrr.Vector3(pyrr.vector3.create_unit_length_z()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', 'vector4']}) - def v3FromVector4(v4=('FloatVector4Pin', pyrr.Vector4()), W=("Reference", ('FloatPin', 0.0))): - '''Returns a vector3 and the W component.''' - arrV3, _w = pyrr.vector3.create_from_vector4(v4) - W(_w) - return pyrr.Vector3(arrV3) - - @staticmethod - @IMPLEMENT_NODE(returns=('StringPin', str(pyrr.Vector3())), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3ToString(v=('FloatVector3Pin', pyrr.Vector3())): - return str(v) - - @staticmethod - @IMPLEMENT_NODE(returns=('BoolPin', True), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['lerp']}) - def v3Lerp(a=('FloatVector3Pin', pyrr.Vector3()), b=('FloatVector3Pin', pyrr.Vector3()), alpha=('FloatPin', 0.0)): - '''Vector3 lerp''' - return pyrr.Vector3(pyrr.vector.interpolate(a, b, clamp(alpha, 0.0, 1.0))) - - @staticmethod - @IMPLEMENT_NODE(returns=('BoolPin', True), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '==']}) - def v3Equals(a=('FloatVector3Pin', pyrr.Vector3()), b=('FloatVector3Pin', pyrr.Vector3())): - '''Check if vectors are equals''' - return a == b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3Create(a=('FloatPin', 0.0), b=('FloatPin', 0.0), c=('FloatPin', 0.0)): - '''creates Vector3 from given components''' - return pyrr.Vector3([a, b, c]) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '+']}) - def v3Add(a=('FloatVector3Pin', pyrr.Vector3()), b=('FloatVector3Pin', pyrr.Vector3())): - '''adds vector a and b''' - return a + b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '-']}) - def v3Substract(a=('FloatVector3Pin', pyrr.Vector3()), b=('FloatVector3Pin', pyrr.Vector3())): - '''substracts vector a and b''' - return a - b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '|']}) - def v3Dot(a=('FloatVector3Pin', pyrr.Vector3()), b=('FloatVector3Pin', pyrr.Vector3())): - '''dot product of two vectors''' - return a | b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '^']}) - def v3Cross(a=('FloatVector3Pin', pyrr.Vector3()), b=('FloatVector3Pin', pyrr.Vector3())): - '''cross product of two vectors''' - return a ^ b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '*']}) - def v3RotateByM33(v=('FloatVector3Pin', pyrr.Vector3()), m=('Matrix33Pin', pyrr.Matrix33())): - '''rotates a vector3 by a matrix33''' - return m * v - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), nodeType=NodeTypes.Pure, meta={'Category': 'Math|Vector3', 'Keywords': ['vector3', '*']}) - def v3RotateByQuat(v=('FloatVector3Pin', pyrr.Vector3()), q=('QuatPin', pyrr.Quaternion())): - '''rotates a vector3 by a quaternion''' - return q * v - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3Len(v=('FloatVector3Pin', pyrr.Vector3())): - '''Returns the length of a vector.''' - return pyrr.vector.length(v) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3SquaredLen(v=('FloatVector3Pin', pyrr.Vector3())): - '''Calculates the squared length of a vector.\nUseful when trying to avoid the performance penalty of a square root operation.''' - return pyrr.vector.squared_length(v) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3Normalize(v=('FloatVector3Pin', pyrr.Vector3()), result=("Reference", ('BoolPin', False))): - '''Normalizes a single vector to unit length.\nIf zero-length - returns original one.''' - try: - res = pyrr.Vector3(pyrr.vector.normalize(v)) - result(True) - return res - except: - result(False) - return v - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3SetLen(v=('FloatVector3Pin', pyrr.Vector3()), length=('FloatPin', 0.0)): - '''Resizes a vector to "length".''' - return pyrr.Vector3(pyrr.vector.set_length(v, length)) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector3Pin', pyrr.Vector3()), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3GenerateNormals(v1=('FloatVector3Pin', pyrr.Vector3()), v2=('FloatVector3Pin', pyrr.Vector3()), v3=('FloatVector3Pin', pyrr.Vector3()), norm=('BoolPin', True)): - '''Generates a normal vector for 3 vertices.\nThe result is a normalized vector.\nIt is assumed the ordering is counter-clockwise starting at v1, v2 then v3.''' - return pyrr.Vector3(pyrr.vector3.generate_normals(v1, v2, v3, norm)) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3X(v=('FloatVector3Pin', pyrr.Vector3())): - '''Returns x component of the vector3.''' - return v.x - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3Y(v=('FloatVector3Pin', pyrr.Vector3())): - '''Returns y component of the vector3.''' - return v.y - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector3']}) - def v3Z(v=('FloatVector3Pin', pyrr.Vector3())): - '''Returns z component of the vector3.''' - return v.z diff --git a/PyFlow/Packages/Pyrr/FunctionLibraries/Vector4.py b/PyFlow/Packages/Pyrr/FunctionLibraries/Vector4.py deleted file mode 100644 index 1fae22a29..000000000 --- a/PyFlow/Packages/Pyrr/FunctionLibraries/Vector4.py +++ /dev/null @@ -1,149 +0,0 @@ -import pyrr - -from PyFlow.Core import( - FunctionLibraryBase, - IMPLEMENT_NODE -) -from PyFlow.Core.Common import * - -class Vector4(FunctionLibraryBase): - '''doc string for Vector4''' - def __init__(self,packageName): - super(Vector4, self).__init__(packageName) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Create(): - '''Zero vector4.''' - return pyrr.Vector4() - - @staticmethod - @IMPLEMENT_NODE(returns=('StringPin', str(pyrr.Vector4())), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4ToStr(v=('FloatVector4Pin', pyrr.Vector4())): - return str(v) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4FromUnitLenX(): - '''Unit length x vector4.''' - return pyrr.Vector4(pyrr.vector4.create_unit_length_x()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4FromUnitLenY(): - '''Unit length y vector4.''' - return pyrr.Vector4(pyrr.vector4.create_unit_length_y()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4FromUnitLenZ(): - '''Unit length z vector4.''' - return pyrr.Vector4(pyrr.vector4.create_unit_length_z()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4FromUnitLenW(): - '''Unit length w vector4.''' - return pyrr.Vector4(pyrr.vector4.create_unit_length_w()) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4FromV3(v=('FloatVector3Pin', pyrr.Vector4())): - '''Creates vector4 from vector3.''' - return pyrr.Vector4(pyrr.vector4.create_from_vector3(v)) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4X(v=('FloatVector4Pin', pyrr.Vector4())): - '''Returns x component of the vector4.''' - return v.x - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Y(v=('FloatVector4Pin', pyrr.Vector4())): - '''Returns y component of the vector4.''' - return v.y - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Z(v=('FloatVector4Pin', pyrr.Vector4())): - '''Returns z component of the vector4.''' - return v.z - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4W(v=('FloatVector4Pin', pyrr.Vector4())): - '''Returns w component of the vector4.''' - return v.w - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4', '+']}) - def v4Add(a=('FloatVector4Pin', pyrr.Vector4()), b=('FloatVector4Pin', pyrr.Vector4())): - '''Adds vector4 a and b.''' - return a + b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4', '-']}) - def v4Substract(a=('FloatVector4Pin', pyrr.Vector4()), b=('FloatVector4Pin', pyrr.Vector4())): - '''Substracts vector a and b.''' - return a - b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4', '|']}) - def v4Dot(a=('FloatVector4Pin', pyrr.Vector4()), b=('FloatVector4Pin', pyrr.Vector4())): - '''Dot product of two vectors.''' - return a | b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Lerp(a=('FloatVector4Pin', pyrr.Vector4()), b=('FloatVector4Pin', pyrr.Vector4([1.0, 1.0, 1.0, 1.0])), alpha=('FloatPin', 0.0)): - '''Vector4 lerp.''' - return pyrr.Vector4(pyrr.vector.interpolate(a, b, clamp(alpha, 0.0, 1.0))) - - @staticmethod - @IMPLEMENT_NODE(returns=('BoolPin', True), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4', '==']}) - def v4Equals(a=('FloatVector4Pin', pyrr.Vector4()), b=('FloatVector4Pin', pyrr.Vector4())): - '''Check if vectors are equals.''' - return a == b - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Len(v=('FloatVector4Pin', pyrr.Vector4())): - '''Returns the length of a vector.''' - return pyrr.vector.length(v) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector3', 'Keywords': ['vector4']}) - def v4SquaredLen(v=('FloatVector4Pin', pyrr.Vector4())): - '''Calculates the squared length of a vector.\nUseful when trying to avoid the performance penalty of a square root operation.''' - return pyrr.vector.squared_length(v) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Normalize(v=('FloatVector4Pin', pyrr.Vector4()), result=("Reference", ('BoolPin', False))): - '''Normalizes a single vector to unit length.\nIf zero-length - returns original one.''' - try: - res = pyrr.Vector4(pyrr.vector.normalize(v)) - result(True) - return res - except: - result(False) - return v - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatPin', 0.0), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4', 'resize']}) - def v4SetLen(v=('FloatVector4Pin', pyrr.Vector4()), length=('FloatPin', 0.0)): - '''Resizes a vector to "length".''' - return pyrr.Vector4(pyrr.vector.set_length(v, length)) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4Create(a=('FloatPin', 0.0), b=('FloatPin', 0.0), c=('FloatPin', 0.0), W=('FloatPin', 0.0)): - '''Creates vector4 from given components.''' - return pyrr.Vector4([a, b, c, W]) - - @staticmethod - @IMPLEMENT_NODE(returns=('FloatVector4Pin', pyrr.Vector4()), meta={'Category': 'Math|Vector4', 'Keywords': ['vector4']}) - def v4FromM44Tr(m=('Matrix44Pin', pyrr.Matrix44())): - '''Create vector4 from matrix44 translation.''' - return pyrr.Vector4(pyrr.vector4.create_from_matrix44_translation(m)) diff --git a/PyFlow/Packages/Pyrr/FunctionLibraries/__init__.py b/PyFlow/Packages/Pyrr/FunctionLibraries/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/PyFlow/Packages/Pyrr/Pins/FloatVector3Pin.py b/PyFlow/Packages/Pyrr/Pins/FloatVector3Pin.py deleted file mode 100644 index 399f8a9c9..000000000 --- a/PyFlow/Packages/Pyrr/Pins/FloatVector3Pin.py +++ /dev/null @@ -1,59 +0,0 @@ -from pyrr import Vector3 -import json - -from PyFlow.Core import PinBase -from PyFlow.Core.Common import * - - -class Vector3Encoder(json.JSONEncoder): - def default(self, vec3): - if isinstance(vec3, Vector3): - return {Vector3.__name__: vec3.xyz.tolist()} - json.JSONEncoder.default(self, vec3) - - -class Vector3Decoder(json.JSONDecoder): - def __init__(self, *args, **kwargs): - super(Vector3Decoder, self).__init__(object_hook=self.object_hook, *args, **kwargs) - - def object_hook(self, vec3Dict): - return Vector3(vec3Dict[Vector3.__name__]) - - -class FloatVector3Pin(PinBase): - """doc string for FloatVector3Pin""" - def __init__(self, name, parent, direction, **kwargs): - super(FloatVector3Pin, self).__init__(name, parent, direction, **kwargs) - self.setDefaultValue(Vector3()) - - @staticmethod - def IsValuePin(): - return True - - @staticmethod - def supportedDataTypes(): - return ('FloatVector3Pin',) - - @staticmethod - def color(): - return (170, 100, 200, 255) - - @staticmethod - def pinDataTypeHint(): - return 'FloatVector3Pin', Vector3() - - @staticmethod - def jsonEncoderClass(): - return Vector3Encoder - - @staticmethod - def jsonDecoderClass(): - return Vector3Decoder - - @staticmethod - def internalDataStructure(): - return Vector3 - - @staticmethod - def processData(data): - return FloatVector3Pin.internalDataStructure()(data) diff --git a/PyFlow/Packages/Pyrr/Pins/FloatVector4Pin.py b/PyFlow/Packages/Pyrr/Pins/FloatVector4Pin.py deleted file mode 100644 index fd956c7ed..000000000 --- a/PyFlow/Packages/Pyrr/Pins/FloatVector4Pin.py +++ /dev/null @@ -1,59 +0,0 @@ -from pyrr import Vector4 -import json - -from PyFlow.Core import PinBase -from PyFlow.Core.Common import * - - -class Vector4Encoder(json.JSONEncoder): - def default(self, vec4): - if isinstance(vec4, Vector4): - return {Vector4.__name__: vec4.xyzw.tolist()} - json.JSONEncoder.default(self, vec4) - - -class Vector4Decoder(json.JSONDecoder): - def __init__(self, *args, **kwargs): - super(Vector4Decoder, self).__init__(object_hook=self.object_hook, *args, **kwargs) - - def object_hook(self, vec4Dict): - return Vector4(vec4Dict[Vector4.__name__]) - - -class FloatVector4Pin(PinBase): - """doc string for FloatVector4Pin""" - def __init__(self, name, parent, direction, **kwargs): - super(FloatVector4Pin, self).__init__(name, parent, direction, **kwargs) - self.setDefaultValue(Vector4()) - - @staticmethod - def IsValuePin(): - return True - - @staticmethod - def jsonEncoderClass(): - return Vector4Encoder - - @staticmethod - def jsonDecoderClass(): - return Vector4Decoder - - @staticmethod - def supportedDataTypes(): - return ('FloatVector4Pin',) - - @staticmethod - def pinDataTypeHint(): - return 'FloatVector4Pin', Vector4() - - @staticmethod - def color(): - return (173, 216, 230, 255) - - @staticmethod - def internalDataStructure(): - return Vector4 - - @staticmethod - def processData(data): - return FloatVector4Pin.internalDataStructure()(data) diff --git a/PyFlow/Packages/Pyrr/Pins/Matrix33Pin.py b/PyFlow/Packages/Pyrr/Pins/Matrix33Pin.py deleted file mode 100644 index a122b1ae2..000000000 --- a/PyFlow/Packages/Pyrr/Pins/Matrix33Pin.py +++ /dev/null @@ -1,59 +0,0 @@ -from pyrr import Matrix33 -import json - -from PyFlow.Core import PinBase -from PyFlow.Core.Common import * - - -class M33Encoder(json.JSONEncoder): - def default(self, m33): - if isinstance(m33, Matrix33): - return {Matrix33.__name__: m33.tolist()} - json.JSONEncoder.default(self, m33) - - -class M33Decoder(json.JSONDecoder): - def __init__(self, *args, **kwargs): - super(M33Decoder, self).__init__(object_hook=self.object_hook, *args, **kwargs) - - def object_hook(self, m33Dict): - return Matrix33(m33Dict[Matrix33.__name__]) - - -class Matrix33Pin(PinBase): - """doc string for Matrix33Pin""" - def __init__(self, name, parent, direction, **kwargs): - super(Matrix33Pin, self).__init__(name, parent, direction, **kwargs) - self.setDefaultValue(Matrix33()) - - @staticmethod - def IsValuePin(): - return True - - @staticmethod - def jsonEncoderClass(): - return M33Encoder - - @staticmethod - def jsonDecoderClass(): - return M33Decoder - - @staticmethod - def supportedDataTypes(): - return ('Matrix33Pin',) - - @staticmethod - def color(): - return (150, 69, 20, 255) - - @staticmethod - def pinDataTypeHint(): - return 'Matrix33Pin', Matrix33() - - @staticmethod - def internalDataStructure(): - return Matrix33 - - @staticmethod - def processData(data): - return Matrix33Pin.internalDataStructure()(data) diff --git a/PyFlow/Packages/Pyrr/Pins/Matrix44Pin.py b/PyFlow/Packages/Pyrr/Pins/Matrix44Pin.py deleted file mode 100644 index ad15210a4..000000000 --- a/PyFlow/Packages/Pyrr/Pins/Matrix44Pin.py +++ /dev/null @@ -1,59 +0,0 @@ -from pyrr import Matrix44 -import json - -from PyFlow.Core import PinBase -from PyFlow.Core.Common import * - - -class M44Encoder(json.JSONEncoder): - def default(self, m44): - if isinstance(m44, Matrix44): - return {Matrix44.__name__: m44.tolist()} - json.JSONEncoder.default(self, m44) - - -class M44Decoder(json.JSONDecoder): - def __init__(self, *args, **kwargs): - super(M44Decoder, self).__init__(object_hook=self.object_hook, *args, **kwargs) - - def object_hook(self, m44Dict): - return Matrix44(m44Dict[Matrix44.__name__]) - - -class Matrix44Pin(PinBase): - """doc string for Matrix44Pin""" - def __init__(self, name, parent, direction, **kwargs): - super(Matrix44Pin, self).__init__(name, parent, direction, **kwargs) - self.setDefaultValue(Matrix44()) - - @staticmethod - def IsValuePin(): - return True - - @staticmethod - def jsonEncoderClass(): - return M44Encoder - - @staticmethod - def jsonDecoderClass(): - return M44Decoder - - @staticmethod - def color(): - return (150, 0, 20, 255) - - @staticmethod - def supportedDataTypes(): - return ('Matrix44Pin',) - - @staticmethod - def pinDataTypeHint(): - return 'Matrix44Pin', Matrix44() - - @staticmethod - def internalDataStructure(): - return Matrix44 - - @staticmethod - def processData(data): - return Matrix44Pin.internalDataStructure()(data) diff --git a/PyFlow/Packages/Pyrr/Pins/QuatPin.py b/PyFlow/Packages/Pyrr/Pins/QuatPin.py deleted file mode 100644 index 336423615..000000000 --- a/PyFlow/Packages/Pyrr/Pins/QuatPin.py +++ /dev/null @@ -1,59 +0,0 @@ -from pyrr import Quaternion -import json - -from PyFlow.Core import PinBase -from PyFlow.Core.Common import * - - -class QuatEncoder(json.JSONEncoder): - def default(self, q): - if isinstance(q, Quaternion): - return {Quaternion.__name__: q.tolist()} - json.JSONEncoder.default(self, q) - - -class QuatDecoder(json.JSONDecoder): - def __init__(self, *args, **kwargs): - super(QuatDecoder, self).__init__(object_hook=self.object_hook, *args, **kwargs) - - def object_hook(self, qDict): - return Quaternion(qDict[Quaternion.__name__]) - - -class QuatPin(PinBase): - """doc string for QuatPin""" - def __init__(self, name, parent, direction, **kwargs): - super(QuatPin, self).__init__(name, parent, direction, **kwargs) - self.setDefaultValue(Quaternion()) - - @staticmethod - def IsValuePin(): - return True - - @staticmethod - def jsonEncoderClass(): - return QuatEncoder - - @staticmethod - def jsonDecoderClass(): - return QuatDecoder - - @staticmethod - def supportedDataTypes(): - return ('QuatPin',) - - @staticmethod - def color(): - return (32, 178, 170, 255) - - @staticmethod - def pinDataTypeHint(): - return 'QuatPin', Quaternion() - - @staticmethod - def internalDataStructure(): - return Quaternion - - @staticmethod - def processData(data): - return QuatPin.internalDataStructure()(data) diff --git a/PyFlow/Packages/Pyrr/Pins/__init__.py b/PyFlow/Packages/Pyrr/Pins/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/PyFlow/Packages/Pyrr/UI/__init__.py b/PyFlow/Packages/Pyrr/UI/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/PyFlow/Packages/Pyrr/__init__.py b/PyFlow/Packages/Pyrr/__init__.py deleted file mode 100644 index 90b4fe2a9..000000000 --- a/PyFlow/Packages/Pyrr/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -PACKAGE_NAME = 'Pyrr' -from collections import OrderedDict -from PyFlow.UI.UIInterfaces import IPackage - -# Pins -from PyFlow.Packages.Pyrr.Pins.QuatPin import QuatPin -from PyFlow.Packages.Pyrr.Pins.FloatVector3Pin import FloatVector3Pin -from PyFlow.Packages.Pyrr.Pins.FloatVector4Pin import FloatVector4Pin -from PyFlow.Packages.Pyrr.Pins.Matrix33Pin import Matrix33Pin -from PyFlow.Packages.Pyrr.Pins.Matrix44Pin import Matrix44Pin - -# Function based nodes -from PyFlow.Packages.Pyrr.FunctionLibraries.Matrix33 import Matrix33 -from PyFlow.Packages.Pyrr.FunctionLibraries.Matrix44 import Matrix44 -from PyFlow.Packages.Pyrr.FunctionLibraries.QuatLib import QuatLib -from PyFlow.Packages.Pyrr.FunctionLibraries.Vector3 import Vector3 -from PyFlow.Packages.Pyrr.FunctionLibraries.Vector4 import Vector4 - -# Factories -from PyFlow.Packages.Pyrr.Factories.PinInputWidgetFactory import getInputWidget -from PyFlow.Packages.Pyrr.Factories.UINodeFactory import createUINode -from PyFlow.Packages.Pyrr.Factories.UIPinFactory import createUIPin - - -_FOO_LIBS = { - Matrix33.__name__: Matrix33(PACKAGE_NAME), - Matrix44.__name__: Matrix44(PACKAGE_NAME), - QuatLib.__name__: QuatLib(PACKAGE_NAME), - Vector3.__name__: Vector3(PACKAGE_NAME), - Vector4.__name__: Vector4(PACKAGE_NAME) -} - -_NODES = { - -} - -_PINS = { - FloatVector3Pin.__name__: FloatVector3Pin, - FloatVector4Pin.__name__: FloatVector4Pin, - Matrix33Pin.__name__: Matrix33Pin, - Matrix44Pin.__name__: Matrix44Pin, - QuatPin.__name__: QuatPin -} - - -_TOOLS = OrderedDict() - - -class Pyrr(IPackage): - def __init__(self): - super(Pyrr, self).__init__() - - @staticmethod - def GetFunctionLibraries(): - return _FOO_LIBS - - @staticmethod - def GetNodeClasses(): - return _NODES - - @staticmethod - def GetPinClasses(): - return _PINS - - @staticmethod - def GetToolClasses(): - return _TOOLS - - @staticmethod - def UIPinsFactory(): - return createUIPin - - @staticmethod - def UINodesFactory(): - return createUINode - - @staticmethod - def PinsInputWidgetFactory(): - return getInputWidget diff --git a/PyFlow/Tests/Test_Arrays.py b/PyFlow/Tests/Test_Arrays.py index 8eb21842c..b39874b95 100644 --- a/PyFlow/Tests/Test_Arrays.py +++ b/PyFlow/Tests/Test_Arrays.py @@ -14,9 +14,9 @@ def tearDown(self): def test_makeList_Node(self): packages = GET_PACKAGES() man = GraphManager() - nodes = packages['PyflowBase'].GetNodeClasses() - foos = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"].getFunctions() - classNodes = packages['PyflowBase'].GetNodeClasses() + nodes = packages['PyFlowBase'].GetNodeClasses() + foos = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"].getFunctions() + classNodes = packages['PyFlowBase'].GetNodeClasses() makeListNode = nodes['makeArray']("mkList") man.activeGraph().addNode(makeListNode) diff --git a/PyFlow/Tests/Test_BasePackage.py b/PyFlow/Tests/Test_BasePackage.py index 2c7c47765..b2287a579 100644 --- a/PyFlow/Tests/Test_BasePackage.py +++ b/PyFlow/Tests/Test_BasePackage.py @@ -13,8 +13,8 @@ def tearDown(self): def test_branch_node(self): packages = GET_PACKAGES() man = GraphManager() - foos = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"].getFunctions() - nodes = packages['PyflowBase'].GetNodeClasses() + foos = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"].getFunctions() + nodes = packages['PyFlowBase'].GetNodeClasses() printNode1 = nodes["consoleOutput"]("print") man.activeGraph().addNode(printNode1) printNode1.setData(str('entity'), "first") diff --git a/PyFlow/Tests/Test_General.py b/PyFlow/Tests/Test_General.py index db42c4cc8..6a5fdc49c 100644 --- a/PyFlow/Tests/Test_General.py +++ b/PyFlow/Tests/Test_General.py @@ -16,9 +16,9 @@ def tearDown(self): def test_connect_pins_by_indexes(self): man = GraphManager() packages = GET_PACKAGES() - mathLib = packages['PyflowBase'].GetFunctionLibraries()["MathAbstractLib"] - defaultLib = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"] - classNodes = packages['PyflowBase'].GetNodeClasses() + mathLib = packages['PyFlowBase'].GetFunctionLibraries()["MathAbstractLib"] + defaultLib = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"] + classNodes = packages['PyFlowBase'].GetNodeClasses() foos = mathLib.getFunctions() defaultLibFoos = defaultLib.getFunctions() @@ -44,7 +44,7 @@ def test_connect_pins_by_indexes(self): def test_graph_location(self): packages = GET_PACKAGES() man = GraphManager() - subgraphNodeClass = packages['PyflowBase'].GetNodeClasses()['compound'] + subgraphNodeClass = packages['PyFlowBase'].GetNodeClasses()['compound'] subgraphNodeInstance = subgraphNodeClass(str('compound')) man.activeGraph().addNode(subgraphNodeInstance) @@ -71,9 +71,9 @@ def test_input_action(self): def test_add_int_no_exec(self): man = GraphManager() packages = GET_PACKAGES() - mathLib = packages['PyflowBase'].GetFunctionLibraries()["MathAbstractLib"] - defaultLib = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"] - classNodes = packages['PyflowBase'].GetNodeClasses() + mathLib = packages['PyFlowBase'].GetFunctionLibraries()["MathAbstractLib"] + defaultLib = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"] + classNodes = packages['PyFlowBase'].GetNodeClasses() foos = mathLib.getFunctions() defaultLibFoos = defaultLib.getFunctions() @@ -98,9 +98,9 @@ def test_add_int_no_exec(self): def test_foo_node_ref_set_data(self): packages = GET_PACKAGES() - randomLib = packages['PyflowBase'].GetFunctionLibraries()["RandomLib"] - defaultLib = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"] - classNodes = packages['PyflowBase'].GetNodeClasses() + randomLib = packages['PyFlowBase'].GetFunctionLibraries()["RandomLib"] + defaultLib = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"] + classNodes = packages['PyFlowBase'].GetNodeClasses() randomLibFoos = randomLib.getFunctions() defaultLibFoos = defaultLib.getFunctions() @@ -129,7 +129,7 @@ def test_foo_node_ref_set_data(self): def test_reconnect_value(self): packages = GET_PACKAGES() - defaultLib = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"] + defaultLib = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"] foos = defaultLib.getFunctions() n1 = NodeBase.initializeFromFunction(foos["makeBool"]) @@ -168,7 +168,7 @@ def test_reconnect_value(self): def test_are_pins_connected(self): packages = GET_PACKAGES() - intlib = packages['PyflowBase'].GetFunctionLibraries()["MathAbstractLib"] + intlib = packages['PyFlowBase'].GetFunctionLibraries()["MathAbstractLib"] foos = intlib.getFunctions() addNode1 = NodeBase.initializeFromFunction(foos["add"]) @@ -206,9 +206,9 @@ def test_variable_scope(self): # create two subgraphs and variables inside packages = GET_PACKAGES() - subgraphNodeClass = packages['PyflowBase'].GetNodeClasses()['compound'] - varGetterClass = packages['PyflowBase'].GetNodeClasses()['getVar'] - varSetterClass = packages['PyflowBase'].GetNodeClasses()['setVar'] + subgraphNodeClass = packages['PyFlowBase'].GetNodeClasses()['compound'] + varGetterClass = packages['PyFlowBase'].GetNodeClasses()['getVar'] + varSetterClass = packages['PyFlowBase'].GetNodeClasses()['setVar'] subgraphNodeInstance1 = subgraphNodeClass('subgraph1') subgraphNodeInstance2 = subgraphNodeClass('subgraph2') @@ -261,7 +261,7 @@ def test_variable_scope(self): def test_get_bool_var(self): packages = GET_PACKAGES() - classNodes = packages["PyflowBase"].GetNodeClasses() + classNodes = packages["PyFlowBase"].GetNodeClasses() man = GraphManager() @@ -270,13 +270,13 @@ def test_get_bool_var(self): v1.value = False # create variable getter node - varGetterClass = packages["PyflowBase"].GetNodeClasses()['getVar'] + varGetterClass = packages["PyFlowBase"].GetNodeClasses()['getVar'] # since variable is bool, bool pin will be created varGetterInstance = varGetterClass(str('v1Getter'), v1) man.activeGraph().addNode(varGetterInstance) # create print node - defaultLib = packages["PyflowBase"].GetFunctionLibraries()['DefaultLib'] + defaultLib = packages["PyFlowBase"].GetFunctionLibraries()['DefaultLib'] printerInstance = classNodes["consoleOutput"]("print") man.activeGraph().addNode(printerInstance) @@ -309,13 +309,13 @@ def test_kill_variable(self): v1.value = False # create variable getter node - varGetterClass = packages["PyflowBase"].GetNodeClasses()['getVar'] + varGetterClass = packages["PyFlowBase"].GetNodeClasses()['getVar'] varGetterInstance = varGetterClass(str('v1Getter'), v1) man.activeGraph().addNode(varGetterInstance) # create print node - defaultLib = packages["PyflowBase"].GetFunctionLibraries()['DefaultLib'] - printerInstance = packages["PyflowBase"].GetNodeClasses()['consoleOutput']("print") + defaultLib = packages["PyFlowBase"].GetFunctionLibraries()['DefaultLib'] + printerInstance = packages["PyFlowBase"].GetNodeClasses()['consoleOutput']("print") man.activeGraph().addNode(printerInstance) # connect to print node input @@ -340,7 +340,7 @@ def test_set_bool_var(self): v1.value = False # create variable setter node - varSetterClass = packages["PyflowBase"].GetNodeClasses()['setVar'] + varSetterClass = packages["PyFlowBase"].GetNodeClasses()['setVar'] varSetterInstance = varSetterClass(str('v1Setter'), v1) setterAdded = man.activeGraph().addNode(varSetterInstance) self.assertEqual(setterAdded, True) @@ -367,7 +367,7 @@ def test_subgraph_execs(self): man = GraphManager() # create empty compound - subgraphNodeClass = packages['PyflowBase'].GetNodeClasses()['compound'] + subgraphNodeClass = packages['PyFlowBase'].GetNodeClasses()['compound'] subgraphNodeInstance = subgraphNodeClass(str('compound')) man.activeGraph().addNode(subgraphNodeInstance) @@ -403,18 +403,18 @@ def test_subgraph_execs(self): self.assertIsNotNone(subgraphOutAnyExec, "failed to find compound out exec pin") # add print node inside - foos = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"].getFunctions() + foos = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"].getFunctions() - printNode1 = packages["PyflowBase"].GetNodeClasses()['consoleOutput']("print") + printNode1 = packages["PyFlowBase"].GetNodeClasses()['consoleOutput']("print") man.activeGraph().addNode(printNode1) printNode1.setData("entity", "hello from compound") def test_graph_serialization(self): man = GraphManager() packages = GET_PACKAGES() - lib = packages['PyflowBase'].GetFunctionLibraries()["MathAbstractLib"] - defaultLib = packages['PyflowBase'].GetFunctionLibraries()["DefaultLib"] - classNodes = packages['PyflowBase'].GetNodeClasses() + lib = packages['PyFlowBase'].GetFunctionLibraries()["MathAbstractLib"] + defaultLib = packages['PyFlowBase'].GetFunctionLibraries()["DefaultLib"] + classNodes = packages['PyFlowBase'].GetNodeClasses() foos = lib.getFunctions() defFoos = defaultLib.getFunctions() @@ -452,7 +452,7 @@ def test_graph_depth(self): man = GraphManager() packages = GET_PACKAGES() - subgraphNodeClass = packages['PyflowBase'].GetNodeClasses()['compound'] + subgraphNodeClass = packages['PyFlowBase'].GetNodeClasses()['compound'] subgraphNodeInstance = subgraphNodeClass(str(str('compound'))) man.activeGraph().addNode(subgraphNodeInstance) @@ -465,7 +465,7 @@ def test_manager_serialization(self): man = GraphManager() packages = GET_PACKAGES() - subgraphNodeClass = packages['PyflowBase'].GetNodeClasses()['compound'] + subgraphNodeClass = packages['PyFlowBase'].GetNodeClasses()['compound'] subgraphNodeInstance = subgraphNodeClass(str('compound')) man.activeGraph().addNode(subgraphNodeInstance) man.selectGraph(subgraphNodeInstance) diff --git a/PyFlow/UI/Canvas/Canvas.py b/PyFlow/UI/Canvas/Canvas.py index 2c781cd70..d05401cdb 100644 --- a/PyFlow/UI/Canvas/Canvas.py +++ b/PyFlow/UI/Canvas/Canvas.py @@ -51,9 +51,9 @@ ) from PyFlow.Core.Common import * -from PyFlow.Packages.PyflowBase.Nodes.commentNode import commentNode -from PyFlow.Packages.PyflowBase.UI.UIRerouteNode import UIRerouteNode -from PyFlow.Packages.PyflowBase import PACKAGE_NAME as PYFLOW_BASE_PACKAGE_NAME +from PyFlow.Packages.PyFlowBase.Nodes.commentNode import commentNode +from PyFlow.Packages.PyFlowBase.UI.UIRerouteNode import UIRerouteNode +from PyFlow.Packages.PyFlowBase import PACKAGE_NAME as PYFLOW_BASE_PACKAGE_NAME from PyFlow.UI.Utils.stylesheet import editableStyleSheet @@ -677,7 +677,7 @@ def keyPressEvent(self, event): rect.setBottom(rect.bottom() + 30) nodeTemplate = NodeBase.jsonTemplate() - nodeTemplate['package'] = "PyflowBase" + nodeTemplate['package'] = "PyFlowBase" nodeTemplate['type'] = commentNode.__name__ nodeTemplate['name'] = commentNode.__name__ if rect: @@ -948,7 +948,7 @@ def getReruteNode(self, pos, connection=None): if connection and connection.drawSource._rawPin.isExec() and connection.drawDestination._rawPin.isExec(): nodeClassName = "rerouteExecs" nodeTemplate = NodeBase.jsonTemplate() - nodeTemplate['package'] = "PyflowBase" + nodeTemplate['package'] = "PyFlowBase" nodeTemplate['lib'] = None nodeTemplate['type'] = nodeClassName nodeTemplate['name'] = "reroute" @@ -962,7 +962,7 @@ def getReruteNode(self, pos, connection=None): def getInputNode(self): nodeTemplate = NodeBase.jsonTemplate() - nodeTemplate['package'] = "PyflowBase" + nodeTemplate['package'] = "PyFlowBase" nodeTemplate['lib'] = None nodeTemplate['type'] = "graphInputs" nodeTemplate['name'] = "graphInputs" @@ -976,7 +976,7 @@ def getInputNode(self): def getOutputNode(self): nodeTemplate = NodeBase.jsonTemplate() - nodeTemplate['package'] = "PyflowBase" + nodeTemplate['package'] = "PyFlowBase" nodeTemplate['lib'] = None nodeTemplate['type'] = "graphOutputs" nodeTemplate['name'] = "graphOutputs" diff --git a/PyFlow/UI/Canvas/UIVariable.py b/PyFlow/UI/Canvas/UIVariable.py index 78c30b50a..7b7051a88 100644 --- a/PyFlow/UI/Canvas/UIVariable.py +++ b/PyFlow/UI/Canvas/UIVariable.py @@ -150,7 +150,7 @@ def onFindRefsClicked(self): refs = [n.getWrapper() for n in self._rawVariable.findRefs()] app = PyFlow.instance() if "Search results" not in [t.name() for t in app.getRegisteredTools()]: - app.invokeDockToolByName("PyflowBase", "Search results") + app.invokeDockToolByName("PyFlowBase", "Search results") self.variablesWidget.pyFlowInstance.getCanvas().requestShowSearchResults.emit(refs) def onKillClicked(self): diff --git a/docs/source/PyFlow.Packages.PyflowBase.Exporters.rst b/docs/source/PyFlow.Packages.PyflowBase.Exporters.rst index 6bf50b07f..dc3d4d03d 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.Exporters.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.Exporters.rst @@ -1,24 +1,24 @@ -PyFlow.Packages.PyflowBase.Exporters package +PyFlow.Packages.PyFlowBase.Exporters package ============================================ Submodules ---------- -PyFlow.Packages.PyflowBase.Exporters.CPPCompiler module +PyFlow.Packages.PyFlowBase.Exporters.CPPCompiler module ------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Exporters.CPPCompiler +.. automodule:: PyFlow.Packages.PyFlowBase.Exporters.CPPCompiler :members: -PyFlow.Packages.PyflowBase.Exporters.PythonScriptExporter module +PyFlow.Packages.PyFlowBase.Exporters.PythonScriptExporter module ---------------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Exporters.PythonScriptExporter +.. automodule:: PyFlow.Packages.PyFlowBase.Exporters.PythonScriptExporter :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.Exporters +.. automodule:: PyFlow.Packages.PyFlowBase.Exporters :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.Factories.rst b/docs/source/PyFlow.Packages.PyflowBase.Factories.rst index 33c08d743..090275c6c 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.Factories.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.Factories.rst @@ -1,30 +1,30 @@ -PyFlow.Packages.PyflowBase.Factories package +PyFlow.Packages.PyFlowBase.Factories package ============================================ Submodules ---------- -PyFlow.Packages.PyflowBase.Factories.PinInputWidgetFactory module +PyFlow.Packages.PyFlowBase.Factories.PinInputWidgetFactory module ----------------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Factories.PinInputWidgetFactory +.. automodule:: PyFlow.Packages.PyFlowBase.Factories.PinInputWidgetFactory :members: -PyFlow.Packages.PyflowBase.Factories.UINodeFactory module +PyFlow.Packages.PyFlowBase.Factories.UINodeFactory module --------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Factories.UINodeFactory +.. automodule:: PyFlow.Packages.PyFlowBase.Factories.UINodeFactory :members: -PyFlow.Packages.PyflowBase.Factories.UIPinFactory module +PyFlow.Packages.PyFlowBase.Factories.UIPinFactory module -------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Factories.UIPinFactory +.. automodule:: PyFlow.Packages.PyFlowBase.Factories.UIPinFactory :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.Factories +.. automodule:: PyFlow.Packages.PyFlowBase.Factories :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.FunctionLibraries.rst b/docs/source/PyFlow.Packages.PyflowBase.FunctionLibraries.rst index c8967adda..d37dec4c9 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.FunctionLibraries.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.FunctionLibraries.rst @@ -1,60 +1,60 @@ -PyFlow.Packages.PyflowBase.FunctionLibraries package +PyFlow.Packages.PyFlowBase.FunctionLibraries package ==================================================== Submodules ---------- -PyFlow.Packages.PyflowBase.FunctionLibraries.ArrayLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.ArrayLib module ------------------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.ArrayLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.ArrayLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.BoolLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.BoolLib module ----------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.BoolLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.BoolLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.DefaultLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.DefaultLib module -------------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.DefaultLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.DefaultLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.FloatLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.FloatLib module ------------------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.FloatLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.FloatLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.IntLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.IntLib module ---------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.IntLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.IntLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.MathAbstractLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.MathAbstractLib module ------------------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.MathAbstractLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.MathAbstractLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.MathLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.MathLib module ----------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.MathLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.MathLib :members: -PyFlow.Packages.PyflowBase.FunctionLibraries.RandomLib module +PyFlow.Packages.PyFlowBase.FunctionLibraries.RandomLib module ------------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries.RandomLib +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries.RandomLib :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.FunctionLibraries +.. automodule:: PyFlow.Packages.PyFlowBase.FunctionLibraries :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.Nodes.rst b/docs/source/PyFlow.Packages.PyflowBase.Nodes.rst index 0daa7e6fd..f0db831c7 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.Nodes.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.Nodes.rst @@ -1,186 +1,186 @@ -PyFlow.Packages.PyflowBase.Nodes package +PyFlow.Packages.PyFlowBase.Nodes package ======================================== Submodules ---------- -PyFlow.Packages.PyflowBase.Nodes.address module +PyFlow.Packages.PyFlowBase.Nodes.address module ----------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.address +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.address :members: -PyFlow.Packages.PyflowBase.Nodes.branch module +PyFlow.Packages.PyFlowBase.Nodes.branch module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.branch +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.branch :members: -PyFlow.Packages.PyflowBase.Nodes.charge module +PyFlow.Packages.PyFlowBase.Nodes.charge module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.charge +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.charge :members: -PyFlow.Packages.PyflowBase.Nodes.commentNode module +PyFlow.Packages.PyFlowBase.Nodes.commentNode module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.commentNode +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.commentNode :members: -PyFlow.Packages.PyflowBase.Nodes.compound module +PyFlow.Packages.PyFlowBase.Nodes.compound module ------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.compound +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.compound :members: -PyFlow.Packages.PyflowBase.Nodes.consoleOutput module +PyFlow.Packages.PyFlowBase.Nodes.consoleOutput module ----------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.consoleOutput +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.consoleOutput :members: -PyFlow.Packages.PyflowBase.Nodes.constant module +PyFlow.Packages.PyFlowBase.Nodes.constant module ------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.constant +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.constant :members: -PyFlow.Packages.PyflowBase.Nodes.delay module +PyFlow.Packages.PyFlowBase.Nodes.delay module --------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.delay +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.delay :members: -PyFlow.Packages.PyflowBase.Nodes.deltaTime module +PyFlow.Packages.PyFlowBase.Nodes.deltaTime module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.deltaTime +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.deltaTime :members: -PyFlow.Packages.PyflowBase.Nodes.doN module +PyFlow.Packages.PyFlowBase.Nodes.doN module ------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.doN +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.doN :members: -PyFlow.Packages.PyflowBase.Nodes.doOnce module +PyFlow.Packages.PyFlowBase.Nodes.doOnce module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.doOnce +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.doOnce :members: -PyFlow.Packages.PyflowBase.Nodes.flipFlop module +PyFlow.Packages.PyFlowBase.Nodes.flipFlop module ------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.flipFlop +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.flipFlop :members: -PyFlow.Packages.PyflowBase.Nodes.forEachLoop module +PyFlow.Packages.PyFlowBase.Nodes.forEachLoop module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.forEachLoop +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.forEachLoop :members: -PyFlow.Packages.PyflowBase.Nodes.forLoop module +PyFlow.Packages.PyFlowBase.Nodes.forLoop module ----------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.forLoop +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.forLoop :members: -PyFlow.Packages.PyflowBase.Nodes.forLoopWithBreak module +PyFlow.Packages.PyFlowBase.Nodes.forLoopWithBreak module -------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.forLoopWithBreak +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.forLoopWithBreak :members: -PyFlow.Packages.PyflowBase.Nodes.getVar module +PyFlow.Packages.PyFlowBase.Nodes.getVar module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.getVar +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.getVar :members: -PyFlow.Packages.PyflowBase.Nodes.graphNodes module +PyFlow.Packages.PyFlowBase.Nodes.graphNodes module -------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.graphNodes +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.graphNodes :members: -PyFlow.Packages.PyflowBase.Nodes.makeArray module +PyFlow.Packages.PyFlowBase.Nodes.makeArray module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.makeArray +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.makeArray :members: -PyFlow.Packages.PyflowBase.Nodes.makeList module +PyFlow.Packages.PyFlowBase.Nodes.makeList module ------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.makeList +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.makeList :members: -PyFlow.Packages.PyflowBase.Nodes.pythonNode module +PyFlow.Packages.PyFlowBase.Nodes.pythonNode module -------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.pythonNode +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.pythonNode :members: -PyFlow.Packages.PyflowBase.Nodes.reroute module +PyFlow.Packages.PyFlowBase.Nodes.reroute module ----------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.reroute +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.reroute :members: -PyFlow.Packages.PyflowBase.Nodes.rerouteExecs module +PyFlow.Packages.PyFlowBase.Nodes.rerouteExecs module ---------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.rerouteExecs +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.rerouteExecs :members: -PyFlow.Packages.PyflowBase.Nodes.retriggerableDelay module +PyFlow.Packages.PyFlowBase.Nodes.retriggerableDelay module ---------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.retriggerableDelay +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.retriggerableDelay :members: -PyFlow.Packages.PyflowBase.Nodes.sequence module +PyFlow.Packages.PyFlowBase.Nodes.sequence module ------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.sequence +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.sequence :members: -PyFlow.Packages.PyflowBase.Nodes.setVar module +PyFlow.Packages.PyFlowBase.Nodes.setVar module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.setVar +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.setVar :members: -PyFlow.Packages.PyflowBase.Nodes.switchOnString module +PyFlow.Packages.PyFlowBase.Nodes.switchOnString module ------------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.switchOnString +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.switchOnString :members: -PyFlow.Packages.PyflowBase.Nodes.tick module +PyFlow.Packages.PyFlowBase.Nodes.tick module -------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.tick +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.tick :members: -PyFlow.Packages.PyflowBase.Nodes.timer module +PyFlow.Packages.PyFlowBase.Nodes.timer module --------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.timer +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.timer :members: -PyFlow.Packages.PyflowBase.Nodes.whileLoop module +PyFlow.Packages.PyFlowBase.Nodes.whileLoop module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes.whileLoop +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes.whileLoop :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.Nodes +.. automodule:: PyFlow.Packages.PyFlowBase.Nodes :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.Pins.rst b/docs/source/PyFlow.Packages.PyflowBase.Pins.rst index 95bbb995d..0512a9498 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.Pins.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.Pins.rst @@ -1,54 +1,54 @@ -PyFlow.Packages.PyflowBase.Pins package +PyFlow.Packages.PyFlowBase.Pins package ======================================= Submodules ---------- -PyFlow.Packages.PyflowBase.Pins.AnyPin module +PyFlow.Packages.PyFlowBase.Pins.AnyPin module --------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins.AnyPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.AnyPin :members: -PyFlow.Packages.PyflowBase.Pins.BoolPin module +PyFlow.Packages.PyFlowBase.Pins.BoolPin module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins.BoolPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.BoolPin :members: -PyFlow.Packages.PyflowBase.Pins.ExecPin module +PyFlow.Packages.PyFlowBase.Pins.ExecPin module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins.ExecPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.ExecPin :members: -PyFlow.Packages.PyflowBase.Pins.FloatPin module +PyFlow.Packages.PyFlowBase.Pins.FloatPin module ----------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins.FloatPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.FloatPin :members: -PyFlow.Packages.PyflowBase.Pins.IntPin module +PyFlow.Packages.PyFlowBase.Pins.IntPin module --------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins.IntPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.IntPin :members: -PyFlow.Packages.PyflowBase.Pins.ListPin module +PyFlow.Packages.PyFlowBase.Pins.ListPin module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins.ListPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.ListPin :members: -PyFlow.Packages.PyflowBase.Pins.StringPin module +PyFlow.Packages.PyFlowBase.Pins.StringPin module ------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Pins.StringPin +.. automodule:: PyFlow.Packages.PyFlowBase.Pins.StringPin :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.Pins +.. automodule:: PyFlow.Packages.PyFlowBase.Pins :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.Tools.rst b/docs/source/PyFlow.Packages.PyflowBase.Tools.rst index b16fb78a5..9599cfe3c 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.Tools.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.Tools.rst @@ -1,72 +1,72 @@ -PyFlow.Packages.PyflowBase.Tools package +PyFlow.Packages.PyFlowBase.Tools package ======================================== Submodules ---------- -PyFlow.Packages.PyflowBase.Tools.AlignBottomTool module +PyFlow.Packages.PyFlowBase.Tools.AlignBottomTool module ------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.AlignBottomTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.AlignBottomTool :members: -PyFlow.Packages.PyflowBase.Tools.AlignLeftTool module +PyFlow.Packages.PyFlowBase.Tools.AlignLeftTool module ----------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.AlignLeftTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.AlignLeftTool :members: -PyFlow.Packages.PyflowBase.Tools.AlignRightTool module +PyFlow.Packages.PyFlowBase.Tools.AlignRightTool module ------------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Tools.AlignRightTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.AlignRightTool :members: -PyFlow.Packages.PyflowBase.Tools.AlignTopTool module +PyFlow.Packages.PyFlowBase.Tools.AlignTopTool module ---------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.AlignTopTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.AlignTopTool :members: -PyFlow.Packages.PyflowBase.Tools.HistoryTool module +PyFlow.Packages.PyFlowBase.Tools.HistoryTool module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.HistoryTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.HistoryTool :members: -PyFlow.Packages.PyflowBase.Tools.NodeBoxTool module +PyFlow.Packages.PyFlowBase.Tools.NodeBoxTool module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.NodeBoxTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.NodeBoxTool :members: -PyFlow.Packages.PyflowBase.Tools.PropertiesTool module +PyFlow.Packages.PyFlowBase.Tools.PropertiesTool module ------------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Tools.PropertiesTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.PropertiesTool :members: -PyFlow.Packages.PyflowBase.Tools.ScreenshotTool module +PyFlow.Packages.PyFlowBase.Tools.ScreenshotTool module ------------------------------------------------------ -.. automodule:: PyFlow.Packages.PyflowBase.Tools.ScreenshotTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.ScreenshotTool :members: -PyFlow.Packages.PyflowBase.Tools.SearchResultsTool module +PyFlow.Packages.PyFlowBase.Tools.SearchResultsTool module --------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.SearchResultsTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.SearchResultsTool :members: -PyFlow.Packages.PyflowBase.Tools.VariablesTool module +PyFlow.Packages.PyFlowBase.Tools.VariablesTool module ----------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools.VariablesTool +.. automodule:: PyFlow.Packages.PyFlowBase.Tools.VariablesTool :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.Tools +.. automodule:: PyFlow.Packages.PyFlowBase.Tools :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.UI.rst b/docs/source/PyFlow.Packages.PyflowBase.UI.rst index a0ecc5c9a..c8a72ec71 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.UI.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.UI.rst @@ -1,90 +1,90 @@ -PyFlow.Packages.PyflowBase.UI package +PyFlow.Packages.PyFlowBase.UI package ===================================== Submodules ---------- -PyFlow.Packages.PyflowBase.UI.UIAnyPin module +PyFlow.Packages.PyFlowBase.UI.UIAnyPin module --------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIAnyPin +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIAnyPin :members: -PyFlow.Packages.PyflowBase.UI.UICommentNode module +PyFlow.Packages.PyFlowBase.UI.UICommentNode module -------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UICommentNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UICommentNode :members: -PyFlow.Packages.PyflowBase.UI.UICompoundNode module +PyFlow.Packages.PyFlowBase.UI.UICompoundNode module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UICompoundNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UICompoundNode :members: -PyFlow.Packages.PyflowBase.UI.UIConstantNode module +PyFlow.Packages.PyFlowBase.UI.UIConstantNode module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIConstantNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIConstantNode :members: -PyFlow.Packages.PyflowBase.UI.UIExecPin module +PyFlow.Packages.PyFlowBase.UI.UIExecPin module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIExecPin +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIExecPin :members: -PyFlow.Packages.PyflowBase.UI.UIGetVarNode module +PyFlow.Packages.PyFlowBase.UI.UIGetVarNode module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIGetVarNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIGetVarNode :members: -PyFlow.Packages.PyflowBase.UI.UIGraphNodes module +PyFlow.Packages.PyFlowBase.UI.UIGraphNodes module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIGraphNodes +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIGraphNodes :members: -PyFlow.Packages.PyflowBase.UI.UIListPin module +PyFlow.Packages.PyFlowBase.UI.UIListPin module ---------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIListPin +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIListPin :members: -PyFlow.Packages.PyflowBase.UI.UIPythonNode module +PyFlow.Packages.PyFlowBase.UI.UIPythonNode module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIPythonNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIPythonNode :members: -PyFlow.Packages.PyflowBase.UI.UIRerouteNode module +PyFlow.Packages.PyFlowBase.UI.UIRerouteNode module -------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UIRerouteNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UIRerouteNode :members: -PyFlow.Packages.PyflowBase.UI.UISequenceNode module +PyFlow.Packages.PyFlowBase.UI.UISequenceNode module --------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UISequenceNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UISequenceNode :members: -PyFlow.Packages.PyflowBase.UI.UISetVarNode module +PyFlow.Packages.PyFlowBase.UI.UISetVarNode module ------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UISetVarNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UISetVarNode :members: -PyFlow.Packages.PyflowBase.UI.UISwitchOnStringNode module +PyFlow.Packages.PyFlowBase.UI.UISwitchOnStringNode module --------------------------------------------------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI.UISwitchOnStringNode +.. automodule:: PyFlow.Packages.PyFlowBase.UI.UISwitchOnStringNode :members: Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase.UI +.. automodule:: PyFlow.Packages.PyFlowBase.UI :members: diff --git a/docs/source/PyFlow.Packages.PyflowBase.rst b/docs/source/PyFlow.Packages.PyflowBase.rst index dba69006d..d72529463 100644 --- a/docs/source/PyFlow.Packages.PyflowBase.rst +++ b/docs/source/PyFlow.Packages.PyflowBase.rst @@ -1,4 +1,4 @@ -PyFlow.Packages.PyflowBase package +PyFlow.Packages.PyFlowBase package ================================== Subpackages @@ -6,16 +6,16 @@ Subpackages .. toctree:: - PyFlow.Packages.PyflowBase.Exporters - PyFlow.Packages.PyflowBase.Factories - PyFlow.Packages.PyflowBase.FunctionLibraries - PyFlow.Packages.PyflowBase.Nodes - PyFlow.Packages.PyflowBase.Pins - PyFlow.Packages.PyflowBase.Tools - PyFlow.Packages.PyflowBase.UI + PyFlow.Packages.PyFlowBase.Exporters + PyFlow.Packages.PyFlowBase.Factories + PyFlow.Packages.PyFlowBase.FunctionLibraries + PyFlow.Packages.PyFlowBase.Nodes + PyFlow.Packages.PyFlowBase.Pins + PyFlow.Packages.PyFlowBase.Tools + PyFlow.Packages.PyFlowBase.UI Module contents --------------- -.. automodule:: PyFlow.Packages.PyflowBase +.. automodule:: PyFlow.Packages.PyFlowBase :members: diff --git a/docs/source/PyFlow.Packages.rst b/docs/source/PyFlow.Packages.rst index 272a43095..2e97150ab 100644 --- a/docs/source/PyFlow.Packages.rst +++ b/docs/source/PyFlow.Packages.rst @@ -6,7 +6,7 @@ Subpackages .. toctree:: - PyFlow.Packages.PyflowBase + PyFlow.Packages.PyFlowBase PyFlow.Packages.Pyrr Module contents