コード例 #1
0
        public ShiftNetwork(ArbiterRoadNetwork roads, RoadDisplay roadDisplay)
        {
            InitializeComponent();

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

            this.roads = roads;
            this.display = roadDisplay;
        }
コード例 #5
0
        /// <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();
        }
コード例 #6
0
        /// <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();
            }
        }