public Image3DVisualizationViewContent(IServiceProvider serviceProvider, EventType eventType, VisualizationViewSettings viewSettings, IAvailableStreams availableStreamsGetter)
        {
            DebugHelper.AssertUIThread();

            this.eventType = eventType;
            this.availableStreamsGetter = availableStreamsGetter;

            InitializeComponent();

            this.control = new Image3DVisualizationControl(serviceProvider, eventType, viewSettings, availableStreamsGetter);

            this.ControlHost.Child = this.control; 
        }
        public Image2DPropertyViewContent(IServiceProvider serviceProvider, VisualizationViewSettings viewSettings)
        {
            DebugHelper.AssertUIThread();

            InitializeComponent();

            this.DataContext = this;
            this.viewSettings = viewSettings;

            if (serviceProvider != null)
            {
                this.pluginService = serviceProvider.GetService(typeof(IPluginService)) as IPluginService;
            }

            this.Loaded += Image2DPropertyViewContent_Loaded;
        }
        public Image2DPropertyViewContent(IServiceProvider serviceProvider, VisualizationViewSettings viewSettings)
        {
            DebugHelper.AssertUIThread();

            InitializeComponent();

            this.DataContext  = this;
            this.viewSettings = viewSettings;

            if (serviceProvider != null)
            {
                this.pluginService = serviceProvider.GetService(typeof(IPluginService)) as IPluginService;
            }

            this.Loaded += Image2DPropertyViewContent_Loaded;
        }
        protected VisualizationControl(IServiceProvider serviceProvider, VisualizationViewSettings viewSettings, Func <IPlugin, bool> filterFunc, EventType eventType, IAvailableStreams availableStreamsGetter)
        {
            DebugHelper.AssertUIThread();

            this.DefaultStyleKey = typeof(VisualizationControl);
            this.Style           = FindResource("KinectStudioPlugin." + this.GetType().Name + "Style") as Style;

            this.filterFunc             = filterFunc;
            this.DataContext            = this;
            this.viewSettings           = viewSettings;
            this.eventType              = eventType;
            this.availableStreamsGetter = availableStreamsGetter;

            if (serviceProvider != null)
            {
                this.pluginService = serviceProvider.GetService(typeof(IPluginService)) as IPluginService;
            }

            this.Loaded   += VisualizationControl_Loaded;
            this.Unloaded += VisualizationControl_Unloaded;
        }
        protected VisualizationControl(IServiceProvider serviceProvider, VisualizationViewSettings viewSettings, Func<IPlugin, bool> filterFunc, EventType eventType, IAvailableStreams availableStreamsGetter)
        {
            DebugHelper.AssertUIThread();

            this.DefaultStyleKey = typeof(VisualizationControl);
            this.Style = FindResource("KinectStudioPlugin." + this.GetType().Name + "Style") as Style;

            this.filterFunc = filterFunc;
            this.DataContext = this;
            this.viewSettings = viewSettings;
            this.eventType = eventType;
            this.availableStreamsGetter = availableStreamsGetter;

            if (serviceProvider != null)
            {
                this.pluginService = serviceProvider.GetService(typeof(IPluginService)) as IPluginService;
            }

            this.Loaded += VisualizationControl_Loaded;
            this.Unloaded += VisualizationControl_Unloaded;
        }
 protected ImageVisualizationControl(IServiceProvider serviceProvider, EventType eventType, VisualizationViewSettings viewSettings, Func <IPlugin, bool> filterFunc, IAvailableStreams availableStreamsGetter)
     : base(serviceProvider, viewSettings, filterFunc, eventType, availableStreamsGetter)
 {
     DebugHelper.AssertUIThread();
 }
 public WpfVisualizationControl(IServiceProvider serviceProvider, VisualizationViewSettings viewSettings, EventType eventType, IAvailableStreams availableStreamsGetter)
     : base(serviceProvider, viewSettings, (p) => p is IWpfVisualPlugin, eventType, availableStreamsGetter)
 {
     DebugHelper.AssertUIThread();
 }
Esempio n. 8
0
 public WpfVisualizationControl(IServiceProvider serviceProvider, VisualizationViewSettings viewSettings, EventType eventType, IAvailableStreams availableStreamsGetter)
     : base(serviceProvider, viewSettings, (p) => p is IWpfVisualPlugin, eventType, availableStreamsGetter)
 {
     DebugHelper.AssertUIThread();
 }
        public Image2DVisualizationViewContent(IServiceProvider serviceProvider, EventType eventType, VisualizationViewSettings viewSettings, IAvailableStreams availableStreamsGetter)
        {
            DebugHelper.AssertUIThread();

            this.eventType = eventType;
            this.availableStreamsGetter = availableStreamsGetter;

            InitializeComponent();

            this.control              = new Image2DVisualizationControl(serviceProvider, eventType, viewSettings, availableStreamsGetter);
            this.control.ZoomChanged += Control_ZoomChanged;

            this.ControlHost.Child = this.control;
        }
 public Image2DVisualizationControl(IServiceProvider serviceProvider, EventType eventType, VisualizationViewSettings viewSettings, IAvailableStreams availableStreamsGetter)
     : base(serviceProvider, eventType, viewSettings, (p) => (p is I2DVisualPlugin), availableStreamsGetter) 
 {
     DebugHelper.AssertUIThread();
 }
 public Image2DVisualizationControl(IServiceProvider serviceProvider, EventType eventType, VisualizationViewSettings viewSettings, IAvailableStreams availableStreamsGetter)
     : base(serviceProvider, eventType, viewSettings, (p) => (p is I2DVisualPlugin), availableStreamsGetter)
 {
     DebugHelper.AssertUIThread();
 }
 protected ImageVisualizationControl(IServiceProvider serviceProvider, EventType eventType, VisualizationViewSettings viewSettings, Func<IPlugin, bool> filterFunc, IAvailableStreams availableStreamsGetter)
     : base(serviceProvider, viewSettings, filterFunc, eventType, availableStreamsGetter)
 {
     DebugHelper.AssertUIThread();
 }