public FXNode(int w, int h, GraphPixelType p = GraphPixelType.RGBA) { Name = "FX"; Id = Guid.NewGuid().ToString(); tileX = tileY = 1; width = w; height = h; internalPixelType = p; luminosity = 1.0f; luminosityRandomness = 0.0f; iterations = 1; translation = new MVector(); scale = new MVector(1, 1); rotation = 0; blending = FXBlend.Blend; previewProcessor = new BasicImageRenderer(); processor = new FXProcessor(); q1 = new NodeInput(NodeType.Color | NodeType.Gray, this, "Quadrant"); q2 = new NodeInput(NodeType.Color | NodeType.Gray, this, "Quadrant"); q3 = new NodeInput(NodeType.Color | NodeType.Gray, this, "Quadrant"); q4 = new NodeInput(NodeType.Color | NodeType.Gray, this, "Quadrant"); Output = new NodeOutput(NodeType.Color | NodeType.Gray, this); q1.OnInputAdded += Input_OnInputAdded; q1.OnInputRemoved += Input_OnInputRemoved; q1.OnInputChanged += Input_OnInputChanged; q2.OnInputAdded += Input_OnInputAdded; q2.OnInputRemoved += Input_OnInputRemoved; q2.OnInputChanged += Input_OnInputChanged; q3.OnInputAdded += Input_OnInputAdded; q3.OnInputRemoved += Input_OnInputRemoved; q3.OnInputChanged += Input_OnInputChanged; q4.OnInputAdded += Input_OnInputAdded; q4.OnInputRemoved += Input_OnInputRemoved; q4.OnInputChanged += Input_OnInputChanged; Inputs = new List <NodeInput>(); Inputs.Add(q1); Inputs.Add(q2); Inputs.Add(q3); Inputs.Add(q4); Outputs = new List <NodeOutput>(); Outputs.Add(Output); }
public override void Dispose() { base.Dispose(); if (temp != null) { temp.Release(); temp = null; } if (processor != null) { processor.Release(); processor = null; } }
public MessageProcessorHelper(IPersistenceService persistenceService) { fxProcessor = new FXProcessor(persistenceService); eqProcessor = new EQProcessor(persistenceService); }