private StraightConveyorInfo NewStraightInfo(PickDoubleLiftInfo info) { StraightConveyorInfo straightInfo = new StraightConveyorInfo(); straightInfo.Length = 1.5f; //straightInfo.Speed = info.speed; straightInfo.thickness = 0.05f; straightInfo.color = Color.DarkGray; straightInfo.conveyorWidth = CaseConveyorWidth._500mm; return(straightInfo); }
public PickDoubleLift(PickDoubleLiftInfo info) : base(info) { pickDoubleLiftInfo = info; liftConveyor = new StraightConveyor(NewStraightInfo(info)); Add(liftConveyor); liftConveyor.ConveyorWidth = CaseConveyorWidth._500mm; liftConveyor.StartFixPoint.Visible = false; liftConveyor.EndFixPoint.Visible = false; liftConveyor.arrow.Visible = false; liftConveyor.LocalPosition = new Microsoft.DirectX.Vector3(liftConveyor.LocalPosition.X - 0.375f, liftConveyor.LocalPosition.Y + 0.5f, liftConveyor.LocalPosition.Z); liftConveyor.TransportSection.Route.Motor.Stop(); feed = TransportSection.Route.InsertActionPoint(0.375f); lower1 = TransportSection.Route.InsertActionPoint(1.125f); lower2 = TransportSection.Route.InsertActionPoint(1.875f); end = TransportSection.Route.InsertActionPoint(Length); upper1 = liftConveyor.TransportSection.Route.InsertActionPoint(0.375f); upper2 = liftConveyor.TransportSection.Route.InsertActionPoint(1.125f); feed.OnEnter += Feed_OnEnter; lower1.OnEnter += Lower1_OnEnter; lower2.OnEnter += Lower2_OnEnter; upper1.OnEnter += Upper1_OnEnter; upper2.OnEnter += Upper2_OnEnter; end.OnEnter += End_OnEnter; feed.Visible = true; lower1.Visible = true; lower2.Visible = true; upper1.Visible = true; upper2.Visible = true; OnNextRouteStatusAvailableChanged += PickDoubleLift_OnNextRouteStatusAvailableChanged; }