Beispiel #1
0
        public ShiftNetwork(ArbiterRoadNetwork roads, RoadDisplay roadDisplay)
        {
            InitializeComponent();

            this.roads   = roads;
            this.display = roadDisplay;
        }
 public IntersectionToolbox(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed)
 {
     this.arn = arn;
     this.rd = rd;
     this.ed = ed;
     InitializeComponent();
 }
Beispiel #3
0
 public SparsePartitionToolbox(Editor editor, RoadDisplay display)
 {
     InitializeComponent();
     this.Mode    = SparseToolboxMode.None;
     this.Editor  = editor;
     this.Display = display;
 }
        public ShiftNetwork(ArbiterRoadNetwork roads, RoadDisplay roadDisplay)
        {
            InitializeComponent();

            this.roads = roads;
            this.display = roadDisplay;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="arn"></param>
        /// <param name="rd"></param>
        /// <param name="ed"></param>
        public ZoneTool(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed)
        {
            // set helpers we can access
            this.arn = arn;
            this.rd = rd;
            this.ed = ed;

            // helpers to wrap intersections for polygons
            this.WrappingHelpers = new List<Coordinates>();

            // create toolbox
            zt = new ZoneToolbox(this);
            zt.Show();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="arn"></param>
        /// <param name="rd"></param>
        /// <param name="ed"></param>
        public IntersectionPulloutTool(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed, bool show)
        {
            // set helpers we can access
            this.arn = arn;
            this.rd = rd;
            this.ed = ed;

            // helpers to wrap intersections for polygons
            this.WrappingHelpers = new List<Coordinates>();

            // create toolbox
            if (show)
            {
                it = new IntersectionToolbox(arn, rd, ed);
                it.Show();
            }
        }