Browse Source

Moved ColorMatrixFilter into FilterNodes namespace

CPKreuz 1 year ago
parent
commit
653f6b24c8

+ 5 - 7
src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/MatrixTransformNode.cs → src/PixiEditor.ChangeableDocument/Changeables/Graph/Nodes/FilterNodes/ColorMatrixFilterNode.cs

@@ -1,17 +1,15 @@
-using PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.FilterNodes;
-using PixiEditor.ChangeableDocument.Rendering;
-using PixiEditor.DrawingApi.Core.Surface.PaintImpl;
+using PixiEditor.DrawingApi.Core.Surface.PaintImpl;
 using PixiEditor.Numerics;
 using PixiEditor.Numerics;
 
 
-namespace PixiEditor.ChangeableDocument.Changeables.Graph.Nodes;
+namespace PixiEditor.ChangeableDocument.Changeables.Graph.Nodes.FilterNodes;
 
 
-public class MatrixTransformNode : FilterNode
+public class ColorMatrixFilterNode : FilterNode
 {
 {
     public InputProperty<ColorMatrix> Matrix { get; }
     public InputProperty<ColorMatrix> Matrix { get; }
 
 
     public override string DisplayName { get; set; } = "COLOR_MATRIX_FILTER_NODE";
     public override string DisplayName { get; set; } = "COLOR_MATRIX_FILTER_NODE";
     
     
-    public MatrixTransformNode()
+    public ColorMatrixFilterNode()
     {
     {
         Matrix = CreateInput(nameof(Matrix), "MATRIX", ColorMatrix.Identity);
         Matrix = CreateInput(nameof(Matrix), "MATRIX", ColorMatrix.Identity);
     }
     }
@@ -20,5 +18,5 @@ public class MatrixTransformNode : FilterNode
 
 
     protected override ColorFilter? GetColorFilter() => ColorFilter.CreateColorMatrix(Matrix.Value);
     protected override ColorFilter? GetColorFilter() => ColorFilter.CreateColorMatrix(Matrix.Value);
 
 
-    public override Node CreateCopy() => new MatrixTransformNode();
+    public override Node CreateCopy() => new ColorMatrixFilterNode();
 }
 }