public void OpenPatchEditor(Node node, IHDEHost hdeHost, PatchHandle patchHandle = null) { PatchEditor.OpenCanvasOfNode(node, patchHandle); //setting the control also brings the window to front hdeHost.FiftyEditor = this; hdeHost.ShowVLEditor(); }
public DX11RendererNode(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { InitializeComponent(); this.FHost = host; this.hde = hdehost; //this.hde.BeforeComponentModeChange += new ComponentModeEventHandler(hde_BeforeComponentModeChange); this.Resize += DX11RendererNode_Resize; this.Load += new EventHandler(DX11RendererNode_Load); this.Click += new EventHandler(DX11RendererNode_Click); this.MouseEnter += new EventHandler(DX11RendererNode_MouseEnter); this.MouseLeave += new EventHandler(DX11RendererNode_MouseLeave); this.LostFocus += new EventHandler(DX11RendererNode_LostFocus); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(DX11RendererNode_MouseWheel); this.BackColor = Color.Black; Touchdown += OnTouchDownHandler; Touchup += OnTouchUpHandler; TouchMove += OnTouchMoveHandler; this.depthmanager = new DepthBufferManager(host, iofactory); ConfigAttribute bbAttr = new ConfigAttribute("Back Buffer Format"); bbAttr.IsSingle = true; bbAttr.EnumName = DX11EnumFormatHelper.NullDeviceFormats.GetEnumName(FormatSupport.BackBufferCast); bbAttr.DefaultEnumEntry = DX11EnumFormatHelper.NullDeviceFormats.GetAllowedFormats(FormatSupport.BackBufferCast)[0]; this.FCfgBackBufferFormat = iofactory.CreateDiffSpread <EnumEntry>(bbAttr); this.FCfgBackBufferFormat[0] = new EnumEntry(DX11EnumFormatHelper.NullDeviceFormats.GetEnumName(FormatSupport.BackBufferCast), 0); }
public TodoExposedControllerNode(IHDEHost host) { FHDEHost = host; FHDEHost.ExposedNodeService.NodeAdded += NodeAddedCB; FHDEHost.ExposedNodeService.NodeRemoved += NodeRemovedCB; FHDEHost.NodeSelectionChanged += new NodeSelectionEventHandler(FHDEHost_NodeSelectionChanged); }
public AbstractHdeNodeListener(IHDEHost hde) { this.hdehost = hde; /*this.hdehost.RootNode.Added += OnNodeAdded; this.hdehost.RootNode.Removed += OnNodeRemoved;*/ this.AddNode(this.hdehost.RootNode); }
public DX11RendererNode(IPluginHost host, IIOFactory iofactory,IHDEHost hdehost) { InitializeComponent(); this.FHost = host; this.hde = hdehost; //this.hde.BeforeComponentModeChange += new ComponentModeEventHandler(hde_BeforeComponentModeChange); this.Resize += DX11RendererNode_Resize; this.Load += new EventHandler(DX11RendererNode_Load); this.Click += new EventHandler(DX11RendererNode_Click); this.MouseEnter += new EventHandler(DX11RendererNode_MouseEnter); this.MouseLeave += new EventHandler(DX11RendererNode_MouseLeave); this.LostFocus += new EventHandler(DX11RendererNode_LostFocus); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(DX11RendererNode_MouseWheel); this.BackColor = Color.Black; Touchdown += OnTouchDownHandler; Touchup += OnTouchUpHandler; TouchMove += OnTouchMoveHandler; this.depthmanager = new DepthBufferManager(host,iofactory); ConfigAttribute bbAttr = new ConfigAttribute("Back Buffer Format"); bbAttr.IsSingle = true; bbAttr.EnumName = DX11EnumFormatHelper.NullDeviceFormats.GetEnumName(FormatSupport.BackBufferCast); bbAttr.DefaultEnumEntry = DX11EnumFormatHelper.NullDeviceFormats.GetAllowedFormats(FormatSupport.BackBufferCast)[0]; this.FCfgBackBufferFormat = iofactory.CreateDiffSpread<EnumEntry>(bbAttr); this.FCfgBackBufferFormat[0] = new EnumEntry(DX11EnumFormatHelper.NullDeviceFormats.GetEnumName(FormatSupport.BackBufferCast), 0); }
public FinderPluginNode(IHDEHost host, IPluginHost2 pluginHost, [Config("Tags")] IDiffSpread <string> tagsPin) { // The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); FHDEHost = host; FPluginHost = pluginHost; FSearchTextBox.ContextMenu = new ContextMenu(); FSearchTextBox.ContextMenu.Popup += FSearchTextBox_ContextMenu_Popup; FSearchTextBox.MouseWheel += FSearchTextBox_MouseWheel; FMappingRegistry = new MappingRegistry(); FMappingRegistry.RegisterDefaultMapping <INamed, DefaultNameProvider>(); FHierarchyViewer.Registry = FMappingRegistry; FTagsPin = tagsPin; FTagsPin.Changed += HandleTagsPinChanged; FNodeFilter = new NodeFilter(); FNodeView = FNodeFilter.UpdateFilter(string.Empty, FHDEHost.RootNode); FHDEHost.WindowSelectionChanged += HandleWindowSelectionChanged; //defer setting the active patch window as //this will trigger the initial WindowSelectionChangeCB //which will want to access this windows caption which is not yet available SynchronizationContext.Current.Post((object state) => HandleWindowSelectionChanged(FHDEHost, new WindowEventArgs(FHDEHost.ActivePatchWindow)), null); }
public DX11NodesFactory(IHDEHost hdehost, DotNetPluginFactory dnfactory, INodeInfoFactory ni, IORegistry ioreg, ILogger logger) { DX11EnumFormatHelper.CreateNullDeviceFormat(); this.hdehost = hdehost; this.ioreg = ioreg; this.logger = logger; this.hdehost.RootNode.Removed += new Core.CollectionDelegate <INode2>(RootNode_Removed); DX11ResourceRegistry reg = new DX11ResourceRegistry(); this.ioreg.Register(reg, true); this.hdehost.MainLoop.OnPresent += GraphEventService_OnPresent; this.hdehost.MainLoop.OnPrepareGraph += GraphEventService_OnPrepareGraph; this.hdehost.MainLoop.OnRender += GraphEventService_OnRender; this.displaymanager = new DX11DisplayManager(); this.devicemanager = new DX11AutoAdapterDeviceManager(this.logger, this.displaymanager); this.graphbuilder = new DX11GraphBuilder <IDX11ResourceProvider>(hdehost, reg); this.graphbuilder.RenderRequest += graphbuilder_OnRenderRequest; this.rendermanager = new DX11RenderManager(this.devicemanager, this.graphbuilder, this.logger); DX11GlobalDevice.DeviceManager = this.devicemanager; DX11GlobalDevice.RenderManager = this.rendermanager; this.BuildAAEnum(); }
public DX11NodesFactory(IHDEHost hdehost, DotNetPluginFactory dnfactory, INodeInfoFactory ni, IORegistry ioreg, ILogger logger) { DX11EnumFormatHelper.CreateNullDeviceFormat(); this.hdehost = hdehost; this.ioreg = ioreg; this.logger = logger; this.hdehost.RootNode.Removed += new Core.CollectionDelegate<INode2>(RootNode_Removed); DX11ResourceRegistry reg = new DX11ResourceRegistry(); this.ioreg.Register(reg, true); this.hdehost.MainLoop.OnPresent += GraphEventService_OnPresent; this.hdehost.MainLoop.OnPrepareGraph += GraphEventService_OnPrepareGraph; this.hdehost.MainLoop.OnRender += GraphEventService_OnRender; this.displaymanager = new DX11DisplayManager(); this.devicemanager = new DX11AutoAdapterDeviceManager(this.logger, this.displaymanager); this.graphbuilder = new DX11GraphBuilder<IDX11ResourceProvider>(hdehost, reg); this.graphbuilder.RenderRequest += graphbuilder_OnRenderRequest; this.rendermanager = new DX11RenderManager(this.devicemanager, this.graphbuilder,this.logger); DX11GlobalDevice.DeviceManager = this.devicemanager; DX11GlobalDevice.RenderManager = this.rendermanager; this.BuildAAEnum(); }
public AbstractDX11CompShaderFactory(CompositionContainer parentContainer, IHDEHost hdeHost, string exts) : base(exts) { this.ext = exts; this.FHdeHost = hdeHost; this.FParentContainer = parentContainer; FPluginContainers = new Dictionary <IPluginBase, PluginContainer>(); }
public Host Initialize(IHDEHost hdeHost, ILogger logger) { FHDEHost = hdeHost; RuntimeHost.Initialize(this, hdeHost, logger); SynchronizationContext.Current.Post(_ => { FHDEHost.FiftyEditor = this; }, null); return(this); }
public AbstractHdeNodeListener(IHDEHost hde) { this.hdehost = hde; /*this.hdehost.RootNode.Added += OnNodeAdded; * this.hdehost.RootNode.Removed += OnNodeRemoved;*/ this.AddNode(this.hdehost.RootNode); }
public VebSocketService(IHDEHost hdehost, WebSocketServiceHost service) { this.Service = service; this.HDEHost = hdehost; this.Service.Sessions.OnConnectedClient += onConnectedClient; this.Service.Sessions.OnClosedClient += onClosedClient; this.HDEHost.MainLoop.OnUpdateView += onUpdateView; }
public TodoExposedControllerNode(IHDEHost host) { FHDEHost = host; FHDEHost.ExposedNodeService.NodeAdded += NodeAddedCB; FHDEHost.ExposedNodeService.NodeRemoved += NodeRemovedCB; FHDEHost.NodeSelectionChanged += new NodeSelectionEventHandler(FHDEHost_NodeSelectionChanged); FHDEHost.MainLoop.OnPrepareGraph += new EventHandler(MainLoop_OnPrepareGraph); }
public TexturePrintNode(IHDEHost host) { pd = new PrintDocument(); pd.EndPrint += (sender, e) => { bStatus = true; }; pd.PrintPage += (sender, e) => { if (img == null) { return; } float w; float h; if (FFit[0]) { float quotient = 1; float page_w = e.PageBounds.Width - FXpos[0] - e.PageSettings.Margins.Left - e.PageSettings.Margins.Right; float page_h = e.PageBounds.Height - FYpos[0] - e.PageSettings.Margins.Top - e.PageSettings.Margins.Bottom; if (img.Width >= img.Height) { quotient = page_w / img.Width; } if (img.Width < img.Height) { quotient = img.Height / page_h; } w = page_w; h = img.Height * quotient; e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; //strech //e.Graphics.DrawImage(img, // e.Graphics.VisibleClipBounds.Location.X, // e.Graphics.VisibleClipBounds.Location.Y, // e.Graphics.VisibleClipBounds.Size.Width, // e.Graphics.VisibleClipBounds.Size.Height); } else { w = img.Width; h = img.Height; } e.Graphics.DrawImage(img, FXpos[0], FYpos[0], w, h); e.HasMorePages = false; }; t = new Task(new Action(taskEval)); }
public NodeBrowserPluginNode(IHDEHost host, INodeInfoFactory nodeInfoFactory, NodeCollection nodeCollection) { HDEHost = host; NodeInfoFactory = nodeInfoFactory; FNodeCollection = nodeCollection; IsStandalone = true; DefaultConstructor(); }
public Smoothing(IHDEHost hde, string vpath, string vpathsep, VObjectCollection root) { this.HDEHost = hde; this.HDEHost.MainLoop.OnPrepareGraph += this.EveryFrame; this.VPath = vpath; this.VPathSeparator = vpathsep; this.Root = root; this.CheckPath(); this.InternalTime.Start(); }
public AbstractGraphBuilder(IHDEHost hde) : base(hde) { this.graph = new viGraph(); this.pinlistener = new PinInstanceListener(); this.pinlistener.InputPinConnect += OnInputPinConnected; this.pinlistener.InputPinDisconnect += OnInputPinDisconnected; this.hostnodes = new Dictionary<IPluginHost, viNode>(); }
public TexturePrintNode(IHDEHost host) { pd = new PrintDocument(); pd.EndPrint += (sender, e) => { bStatus = true; }; pd.PrintPage += (sender, e) => { if(img == null) return; float w; float h; if(FFit[0]) { float quotient = 1; float page_w = e.PageBounds.Width - FXpos[0] - e.PageSettings.Margins.Left - e.PageSettings.Margins.Right; float page_h = e.PageBounds.Height - FYpos[0] - e.PageSettings.Margins.Top - e.PageSettings.Margins.Bottom; if (img.Width >= img.Height) { quotient = page_w / img.Width; } if (img.Width < img.Height) { quotient = img.Height / page_h; } w = page_w; h = img.Height * quotient; e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; //strech //e.Graphics.DrawImage(img, // e.Graphics.VisibleClipBounds.Location.X, // e.Graphics.VisibleClipBounds.Location.Y, // e.Graphics.VisibleClipBounds.Size.Width, // e.Graphics.VisibleClipBounds.Size.Height); } else { w = img.Width; h = img.Height; } e.Graphics.DrawImage(img, FXpos[0], FYpos[0], w, h); e.HasMorePages = false; }; t = new Task(new Action(taskEval)); }
public StructNodesFactory(CompositionContainer parentContainer, IORegistry ioreg, IHDEHost hdeHost, ISolution solution) : base(parentContainer, ".dll;.struct") { FHDEHost = hdeHost; FParentContainer = parentContainer; FIORegistry = ioreg; FSolution = solution; FBasePath = Assembly.GetExecutingAssembly().Location.Replace($"FACTORIES{System.IO.Path.DirectorySeparatorChar}STRUCTNODESFACTORY.dll", ""); Initialize(); }
public WindowsExecNode(IHDEHost host) { _p = new Process(); _p.EnableRaisingEvents = true; _p.OutputDataReceived += OnDataReceived; _p.ErrorDataReceived += OnErrorReceived; _p.Exited += OnExited; _p.StartInfo.RedirectStandardOutput = true; _p.StartInfo.RedirectStandardError = true; _p.StartInfo.UseShellExecute = false; }
public KontrolleurNode(IHDEHost host) { FHDEHost = host; FHDEHost.ExposedNodeService.NodeAdded += NodeAddedCB; FHDEHost.ExposedNodeService.NodeRemoved += NodeRemovedCB; FRoot = host.RootNode; FTimer.Enabled = true; FTimer.AutoReset = false; FTimer.Elapsed += new ElapsedEventHandler(FTimer_Elapsed); }
public DX11RenderFormNodePooled(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { this.FHost = host; this.hde = hdehost; this.form = new Form(); this.form.Width = 400; this.form.Height = 300; this.form.Show(); this.form.ShowIcon = false; this.handle = this.form.Handle; }
// Called on main thread public void Initialize(Host vlHost, IHDEHost hdeHost, ILogger logger) { FVlHost = vlHost; FPlatform = (Platform)FVlHost.Session.TargetPlatform; FHDEHost = hdeHost; FLogger = logger; FHDEHost.MainLoop.OnResetCache += HandleMainLoopOnResetCache; FCompilation = FPlatform.LatestCompilation; Clocks.FRealTimeClock = new HDERealTimeClock(FHDEHost); FHDEHost.MainLoop.OnInitFrame += MainLoop_OnInitFrame; }
public SetExposedPinNode(IHDEHost host) { FHDEHost = host; FHDEHost.ExposedNodeService.NodeAdded += NodeAddedCB; FHDEHost.ExposedNodeService.NodeRemoved += NodeRemovedCB; //get initial list of exposed ioboxes foreach (var node in FHDEHost.ExposedNodeService.Nodes) { var pinName = PinNameFromNode(node); var pin = node.FindPin(pinName); FExposedPins.Add(node.GetNodePath(false) + "/" + pinName, pin); } }
public EditorFactory(CompositionContainer parentContainer, ILogger logger, IHDEHost hdeHost) { FHostExportProvider = new HostExportProvider(); FExportProviders = new ExportProvider[] { parentContainer, FHostExportProvider }; FNodeInfos = new Dictionary <INodeInfo, ExportFactory <IEditor, IEditorInfo> >(); FExportLifetimeContexts = new Dictionary <IInternalPluginHost, ExportLifetimeContext <IEditor> >(); FNodeInfoExports = new List <ExportFactory <IEditor, IEditorInfo> >(); FLogger = logger; FHDEHost = hdeHost; FMoveToLine = -1; FMoveToColumn = -1; FHDEHost.MouseDown += HandleMouseDown; }
public WindowSwitcherNode(IHDEHost host) { // The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); FHDEHost = host; FHDEHost.WindowAdded += FHDEHost_WindowAdded; FHDEHost.WindowRemoved += FHDEHost_WindowRemoved; FHDEHost.WindowSelectionChanged += FHDEHost_WindowSelectionChanged; FActiveWindow = FHDEHost.ActivePatchWindow; var mappingRegistry = new MappingRegistry(); mappingRegistry.RegisterDefaultMapping<INamed, DefaultNameProvider>(); FHierarchyViewer.Registry = mappingRegistry; }
public TodoHdeEnumVariable(INode2 node, TodoEngine engine, IHDEHost hde) { this.node = node; this.hde = hde; //this.var = var; this.valuepin = this.node.FindPin("Input Enum"); string enumname = this.valuepin.SubType.Split("|".ToCharArray())[1]; //this.valuepin. //this.valuepin.Type //var.ValueChanged += var_ValueChanged; //var.VariableUpdated += var_VariableUpdated; }
public DX11RenderFormNode2(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { this.FHost = host; this.hde = hdehost; this.form = new Form(); this.form.Width = 400; this.form.Height = 300; //this.form. //this.form.ResizeEnd += form_ResizeEnd; this.invalidate = true; this.form.Show(); /*this.form.Resize += DX11RendererNode_Resize; this.form.Load += new EventHandler(DX11RendererNode_Load);*/ }
public VVVVServerNode(IHDEHost host) { FHDEHost = host; FHDEHost.ExposedNodeService.NodeAdded += NodeAddedCB; FHDEHost.ExposedNodeService.NodeRemoved += NodeRemovedCB; //get initial list of exposed ioboxes var pinName = "Y Input Value"; foreach (var node in FHDEHost.ExposedNodeService.Nodes) { var pin = node.FindPin(pinName); pin.Changed += PinChanged; FExposedPins.Add(node.GetNodePath(false) + "/" + pinName, pin); } }
public DX11RenderFormNode2(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { this.FHost = host; this.hde = hdehost; this.form = new Form(); this.form.Width = 400; this.form.Height = 300; //this.form. //this.form.ResizeEnd += form_ResizeEnd; this.form.Show(); this.form.ShowIcon = false; this.displayCursor = new WindowDisplayCursor(this.form); this.depthmanager = new DepthBufferManager(host, iofactory); }
public DX11RenderFormNode2(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { this.FHost = host; this.hde = hdehost; this.form = new Form(); this.form.Width = 400; this.form.Height = 300; //this.form. //this.form.ResizeEnd += form_ResizeEnd; this.invalidate = true; this.form.Show(); /*this.form.Resize += DX11RendererNode_Resize; * this.form.Load += new EventHandler(DX11RendererNode_Load);*/ }
public static void SetFontEnum(IHDEHost host, DWriteFactory dwfactory) { Factory f = new Factory(dwfactory.ComPointer); var fontCollection = f.GetSystemFontCollection(false); List<string> familyNames = new List<string>(); for (int i = 0; i < fontCollection.FontFamilyCount; i++) { var family = fontCollection.GetFontFamily(i); if (family.FamilyNames.Count > 0) { familyNames.Add(family.FamilyNames.GetString(0)); } } familyNames.Sort(); host.UpdateEnum("DirectWrite_Font_Families", "Arial", familyNames.ToArray()); }
public VSTHostNode([Import] IHDEHost host, [Import] IPluginHost plugHost) { FHDEHost = host; FHost = plugHost; //add plugin control FPluginControl = new VstPluginControl(this); FPluginControl.Dock = DockStyle.Fill; FPluginControl.Parent = this; this.Controls.Add(FPluginControl); Rectangle wndRect = new Rectangle(); if (SelectedPluginContext != null) { var PluginCommandStub = SelectedPluginContext.PluginCommandStub; this.Text = PluginCommandStub.GetEffectName(); if (PluginCommandStub.EditorGetRect(out wndRect)) { PluginCommandStub.EditorOpen(this.Handle); } //when window mode changes FHDEHost.BeforeComponentModeChange += delegate(object sender, ComponentModeEventArgs args) { var me = (FHost as INode); if (me == args.Window.Node.InternalCOMInterf) { PluginCommandStub.EditorClose(); } }; FHDEHost.AfterComponentModeChange += delegate(object sender, ComponentModeEventArgs args) { var me = (FHost as INode); if (me == args.Window.Node.InternalCOMInterf) { PluginCommandStub.EditorOpen(this.Handle); } }; } }
public static void SetFontEnum(IHDEHost host, DWriteFactory dwfactory) { Factory f = new Factory(dwfactory.ComPointer); var fontCollection = f.GetSystemFontCollection(false); List <string> familyNames = new List <string>(); for (int i = 0; i < fontCollection.FontFamilyCount; i++) { var family = fontCollection.GetFontFamily(i); if (family.FamilyNames.Count > 0) { familyNames.Add(family.FamilyNames.GetString(0)); } } familyNames.Sort(); host.UpdateEnum("DirectWrite_Font_Families", "Arial", familyNames.ToArray()); }
public DX11RendererNode(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { InitializeComponent(); this.FHost = host; this.hde = hdehost; this.BackColor = System.Drawing.Color.Black; this.cursorDisplay = new Windows.WindowDisplayCursor(this); this.Resize += DX11RendererNode_Resize; this.Load += new EventHandler(DX11RendererNode_Load); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(DX11RendererNode_MouseWheel); this.GotFocus += DX11RendererNode_GotFocus; this.LostFocus += DX11RendererNode_LostFocus; TouchDown += OnTouchDownHandler; TouchUp += OnTouchUpHandler; TouchMove += OnTouchMoveHandler; this.depthmanager = new DepthBufferManager(host, iofactory); }
public DX11RendererNode(IPluginHost host, IIOFactory iofactory, IHDEHost hdehost) { InitializeComponent(); this.FHost = host; this.hde = hdehost; //this.hde.BeforeComponentModeChange += new ComponentModeEventHandler(hde_BeforeComponentModeChange); this.Resize += DX11RendererNode_Resize; this.Load += new EventHandler(DX11RendererNode_Load); this.Click += new EventHandler(DX11RendererNode_Click); this.MouseEnter += new EventHandler(DX11RendererNode_MouseEnter); this.MouseLeave += new EventHandler(DX11RendererNode_MouseLeave); this.LostFocus += new EventHandler(DX11RendererNode_LostFocus); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(DX11RendererNode_MouseWheel); this.BackColor = Color.Black; Touchdown += OnTouchDownHandler; Touchup += OnTouchUpHandler; TouchMove += OnTouchMoveHandler; this.depthmanager = new DepthBufferManager(host, iofactory); }
public DX11RendererNode(IPluginHost host, IIOFactory iofactory,IHDEHost hdehost) { InitializeComponent(); this.FHost = host; this.hde = hdehost; //this.hde.BeforeComponentModeChange += new ComponentModeEventHandler(hde_BeforeComponentModeChange); this.Resize += DX11RendererNode_Resize; this.Load += new EventHandler(DX11RendererNode_Load); this.Click += new EventHandler(DX11RendererNode_Click); this.MouseEnter += new EventHandler(DX11RendererNode_MouseEnter); this.MouseLeave += new EventHandler(DX11RendererNode_MouseLeave); this.LostFocus += new EventHandler(DX11RendererNode_LostFocus); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(DX11RendererNode_MouseWheel); this.BackColor = Color.Black; Touchdown += OnTouchDownHandler; Touchup += OnTouchUpHandler; TouchMove += OnTouchMoveHandler; this.depthmanager = new DepthBufferManager(host,iofactory); }
public WindowMessageService(IHDEHost host) { var hotObservable = Observable.FromEventPattern <WindowEventArgs>(host, "WindowAdded") .Select(p => p.EventArgs.Window) .Merge( Observable.FromEventPattern <ComponentModeEventArgs>(host, "AfterComponentModeChange") .Select(p => p.EventArgs.Window) ) .OfType <Window>() .Where(w => w.UserInputWindow != null && w.UserInputWindow.InputWindowHandle != IntPtr.Zero) .Where(w => !FSubclasses.Any(s => s.HWnd == w.UserInputWindow.InputWindowHandle)) .Select(w => Subclass.Create(w.UserInputWindow.InputWindowHandle, w.UserInputWindow)) .Do(s => { s.Disposed += (o, e) => { if (s != null) { FSubclasses.Remove(s); if (SubclassDestroyed != null) { SubclassDestroyed.Invoke(s, EventArgs.Empty); } } }; FSubclasses.Add(s); if (SubclassCreated != null) { SubclassCreated.Invoke(s, EventArgs.Empty); } }) .SelectMany(s => Observable.FromEventPattern <WMEventArgs>(s, "WindowMessage")) .Publish(); FWMConnection = hotObservable.Connect(); MessageNotifications = hotObservable; }
public DX11NodesFactory(IHDEHost hdehost, DotNetPluginFactory dnfactory, INodeInfoFactory ni, IORegistry ioreg, ILogger logger) { DX11EnumFormatHelper.CreateNullDeviceFormat(); this.hdehost = hdehost; this.ioreg = ioreg; this.logger = logger; this.hdehost.RootNode.Removed += new Core.CollectionDelegate<INode2>(RootNode_Removed); DX11ResourceRegistry reg = new DX11ResourceRegistry(); this.ioreg.Register(reg, true); this.hdehost.MainLoop.OnPresent += GraphEventService_OnPresent; this.hdehost.MainLoop.OnPrepareGraph += GraphEventService_OnPrepareGraph; this.hdehost.MainLoop.OnRender += GraphEventService_OnRender; this.displaymanager = new DX11DisplayManager(); string[] args = Environment.GetCommandLineArgs(); foreach (string s in args) { string sl = s.ToLower(); if (sl.StartsWith("/dx11mode:")) { sl = sl.Replace("/dx11mode:", ""); if (sl == "permonitor") { this.devicemanager = new DX11PerMonitorDeviceManager(this.logger, this.displaymanager); } else if (sl == "peradapter") { this.devicemanager = new DX11PerAdapterDeviceManager(this.logger, this.displaymanager); } else if (sl.StartsWith("force")) { sl = sl.Replace("force", ""); try { int i = int.Parse(sl); if (i >= 0 && i < this.displaymanager.AdapterCount) { this.devicemanager = new DX11AutoAdapterDeviceManager(this.logger, this.displaymanager, i); } } catch { } } } } if (this.devicemanager == null) { this.devicemanager = new DX11AutoAdapterDeviceManager(this.logger, this.displaymanager); } this.graphbuilder = new DX11GraphBuilder<IDX11ResourceProvider>(hdehost, reg); this.graphbuilder.RenderRequest += graphbuilder_OnRenderRequest; this.rendermanager = new DX11RenderManager(this.devicemanager, this.graphbuilder,this.logger); DX11GlobalDevice.DeviceManager = this.devicemanager; DX11GlobalDevice.RenderManager = this.rendermanager; this.BuildAAEnum(); }
public StencilTextureNode(IHDEHost hde) { }
public VSTHostNode([Import] IHDEHost host, [Import] IPluginHost plugHost) { FHDEHost = host; FHost = plugHost; //add plugin control FPluginControl = new VstPluginControl(this); FPluginControl.Dock = DockStyle.Fill; this.Controls.Add(FPluginControl); Rectangle wndRect = new Rectangle(); if (SelectedPluginContext != null) { var PluginCommandStub = SelectedPluginContext.PluginCommandStub; this.Text = PluginCommandStub.GetEffectName(); if (PluginCommandStub.EditorGetRect(out wndRect)) { PluginCommandStub.EditorOpen(this.Handle); } //when window mode changes FHDEHost.BeforeComponentModeChange += delegate(object sender, ComponentModeEventArgs args) { var me = (FHost as INode); if(me == args.Window.Node.InternalCOMInterf) PluginCommandStub.EditorClose(); }; FHDEHost.AfterComponentModeChange += delegate(object sender, ComponentModeEventArgs args) { var me = (FHost as INode); if(me == args.Window.Node.InternalCOMInterf) PluginCommandStub.EditorOpen(this.Handle); }; } }
public LiveNode(IHDEHost host) { FHDEHost = host; //FMessageQueue = new List<OSCMessage>(); LiveSet = new AbletonLiveSet(new LogDebugDelegate(mylog)); }
public FrameDelayTextureNode(IHDEHost hde, ILogger logger) { this.hde = hde; this.hde.MainLoop.OnResetCache += this.MainLoop_OnPresent; this.logger = logger; }
public DX11NodesFactory(IHDEHost hdehost, DotNetPluginFactory dnfactory, INodeInfoFactory ni, IORegistry ioreg, ILogger logger) { //Attach lib core path and plugins path string path = Path.GetDirectoryName(typeof(DX11DeviceRenderer).Assembly.Location); string vvvvpath = Path.GetDirectoryName(Application.ExecutablePath); string varpath = Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Process); varpath += ";" + path; vvvvpath = Path.Combine(vvvvpath, "packs\\dx11\\nodes\\plugins"); varpath += ";" + path; Environment.SetEnvironmentVariable("Path", varpath, EnvironmentVariableTarget.Process); DX11EnumFormatHelper.CreateNullDeviceFormat(); this.hdehost = hdehost; this.ioreg = ioreg; this.logger = logger; this.hdehost.RootNode.Removed += new Core.CollectionDelegate<INode2>(RootNode_Removed); DX11ResourceRegistry reg = new DX11ResourceRegistry(); this.ioreg.Register(reg, true); this.hdehost.MainLoop.OnPresent += GraphEventService_OnPresent; this.hdehost.MainLoop.OnPrepareGraph += GraphEventService_OnPrepareGraph; this.hdehost.MainLoop.OnRender += GraphEventService_OnRender; this.displaymanager = new DX11DisplayManager(); this.DirectWriteFactory = new DWriteFactory(SlimDX.DirectWrite.FactoryType.Shared); string[] args = Environment.GetCommandLineArgs(); foreach (string s in args) { string sl = s.ToLower(); if (sl.StartsWith("/dx11mode:")) { sl = sl.Replace("/dx11mode:", ""); if (sl == "permonitor") { this.devicemanager = new DX11PerMonitorDeviceManager(this.logger, this.displaymanager); } else if (sl == "peradapter") { this.devicemanager = new DX11PerAdapterDeviceManager(this.logger, this.displaymanager); } else if (sl.StartsWith("force")) { sl = sl.Replace("force", ""); try { int i = int.Parse(sl); if (i >= 0 && i < this.displaymanager.AdapterCount) { this.devicemanager = new DX11AutoAdapterDeviceManager(this.logger, this.displaymanager, i); } } catch { } } } } if (this.devicemanager == null) { this.devicemanager = new DX11AutoAdapterDeviceManager(this.logger, this.displaymanager); } this.graphbuilder = new DX11GraphBuilder<IDX11ResourceProvider>(hdehost, reg); this.graphbuilder.RenderRequest += graphbuilder_OnRenderRequest; this.rendermanager = new DX11RenderManager(this.devicemanager, this.graphbuilder,this.logger); DX11GlobalDevice.DeviceManager = this.devicemanager; DX11GlobalDevice.RenderManager = this.rendermanager; this.BuildAAEnum(); }
public FrameDelayTextureNode(IHDEHost hde) { this.hde = hde; this.hde.MainLoop.OnResetCache += new EventHandler(MainLoop_OnPresent); }
public DevicesPrinterNode(IHDEHost host) { t = new Task(new Action(taskEval)); }
public void SetHost(IHDEHost host) { FHost = host; }