示例#1
0
        public SpectrumList_Thresholder_ListViewItem(ProcessingMethod method)
            : base("Thresholder")
        {
            initializeComponents();

            // parse type, orientation, and threshold from method
            UserParam param = method.userParam("threshold");

            if (param.type == "SeeMS")
            {
                thresholdTextBox.Text = param.value;
            }

            param = method.userParam("type");
            if (param.type == "SeeMS")
            {
                thresholdingTypeComboBox.SelectedIndex = (int)param.value;
            }

            param = method.userParam("orientation");
            if (param.type == "SeeMS")
            {
                thresholdingOrientationComboBox.SelectedIndex = (int)param.value;
            }
        }
示例#2
0
        public ThresholdingProcessor(ProcessingMethod method)
        {
            // parse type, orientation, and threshold from method
            UserParam param = method.userParam("threshold");

            if (param.type == "SeeMS")
            {
                threshold = (double)param.value;
            }

            param = method.userParam("type");
            if (param.type == "SeeMS")
            {
                type = (ThresholdFilter.ThresholdingBy_Type)(int) param.value;
            }

            param = method.userParam("orientation");
            if (param.type == "SeeMS")
            {
                orientation = (ThresholdFilter.ThresholdingOrientation)(int) param.value;
            }
        }