Microscopic Traffic Simulator

- Main Page
- Packages
- Classes
- Files

- File List

CanvasMover.cs
Go to the documentation of this file.
1 using Microscopic_Traffic_Simulator.Renderers;
2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using System.Threading.Tasks;
7 using System.Windows;
8
9 namespace Microscopic_Traffic_Simulator.Views.MainWindowView
10 {
14 class CanvasMover
15 {
19 private List<VisualCanvasRenderer> renderers;
20
25 internal CanvasMover(List<VisualCanvasRenderer> renderers)
26 {
27 this.renderers = renderers;
28 }
29
33 internal void ResetLastMousePositionToRenderersForMovingCanvas()
34 {
35 renderers.ForEach(i => i.ResetCanvasMove());
36 }
37
42 internal void SetLastMousePositionToRenderersForMovingCanvas(Point currentMouseLocationOnCanvas)
43 {
44 renderers.ForEach(i => i.PushNewMouseLocationOfCanvasMove(currentMouseLocationOnCanvas));
45 }
46 }
47 }
System
Microscopic_Traffic_Simulator.Views.MainWindowView.CanvasMover
Actions related to moving with canvas.
Definition: CanvasMover.cs:14
Microscopic_Traffic_Simulator
Definition: App.xaml.cs:12
Microscopic_Traffic_Simulator.Renderers
Definition: BezierCurveGeometryCreator.cs:5