Exemple #1
0
        public FrmLayerConfig(LayerConfigModel layerConfig) : this()
        {
            this.Model = mvvmContext1.GetViewModel <LayerConfigModel>();
            CopyUtil.CopyModel(this.Model, layerConfig ?? DefaultParaHelper.GetDefaultLayerConfigModel());
            this.InitializeBindings();
            this.InitializePointMoveCutParaPage();
            var monitor = new UnitMonitor(this.tPageLayerGlobal, () => this.Model.RaisePropertiesChanged());

            monitor.Listen();
        }
Exemple #2
0
        public FrmLayerConfig(LayerConfigModel layerConfig, List <int> layers) : this()
        {
            this.Model  = mvvmContext1.GetViewModel <LayerConfigModel>();
            this.layers = layers;
            CopyUtil.CopyModel(this.Model, layerConfig ?? DefaultParaHelper.GetDefaultLayerConfigModel());
            this.InitializeBindings();
            this.InitializeTabPages(layers);
            this.UcLayer_OnPathRecoolingChanged(false, "冷却参数");
            this.UcLayer_OnEvaporationFilmChanged(false, "蒸发参数");
            var monitor = new UnitMonitor(this.tPageLayerGlobal, () => this.Model.RaisePropertiesChanged());

            monitor.Listen();
        }
        public static LayerConfigModel GetDefaultLayerConfigModel()
        {
            var para = new LayerConfigModel
            {
                EmptyMoveSpeed             = 200,
                EmptyMoveSpeedX            = 200,
                EmptyMoveSpeedY            = 200,
                EmptyMoveAcceleratedSpeed  = 2000,
                EmptyMoveAcceleratedSpeedX = 2000,
                EmptyMoveAcceleratedSpeedY = 2000,
                CheckEdgeSpeed             = 150,
                ProcessAcceleratedSpeed    = 2000,
                CurveControlPrecision      = 0.05,
                CornerControlPrecision     = 0.1,
                DotBurstPulseFrequency     = 5000,
                DotBurstPeakPower          = 100,
                DefalutAirPressure         = 4,
                FirstOpenAirDelay          = 200,
                ExchangeAirDelay           = 500,
                CoolingDotDelay            = 1000,
                PauseBackspaceDistance     = 2,
                FollowMaxHeight            = 8,
                IsFrogStyleLift            = true,
                UnLiftMaxEmptyMoveLength   = 10,
                UnitTimeType        = UnitTimeTypes.Millisecond,
                UnitSpeedType       = UnitSpeedTypes.Millimeter_Second,
                UnitAcceleratedType = UnitAcceleratedTypes.MillimeterPerSecondSquared,
                UnitPressureType    = UnitPressureTypes.BAR,
                LayerCooling        = GetDefaultLayerCoolingModel(),
                LayerEvaporate      = GetDefaultLayerEvaporateModel(),
                PointMoveCut        = GetDefaultPointMoveModel()
            };

            for (int i = 0; i < 16; i++)
            {
                para.LayerCrafts[i + 1] = GetDefaultLayerCraftModel();
            }

            return(para);
        }