コード例 #1
0
        /// <summary>
        /// Called when the repeated task completes.
        /// </summary>
        protected override void OnEnd()
        {
            // Prefilter items with negative penalties (ie constantly changing variables)
            //// this.Snapshot.SetAllValidBits(false);

            foreach (SnapshotRegion region in this.Snapshot.SnapshotRegions)
            {
                for (IEnumerator <SnapshotElementComparer> enumerator = region.IterateComparer(SnapshotElementComparer.PointerIncrementMode.ValuesOnly, null); enumerator.MoveNext();)
                {
                    SnapshotElementComparer element = enumerator.Current;

                    if ((Int16)element.ElementLabel > 0)
                    {
                        //// element.SetValid(true);
                    }
                }
            }

            ////  this.Snapshot.DiscardInvalidRegions();

            SnapshotManagerViewModel.GetInstance().SaveSnapshot(this.Snapshot);

            this.CleanUp();
            LabelThresholderViewModel.GetInstance().OpenLabelThresholder();
        }
コード例 #2
0
        /// <summary>
        /// Called when the repeated task completes.
        /// </summary>
        protected override void OnEnd()
        {
            SnapshotManager.GetInstance().SaveSnapshot(this.Snapshot);
            LabelThresholderViewModel.GetInstance().OpenLabelThresholder();
            this.Snapshot = null;

            base.OnEnd();
        }
コード例 #3
0
        /// <summary>
        /// Called when the repeated task completes.
        /// </summary>
        protected override void OnEnd()
        {
            // Prefilter items with negative penalties (ie constantly changing variables)
            this.Snapshot.SetAllValidBits(false);
            foreach (SnapshotRegion region in this.Snapshot)
            {
                foreach (SnapshotElementRef element in region)
                {
                    if ((Int16)element.ElementLabel > 0)
                    {
                        element.SetValid(true);
                    }
                }
            }

            this.Snapshot.DiscardInvalidRegions();

            SnapshotManager.GetInstance().SaveSnapshot(this.Snapshot);

            this.CleanUp();
            LabelThresholderViewModel.GetInstance().OpenLabelThresholder();

            base.OnEnd();
        }