예제 #1
0
        public TestLight(IUpdateActionParent parent, IApiVersion3 logicalDevice)
            : base(logicalDevice)
        {
            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.newDataAvailable)
                    {
                        this.newDataAvailable = false;

                        Output();
                    }
                }
            });
        }
예제 #2
0
        public TestLight(IUpdateActionParent parent, IApiVersion3 logicalDevice)
            : base(logicalDevice)
        {
            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.performUpdate)
                    {
                        this.performUpdate = false;

                        if (this.hasNewData)
                        {
                            this.control.Invalidate();
                        }
                    }
                }
            });
        }
예제 #3
0
        private TestPixel1D(IUpdateActionParent parent, int numberOfPixels)
        {
            this.numberOfPixels = numberOfPixels;

            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.newDataAvailable)
                    {
                        this.newDataAvailable = false;

                        if (control != null)
                            control.SetImage(this.outputBitmap);
                    }
                }
            });

            Executor.Current.Register(this);
        }
예제 #4
0
        public TestPixel2D(IUpdateActionParent parent, int pixelWidth, int pixelHeight)
        {
            this.pixelWidth = pixelWidth;
            this.pixelHeight = pixelHeight;

            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.newDataAvailable)
                    {
                        this.newDataAvailable = false;

                        if (control != null)
                            control.SetImage(this.outputBitmap);
                    }
                }
            });

            Executor.Current.Register(this);
        }
예제 #5
0
        private TestPixel1D(IUpdateActionParent parent, int numberOfPixels)
        {
            this.numberOfPixels = numberOfPixels;

            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.newDataAvailable)
                    {
                        this.newDataAvailable = false;

                        if (control != null)
                        {
                            control.SetImage(this.outputBitmap);
                        }
                    }
                }
            });

            Executor.Current.Register(this);
        }
예제 #6
0
        public TestPixel2D(IUpdateActionParent parent, int pixelWidth, int pixelHeight)
        {
            this.pixelWidth  = pixelWidth;
            this.pixelHeight = pixelHeight;

            parent.AddUpdateAction(() =>
            {
                lock (lockObject)
                {
                    if (this.newDataAvailable)
                    {
                        this.newDataAvailable = false;

                        if (control != null)
                        {
                            control.SetImage(this.outputBitmap);
                        }
                    }
                }
            });

            Executor.Current.Register(this);
        }