Esempio n. 1
0
        public CentralAlignArgs(SystemService Service) : base(Service)
        {
            ScanCurve  = new ScanCurve();
            ScanCurve2 = new ScanCurve();
            ScanCurveGroup.Add(ScanCurve);
            ScanCurveGroup.Add(ScanCurve2);
            ScanCurveGroup.Add(ScanCurve.FittingCurve);
            ScanCurveGroup.Add(ScanCurve2.FittingCurve);
            ScanCurveGroup.Add(ScanCurve.MaxPowerConstantLine);
            ScanCurveGroup.Add(ScanCurve2.MaxPowerConstantLine);

            AxisXTitle = "Position";
            AxisYTitle = "Indensity";

            Properties.Add(new Property("Instrument"));
            Properties.Add(new Property("Instrument2"));
            Properties.Add(new Property("MoveSpeed"));

            Properties.Add(new Property("Axis"));
            Properties.Add(new Property("ScanIntervalHorizontal"));
            Properties.Add(new Property("AxisRestriction"));
            Properties.Add(new Property("Axis2"));
            Properties.Add(new Property("ScanIntervalVertical"));
            Properties.Add(new Property("Axis2Restriction"));
        }
        public RotatingScanArgs() : base()
        {
            ScanCurve  = new ScanCurve();
            ScanCurve2 = new ScanCurve();

            // add the curves to the group
            ScanCurveGroup.Add(ScanCurve);
            ScanCurveGroup.Add(ScanCurve2);
            ScanCurveGroup.Add(ScanCurve.FittingCurve);
            ScanCurveGroup.Add(ScanCurve2.FittingCurve);
            ScanCurveGroup.Add(ScanCurve.MaxPowerConstantLine);
            ScanCurveGroup.Add(ScanCurve2.MaxPowerConstantLine);

            Properties.Add(new Property("AxisRotating"));
            Properties.Add(new Property("Instrument"));
            Properties.Add(new Property("AxisLinear"));
            Properties.Add(new Property("Instrument2"));
            Properties.Add(new Property("LinearInterval"));
            Properties.Add(new Property("LinearRestriction"));
            Properties.Add(new Property("LengthOfChannelStartToEnd"));
            Properties.Add(new Property("MoveSpeed"));

            AxisXTitle = "ΔPosition";
            AxisYTitle = "Intensity";
        }
        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            FrameworkElement element = container as FrameworkElement;
            IAligmentArgs    args    = item as IAligmentArgs;

            ScanCurveGroup scg = null;

            if (args != null)
            {
                scg = args.Scg;
            }

            if (scg != null)
            {
                if (scg.Count == 0 || scg[0].GetType() == typeof(ScanCurve2D))
                {
                    return((DataTemplate)element.TryFindResource("TemplateChart2D"));
                }
                else
                {
                    return((DataTemplate)element.TryFindResource("TemplateChart3D"));
                }
            }
            else
            {
                return(null);
            }
        }
Esempio n. 4
0
        public CentralAlignArgs() : base()
        {
            ScanCurve  = new ScanCurve();
            ScanCurve2 = new ScanCurve();
            ScanCurveGroup.Add(ScanCurve);
            ScanCurveGroup.Add(ScanCurve2);
            ScanCurveGroup.Add(ScanCurve.FittingCurve);
            ScanCurveGroup.Add(ScanCurve2.FittingCurve);
            ScanCurveGroup.Add(ScanCurve.MaxPowerConstantLine);
            ScanCurveGroup.Add(ScanCurve2.MaxPowerConstantLine);

            AxisXTitle = "Position";
            AxisYTitle = "Intensity";

            Properties.Add(new Property("Instrument"));
            Properties.Add(new Property("Instrument2"));
            Properties.Add(new Property("MoveSpeed"));

            Properties.Add(new Property("Axis"));
            Properties.Add(new Property("HorizonalInterval"));
            Properties.Add(new Property("HorizonalRange"));
            Properties.Add(new Property("Axis2"));
            Properties.Add(new Property("VerticalInterval"));
            Properties.Add(new Property("VerticalRange"));
        }
 public CenterAligmentArgs()
 {
     ArgsName = GetType().Name;
     Scg      = new ScanCurveGroup()
     {
         new ScanCurve2D()
         {
             DisplayName = "曲线1"
         }
     };
 }
        public BlindSearchArgs()
        {
            Scg = new ScanCurveGroup();
            Scg.Add(new ScanCurve3D()
            {
                DisplayName = "曲面0"
            });

            ArgsName = GetType().Name;
            X        = "X";
            Y        = "Y";
            RangeX   = 0;
            RangeY   = 0;
            Interval = 0;
            Speed    = 0;
        }
Esempio n. 7
0
        public SnakeRouteScanArgs() : base()
        {
            ScanCurve = new ScanCurve3D();
            ScanCurveGroup.Add(ScanCurve);

            AxisXTitle = "Horizontal";
            AxisYTitle = "Verical";
            AxisZTitle = "Intensity";

            Properties.Add(new Property("Instrument"));
            Properties.Add(new Property("Axis"));
            Properties.Add(new Property("AxisRestriction"));
            Properties.Add(new Property("Axis2"));
            Properties.Add(new Property("Axis2Restriction"));
            Properties.Add(new Property("ScanInterval"));
            Properties.Add(new Property("MoveSpeed"));
        }