Ejemplo n.º 1
0
        private void setNodes()
        {
            this.nodes = new TopologyMapNode[26];
            int i = 0;

            nodes[i++] = new TopologyMapNode((double)116.362118, (double)39.966811);
            nodes[i++] = new TopologyMapNode((double)116.363688, (double)39.970119);
            nodes[i++] = new TopologyMapNode((double)116.362763, (double)39.969897);
            nodes[i++] = new TopologyMapNode((double)116.363708, (double)39.969545);
            nodes[i++] = new TopologyMapNode((double)116.363762, (double)39.969006);
            nodes[i++] = new TopologyMapNode((double)116.362846, (double)39.968957);
            nodes[i++] = new TopologyMapNode((double)116.362028, (double)39.968943);
            nodes[i++] = new TopologyMapNode((double)116.363796, (double)39.968463);
            nodes[i++] = new TopologyMapNode((double)116.366904, (double)39.970357);
            nodes[i++] = new TopologyMapNode((double)116.365253, (double)39.970284);
            nodes[i++] = new TopologyMapNode((double)116.366942, (double)39.969531);
            nodes[i++] = new TopologyMapNode((double)116.36528, (double)39.969469);
            nodes[i++] = new TopologyMapNode((double)116.366906, (double)39.968854);
            nodes[i++] = new TopologyMapNode((double)116.365316, (double)39.968812);
            nodes[i++] = new TopologyMapNode((double)116.362046, (double)39.967997);
            nodes[i++] = new TopologyMapNode((double)116.363825, (double)39.968052);
            nodes[i++] = new TopologyMapNode((double)116.363852, (double)39.966493);
            nodes[i++] = new TopologyMapNode((double)116.363888, (double)39.965871);
            nodes[i++] = new TopologyMapNode((double)116.365954, (double)39.966023);
            nodes[i++] = new TopologyMapNode((double)116.365936, (double)39.967419);
            nodes[i++] = new TopologyMapNode((double)116.3653, (double)39.968156);
            nodes[i++] = new TopologyMapNode((double)116.362255, (double)39.965899); //21
            nodes[i++] = new TopologyMapNode((double)116.362174, (double)39.966389); //22
            nodes[i++] = new TopologyMapNode((double)116.365309, (double)39.967419); //23
            nodes[i++] = new TopologyMapNode((double)116.365929, (double)39.967972); //24
            nodes[i++] = new TopologyMapNode((double)116.365318, (double)39.967841); //25
        }
Ejemplo n.º 2
0
        private void setNodes()
        {
            this.nodes = new TopologyMapNode[26];
            int i = 0;

            nodes[i++] = new TopologyMapNode((double)116.362118, (double)39.966811);
            nodes[i++] = new TopologyMapNode((double)116.363688, (double)39.970119);
            nodes[i++] = new TopologyMapNode((double)116.362763, (double)39.969897);
            nodes[i++] = new TopologyMapNode((double)116.363708, (double)39.969545);
            nodes[i++] = new TopologyMapNode((double)116.363762, (double)39.969006);
            nodes[i++] = new TopologyMapNode((double)116.362846, (double)39.968957);
            nodes[i++] = new TopologyMapNode((double)116.362028, (double)39.968943);
            nodes[i++] = new TopologyMapNode((double)116.363796, (double)39.968463);
            nodes[i++] = new TopologyMapNode((double)116.366904, (double)39.970357);
            nodes[i++] = new TopologyMapNode((double)116.365253, (double)39.970284);
            nodes[i++] = new TopologyMapNode((double)116.366942, (double)39.969531);
            nodes[i++] = new TopologyMapNode((double)116.36528, (double)39.969469);
            nodes[i++] = new TopologyMapNode((double)116.366906, (double)39.968854);
            nodes[i++] = new TopologyMapNode((double)116.365316, (double)39.968812);
            nodes[i++] = new TopologyMapNode((double)116.362046, (double)39.967997);
            nodes[i++] = new TopologyMapNode((double)116.363825, (double)39.968052);
            nodes[i++] = new TopologyMapNode((double)116.363852, (double)39.966493);
            nodes[i++] = new TopologyMapNode((double)116.363888, (double)39.965871);
            nodes[i++] = new TopologyMapNode((double)116.365954, (double)39.966023);
            nodes[i++] = new TopologyMapNode((double)116.365936, (double)39.967419);
            nodes[i++] = new TopologyMapNode((double)116.3653, (double)39.968156);
            nodes[i++] = new TopologyMapNode((double)116.362255, (double)39.965899); //21
            nodes[i++] = new TopologyMapNode((double)116.362174, (double)39.966389); //22
            nodes[i++] = new TopologyMapNode((double)116.365309, (double)39.967419); //23
            nodes[i++] = new TopologyMapNode((double)116.365929, (double)39.967972); //24
            nodes[i++] = new TopologyMapNode((double)116.365318, (double)39.967841); //25

            setEdges(0, 14);
            setEdges(1, 2);
            setEdges(1, 3);
            setEdges(1, 9);
            setEdges(2, 5);
            setEdges(3, 4);
            setEdges(4, 7);
            setEdges(4, 5);
            setEdges(4, 13);
            setEdges(5, 6);
            setEdges(6, 14);
            setEdges(7, 15);
            setEdges(8, 9);
            setEdges(8, 10);
            setEdges(9, 11);
            setEdges(10, 11);
            setEdges(10, 12);
            setEdges(11, 13);
            setEdges(12, 13);
            setEdges(13, 20);
            setEdges(14, 15);
            setEdges(15, 16);
            setEdges(15, 20);
            setEdges(16, 17);
            setEdges(18, 24);
            setEdges(21, 22);
            setEdges(21, 17);
            setEdges(0, 22);
            setEdges(16, 22);
            setEdges(20, 23);
            setEdges(19, 23);
            setEdges(19, 24);
            setEdges(24, 25);
            setEdges(23, 25);
            setEdges(20, 25);
        }