This diff has been collapsed as it changes many lines, (600 lines changed) Show them Hide them | |||||
@@ -0,0 +1,600 | |||||
|
1 | nan 2367273.000 1124463.250 605334.062 949495.438 558631.250 171724.562 97278.945 54197.648 14615.454 25975.436 115463.398 231692.016 260595.812 223407.406 141419.109 116846.844 99756.195 70274.383 46652.840 42645.891 61115.137 60539.559 48677.336 35179.809 23402.457 28590.951 29292.633 26239.006 25935.523 22649.926 16662.158 | |||
|
2 | nan 2422577.750 1131101.250 538548.938 925961.812 552279.938 201756.094 146998.859 60744.926 26670.064 30229.688 114544.547 244329.453 250743.203 195465.156 155628.562 116313.969 109107.953 81568.977 49208.387 49123.578 48385.910 37940.684 35995.691 37733.352 22095.961 33350.590 20205.867 21844.482 25246.188 27523.301 23830.967 | |||
|
3 | nan 2463700.250 1351991.500 520161.812 973399.938 555940.188 217292.094 100582.242 41614.551 40203.160 58969.812 96075.602 199354.641 260084.156 186499.375 124606.531 111169.383 102743.648 70549.508 57165.324 59018.402 41213.109 24721.998 39055.105 42080.016 30442.988 26745.469 23520.963 29016.867 23870.287 24103.113 20700.203 | |||
|
4 | nan 2525074.250 1413553.125 548721.438 942125.812 607173.875 242373.438 117053.055 60627.488 29120.523 32499.312 90196.445 148000.094 211521.953 184655.391 143882.203 93185.336 78552.055 58333.375 46191.062 33037.734 51874.797 43149.953 37301.945 38333.441 31303.502 33153.031 21325.572 19964.238 25682.100 19152.139 23458.359 | |||
|
5 | nan 2256211.500 1396373.750 584572.438 914332.938 628669.250 284402.750 118993.977 55335.125 22608.523 29873.318 85919.820 197937.406 259558.609 206938.109 151471.266 112563.352 95499.898 66763.344 52830.340 40706.859 35360.574 39490.473 42995.105 52022.559 43016.137 21589.270 31638.844 15280.637 27225.270 12852.585 22268.885 | |||
|
6 | nan 2405211.000 1432198.875 544279.562 912487.250 706930.438 269372.656 108567.617 51159.422 28009.086 20051.049 55950.590 192534.766 195718.312 173830.141 144043.078 125908.453 83549.227 67479.445 60376.773 48679.613 45474.648 20795.836 24972.039 30030.117 34988.414 20921.781 25183.045 29420.176 26815.398 25763.857 17020.131 | |||
|
7 | nan 2318568.250 1567757.250 608594.875 992330.938 693040.562 310568.062 119458.617 47365.938 35133.293 24635.949 71419.047 207065.234 290855.219 176470.859 151914.703 97923.008 99805.102 62659.039 51589.121 41729.508 31524.467 39487.160 34734.809 33717.527 37701.434 24549.520 17815.551 13179.841 24073.557 19829.027 36924.484 | |||
|
8 | nan 2327883.250 1572264.375 610527.938 968564.062 791135.188 358055.969 142583.219 63569.664 33017.059 14079.334 57818.074 164144.984 185229.859 178662.172 156333.562 104715.805 88329.055 54839.387 40609.562 43743.148 42431.379 35861.516 32950.168 40340.934 28266.838 34442.566 22405.891 18101.344 26492.033 16408.705 16102.952 | |||
|
9 | nan 2231563.000 1639660.750 696082.500 944114.625 792134.250 347232.281 148897.234 50644.941 26591.674 16286.129 41177.512 141648.578 232960.594 204804.656 147097.484 115821.648 76131.633 58264.449 77683.078 32322.037 37370.508 37030.266 33612.258 47882.461 28412.627 23246.445 19791.266 12173.932 17617.225 12615.890 19133.607 | |||
|
10 | nan 2237112.250 1446951.875 724860.938 908101.625 847380.812 384326.125 157451.812 73753.234 42102.324 25361.717 54202.523 151112.438 232353.484 180309.344 146179.719 112911.695 109887.500 79440.945 64896.801 46046.090 31311.324 41887.688 24814.389 22435.221 34634.441 24328.338 12601.593 11115.796 21145.986 16977.076 16069.781 | |||
|
11 | nan 2159640.250 1589956.500 760490.438 807664.438 768661.938 313351.062 136850.375 98390.750 32265.908 17538.477 26507.055 133801.469 177507.719 187623.812 162101.641 110703.180 103625.898 60705.047 74318.766 56540.109 38750.941 36644.391 28552.994 36025.586 19701.732 28855.850 23144.195 19804.105 18178.246 14807.034 16815.023 | |||
|
12 | nan 2088978.750 1437443.625 724145.562 814043.062 833867.062 350415.469 170360.844 77882.633 35495.254 18179.232 42373.383 140690.984 220115.266 170086.266 175287.859 117389.617 65121.488 54672.863 78444.805 46972.031 25359.113 30545.744 31449.664 28412.107 23713.402 19369.727 25859.174 23923.148 18024.461 20907.219 21803.945 | |||
|
13 | nan 1947685.125 1352270.500 716528.250 894990.062 829693.250 426800.500 197640.766 77934.781 31005.869 13779.767 47375.934 131878.562 170386.953 152312.188 148965.250 123847.117 80954.461 52315.516 35012.031 47600.023 31517.824 32652.574 24890.906 26924.424 38454.730 14819.140 14980.423 14661.859 9975.334 15040.319 12264.437 | |||
|
14 | nan 1951270.500 1424481.250 761638.500 934648.250 805357.188 443148.875 161547.109 88709.109 37203.680 32421.707 56489.562 131096.922 210154.188 150494.016 106466.969 113051.883 73493.898 73594.312 76671.781 50510.301 42503.020 19808.977 31741.037 30205.256 26793.908 28125.650 17339.848 30193.131 8638.891 14795.328 11283.676 | |||
|
15 | nan 2218344.000 1614095.500 831611.000 843168.188 832652.062 411670.531 179459.359 81452.359 37734.859 29475.264 38281.664 136801.766 206073.141 191655.406 121239.156 101949.656 73000.430 71836.672 54534.016 44514.641 28209.119 30890.314 25771.389 35960.984 37785.215 25666.492 23101.289 12478.665 24115.119 13066.941 14634.816 | |||
|
16 | nan 1888798.500 1430126.875 910922.375 759764.438 802868.062 401356.469 156704.109 80444.125 38276.734 21807.863 48174.785 94984.656 198263.109 206447.609 133511.906 128630.398 55506.527 93960.219 50203.309 47357.766 38264.840 33174.387 31130.676 21668.291 26576.844 26522.375 18213.303 22411.740 17420.910 23092.359 10520.488 | |||
|
17 | nan 1878304.125 1296965.500 700479.500 827198.812 859147.938 446786.094 233487.250 106249.547 34124.078 31919.861 29350.576 84830.289 166102.156 196453.562 117701.406 110752.547 87182.383 71165.367 60178.621 49356.766 31360.986 25331.938 24063.180 40553.402 17266.227 42173.262 15084.624 23788.234 6634.067 8008.962 14223.770 | |||
|
18 | nan 2036296.000 1309512.000 738226.812 840537.625 913745.438 431757.312 224089.188 97181.148 37837.254 26289.770 25962.439 64587.750 178398.188 170375.547 106879.281 95621.969 95147.031 56260.316 50603.047 45526.738 37819.141 25305.607 19695.299 29592.656 25785.867 15180.081 16812.549 26756.914 12253.069 23936.506 10124.329 | |||
|
19 | nan 2005232.750 1355763.500 748488.375 911421.188 890152.562 476476.906 205125.234 103422.469 34255.434 29684.711 27854.436 73527.445 159400.859 165075.438 122931.898 105524.703 92661.031 76121.367 50911.289 39446.539 29036.900 36910.426 27837.670 21292.658 30648.443 19791.234 19161.865 18446.109 11623.621 8061.365 3364.245 | |||
|
20 | nan 2036248.750 1370985.625 829171.375 730216.562 976354.375 557984.375 238805.297 95531.219 31057.805 38493.445 31578.594 47120.652 104800.922 168727.688 147900.062 89470.297 63947.375 65061.828 72320.586 35839.340 28895.689 26382.344 30662.248 29974.545 19590.422 19819.441 12521.182 17222.852 7776.023 11080.270 16582.514 | |||
|
21 | nan 1854826.875 1336922.625 800885.062 819455.938 968533.625 521668.625 247728.344 98644.781 60611.996 21196.701 18155.830 73271.000 142955.859 153612.062 117850.406 112156.625 80905.781 60848.375 41312.777 43233.309 31006.674 28532.492 21826.930 26991.844 11220.285 25021.289 21211.561 17817.154 9836.011 14883.497 15601.438 | |||
|
22 | nan 1913749.250 1252928.375 854204.062 660047.125 1031203.438 522602.094 272209.938 125648.367 68952.547 25226.744 19401.455 85712.070 122085.281 150276.234 118788.047 83855.672 65243.059 59840.309 65289.852 61555.723 27539.939 23650.867 14536.597 28425.154 35375.547 19150.861 19722.529 15070.343 8143.148 39029.262 16940.652 | |||
|
23 | nan 1961721.125 1282066.125 794605.000 794347.438 986607.375 571705.250 240067.766 121068.281 45813.977 29688.264 26368.355 54516.039 115209.227 171925.594 109822.367 65253.246 77325.570 45254.805 52105.164 42991.051 43470.422 22109.107 27165.832 21737.471 19535.383 14398.723 29151.586 24774.406 10486.038 19413.561 9462.326 | |||
|
24 | nan 1908573.500 1356527.500 878851.750 863427.250 1008319.188 629594.062 252074.703 135531.516 36853.406 25874.908 18688.555 40288.230 98873.758 126258.656 124231.250 90237.742 77347.406 86330.250 43028.629 30422.818 39314.688 24006.238 32966.477 15309.988 19564.002 16297.312 23406.477 8547.728 12683.457 6446.491 12545.426 | |||
|
25 | nan 2022319.500 1328720.125 825504.750 747311.562 985132.750 566903.625 293692.469 142736.312 66756.844 51536.062 34507.391 37106.605 85987.406 130377.250 95744.375 76714.789 81354.625 58968.824 45261.746 43389.703 30571.119 34791.738 26257.748 33332.422 15052.472 19137.594 21306.227 21353.195 13727.316 14326.437 22678.461 | |||
|
26 | nan 1992378.125 1356892.375 882226.625 905021.000 959093.625 630375.250 300734.469 141096.812 70775.719 41677.387 13422.943 46524.848 95842.617 117292.523 140609.641 79756.281 86269.695 73219.141 37123.824 26810.105 28594.436 24233.926 20455.518 20350.182 25284.031 16066.415 13230.562 14007.919 9645.735 9532.373 13682.887 | |||
|
27 | nan 1889643.875 1286280.500 881985.000 718755.688 965112.375 585206.062 271437.531 151977.734 67986.883 65873.469 18681.619 48765.223 83418.430 120027.977 85750.180 82817.078 80260.078 57450.340 53618.223 42440.953 27252.732 30284.207 33588.078 20248.152 21940.961 20897.961 18447.576 13734.146 13207.247 17154.826 13234.104 | |||
|
28 | nan 1961231.500 1304677.875 940278.000 824689.625 973146.188 617536.438 278786.781 136880.344 74938.133 21368.258 37145.113 28025.137 92087.031 137325.188 101454.898 80916.938 65363.078 49138.559 40796.191 35042.746 33751.758 13158.266 31686.342 15138.844 17452.182 14919.113 6783.307 19261.158 19251.404 19797.434 11587.604 | |||
|
29 | nan 1793520.000 1277192.500 980381.375 941661.625 1055635.875 592191.875 287281.688 135660.422 67149.156 43800.453 19609.238 50904.637 99462.656 122615.727 114060.945 95618.578 91147.016 66326.258 46485.734 35069.797 28491.920 28898.582 29738.273 28331.236 25764.320 12488.241 18649.711 6260.947 9051.464 2893.012 5939.744 | |||
|
30 | nan 2019399.250 1335581.750 906105.625 917968.375 1051092.125 670490.188 301860.375 145778.391 65762.570 29588.670 33545.277 47920.090 86076.023 113316.547 122335.406 71488.188 59548.859 44726.418 61063.453 43911.301 33318.047 28760.613 24533.250 18836.180 17893.373 11529.969 38593.691 5286.197 12237.934 8776.556 12552.207 | |||
|
31 | nan 2157296.000 1459212.875 929084.750 853437.438 951457.375 658414.688 291697.938 134565.797 40535.121 26402.775 33461.605 64090.188 96931.375 123649.078 107828.531 112001.969 74695.469 63299.062 64488.875 35457.062 36000.039 39197.746 34412.797 29639.201 31635.332 20806.389 19678.496 19309.898 29129.051 31413.930 14691.844 | |||
|
32 | nan 2043905.875 1407164.500 962280.250 841953.562 960359.000 662083.875 288672.219 157999.938 40284.059 44864.766 15934.362 57477.059 121449.672 91880.562 103493.375 68781.461 88219.094 67103.492 81965.125 59654.090 42916.160 62845.578 26969.107 40484.426 38701.152 30115.189 19346.131 31233.811 22956.711 12391.587 10027.432 | |||
|
33 | nan 1960438.125 1352008.500 928001.750 774466.375 1049215.000 613558.375 371048.625 153682.031 46066.840 33166.160 14508.171 49806.234 97588.172 118534.242 102386.180 65005.527 76633.555 92296.195 61475.477 60122.879 38488.512 33916.781 33919.703 38187.641 28888.570 23910.662 35598.176 32803.574 50541.566 23638.666 19201.344 | |||
|
34 | nan 2001427.250 1389642.250 949657.812 850322.375 1011181.188 704181.938 337808.719 130352.820 70868.094 34681.141 28426.586 42587.184 81877.805 78676.664 131175.938 71125.133 62512.922 60339.023 57112.648 39730.949 57522.203 53100.648 40704.719 45553.047 49263.660 28629.818 34607.312 24042.600 15877.534 21799.084 13800.713 | |||
|
35 | nan 2123296.250 1282430.500 1032341.812 864813.812 1025054.375 750304.562 377625.281 148277.516 66633.000 39631.016 34378.234 52976.891 49237.816 125649.508 140337.766 69401.133 51066.449 59519.066 45796.562 45053.438 41309.176 48717.227 24782.773 19769.445 28877.408 25720.523 27297.799 34363.613 26393.164 18009.750 10347.437 | |||
|
36 | nan 1966103.625 1356617.500 889828.750 816012.938 1007507.438 749116.562 385872.781 151962.953 95136.695 33120.859 12025.038 53240.902 58415.688 118644.273 95972.648 101605.883 30924.631 33245.500 36916.062 59871.078 31536.701 37216.414 32376.936 44200.090 32726.768 33428.887 24159.207 24300.332 21302.139 23009.287 11092.485 | |||
|
37 | nan 2026956.000 1499082.875 1023654.812 857667.375 1069121.125 671992.062 353538.125 182597.859 92581.086 16913.598 33457.348 47884.703 90415.070 104327.094 74123.055 68694.633 61443.062 50572.641 36504.203 38414.367 46986.734 38750.941 42599.188 31855.811 37463.656 25800.787 22094.160 29513.832 27318.744 23781.598 13789.834 | |||
|
38 | nan 2020679.250 1304119.375 993476.750 870372.812 1011484.188 688236.562 364046.531 157770.766 64627.066 35993.176 27665.148 51793.016 93993.227 110193.031 97171.250 69880.195 60886.648 69949.180 53123.766 32551.900 48025.164 53612.891 35373.121 39259.184 34458.027 27251.586 24048.414 24023.449 23333.793 9557.129 11401.827 | |||
|
39 | nan 2089778.375 1470628.875 998781.562 931868.188 926446.625 740756.938 436657.125 178754.266 68426.633 46010.609 40936.473 58174.859 50120.664 116484.898 108493.172 59425.289 63958.715 40220.027 43297.039 33243.996 54927.840 44205.125 36967.938 41365.305 18532.121 18704.355 34165.008 30458.342 30908.502 16338.566 10798.084 | |||
|
40 | nan 1928284.000 1361050.000 993765.000 875096.562 828665.375 799489.188 382332.000 181673.609 81898.898 40122.941 41135.395 40776.012 68722.578 90948.617 104257.898 72040.492 51552.949 35830.684 26355.439 45886.703 23431.752 36319.609 50188.359 25956.211 30001.654 21305.299 23210.611 26287.162 34091.551 32026.994 9418.091 | |||
|
41 | nan 2053886.125 1329425.125 1034424.938 768720.938 918037.812 784851.625 448262.281 177481.641 75076.445 46571.246 29062.283 61109.922 73259.594 89151.875 94885.648 72959.781 59880.750 46335.496 41518.309 30213.738 35320.785 22079.275 18391.738 22359.117 12899.137 18648.826 9617.816 13159.619 22532.781 10049.246 10707.566 | |||
|
42 | nan 1886924.125 1462093.875 971070.562 836705.938 846619.812 764999.062 448326.125 186449.297 93786.062 44330.414 55613.734 40314.246 55257.965 96437.383 128734.867 85408.914 54846.402 39619.410 42811.215 33769.289 33272.496 31525.314 29469.867 20585.877 19942.305 19547.641 17854.795 20291.520 20854.508 9562.719 9295.973 | |||
|
43 | nan 1937009.625 1391639.875 996952.438 846049.000 909661.812 870804.750 427000.406 144342.672 90840.016 43229.797 31542.324 34369.895 70377.594 82415.102 79435.375 78728.695 42335.125 42685.629 66457.812 19183.484 28225.398 40696.859 31923.514 33515.223 30852.230 28933.000 24836.695 29131.852 19074.434 21523.764 19276.008 | |||
|
44 | nan 1925796.375 1499349.500 930307.000 775772.562 914125.750 726969.438 397452.781 204917.438 112678.469 39743.211 46962.441 47465.336 56183.148 71338.133 85033.094 79313.828 66496.414 60878.723 62416.004 58371.785 54981.812 30454.799 33105.453 31699.549 23994.439 30178.770 23974.586 21449.828 12610.879 13031.241 19201.523 | |||
|
45 | nan 1993081.875 1445510.750 933125.062 784652.250 964650.938 713359.562 442746.469 178987.188 76384.469 51981.441 31350.352 26742.242 85503.586 77370.820 98977.102 48708.574 44815.125 67203.711 58973.465 55835.875 41607.824 42186.543 57157.590 46899.953 23983.301 20787.916 31260.180 19487.400 24943.248 27727.164 13860.851 | |||
|
46 | nan 1929036.750 1527957.125 1028152.812 848805.062 854584.625 779955.188 433243.781 156023.672 70210.617 43480.047 32081.293 29788.502 45326.340 92618.617 87333.805 67865.133 73528.367 35145.113 26916.568 27997.471 17806.248 21615.395 25823.457 16229.006 21505.250 10279.625 3853.153 18154.326 20732.799 12852.230 18722.654 | |||
|
47 | nan 2003110.875 1402431.125 885685.188 868478.062 897656.938 770370.438 445684.969 209169.344 74135.617 40261.301 36820.508 33048.707 62005.441 82824.945 78002.359 108336.570 60012.598 32139.188 24682.656 27350.180 16597.664 21628.596 18539.020 15535.837 22927.312 18372.623 19716.768 10550.970 20262.740 13944.943 17752.451 | |||
|
48 | nan 2026987.500 1446152.125 884275.750 874416.938 900398.562 723227.438 479688.031 213662.938 110109.570 54926.441 12451.358 29729.682 73726.680 106440.750 66711.219 65506.586 65109.453 45699.012 42340.520 36561.277 28383.906 16875.143 10157.482 8939.509 24875.963 18916.146 17074.939 12633.675 11241.134 13350.156 10972.732 | |||
|
49 | nan 1980893.125 1434583.125 898213.438 775990.188 870349.938 807592.438 455821.500 225586.312 74302.789 47827.953 25828.574 28872.943 71727.969 95976.703 111625.406 91445.094 68692.695 47304.289 50055.871 36013.883 21832.932 26026.969 28358.701 15982.234 9723.867 18387.143 25026.742 13480.347 14532.816 3605.021 11083.049 | |||
|
50 | nan 1952296.000 1462476.250 978493.062 894112.188 920463.438 713905.375 485713.906 220533.094 72606.773 64742.363 28465.588 49493.441 57908.027 61853.766 86063.781 45757.363 72353.273 46105.430 33252.492 18462.133 27338.025 28513.898 26821.373 26059.963 11010.688 21141.420 16362.781 17853.998 26131.793 8137.598 11822.960 | |||
|
51 | nan 1825903.625 1420257.250 849505.938 779326.562 843900.062 768747.250 461757.531 212248.109 98618.633 51402.848 26182.055 48274.523 70524.688 127185.406 124576.750 70646.570 63906.461 49209.809 39234.215 45112.934 34283.289 18009.104 27680.264 20175.779 28179.824 25706.020 16564.279 33182.105 9401.891 11207.892 15319.368 | |||
|
52 | nan 1847602.375 1568724.750 926388.000 807855.562 891227.562 740886.125 413326.812 183543.672 106627.797 49381.164 39398.156 47840.715 68718.078 72517.148 93529.773 74212.094 56616.789 42338.629 36107.613 20682.018 39272.816 17461.092 10977.689 12796.465 18014.924 12885.075 10951.532 11047.954 7375.930 17242.664 11011.046 | |||
|
53 | nan 1846332.375 1522968.625 864770.438 836462.812 834484.625 792368.625 416279.469 268493.281 85465.570 52531.965 31902.475 31242.977 74649.328 99891.922 107701.977 50344.227 51536.387 44833.871 45431.238 30363.344 19929.688 16330.931 9397.693 10491.346 11206.929 17329.285 16819.668 17348.461 11985.531 9650.864 9006.053 | |||
|
54 | nan 1887623.625 1510570.875 1033199.438 686350.000 737604.938 724395.000 521800.625 268605.219 84169.508 52504.453 43685.453 29419.904 33000.797 96778.305 67826.234 59666.199 67560.805 43445.422 32180.068 25613.936 19370.312 20822.025 30252.855 25796.070 8183.030 15748.412 6075.366 11960.419 14227.703 8565.939 5399.175 | |||
|
55 | nan 1846647.500 1670000.375 989315.938 825167.750 804169.812 749907.500 436180.312 237979.188 98494.102 60731.902 41267.875 25998.182 42794.039 75166.797 91411.180 74139.531 68714.281 33390.586 29208.268 17536.996 24011.836 21537.367 24181.742 16832.529 23184.367 18245.398 18685.238 10132.159 9220.987 8683.858 12131.124 | |||
|
56 | nan 1918737.250 1522895.875 986108.938 762971.938 902689.375 818800.812 448675.594 249095.234 110073.867 51308.004 26310.176 46322.531 38297.117 99495.695 94190.055 74639.469 65877.203 46540.762 26573.023 26392.475 19045.814 17261.492 21653.217 28520.283 8938.194 15934.843 18790.154 48203.949 13188.028 15168.572 7852.000 | |||
|
57 | nan 1752037.625 1501434.375 959113.562 768704.812 798402.625 717478.250 440198.969 252691.109 124620.219 55411.215 23578.846 53116.738 58418.691 88971.273 75648.008 78710.047 65321.164 31729.125 37962.020 20163.277 27708.695 30029.551 32685.887 12286.750 18418.268 27172.877 24466.221 15517.746 16328.490 8841.533 7362.631 | |||
|
58 | nan 1853869.500 1533616.000 1015161.562 696079.312 854556.562 803073.375 519110.969 210199.594 107556.594 76839.070 40644.410 29833.676 72197.227 63259.164 79583.555 69878.469 68661.422 53074.285 39226.816 29317.686 24022.154 39343.285 13326.835 25847.682 23076.330 13750.506 19084.602 14783.751 22179.217 9970.032 10911.473 | |||
|
59 | nan 1810484.500 1659155.625 943847.938 649853.375 778350.562 690730.312 474651.469 255689.516 114513.367 48321.371 37315.891 39284.258 45988.352 107773.547 77281.805 64312.188 47340.316 51651.160 37854.703 32841.113 25488.773 23438.547 19802.520 14774.606 18773.457 16238.347 10918.835 16156.931 13045.521 10127.652 12697.145 | |||
|
60 | nan 1638367.875 1652006.125 1022965.812 736401.250 732758.500 619981.562 554643.000 245718.859 122064.719 43168.707 42714.125 33249.785 83622.320 78410.844 55059.516 73200.680 56603.137 45806.383 35949.461 23366.441 37070.816 22382.324 23828.861 18165.398 13534.340 9616.490 17176.652 12179.053 4410.424 15408.446 10484.301 | |||
|
61 | nan 1677436.125 1657593.125 1159197.875 695630.188 793709.625 729582.000 515382.594 246432.406 87122.859 51506.125 26099.125 28030.107 22108.182 48444.234 59061.051 72371.500 52185.574 38161.402 32258.225 31493.914 30753.689 24767.344 33248.594 29654.232 17870.277 22405.867 23944.676 26569.682 12193.749 7841.388 14434.412 | |||
|
62 | nan 1515689.375 1648216.750 1246238.625 797450.562 703197.750 724627.125 594344.750 308760.531 77316.086 42533.879 16166.118 10039.837 5491.377 16335.496 21674.799 42883.551 31350.533 52142.191 31303.752 33781.359 22370.049 22046.840 27316.400 28116.674 22504.301 20268.418 18074.305 26046.900 38023.535 22924.025 39135.688 | |||
|
63 | nan 1554406.500 1717581.500 1167712.625 779271.750 754884.688 681493.250 572837.188 342902.656 122814.672 37595.023 16877.609 16536.311 1297.936 5682.823 7222.178 2435.430 13837.054 7937.786 14005.575 8746.640 28344.312 30153.781 50700.496 40193.582 45341.117 55171.660 58088.922 60833.074 95713.781 69413.781 82878.367 | |||
|
64 | nan 1600948.875 1659736.000 1131049.250 675721.562 684622.250 666073.562 589692.562 312468.438 158182.516 48920.441 25622.158 2500.781 6306.678 4933.032 5832.843 10935.240 3646.790 11651.818 14225.194 11725.039 12081.334 18318.492 22124.352 18830.014 23223.170 37166.984 34438.613 77802.477 69955.992 83406.875 116148.758 | |||
|
65 | nan 1473290.000 1733282.375 1149439.125 742847.938 746355.188 752270.750 547945.000 292180.844 105888.930 37107.590 14688.881 7731.734 14475.272 14826.769 15969.866 26825.494 35356.016 29245.619 30573.748 28541.199 47265.871 38110.801 29374.213 32491.332 18463.102 18703.785 19536.221 31984.051 19483.076 33380.789 5836.036 | |||
|
66 | nan 1318765.125 1640408.500 1251877.875 719958.188 643632.688 584201.562 563681.375 255261.047 103413.297 30554.148 15173.281 7665.527 7388.036 13332.840 20160.619 52117.273 55914.574 42508.660 23582.520 20986.830 33351.645 28818.662 15927.169 26522.742 34012.480 18029.264 26008.801 44594.016 33683.770 32171.400 29981.986 | |||
|
67 | nan 1044845.250 1516997.625 1253120.750 726083.062 655790.938 713210.750 507463.031 305704.969 118862.773 42076.754 14435.497 9229.783 15260.975 18530.676 25454.387 15869.725 30238.174 49710.609 31375.199 18407.045 48295.023 22971.283 33564.801 32237.336 29929.924 26201.314 24785.414 38241.758 42197.250 40183.922 27001.248 | |||
|
68 | nan 1030252.812 1423476.750 1299638.500 724140.375 606194.688 599558.688 449309.125 267891.719 135065.828 22726.189 7212.905 15484.138 8245.324 4978.947 6816.420 3786.178 13529.726 17785.965 8023.780 4384.377 10303.590 20899.961 15772.278 12711.803 20957.074 13310.303 28129.414 22839.123 15891.098 21432.102 27924.205 | |||
|
69 | nan 876732.250 1458354.500 1179068.875 742961.312 509954.188 492147.594 512597.125 357395.969 130325.523 43644.742 24428.350 5813.458 5208.080 4451.804 12344.656 18010.287 23648.066 14541.524 12560.281 28706.219 24855.613 28048.875 36709.527 27481.932 40881.852 35999.578 53711.352 64292.434 76186.438 103831.625 101412.023 | |||
|
70 | nan 811526.375 1304184.125 1195976.500 753904.125 495109.094 555249.062 591749.562 303389.375 126939.328 34943.672 8529.920 13396.322 17823.625 13166.885 17932.564 23238.811 43423.957 38967.074 27976.564 29025.654 21656.467 17657.182 25236.875 20517.459 23255.449 18506.029 12514.043 21332.705 10260.397 10071.277 12987.348 | |||
|
71 | nan 683545.250 1165994.500 1185156.375 720375.125 611296.438 549998.062 444017.219 245003.688 129381.742 55977.789 27607.404 26664.764 34731.387 35647.211 44259.496 57599.652 39635.242 34658.246 37243.320 29508.318 22565.619 22903.029 30454.393 31744.230 14840.612 9487.935 6025.867 1930.676 9331.771 6104.003 10413.471 | |||
|
72 | nan 619791.562 1118914.000 1298263.625 722172.938 428026.625 527011.250 448183.531 299495.406 105420.594 52356.902 25421.963 22641.029 31505.721 29896.324 60414.516 61837.602 40829.848 38393.145 12468.190 18674.508 24376.326 20116.773 4788.952 18150.170 8054.593 23924.830 24876.721 14347.098 13439.095 14773.171 2826.904 | |||
|
73 | nan 639682.688 1068305.500 1143019.125 681035.062 458077.125 563283.938 425312.312 284330.438 107004.328 68885.727 35447.051 35816.590 25616.268 33958.367 35916.262 34912.867 41465.676 30270.143 29596.195 24966.967 23069.383 24322.570 13439.581 23636.133 22800.223 16116.162 11581.355 15795.741 3454.571 8510.837 12066.845 | |||
|
74 | nan 610667.375 981463.250 1178371.125 757790.688 436890.812 504035.688 411689.312 287728.969 136989.094 43251.527 23542.521 10938.085 20223.752 25356.861 40532.547 34655.441 37529.535 44900.156 32006.221 31993.758 19915.643 17568.232 13480.000 18078.904 16829.873 19211.977 15298.278 8321.124 5468.084 17725.258 10315.735 | |||
|
75 | nan 599676.562 976263.375 1304130.500 803263.188 504591.406 487526.969 386078.375 286156.281 134613.109 50262.000 21807.814 6219.871 7382.472 27318.145 54445.199 41912.258 31414.387 50847.816 38324.707 39411.207 28501.643 13691.078 19439.943 12495.129 11518.583 14132.446 11453.465 11121.075 10073.313 8175.742 5778.964 | |||
|
76 | nan 619113.938 956931.375 1177842.250 783858.062 476859.875 424738.688 456799.875 299898.969 143229.391 57188.188 26728.719 27770.398 18616.221 26798.131 44051.527 51849.074 34313.098 35656.387 20607.896 21112.674 15427.568 12496.301 20025.939 16196.531 13684.233 22513.359 17597.053 16619.156 6409.066 12624.656 11591.966 | |||
|
77 | nan 662062.875 975570.750 1142196.875 753644.562 544187.750 505756.188 456846.188 275406.219 159450.406 49687.828 41124.496 20230.768 15698.702 19948.549 31686.592 56765.965 21180.727 30573.625 28493.500 27959.438 21045.326 12572.241 34141.227 13104.146 9935.963 21787.764 23206.949 4873.439 10140.228 7130.906 7584.705 | |||
|
78 | nan 664770.562 890039.750 1264976.875 882228.750 533644.562 470065.688 469364.375 242171.094 176537.141 79230.062 28004.625 6297.970 18546.133 20955.895 29365.752 73810.008 60707.547 34373.391 27762.061 34620.695 31668.188 13560.845 14377.662 16241.932 11790.332 13433.246 10834.726 12007.037 24825.406 17280.105 13298.254 | |||
|
79 | nan 656703.938 931430.438 1353822.250 998405.250 548524.062 490364.312 445123.812 307599.125 159970.312 51069.676 21269.264 8667.284 16481.111 6826.874 21683.836 23049.389 75815.430 47559.688 21689.326 36223.883 33034.109 31655.658 28693.168 22017.951 14933.903 18737.289 13039.810 10784.212 6227.836 5271.357 25889.898 | |||
|
80 | nan 670495.312 1007752.812 1212480.125 931306.938 600269.938 514291.000 449235.875 323095.188 173010.047 73254.484 30858.857 14350.388 7646.188 4864.473 8719.038 15456.403 16727.600 18173.289 10418.240 32966.949 22000.564 41174.633 26149.080 8864.894 20063.709 9557.312 22589.691 28609.764 18136.320 9418.954 24450.398 | |||
|
81 | nan 675088.062 807560.438 1100621.875 1081659.875 628874.375 459157.375 422154.500 315317.281 150679.844 88532.523 33365.320 15302.327 6513.050 1448.063 10536.957 14173.345 11951.138 5491.798 25140.445 32712.924 16993.498 29995.262 21471.076 30570.162 30468.201 40878.488 64904.973 49547.809 46561.816 54752.973 75208.523 | |||
|
82 | nan 723371.062 784055.375 1279996.000 1029103.438 531069.438 422702.375 450252.969 278747.125 199229.438 71857.648 21295.264 15207.944 5014.372 5258.617 11262.480 19784.117 16470.221 22419.787 24730.639 19056.736 19101.232 10989.134 17379.871 10916.880 22444.820 10793.407 11925.983 13052.613 5815.229 6577.487 8942.959 | |||
|
83 | nan 750147.688 786720.438 1180090.875 1020610.375 542666.750 455033.531 424546.125 318848.219 189149.047 90019.906 21009.674 10837.814 4669.566 6334.588 12461.544 30593.592 16251.000 25765.096 29622.342 38618.168 18847.129 20730.586 9174.601 6765.782 5265.804 8632.626 8414.104 14199.382 7900.723 5661.849 4257.960 | |||
|
84 | nan 714524.625 781070.062 1056070.125 1053692.875 666259.312 438523.906 385810.219 361912.500 140177.797 70892.906 31403.227 18942.744 5024.254 0.000 8707.456 24774.701 39866.641 24230.424 12602.879 30263.076 20767.877 15210.497 14094.163 10396.350 24671.000 15535.997 16396.818 5567.657 7561.461 12086.459 6541.355 | |||
|
85 | nan 640444.750 707438.750 1044966.625 984798.438 544429.125 443524.406 399400.312 292091.625 173050.406 73491.773 23748.049 8889.603 9401.926 4811.105 27740.506 23648.076 11720.159 14357.725 30837.580 15041.375 17869.352 19218.012 18934.705 15018.710 20577.420 20710.973 16318.812 8066.795 9303.663 11692.810 9781.730 | |||
|
86 | nan 646131.375 697941.062 933592.750 1014055.750 576940.500 479134.031 362549.688 310362.219 172812.062 70426.961 29318.551 13814.381 4992.495 15109.496 13492.379 30644.580 27165.883 35209.473 36809.500 15781.850 17335.379 18055.820 18185.330 19283.330 8341.803 2755.048 11245.749 14053.781 8137.356 11852.145 4779.338 | |||
|
87 | nan 643117.875 696414.125 795674.625 982717.438 592684.688 388603.719 357634.094 326445.531 142200.719 77046.625 26166.525 11345.194 8817.586 19005.348 15056.663 28081.219 28247.412 25662.258 30584.475 35724.500 16915.898 12381.193 18567.498 6382.614 8669.240 12723.812 4357.511 6350.117 19008.816 12647.988 6669.713 | |||
|
88 | nan 581107.750 598952.188 868566.938 927345.438 612121.438 381229.219 391263.031 306654.781 161896.625 88923.523 23299.611 6457.689 24868.781 15596.645 16499.887 31709.145 31548.748 40275.500 48047.535 18317.391 20281.992 19932.135 15034.657 22193.291 7564.159 10801.997 12704.844 9230.788 6704.186 5140.310 8263.778 | |||
|
89 | nan 672144.188 647294.250 749914.938 880324.000 709905.938 397926.094 312174.969 295567.156 146687.891 90941.188 17719.336 11892.206 14412.163 15903.499 23054.820 20159.064 16729.316 24723.217 28848.908 21670.508 25563.012 5458.541 14785.350 9296.671 8635.215 12147.788 6887.191 13820.707 9931.187 12394.760 12036.421 | |||
|
90 | nan 719998.062 652681.938 826477.000 867928.812 678155.188 461214.906 385055.188 279792.500 198997.984 107967.492 23347.465 4548.156 9875.500 8917.652 9210.327 7847.119 22365.154 23708.111 20367.564 22991.346 14833.428 26900.420 23849.900 16378.044 11683.001 9325.097 7491.114 11580.423 4388.866 3857.141 6061.876 | |||
|
91 | nan 666568.125 639483.562 764811.750 958006.812 726772.062 383040.219 397340.594 245360.016 176647.297 56852.562 14621.153 7772.213 6312.310 3930.235 5496.105 23904.482 12419.128 17847.188 25606.523 42539.754 15159.324 13281.168 14118.662 19949.602 8497.651 6645.403 1921.766 4617.701 4762.292 5598.851 929.997 | |||
|
92 | nan 676545.375 665390.750 662847.562 862922.000 674786.750 342703.219 338087.281 281663.656 172254.938 74851.602 23833.969 5018.013 12475.491 8077.544 7615.957 8468.293 23054.527 20714.584 17049.592 18557.295 13521.193 19934.877 3939.030 16075.578 12647.512 23759.639 8992.324 2627.001 3019.822 11946.040 11144.488 | |||
|
93 | nan 657499.312 718900.750 686485.812 867378.812 645711.250 475331.594 283532.969 301182.938 160663.141 49947.090 28910.014 16601.674 8686.465 6945.967 8915.206 17310.771 14136.441 14978.481 24889.299 15046.243 5557.056 7588.545 9562.616 17514.299 10701.027 10812.483 4088.162 10203.555 10502.578 6672.157 9270.577 | |||
|
94 | nan 577556.750 690200.562 702204.000 805011.562 690713.125 331779.906 308270.625 310352.219 175422.453 77916.570 16407.289 21449.180 8724.655 4442.178 10942.093 18497.480 16904.707 19557.090 25281.193 24345.545 11869.577 17154.311 13001.884 7554.161 14913.137 16055.263 15453.479 3426.527 8170.347 32936.234 10757.819 | |||
|
95 | nan 640441.250 638929.688 727305.938 773376.250 667216.062 382592.188 324309.562 312448.312 222306.094 79041.500 43368.879 11998.369 1972.984 1427.903 6074.490 11445.046 9401.543 7216.881 26477.736 13837.216 27132.523 5284.574 8966.793 6962.212 25849.387 11536.187 9919.290 1516.345 4334.489 12907.400 10286.926 | |||
|
96 | nan 604420.562 586967.250 663735.250 762891.250 651857.312 395072.781 342879.125 316089.438 159695.609 96654.820 23285.889 11483.074 4564.659 4886.536 9703.733 11871.740 7947.903 4103.656 21446.561 18839.697 11882.731 11806.090 26073.443 32220.992 23069.855 16452.031 14672.512 18070.959 15918.848 14478.574 22831.250 | |||
|
97 | nan 603562.062 708505.438 587964.812 720729.250 705897.938 421907.094 283886.812 285267.281 175000.750 83809.430 45264.215 3942.271 1297.937 7489.750 0.000 7906.081 13475.863 17328.191 15985.733 18448.467 18046.732 14183.806 14792.843 20989.727 8818.390 14067.947 4216.148 10346.121 4733.975 2844.856 1887.522 | |||
|
98 | nan 658018.188 710541.938 689335.562 783376.375 623747.438 443516.375 365363.250 288563.625 138634.750 69169.555 41163.215 11453.685 9837.700 6292.379 10267.079 5351.564 11075.733 35348.203 14222.306 17151.508 10981.366 14688.937 17642.928 23570.852 12264.243 11975.851 10466.217 10743.840 5671.364 14155.301 11654.634 | |||
|
99 | nan 648779.875 639027.438 591736.750 750886.438 681407.750 445975.969 335824.969 279510.781 172727.875 99502.367 26613.537 14954.559 8378.885 10083.987 16452.268 23798.887 28813.654 28891.664 15831.843 22140.680 14040.551 20900.623 15465.010 14592.854 4608.536 11649.340 7532.650 12731.624 8375.061 3376.759 4004.706 | |||
|
100 | nan 630297.250 656347.312 616680.062 808790.062 694933.312 435850.969 375994.500 291402.781 194099.688 82923.430 29133.094 3250.943 8305.750 8599.128 6323.943 1878.037 14068.094 10410.393 30847.131 29387.863 23060.854 13992.993 16784.480 20682.744 15811.144 16166.851 14583.749 9743.868 18151.055 4276.015 12256.563 | |||
|
101 | nan 651741.562 728578.875 627965.625 687632.562 656288.250 525223.500 297181.844 265682.125 183712.594 78365.570 38811.902 9652.056 5736.543 11049.991 5511.026 3560.995 2996.748 8092.794 2257.704 3318.117 2124.836 8496.429 2825.708 11298.031 15807.812 18257.066 13787.469 26610.244 16610.627 23883.820 35965.266 | |||
|
102 | nan 636734.250 757409.375 605645.812 755669.750 639350.938 423943.125 314545.969 277082.344 193197.641 82201.586 25809.969 10105.604 9012.421 3174.890 6300.076 0.000 2299.009 10393.010 5128.127 23893.664 18669.979 10516.753 5453.950 19043.002 21737.031 9010.431 24287.682 32182.250 15165.574 27784.627 67715.586 | |||
|
103 | nan 672613.875 736734.438 633151.438 629417.438 623688.062 530866.750 337728.469 228305.516 233814.438 116445.492 36675.078 15058.222 8938.408 4473.424 711.182 3596.513 3518.616 16576.123 9696.595 8322.629 11941.733 11859.709 8431.694 12001.188 18947.389 10492.780 9874.251 12521.088 12172.199 11416.344 12268.251 | |||
|
104 | nan 634990.000 720988.000 627353.062 622451.312 687210.562 508450.469 308878.969 294044.375 230574.688 105611.398 29135.668 15877.815 3957.206 4400.350 1259.726 697.491 8323.440 9038.395 9414.777 15475.838 8680.460 5550.914 9484.836 8446.124 14105.581 9214.566 10548.022 23257.400 7380.398 8909.958 7155.036 | |||
|
105 | nan 656649.438 693478.938 755325.250 680434.438 772256.000 514672.281 301323.469 259507.250 197725.641 98398.805 37299.379 8106.522 1445.115 4933.036 8758.004 5385.524 8130.971 4562.201 10259.420 6186.934 6121.328 620.224 10035.635 17058.016 7242.717 22207.305 21163.600 35196.949 19410.270 24736.283 31435.531 | |||
|
106 | nan 596825.188 683126.688 665868.938 680779.750 686855.250 513884.875 306489.719 211665.547 194426.062 115793.281 46755.262 20659.871 10146.953 1245.609 2392.462 5143.754 3646.793 1339.197 6903.142 5000.054 15667.731 5369.745 23354.842 14895.903 19788.451 22185.779 16646.791 25344.883 44397.691 13677.475 11633.152 | |||
|
107 | nan 648174.938 767518.438 671545.750 614658.250 640561.062 533511.188 353124.219 248337.016 218047.203 134864.141 35438.301 12194.794 7641.933 0.000 2459.369 4957.451 5530.783 3452.692 7513.196 6134.952 4921.864 6922.983 18974.363 20011.738 16742.684 26977.844 32654.744 24933.643 14691.762 28047.779 11653.446 | |||
|
108 | nan 551986.750 693434.625 680661.188 714202.938 633895.312 516363.188 301914.469 273108.781 196291.703 109872.102 40158.730 22989.988 4495.722 7535.665 6300.076 9082.595 0.000 4590.616 0.000 1269.091 7073.234 2729.271 9388.787 8155.758 11715.817 17701.232 20581.953 14449.218 21848.643 16388.701 12930.301 | |||
|
109 | nan 570837.625 732485.438 616297.875 493928.281 706395.625 590394.062 415048.031 279432.344 212351.344 120672.570 57418.773 6611.914 7091.596 6945.967 3829.756 3581.880 0.000 9087.342 6711.359 4403.593 0.000 11570.769 1688.811 8687.439 7060.786 15289.801 9849.548 10171.715 24480.314 11182.915 29649.164 | |||
|
110 | nan 673843.938 712613.125 627565.000 587150.312 599180.375 522042.312 353210.938 232477.656 177331.141 111455.805 45723.051 7276.124 3957.206 6981.362 3697.862 3024.485 4139.109 4739.157 7778.514 9903.141 8787.960 11159.578 14802.965 12917.088 16368.125 13439.609 14741.207 25324.844 11085.944 13409.491 18012.051 | |||
|
111 | nan 675431.188 672638.688 736617.000 665038.125 589164.812 494833.469 338997.375 337979.625 215404.016 78000.125 27775.037 26039.664 1297.937 3159.700 4506.215 6651.100 0.000 3447.550 11999.105 8959.395 10566.916 2706.700 17867.357 9148.527 22663.430 21947.793 8377.801 8975.813 23279.420 9540.324 11983.682 | |||
|
112 | nan 568013.562 711753.750 625215.062 640971.000 587849.875 496284.094 399045.469 278056.031 214556.406 131154.688 49780.000 11166.509 4475.331 703.877 2483.237 7143.508 9503.694 669.599 2207.366 7235.289 3883.674 5342.925 8949.737 1798.321 589.830 8445.129 5100.122 6303.353 6616.415 6213.183 15775.438 | |||
|
113 | nan 568986.938 687753.062 713011.062 588847.938 591439.562 514610.406 384384.312 269166.625 167645.453 124051.055 43269.715 11378.036 2533.969 3227.816 6178.464 1878.037 0.000 0.000 10718.346 9928.585 6741.036 5505.576 13616.293 10210.862 25124.631 11839.555 8393.087 20128.479 4361.633 17414.156 9794.957 | |||
|
114 | nan 720052.938 706111.188 757448.562 640223.875 721293.938 529813.938 350464.969 264093.094 219586.609 107495.125 69970.875 17965.129 6506.021 3696.473 10486.399 6258.545 2363.302 4151.246 4538.193 2831.695 2819.506 5887.539 12473.691 6703.564 15455.300 3701.268 16532.287 2863.367 8644.243 14014.241 12552.865 | |||
|
115 | nan 496189.969 704866.500 668686.062 572462.688 607990.562 548265.750 398741.000 320979.938 170172.156 107079.102 71962.203 35185.691 18302.812 8666.377 7223.061 4835.381 5276.737 5754.214 1128.852 0.000 2756.464 1687.253 5318.847 11955.622 11863.188 2982.665 5044.694 5820.208 14251.568 6714.089 7124.455 | |||
|
116 | nan 620866.812 783042.062 777483.250 673172.438 502182.031 500910.500 431708.219 302472.938 178698.141 113522.703 39585.379 13277.082 14582.234 1245.609 4358.499 5400.157 2342.898 5156.114 7846.126 12018.528 4330.802 4212.784 4778.375 7379.016 7236.933 4472.420 7948.099 8720.301 17125.992 23073.055 16876.164 | |||
|
117 | nan 670931.250 715988.375 715899.125 658813.000 693809.875 557978.500 365408.156 303518.312 216007.000 122379.344 53344.473 17079.305 5709.878 13498.851 0.000 3132.923 2342.898 3418.595 3501.425 0.000 3303.069 3211.854 4157.389 4628.425 6597.999 12122.517 8693.831 4798.369 10986.198 14624.827 15616.605 | |||
|
118 | nan 621441.750 647107.750 745615.688 732515.188 667949.625 624803.062 410975.906 274072.469 183898.234 157299.641 73043.844 23046.344 23910.838 6294.303 3697.862 0.000 8400.800 8069.784 2249.506 1107.072 7542.285 7543.209 609.390 14325.707 1984.226 1129.287 2529.717 968.857 2462.591 20054.836 41525.699 | |||
|
119 | nan 604863.125 578697.812 729725.000 767233.000 626879.625 504539.281 458828.500 262967.469 187438.641 126616.195 76984.195 32369.801 12141.307 7421.635 12805.069 5958.387 7019.089 2315.570 3397.948 2426.850 2124.836 2910.440 3186.781 3116.836 7043.176 12428.875 10706.029 0.000 4500.564 1094.259 11684.065 | |||
|
120 | nan 600955.875 605152.938 770861.375 763643.750 652629.000 619800.688 458258.625 381924.625 240665.859 144065.234 80595.469 45106.086 14285.991 14915.047 5511.026 0.000 6975.657 4533.279 0.000 2206.104 3883.674 5900.036 4157.389 2016.547 10561.244 12801.548 33409.906 88582.758 139414.031 106594.094 98144.148 | |||
|
121 | nan 557635.500 551956.938 650400.062 676626.438 654904.562 545158.562 478832.500 343818.719 208686.484 139802.109 89809.367 44284.766 11174.062 8159.440 2392.462 0.000 4749.540 2266.623 2929.016 4412.272 614.049 3805.312 4331.271 2016.547 9996.952 9881.300 46381.270 88425.422 80574.500 70855.625 75155.961 | |||
|
122 | nan 589461.312 617501.250 762474.812 695329.562 618575.000 508242.906 406193.406 319471.781 195144.641 142392.500 123174.305 39326.551 11174.042 1245.609 4830.598 4752.239 0.000 8636.347 4518.603 3433.869 3875.274 2099.488 1640.820 2055.044 2039.717 3957.234 10722.431 3889.579 10133.010 12977.296 5506.431 | |||
|
123 | nan 580723.500 666344.062 715283.438 648414.500 634291.375 465932.969 422226.312 265849.969 183696.406 158517.000 88124.688 38092.395 16471.381 6888.950 12278.249 8495.039 0.000 3587.186 4518.603 6877.483 0.000 4231.302 5823.831 3703.646 573.415 2008.516 1965.592 2906.599 10537.923 6525.970 4185.261 | |||
|
124 | nan 618608.250 535342.875 643509.125 729180.688 580790.562 558779.250 479741.594 296993.719 208377.656 160509.609 91413.492 20773.883 7123.220 4963.762 3170.551 4811.939 3539.021 5700.125 4518.603 10096.603 1086.646 4185.964 2089.165 4657.713 2574.056 9910.798 2941.250 14384.449 11314.733 17264.023 25651.189 | |||
|
125 | nan 587554.438 560117.562 629765.375 664857.438 612785.062 548751.750 462471.531 302082.031 215158.703 128712.672 137948.078 59229.301 21970.875 15124.344 7223.096 2361.039 3489.065 2266.623 2929.016 5529.934 1118.810 4212.784 0.000 3194.642 11678.415 14855.285 19948.064 25705.688 33154.941 44814.965 46992.266 | |||
|
126 | nan 648193.438 503012.719 639085.312 686347.188 634568.062 513652.375 414901.875 299174.562 204682.562 139613.266 108859.242 58319.375 14953.844 5859.562 2438.136 16110.845 5370.583 1151.972 4644.043 0.000 2237.621 3366.756 0.000 4145.883 573.415 2555.818 5426.682 7626.023 15197.392 12672.494 17727.857 | |||
|
127 | nan 694221.562 525117.750 593773.750 677233.938 658034.062 526623.625 428907.594 300720.562 176152.672 159758.141 99013.320 44443.527 32388.904 2673.513 0.000 5982.428 6516.808 6356.231 656.160 6534.833 6506.606 10662.570 5327.449 10742.515 21676.100 21874.170 9669.490 27297.494 44601.445 44389.348 44474.477 | |||
|
128 | nan 754791.562 517712.906 580447.000 607539.750 671229.250 576796.562 402854.219 390780.469 276399.531 152961.641 98974.195 50379.738 23237.143 12050.790 7313.835 0.000 4706.201 5817.278 10655.872 1894.683 3252.048 1098.612 3098.419 5227.863 7987.189 16331.906 16026.077 30685.732 37887.789 40045.898 44077.035 | |||
|
129 | nan 710882.562 477220.781 536067.875 711364.062 593330.500 553231.812 473519.312 393887.312 223079.453 147883.875 101811.797 43270.219 19635.018 8706.770 5558.142 7149.631 3539.021 0.000 2925.257 625.592 5553.492 8345.995 10024.531 38037.285 48001.754 71222.211 62308.391 94247.742 87260.758 74991.570 157329.734 | |||
|
130 | nan 670030.062 566937.062 541374.438 570309.375 593677.188 578687.250 500716.594 378426.719 240912.688 156025.250 97747.805 69304.344 29423.752 10184.882 3661.647 9525.304 10538.293 1151.972 1162.265 2225.317 4917.539 12638.506 18585.986 24952.318 66902.344 72025.602 60893.887 45103.141 65234.039 77242.156 73376.594 | |||
|
131 | nan 796311.062 565116.938 479977.000 621716.500 578718.562 544876.375 481252.000 408633.219 223074.562 130740.250 65085.566 51279.703 29006.158 6933.435 21421.439 8253.843 5788.074 0.000 4067.931 3332.388 11828.919 6909.972 22815.479 16842.805 35975.707 35535.863 55366.863 85975.742 67331.719 63116.074 66680.211 | |||
|
132 | nan 853686.625 559972.000 522376.000 572120.750 593118.875 590022.438 393769.406 320086.062 306596.281 168814.234 122837.992 57337.703 23356.779 10554.761 0.000 3717.199 9304.253 4519.198 6678.004 3938.768 2184.260 5342.926 2096.779 0.000 8639.930 16826.531 13319.006 23852.117 34945.180 33958.359 40516.453 | |||
|
133 | nan 881607.188 588399.312 588223.562 671747.188 733013.688 587992.500 515715.312 346918.188 272725.969 130875.883 73477.273 25964.332 17605.426 724.027 5623.096 4485.086 1175.719 7070.192 2249.506 4973.086 0.000 2086.476 4178.331 4666.923 589.830 0.000 571.263 0.000 1541.140 2821.198 0.000 | |||
|
134 | nan 800201.812 624925.000 551437.125 561044.188 593953.188 559526.938 489008.625 319906.156 233883.359 179502.250 101655.406 40864.312 6377.781 9950.307 6847.251 697.491 3518.617 9853.470 1766.751 1107.072 2165.401 3166.517 1671.852 3734.170 6197.936 4961.605 11640.230 21459.633 20412.023 17717.906 39190.254 | |||
|
135 | nan 962096.438 601209.438 554030.062 504069.219 618193.625 528956.438 441170.375 328262.812 235089.891 161582.938 103807.242 48852.484 26772.779 9608.906 3615.973 4758.431 4763.937 4582.193 1766.751 4329.586 2797.028 2144.826 6869.964 1031.267 6066.320 2589.323 1921.766 13285.287 6640.463 9315.152 14308.575 | |||
|
136 | nan 833692.000 623058.000 535834.250 549319.438 640051.125 521212.594 489565.781 312694.469 197629.703 155009.844 102384.297 38465.133 19181.377 1282.478 3719.096 4752.239 2299.009 7600.154 6303.615 7684.058 5585.650 4278.883 3111.203 4140.162 5076.562 3529.918 1958.454 1516.345 5712.016 5169.595 7474.775 | |||
|
137 | nan 764070.375 694986.188 449777.094 470926.719 611173.375 510125.188 428348.906 362079.812 254194.938 146672.125 114950.344 46488.117 19203.273 11278.118 10411.107 5928.288 3553.418 0.000 637.899 643.500 3224.735 8451.124 2096.780 599.437 1163.245 5886.021 5534.229 1110.649 9319.457 6533.350 1818.525 | |||
|
138 | nan 865241.812 658884.625 463354.281 449594.875 566936.062 549382.438 485588.000 294651.125 286220.906 143374.891 109666.070 64263.559 22118.047 12499.579 711.182 7872.506 1210.519 1186.070 1800.165 7647.705 2165.401 3339.946 13076.149 2655.697 3980.827 580.807 10710.447 24994.520 9976.874 20075.898 19954.170 | |||
|
139 | nan 910979.812 641367.312 499198.531 423798.281 501184.594 545420.500 422231.469 317646.594 276672.781 184007.047 123478.258 59947.539 36304.691 9412.891 5054.760 0.000 7092.439 3654.768 1162.265 0.000 0.000 4775.916 6798.614 10205.778 6231.961 8189.825 22559.967 32500.199 24593.514 49285.891 38677.676 | |||
|
140 | nan 802534.250 677279.938 542864.812 448730.531 547042.062 531210.438 461497.281 351874.531 249648.859 140886.203 100887.320 51755.961 20169.062 14987.250 3719.096 4826.633 2351.437 6848.817 0.000 5491.454 631.627 0.000 5187.584 4683.606 18497.398 19678.967 15459.551 32186.336 21894.920 26421.268 17979.322 | |||
|
141 | nan 882665.938 757725.688 456667.469 499659.500 561652.688 500721.031 420532.094 379400.938 246169.938 176944.234 92528.219 57643.234 17461.168 13715.940 0.000 4782.401 0.000 1151.972 4456.873 2178.278 1086.646 4198.976 9326.840 4632.562 0.000 5928.450 14198.991 9484.396 18432.531 37957.934 61528.066 | |||
|
142 | nan 855897.062 737379.250 537966.062 504400.312 550446.250 570543.250 453240.125 368497.375 236525.188 139450.562 103523.656 50302.309 32297.125 17701.129 3630.894 0.000 3015.820 3587.187 4006.145 6122.020 631.627 4421.289 7346.918 3086.312 10004.292 7462.783 17977.680 7690.820 9401.244 28386.250 36434.602 | |||
|
143 | nan 927984.812 723380.062 517627.469 426887.406 562204.688 588150.750 484315.906 352215.375 267109.000 167248.047 131562.094 56600.453 34595.574 11507.009 3881.734 5415.687 2982.411 1855.669 6691.803 1107.072 614.049 0.000 4752.025 2016.547 8981.738 4543.197 9771.525 8261.520 15036.896 30301.889 16575.408 | |||
|
144 | nan 840039.938 747267.938 573978.750 483419.531 570679.562 608870.250 440312.875 399520.094 288590.625 162382.172 106160.117 60706.215 17925.820 5760.053 1951.116 4737.607 4676.650 3554.504 2877.293 4472.230 2237.621 4185.964 2659.420 8173.658 4013.703 9089.723 12179.578 8161.782 15646.530 9824.465 15663.449 | |||
|
145 | nan 872424.375 791652.438 530440.062 490617.812 552866.938 596419.562 487266.906 428658.688 366825.250 182662.734 124228.852 50379.598 33406.234 23679.377 1223.511 7825.736 3680.150 2922.174 3974.118 3271.849 8898.407 2702.452 0.000 2655.697 9630.855 7641.354 8797.834 17187.439 21281.846 12162.187 5568.629 | |||
|
146 | nan 902116.562 907326.250 604202.062 466598.312 464029.969 577367.188 552508.938 438186.000 323351.062 248905.547 97339.680 89141.953 34660.059 17727.447 9757.472 7831.594 4280.158 3467.543 0.000 4716.461 614.049 2086.476 7334.980 10766.718 8085.767 12813.735 11627.975 34599.605 34783.090 52930.414 51801.703 | |||
|
147 | nan 771445.188 872488.562 543045.938 475568.219 466438.375 526469.250 515327.625 425585.406 345967.000 209268.250 136709.516 76617.148 31769.711 27909.744 1259.726 4976.864 4236.820 669.599 5647.456 9353.030 13444.230 2144.826 7468.828 5133.384 6214.352 9416.657 17096.051 12633.744 24131.898 25900.844 33776.332 | |||
|
148 | nan 828714.062 897044.188 575745.250 416277.531 401136.219 446089.031 464715.969 476686.406 391432.906 236792.906 140216.312 86308.391 40722.832 27505.180 3706.748 2361.039 4413.519 2338.042 2863.526 3493.104 0.000 6951.015 6742.519 11735.345 18923.062 17770.625 11224.785 9544.165 22722.857 27593.730 19369.961 | |||
|
149 | nan 769295.188 884933.938 612063.125 458538.094 423286.875 492869.531 466600.000 489815.000 387195.469 212473.812 135846.203 102089.094 31694.145 25530.350 8762.152 3626.676 6097.325 0.000 1294.059 1765.432 0.000 6299.260 6162.873 10468.949 13000.418 17824.967 12183.340 30527.842 26095.143 44778.453 23265.252 | |||
|
150 | nan 719110.750 758226.562 723530.250 523549.281 471517.875 461262.531 505995.594 395744.875 341412.594 226026.234 136425.203 81246.352 57208.773 39177.941 15867.728 20835.945 9455.743 14068.012 1162.266 4933.187 11682.874 11535.324 44389.934 86110.617 81971.117 44395.805 66866.398 64043.504 116028.820 195340.859 261105.766 | |||
|
151 | nan 746157.438 957720.250 844237.812 553932.938 459511.781 382648.406 419195.969 414917.281 399651.312 288995.375 168888.734 129857.203 86219.719 31330.637 33232.379 29842.000 21395.139 8020.839 6974.929 1107.072 4474.739 2746.533 8296.585 14433.653 20280.268 28719.432 34617.152 49860.715 39327.152 64349.488 80110.891 | |||
|
152 | nan 715343.562 844355.812 745376.938 547579.875 393054.312 382927.188 337042.844 421919.031 329044.781 286495.250 220398.547 123064.883 109458.023 53248.289 43866.066 25796.988 14283.571 7034.737 6241.885 3271.849 7122.996 7443.220 1688.811 6144.534 11661.480 12002.088 41806.391 32091.342 46876.750 45727.688 58626.684 | |||
|
153 | nan 693371.062 806822.938 746917.375 537554.375 473507.188 350651.281 433018.031 396461.219 317917.812 291694.844 204090.297 131886.406 81577.438 62838.152 24898.217 26202.389 12247.600 4769.471 2196.136 8647.099 4838.112 5244.489 37144.531 42660.914 50948.902 52351.234 60527.004 104922.375 102822.117 187901.109 229704.141 | |||
|
154 | nan 726480.625 871801.625 831070.438 530227.750 433950.406 424700.375 391290.875 387657.875 390878.188 289935.031 225278.938 135922.609 77055.977 50819.203 23911.195 12603.300 5325.311 7036.094 1766.752 3271.849 7114.597 2765.051 8852.084 8336.209 23948.383 42962.152 54645.898 36031.410 50163.773 45557.766 43026.598 | |||
|
155 | nan 784676.250 851260.938 813095.812 600158.438 357129.750 403495.531 435041.500 455325.906 371249.781 281540.406 211530.938 113094.672 101037.133 48912.961 35355.676 18512.262 7585.287 4036.240 4470.639 6102.158 1118.810 3131.719 5774.637 1963.178 9955.985 8749.763 15586.613 24460.367 20344.039 35722.785 32962.211 | |||
|
156 | nan 805165.625 1009893.188 833852.938 558814.750 447079.000 373333.344 432367.812 421008.906 342699.781 300193.531 198516.984 126775.594 91837.453 44735.066 29486.596 17297.545 22230.668 5262.113 0.000 5004.546 4249.705 0.000 2642.461 5326.861 2022.107 6463.567 4970.162 9705.532 12435.949 8909.935 6753.175 | |||
|
157 | nan 918425.750 936635.250 876425.375 627467.312 431822.219 389741.031 349336.031 397210.688 332767.969 264626.125 227115.859 159966.609 106410.922 64243.648 57903.016 48328.613 16823.338 12788.895 8057.146 7970.286 4890.257 12382.729 4170.174 6324.772 9138.031 9856.157 38328.160 17231.062 17630.936 27912.820 26257.008 | |||
|
158 | nan 907989.625 911723.938 878505.938 646558.812 441391.219 391759.781 404449.812 377255.531 320435.031 310518.875 185110.703 120435.508 69451.797 46091.285 41885.168 29422.398 11918.801 12737.594 0.000 12147.837 2851.670 8623.250 7566.202 7149.931 8586.082 21302.098 26319.895 39783.285 41549.602 31785.211 40259.016 | |||
|
159 | nan 916125.250 977378.750 863182.375 687507.312 385859.969 414930.094 401525.594 394876.500 417738.031 285432.094 193955.141 105925.242 91850.688 48206.285 46930.199 40640.219 25310.139 9292.455 4724.102 6136.258 2138.088 6312.272 10916.897 2599.302 4036.318 6545.454 2109.424 8824.688 11910.770 10871.871 10775.973 | |||
|
160 | nan 861404.438 1010105.250 793167.812 707437.750 460710.969 337984.031 374536.375 394806.469 309330.062 260548.797 198510.094 144445.828 77825.344 56091.371 51806.938 31740.838 24827.367 16967.938 11190.379 9578.348 18098.914 21351.307 26272.455 47826.102 38342.996 36315.957 55282.191 65650.984 112014.180 105333.000 98268.148 | |||
|
161 | nan 329960.844 409635.406 458661.188 432011.719 390502.812 335850.594 448710.375 549639.312 785047.438 978758.625 1998075.625 3344193.000 5289928.500 5605319.500 5560264.000 5192447.000 4703186.000 3837637.750 2882478.250 2036112.500 1487727.875 963883.250 719143.188 464359.969 270295.094 170457.281 90298.914 45561.598 40457.316 21238.373 8080.453 | |||
|
162 | nan 645081.375 642395.625 636018.188 595986.438 594224.688 509316.781 376801.719 251699.266 230112.734 195058.797 174642.500 156789.312 131108.328 84432.203 60871.840 46634.590 30515.674 8247.934 17988.277 15509.800 17206.732 17921.639 2126.521 20773.537 11971.184 15219.559 14547.423 10137.945 9054.011 10686.810 3586.105 | |||
|
163 | nan 609261.562 730982.438 697204.938 604530.688 547848.438 433557.375 317675.031 281648.594 231974.312 219431.609 160081.453 182904.016 105150.969 72276.266 55199.625 38175.195 19423.012 21678.314 5989.838 7418.907 7182.474 8473.150 1811.212 9873.384 6002.935 3019.967 1538.161 2892.045 0.000 1516.268 0.000 | |||
|
164 | nan 482872.719 654350.688 732380.312 635881.500 559089.250 422941.969 309276.125 235006.703 239557.703 182295.516 155004.359 153328.031 124785.672 88806.883 57216.160 39705.285 25123.719 15653.172 16974.830 20943.086 48091.598 161049.016 94660.023 20250.693 14524.406 6899.412 0.000 7625.638 8573.862 0.000 8700.204 | |||
|
165 | nan 652528.500 753730.812 720853.438 607353.938 517680.906 464586.781 346712.719 331939.406 281684.719 242289.266 149541.500 121582.305 98149.969 59552.062 39145.641 26215.227 31417.342 11049.012 2422.912 6214.763 11981.050 8523.199 5379.662 7296.729 9745.501 1966.059 555.365 0.000 1870.773 547.130 4228.480 | |||
|
166 | nan 581986.938 619218.188 695720.188 533266.750 522726.406 350296.688 316081.781 222895.047 219343.938 215935.688 199877.438 141207.766 118482.422 71820.102 49687.324 51648.625 14056.638 31294.270 21928.719 20337.498 22882.262 17012.764 14545.329 21457.646 29265.275 33101.535 33746.504 21057.389 23514.203 23783.414 5867.939 | |||
|
167 | nan 568328.938 789769.438 809736.938 636914.438 494130.625 403034.781 326125.281 245222.500 234014.234 226279.156 164662.266 127104.922 70309.883 94229.406 84032.500 61845.539 27116.227 34782.234 14596.828 27674.705 23086.414 11288.802 18966.900 24804.656 26046.436 45318.801 56774.613 67717.586 51976.797 60971.004 53629.922 | |||
|
168 | nan 610739.250 673058.375 751567.375 696950.938 579130.562 434623.188 382083.812 256906.891 207924.906 120576.297 150591.547 149148.766 121539.117 74416.227 44759.383 41318.336 22796.020 26260.648 17809.316 16328.848 20227.891 2768.604 10533.260 7958.933 3131.057 1028.792 0.000 4865.927 4377.153 3114.577 3671.767 | |||
|
169 | nan 602738.500 695466.750 760661.500 673729.562 588659.938 565761.562 377671.906 279189.219 196183.359 157067.188 182319.109 98660.875 94681.672 73107.523 53533.266 58882.289 30195.236 9670.715 7390.930 4767.197 10375.821 8231.344 0.000 6720.249 1044.774 4630.773 3541.604 4968.325 2479.195 3751.492 2783.240 | |||
|
170 | nan 523927.188 570993.312 658142.250 595331.438 522346.812 517852.719 384086.219 324552.938 249114.844 184134.062 135767.062 108970.227 78880.711 81356.875 49338.812 32899.992 18820.818 28396.383 14786.781 5719.726 7240.107 8139.709 5817.375 8390.688 2586.431 1953.874 2550.047 2469.487 2053.450 4213.064 0.000 | |||
|
171 | nan 661068.750 708478.062 649644.625 651707.500 539507.250 492368.000 339089.469 206613.953 245602.953 200100.641 173915.141 141926.094 114495.820 60042.246 64349.254 27023.867 14282.119 33568.961 16989.154 13376.015 5558.402 15512.415 4692.520 6139.213 11210.382 3945.049 2945.638 7856.512 1906.487 1892.054 1887.523 | |||
|
172 | nan 661426.875 699426.062 664836.938 661503.875 542108.250 469059.969 338530.969 289650.875 219728.938 200304.859 167503.938 122586.922 115986.508 59513.816 54576.816 48557.352 15179.077 26252.693 26070.779 14766.269 16731.148 9569.466 2659.420 6154.192 2595.522 3127.719 1921.767 2441.999 956.717 3206.669 929.998 | |||
|
173 | nan 689196.188 601211.562 703228.125 666304.938 568298.250 440329.281 368906.281 271219.312 178890.234 255672.750 194269.891 115699.273 115923.070 95901.727 53992.000 36447.902 17015.770 13961.456 15486.469 15237.082 8147.881 13337.757 10385.290 12864.753 5096.357 3738.102 9867.000 8684.835 2479.195 969.138 6957.161 | |||
|
174 | nan 671435.312 767147.250 681398.375 647008.938 529676.750 447339.688 336840.906 234741.000 280036.875 222018.844 192713.109 128574.180 89063.234 88811.531 56051.727 27348.404 22581.002 12564.610 17363.756 13417.532 14031.447 13602.244 29131.170 13602.303 8415.987 27654.562 17295.031 12123.871 14898.359 11769.570 13180.369 | |||
|
175 | nan 479706.312 610349.688 555283.500 634320.312 545662.500 489958.688 342125.219 249492.094 182291.859 160683.922 223278.594 109794.203 95950.320 62772.641 59195.125 36710.602 29376.307 6223.665 12338.395 12430.204 15673.531 17106.445 16642.748 29941.199 31398.779 44949.520 66874.633 103044.750 102974.617 97952.695 94455.141 | |||
|
176 | nan 506874.281 567607.062 663131.250 611271.750 584031.250 432542.906 486839.812 294458.031 281176.875 152617.906 171980.703 134074.953 118154.656 89587.883 64858.297 40726.199 34846.730 9608.962 24314.023 20022.158 4480.147 6312.273 1079.421 4745.322 4006.334 1563.859 555.365 6770.167 2463.719 5318.738 7428.673 | |||
|
177 | nan 533983.812 571993.062 548378.688 531242.250 479108.406 382187.500 389113.906 272195.531 255286.562 171202.391 81411.336 113037.625 105560.344 89355.406 57342.191 44483.410 36485.785 24836.061 17582.664 17184.236 4917.540 5086.852 5829.243 7310.045 1984.227 10019.676 3953.137 1947.492 2411.401 0.000 4162.580 | |||
|
178 | nan 484680.531 509279.000 554911.562 703844.125 509347.188 433340.594 355095.156 286611.156 202126.547 170941.016 143094.234 117441.844 85747.625 75400.570 60053.434 31106.881 26699.830 10052.118 11881.228 17460.102 8613.793 7410.766 5650.938 9069.296 11059.603 9740.239 18477.363 8960.957 5698.919 13980.626 13738.057 | |||
|
179 | nan 820479.438 856431.625 862968.250 784533.625 641094.438 408414.719 358675.000 195858.500 207469.609 163126.609 168170.984 118177.656 74969.633 61647.324 46831.809 16255.679 18157.176 14408.425 7364.311 17490.961 14368.281 36541.152 63328.402 51005.512 55969.516 37655.184 39400.848 55646.840 77062.961 65020.488 66769.352 | |||
|
180 | nan 690883.438 747950.562 643360.938 653307.688 594514.375 476784.688 387281.375 300087.719 228956.984 160286.859 129774.906 100203.422 83168.125 73016.008 50529.391 14375.382 24122.727 19878.582 13055.402 16289.321 7885.827 4930.692 12334.547 4812.771 5627.806 5471.637 3843.534 563.161 0.000 941.277 4605.917 | |||
|
181 | nan 388779.531 463146.312 436102.031 496659.594 485880.188 413787.594 427186.969 310748.000 324416.469 234028.359 269439.781 186769.375 128581.406 115282.672 87480.969 58810.711 38792.172 30071.623 36249.445 20311.799 17444.170 12975.703 7213.069 4976.345 5822.809 6562.767 2958.307 4798.372 9276.278 531.903 0.000 | |||
|
182 | nan 78260.836 96977.078 98009.281 112698.344 129250.000 153067.016 243909.438 391311.688 859660.000 1609267.250 3248549.500 5293539.500 7223480.500 7533035.000 5942708.500 5456951.000 4732988.500 4420403.500 3565991.750 2646643.500 2035441.625 1343681.625 1016985.750 659906.250 412693.406 249515.062 144706.016 84137.156 47243.016 29580.592 17112.344 | |||
|
183 | nan 426801.375 459576.469 496385.969 486459.094 576986.938 579562.938 487876.625 510396.719 393821.125 370583.656 292906.625 287307.125 218200.984 179323.906 145442.984 127767.844 107328.898 78192.953 64675.465 43330.309 33731.027 20145.305 18784.082 8457.745 2570.016 4936.541 6862.605 0.000 0.000 0.000 0.000 | |||
|
184 | nan 410732.812 430513.781 549324.000 502342.469 493203.781 452127.625 350994.406 322423.469 279020.938 254561.359 242895.641 230535.438 158783.812 97889.305 102939.953 67079.273 42695.238 41260.973 40365.457 51170.336 19056.812 19177.146 16660.590 18216.357 4834.236 6553.628 3382.655 10542.767 4519.146 5368.466 823.258 | |||
|
185 | nan 478534.312 586353.812 624974.562 562060.938 556461.750 522106.625 451801.219 374801.625 328662.375 294080.781 257916.641 220849.734 187193.984 107479.906 87547.633 33669.559 32050.967 38230.109 31145.055 33546.488 18857.318 16757.418 6633.469 11764.204 17228.361 17877.783 12746.672 5863.142 1443.977 4349.600 7405.788 | |||
|
186 | nan 295634.844 506221.781 578562.062 644921.438 615336.438 509028.125 471826.000 489283.469 427734.281 349927.375 281599.281 240832.047 171751.781 221323.766 193900.812 225131.000 163654.953 130592.102 103985.508 80580.062 78280.359 38252.363 19856.201 21778.014 13470.574 1966.060 8759.614 4769.695 2979.173 2861.194 1483.055 | |||
|
187 | nan 416571.125 491746.594 594276.000 545045.688 615518.438 522881.375 480528.812 455745.875 403759.875 417024.281 367340.094 313662.219 387571.219 254822.859 209594.938 150914.234 114500.750 95942.031 59381.250 67759.734 35678.723 23487.477 21815.449 9403.590 5696.429 9872.758 4525.559 3872.719 7554.550 7486.053 4254.908 | |||
|
188 | nan 389479.531 466733.406 481736.781 532667.062 611758.562 563012.062 557476.250 521853.812 526318.938 534340.250 529972.562 386757.906 326612.594 191845.234 162035.734 116497.828 113162.203 82807.781 67053.625 59335.691 59497.426 46293.477 27129.268 32695.443 13817.821 7101.119 10878.484 4405.166 956.718 2383.964 929.998 | |||
|
189 | nan 479429.188 817040.188 856998.750 916593.750 729180.688 559134.438 400349.812 447506.688 314455.531 373624.031 379588.375 294226.250 238033.906 175190.031 152814.516 87287.094 48898.090 55544.816 52423.012 54625.789 65779.875 30660.082 25869.264 24505.602 15036.191 12781.787 11796.113 10498.676 7169.954 9859.735 2240.499 | |||
|
190 | nan 577922.125 707578.062 794521.625 713369.062 666235.438 563157.500 470957.375 423749.500 373915.625 329130.031 338707.375 263162.875 203808.953 113238.031 131397.234 83008.898 71728.906 71107.273 60740.863 54182.789 36854.840 25596.719 25340.426 11460.774 8237.666 9218.667 7927.049 8261.824 3846.182 3681.246 2734.024 | |||
|
191 | nan 88605.242 140386.562 229550.984 275420.812 397687.031 410985.281 435377.500 503751.469 425522.219 299021.344 284046.094 201377.562 260089.312 209634.297 159589.688 128782.477 74608.609 81989.406 67317.844 40500.727 21608.123 6410.011 14527.218 4148.105 11059.231 3982.352 1921.768 1894.512 556.105 2904.388 4208.640 | |||
|
192 | nan 305365.125 413012.031 599945.875 823893.062 890525.938 757426.062 609416.312 505758.906 438449.000 428410.531 342720.281 275552.531 294712.812 208258.234 170792.375 131386.547 135267.859 64612.254 79894.586 43479.422 35800.426 19747.236 7060.810 21742.158 7987.193 4017.033 1011.886 3842.004 1870.773 0.000 0.000 | |||
|
193 | nan 408030.312 548579.812 613044.000 660627.312 894948.938 807223.000 667996.250 494950.812 419406.219 380624.625 329186.562 241948.641 161506.359 141353.281 162091.859 140689.797 88803.203 53752.637 36822.223 28634.814 27966.217 21408.346 21550.754 2645.291 7703.781 5557.929 0.000 1937.715 1906.488 1892.055 0.000 | |||
|
194 | nan 314942.938 418909.812 616128.312 595200.250 605084.000 629391.062 456514.812 397798.875 351432.281 292469.375 320426.938 348670.906 429682.375 468851.875 584726.688 664696.562 781250.062 697986.375 627773.000 425786.969 342586.906 229697.141 150099.734 82041.141 47031.480 28093.742 25587.568 17757.115 10948.152 5977.146 2287.078 | |||
|
195 | nan 548663.750 721115.375 749804.562 979148.812 979681.812 914373.812 688187.375 583450.250 422831.969 354525.844 333845.031 251048.734 215884.359 172866.688 141145.141 115345.633 108498.273 71108.445 93999.414 35528.027 28607.688 24661.180 9781.162 12912.728 10727.359 8977.946 5405.667 3861.358 4320.986 0.000 3308.771 | |||
|
196 | nan 766854.062 932543.562 1009064.062 1006260.000 849515.625 774211.625 649024.125 448692.531 327749.125 255865.203 289488.500 204365.891 177313.891 103796.148 99704.953 100761.555 97756.672 62681.625 47281.684 39701.449 40507.438 36048.027 22773.525 23560.449 8417.767 17802.287 6951.842 3386.166 1923.091 9819.553 1553.308 | |||
|
197 | nan 387099.094 530856.062 557225.875 731600.562 748048.688 699052.562 737705.750 538277.125 565245.312 369880.281 346392.031 325466.656 209805.188 184364.469 155198.719 108190.203 113610.672 96779.672 56059.336 36889.094 21363.018 13685.850 4340.614 6361.566 7035.286 564.644 1011.886 1966.393 2423.069 2821.199 2400.570 | |||
|
198 | nan 379558.625 424473.281 587330.938 625123.062 619244.625 722727.438 675334.688 649446.812 505906.688 450294.281 416244.594 363510.375 305722.719 237327.688 202339.234 196195.750 112068.047 85231.961 37797.668 37801.375 10930.907 14495.543 3111.205 6259.133 4995.568 5911.111 3909.264 0.000 6597.383 0.000 0.000 | |||
|
199 | nan 47523.773 48289.039 80794.047 94264.398 112306.273 199188.016 214175.641 325033.375 657804.750 1397846.125 2507237.750 3847885.500 5164801.000 7184627.500 9810900.000 10695913.000 10053692.000 8036416.500 5547983.000 3757917.750 2469516.500 1467602.125 1024495.438 517207.719 354360.531 157427.297 87726.758 46686.688 42852.160 21129.918 20300.516 | |||
|
200 | nan 369316.000 507402.281 674756.562 807419.250 877020.188 748204.625 609989.312 567523.938 521144.688 421220.469 281621.969 221518.688 173788.812 157543.203 101443.445 67441.781 29821.014 70826.875 35429.398 26646.520 13563.579 29394.939 19964.740 14711.540 23719.160 13524.553 5393.682 4425.660 5707.300 3767.774 1915.051 | |||
|
201 | nan 680355.000 848718.625 939678.938 1015588.938 961089.625 1036200.938 830376.375 751475.562 682992.062 587147.875 528008.375 485533.875 452908.906 344292.188 291234.438 292943.469 239720.438 204054.953 148021.141 130803.953 70897.211 42786.738 42960.035 18201.576 6567.291 6583.394 4463.472 4435.880 6657.070 5268.817 957.526 | |||
|
202 | nan 745757.250 803852.375 966895.062 1067377.000 964035.625 830543.750 766702.750 496991.406 526538.688 436615.000 339261.531 336889.719 333707.188 247309.656 233171.406 211524.484 143392.812 97080.469 61863.949 78344.766 43790.855 23130.635 21973.785 10467.770 4570.660 3964.493 4928.797 1906.327 2426.878 4783.154 2759.865 | |||
|
203 | nan 482361.125 598609.688 570023.938 675093.312 687966.688 677346.500 635640.812 619744.000 522483.781 420164.969 455955.000 488066.312 523454.406 488118.406 379823.375 382093.531 235470.406 213364.188 139588.953 152583.891 66565.023 48789.672 20947.641 17580.914 14662.124 0.000 3108.148 9544.197 1923.091 0.000 957.526 | |||
|
204 | nan 393028.406 548211.688 592752.188 681745.875 691936.500 611201.438 603468.938 450696.875 386095.094 341020.781 313340.125 262828.688 166226.828 157015.188 154611.938 103558.398 91510.992 67209.562 50498.621 29888.295 23221.496 11471.813 8805.368 4117.581 0.000 2965.277 2904.564 6313.557 2879.809 3732.636 525.530 | |||
|
205 | nan 390209.781 484197.188 537140.562 581399.688 634148.312 646031.250 766701.938 805324.562 728412.375 640984.250 535904.750 563259.000 439789.969 257125.250 241542.641 151852.531 137470.016 80595.445 61463.379 42803.863 27193.367 11153.036 11028.873 11319.421 1044.774 2530.704 982.796 547.489 0.000 531.903 0.000 | |||
|
206 | nan 93577.234 142482.234 109061.281 159852.438 211498.656 232608.453 244616.297 357091.875 550142.250 909945.562 1542764.375 2404568.250 3084983.250 4251491.500 5985218.500 7506821.000 8514096.000 7562167.500 5705261.000 4289576.000 3110752.000 2194615.750 1483071.125 1039731.562 627809.000 486717.188 261453.062 142814.094 123820.875 67206.062 31130.225 | |||
|
207 | nan 38746.848 44762.406 80972.898 111266.727 139230.516 208831.109 355048.344 755325.562 1232840.625 2087924.500 3010426.750 5275331.500 9380484.000 13465564.000 14601866.000 12671562.000 9821548.000 6899067.000 5023597.000 3527611.000 2323301.750 1515542.500 1087356.500 731649.938 454916.375 235534.938 135194.484 73239.680 54450.859 28264.346 36238.340 | |||
|
208 | nan 408697.031 586934.875 677270.750 778700.250 771835.562 694546.312 800348.562 649288.000 616226.750 488982.000 427909.031 289397.500 319760.875 244640.297 158951.609 126841.305 64398.051 62283.496 62050.602 33744.934 22344.924 17050.914 13634.220 8596.649 4954.602 11031.322 2546.775 2416.118 4708.880 6500.466 540.574 | |||
|
209 | nan 507388.875 651061.250 835373.812 871372.375 811961.250 731421.250 822924.438 666784.750 650871.312 580362.438 509584.406 413720.875 368374.875 409009.000 396072.469 309194.344 225375.234 187530.406 117366.773 91469.258 53319.074 27871.557 15898.350 22597.080 4626.150 5753.891 3909.265 0.000 8669.871 6146.440 5197.350 | |||
|
210 | nan 411460.719 569188.438 760301.812 795168.188 775449.375 807839.812 638753.875 581094.188 512888.875 503597.969 465210.781 392878.375 367239.344 230244.797 211209.734 148545.734 134696.250 90304.977 51870.676 38771.809 21705.340 25453.113 11612.687 9610.437 5409.788 5973.060 2493.031 31451.732 1882.441 6213.851 0.000 | |||
|
211 | nan 477364.969 628692.938 818613.625 866580.438 772399.625 633639.562 638062.625 459986.531 470111.500 371090.125 283021.750 259116.047 239879.953 155596.375 112899.656 103872.844 64952.539 44613.223 41559.801 46468.133 48424.914 15163.937 17832.117 15947.824 6793.932 4993.285 0.000 0.000 5676.305 6690.477 2787.393 | |||
|
212 | nan 444308.625 598821.500 705146.438 738639.875 728270.688 647459.125 583981.750 476260.812 417704.688 369484.094 380160.031 252788.406 225414.453 159096.609 108060.883 79632.508 49765.578 45774.230 41024.504 25328.480 18913.682 14390.579 20795.865 13461.369 21434.561 6803.446 4520.894 2875.184 3438.245 1994.803 929.998 | |||
|
213 | nan 492698.969 689999.812 750846.750 811712.062 748457.875 855054.250 624139.938 548324.812 597209.125 524070.094 499459.719 442670.281 355712.844 295520.781 228757.516 231705.141 133507.406 73775.758 78290.680 40760.367 22486.703 18963.094 11661.185 4045.673 5670.924 3919.935 3880.223 1930.679 2839.158 3692.642 1818.526 | |||
|
214 | nan 537356.625 642588.312 761776.438 777515.812 720267.750 771830.250 625351.438 565499.125 500953.500 392931.719 391624.375 282883.125 305973.031 224856.906 201566.406 165302.438 119678.750 63092.984 80861.383 41841.953 34640.012 22833.275 12277.712 11228.731 3168.938 8876.388 1011.886 5719.702 2482.383 1875.719 2409.956 | |||
|
215 | nan 374575.812 418403.031 477230.625 493163.219 457105.969 433240.031 484192.219 387887.906 369719.562 365624.375 478124.219 737184.188 967681.812 1127034.000 1067081.250 814409.750 644324.000 560279.000 415279.594 319909.094 152208.938 88471.383 55003.102 55192.723 16959.080 20316.148 9840.552 9842.348 4778.922 8352.554 1765.157 | |||
|
216 | nan 423044.219 580637.875 642461.750 665844.062 703033.625 666412.188 600146.625 479963.875 415668.625 409799.594 354529.219 312195.281 423291.312 357602.719 316877.906 218577.797 165866.516 100000.500 81489.617 51978.312 37783.984 24754.789 31486.055 16933.445 7827.927 6516.595 3501.004 1894.512 0.000 547.130 1818.526 | |||
|
217 | nan 277990.625 425632.875 468105.625 419796.281 411076.594 473971.812 495069.000 662701.562 957683.812 1748601.250 2659543.250 4755764.000 7068243.500 8298051.500 7461339.000 5959275.500 4291221.500 3016027.500 2238893.000 1591903.500 1067861.125 713946.750 476468.500 336418.531 177696.766 130999.031 73960.547 29914.713 36066.000 8516.463 10472.060 | |||
|
218 | nan 218076.766 283617.406 363989.812 354961.531 319330.219 248018.438 293153.938 279589.500 303346.906 453208.875 640070.125 1061494.625 1286866.875 1925580.125 2970281.000 4079418.250 4834368.500 4675099.500 4035673.000 3190392.000 2172283.500 1548750.875 979547.562 679027.000 380375.656 214652.234 158077.609 95098.594 47691.277 20344.414 13175.819 | |||
|
219 | nan 69789.078 132955.750 182873.406 237352.047 268065.969 270802.969 327826.562 544260.062 1037626.625 1880497.500 2860195.500 4510384.000 8050762.000 14054556.000 19006828.000 19090074.000 15666442.000 11320827.000 7870204.500 5400891.000 3456392.250 2209490.500 1515193.125 989580.812 598494.562 297987.625 183984.375 86610.406 36868.246 28476.920 12553.753 | |||
|
220 | nan 570166.562 691672.125 775502.250 899654.750 874190.188 699033.750 667388.500 554355.438 433774.406 416380.219 355344.094 409317.781 396072.500 395499.375 366760.219 336291.594 233504.547 179752.484 120950.227 56575.301 53929.566 51517.578 4735.021 19499.955 13165.293 4066.132 1011.886 1532.019 3793.864 0.000 0.000 | |||
|
221 | nan 109746.492 187173.828 218522.188 200875.953 299429.781 315163.562 258908.250 263342.688 337850.875 355607.281 610768.062 931927.562 1229194.625 1620516.500 1992304.125 2148347.500 2165281.000 1932061.125 1509820.125 1148557.125 836471.625 555004.438 432492.719 294677.125 157610.891 114738.305 74258.344 58105.648 24875.426 30372.977 7872.188 | |||
|
222 | nan 560796.688 825785.250 1028702.750 911633.000 858161.625 754590.750 604343.938 524033.531 488595.812 406446.594 338921.750 441105.094 437778.188 510234.281 553520.312 565424.750 555118.750 475958.594 373571.156 236077.297 190983.297 125266.156 97800.219 47461.352 31297.377 17743.424 12335.731 6027.036 4683.828 0.000 4994.715 | |||
|
223 | nan 334271.781 410400.688 467519.781 568247.000 582776.938 514763.188 384371.969 292639.219 262037.016 326837.219 310379.188 392769.094 474513.000 456601.812 411202.531 421539.906 399384.906 299708.062 244286.109 191502.453 86374.445 67061.367 54374.723 18995.932 26315.658 21252.000 2793.090 6574.358 3881.517 6957.321 5506.461 | |||
|
224 | nan 259059.500 409899.875 469611.969 543510.938 619600.312 558047.438 532212.250 622020.438 788120.438 1271593.750 1962930.000 2571620.250 2986586.000 2521127.000 1513393.250 785355.750 264294.969 136471.000 87303.031 75863.055 36544.988 24467.432 24399.695 6776.667 11831.408 5973.060 1921.768 2108.185 0.000 531.903 2038.681 | |||
|
225 | nan 162335.688 224036.250 265705.031 339787.375 377334.781 501967.875 700919.750 1261963.500 2205556.000 4068537.500 5858782.000 7503592.500 10061556.000 13530951.000 16624205.000 17607006.000 15397175.000 12783407.000 8724477.000 5416374.500 3149752.000 1874906.875 1247673.875 727002.250 519704.969 312244.625 172994.750 87097.023 53628.223 30752.738 13582.894 | |||
|
226 | nan 61641.898 126013.617 162925.641 207433.047 207590.438 182161.766 242639.734 435442.031 790228.438 1538258.375 2570847.750 3835148.750 5633011.500 7029048.500 8744534.000 11843579.000 14800860.000 15995943.000 14116812.000 12057225.000 9519059.000 6915424.500 5144657.000 3547416.750 2266325.000 1504638.875 806970.438 581310.938 284064.125 184989.062 87359.211 | |||
|
227 | nan 122904.930 202222.953 199423.141 317620.500 351609.156 377896.875 442777.500 645861.562 1362430.500 2681398.250 4170512.250 6404601.500 9464898.000 12474410.000 14989985.000 13788668.000 10864316.000 8075830.500 5338935.500 3564755.000 2172257.250 1404236.750 876338.938 605848.688 280913.250 174357.438 112195.273 55253.340 34559.395 21864.582 11432.661 | |||
|
228 | nan 199261.859 322552.875 369503.125 463673.719 552439.562 475761.188 440395.281 355044.250 495030.312 949598.625 1632255.625 2436277.750 2895405.750 3244561.750 2951539.000 2181784.000 1442007.750 957053.812 570215.062 316859.500 158489.672 97638.594 46290.117 41324.117 28163.037 17788.109 6348.925 5332.468 4761.244 1473.181 4594.604 | |||
|
229 | nan 73967.508 123688.352 226797.656 216708.844 230523.000 339426.219 496686.000 1007682.250 2338232.500 4407883.500 7067494.500 11942713.000 18604080.000 23490408.000 24128026.000 21887876.000 15214854.000 9479529.000 5014084.500 2564309.000 1129665.500 539044.312 314424.000 146204.953 64570.961 43333.648 18369.014 10301.646 9338.332 12461.093 1231.252 | |||
|
230 | nan 473476.219 663329.500 818204.250 903934.375 829346.938 857165.250 645245.625 584813.062 442264.000 381052.500 493644.219 702374.750 1025220.188 1326112.875 1337218.875 1184196.125 929307.938 767459.062 472981.812 244139.047 134993.969 94588.500 51674.609 22973.230 20643.336 8779.720 12438.940 5223.094 10930.047 6882.334 4353.573 | |||
|
231 | nan 252416.234 337794.000 589604.688 578639.438 627033.062 542421.750 422940.312 356724.062 330299.250 318183.125 293891.562 332335.344 373916.062 407464.406 383723.406 332036.438 336834.125 215879.812 150928.359 120690.195 62356.910 46143.922 30987.582 23548.934 9656.090 6165.028 20718.760 6282.475 3829.578 3338.619 1012.734 | |||
|
232 | nan 609237.688 837838.938 1148608.875 1288409.125 1230529.625 948440.375 703534.188 518791.188 366792.781 337218.969 283631.375 230670.188 215236.812 133040.891 102496.453 100547.867 100863.828 61020.340 45431.129 17532.373 12255.694 10717.047 9062.902 13304.137 4023.945 3601.952 2970.342 5384.739 2447.116 0.000 1869.382 | |||
|
233 | nan 617325.250 957383.250 1183719.000 1071849.250 1112841.500 927996.062 811295.938 743673.750 530815.000 400197.469 297169.375 291235.594 212244.453 188141.094 165705.938 167104.562 108959.227 118552.508 68794.281 47960.246 37366.629 22429.508 15143.729 5179.373 17149.879 2990.392 6360.536 0.000 2908.127 0.000 0.000 | |||
|
234 | nan 476685.125 736856.625 860677.250 938357.062 971780.812 869861.250 644145.375 617323.375 422730.219 371423.031 271200.719 299169.375 306212.875 260922.547 234762.750 199984.953 143180.438 73866.367 56786.273 36154.672 27984.951 17871.363 29548.980 14337.829 5237.021 7588.233 1975.511 2453.815 2482.382 2383.963 4680.150 | |||
|
235 | nan 527189.562 674113.312 906105.188 1017933.750 946032.750 889951.250 914436.000 768444.750 581195.062 430948.969 339530.219 253469.859 211797.594 199445.703 118822.258 121682.375 97308.703 56187.137 34652.316 49839.562 33087.965 22930.998 11294.827 19302.471 12048.543 2534.682 2945.639 3016.976 2426.878 0.000 5221.875 | |||
|
236 | nan 567046.375 878353.062 1343463.500 1409166.750 1347550.875 989796.812 675280.000 547274.312 365651.781 297906.125 259397.766 192219.844 181959.109 149420.438 160335.859 115782.719 85173.617 77969.625 46953.395 25125.502 20466.627 6542.336 4216.978 10262.116 3759.972 2953.091 3076.323 7669.231 956.718 0.000 4366.542 | |||
|
237 | nan 488541.781 782576.062 1377073.625 1308773.250 1025885.250 844377.812 729273.312 514871.469 405244.500 251970.594 247407.188 227694.188 166304.766 175491.344 121068.203 111088.398 73921.164 73480.180 62954.988 41303.289 26493.957 21913.924 11671.333 10922.603 4051.584 5898.954 4067.880 563.161 7611.062 969.139 540.574 | |||
|
238 | nan 373418.031 675966.375 1043895.000 1287085.625 1199127.875 1043354.375 859496.062 659505.500 502048.594 401063.719 307428.250 337308.844 313799.594 273835.375 237136.562 188240.562 167092.984 78119.328 44837.422 31273.732 32957.414 17894.455 19699.930 13469.438 12599.818 6942.727 3909.263 0.000 3951.367 3364.126 3352.437 | |||
|
239 | nan 494934.375 693770.250 895827.062 1229827.750 1348236.125 1068454.875 733321.125 510042.406 485287.000 342028.969 250428.109 187986.234 125614.703 130962.328 77697.820 63148.977 73937.367 85678.938 64402.559 40497.297 41293.141 39882.871 36161.598 31198.055 19627.986 12776.553 10655.751 3439.146 13598.993 5514.991 3731.063 | |||
|
240 | nan 321397.125 641868.000 1090071.500 1447184.750 1439750.375 1231199.250 834522.812 738199.500 500527.406 534187.562 482214.031 422003.531 391103.719 412529.469 299264.281 239559.312 197013.109 139809.828 106483.922 47419.145 48693.621 30116.207 26112.600 22884.164 3185.352 5626.692 4463.471 4336.511 1541.141 5643.547 929.998 | |||
|
241 | nan 343995.281 428161.188 587670.062 1040995.812 1009064.000 1071980.750 823153.375 528215.000 376052.031 311335.375 321232.812 205599.984 136315.984 109921.727 97958.430 66711.508 64945.734 68779.781 58868.562 48254.562 26036.492 19747.568 24089.824 9822.776 5215.979 5161.307 5920.379 10276.993 4656.561 5136.111 5540.639 | |||
|
242 | nan 458666.500 583654.625 849140.812 885886.562 850769.375 952943.188 785359.812 668595.750 607492.438 431225.594 267646.031 161636.281 103802.898 112670.805 79411.859 76152.797 70088.984 77643.023 55483.629 32665.221 27939.449 36078.293 20208.682 10743.309 10968.706 7063.866 5979.979 3293.164 3848.937 955.286 2810.768 | |||
|
243 | nan 393093.875 585366.000 704454.562 850758.562 882438.750 819135.812 703737.062 585332.750 557949.812 423645.406 335914.875 230254.516 155154.594 99064.797 108240.023 109067.070 81242.383 46440.191 27506.908 22857.529 36224.965 24739.850 23269.252 25855.148 11550.024 16102.612 12994.307 21153.305 15748.858 9740.906 5870.067 | |||
|
244 | nan 416525.594 496825.281 599643.562 659455.000 789146.000 728028.438 644632.750 539932.250 459500.375 365159.344 277450.375 230769.047 161764.094 98809.258 97261.977 84591.695 81179.406 49305.977 42265.023 27006.523 15504.669 32093.205 29774.029 33720.484 17771.795 11339.179 5756.161 4347.938 3470.250 3690.744 1765.156 | |||
|
245 | nan 557113.250 423157.312 534517.562 738596.062 706805.812 660022.812 612055.500 477450.000 379887.531 320456.875 223662.703 171256.359 114157.297 118130.906 57977.047 50732.285 50721.910 45614.621 16298.559 35487.379 41219.906 21485.061 25521.852 15512.534 16160.267 8406.243 3121.311 3789.022 12299.726 1063.807 1869.382 | |||
|
246 | nan 536842.125 577744.375 610648.375 613885.250 700358.938 682858.000 602217.750 486394.125 439038.375 233184.906 223900.250 149730.016 143576.922 77926.867 61983.438 49707.176 52154.734 42639.191 24345.361 23327.121 13882.225 30159.756 35131.086 51330.504 94204.062 86687.906 124041.219 86522.617 66821.516 68171.336 29284.438 | |||
|
247 | nan 680622.250 737964.938 740216.438 760126.250 736742.938 759178.750 589512.500 473306.906 321418.531 288096.500 222471.297 166239.438 147674.953 92217.164 64703.828 61328.590 58648.812 31619.686 32146.676 25996.773 25189.611 15726.110 16113.237 14666.488 13961.156 17836.305 15701.612 14209.510 18374.430 14801.774 19660.564 | |||
|
248 | nan 637070.188 771427.375 749177.938 749047.812 749773.875 791744.438 606179.750 512516.312 405122.406 288576.844 238562.234 185683.219 141943.547 126060.867 66707.992 65863.328 44883.570 34507.941 28684.188 28879.852 30222.508 24916.148 17503.508 19857.420 22698.596 20115.355 19393.102 37482.484 51678.434 27474.357 36326.762 | |||
|
249 | nan 637867.312 653314.688 749969.062 816031.438 784826.750 756348.188 613965.188 499600.812 433667.281 325110.031 284140.219 177613.141 122508.773 110908.570 93643.547 69043.633 42417.062 45005.496 43792.531 36412.602 19461.457 36904.672 36774.875 39951.016 49476.578 76083.164 116306.430 78927.141 82680.398 57172.473 49527.898 | |||
|
250 | nan 804648.250 703204.875 783506.438 766678.625 677926.562 685744.375 668929.562 449545.000 456497.812 339399.812 278593.938 173906.453 118905.406 100064.867 74230.031 24007.064 57721.449 27147.633 50974.066 12835.369 17319.555 30822.074 63052.477 47640.270 39945.652 55484.285 64484.637 78962.070 122607.883 115371.328 89285.656 | |||
|
251 | nan 878624.062 709390.375 801635.625 733421.688 671568.375 601913.062 592017.875 518209.469 383932.375 299102.094 254917.000 192490.438 123990.148 106888.844 100686.750 30113.139 39779.375 39437.387 22295.238 19004.795 22352.037 20566.939 12142.212 16679.896 26878.201 25788.256 9500.669 29273.818 32378.363 26397.074 37370.793 | |||
|
252 | nan 808929.812 852094.812 741176.062 675877.750 714367.250 515880.812 530573.875 425676.219 390536.031 262405.969 228043.438 140818.531 115056.578 83295.859 68740.164 48102.527 24220.830 46857.770 38179.328 53213.875 32305.701 38455.652 44978.234 46825.172 64649.453 77257.195 89714.344 144129.266 142183.594 116673.047 110250.945 | |||
|
253 | nan 954469.438 924214.812 761548.625 670082.125 656187.000 575456.688 435476.625 387391.312 372847.969 277134.344 171855.266 173586.016 148673.312 104079.023 70428.180 60782.191 48201.047 32691.842 37048.711 22345.086 14253.815 22699.336 35662.414 57033.387 66203.180 89775.367 102356.492 113815.117 152798.438 200647.859 167672.609 | |||
|
254 | nan 1106056.125 968736.812 902128.812 608647.250 533021.188 509581.094 465338.625 322600.281 262759.906 253370.234 195559.203 140731.000 98869.492 77026.398 68549.758 48040.648 32239.586 31415.342 82582.320 112893.047 92580.430 105311.531 137557.375 157775.891 125499.875 90280.641 217915.500 338888.781 365807.281 355274.844 332027.438 | |||
|
255 | nan 1001982.000 857967.438 889970.938 724101.438 626882.938 549112.062 531233.062 355179.406 313231.531 207576.484 235995.641 157622.969 114142.930 75164.156 32976.617 31651.406 33105.754 12555.766 28040.861 25947.738 15625.688 26706.338 12030.750 16826.961 20268.949 9340.754 11650.340 9755.533 14137.022 9197.252 5796.223 | |||
|
256 | nan 1219634.500 980517.438 880922.000 788588.375 605405.250 583528.625 502426.594 427400.406 249100.859 257586.438 186135.797 114838.945 99823.133 57590.141 57273.051 58117.703 28486.182 18452.553 17973.004 29079.404 20964.068 15032.338 8902.799 11752.669 19518.939 4368.568 15943.017 11498.628 11917.897 15491.585 14112.546 | |||
|
257 | nan 1397940.125 1185028.250 926166.250 809047.562 661573.438 469776.906 512236.031 388021.219 276370.438 276363.969 210795.500 98296.617 96322.625 53616.941 46383.664 42383.297 32206.648 28075.029 25904.539 15323.881 6039.602 17628.568 13862.372 9663.045 10146.095 3953.578 10028.811 12940.176 9476.132 7008.859 8338.819 | |||
|
258 | nan 1387320.125 1471035.125 1058237.625 817003.750 617091.375 492500.719 475090.531 426340.500 315411.938 220960.359 149236.688 159391.891 79683.867 42776.902 45241.762 30413.793 34301.875 24228.268 17531.305 29441.670 28757.811 25421.225 21052.664 25026.211 26133.051 33188.531 36830.027 34192.441 29500.883 32039.676 18083.434 | |||
|
259 | nan 1532774.500 1611795.500 1090506.875 771578.625 596103.938 540499.625 504348.125 356560.219 333724.812 201727.062 178550.750 135429.250 81686.133 69534.789 34069.621 36297.348 24771.105 33844.652 9587.066 13744.921 11002.118 20209.701 5928.026 5819.918 3626.675 5430.424 9389.441 9696.168 9133.013 8415.878 14101.894 | |||
|
260 | nan 1404801.500 1662617.125 1241779.000 761595.625 691101.938 652034.250 504515.688 391748.625 298104.375 282958.031 162913.531 138284.516 94937.992 79881.203 55495.215 32575.182 22391.873 29810.883 28567.945 15914.395 21261.658 15638.416 33977.402 20326.551 16838.623 28194.895 17238.986 24193.332 19411.387 16885.748 13151.074 | |||
|
261 | nan 1512249.000 1850447.625 1399063.500 781169.000 651463.062 538034.312 502688.531 427614.031 255543.312 158778.016 145441.734 139143.859 79941.547 74914.734 40658.566 44914.906 30063.770 19843.895 26464.436 9607.517 18223.320 7690.399 15114.142 7826.424 16852.936 10964.249 20691.625 15640.290 20978.637 16631.568 7060.760 | |||
|
262 | nan 1373579.875 1697563.500 1386471.625 880391.812 539514.750 559906.188 490410.031 394664.594 315065.188 157321.344 129420.125 94256.070 90061.820 76543.961 63747.516 28219.232 33111.559 31245.076 22265.076 22491.582 24620.102 20047.119 29506.361 24761.943 27155.705 23713.795 21786.508 22183.850 25420.074 21935.033 21333.281 | |||
|
263 | nan 1598209.625 1955271.250 1754371.500 1021733.750 597410.188 575605.562 537576.938 418131.719 284855.688 174942.922 109214.125 101798.227 68402.703 86953.070 37236.668 37449.242 21307.611 27303.693 18748.707 10220.593 21053.320 10059.213 24858.283 21583.080 13803.815 17683.242 23940.781 29594.357 20961.010 18647.406 21328.420 | |||
|
264 | nan 1501992.875 2187798.750 1791672.500 1107464.625 741193.062 504690.094 537206.750 363141.219 270145.625 156050.156 115287.781 116899.523 81282.648 62072.035 47055.559 43688.031 51542.059 41709.340 16675.260 32753.307 22101.725 28058.949 28429.600 13606.419 17337.143 32646.232 21761.553 29611.164 28865.008 20183.402 20492.799 | |||
|
265 | nan 1397115.125 2209492.750 1936222.000 1199219.125 749673.438 574907.438 515652.969 447348.625 311152.969 161270.422 79592.352 100711.031 70891.211 62370.125 69405.445 45458.785 24482.787 32848.457 27044.074 24459.137 28524.674 32809.641 45244.234 23347.883 19098.229 26699.846 25382.557 37179.691 45373.934 32597.443 29398.502 | |||
|
266 | nan 1304387.875 2135144.500 1953861.500 1093536.125 668374.125 491791.625 462207.688 422311.906 307294.500 214056.641 175385.859 158119.875 121005.047 80522.117 56996.348 59503.723 63825.988 25620.076 34302.871 26581.451 21040.361 26932.523 29580.512 27036.613 43253.473 39190.781 29987.494 34266.566 47504.738 39388.566 30279.883 | |||
|
267 | nan 1448674.250 1813902.500 1940127.500 1334484.125 704107.562 534718.750 477869.031 432570.094 307825.375 200749.344 141221.875 147977.031 110227.227 97660.727 58041.352 37367.590 31262.268 18446.795 15841.625 17210.164 2698.768 4614.972 18174.570 7904.357 6160.981 14106.812 25213.770 29371.477 21307.205 21062.623 28364.770 | |||
|
268 | nan 1874438.875 1901802.375 2279600.250 1378911.125 733951.812 549941.438 556335.938 405100.719 302752.469 163424.656 144150.594 158495.234 95443.648 65340.891 44810.297 50762.691 31440.588 31407.686 32172.812 32073.439 22671.639 12648.091 37126.422 27447.988 32860.973 33424.031 32744.488 61698.699 42962.453 51570.875 55455.023 | |||
|
269 | nan 1779331.875 1893302.000 2254604.750 1450478.625 747411.750 632444.625 480155.000 388788.688 300907.375 206463.750 200384.547 140215.359 102974.430 100532.953 69928.125 48488.434 27713.039 12716.228 12598.513 4392.421 8178.764 5640.979 7670.811 12135.296 9199.694 12486.116 17164.916 16991.305 9554.632 11764.368 13809.485 | |||
|
270 | nan 1598349.625 1854432.875 2220033.500 1555920.000 815145.812 557188.688 546775.875 509820.188 275608.781 351025.812 266274.281 178139.969 103257.797 47049.324 30783.037 15255.778 11447.976 5722.573 17186.738 21369.354 22474.049 22298.184 16418.381 25064.814 10636.109 12808.828 13802.801 19519.660 20665.117 16612.529 19311.420 | |||
|
271 | nan 1459702.625 1925545.500 2129080.250 1740908.125 869108.750 607090.438 484822.219 434677.312 359592.719 272811.531 233692.344 185410.062 102052.875 55493.676 32149.174 22269.799 9510.586 7115.894 21953.104 18119.939 19587.523 9736.136 29229.287 23770.961 30249.711 14342.032 31041.217 16849.023 18969.404 23379.133 17515.275 | |||
|
272 | nan 1617910.500 2109086.000 2288436.250 1785899.625 844306.562 638882.250 521561.219 456020.688 457736.281 306271.812 217230.406 153167.312 82380.969 47579.574 27975.033 19347.131 18142.400 46057.949 18029.084 24701.932 18833.170 30539.664 8369.892 26637.881 19682.744 16331.719 15535.281 14314.475 8597.389 18273.064 4605.242 | |||
|
273 | nan 1640235.625 2210042.500 2496727.000 1711109.875 921626.375 704372.812 551583.500 453288.406 473989.188 368439.719 245145.094 107049.023 51915.566 37704.859 27320.293 38708.297 40621.551 37495.734 34151.141 17810.281 25082.418 18221.559 32593.799 17904.910 30334.693 28330.154 14923.251 16677.357 21057.570 10390.385 11553.451 | |||
|
274 | nan 1745358.875 2245066.250 2326935.250 1781322.875 885729.188 738886.750 577368.688 557923.750 421733.781 252789.891 156950.750 70348.930 53061.051 22478.949 63929.887 40338.621 58588.285 67406.484 66372.266 40676.621 45588.023 16384.283 18548.070 32040.846 29062.830 39173.242 16666.113 18293.746 17453.232 13227.452 14930.822 | |||
|
275 | nan 2130667.000 2630968.250 2639281.750 1699487.125 972564.438 764730.250 610209.750 488669.781 413416.906 273313.750 198987.750 117163.398 53919.551 16805.150 27520.580 60660.215 41932.957 49339.965 44663.328 42131.578 76534.930 58679.277 39664.531 41459.391 36643.359 43808.082 47810.777 31566.062 25178.133 22921.215 24931.994 | |||
|
276 | nan 1962460.375 2608406.250 2833022.500 1859235.250 1087960.125 772668.250 640436.062 604654.812 498816.094 250284.000 132097.766 77420.195 57124.961 51169.797 71622.172 58930.664 88872.898 70111.203 55401.984 15946.696 32081.283 38368.457 26216.189 29823.574 24277.898 19064.242 19086.852 23075.066 16336.376 25096.512 13270.649 | |||
|
277 | nan 1984375.625 2687219.000 2933741.750 1772577.875 1049654.875 842269.375 754581.625 659498.375 409656.906 225631.641 100206.078 87370.094 41371.598 82390.641 64584.359 83043.375 78916.086 36882.625 37161.484 36190.113 31135.787 39310.027 29801.049 31501.699 46934.754 22670.162 25457.807 31624.693 19185.189 15579.062 17589.268 | |||
|
278 | nan 1906132.750 2623840.250 2812692.500 1883202.375 1026143.188 906240.938 754391.062 602176.000 382118.625 199545.797 93778.492 86066.430 91707.148 83396.398 112582.156 71776.195 57961.859 41053.742 42279.695 30421.221 21678.100 29515.592 49601.488 33542.211 30048.842 35646.727 25959.654 23179.830 25240.758 28944.717 23399.395 | |||
|
279 | nan 1950959.250 2615714.000 2853267.750 1786667.250 1007196.562 865527.062 811316.000 639944.938 378884.000 196934.594 127492.547 51651.223 94763.578 86166.055 126644.031 47209.754 39870.418 46057.148 37336.273 53531.312 20646.420 42164.895 33549.422 39785.422 48730.703 69338.805 26043.537 28079.143 27891.074 38617.117 14706.978 | |||
|
280 | nan 1806515.625 2445845.750 3056127.750 1853880.375 1177577.125 922563.812 763139.188 514194.125 317699.125 195919.453 121876.430 53601.551 79714.945 87337.156 90290.305 58959.641 38413.441 40861.277 34921.812 42246.359 31321.732 38124.152 36814.672 67988.555 37395.047 30377.557 31219.344 26536.951 27470.711 29440.613 14495.435 | |||
|
281 | nan 1905666.125 2517567.750 2882405.500 1800393.625 980745.250 869347.812 752372.000 607629.938 339279.031 214723.344 104588.047 76236.219 123790.469 115881.945 96405.578 76712.930 60036.977 46812.465 35566.598 26386.867 31942.930 45413.176 54369.238 41904.785 54664.336 33847.590 21101.279 37316.281 37157.871 17150.080 43732.711 | |||
|
282 | nan 1859265.250 2622307.250 2920585.750 1949707.125 1068838.375 1057678.875 851816.812 594013.188 332830.531 212757.594 85915.094 89906.055 101409.594 130875.594 92613.914 41064.496 53275.715 49819.109 37599.223 51718.848 41806.539 47706.965 41478.176 47259.590 52224.973 54500.363 42180.805 26913.908 32125.062 34772.371 28789.912 | |||
|
283 | nan 1898617.125 2579683.750 2906881.000 1800537.250 1103055.875 943727.188 830818.188 561994.062 327761.938 196686.500 73379.508 105239.492 111678.430 104348.320 72678.609 59062.625 44012.676 37293.141 55137.613 35049.543 49374.234 45133.152 47804.688 41409.559 54797.309 34744.660 68384.719 46235.102 29660.369 30811.574 57970.527 | |||
|
284 | nan 1909825.500 2528058.750 2926901.000 1765989.250 1030683.812 931975.562 774608.375 593888.875 306354.469 134856.781 101092.883 66107.641 125442.469 137858.344 77000.844 73411.867 61274.547 49392.859 45994.004 38962.039 40770.848 30264.906 50466.602 35692.484 50568.438 40124.590 44525.922 40185.984 44257.297 33452.949 28903.725 | |||
|
285 | nan 1880190.375 2472342.750 2986270.250 1852753.875 1085000.875 1029477.250 755451.812 500013.188 279548.625 170373.734 112954.945 101335.930 118810.703 130587.758 83159.852 40640.969 40562.672 34953.773 57401.625 45170.762 37080.344 34344.160 43568.609 57255.762 58822.664 43830.172 49153.891 33103.887 35625.770 26827.289 31854.957 | |||
|
286 | nan 1796283.625 2584970.250 3063251.000 1669069.625 1095407.625 956462.250 904329.438 549830.062 281894.719 181780.609 106673.383 122990.680 123471.648 133080.438 72937.688 53033.172 40380.746 47194.418 50651.203 54058.426 45393.453 34648.359 42493.250 30640.389 41578.422 45488.012 44673.285 37042.078 32488.023 26735.301 30550.426 | |||
|
287 | nan 1889218.125 2447991.000 3011114.250 1780666.500 1103202.375 958684.562 902387.062 495092.125 263170.000 143880.516 95807.273 140100.984 154814.672 110882.148 79495.820 64314.527 30524.350 64389.789 39462.918 35047.090 39768.859 35261.000 43516.539 62752.301 43731.160 30179.836 41008.367 53024.262 37045.180 31083.367 39584.516 | |||
|
288 | nan 1844494.125 2325053.000 3031274.750 1646125.125 1141288.750 956660.375 801751.000 541806.188 255860.641 187046.656 87721.039 149182.672 168452.016 143835.641 63827.648 38927.664 49375.863 55324.602 53349.590 54407.152 44802.590 42368.152 48549.223 52273.234 30547.395 38094.828 33815.926 57942.926 42262.410 38029.578 46498.703 | |||
|
289 | nan 1844589.875 2445810.750 2870796.500 1878868.750 1093006.250 1035965.938 918223.562 571201.562 273390.969 181573.766 110131.328 153441.594 154557.016 112647.305 76977.742 35697.793 46383.016 38413.465 45845.453 52553.512 30658.619 52178.598 49448.113 47290.090 43676.660 47422.340 41049.832 54365.359 50135.734 31075.188 32337.176 | |||
|
290 | nan 1800669.125 2326264.000 3044541.250 1741438.500 1192563.625 990561.438 872181.000 531750.500 280501.500 161944.359 99621.719 123153.719 133654.969 84061.133 74531.547 45254.887 77129.508 34115.016 45914.625 64221.012 36002.879 61196.012 40145.715 52948.379 42427.953 48485.051 50876.023 48471.516 37894.156 48724.539 37801.711 | |||
|
291 | nan 1846533.125 2237696.750 3048994.500 1813010.750 1077171.875 1082370.375 758770.125 556032.438 284907.719 199164.703 95946.508 124549.180 130012.406 95945.523 78916.078 48279.590 62767.375 33151.090 37177.828 51555.148 49291.461 48386.336 50200.004 67523.211 54378.277 63873.453 60068.660 40572.418 46855.215 28938.205 25448.850 | |||
|
292 | nan 1815597.625 2188361.000 3054915.250 1841923.500 1160242.875 1051950.125 827477.812 532888.938 259153.406 145528.297 91427.695 119939.445 158975.516 86238.203 69593.977 61280.672 52794.641 44660.547 46490.324 37626.059 73857.062 56633.578 70708.258 58094.777 60291.910 59039.012 37257.777 58412.773 45894.754 43098.762 54330.684 | |||
|
293 | nan 1674132.000 2178583.000 3158455.250 1818415.250 1118511.875 1024794.938 832879.188 443395.969 313066.031 177636.875 100721.805 142748.547 92731.609 89069.766 91933.945 67338.258 58038.688 52005.129 42875.809 68954.305 72505.062 71815.656 56590.711 70338.930 51741.422 65214.828 68490.281 42287.754 51066.262 52864.652 29482.914 | |||
|
294 | nan 1744929.625 2195492.750 2997669.000 1781301.125 1230525.875 1082409.375 833261.812 445388.094 281452.969 192212.266 133598.516 175899.344 117673.367 91926.297 72618.445 56724.688 59902.238 64859.691 85428.102 38367.027 58060.449 63266.227 59553.309 62297.777 65653.820 70083.922 81853.828 47922.703 43861.160 52431.184 44048.797 | |||
|
295 | nan 1675180.375 2171032.250 3013881.250 1812469.625 1106471.750 1064564.750 792637.188 461120.469 278142.469 172655.234 137448.625 152581.703 132948.219 96969.422 82781.867 70157.117 36991.586 55068.137 68687.227 76868.492 60769.449 67865.234 53696.074 50680.750 69497.906 49235.152 79157.523 59644.391 59424.434 59144.434 53575.125 | |||
|
296 | nan 1748828.375 2012234.000 2798122.000 1829419.875 1206425.125 1132028.875 886200.000 461807.625 224061.938 157892.094 163530.578 157429.516 99584.297 79959.469 103470.078 52777.074 56615.934 64296.066 64651.234 52722.441 78761.516 74215.438 98595.805 76967.758 79287.281 55972.012 50371.527 49101.086 53292.664 47057.340 32674.779 | |||
|
297 | nan 1709906.875 2079360.125 2971460.250 1832871.125 1213177.875 1079008.875 814815.000 465340.688 274910.875 141521.656 140877.500 193738.734 140616.828 69957.695 87372.398 78958.352 40211.598 65972.992 60007.648 65715.242 78960.078 110037.383 99468.602 77029.852 82444.969 62690.938 54861.422 70115.820 45474.473 41486.156 54809.637 | |||
|
298 | nan 1693838.000 2016462.375 2930413.500 1788993.500 1333533.625 1082736.125 830255.250 480048.688 222250.406 149628.359 156243.047 201689.047 119235.555 101079.742 105322.547 42111.254 74172.383 64285.254 84944.172 108352.656 129266.547 100636.430 96654.977 76648.344 80873.430 61479.535 53983.852 47587.172 43765.438 49496.262 41021.766 | |||
|
299 | nan 1721117.500 2001469.500 2980176.500 1812220.875 1185560.375 1133801.625 807329.250 450232.281 241071.406 107419.680 152132.688 176475.781 133490.109 92529.117 64538.523 63460.664 49330.152 71796.055 97513.719 102621.969 83297.297 70661.414 85908.617 65458.648 83365.117 66830.969 46491.766 67906.906 50790.676 34962.438 34189.527 | |||
|
300 | nan 1699158.875 1839909.625 3133841.000 2035563.625 1295429.750 1117403.125 849281.812 475576.031 219360.859 149417.438 174528.781 192313.953 109639.398 100335.500 55179.949 74446.117 73791.125 80188.156 91974.180 133535.172 89022.156 61534.223 63881.000 65859.438 85302.219 77927.555 64633.160 49606.914 43815.227 37207.621 42266.770 | |||
|
301 | nan 1710041.625 1879353.625 3083533.000 1967920.125 1280469.500 1163814.250 798692.562 492041.000 290259.031 146291.844 183710.328 198717.641 130509.320 81725.375 69765.828 80833.562 54039.898 123608.078 137320.500 106580.773 65987.414 98988.273 57275.176 55816.387 64587.000 59200.039 64040.961 45005.328 36367.648 46436.828 34522.871 | |||
|
302 | nan 1589467.875 2005182.750 3064328.250 1934685.875 1360640.625 1104606.625 833721.062 451612.688 255167.594 134597.109 223462.094 193315.594 172792.250 77074.852 75766.852 69958.938 112874.883 118540.867 142344.984 128398.672 85685.117 64447.234 80805.219 80825.281 86952.648 57702.098 53533.801 58636.766 62605.336 44526.137 33601.641 | |||
|
303 | nan 1664661.125 1772704.125 3066721.750 2084037.500 1223188.500 1105071.000 750747.938 453513.594 285721.094 145745.500 207340.734 171669.609 148714.781 87057.500 80217.883 77947.180 126066.328 114843.594 113266.555 91464.531 104495.617 86543.789 61037.402 47182.688 83266.531 71311.969 56626.527 44543.758 45083.004 44687.387 41386.797 | |||
|
304 | nan 1606334.750 1924942.375 2901464.500 2031575.625 1326781.875 1202169.500 783296.750 508841.281 244137.297 162033.516 219634.844 142730.469 129190.555 86753.516 76925.008 79674.430 131323.141 165848.406 165988.609 120440.305 91566.117 86585.352 63898.496 89911.000 72746.875 75756.625 60037.473 43755.895 45321.641 36371.539 50462.363 | |||
|
305 | nan 1495847.750 1772590.750 2842375.000 2243313.000 1376262.000 1133821.875 882558.250 497505.125 266064.594 205402.109 207011.000 154223.188 136546.875 100363.594 89360.633 122039.680 170594.531 190001.641 146483.734 92078.406 93897.758 87431.719 101312.727 76235.102 80846.305 63872.777 67780.195 71557.258 61024.223 38686.098 36528.602 | |||
|
306 | nan 1604234.375 1824119.500 2857944.750 2159879.500 1429905.375 1134351.500 908595.562 366243.562 256785.516 167129.531 246376.984 153607.562 156396.672 116756.797 114742.453 133048.562 162713.031 228310.594 152234.812 105127.852 101964.453 89518.789 72763.102 63866.977 60984.012 77629.883 59297.562 57860.938 37048.168 41649.523 35720.738 | |||
|
307 | nan 1503344.750 1672512.500 2929082.750 2127399.250 1342387.125 1150344.125 859935.000 407782.719 183162.875 164271.859 221332.453 170532.188 121568.922 86282.008 114956.648 118811.945 172338.266 141937.234 116946.273 101522.328 96099.070 84066.289 77299.617 78825.156 69068.305 60224.723 51824.527 43886.770 53702.203 37012.703 46011.348 | |||
|
308 | nan 1610940.875 1560968.500 2841047.500 2215083.750 1423949.125 1205241.875 788567.062 504246.719 253851.438 223811.094 206126.016 179830.234 131812.766 96791.508 114323.750 115008.000 174985.234 141682.984 164476.391 87842.977 61225.598 70446.688 70107.750 63030.484 75736.562 41537.867 60516.285 59489.785 66308.633 43974.477 59321.312 | |||
|
309 | nan 1473867.500 1511302.750 2915211.750 2188337.750 1515661.750 1218989.875 926639.750 437674.375 215502.891 189097.344 246279.484 168900.406 128192.133 96664.000 104430.844 128943.633 189797.812 163667.359 130010.945 97175.617 87441.070 72224.484 78441.297 67316.781 67178.633 59015.996 61475.836 55087.840 46508.434 59839.812 35756.973 | |||
|
310 | nan 1460632.000 1522872.000 2835725.500 2339125.750 1395822.125 1283210.500 939518.000 422629.219 230603.609 203508.062 240147.453 193991.391 138262.047 127680.633 107513.297 174643.891 191651.250 169722.516 102575.281 87223.586 92355.602 50744.938 75630.617 55629.879 48681.652 80491.797 63880.676 50174.938 64603.746 52818.523 49664.199 | |||
|
311 | nan 1381896.375 1524965.250 2802135.000 2264615.750 1426133.500 1362388.375 1010920.438 429838.500 265096.406 214621.250 231588.156 158983.297 113343.555 108127.656 120210.758 174533.484 178794.281 87748.555 94621.805 60224.766 86534.500 65258.773 67523.281 84874.633 64927.316 50322.410 54881.465 58857.973 54615.461 71071.961 37006.938 | |||
|
312 | nan 1510272.750 1411027.250 2751775.250 2325543.000 1487378.500 1356726.750 794708.438 486563.312 273039.531 221893.688 171258.516 211215.984 147563.953 106759.500 118636.492 155690.297 166946.188 90521.945 100175.992 72062.055 72643.133 87693.445 57549.703 67670.281 65055.246 50644.859 64046.852 53686.926 56391.734 57248.289 54899.363 | |||
|
313 | nan 1485947.125 1358786.125 2611789.000 2430719.750 1458593.625 1333094.625 851724.938 499991.500 282875.469 237890.891 239620.141 192886.266 153476.688 88733.805 139940.078 200265.984 137534.500 94047.234 81473.164 86230.430 57258.129 79167.609 50737.797 73235.508 60814.750 50933.277 60030.891 58843.641 61246.500 62693.578 58868.234 | |||
|
314 | nan 1436548.875 1329848.500 2478736.500 2402130.500 1495873.375 1211619.500 805861.812 395449.000 224150.609 263044.219 258906.516 186495.109 122119.500 117567.695 214725.766 182093.266 130699.180 96743.797 89151.227 86209.398 85067.648 71085.422 71835.984 48862.902 58263.887 74295.305 46662.000 63296.289 68036.609 40633.637 65042.227 | |||
|
315 | nan 1533994.875 1308638.500 2378930.250 2435888.250 1625975.500 1222926.000 961451.375 473300.594 242824.000 288541.062 249760.547 193734.250 125119.102 144882.984 194291.266 127156.148 102746.383 89426.688 93377.664 81045.258 65896.117 64195.875 67221.828 64834.637 58217.273 47057.477 70403.859 76264.055 64852.152 71325.648 72625.969 | |||
|
316 | nan 1384890.500 1286425.750 2362285.750 2462232.750 1545722.375 1281123.000 784826.188 522575.281 297939.000 257745.484 250576.594 174640.984 155369.047 128045.180 205534.406 147989.438 85586.195 96635.445 79459.250 81002.805 83304.164 70244.555 79407.414 58023.066 70882.734 71370.023 84108.945 92944.383 80173.797 62689.324 76721.930 | |||
|
317 | nan 1466457.125 1263406.125 2181122.250 2325383.000 1488035.125 1267765.125 891087.812 442171.375 227355.000 348836.312 187767.328 199658.406 123318.047 107693.898 163160.031 114456.430 102515.320 69186.820 67524.977 91593.586 61049.191 53398.379 76613.484 84973.016 62851.547 64574.141 80862.641 69095.133 71875.617 51924.824 59451.500 | |||
|
318 | nan 1484263.500 1269282.125 2087541.625 2421385.000 1585722.125 1293885.125 918562.750 403756.719 247310.312 284792.000 252578.766 202772.547 142502.641 149725.062 168379.766 100313.469 70991.266 87524.156 102517.375 68756.172 57113.660 77124.680 66843.430 64535.625 80773.492 90920.250 65263.996 86018.055 59412.578 68026.500 66873.508 | |||
|
319 | nan 1546693.625 1169926.875 2098663.000 2236209.750 1664085.125 1344846.625 835292.062 379292.719 246580.062 296526.469 234365.891 205442.797 115264.430 182470.641 206511.609 136962.672 84764.117 73671.359 80835.180 74604.156 59282.910 80461.109 102338.094 74981.945 69103.281 89047.062 84935.344 95569.031 82697.805 80717.484 67339.414 | |||
|
320 | nan 1422670.375 1150535.250 2115182.250 2229905.750 1418050.750 1302506.125 742359.938 431910.406 304041.812 292664.594 231012.312 190607.578 145025.969 153700.562 154695.938 90413.055 107740.227 69138.133 93474.180 97042.930 69108.000 64760.715 69278.445 80802.891 95126.953 82733.930 88182.820 65339.246 93600.867 58299.602 83204.602 | |||
|
321 | nan 1556807.625 1197287.250 2112201.250 2353106.250 1725325.125 1300495.500 745212.062 377215.406 207502.844 284442.062 252413.484 151785.250 135128.234 164775.188 151498.297 96480.047 68856.258 85306.375 80550.414 84935.586 72389.992 83387.297 80182.977 73107.555 82759.430 63907.926 96658.555 86747.367 81983.719 62837.621 50306.199 | |||
|
322 | nan 1565156.750 1234133.625 2072345.250 2404368.250 1612969.875 1256920.250 756202.188 424486.594 277491.156 322030.531 250288.516 206413.062 161227.594 189641.438 130592.844 73645.570 87647.906 86878.156 75157.883 71550.242 65088.066 67598.062 84571.250 85208.820 130111.148 95362.867 73607.695 92669.180 131046.242 84188.492 77794.984 | |||
|
323 | nan 1561887.875 1201527.500 2014229.125 2410008.250 1727967.250 1335478.375 800968.188 400809.219 296245.031 342118.969 254926.859 146503.391 174065.859 198822.344 165283.141 97866.125 86006.375 101836.258 96497.953 70189.016 71341.133 88868.617 82044.797 81523.367 104151.648 104605.570 118745.352 99655.867 97843.922 89403.000 84923.273 | |||
|
324 | nan 1419315.250 1200244.500 1845875.500 2320465.750 1639373.500 1365446.500 881129.375 368643.062 332157.219 357778.094 221851.234 179305.188 174541.266 161515.188 104244.906 97165.406 69140.188 81191.008 84952.359 70761.977 67319.555 87172.148 76895.234 83966.219 99940.906 98509.820 110960.203 108336.000 75514.930 104254.469 69337.930 | |||
|
325 | nan 1484635.625 1201147.875 1887336.125 2320396.500 1695871.875 1441525.125 819999.062 374622.031 286968.969 342154.875 226672.500 190098.469 160753.234 149541.141 99484.477 133405.203 101445.547 105376.797 59913.938 95515.727 87060.828 102500.203 75057.602 122158.023 100825.844 81091.266 84498.094 97021.703 97930.242 58441.113 38932.812 | |||
|
326 | nan 1434850.500 1172225.000 1926092.750 2297493.000 1790044.875 1265469.875 820682.938 407530.375 310566.219 359207.406 242150.359 162926.375 188272.109 173880.641 136324.906 131566.359 82092.195 118693.703 97388.430 80722.891 96492.078 117081.219 98569.930 65343.434 79723.445 95935.922 95762.477 120523.828 92624.242 115388.992 82237.133 | |||
|
327 | nan 1348948.750 1142680.875 1937088.000 2360415.000 1821508.125 1245421.250 728265.250 370754.625 296951.062 317645.188 224332.000 173614.562 208075.359 164133.250 141018.516 82732.031 69395.680 82214.578 92050.523 88195.359 97820.719 115293.883 74554.617 59937.516 81289.281 86466.523 110765.453 87923.367 100134.758 74446.445 64504.254 | |||
|
328 | nan 1373691.375 1086681.125 2089706.500 2315212.000 1871988.125 1433646.375 847252.062 407690.125 293604.781 346985.219 202324.750 173620.469 216462.344 161117.766 115211.328 106233.375 94058.992 84745.844 91669.367 101061.023 107794.625 99055.969 90180.180 81853.156 130188.430 101801.328 124647.430 110269.344 123091.328 105062.875 109666.844 | |||
|
329 | nan 1389964.500 1059310.000 1985463.875 2418365.750 1786208.375 1440932.000 697728.125 417791.188 330979.875 292518.031 253664.609 164243.469 205388.797 164492.859 85079.664 80499.906 126539.406 81575.953 63152.727 87468.781 100213.633 77217.469 104145.875 68658.742 74871.984 108507.102 106033.742 81588.492 102183.055 79067.836 79929.000 | |||
|
330 | nan 1269580.875 1097647.625 1882618.375 2482023.000 1836310.000 1407764.125 832559.750 354696.125 374792.250 299294.750 230210.438 181545.062 259043.016 121411.031 115360.758 113707.758 82814.867 67578.320 113700.922 104115.680 97629.148 88837.688 97002.594 112003.094 85092.562 113638.344 102861.133 109518.305 86191.227 71726.516 72775.594 | |||
|
331 | nan 1203123.500 1041190.250 1939665.250 2398819.750 1919495.125 1289574.000 784328.250 349810.062 300824.469 370955.281 273751.469 205527.641 232526.000 106242.070 88508.219 95682.906 98926.328 60937.684 100023.078 79085.383 88145.383 85605.180 107069.633 108655.625 115716.070 94567.656 113030.727 105715.367 95883.523 74362.805 78237.094 | |||
|
332 | nan 1174146.750 1094718.125 2005907.500 2530138.500 1884005.875 1370580.750 803587.812 422219.188 322668.281 300301.250 209320.406 164695.859 170834.391 142127.062 96742.242 94718.000 89284.156 75293.570 97473.695 94020.680 111696.297 107165.570 93159.523 85149.328 80808.898 123574.555 124078.367 94420.641 105320.430 74838.195 92724.344 | |||
|
333 | nan 1144044.875 1056086.000 1905722.000 2619899.500 1953549.125 1440480.875 679860.562 381148.656 344274.375 336937.531 209676.047 191168.406 194856.484 116002.555 109256.703 62811.254 114468.469 102853.992 104399.945 100228.375 117583.203 103530.680 139058.844 96601.305 117153.820 93403.242 121148.367 137891.672 98841.227 104927.930 93504.555 | |||
|
334 | nan 1129568.000 1088680.750 1998121.500 2586932.250 1931205.500 1364877.250 794898.062 393328.781 341945.219 351041.625 233607.500 212173.609 215559.859 108372.250 87623.391 110971.531 92237.125 106434.945 105347.242 98675.531 90502.453 118043.172 149160.922 121461.648 116240.906 82298.539 97686.547 120393.344 102483.508 80849.141 101330.297 | |||
|
335 | nan 1241127.500 1045829.250 1923510.500 2729489.000 2003070.125 1340139.250 736310.938 382891.000 434205.094 338535.844 306246.969 212791.562 193667.188 132869.406 90541.477 86332.742 68167.844 79475.320 107163.352 95170.555 118969.430 122203.805 137273.078 104566.242 95981.250 75671.805 112213.742 90065.578 112570.445 78168.555 80739.047 | |||
|
336 | nan 1186532.125 1066932.500 1935779.250 2749137.750 2130160.250 1337360.500 661146.938 422711.875 405588.125 323549.469 289666.375 245042.656 158665.469 100725.648 134164.859 84977.172 92528.734 55046.797 126728.875 133363.109 90121.195 130571.023 121498.273 83937.305 114902.680 77523.484 98349.672 121546.492 100666.531 110444.656 91021.297 | |||
|
337 | nan 1125068.625 1037086.562 1986240.125 2810450.500 2178887.000 1479348.750 675734.438 406661.219 408822.531 315182.844 233665.453 218153.484 149219.766 150897.641 78518.945 89565.742 94279.180 118643.000 93083.773 89780.398 122599.500 129369.656 109009.656 143813.359 103652.070 128068.070 117853.469 105271.992 127107.242 108514.078 91224.805 | |||
|
338 | nan 1058267.125 1021074.250 2046803.625 2660401.000 2040363.875 1276456.875 653167.062 401771.812 414128.000 369142.531 275561.969 209539.203 141876.609 93732.391 70080.656 100502.805 110569.273 92263.430 80379.742 119632.617 118911.219 153778.969 141949.516 133376.469 93036.445 148841.547 128439.227 116370.680 136542.984 105508.828 75270.453 | |||
|
339 | nan 1089034.500 1132343.250 1988390.875 2737635.000 2129441.250 1364677.125 618763.875 422051.906 445156.875 324735.594 213417.141 272120.031 195593.016 109488.406 126516.797 104798.000 99730.594 110216.883 120893.906 88225.508 112675.867 130258.805 159469.047 138818.203 133553.734 139875.156 161963.688 168186.203 133967.641 136619.109 86371.258 | |||
|
340 | nan 1019769.812 941539.250 2097033.875 3066905.750 2134390.750 1391669.250 695782.750 415824.719 443350.469 418076.312 215241.516 284213.062 154384.594 114428.227 97600.242 72916.562 101798.047 129980.531 102725.195 113515.477 135683.766 132669.188 147161.688 126445.758 132545.078 145338.266 137034.219 123506.719 113390.195 99413.203 76492.273 | |||
|
341 | nan 980495.250 962322.625 2207447.500 3022215.000 2211876.000 1310010.250 673293.188 414627.719 476111.500 476137.781 263946.688 288211.531 171248.922 101249.352 109956.594 73317.008 102937.828 116548.594 93984.258 109171.242 117838.273 151458.422 115567.648 138950.984 149800.859 136073.281 144611.797 154265.844 125551.281 127885.195 115200.375 | |||
|
342 | nan 861059.250 828197.562 2098247.250 3170542.250 2214827.500 1273894.500 617398.812 503706.531 495352.000 394926.625 298418.031 273957.812 190980.359 104469.500 86229.445 94691.250 100952.633 128512.500 80365.305 115169.383 106400.367 113694.953 120741.758 131288.328 105174.602 94422.414 152714.609 149921.438 135939.125 103446.273 69950.789 | |||
|
343 | nan 946700.812 935041.438 2169365.750 3202259.250 2306612.750 1292329.625 617043.062 480469.312 501741.125 394700.000 203885.000 263630.812 154815.562 106280.594 85041.352 106382.953 86479.883 114233.508 100701.953 107898.656 128696.672 108330.570 95560.672 145089.359 90940.758 143279.328 126064.055 115939.805 138326.016 91729.711 81236.781 | |||
|
344 | nan 900015.938 1017831.000 2397911.750 3433735.000 2312676.250 1380153.500 666125.312 526166.250 473951.719 422273.406 267311.188 263342.375 229424.609 115076.602 118790.281 79539.188 117585.367 103806.352 68205.195 103985.367 104675.625 140941.828 93644.477 141071.562 102780.273 158936.391 159575.797 172347.875 141222.922 131864.688 93969.391 | |||
|
345 | nan 912031.562 902927.812 2265811.750 3561326.500 2293761.000 1261082.500 574808.938 440828.031 466603.594 438889.125 235881.562 259976.797 161637.750 121074.750 111335.273 94940.992 86463.359 83003.289 104969.867 91312.930 88514.945 132637.609 126579.508 124387.844 110473.219 116980.805 110465.367 125722.297 132037.484 126059.867 87541.562 | |||
|
346 | nan 768092.062 966263.938 2409678.000 3506753.500 2405032.250 1249322.125 574236.250 517438.125 579071.375 437997.188 241938.359 314614.906 194401.203 99329.969 120642.047 114802.508 91938.492 130730.875 93757.672 99719.578 132368.406 128756.078 88895.055 117104.273 65594.953 113165.750 111613.648 175794.469 132879.500 99966.469 132853.188 | |||
|
347 | nan 676647.062 882750.188 2584347.750 3617236.250 2379073.000 1179582.375 546212.750 537594.062 577763.562 387044.969 299044.688 344671.875 231770.188 112620.523 114223.508 87209.781 119040.727 129188.172 90983.023 56868.059 83241.195 136088.297 98936.477 100852.078 124318.594 112242.883 167136.391 173091.016 180851.141 144275.125 136045.047 | |||
|
348 | nan 691977.562 890597.250 2604420.750 3516280.750 2308859.750 1195391.500 590571.812 535203.062 607373.062 407762.531 256142.047 352451.688 213965.844 111811.117 139306.438 93009.133 108117.500 158599.234 92441.234 106144.727 118682.367 75648.758 97755.258 104081.695 80407.266 123478.180 146500.656 188215.969 172989.047 151776.391 146471.359 | |||
|
349 | nan 630634.375 891177.375 2617693.500 3669880.000 2330033.000 1101253.875 527440.438 560155.562 580334.500 422254.000 254845.250 365215.094 184465.609 137311.391 138568.141 100116.625 77063.172 106259.773 67031.000 90309.219 103736.508 83833.195 94434.438 97065.570 102984.945 121534.328 152663.625 134851.734 171581.609 184939.688 136975.656 | |||
|
350 | nan 524435.938 860609.188 2683274.250 3777970.500 2185923.500 1062159.375 572613.625 480296.906 640823.438 511504.781 242661.312 364647.969 237907.547 113730.805 106811.281 131780.094 138061.078 114631.797 106563.969 93236.906 95958.203 109313.578 95372.648 111898.008 91788.969 129610.969 213849.016 219999.500 211955.859 190717.484 123107.625 | |||
|
351 | nan 391601.312 895378.250 2890785.000 3908372.000 2222083.000 1033663.250 558061.188 668394.562 689538.562 397684.625 298509.875 380558.062 172892.812 95521.078 97391.594 122033.477 115573.453 106661.773 89816.680 81382.727 100232.828 97894.367 69515.016 77062.719 134461.359 161424.688 209454.312 200820.750 198044.656 145374.688 163841.109 | |||
|
352 | nan 354167.281 777020.812 2823958.500 3857844.250 2239378.750 1022340.375 638828.062 648050.062 693317.438 329259.188 282234.344 422787.500 176739.688 126527.617 180769.234 110254.922 125845.156 120464.148 86915.461 111844.672 82083.586 94430.930 72391.453 85897.930 142027.656 183679.750 210135.000 217412.734 205333.438 179790.500 161894.141 | |||
|
353 | nan 207845.062 742830.125 2798177.000 3881481.750 2176847.000 1000275.625 537606.125 736574.562 653547.812 387683.188 300227.094 399079.594 139311.266 115866.695 84855.539 132355.062 132839.844 108590.023 101127.195 86595.031 89257.195 76039.984 86140.727 108322.148 182865.828 170306.062 272463.969 303068.250 269568.719 211783.188 123108.227 | |||
|
354 | nan 161428.562 751528.812 2416078.250 3775861.000 2032164.125 1006990.000 570880.312 774710.562 699362.812 348684.969 377544.969 358644.062 206635.766 106203.430 127071.500 141663.984 158237.891 100541.953 107568.852 96710.328 113843.250 92207.945 97924.227 112193.281 159776.516 175765.641 266922.562 274030.594 306213.469 214536.734 183210.562 | |||
|
355 | nan 120520.578 699113.750 2269542.250 3890920.250 2169875.250 1034858.812 547162.250 748532.438 681430.750 372141.719 351812.969 352079.656 124081.805 124475.297 99334.125 136853.734 163689.859 95629.031 117208.453 117408.953 97899.602 96941.656 95289.148 151527.234 238293.953 255442.953 268061.031 249604.312 275642.625 193052.156 210996.156 | |||
|
356 | nan 102669.656 671847.562 1899071.875 3751648.750 1980902.875 924880.438 475632.281 792807.562 643260.375 364372.719 418002.531 438552.688 194923.734 151027.109 81742.406 176044.781 169111.484 112031.523 114899.742 87416.523 95434.156 88505.516 119612.695 172995.422 205730.812 269099.531 367197.406 292231.656 299379.344 267518.875 173444.562 | |||
|
357 | nan 84736.758 682968.688 1842922.000 3071906.500 1670723.125 814742.438 567739.625 817183.625 697161.500 352745.844 394163.188 410432.781 153377.609 148254.578 130088.875 158271.188 157021.938 148987.969 94607.508 121059.352 112525.523 72305.117 132706.266 130420.531 244546.188 340643.750 321625.875 295995.156 329264.562 238450.453 219442.641 | |||
|
358 | nan 114936.531 689758.938 1633299.500 2612272.000 1358990.125 786928.375 700445.250 894635.000 587206.312 306356.500 356051.469 408868.531 171968.453 156875.812 138571.734 135204.406 151010.188 98121.258 123560.320 111301.875 92271.695 139860.391 111854.594 143921.766 244619.312 297426.125 369278.688 371900.125 295130.188 255210.156 190187.141 | |||
|
359 | nan 103481.805 532646.438 1359284.750 2189360.250 1018621.250 734244.938 581216.250 878627.625 651225.625 303587.375 351020.812 455826.312 181625.594 125095.195 123733.430 143997.812 164433.281 134644.625 129618.508 92091.367 106046.344 89128.867 162847.062 147799.438 274011.188 458685.906 479062.906 412103.469 349462.219 247767.484 215324.750 | |||
|
360 | nan 95060.180 643215.750 1211152.125 1800551.125 1039763.938 766435.438 681439.375 1055881.250 712431.562 371731.625 340850.125 411174.219 165825.953 120415.203 166464.656 215868.703 155547.828 115137.500 126337.180 108328.695 144656.656 114428.008 188435.703 217481.938 384950.219 521116.469 439947.531 369861.156 332029.625 281381.812 206963.547 | |||
|
361 | nan 95084.953 517121.812 724823.875 1241591.875 1068919.500 637747.875 578338.250 999927.625 474222.531 364252.875 298741.312 364674.812 178096.141 167199.875 159217.062 190867.406 119249.469 135590.125 118584.656 140772.703 142602.172 104082.875 150114.797 207947.250 311061.406 413057.125 465110.906 364582.062 335310.375 188040.188 207249.344 | |||
|
362 | nan 99180.656 473024.469 476344.719 1075305.250 1002014.250 694701.500 604815.875 902889.812 569345.625 259470.000 353156.031 418221.812 233185.891 173277.984 162306.734 174271.750 159449.641 143055.516 158768.812 146236.000 140537.672 133037.281 226207.266 353737.031 406080.625 475879.031 441728.500 481058.000 307290.875 285459.406 242987.891 | |||
|
363 | nan 177229.688 417485.219 397662.406 1069778.375 949922.375 560486.125 718247.062 1020298.250 520603.875 276833.375 282192.844 478276.219 276317.688 166724.547 124987.844 165566.047 166382.641 178661.984 94859.055 160031.547 135826.938 175064.344 259735.094 417752.531 301629.375 419467.000 453550.781 476198.469 339507.062 304325.906 321415.500 | |||
|
364 | nan 111446.578 275085.469 334416.281 861073.188 999971.250 544854.062 693805.938 1004590.062 553106.500 293201.125 363924.969 356933.469 172441.812 152703.984 187275.312 150230.312 177688.250 137574.047 154380.016 206829.516 126597.398 190673.484 287633.125 422703.719 346501.125 449362.688 507316.531 443498.688 377889.375 254895.453 236958.938 | |||
|
365 | nan 151261.234 236983.859 242458.953 497949.781 937634.562 636966.062 808802.000 1027179.000 560760.750 358120.969 327602.312 374513.156 194874.359 253312.938 181469.562 224801.688 243018.906 192378.297 146483.062 160027.281 126778.719 204851.062 304709.125 347155.750 448732.188 482048.906 522051.219 504215.969 424625.781 395656.500 344469.062 | |||
|
366 | nan 162944.609 282725.562 160326.625 324873.531 874226.938 619931.688 812888.188 958528.438 559662.250 372787.156 374438.906 398659.812 255418.688 191612.547 180587.750 151187.438 188523.156 168882.047 202702.703 187149.484 164808.875 298297.062 330635.969 370482.844 497479.531 550180.875 591133.438 561217.750 465075.781 413128.094 347093.812 | |||
|
367 | nan 195862.312 200278.938 101229.375 246725.609 904290.938 506206.469 798808.750 913427.250 556392.188 346559.219 344740.562 521266.781 249853.438 275284.062 208496.641 236669.484 234868.188 192193.500 220323.656 206853.141 167606.141 338175.875 379074.250 472615.906 605917.062 675761.875 757149.875 679524.250 488698.500 429382.688 427044.906 | |||
|
368 | nan 175482.578 256956.766 143433.438 228248.109 874581.812 696210.875 796244.250 931227.250 548631.312 403783.125 394781.719 484715.469 317261.844 235441.391 233968.859 220098.750 181263.156 194357.000 229937.156 207118.359 262219.094 295319.750 356809.719 517742.719 599348.062 700699.375 721572.438 665018.562 584946.562 454953.000 405723.469 | |||
|
369 | nan 202183.859 203959.594 117422.750 262610.125 824507.062 662971.500 852055.938 942302.375 644906.438 444611.031 402288.625 467918.469 353296.094 288573.688 270697.531 261457.141 187826.203 205407.906 234011.734 267626.812 242751.656 341857.219 443316.219 549989.500 807784.812 783038.250 803383.750 748364.188 574129.000 440421.125 389243.188 | |||
|
370 | nan 222498.234 242154.906 130456.695 303537.781 727317.688 631000.938 914541.812 906938.000 614074.688 365448.875 428491.906 627051.000 307338.469 353902.469 245063.203 313130.531 257953.984 249036.641 289970.500 230311.844 222280.406 324072.219 441828.188 535301.062 800654.250 899314.750 883247.625 797789.188 615637.500 524952.625 376721.219 | |||
|
371 | nan 232771.141 146044.172 172820.766 232696.891 699192.312 686746.375 928633.188 946976.750 636350.625 403442.219 375903.312 691055.688 314889.812 285882.250 266600.875 305839.844 283828.781 306202.938 232763.000 254043.000 331001.750 357419.281 442421.719 653150.750 759793.938 986706.250 939883.188 833480.625 702391.312 530801.000 456500.531 | |||
|
372 | nan 234409.859 176254.594 146161.859 257772.953 730761.438 688534.438 922896.562 1002882.375 641893.062 478283.781 343563.969 602535.438 427219.375 358109.375 378093.969 343835.062 262510.969 264456.781 218489.344 227259.516 369057.969 382025.625 516234.625 598290.625 865986.812 948421.062 1068334.000 868896.625 784622.000 588559.750 530017.250 | |||
|
373 | nan 195013.797 181302.797 143973.406 254843.203 783992.375 639478.562 745218.875 970518.188 582073.938 442632.812 453771.125 705176.125 532420.562 357751.969 284193.562 273292.219 297434.094 265028.312 288422.750 228170.016 308481.375 460051.906 567678.500 763805.000 780058.938 940516.625 913904.562 821961.625 695270.938 567190.875 507282.469 | |||
|
374 | nan 216246.016 173446.938 192341.609 386056.625 665741.062 729720.938 897993.062 911964.938 574632.938 416518.594 397426.000 591672.438 511075.781 355133.875 288731.250 380604.719 294822.375 289503.969 318129.188 253675.109 350646.219 492211.719 576223.750 674330.000 828478.438 871452.750 944873.000 913305.625 722746.125 565910.750 595965.688 | |||
|
375 | nan 161797.078 213311.047 249009.141 310913.812 604428.438 714650.375 1078518.250 900963.750 576634.562 434270.406 459423.969 611236.312 607231.125 421778.531 363094.969 304077.656 422280.125 298590.250 386600.094 222672.500 326914.719 426094.406 620964.938 742366.875 876303.812 964538.375 905469.250 996719.625 738879.250 607707.562 632236.250 | |||
|
376 | nan 206400.188 211286.094 142127.531 253207.203 594286.250 857682.625 876619.000 706774.250 601279.938 496478.625 436250.000 527292.688 690034.188 490144.125 362676.969 385627.000 307053.281 351580.562 285483.375 279027.219 260759.594 390293.875 543472.312 812639.062 862822.625 917813.375 931403.375 1003891.938 855358.250 676375.938 742918.438 | |||
|
377 | nan 189775.562 236306.141 231984.688 263578.031 664468.188 710763.312 815431.625 903712.625 671097.875 479711.688 470043.688 626178.938 654546.562 500537.281 320692.281 389350.531 354451.188 359846.406 314895.469 191746.141 301011.781 271398.125 531168.750 657817.562 887683.812 1154266.125 1276416.375 1145856.375 964064.562 953224.438 906948.375 | |||
|
378 | nan 225260.094 245977.484 238631.484 372346.594 583680.625 694870.375 708467.688 783780.938 765600.750 544084.188 532289.312 508605.375 711646.312 440334.875 463500.781 400344.688 437009.188 326859.688 317675.812 260839.906 261322.250 283482.500 469719.000 746711.812 940949.438 1085688.375 1294518.125 1396247.375 1280319.500 1048690.750 896334.562 | |||
|
379 | nan 235172.516 188737.453 248140.016 331085.406 624210.875 765314.812 768824.375 801935.250 640377.062 460768.000 488314.719 506195.500 600088.938 606804.625 372285.938 376393.375 350316.875 285129.531 427397.906 285055.906 237570.062 277736.031 478591.312 723366.250 984640.438 1199347.125 1454119.000 1444524.125 1348206.875 1166817.875 955817.750 | |||
|
380 | nan 251589.984 261323.109 268008.906 348114.438 669379.875 563598.875 781355.250 760466.250 764621.938 582877.625 403704.281 502355.406 626327.250 574637.000 357554.625 440023.875 313967.969 464094.031 313018.719 249659.516 314608.719 307162.375 325867.688 501105.469 602455.625 894433.375 1102915.750 1296011.875 1168607.750 1129921.500 1049055.875 | |||
|
381 | nan 188159.656 180298.688 286127.531 375823.219 544137.125 660794.875 852552.188 819157.188 648086.312 732474.812 699318.250 490446.469 744035.562 763150.562 494379.969 336299.125 321764.625 273562.281 359741.156 323134.375 323408.594 316274.844 368749.875 464218.469 779477.250 917766.812 1232308.500 1258462.625 1134427.375 1146406.500 1244120.375 | |||
|
382 | nan 174720.141 264573.469 278559.562 396200.969 551569.750 739519.062 694833.500 633183.562 494571.781 577697.812 500996.594 466540.188 572465.125 788823.250 462860.688 371056.312 338821.250 325890.781 341731.875 279197.125 268271.031 269366.219 318863.719 516730.500 823058.562 1043006.562 1393737.000 1506546.875 1437734.625 1262723.375 1209539.875 | |||
|
383 | nan 172822.562 234612.656 273080.281 359965.031 702512.750 604864.688 813767.188 786087.250 622688.250 522983.000 565396.688 539473.812 452319.188 783623.188 541765.500 327383.375 323043.375 304460.406 397600.719 232418.297 357256.188 269747.938 355128.312 475788.500 614646.500 967938.062 1278936.125 1383829.250 1428070.000 1278510.875 1151672.625 | |||
|
384 | nan 188339.734 225792.188 292284.656 478316.031 514672.375 554736.062 812583.188 719905.000 503975.375 576422.438 635981.438 648497.500 518620.500 613197.438 591992.938 353116.531 355289.156 333170.406 363187.812 319546.375 279797.375 335123.219 356677.219 609339.750 808235.562 1014343.625 1337053.000 1359605.500 1375880.750 1341130.125 1264742.500 | |||
|
385 | nan 294447.219 241522.359 297656.594 422252.719 728225.875 540017.250 607010.938 738561.312 557531.562 558946.062 615369.438 620375.062 478547.375 542746.438 607227.062 537986.250 340858.844 395041.406 389547.406 323098.625 282105.125 286118.781 392504.375 460361.031 748450.000 817702.188 915981.438 1148337.500 1057650.000 1121774.875 1158777.000 | |||
|
386 | nan 236162.891 234083.438 279527.031 422880.625 533283.438 403109.312 526530.438 783975.250 511703.094 536901.312 601384.062 534855.875 450846.375 421986.812 544850.562 468761.031 352377.031 353902.531 322194.594 311559.125 303340.344 289152.781 281449.812 306167.500 399921.812 428637.219 618927.250 610879.438 791376.938 987721.562 1307296.500 | |||
|
387 | nan 268722.750 289850.469 246317.156 458819.094 453592.969 501521.875 474082.406 640878.938 668264.000 528634.750 549953.562 519411.188 472549.125 480938.125 586152.938 640463.750 573950.188 382374.094 499128.500 439403.125 331766.688 323710.250 309204.594 321186.125 455434.188 449249.500 482860.781 703764.000 790273.812 970349.250 1452117.875 | |||
|
388 | nan 340021.188 297352.375 281344.406 601291.312 573527.188 493728.094 400435.281 490173.625 508015.781 485071.875 506130.281 608453.562 543601.062 469657.031 412091.875 497768.375 423109.281 385606.781 296489.875 346274.062 429656.281 268472.375 342525.375 279299.656 351837.625 359138.344 545087.625 568694.938 914589.562 955197.750 1547898.375 | |||
|
389 | nan 328354.500 260336.797 244328.234 572158.312 560266.250 480208.094 541782.688 587725.688 558772.375 632404.438 569122.625 561495.125 589185.062 706711.562 434771.812 520600.969 505091.719 533268.188 392900.312 383044.594 486804.812 500944.875 418124.031 401108.906 514082.969 487973.188 627628.125 685553.562 665302.562 967086.000 1442447.125 | |||
|
390 | nan 276507.750 394446.000 333484.125 514177.125 460456.875 491643.812 458169.375 507986.469 621809.500 640782.000 572761.250 475496.469 615343.938 526062.125 528716.188 476891.531 594095.750 506129.969 391504.500 464912.625 361915.125 275279.688 523155.031 774665.812 633704.750 466981.875 623966.750 575505.750 561533.500 674282.312 1258242.750 | |||
|
391 | nan 256465.453 271826.125 330863.625 649022.250 510021.688 437635.500 469644.312 516308.719 507257.281 613061.875 519866.469 597067.188 649781.688 640743.438 441822.625 486420.500 564584.938 624819.688 473469.719 432727.375 508870.219 355557.344 404821.594 265781.281 353033.500 260588.312 292060.281 234632.391 241233.062 456755.375 967584.938 | |||
|
392 | nan 218050.188 295727.125 318433.438 531349.688 455296.031 360622.281 429919.781 484575.781 458340.625 436926.469 503174.406 577499.250 488627.719 454921.812 541756.375 454990.281 367635.969 485436.875 703187.562 682894.000 461461.281 385775.906 335869.094 370054.969 344960.875 431055.688 282735.531 274634.156 234073.906 517435.125 969516.062 | |||
|
393 | nan 321539.375 234164.891 364451.719 386711.375 516757.719 458480.031 375316.719 451299.906 531527.438 531764.250 467310.406 499452.969 535570.438 450375.094 391324.812 381576.875 363350.594 354533.312 281560.531 379678.188 787138.938 870745.438 918079.375 767733.062 748239.375 557707.250 416815.969 345834.469 439093.406 745357.938 1297956.125 | |||
|
394 | nan 233174.891 210801.688 333092.844 484010.969 424966.500 373290.312 367878.250 313642.812 484106.094 483896.594 438593.969 370729.281 524103.375 499230.812 417557.906 318903.281 359713.281 374120.219 293305.438 204598.547 330382.125 277267.688 342487.625 347542.938 384721.719 434274.219 420794.906 409583.125 451025.406 667349.250 1338315.500 | |||
|
395 | nan 179639.719 185521.016 265629.719 404460.781 325172.969 307668.219 313592.125 247895.266 342235.531 329970.938 291867.094 289631.531 381917.469 333525.125 295488.156 379216.625 291398.781 282760.188 301385.812 248600.312 318298.469 256617.406 319767.344 561302.562 495919.375 587495.375 505322.531 650403.250 466177.219 473396.312 1060803.125 | |||
|
396 | nan 173074.078 225053.000 183454.062 231386.656 240524.016 238428.156 206418.953 317706.344 226331.750 276924.062 229940.000 227974.906 277926.062 253787.844 244471.594 235199.188 295689.625 193431.844 141868.859 183612.484 146157.750 147101.062 167763.641 203068.766 148474.859 156137.906 199174.453 176464.875 211953.484 225242.516 526432.750 | |||
|
397 | nan 135007.281 137009.938 176833.188 161068.281 251814.953 159451.141 160259.188 171885.906 120113.344 203865.266 187692.891 155937.109 160131.734 176770.828 202088.812 158002.203 152133.766 131958.641 193104.188 176202.234 139610.922 109036.953 109277.727 130425.281 129195.500 111416.805 148960.578 116049.125 102348.820 129373.820 384890.625 | |||
|
398 | nan 104422.430 107292.648 114127.320 120706.508 164796.016 149349.344 151086.391 142502.672 122385.352 100738.719 101629.227 100883.992 131070.781 91222.531 129477.344 108393.547 116175.023 118522.977 124894.328 103257.133 100190.375 89684.117 83460.094 91364.062 86727.406 90580.797 104617.273 45497.238 59903.266 118063.352 831801.812 | |||
|
399 | nan 47155.730 75738.719 82986.656 83210.008 100310.500 101461.195 108401.852 118002.875 81706.781 82844.508 92334.719 99087.453 77537.898 82791.977 79942.188 64955.316 67488.781 45095.371 63182.637 57403.188 65125.215 63314.988 68418.328 69998.203 37919.195 78626.023 58073.648 50403.223 58088.637 131078.969 818842.188 | |||
|
400 | nan 101408.898 93776.758 77571.805 69506.938 77587.227 110450.406 110791.219 76327.078 112115.625 78522.180 96539.648 80042.344 82578.000 59603.539 64057.547 64271.109 71362.617 91652.398 70899.289 59078.547 79263.867 70924.305 68085.438 68995.711 68405.523 50315.398 72617.805 67266.742 58239.453 73926.641 425141.625 | |||
|
401 | nan 73923.930 89809.742 84148.922 120096.375 120652.852 178551.375 145825.297 131915.734 122636.156 126256.906 111741.453 133036.188 119318.430 117100.875 112437.031 113847.945 70256.219 103478.977 85868.461 80651.469 63002.078 73491.578 87186.188 74567.055 94357.711 83330.141 53726.965 86933.750 67413.180 140678.094 757347.625 | |||
|
402 | nan 120201.633 82726.391 133162.062 148274.938 142493.688 182983.234 152240.484 146146.359 148625.828 138541.031 165627.359 144618.453 145629.609 150355.984 102101.398 133917.234 142038.766 128017.758 133110.078 90662.047 114642.250 92667.953 93668.211 115162.281 99585.094 76736.008 108327.648 123586.820 80971.539 144243.672 972559.062 | |||
|
403 | nan 154823.000 128791.898 150180.438 181256.453 201035.594 158963.047 221028.547 119038.148 154696.547 198614.953 181659.281 150287.812 179249.562 209290.844 130683.297 146396.172 145862.000 134289.906 128035.719 106967.398 108270.555 103333.555 119889.195 105916.148 97121.680 114528.070 102441.047 70182.234 84037.555 154187.766 776555.812 | |||
|
404 | nan 150861.000 203393.141 169675.609 166657.500 189051.812 197203.062 210480.812 265254.844 220856.188 165313.453 205464.094 171803.516 186825.688 224568.297 206586.188 160332.844 202728.359 162962.312 163321.156 114519.430 155766.047 136338.891 125618.820 102852.023 93359.883 103990.898 98188.547 121300.977 75973.703 83324.031 580737.750 | |||
|
405 | nan 198497.062 165403.984 188154.438 235794.812 211116.953 256106.859 261635.344 245756.047 242600.844 170505.828 256423.734 220201.984 159734.984 214044.391 206313.312 233966.562 155609.031 188035.953 188141.109 162089.734 119558.305 155565.828 109202.953 137429.016 125497.578 88890.523 115521.258 161772.656 84196.820 119471.281 383460.906 | |||
|
406 | nan 207402.109 178797.266 203654.938 220305.453 349106.500 288127.031 286174.969 269309.125 279122.125 277901.562 304736.594 352344.531 201503.453 246660.984 294452.875 211418.812 182032.766 199645.312 177120.844 200584.656 158185.812 145333.562 130969.617 153988.688 119837.500 125895.320 146192.750 96288.055 126965.328 118609.328 347428.812 | |||
|
407 | nan 185197.125 218692.406 215018.953 292763.812 260382.000 317024.125 242018.359 312163.125 260205.312 354659.625 294477.906 244827.750 296925.344 300473.875 289025.438 272163.281 223296.703 184719.172 222352.797 218577.188 221287.188 189707.250 172675.516 98498.555 128625.703 178574.625 152248.484 117978.828 120555.328 130515.352 252238.391 | |||
|
408 | nan 246052.438 198009.953 247381.953 281865.000 287340.281 290312.000 332915.031 297108.000 296194.656 357824.969 333660.906 379539.062 334269.875 341619.531 275866.188 272752.500 221118.906 213309.359 249085.562 147548.156 154814.109 183645.109 139507.250 205480.797 148861.922 156160.125 99969.008 109333.250 149836.219 79529.461 143237.734 | |||
|
409 | nan 267225.062 199974.984 245548.156 341020.781 392224.781 368572.750 311503.000 408799.031 401727.688 436553.531 315598.625 357115.469 388826.688 315337.469 335145.031 320404.562 239563.891 276336.531 256057.453 212793.266 218793.703 151395.766 173010.984 140184.688 171044.516 170353.891 167548.266 132637.828 108925.070 118159.719 157686.328 | |||
|
410 | nan 228586.484 235457.438 230511.750 319840.062 302628.781 447057.094 338315.125 381777.281 361151.781 396431.000 433293.125 489202.406 365220.375 325626.062 310003.375 318374.344 264383.219 326557.469 176281.688 181103.172 183482.891 139541.578 161856.922 147317.922 199988.750 110651.781 145550.234 140729.062 114858.047 103556.680 175368.656 | |||
|
411 | nan 213408.109 303093.250 443815.406 433712.219 411097.906 474122.312 389095.188 466052.094 402969.875 414153.469 335335.031 370184.719 437715.406 502937.875 438905.000 354724.719 373367.625 352484.344 293705.031 214208.938 254231.312 211197.094 188209.734 163633.766 173474.266 154460.969 133990.281 148992.984 167121.797 158625.234 124949.781 | |||
|
412 | nan 269098.250 317778.125 335255.938 394514.469 417971.188 492879.969 526727.062 405172.625 494729.781 440655.375 462965.719 435255.781 477277.094 515742.875 425664.625 340899.281 323676.094 324163.906 306401.156 273761.281 190508.688 205461.516 157639.766 192254.547 141626.719 205556.703 131338.781 142233.969 112338.680 97190.430 151899.031 | |||
|
413 | nan 445417.000 284272.375 359740.875 403745.906 566121.250 495710.688 488452.688 524583.188 569212.938 598645.562 536098.438 508067.812 532987.375 458964.875 434069.125 401601.000 437921.594 348010.781 338326.031 367720.875 279054.188 141078.438 170539.766 176551.859 152255.156 152974.688 138602.953 83490.195 130706.602 77627.906 111205.453 | |||
|
414 | nan 453214.812 534285.375 586473.438 599955.688 598492.375 664399.125 530800.125 717143.062 742562.562 623512.250 644763.312 767066.750 643416.062 589177.062 675560.938 530273.562 551112.312 413321.219 322672.781 329656.312 261291.453 222676.094 235167.594 137250.688 137386.141 154658.141 113335.406 58079.348 69972.578 96834.148 102247.930 | |||
|
415 | nan 342416.781 446413.812 624587.000 590494.750 857442.062 910835.750 903764.750 834168.062 745812.750 790318.812 852205.062 775760.188 983905.938 653112.250 567599.438 664130.750 489667.125 419261.125 372495.594 309844.406 319025.781 280597.781 169463.750 149892.906 83718.797 108320.344 101774.719 67731.609 82615.117 59768.129 127823.703 | |||
|
416 | nan 415617.312 594242.000 646156.500 601780.625 820175.375 971390.938 1055904.750 866296.062 1154878.000 1150748.875 1088602.500 1209112.875 899955.062 979448.188 602157.188 717004.938 612597.938 579565.500 505203.000 216847.656 229487.438 167638.953 279015.125 136456.391 161604.734 89407.727 98596.344 88998.750 14260.108 104498.422 255621.188 | |||
|
417 | nan 655657.750 588353.062 780112.812 685176.688 828763.938 1093366.500 1067820.125 1134051.250 1377609.500 1137672.750 1235171.375 1333371.375 1026525.750 1098367.625 1025032.438 835795.250 548418.375 593959.062 454499.094 290029.688 169422.375 287659.375 67444.273 107243.750 122066.531 181624.672 76253.922 75050.383 15449.091 85846.195 273238.781 | |||
|
418 | nan 460860.312 670876.750 639573.562 790195.938 902243.062 1148859.750 1117440.500 1219684.375 1235222.625 1140046.125 1208224.375 1280667.250 1284790.375 1213221.875 992009.812 856512.438 794626.938 485923.312 284890.531 395595.125 337033.625 220159.250 200539.750 120231.031 94734.297 38035.695 67753.484 13168.535 61899.664 218118.641 511123.906 | |||
|
419 | nan 436523.500 656622.062 727357.750 924059.812 1087725.625 1075487.750 1145291.125 1369840.125 1185951.500 1194199.500 1355756.500 1398413.500 1221731.625 1020723.438 844851.375 733983.812 749303.438 486736.875 354314.188 386560.875 163858.734 282161.031 141504.016 104475.406 103892.656 74529.094 20408.812 16424.924 32324.783 610557.562 1247251.500 | |||
|
420 | nan 395898.188 646792.812 668448.062 695208.562 881000.375 1002289.938 1108432.375 1310763.875 1239757.625 1189800.500 1467957.125 1249288.375 1141198.875 1077258.875 858378.812 800772.375 651427.125 433543.812 512111.188 374885.375 210349.984 193546.547 187393.906 37687.609 31454.074 124656.305 41521.395 24516.846 75373.086 1889480.500 3336831.250 | |||
|
421 | nan 265265.531 430023.312 493942.312 555388.812 622687.438 754945.812 869078.438 714497.500 880563.625 966517.375 993280.375 955802.938 683113.500 744772.062 622220.500 530148.625 355579.375 378476.969 338846.656 269681.156 208407.906 170246.375 241853.844 139639.156 98145.203 70892.391 164851.812 69097.938 412282.281 5967802.500 9112200.000 | |||
|
422 | nan 245876.844 399009.969 354791.469 331656.375 441952.219 456597.594 471026.875 482191.469 336219.719 415169.688 506527.469 416574.594 427466.875 360633.719 301913.125 309266.375 317027.719 230179.562 265163.844 280026.531 190914.109 184472.750 205212.344 108542.633 138377.438 116279.148 147731.234 93231.383 1422295.125 15453610.000 19615730.000 | |||
|
423 | nan 130151.344 125892.125 118737.094 158393.703 121955.055 137677.719 146686.203 121373.047 155757.609 136383.797 182314.875 151086.438 134589.359 113503.258 142937.906 126028.969 110654.531 112683.125 103339.219 93631.570 89620.031 82476.516 89837.234 115423.250 86866.117 93464.391 130773.703 153447.312 2880567.750 26127208.000 28408774.000 | |||
|
424 | nan 6244.571 9638.547 4270.723 12036.480 7996.828 6431.668 10216.888 6999.702 11316.435 8236.646 5255.739 9573.993 8213.852 15980.895 5562.687 9070.595 9038.642 4536.986 8451.660 6752.561 10962.317 7581.485 16525.248 4125.552 6050.993 9507.413 4426.484 218314.047 5080108.500 36579264.000 35476464.000 | |||
|
425 | nan 8083.877 3007.078 4251.486 3117.317 1265.523 1282.011 0.000 5793.325 2508.698 2038.466 0.000 3774.847 2467.048 704.453 0.000 0.000 664.926 1321.643 6793.250 1734.080 0.000 2146.579 3276.704 599.927 3087.012 4500.438 983.599 212801.484 5372563.500 34572240.000 31027828.000 | |||
|
426 | nan 2627.139 10489.991 0.000 4854.314 694.571 0.000 2476.659 1985.455 2493.149 3312.495 1315.354 6315.363 2536.041 0.000 0.000 0.000 4191.672 1187.039 0.000 4387.966 2126.574 3772.562 0.000 5137.528 0.000 3935.333 7333.449 144480.703 4379804.500 25811348.000 22779124.000 | |||
|
427 | nan 1832.902 4642.389 0.000 703.633 6139.683 7443.874 5771.570 2496.083 7688.842 1278.287 0.000 2502.828 0.000 1283.527 0.000 1879.572 0.000 1152.914 1163.215 0.000 1119.725 620.731 0.000 583.232 3971.727 3114.054 1935.332 110164.008 3168965.500 20015324.000 18027544.000 | |||
|
428 | nan 0.000 0.000 4250.085 0.000 2449.356 0.000 0.000 2480.613 3805.891 2547.290 0.000 5100.914 2467.048 3230.455 0.000 2362.969 3030.160 0.000 0.000 0.000 2139.836 0.000 0.000 583.232 573.884 1955.471 3858.670 31950.877 1130516.500 7711383.500 8223883.000 | |||
|
429 | nan 3543.177 4134.300 2568.331 2433.266 0.000 4962.534 3826.119 3856.126 2508.698 2547.290 5330.698 1309.670 2514.146 1283.527 5084.795 2413.997 1176.680 2924.563 5561.894 5543.021 2175.101 3195.948 0.000 1062.660 2023.760 0.000 0.000 41195.348 1249261.250 8139923.500 7898238.000 | |||
|
430 | nan 13212.616 25864.258 24562.207 32615.279 32547.861 14588.916 26219.195 23593.336 21493.717 29034.143 21988.123 22767.643 10827.076 15044.741 17838.680 26915.707 30076.639 7523.545 29371.012 16697.992 21833.508 15058.147 17636.262 14295.418 22429.662 10316.795 11413.381 17864.932 182087.797 2285669.000 3080528.250 | |||
|
431 | nan 141613.750 232335.562 179548.484 168172.844 194801.609 207803.891 168631.484 223880.812 236719.516 187334.125 216028.797 216759.938 201819.766 156308.891 221250.234 148432.969 200105.047 175066.922 196538.188 125272.531 149352.141 172598.141 130600.703 126760.875 138709.328 124010.820 129339.492 72994.141 182212.781 1522496.500 2235700.750 | |||
|
432 | nan 302081.938 355111.281 325726.594 301343.625 465333.219 458394.531 453072.719 423594.219 578315.250 597069.062 532976.250 396507.812 511518.031 515022.969 360628.719 407395.000 306177.812 359333.875 278582.375 305368.688 278896.125 214217.500 180361.688 183211.453 147893.359 209444.484 142646.359 76717.805 75752.195 854682.375 1649141.625 | |||
|
433 | nan 393080.906 460245.219 459742.469 778984.625 663221.625 568622.938 727396.750 892339.750 869761.062 885256.062 889936.625 797055.438 811060.938 702981.688 642945.375 544524.438 551948.250 273381.344 379543.594 315601.875 220301.141 239586.109 204358.703 134801.125 128308.508 99770.695 44617.398 66108.219 88293.117 1360955.250 2504757.000 | |||
|
434 | nan 248910.188 484430.125 880701.062 875089.438 933448.000 987938.375 1030345.812 1192543.000 1028143.750 1199254.750 1180857.500 1157358.000 1178052.500 859493.625 800826.250 508676.312 561857.500 427977.094 427521.094 230240.844 136687.953 175270.312 64314.348 90649.469 76525.336 66165.344 34640.711 36383.066 25344.883 1032157.062 2061092.750 | |||
|
435 | nan 443210.625 631848.750 566485.688 880162.750 907274.812 1083627.500 1129698.875 1187961.375 1506555.625 1245339.250 1453628.875 1323770.125 1504526.000 1113621.000 881617.375 890256.438 733623.562 427771.469 385327.406 153360.172 133998.641 174749.938 142618.984 56435.102 102938.742 44550.543 6625.050 24559.512 26611.502 247031.047 499475.531 | |||
|
436 | nan 437064.688 423156.531 844704.062 919047.250 1256784.125 1248854.375 1477551.750 1625534.500 1263413.375 1600735.125 1434646.125 1322928.125 1360981.500 1239272.750 984757.938 863999.750 666935.438 597089.375 374607.031 211383.734 128874.781 156643.188 97374.555 13258.210 16020.044 35853.367 0.000 6109.183 3623.485 10274.503 51007.414 | |||
|
437 | nan 393884.469 425252.531 662188.500 1019325.562 993070.750 1058961.000 1295677.000 1389369.125 1671697.500 1281204.875 1791046.750 1393128.250 1183564.750 1202036.000 1025630.062 765620.000 641255.250 560731.062 248015.156 187599.609 217250.000 239960.938 69646.406 40243.797 38044.672 34330.754 28418.908 6963.210 7441.611 8623.627 0.000 | |||
|
438 | nan 365155.781 797556.062 683767.812 877517.062 931987.438 1100501.125 1165564.875 1410422.875 1577854.750 1354576.625 1322238.000 1249376.250 1167346.500 939319.188 1089262.500 692354.750 681649.000 418583.281 370445.312 186946.828 241523.484 134064.141 103290.547 79958.570 66268.055 33684.855 40926.363 55034.828 15129.949 11609.913 40129.711 | |||
|
439 | nan 361146.125 520136.469 707675.562 722470.500 991326.438 1012425.000 1080017.000 1242077.250 1376639.875 1341645.750 1339314.750 1164899.125 1093342.000 1163113.125 762514.250 614050.250 446152.594 381290.312 343552.406 208256.938 179905.562 198075.984 89773.648 81974.117 29446.031 98147.945 11336.092 15675.918 23630.773 30487.324 48382.578 | |||
|
440 | nan 552940.375 567319.562 695641.750 673642.438 764318.812 945889.938 1200963.500 1143749.625 1049139.625 973581.000 1065638.250 1042137.938 1029199.750 991303.750 633518.000 571752.375 538902.188 639232.250 400304.188 265281.719 142097.766 147253.141 202197.656 85569.898 108254.945 102565.727 42841.246 16406.955 17388.424 12789.965 98080.203 | |||
|
441 | nan 549512.875 484628.500 561090.562 811300.812 639085.750 883895.250 847333.188 1074281.250 877757.250 736672.625 735972.250 817802.562 842699.375 805203.750 728038.938 523515.125 451290.312 394558.531 381304.531 312435.219 315405.594 220796.562 149265.000 207006.547 135016.172 62502.809 74517.492 91875.320 64165.910 66786.250 100511.453 | |||
|
442 | nan 330854.281 424599.719 620743.938 508907.969 587922.625 620888.438 632769.625 713994.000 712756.938 727138.938 844615.188 621023.062 810578.750 705681.062 707561.125 511671.031 477370.625 489320.969 282622.688 291070.750 256270.188 224762.406 106309.281 72208.555 118829.477 83573.633 49721.422 53348.453 42384.121 21408.312 234116.750 | |||
|
443 | nan 346858.281 364009.562 422876.812 528088.562 469929.594 595932.562 509366.312 618140.875 732864.438 611194.500 761433.688 694883.250 657434.312 679280.312 536988.250 467393.625 417261.125 296142.781 259608.984 366353.125 221056.094 251018.266 164938.438 237983.594 125330.820 101746.469 161468.734 76492.227 103615.219 21544.445 362824.844 | |||
|
444 | nan 279285.281 275305.812 429790.812 384241.375 400515.000 458152.406 515820.031 620681.812 562534.188 527345.062 580545.562 424362.688 496025.000 529854.438 406526.469 353779.750 325237.406 375368.156 279702.000 224821.500 232526.641 201372.438 154075.156 154078.438 106534.750 142440.016 112841.500 84375.766 86647.633 74274.352 335202.562 | |||
|
445 | nan 297133.812 299153.719 367636.250 345256.531 495237.500 449019.188 481398.781 547113.938 585998.625 583604.125 626191.062 515424.812 532253.000 443127.000 439237.812 417400.906 216090.234 387344.688 227711.688 200821.344 189352.562 278378.781 192570.109 175671.688 157163.234 107423.242 81391.281 112372.695 94218.078 118374.719 288150.469 | |||
|
446 | nan 270156.688 269104.375 444523.875 532869.938 415343.781 432979.031 411866.812 436805.094 497784.375 481174.094 379297.469 363002.781 365920.594 390756.781 374817.188 359231.375 250583.750 322895.000 261233.156 199955.609 236136.906 191191.797 219945.656 192298.688 168597.688 148602.609 80784.656 172941.922 118108.719 131189.234 235281.906 | |||
|
447 | nan 247993.250 231283.844 374755.125 410374.312 405989.625 325503.969 353307.719 404774.969 394655.688 403356.781 443932.594 369006.438 453492.188 375694.531 404551.781 423032.281 391606.875 326728.625 231765.109 233923.938 266902.781 210135.938 187670.734 141560.328 136761.812 132739.484 126123.250 85412.719 104697.719 90695.133 209185.391 | |||
|
448 | nan 292979.781 250750.734 300513.375 325013.875 383579.281 413129.719 359436.719 427117.406 444489.094 501833.625 388531.781 364168.219 342187.562 425379.125 296811.375 247309.438 310061.656 240581.359 274675.875 317017.625 217338.000 214177.297 180484.016 190794.844 201944.484 147524.391 127716.078 133655.844 88544.938 121666.555 221643.016 | |||
|
449 | nan 265204.688 265362.469 310891.094 209745.594 375865.500 377601.688 340183.812 416358.906 403954.594 344338.594 341252.625 369882.469 460050.000 269024.219 414701.781 273097.250 267295.281 363322.969 220929.750 283105.938 217376.797 207576.344 192872.938 147332.391 129285.703 100525.031 127957.977 122671.031 149429.641 109338.117 169582.391 | |||
|
450 | nan 279804.438 204147.047 266346.062 247229.906 255911.250 337095.062 425231.969 331528.031 310244.219 417390.312 293691.875 393447.469 386882.469 324743.938 263712.469 301489.375 207562.203 237123.453 160097.203 268355.750 229916.562 180411.516 153375.766 156089.406 158382.016 182584.625 138838.438 136456.797 109812.844 108380.000 231090.953 | |||
|
451 | nan 232992.547 195146.250 193585.609 284773.344 273303.406 359493.906 299689.750 304136.844 385475.000 337795.875 331609.719 320011.281 280439.125 284264.375 260575.000 296102.500 272072.875 326424.375 242987.250 182211.266 172667.672 133071.188 138985.188 176227.203 211058.594 157522.906 147637.000 120655.930 107146.055 76127.930 195314.312 | |||
|
452 | nan 165731.234 207504.766 207205.234 255442.609 263167.031 217994.734 265811.469 276896.719 235511.062 249501.406 268903.844 292935.781 288081.312 275751.281 205316.047 235681.703 198865.750 166014.984 174737.266 188012.203 205016.750 127777.719 149575.828 156685.188 134459.375 162775.797 120500.492 97509.492 120873.820 95500.297 84992.906 | |||
|
453 | nan 135984.234 202766.297 182827.656 263593.281 227400.297 232952.500 247720.188 224543.641 201920.391 209810.859 231253.609 299564.875 178097.734 242530.188 169144.891 194847.391 187505.000 162148.219 187992.781 128849.633 111829.953 202999.859 147809.594 135905.125 121237.156 122710.820 100837.172 116238.547 95649.945 109114.742 112762.969 | |||
|
454 | nan 125538.703 143547.688 157035.203 219901.062 153104.469 190333.734 244872.750 224042.609 214366.438 206370.297 187083.375 245829.312 198860.891 148759.562 179882.031 184526.797 215084.547 181104.641 114828.727 163901.375 111802.742 164539.688 167935.750 164252.297 124908.078 150209.859 133765.016 107766.203 96406.258 113458.523 90475.219 | |||
|
455 | nan 119440.094 95262.906 137398.266 154456.375 138803.312 216625.000 182194.438 184007.438 177478.531 165127.641 166680.531 111603.648 156867.328 144940.172 184251.391 133857.047 135851.156 103073.867 155603.734 120857.648 114692.523 126795.953 108810.398 96388.922 85061.836 98531.430 78892.039 138307.203 134095.812 78821.031 105870.227 | |||
|
456 | nan 105205.820 123034.422 104342.180 144975.438 103202.594 115028.945 162627.188 128873.078 177738.484 121767.969 149008.531 155714.062 161920.938 154234.750 124420.133 141321.844 98565.531 108884.352 94259.133 94192.312 111138.031 90995.125 94258.055 96738.820 69534.133 74783.406 78042.953 78975.859 80968.703 73111.195 100080.656 | |||
|
457 | nan 87923.148 98677.781 113410.469 131862.562 97965.430 120034.219 103394.469 116474.328 104703.281 85289.781 108650.078 117540.047 114048.922 86630.734 98239.578 123837.500 77897.852 94785.922 93023.820 108785.883 85391.070 101283.219 75948.367 99732.523 55210.312 103810.219 65979.891 74636.445 49709.141 63424.484 74742.570 | |||
|
458 | nan 88376.234 91088.492 99730.383 99308.508 81024.461 104752.719 119290.070 100743.422 103891.133 96227.258 100838.453 100618.625 100454.867 96580.008 104792.648 96410.148 111171.797 94104.922 80191.227 81557.852 76337.211 110612.742 83130.094 81732.625 73624.055 69637.367 76446.250 70537.438 69887.789 48968.371 72481.211 | |||
|
459 | nan 96747.133 110025.703 130176.781 109972.922 160993.812 144132.984 108008.672 136023.141 138823.109 138092.656 135548.266 165966.891 158669.984 133515.016 130269.102 146003.703 147250.203 127611.703 129331.180 150969.719 122179.195 114571.828 85065.102 92989.930 112280.719 78717.578 85282.523 97969.656 77699.453 58347.684 64015.238 | |||
|
460 | nan 152157.766 193655.547 204521.703 153430.266 229972.047 180761.531 183272.375 234867.844 216426.250 172143.312 259234.547 200210.641 256609.844 246695.203 208015.516 206339.812 166352.734 204653.391 152889.734 166377.141 169661.516 149292.672 132112.438 139611.625 146884.766 107815.570 112495.727 119064.297 126293.383 108131.508 81538.789 | |||
|
461 | nan 192254.312 270294.344 375162.031 346586.375 288708.219 289384.562 296053.281 281825.031 362140.969 275601.875 374693.812 256754.109 288182.125 278076.188 232115.656 238014.062 246405.250 197149.312 210327.062 197798.594 224192.516 174262.484 138339.828 164271.969 228519.594 170330.703 118338.992 111785.344 119949.602 152356.234 97931.695 | |||
|
462 | nan 219143.266 334304.531 365040.375 355879.031 290855.656 361952.250 423563.375 415241.469 442376.000 501782.625 426545.312 404874.375 374300.312 391379.000 384084.531 401275.625 325656.125 275839.594 290730.719 250458.062 207700.500 162320.828 201144.750 170637.547 187941.719 174864.891 103394.422 132612.828 79401.594 81338.492 129797.930 | |||
|
463 | nan 326008.375 458839.125 524539.875 394869.969 386043.781 477270.375 403724.531 439198.188 501610.000 465785.594 523916.594 508404.406 460793.406 446241.594 411966.906 347156.719 368029.594 279183.062 344083.125 242992.109 238432.594 212537.156 193684.094 211669.000 172399.766 155118.094 126251.469 118995.133 91888.203 98136.430 68330.195 | |||
|
464 | nan 494486.312 389530.406 563826.625 447983.625 516884.594 461899.406 505952.594 503147.375 595390.750 444334.125 656998.938 643614.562 514359.219 555491.250 441390.688 525214.625 466171.906 321284.969 358333.281 384961.625 220924.859 253679.438 134659.609 165128.844 160014.141 169492.344 110221.977 87411.148 100727.969 76406.570 55616.191 | |||
|
465 | nan 401153.625 491546.406 492346.688 341054.969 439220.000 375694.125 551279.875 612107.062 598423.562 623016.938 430224.500 546098.875 512596.125 454382.125 431738.125 459638.031 286296.531 284523.219 288503.875 232509.141 166219.453 201031.766 192927.000 122345.273 114929.258 109766.320 102004.656 128612.805 83402.570 41532.887 69975.766 | |||
|
466 | nan 255922.000 464380.094 634541.000 417636.000 419591.125 616106.062 535682.500 620453.312 634099.750 587163.250 540430.812 592067.438 712598.688 519874.625 584499.250 438411.469 430849.719 365008.375 237999.203 297643.375 252551.562 226172.906 208480.203 113205.305 164499.938 198667.141 141519.266 110026.172 89845.867 104597.375 112076.883 | |||
|
467 | nan 379167.125 482084.969 497254.625 468269.969 379031.219 482548.594 530933.062 566272.062 602371.000 684018.312 654888.562 574633.750 613480.125 636200.750 454108.719 423975.281 388418.125 369381.969 266951.531 271023.031 299432.969 234763.656 189862.922 159693.625 123316.930 146886.453 124175.219 119687.820 66955.578 84418.242 91488.203 | |||
|
468 | nan 278598.781 556517.500 665489.250 469641.031 615805.375 537066.375 590059.562 591104.562 580237.062 635774.500 671706.562 526147.938 577367.750 536573.938 473659.969 455757.625 407252.500 414098.281 199076.891 239400.203 274458.938 252406.047 156643.078 142471.297 114698.125 102085.594 83803.297 92965.172 86290.094 85597.625 135039.953 | |||
|
469 | nan 371809.500 565469.625 617355.062 512830.312 570897.438 590128.062 416311.594 531218.375 758321.250 609796.188 658086.125 560287.062 586732.562 555244.562 467061.281 440863.125 410570.406 332302.625 288162.375 272668.031 212143.000 165316.734 182841.203 165157.469 110865.180 187106.609 112019.453 136409.047 119717.820 82063.977 87161.289 | |||
|
470 | nan 380610.688 399146.031 612248.125 487175.188 485206.406 425473.875 626758.438 490944.125 626817.438 555100.375 624081.375 547895.062 468729.812 452564.500 433080.188 451956.719 540545.875 324032.781 314291.062 329843.844 224318.453 179246.734 193663.406 127069.695 147213.609 123074.578 110766.781 135802.547 36721.309 92442.430 75007.367 | |||
|
471 | nan 291525.688 437193.219 583291.625 569286.812 475172.500 541887.375 533979.250 500181.219 613746.438 434142.188 536146.750 589794.062 543399.938 515913.031 464571.000 432594.469 388370.688 237001.016 344073.438 396070.969 244203.656 271392.344 183004.484 119637.422 140195.359 184685.266 110670.031 120746.602 99689.070 79270.883 61078.898 | |||
|
472 | nan 214856.141 586173.125 587697.812 431236.531 447251.375 481104.125 506125.281 493498.312 503795.812 453243.188 428739.219 546802.750 459717.531 497501.281 448458.500 443706.469 380756.344 351473.938 325921.281 245270.641 278764.844 209111.484 169461.188 143671.391 167589.625 167437.125 168115.578 133605.000 114320.047 87857.789 49551.914 | |||
|
473 | nan 286947.594 534021.562 715894.750 379987.875 386160.188 507321.719 402012.812 494135.469 527222.312 629133.000 559396.750 532619.500 471521.312 470285.281 363524.094 307294.094 362249.406 318787.156 330925.125 206730.891 217831.484 182612.250 159411.797 139591.188 164743.109 102114.953 124241.867 74707.141 125084.203 77338.555 91108.344 | |||
|
474 | nan 268329.219 605172.125 760973.875 428294.812 452165.031 421606.125 556829.938 473231.719 542896.625 523223.969 522937.188 516578.500 560039.125 428607.906 351234.875 401924.625 310557.781 323013.062 306859.312 259140.453 189919.688 236975.141 229381.047 135060.891 205151.000 147890.047 88906.422 131677.234 112491.617 88973.406 91192.055 | |||
|
475 | nan 279902.375 474361.125 713897.750 340593.656 371481.719 362005.875 437315.281 429071.188 387969.000 456916.094 492265.625 501623.906 426067.500 443872.375 428457.188 412377.969 387321.906 258127.312 344154.031 192265.453 197098.047 175589.703 149346.438 245465.188 136331.250 95179.406 103161.883 110203.102 138828.609 51309.711 81541.922 | |||
|
476 | nan 263858.812 410179.625 767140.812 461880.594 468043.781 578524.625 497477.781 436506.812 506557.188 603768.438 506641.188 511363.469 535966.562 563446.625 437647.281 337094.594 345155.438 302720.938 318290.844 234185.984 212977.750 196970.000 146008.375 145740.859 193683.484 117330.320 185268.766 99496.180 111385.922 115720.930 66122.094 | |||
|
477 | nan 280146.562 438774.781 852190.625 456936.469 379300.469 387732.812 436653.969 491436.906 455249.000 465438.219 533057.562 477672.219 442165.281 420142.031 374282.125 367274.375 312973.719 279893.781 264334.344 239369.953 254065.547 135328.500 191374.906 165377.141 193667.797 113372.805 74492.781 138408.016 118371.969 89131.719 75655.867 | |||
|
478 | nan 290708.156 588339.750 819420.062 469567.781 493297.375 347104.781 381082.062 475216.812 449297.375 448098.375 459526.688 339302.219 402057.219 465661.531 367953.719 407100.531 356445.625 316296.844 272949.906 261678.594 292936.938 194405.500 168941.203 145460.016 135254.141 164317.500 165914.188 98504.906 144986.469 92673.359 58983.172 | |||
|
479 | nan 276827.469 393022.781 775812.188 489455.875 392559.125 466470.500 378989.531 391584.469 433326.375 460894.875 414555.812 405268.469 349156.219 442760.781 368478.719 336359.719 351147.188 219404.516 323277.469 144181.266 210140.234 203092.859 161936.438 100466.070 142929.688 132782.688 114419.203 120864.930 93992.773 100986.172 75116.016 | |||
|
480 | nan 290145.781 452922.219 1013799.625 404020.594 474914.000 412462.469 464874.906 468079.500 522080.531 448691.781 475177.469 469996.188 455929.688 459174.219 364831.688 338948.031 257520.406 301188.812 307541.438 240034.766 239389.562 161477.859 176000.641 163160.812 120122.398 167813.438 141065.328 107876.930 145367.688 101559.547 95918.555 | |||
|
481 | nan 305996.625 351360.281 1032588.250 506817.188 471118.719 456834.094 350415.375 411838.000 387942.312 495313.375 402820.906 462334.625 364416.000 387708.594 444542.531 373938.656 323955.656 276476.125 221336.000 181098.812 173864.234 228170.594 154767.641 195315.438 171460.516 113427.703 100649.617 110427.969 116421.727 104209.258 98833.273 | |||
|
482 | nan 255192.234 294071.656 1074587.875 481774.094 286913.125 398237.312 417103.406 398579.781 378518.719 391811.531 349726.719 362483.094 311293.281 400574.125 248323.750 282471.875 314214.312 222897.688 249572.438 191656.766 190573.188 183399.453 203472.688 140164.688 138245.969 146424.469 134076.172 77186.766 98462.320 99655.203 58381.777 | |||
|
483 | nan 326100.750 390185.906 1123754.375 525711.750 359765.375 367896.719 330011.375 422652.531 421258.500 463296.375 368249.594 357445.812 389744.531 357924.531 315272.688 282924.000 342337.125 234158.953 267865.875 192437.234 192488.812 159236.812 268406.938 157636.062 132031.641 157314.109 157087.078 132650.484 94310.242 111627.422 65562.109 | |||
|
484 | nan 360661.938 350536.625 1130756.125 559721.562 318247.438 315433.031 342893.531 309704.625 399377.875 349612.219 310411.625 335604.781 363590.000 346160.156 374551.625 248618.938 339781.562 221434.906 215495.234 218202.688 188889.891 143109.016 157888.547 112530.844 189430.234 138412.516 122386.977 97497.719 78953.945 89552.695 78342.305 | |||
|
485 | nan 388203.781 252611.891 1162397.250 609053.438 458800.688 402106.469 327999.688 397751.125 302252.625 376095.969 384863.125 366811.500 402515.469 248615.484 293577.219 305496.594 306128.469 240872.656 234266.406 207718.094 181923.938 117726.148 207859.859 159088.266 119375.117 126495.297 122874.656 121195.805 118140.555 140187.766 107397.906 | |||
|
486 | nan 260351.906 287522.500 1034516.188 548844.312 315832.188 308784.156 304139.219 277349.781 301213.062 384399.281 376245.312 361747.625 334574.375 303789.375 275091.531 228119.234 304273.219 233050.984 174263.109 191358.188 178667.703 146897.594 169714.234 138241.281 182974.266 105622.875 139530.078 114493.648 124006.078 112484.055 111329.797 | |||
|
487 | nan 327205.906 280282.125 1043735.188 615557.812 267359.375 295499.375 254225.297 328397.625 348593.938 357204.688 320311.219 226043.656 304146.281 250621.609 312466.531 344799.719 241128.844 192839.594 171952.484 149229.500 200582.062 164811.312 125837.023 122725.500 136870.422 112252.273 123030.430 122575.727 87954.953 114488.477 78523.555 | |||
|
488 | nan 322422.062 327457.875 1110049.500 630767.750 360382.844 328089.438 283312.500 317954.969 283576.656 197947.609 281711.531 272700.531 312222.531 320684.750 295570.500 206954.562 209880.438 270222.094 195682.984 203756.656 203776.062 170470.312 149177.641 152976.203 107942.102 156717.234 98674.250 102882.883 117137.195 102411.922 123578.078 | |||
|
489 | nan 392812.875 423091.188 1113243.625 597161.812 286644.938 261157.688 247831.203 227707.562 266802.969 281940.375 353692.375 255885.844 243589.688 234428.859 255590.641 253125.641 227106.500 171598.688 208299.688 154865.047 137588.188 151765.344 170384.891 130257.281 143478.859 112790.945 186471.578 108194.773 111209.172 131305.516 96251.453 | |||
|
490 | nan 363273.875 498938.625 1004211.562 692048.062 343991.406 257338.047 232618.484 240810.438 215146.906 287505.250 246484.453 266759.781 244357.609 215713.062 233156.688 212794.203 281753.812 238849.109 142983.391 139874.109 145039.016 185093.312 140968.516 121679.258 166365.141 163915.391 138557.203 133639.453 85317.242 59697.301 78195.750 | |||
|
491 | nan 361100.344 730427.688 1032740.062 772394.188 339257.406 215416.688 180606.500 231933.859 251658.312 247727.797 270818.219 306018.219 250121.156 233657.062 205440.016 227194.641 130679.477 166488.984 183198.578 181532.453 146278.672 140943.688 154046.266 149233.141 139973.469 142322.172 77131.906 133579.734 116100.125 89754.305 87022.820 | |||
|
492 | nan 357681.531 894181.562 1166991.000 907067.000 322124.531 219705.906 210777.812 188582.688 189886.672 227588.547 228883.406 192022.297 190968.938 254040.234 197662.141 189363.656 188645.812 202018.484 193955.359 127142.297 142577.797 126974.906 119001.078 148889.344 132287.734 106999.805 127365.820 99797.781 69916.594 83099.164 71516.695 | |||
|
493 | nan 263534.438 1020699.188 1293422.125 801855.062 339276.219 207684.000 221186.562 214567.453 200008.703 185970.938 203441.641 219362.344 243143.250 222841.641 179767.656 163077.922 180693.984 104382.672 176900.688 133853.703 109506.344 130387.617 143941.016 151503.219 106452.148 113912.992 138612.391 100530.633 83543.805 108942.148 59185.516 | |||
|
494 | nan 297571.906 1018464.812 1515054.500 809387.938 315625.812 240587.891 211130.344 169781.656 177033.453 254464.234 227282.859 209222.453 142664.391 168865.359 142013.516 167285.562 168266.922 139908.438 122983.375 139375.797 134472.734 122843.203 151004.641 100843.023 110090.672 105861.492 70260.719 105198.281 100830.047 98558.125 64911.648 | |||
|
495 | nan 307148.781 1205107.375 1607637.250 880603.000 272436.656 185440.062 162382.703 190344.266 185352.328 108307.547 186980.688 173752.438 183768.594 205249.734 157359.594 158873.234 146772.422 112564.695 152654.312 133645.094 144729.078 138605.172 137315.984 80602.086 121587.898 106539.781 88764.906 108698.477 74231.406 109726.172 82797.984 | |||
|
496 | nan 237788.453 1234498.625 1718500.500 904805.250 284754.094 170125.750 188277.797 148413.656 217567.516 153192.281 235679.141 172694.703 217411.297 196314.094 113948.469 137838.906 131976.141 136912.922 125155.195 119184.828 107202.508 111554.531 128703.148 102512.883 68820.781 74580.000 64675.215 117527.445 97652.195 66068.094 85101.508 | |||
|
497 | nan 247914.906 1076528.125 1988759.875 985325.625 273519.656 156406.172 181385.266 186330.250 146280.797 155277.812 182583.234 171023.109 136673.203 131088.609 140909.078 113472.883 138196.047 135658.984 127008.250 132747.641 124036.555 89003.219 101781.328 82898.875 85636.484 90085.430 73530.469 77871.188 86791.188 75157.305 59964.977 | |||
|
498 | nan 202308.562 1220918.500 2093622.500 999165.938 362005.344 151887.562 126801.469 149661.578 183478.094 111498.617 169282.828 124560.422 181880.609 166969.984 140388.203 164945.594 121070.398 121044.203 119040.758 143634.328 116785.500 97517.945 109734.180 86785.648 97172.047 102871.375 92415.523 69530.250 66071.594 75983.219 67029.281 | |||
|
499 | nan 242715.453 1227116.875 2102712.250 993413.938 314051.906 173722.953 124423.180 142184.734 123910.594 176005.172 182743.438 129424.977 150749.734 146798.984 130003.242 128555.719 147579.547 99183.445 104190.680 98520.492 87807.961 130366.445 106396.148 105332.070 90092.508 97359.242 85337.188 76719.797 92028.031 69210.930 54713.387 | |||
|
500 | nan 224881.312 1046571.938 2330662.250 1118521.500 310969.594 141436.188 121689.148 162326.500 159224.312 163722.766 156809.641 140380.203 142980.641 129985.195 107396.273 133910.938 129154.758 113368.367 138776.125 108295.719 86394.430 73427.219 125015.180 112512.305 77367.688 85287.055 81489.945 86081.523 67520.070 63879.352 77720.969 | |||
|
501 | nan 266425.125 1083077.625 2721694.500 1188287.500 422847.375 184404.484 137885.984 117783.398 191019.859 156807.078 109851.172 150623.016 135833.859 90823.383 107167.125 90081.359 96329.797 148727.250 88726.742 113408.547 94686.398 102318.719 64305.852 106973.828 83923.742 85401.008 78040.508 63980.352 87572.773 65043.684 56563.027 | |||
|
502 | nan 267216.750 1212588.500 2821754.250 1128041.500 371773.125 173019.969 143055.797 120460.500 163437.734 190907.859 156003.000 120228.617 148739.438 114353.008 124626.328 96500.703 91778.477 98384.594 91362.164 102195.055 75671.406 101500.320 71316.102 77931.719 65485.500 92732.555 71669.141 56625.066 86383.430 80528.734 99578.172 | |||
|
503 | nan 287370.531 993445.188 2770927.750 1203981.125 382978.688 195189.859 127602.117 124085.625 177753.359 183577.016 128927.633 80613.055 93931.180 110901.344 122154.578 75042.945 96923.453 78767.070 99984.031 98180.000 97103.453 81076.109 76803.516 78760.570 84724.641 61867.621 74955.820 62908.246 79308.492 50793.371 63008.953 | |||
|
504 | nan 300200.875 881674.188 2878410.000 1433746.625 380376.844 131749.438 111642.172 101401.469 146636.422 137240.688 127469.828 127054.383 89832.141 106606.750 128354.750 78244.719 100814.867 63025.500 90510.133 63426.473 74211.453 66423.445 79112.672 72881.578 76384.250 67782.758 70104.609 65603.742 84479.141 74368.844 55905.988 | |||
|
505 | nan 365787.500 900002.250 3040766.500 1504078.500 370777.000 185157.422 109652.898 119016.453 149759.266 154018.312 109744.195 93879.203 99812.000 93647.102 102408.008 105816.055 89292.367 80274.055 86955.969 92588.406 71421.102 101351.852 78558.812 70310.461 69242.773 50520.676 61779.391 61243.000 57822.121 46941.090 57936.887 | |||
|
506 | nan 406128.688 829024.750 2939852.250 1490940.375 442113.719 169114.297 117817.227 86257.508 153627.953 132511.109 121514.922 82128.633 114593.328 84704.109 89443.289 95160.742 85292.758 86376.891 96779.383 91108.461 70086.766 60043.773 85722.320 58694.613 82475.680 80444.680 61098.086 75693.094 80776.320 78975.695 62152.566 | |||
|
507 | nan 509990.500 807073.625 2660012.250 1746994.875 485889.094 204370.047 97599.094 95993.070 172403.562 117326.367 122946.898 92492.555 79197.289 89110.633 122255.828 83766.945 96519.102 69778.891 73690.820 81563.930 67197.016 85181.719 74156.445 54498.164 60670.953 64931.391 60477.523 79594.242 71761.281 59859.887 53187.766 | |||
|
508 | nan 591036.062 776921.000 2880443.500 1573543.625 460647.312 177714.891 107407.695 114679.773 180035.391 131914.609 93286.445 106005.203 96219.508 80908.930 91479.016 81056.375 95214.258 115272.250 74250.055 84597.648 65519.051 61046.090 68375.875 89492.992 55362.777 65218.828 45346.871 62567.238 62294.496 62094.812 50360.352 | |||
|
509 | nan 671181.750 734779.688 2766677.000 1744455.125 492131.219 147643.391 133243.062 97782.195 132212.516 158222.766 129231.797 93778.500 91283.359 66459.539 68532.297 80442.016 70654.320 69276.688 103296.695 58858.441 76414.133 68457.969 67217.594 55138.023 44880.664 79272.781 55264.762 64913.125 57318.191 67277.164 52244.348 | |||
|
510 | nan 751936.000 720872.250 2723123.000 1762706.125 560927.125 206903.500 97902.578 100364.883 173816.266 143096.938 155428.312 72689.617 88139.422 78836.352 69993.141 73399.781 80028.844 73738.367 69503.133 63898.188 84676.164 57444.125 65865.594 63553.227 58324.828 61813.484 64719.215 67886.070 54418.578 77852.750 67751.633 | |||
|
511 | nan 830732.625 661709.250 2423897.250 1771234.375 496390.031 183539.266 123075.148 112428.547 149491.109 143673.000 131676.859 104204.344 76387.633 51805.836 86264.906 77816.484 87346.516 73085.938 56999.988 88331.305 60178.172 68215.531 74148.984 51020.812 64996.914 58501.191 65816.445 61676.863 64566.426 60355.875 58435.777 | |||
|
512 | nan 1025197.250 628394.812 2356247.000 2002788.500 664719.312 164984.109 84248.477 85576.602 154502.000 137964.922 97223.977 92645.805 77075.055 82697.422 84456.031 65653.656 61751.586 63030.562 62059.598 74078.992 54956.715 71389.406 52055.973 71094.438 66617.781 60561.953 72028.617 75780.695 45299.926 59394.266 61910.629 | |||
|
513 | nan 1092720.125 568121.250 2258458.500 2009061.250 590947.188 143000.016 108108.672 113349.703 192357.484 147004.125 88202.008 92717.109 66903.539 83055.445 109056.398 71184.633 63687.387 68474.461 60872.535 75602.914 46502.949 50562.301 75740.328 65079.984 59384.613 51177.973 65144.254 71327.391 61705.203 67029.320 58058.402 | |||
|
514 | nan 1208154.375 568269.500 2014280.125 2073213.625 657834.438 171845.016 100975.297 111748.094 161822.094 153408.125 94028.750 123166.297 62454.102 69221.367 96746.648 87583.547 71737.430 78022.117 81908.953 52857.984 81880.320 59690.297 76271.086 73647.047 87296.469 62148.809 72814.422 81579.164 81137.539 65725.336 74378.484 | |||
|
515 | nan 1317302.250 527052.938 1966856.875 2039189.500 731985.750 234410.859 74693.914 150667.891 175547.188 147025.047 99053.703 88558.430 76184.930 67419.281 80155.734 61255.684 84107.188 51499.371 60550.875 72898.570 51435.996 69087.219 58103.500 101434.703 92833.914 96132.422 65010.441 68769.594 44656.566 53735.477 40589.168 | |||
|
516 | nan 1545727.625 665267.938 1841683.500 2112783.000 831717.000 240259.938 102309.992 136087.375 176344.141 140087.641 93781.062 90411.594 78246.180 96774.625 60704.250 70639.117 88896.742 82353.594 60122.953 46242.141 52811.449 67927.258 82750.547 83125.570 87390.367 55732.891 66670.695 53154.941 50296.227 62411.246 78646.039 | |||
|
517 | nan 1533770.875 655025.875 1895106.125 2003105.500 814139.250 186118.141 102212.250 134654.359 188364.188 180032.641 67509.266 79888.688 109510.781 102679.070 91795.656 93010.438 69719.242 70447.602 69331.094 59590.547 65817.000 66826.344 76624.773 60207.984 61169.160 61769.789 53913.359 63023.375 55681.609 57928.898 54116.961 | |||
|
518 | nan 1611951.125 615633.562 1837558.750 2107885.000 689351.375 226768.391 107989.445 128186.227 193912.297 142355.734 113902.453 68041.992 85472.250 102917.969 83417.531 106110.453 67448.750 71221.406 57961.359 61631.746 59621.426 58836.160 58809.898 65633.828 60858.379 80856.555 73088.438 79138.398 87443.516 99753.633 75525.383 | |||
|
519 | nan 1615676.375 630884.875 1509678.750 2020905.875 794837.250 226858.297 94529.594 111993.008 214068.188 160073.703 73202.234 75257.406 85545.805 92782.266 88997.539 62743.637 57200.012 68507.461 73487.531 65909.984 65559.719 73988.094 52096.516 76279.211 66191.789 83712.125 80012.406 57337.688 88281.258 102096.906 79729.523 | |||
|
520 | nan 1547681.625 617038.938 1363105.875 2084683.500 892441.062 230818.547 133591.875 126656.398 213795.938 134620.938 71805.656 92004.602 102813.344 94103.594 89787.852 55213.312 69590.312 55592.703 77235.320 62704.977 75834.609 53670.016 76037.695 74603.820 93638.008 85689.656 112024.945 67222.594 83951.516 77238.633 90024.625 | |||
|
521 | nan 1524408.000 647207.188 1261076.500 2017781.250 932814.062 253000.234 93685.898 131364.484 179767.766 130822.570 97517.180 90839.625 102222.000 109328.047 92653.297 81998.672 88936.570 55880.422 68194.945 78365.445 70134.094 80308.406 68548.977 73260.625 55421.527 69503.258 78455.492 66888.711 62668.777 40855.484 35184.781 | |||
|
522 | nan 1624719.625 706299.938 1205171.250 1940710.875 934670.438 256391.859 118591.578 124437.695 234510.453 165750.219 82586.602 93678.820 131052.844 121153.750 89170.797 102055.320 71096.359 80606.016 73655.531 100269.258 76726.328 66095.055 68123.836 65123.172 53361.535 66328.852 50250.004 48689.836 53557.715 55544.141 45050.637 | |||
|
523 | nan 1765512.125 860317.188 1131342.375 2053417.875 980892.938 247083.984 124503.094 125584.930 226077.891 100831.422 109359.648 88043.328 150549.375 121670.852 93773.805 99396.125 104851.922 86360.719 88921.250 75929.125 68814.461 77044.445 67485.742 66119.914 89133.734 78516.633 64312.566 68047.664 53418.137 59188.812 48223.004 | |||
|
524 | nan 1922191.125 904808.938 1021589.250 1876268.000 934275.438 279528.844 89069.477 170499.188 205368.344 133455.000 106961.352 119011.055 160622.297 135904.672 141612.984 131556.156 80918.594 101055.719 78887.484 84044.094 73942.750 79866.664 78271.367 83633.383 73495.898 67637.617 68919.492 81796.945 77902.570 52039.559 60648.973 | |||
|
525 | nan 1864983.625 928354.750 1092817.125 1896283.500 1019632.750 334800.812 73032.594 166266.656 242939.094 101692.883 110879.844 97382.703 159494.312 143492.391 144848.359 117016.406 99575.250 77487.031 73616.320 95933.008 100473.172 110534.406 111661.023 86904.742 65888.344 102882.281 48984.000 70170.727 85872.922 92432.641 61162.090 | |||
|
526 | nan 1967970.375 1053279.750 1045004.625 1885107.250 980153.938 315600.625 134174.438 123989.148 222153.953 139626.359 89364.633 136548.391 175482.531 162733.188 148914.156 121616.008 114768.367 106958.383 86251.586 88770.070 105275.156 85870.258 80604.094 65768.391 63900.312 78272.148 67608.555 81719.469 58777.312 82830.523 98626.430 | |||
|
527 | nan 2007812.125 1224978.250 1106191.375 1872761.250 1075542.125 347360.500 147749.391 179146.562 253409.953 166548.328 111354.250 178058.312 178173.203 140894.344 127789.820 136845.203 106391.844 85193.812 94200.281 122404.797 60198.359 77838.359 100169.648 84429.852 77368.469 91019.883 74345.000 61527.227 65268.285 73824.359 67432.469 | |||
|
528 | nan 1992036.375 1239407.500 1070773.500 1871520.125 1158030.875 335310.188 128924.555 154419.984 213900.547 175917.422 109145.453 136255.922 123237.250 146086.156 134771.078 150173.109 99460.977 94120.211 128900.547 109785.406 80402.305 87073.367 52298.973 66724.727 87210.664 75747.172 69494.414 80910.234 72133.289 71300.141 70096.703 | |||
|
529 | nan 2004807.250 1246792.500 1004049.062 1751790.500 1171191.625 368806.156 131579.484 196576.094 236736.562 167703.078 121584.008 126437.445 109184.867 133276.328 139177.406 128999.953 131526.312 100082.406 77631.203 99023.453 83478.250 77052.781 97030.328 81896.008 66748.969 49463.273 71932.508 71156.945 69312.297 74330.898 60313.566 | |||
|
530 | nan 1930577.250 1427983.375 907613.938 1703740.000 1213686.125 330972.469 132516.234 139425.266 208345.047 210124.641 183644.156 176316.703 154008.469 123846.844 189094.984 114180.469 124075.867 101573.477 93099.375 78643.781 74218.625 65677.562 88917.344 70073.570 82025.023 67784.633 78004.461 57805.988 51904.402 58170.398 47039.496 | |||
|
531 | nan 1982198.750 1510522.625 920418.062 1705799.125 1174957.875 320228.531 144417.938 173031.047 292046.031 231003.453 171260.938 157972.422 212017.062 167644.438 145964.141 129812.203 164935.672 120310.523 110294.867 86199.594 70094.055 61474.039 56064.941 68761.242 63609.738 75158.078 61930.176 76110.531 64045.387 40314.109 59490.953 | |||
|
532 | nan 1986063.250 1584367.875 868562.750 1560093.500 1144391.750 323648.469 138095.969 189324.688 206875.938 186104.891 136940.578 149370.266 157923.781 170945.109 124138.883 145287.062 141227.938 112923.102 120518.633 76973.281 68559.625 48054.504 78020.969 71469.445 79726.719 62814.016 62486.223 57318.391 62930.016 81594.781 46722.559 | |||
|
533 | nan 2007704.875 1429988.500 918621.188 1586028.750 1216639.625 315278.625 194921.500 195133.906 240638.016 198089.516 174534.875 179940.891 185916.016 206105.906 174448.672 152252.703 157997.406 136790.953 106257.117 70107.656 67945.406 80677.070 93386.094 61196.852 83360.648 91362.656 83486.266 57509.121 57493.016 52569.059 69346.289 | |||
|
534 | nan 1987483.500 1522368.625 906290.938 1465235.875 1079772.125 340012.469 143533.125 171890.984 214665.516 214154.766 189107.422 155241.422 149871.078 189130.125 202270.484 119811.398 147894.594 114648.844 124372.367 92887.016 61247.961 71470.961 62801.984 78496.094 71504.281 86332.641 59132.961 59222.301 57892.703 71840.750 55157.613 | |||
|
535 | nan 2093308.875 1567607.250 943094.438 1570408.000 1149215.875 362203.469 158708.250 243115.109 218092.109 195429.438 188171.031 187130.281 154265.438 219626.344 231725.094 169004.281 130134.117 116366.906 146782.109 116097.773 64880.066 67978.789 79037.742 54817.691 73602.992 64669.227 72005.336 52497.266 69044.344 38177.152 60563.062 | |||
|
536 | nan 2009562.875 1607401.875 946183.562 1385801.750 1185527.375 297126.781 137629.859 200305.109 258740.438 203038.609 190250.109 184216.984 167855.828 222548.391 212108.266 139158.250 136489.484 114780.203 120244.078 101537.719 69992.867 67441.094 97767.758 78003.242 64520.137 70819.461 69605.219 55409.801 49217.324 73865.656 57518.648 | |||
|
537 | nan 1981547.250 1715741.250 926470.938 1343968.750 1183130.500 381746.125 146803.312 202549.266 246660.703 199522.047 205668.000 173367.547 175680.375 226640.344 207517.938 155382.516 133398.203 137760.516 128049.227 105227.750 75209.344 69963.039 80460.391 103023.492 83521.242 80731.289 73378.422 69252.977 73855.719 49130.762 40406.441 | |||
|
538 | nan 2002893.250 1655178.375 959736.750 1498214.250 1210034.750 387487.906 159619.000 193058.797 228456.062 203310.953 212011.000 239118.438 199221.344 212558.266 176655.562 136578.812 158485.062 93989.172 111209.617 115706.469 75131.102 93028.469 68207.078 78689.766 88870.297 57658.660 68321.078 75974.719 44654.273 59861.926 68693.930 | |||
|
539 | nan 1908114.375 1671322.875 984129.000 1360466.125 1209353.500 400460.500 162809.953 175512.125 213540.453 232249.641 190958.609 197849.547 227972.453 192922.000 165544.484 154964.062 132606.594 103666.820 117307.953 74140.570 81541.625 97663.531 67819.992 73639.406 61456.875 80130.070 69992.688 58939.898 58028.125 53688.176 59291.191 | |||
|
540 | nan 2160240.750 1633833.250 989260.188 1351721.875 1130549.750 421213.531 161576.891 222057.109 175046.828 217550.984 248980.594 268627.062 223126.406 196794.203 202128.562 193743.234 137385.828 130206.180 109720.883 91265.992 82252.148 91456.344 75839.688 62890.141 97577.695 63811.750 91370.391 76227.758 72403.273 48484.023 47626.305 | |||
|
541 | nan 2167074.000 1680877.625 967654.562 1241805.500 1250336.125 424100.875 137819.828 223667.797 244692.844 239564.906 238950.234 288098.938 261591.859 198621.594 234971.703 153983.594 143632.500 147706.797 125835.469 114903.273 90964.297 97942.383 91256.461 68483.688 85999.633 78016.609 76223.266 50270.191 75374.312 54866.875 56274.062 | |||
|
542 | nan 1909945.250 1657664.875 1039160.438 1478051.125 1196285.000 410898.031 208410.953 249286.359 176639.516 216569.797 215509.250 280757.375 199231.391 249822.016 216692.562 181008.625 167058.766 119916.203 120214.648 113957.102 95058.906 44661.793 71311.703 83800.727 86513.641 50027.410 78826.102 85076.477 58815.613 58381.715 50150.852 | |||
|
543 | nan 1838526.000 1693690.500 1016853.250 1242376.875 1154844.500 454768.031 190712.203 239223.641 265822.188 230322.016 275393.812 289006.906 198113.406 215497.109 220889.844 175998.500 148759.812 166756.328 113637.398 105028.695 87085.422 87109.609 90479.945 60585.738 77493.930 57543.777 58941.527 41172.867 78483.117 56876.086 58470.887 | |||
|
544 | nan 1806132.125 1752231.250 976978.188 1210131.625 1202970.500 490948.094 175744.250 196111.688 177369.781 215345.047 213616.047 210268.516 196469.609 251319.266 260858.609 203144.344 153974.578 93818.508 97721.852 91292.219 71422.281 61777.289 66933.133 65311.473 58780.598 63816.336 77040.500 62062.746 43891.988 45576.266 55484.098 | |||
|
545 | nan 1894644.875 1694807.250 1011810.438 1174765.750 1189106.875 515335.500 171869.922 186056.734 247155.734 205656.609 237286.547 231484.109 204407.000 260854.812 218092.766 204672.438 145452.562 121428.742 111342.742 88187.336 67534.836 71952.930 47840.496 79742.344 65574.297 54057.004 57293.691 44140.680 54177.887 37123.293 57003.414 | |||
|
546 | nan 1845548.500 1634502.500 969211.812 1242812.250 1149273.000 452392.375 176299.891 200330.984 263131.031 221769.953 289331.344 282077.500 259067.344 241946.766 260801.812 171386.453 164029.266 151612.719 128893.133 121888.328 89863.617 87389.820 74065.836 66712.164 59744.840 77098.133 59502.035 65577.367 66282.320 43951.012 45885.816 | |||
|
547 | nan 1791488.125 1718631.875 988412.375 1155059.125 1176332.000 498238.000 201707.062 224704.562 213274.312 249583.062 329952.375 271736.875 198466.688 232327.641 217940.516 233268.656 140931.078 119029.727 111623.906 71208.281 79766.164 74025.180 71966.977 90188.766 69678.977 62307.016 49876.672 53276.586 47762.426 51937.535 36167.844 | |||
|
548 | nan 1905003.125 1655192.375 1001795.938 1145264.500 1238821.625 573088.938 209365.000 235639.438 229496.109 237305.984 275155.875 316526.406 220799.062 246607.141 247291.516 223852.000 174158.734 154583.125 126785.930 92939.516 95018.406 75382.367 60926.750 68336.539 62083.949 49131.613 72609.578 68482.398 33559.465 62155.113 61080.375 | |||
|
549 | nan 1824318.500 1666059.125 1111853.250 1169180.375 1111496.750 463836.312 189544.688 229210.094 221394.984 300136.375 351581.719 321413.562 221736.250 205882.953 216730.062 257363.156 142448.344 157545.156 113186.477 84106.094 67002.273 77773.188 63762.711 79827.844 81243.414 64290.121 60881.891 44344.715 41748.809 61901.059 56142.297 | |||
|
550 | nan 1808790.875 1682687.250 1081321.125 1403258.000 1077086.000 479171.406 265642.656 174124.250 220619.062 224702.766 358034.625 365747.406 255418.562 234413.750 232370.047 217949.359 149483.016 125442.328 98959.719 113384.469 81760.500 95150.469 78936.086 39251.203 70424.438 72374.430 51110.348 53728.562 36671.668 46650.402 54059.602 | |||
|
551 | nan 1702688.000 1698220.375 888451.562 1216278.875 1141606.000 535987.938 218979.703 228512.312 285880.031 273810.969 314967.281 383043.281 264765.562 266057.562 260340.500 180808.297 147037.234 160926.688 100555.469 77787.633 80911.906 70774.016 76961.906 58394.535 78447.539 65945.812 48789.426 54733.309 55129.777 46466.551 58951.938 | |||
|
552 | nan 1767498.375 1685955.500 1028256.562 1148296.750 1075259.875 554571.562 230705.688 280972.000 266213.688 213506.484 347225.750 374171.875 256762.797 225742.984 203578.797 217120.844 173281.984 126805.008 129398.703 96274.156 58345.211 49643.672 66724.906 81536.516 69700.445 48747.785 53390.848 39664.711 57661.559 57579.836 59617.023 | |||
|
553 | nan 1655182.750 1724722.750 1026744.375 1127433.875 1130922.875 579000.250 239601.047 199408.688 203086.734 222230.359 345828.312 357391.844 261245.609 223864.141 221183.266 199636.750 152593.688 114910.219 87990.820 87243.258 90575.258 71185.656 64965.227 54451.988 67434.000 50124.137 37406.340 52037.453 60121.703 43899.098 73782.531 | |||
|
554 | nan 1734400.375 1909046.750 991676.938 1071856.000 1001955.562 636826.250 243174.734 229435.094 236861.797 232937.250 297141.625 379602.344 252682.047 228337.484 228214.141 196838.750 140468.516 152391.109 109378.578 77191.656 65753.602 78809.719 61581.500 62125.977 50772.578 53467.098 49182.113 50799.988 51200.391 46693.336 33424.348 | |||
|
555 | nan 1986992.750 1636833.125 1088212.125 1040204.250 1142618.750 604385.062 208978.391 265918.156 223542.016 234280.141 298551.719 341161.781 256519.812 159222.969 197995.109 196734.641 170351.953 130195.773 102867.477 81652.180 89855.648 66815.125 64929.402 79706.742 49008.859 69088.680 54772.773 36869.562 52681.504 62065.590 41806.523 | |||
|
556 | nan 1997822.750 1821679.875 1099946.125 1098808.250 1038365.062 530487.438 238791.547 283002.219 216400.641 296683.531 364781.781 500458.500 338093.469 262679.469 242709.344 174654.375 164903.422 132391.641 95643.500 93337.531 88044.180 77393.969 71053.883 55495.648 47646.309 53687.125 51522.387 37701.520 59751.535 63168.613 36201.391 | |||
|
557 | nan 1872812.375 1843405.625 1025487.562 1205737.125 1049543.375 640869.062 246297.438 269059.406 172005.984 262419.500 350716.219 331106.000 288635.562 289015.219 228910.562 193630.250 185565.094 127640.422 83427.898 111420.273 74322.367 71995.445 77387.344 67819.469 47599.965 57814.352 57135.371 35015.855 29434.137 34594.797 41932.652 | |||
|
558 | nan 2039143.625 1871494.125 1085600.000 1134233.125 1048498.000 583330.750 261480.750 234126.797 226194.016 208800.000 360150.844 382266.688 293443.656 268172.375 227760.906 186641.000 194755.453 146396.688 102535.992 92322.219 71266.219 78913.102 72759.406 65041.465 57135.488 52402.715 48974.172 37341.875 47980.051 47545.629 34118.203 | |||
|
559 | nan 1964450.000 1944677.125 1055796.500 1233652.375 1082539.125 594276.250 256241.891 271676.969 227032.734 281160.594 353262.656 436162.688 310550.031 264068.000 231332.594 233437.359 139464.141 105602.758 108512.469 110769.172 63706.402 60938.637 82749.789 78688.141 51586.316 43312.418 40543.219 50974.512 37754.512 31058.207 38827.121 | |||
|
560 | nan 1948730.750 1827932.500 1096639.500 1208374.250 1076578.875 510024.906 292277.406 262897.375 228268.547 263910.688 365615.281 368658.125 339928.625 267377.250 210848.391 186246.453 165855.938 130970.953 90344.836 94247.453 68541.477 68446.531 77094.656 60060.496 63274.016 45059.676 34277.723 54688.352 48666.352 33505.465 39690.984 | |||
|
561 | nan 1973168.125 1849799.125 1137751.625 1173432.500 1016476.188 610202.375 250425.938 279418.531 194153.203 297530.375 291601.312 441885.594 270452.875 252710.406 212465.906 224708.094 144338.656 119386.000 91967.797 77194.148 70096.688 52199.754 73456.281 57109.875 56132.152 52567.551 42427.145 56677.086 39586.816 28877.807 40888.957 | |||
|
562 | nan 2079956.500 1814980.125 1122584.875 1198230.125 978002.375 597198.188 260004.141 214622.359 259105.234 284448.344 340660.906 430183.625 303239.500 257624.734 181557.875 207416.109 186824.203 129777.406 109225.898 110805.172 87909.906 80160.875 73754.117 38669.234 50565.465 37992.117 54898.500 37302.434 34797.145 32924.902 31795.639 | |||
|
563 | nan 2075567.125 1770190.375 1049440.500 1128549.750 1056601.875 600689.000 250944.312 274376.594 233942.641 258664.766 307843.469 384959.031 287154.094 215088.359 181957.562 176705.406 162102.266 95733.031 97626.695 85687.844 91985.688 67065.461 84470.727 62558.664 82513.695 38558.504 51248.727 36123.418 27830.863 32818.457 29243.188 | |||
|
564 | nan 1925829.500 1728420.875 1068254.125 1157953.625 1175888.250 521246.781 273439.219 181949.391 245046.312 316191.656 366612.969 376683.031 318440.719 189719.641 157410.766 169763.484 168606.938 135669.062 91569.523 86436.414 79487.883 73443.469 70381.047 82052.180 73282.148 54532.609 29076.645 58172.051 39518.758 26305.807 35330.906 | |||
|
565 | nan 1958800.125 1718904.750 1126346.250 1171625.375 1058969.875 580942.750 253797.906 271273.156 268212.375 286326.781 348798.812 387464.406 327715.906 179742.188 197435.141 157793.859 139970.781 92031.891 84570.898 68335.891 85929.781 51369.566 58287.199 49866.461 51185.902 48213.660 46307.613 32081.975 29241.623 36094.656 48363.547 | |||
|
566 | nan 1943180.125 1857650.500 1231843.750 1146750.125 1103675.250 533322.000 276486.375 256690.688 310931.188 295243.969 388443.594 440389.969 280776.094 230042.016 174495.438 168435.812 150639.594 108604.656 99662.742 82152.617 77117.305 57332.699 63310.566 78285.148 47730.902 43350.047 34411.492 41796.359 45002.730 38994.449 33406.547 | |||
|
567 | nan 1922594.375 1721444.500 1169967.500 1189488.500 1085151.750 545522.750 286021.969 265446.281 244346.641 323533.531 349591.344 403405.719 347771.344 236041.688 150610.422 158119.984 156594.641 128733.508 84542.227 79381.414 88467.398 40226.133 77741.094 52421.398 43423.035 58238.664 36933.105 34516.664 35433.395 50157.762 25062.676 | |||
|
568 | nan 1949953.250 1812532.875 1076398.875 1174335.875 992792.438 507563.219 277128.500 267636.625 257280.203 311712.375 384855.031 361155.281 320837.094 215570.844 237651.703 149061.469 121625.117 123042.180 105735.023 65489.625 80388.227 47516.777 52488.461 58090.090 43021.102 58622.246 48075.051 33017.891 33448.727 31000.424 31899.299 | |||
|
569 | nan 1856718.125 1727471.625 1143663.250 1155724.750 1046149.750 474536.906 224682.594 258052.703 230125.312 280098.969 321822.969 383894.781 257553.859 226370.156 157733.438 171791.422 114588.000 97254.852 105964.578 56581.297 80875.328 66118.719 57701.766 67036.180 50685.672 66468.977 36617.137 53205.102 39635.242 34963.465 31579.750 | |||
|
570 | nan 1951125.875 1681302.500 1167261.250 1280151.875 979656.062 538307.188 302895.375 230539.609 262839.688 303151.906 329421.375 352146.531 241946.734 224055.766 206487.312 154331.641 151312.312 108194.633 74795.633 69285.531 59858.203 78322.438 70799.188 60012.699 47655.973 45721.199 35014.562 48941.602 49047.812 42870.184 34709.344 | |||
|
571 | nan 2033458.125 1696040.375 1087277.125 1164356.250 979161.438 522888.719 256488.703 248387.250 220388.859 313684.375 365006.031 385235.781 264983.969 237884.562 193171.000 172821.172 94402.281 101058.375 73809.297 73445.633 69979.750 53884.246 44740.461 52638.711 55671.691 34436.141 46372.887 38648.465 35765.602 23016.555 16960.365 | |||
|
572 | nan 1857044.000 1687275.125 1230716.500 1212040.125 1091723.625 540029.562 288371.219 272336.188 262648.000 253932.188 425709.031 418218.312 261001.250 207254.094 165377.078 159807.641 118566.055 94988.195 78977.062 71971.250 62158.086 84507.656 41588.582 56447.949 42785.699 41591.816 34622.160 42111.746 30661.525 23096.221 30979.125 | |||
|
573 | nan 1965662.000 1824411.125 1102461.375 1303478.500 1024879.625 500284.094 277145.688 240864.656 235710.516 317108.906 365879.281 451411.688 306980.250 240953.609 182003.047 154138.891 134460.016 84166.789 88997.664 58314.047 47728.516 43624.039 55973.211 41799.766 40471.684 37972.848 30912.906 34792.297 21260.219 36266.266 23322.070 | |||
|
574 | nan 1874186.750 1622697.625 1184952.625 1200271.125 1113822.250 541869.062 293745.812 268347.188 288811.438 267194.469 328294.281 405398.625 278392.469 196943.641 198101.094 159176.594 116892.625 93689.570 69806.109 64240.379 52799.887 50313.848 76933.656 54970.047 37140.648 43922.609 28415.252 24181.418 22446.047 31416.512 24754.332 | |||
|
575 | nan 1757643.125 1733748.375 1169321.750 1194848.625 1072432.500 502279.469 253012.141 242732.062 261928.188 281800.969 399149.000 420520.375 271750.250 251697.234 184186.297 160251.109 120028.000 84333.445 78787.273 39099.527 72551.094 49826.289 55566.152 47026.078 47599.672 40847.184 27028.467 22522.055 24982.357 27163.438 21751.221 | |||
|
576 | nan 1994470.375 1738657.625 1150993.000 1184698.750 1066390.125 512350.500 304397.969 271296.344 251282.203 280720.219 355048.531 432472.906 282489.281 189851.500 142093.688 106278.156 108638.102 70560.305 70323.930 64501.129 74161.742 36630.711 64340.371 55529.902 27895.221 26695.457 14863.856 22582.564 22965.477 29412.617 30790.518 | |||
|
577 | nan 2006515.250 1770301.500 1204783.875 1149663.125 1050461.375 593111.438 305363.688 270088.844 285775.094 283112.219 406342.781 418372.219 243075.938 255864.094 177727.109 130651.547 99967.992 82727.016 78128.000 63664.023 61286.285 48671.836 63998.688 39059.527 26711.658 25941.025 41217.953 26678.506 15156.278 30178.775 22081.955 | |||
|
578 | nan 1883407.250 1745569.625 1194753.375 1180069.875 1051923.000 532384.250 340213.219 259848.938 227123.234 289633.031 398158.312 324421.312 211819.438 222012.844 146039.922 138395.578 111781.633 84328.828 79375.844 65551.883 41840.426 37039.254 52422.664 30856.781 41519.023 42897.941 21708.670 31752.926 17738.242 19922.861 22268.381 | |||
|
579 | nan 1859627.125 1772580.750 1178170.500 1158663.250 1043293.000 528833.188 264340.125 279582.094 233640.016 276315.938 324156.719 378758.719 225692.500 212783.406 152512.094 152491.703 102765.102 87839.883 59127.164 68169.852 53155.715 65204.012 35255.379 32600.812 36177.910 18606.967 28336.314 27122.383 27108.918 20999.627 14349.784 | |||
|
580 | nan 1760340.875 1705848.000 1238813.125 1184322.000 1046655.438 513416.906 289792.281 282696.375 282274.625 285409.219 326842.156 377981.031 293514.281 202562.453 175480.203 163388.000 132643.969 88800.695 74100.383 43534.246 63974.309 46047.059 68556.328 28041.982 55432.262 34295.129 33933.723 29314.029 15043.306 14094.959 9087.839 | |||
|
581 | nan 1655119.125 1685259.625 1149502.750 1215406.875 998728.938 527527.062 308323.531 271687.312 254687.766 355171.219 336676.562 306562.906 233523.156 258301.656 129005.078 103811.844 113254.250 83670.211 84292.555 37878.461 42524.535 35655.203 57717.250 29757.832 24904.057 27896.113 28991.855 9854.593 35975.027 18875.471 20042.156 | |||
|
582 | nan 1781521.875 1850444.875 1214310.500 1149120.125 1048866.125 479079.875 231123.641 280839.938 227496.594 275865.344 346996.125 327523.500 261310.406 232271.734 164128.453 151754.766 88556.906 76919.141 83133.445 61832.973 45380.375 56291.148 32588.770 39685.875 26177.170 16227.862 22788.811 15438.959 11535.253 31118.217 13712.872 | |||
|
583 | nan 1786228.125 1739191.625 1235662.875 1271317.750 1042681.375 567682.125 334666.438 245239.953 258832.188 284916.062 312967.656 287244.969 258103.438 211243.359 124522.570 134108.312 79538.586 81533.734 66464.305 46879.285 55042.973 44896.316 36996.867 38723.504 28228.689 36458.609 42011.488 15077.237 16662.795 11646.541 19508.381 | |||
|
584 | nan 1747301.625 1828350.125 1222542.125 1196806.125 1084370.500 584525.750 285080.781 238439.734 265197.469 302119.125 377116.625 326033.281 232878.938 189842.500 146024.094 153565.688 107787.070 80966.227 63926.176 43591.301 50987.309 51667.988 20221.865 24898.363 20670.713 18686.910 27183.742 20566.490 20853.662 19624.799 12584.331 | |||
|
585 | nan 1778044.125 1783654.125 1243306.250 1100184.750 996650.250 600336.250 283455.688 262538.500 304256.219 339621.062 334029.531 346007.438 223775.766 213504.734 151038.312 101221.148 99770.633 69304.742 65590.422 37851.754 44916.254 33320.090 33521.352 39118.328 41103.531 20036.617 20032.719 24951.107 22843.143 34708.629 26511.812 | |||
|
586 | nan 1652378.875 1942597.625 1199644.875 1201344.875 1095098.375 666843.625 276235.688 245246.312 283424.969 263315.719 319897.750 274598.406 259601.250 174029.609 133206.172 123835.344 66635.492 66466.469 67281.422 50168.113 41132.449 39206.008 48108.648 24838.674 39600.039 22183.016 13815.595 15535.888 17395.955 16925.398 17048.086 | |||
|
587 | nan 1706785.125 1923706.125 1216424.750 1191667.125 1143430.750 546760.375 313323.688 293490.000 229434.156 327059.031 288340.125 270861.344 183647.953 178607.016 133961.219 108550.406 77392.305 55114.754 51126.141 33605.176 50694.625 48313.766 51915.152 33385.203 31308.537 18564.312 19866.344 14153.149 24530.326 11820.629 9361.973 | |||
|
588 | nan 1672581.625 1827957.125 1308804.250 1204841.000 1068377.875 575933.000 346069.125 274959.625 237973.641 253876.562 291026.938 217201.094 244559.359 151476.453 117977.547 104346.422 66358.969 70456.820 42991.516 42016.879 47600.754 44578.422 45359.660 41835.746 27209.357 23980.893 19281.752 14763.329 13046.860 23633.107 20931.264 | |||
|
589 | nan 1643783.875 1897103.875 1324611.375 1245788.375 1087079.625 633490.562 344388.719 227913.250 304481.719 306919.906 318302.375 275823.125 224647.250 204640.109 141224.906 113762.055 76784.812 44206.109 61477.473 41112.836 41514.066 33645.586 37784.250 25931.238 18375.295 22693.033 27477.779 25289.756 9328.800 14308.119 19554.070 | |||
|
590 | nan 1707853.125 1916631.875 1284476.750 1205270.125 1036232.625 547324.750 274336.375 273571.531 296430.906 272327.125 281554.938 305201.031 200229.406 160322.938 127137.000 105618.570 64473.340 66218.281 33912.039 44772.484 31038.883 51943.039 40680.574 31469.680 34184.586 31581.102 17495.914 14938.738 16226.915 24317.820 18021.076 | |||
|
591 | nan 1777755.625 1890728.750 1186964.125 1307083.875 1113596.125 551079.750 345023.562 222756.500 298427.188 302910.656 347787.406 270792.625 182159.062 128508.383 119452.281 104586.898 69804.203 46800.523 35982.957 47140.480 40124.934 29389.137 36340.238 28913.893 25638.330 18486.508 19329.830 12647.256 19988.352 13544.269 7662.834 | |||
|
592 | nan 1663120.500 1861619.500 1400717.250 1203706.875 1171774.125 495571.594 299971.031 217148.500 277135.750 300843.469 312250.875 317784.875 219176.266 151753.891 130729.250 105989.172 68170.188 56368.113 52224.191 50401.125 34426.164 45393.598 35072.816 30434.283 23595.717 21645.232 14277.390 13319.043 20579.602 8476.293 8923.500 | |||
|
593 | nan 1631005.500 1880104.750 1344876.875 1125778.500 1175260.125 539808.062 327438.250 245976.391 268250.625 241755.453 262548.219 281772.000 201756.703 191725.547 142761.922 115917.531 73733.164 67642.156 51566.672 42692.809 39277.051 23371.375 26224.529 21167.586 24351.725 28346.750 14251.528 11786.422 8612.223 18330.057 13703.196 | |||
|
594 | nan 1551290.500 1875846.000 1339115.875 1087721.625 1101908.250 538968.188 345881.375 255035.344 242531.656 231573.094 296384.875 297615.844 190960.500 123558.055 124745.883 75053.367 85158.289 65496.699 46223.918 38620.254 35671.598 28965.713 39677.527 13456.288 25072.143 22922.170 12771.466 11368.507 15006.400 10648.954 11199.259 | |||
|
595 | nan 1440669.500 1799674.375 1283470.875 1055150.125 1171820.375 545634.688 292868.125 231629.516 266976.531 263168.375 294588.969 308727.375 210075.109 164548.562 141337.906 91034.055 76487.539 60683.977 53806.000 23482.727 50178.613 36872.402 29408.873 24143.029 11004.114 13078.371 16628.012 14545.965 13696.234 17719.559 18911.162 | |||
|
596 | nan 1437264.250 1704788.500 1317431.625 1122165.375 1144114.125 647889.812 266906.281 232530.812 205142.156 271320.312 274799.656 241925.812 207257.594 148980.422 106655.570 90116.945 97366.094 49594.711 31427.471 38586.574 24948.258 26607.393 30517.602 22331.283 28884.914 16196.681 18162.342 12461.491 11513.299 12482.025 7931.969 | |||
|
597 | nan 1401245.125 1698649.875 1325367.625 998605.188 1143491.875 624052.938 308002.281 205557.141 247856.812 240602.109 281908.188 259698.750 189849.141 194465.391 110257.172 97603.023 84110.672 46253.234 51106.438 42576.645 39950.402 20888.492 21792.320 31226.043 15212.318 21756.242 20493.812 10704.656 9682.118 7496.447 11155.763 | |||
|
598 | nan 1441538.500 1783711.125 1468141.250 1081133.500 1024551.750 653758.938 301628.781 251741.438 280077.656 324712.125 325928.375 287891.375 182226.234 151894.438 112240.180 92422.414 64285.262 61262.426 49309.184 41066.547 37055.254 28181.818 45338.441 24682.539 14560.577 17124.148 13048.921 12868.978 15704.970 10411.840 6148.530 | |||
|
599 | nan 1432276.750 1832041.875 1340898.500 1007527.750 1112253.875 661048.250 240452.594 207819.062 222839.500 200246.594 341138.969 253791.547 223968.984 172753.578 99022.742 69034.609 81282.102 54035.102 53167.438 30152.262 44976.371 41288.965 20717.305 19270.818 33039.988 15406.142 20802.518 10756.790 11133.631 9361.802 3869.316 | |||
|
600 | nan 1382353.875 1915056.875 1516034.625 981781.375 1080243.125 609505.562 274666.781 212587.500 282377.781 248837.688 303014.469 251285.641 226359.141 149491.328 117495.242 60568.449 58521.824 56389.438 40825.508 37091.949 18516.533 24323.039 26348.213 27180.627 31649.393 17337.277 19036.719 11545.887 22463.877 6930.066 8308.681 No newline at end of file |
@@ -0,0 +1,54 | |||||
|
1 | #ifndef SCIQLOP_COLORSCALEEDITOR_H | |||
|
2 | #define SCIQLOP_COLORSCALEEDITOR_H | |||
|
3 | ||||
|
4 | #include <QButtonGroup> | |||
|
5 | #include <QDialog> | |||
|
6 | ||||
|
7 | namespace Ui { | |||
|
8 | class ColorScaleEditor; | |||
|
9 | } // Ui | |||
|
10 | ||||
|
11 | class SqpColorScale; | |||
|
12 | class QCPColorScale; | |||
|
13 | ||||
|
14 | /** | |||
|
15 | * @brief The ColorScaleEditor class represents the widget to set properties of color scale's graphs | |||
|
16 | */ | |||
|
17 | class ColorScaleEditor : public QDialog { | |||
|
18 | Q_OBJECT | |||
|
19 | ||||
|
20 | public: | |||
|
21 | explicit ColorScaleEditor(SqpColorScale &scale, QWidget *parent = 0); | |||
|
22 | virtual ~ColorScaleEditor() noexcept; | |||
|
23 | ||||
|
24 | private: | |||
|
25 | /// Fills the editor fields from color scale data | |||
|
26 | void loadScale(); | |||
|
27 | /// Updates the color scale from editor fields | |||
|
28 | void saveScale(); | |||
|
29 | ||||
|
30 | Ui::ColorScaleEditor *ui; | |||
|
31 | QButtonGroup *m_ThresholdGroup; | |||
|
32 | /// Scale in editing | |||
|
33 | /// @remarks reference must remain valid throughout the existence of the ColorScaleEditor | |||
|
34 | /// instance | |||
|
35 | SqpColorScale &m_Scale; | |||
|
36 | /// Scale shown as preview | |||
|
37 | QCPColorScale *m_PreviewScale; | |||
|
38 | ||||
|
39 | private slots: | |||
|
40 | /// @sa QDialog::accept() | |||
|
41 | void accept() override; | |||
|
42 | ||||
|
43 | /// Slot called when max threshold value changes | |||
|
44 | void onMaxChanged(); | |||
|
45 | /// Slot called when min threshold value changes | |||
|
46 | void onMinChanged(); | |||
|
47 | /// Slot called when the threshold mode (auto or manual) changes | |||
|
48 | void onThresholdChanged(bool checked); | |||
|
49 | ||||
|
50 | /// Slot called when a property of the color scale changed | |||
|
51 | void updatePreview(); | |||
|
52 | }; | |||
|
53 | ||||
|
54 | #endif // SCIQLOP_COLORSCALEEDITOR_H |
@@ -0,0 +1,40 | |||||
|
1 | #ifndef SCIQLOP_QCPCOLORMAPITERATOR_H | |||
|
2 | #define SCIQLOP_QCPCOLORMAPITERATOR_H | |||
|
3 | ||||
|
4 | #include <iterator> | |||
|
5 | ||||
|
6 | class QCPColorMapData; | |||
|
7 | ||||
|
8 | /** | |||
|
9 | * Forward iterator for @sa QCPColorMap | |||
|
10 | */ | |||
|
11 | class QCPColorMapIterator { | |||
|
12 | public: | |||
|
13 | using iterator_category = std::forward_iterator_tag; | |||
|
14 | using value_type = double; | |||
|
15 | using difference_type = std::ptrdiff_t; | |||
|
16 | using pointer = const value_type *; | |||
|
17 | using reference = value_type; | |||
|
18 | ||||
|
19 | explicit QCPColorMapIterator(QCPColorMapData *data, bool begin); | |||
|
20 | virtual ~QCPColorMapIterator() noexcept = default; | |||
|
21 | ||||
|
22 | QCPColorMapIterator &operator++(); | |||
|
23 | QCPColorMapIterator operator++(int); | |||
|
24 | ||||
|
25 | pointer operator->() const; | |||
|
26 | reference operator*() const; | |||
|
27 | ||||
|
28 | bool operator==(const QCPColorMapIterator &other); | |||
|
29 | bool operator!=(const QCPColorMapIterator &other); | |||
|
30 | ||||
|
31 | private: | |||
|
32 | void updateValue(); | |||
|
33 | ||||
|
34 | QCPColorMapData *m_Data; ///< Data iterated | |||
|
35 | int m_KeyIndex; ///< Current iteration key index | |||
|
36 | int m_ValueIndex; ///< Current iteration value index | |||
|
37 | double m_Value; ///< Current iteration value | |||
|
38 | }; | |||
|
39 | ||||
|
40 | #endif // SCIQLOP_QCPCOLORMAPITERATOR_H |
@@ -0,0 +1,32 | |||||
|
1 | #ifndef SCIQLOP_SQPCOLORSCALE_H | |||
|
2 | #define SCIQLOP_SQPCOLORSCALE_H | |||
|
3 | ||||
|
4 | #include <Visualization/qcustomplot.h> | |||
|
5 | ||||
|
6 | #include <QLoggingCategory> | |||
|
7 | ||||
|
8 | Q_DECLARE_LOGGING_CATEGORY(LOG_SqpColorScale) | |||
|
9 | ||||
|
10 | /** | |||
|
11 | * @brief The SqpColorScale struct represents the color scale for some graphs (such as | |||
|
12 | * spectrograms). | |||
|
13 | * | |||
|
14 | * Its implementation is based on the QCustomPlot color scale (@sa QCPColorScale) to which are added | |||
|
15 | * other useful properties for viewing in SciQlop | |||
|
16 | */ | |||
|
17 | struct SqpColorScale { | |||
|
18 | static std::pair<double, double> computeThresholds(const SqpColorScale &scale); | |||
|
19 | ||||
|
20 | explicit SqpColorScale(QCustomPlot &plot); | |||
|
21 | ||||
|
22 | void updateDataRange() noexcept; | |||
|
23 | ||||
|
24 | /// QCustomPlot object representing the color scale. | |||
|
25 | /// @remarks The SqpColorScale instance has not the property on this pointer. The pointer must | |||
|
26 | /// remain valid throughout the existence of the SqpColorScale instance | |||
|
27 | QCPColorScale *m_Scale{nullptr}; | |||
|
28 | bool m_AutomaticThreshold{false}; | |||
|
29 | QCPColorGradient::GradientPreset m_GradientPreset{QCPColorGradient::gpJet}; | |||
|
30 | }; | |||
|
31 | ||||
|
32 | #endif // SCIQLOP_SQPCOLORSCALE_H |
@@ -0,0 +1,174 | |||||
|
1 | #include "Visualization/ColorScaleEditor.h" | |||
|
2 | #include "Visualization/SqpColorScale.h" | |||
|
3 | ||||
|
4 | #include "ui_ColorScaleEditor.h" | |||
|
5 | ||||
|
6 | namespace { | |||
|
7 | ||||
|
8 | const auto GRADIENTS = QVariantMap{{"Candy", QCPColorGradient::gpCandy}, | |||
|
9 | {"Cold", QCPColorGradient::gpCold}, | |||
|
10 | {"Geography", QCPColorGradient::gpGeography}, | |||
|
11 | {"Grayscale", QCPColorGradient::gpGrayscale}, | |||
|
12 | {"Hot", QCPColorGradient::gpHot}, | |||
|
13 | {"Hues", QCPColorGradient::gpHues}, | |||
|
14 | {"Ion", QCPColorGradient::gpIon}, | |||
|
15 | {"Jet", QCPColorGradient::gpJet}, | |||
|
16 | {"Night", QCPColorGradient::gpNight}, | |||
|
17 | {"Polar", QCPColorGradient::gpPolar}, | |||
|
18 | {"Spectrum", QCPColorGradient::gpSpectrum}, | |||
|
19 | {"Thermal", QCPColorGradient::gpThermal}}; | |||
|
20 | ||||
|
21 | } // namespace | |||
|
22 | ||||
|
23 | ColorScaleEditor::ColorScaleEditor(SqpColorScale &scale, QWidget *parent) | |||
|
24 | : QDialog{parent}, | |||
|
25 | ui{new Ui::ColorScaleEditor}, | |||
|
26 | m_ThresholdGroup{new QButtonGroup{this}}, | |||
|
27 | m_Scale{scale} | |||
|
28 | { | |||
|
29 | ui->setupUi(this); | |||
|
30 | ||||
|
31 | // Inits gradient combobox content | |||
|
32 | for (auto it = GRADIENTS.begin(), end = GRADIENTS.end(); it != end; ++it) { | |||
|
33 | ui->gradientComboBox->addItem(it.key(), it.value()); | |||
|
34 | } | |||
|
35 | ||||
|
36 | // Creates threshold group | |||
|
37 | m_ThresholdGroup->addButton(ui->thresholdAutoButton); | |||
|
38 | m_ThresholdGroup->addButton(ui->thresholdManualButton); | |||
|
39 | ||||
|
40 | // Inits min/max spinboxes' properties | |||
|
41 | auto setSpinBoxProperties = [](auto &spinBox) { | |||
|
42 | spinBox.setDecimals(3); | |||
|
43 | spinBox.setMinimum(-std::numeric_limits<double>::max()); | |||
|
44 | spinBox.setMaximum(std::numeric_limits<double>::max()); | |||
|
45 | }; | |||
|
46 | setSpinBoxProperties(*ui->minSpinBox); | |||
|
47 | setSpinBoxProperties(*ui->maxSpinBox); | |||
|
48 | ||||
|
49 | // Creates color scale preview | |||
|
50 | m_PreviewScale = new QCPColorScale{ui->plot}; | |||
|
51 | m_PreviewScale->setType(QCPAxis::atTop); | |||
|
52 | m_PreviewScale->setMinimumMargins(QMargins{5, 5, 5, 5}); | |||
|
53 | m_PreviewScale->axis()->setScaleType(QCPAxis::stLogarithmic); | |||
|
54 | m_PreviewScale->axis()->setNumberPrecision(0); | |||
|
55 | m_PreviewScale->axis()->setNumberFormat("eb"); | |||
|
56 | m_PreviewScale->axis()->setTicker(QSharedPointer<QCPAxisTickerLog>::create()); | |||
|
57 | m_PreviewScale->setGradient(QCPColorGradient{QCPColorGradient::gpJet}); | |||
|
58 | ||||
|
59 | ui->plot->plotLayout()->clear(); | |||
|
60 | ui->plot->plotLayout()->insertRow(0); | |||
|
61 | ui->plot->plotLayout()->addElement(0, 0, m_PreviewScale); | |||
|
62 | ||||
|
63 | // Inits connections | |||
|
64 | connect(ui->gradientComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(updatePreview())); | |||
|
65 | connect(ui->thresholdAutoButton, SIGNAL(toggled(bool)), this, SLOT(onThresholdChanged(bool))); | |||
|
66 | connect(ui->thresholdManualButton, SIGNAL(toggled(bool)), this, SLOT(onThresholdChanged(bool))); | |||
|
67 | connect(ui->minSpinBox, SIGNAL(editingFinished()), this, SLOT(onMinChanged())); | |||
|
68 | connect(ui->maxSpinBox, SIGNAL(editingFinished()), this, SLOT(onMaxChanged())); | |||
|
69 | ||||
|
70 | // OK/cancel buttons | |||
|
71 | connect(ui->okButton, SIGNAL(clicked(bool)), this, SLOT(accept())); | |||
|
72 | connect(ui->cancelButton, SIGNAL(clicked(bool)), this, SLOT(reject())); | |||
|
73 | ||||
|
74 | // Loads color scale | |||
|
75 | loadScale(); | |||
|
76 | } | |||
|
77 | ||||
|
78 | ColorScaleEditor::~ColorScaleEditor() noexcept | |||
|
79 | { | |||
|
80 | delete ui; | |||
|
81 | } | |||
|
82 | ||||
|
83 | void ColorScaleEditor::loadScale() | |||
|
84 | { | |||
|
85 | // Gradient | |||
|
86 | auto gradientPresetIndex = ui->gradientComboBox->findData(m_Scale.m_GradientPreset); | |||
|
87 | ui->gradientComboBox->setCurrentIndex(gradientPresetIndex); | |||
|
88 | ||||
|
89 | // Threshold mode | |||
|
90 | (m_Scale.m_AutomaticThreshold ? ui->thresholdAutoButton : ui->thresholdManualButton) | |||
|
91 | ->setChecked(true); | |||
|
92 | ||||
|
93 | // Min/max | |||
|
94 | auto qcpColorScale = m_Scale.m_Scale; | |||
|
95 | auto range = qcpColorScale->dataRange(); | |||
|
96 | ui->minSpinBox->setValue(range.lower); | |||
|
97 | ui->maxSpinBox->setValue(range.upper); | |||
|
98 | ||||
|
99 | updatePreview(); | |||
|
100 | } | |||
|
101 | ||||
|
102 | void ColorScaleEditor::saveScale() | |||
|
103 | { | |||
|
104 | auto qcpColorScale = m_Scale.m_Scale; | |||
|
105 | ||||
|
106 | // Gradient | |||
|
107 | auto gradientPreset | |||
|
108 | = ui->gradientComboBox->currentData().value<QCPColorGradient::GradientPreset>(); | |||
|
109 | qcpColorScale->setGradient(gradientPreset); | |||
|
110 | m_Scale.m_GradientPreset = gradientPreset; | |||
|
111 | ||||
|
112 | // Threshold mode | |||
|
113 | m_Scale.m_AutomaticThreshold = ui->thresholdAutoButton->isChecked(); | |||
|
114 | ||||
|
115 | // Min/max | |||
|
116 | qcpColorScale->setDataRange(QCPRange{ui->minSpinBox->value(), ui->maxSpinBox->value()}); | |||
|
117 | } | |||
|
118 | ||||
|
119 | void ColorScaleEditor::accept() | |||
|
120 | { | |||
|
121 | saveScale(); | |||
|
122 | QDialog::accept(); | |||
|
123 | } | |||
|
124 | ||||
|
125 | void ColorScaleEditor::onMaxChanged() | |||
|
126 | { | |||
|
127 | // Ensures that max >= min | |||
|
128 | auto maxValue = ui->maxSpinBox->value(); | |||
|
129 | if (maxValue < ui->minSpinBox->value()) { | |||
|
130 | ui->minSpinBox->setValue(maxValue); | |||
|
131 | } | |||
|
132 | ||||
|
133 | updatePreview(); | |||
|
134 | } | |||
|
135 | ||||
|
136 | void ColorScaleEditor::onMinChanged() | |||
|
137 | { | |||
|
138 | // Ensures that min <= max | |||
|
139 | auto minValue = ui->minSpinBox->value(); | |||
|
140 | if (minValue > ui->maxSpinBox->value()) { | |||
|
141 | ui->maxSpinBox->setValue(minValue); | |||
|
142 | } | |||
|
143 | ||||
|
144 | updatePreview(); | |||
|
145 | } | |||
|
146 | ||||
|
147 | void ColorScaleEditor::onThresholdChanged(bool checked) | |||
|
148 | { | |||
|
149 | if (checked) { | |||
|
150 | auto isAutomatic = ui->thresholdAutoButton == m_ThresholdGroup->checkedButton(); | |||
|
151 | ||||
|
152 | ui->minSpinBox->setEnabled(!isAutomatic); | |||
|
153 | ui->maxSpinBox->setEnabled(!isAutomatic); | |||
|
154 | ||||
|
155 | // Computes automatic thresholds | |||
|
156 | if (isAutomatic) { | |||
|
157 | double minThreshold, maxThreshold; | |||
|
158 | std::tie(minThreshold, maxThreshold) = SqpColorScale::computeThresholds(m_Scale); | |||
|
159 | ui->minSpinBox->setValue(minThreshold); | |||
|
160 | ui->maxSpinBox->setValue(maxThreshold); | |||
|
161 | ||||
|
162 | updatePreview(); | |||
|
163 | } | |||
|
164 | } | |||
|
165 | } | |||
|
166 | ||||
|
167 | void ColorScaleEditor::updatePreview() | |||
|
168 | { | |||
|
169 | m_PreviewScale->setDataRange(QCPRange{ui->minSpinBox->value(), ui->maxSpinBox->value()}); | |||
|
170 | m_PreviewScale->setGradient( | |||
|
171 | ui->gradientComboBox->currentData().value<QCPColorGradient::GradientPreset>()); | |||
|
172 | ||||
|
173 | ui->plot->replot(); | |||
|
174 | } |
@@ -0,0 +1,58 | |||||
|
1 | #include "Visualization/QCPColorMapIterator.h" | |||
|
2 | ||||
|
3 | #include <Visualization/qcustomplot.h> | |||
|
4 | ||||
|
5 | QCPColorMapIterator::QCPColorMapIterator(QCPColorMapData *data, bool begin) | |||
|
6 | : m_Data{data}, m_KeyIndex{begin ? 0 : data->keySize()}, m_ValueIndex{0} | |||
|
7 | { | |||
|
8 | updateValue(); | |||
|
9 | } | |||
|
10 | ||||
|
11 | QCPColorMapIterator &QCPColorMapIterator::operator++() | |||
|
12 | { | |||
|
13 | // Increments indexes | |||
|
14 | ++m_ValueIndex; | |||
|
15 | if (m_ValueIndex == m_Data->valueSize()) { | |||
|
16 | ++m_KeyIndex; | |||
|
17 | m_ValueIndex = 0; | |||
|
18 | } | |||
|
19 | ||||
|
20 | // Updates value | |||
|
21 | updateValue(); | |||
|
22 | ||||
|
23 | return *this; | |||
|
24 | } | |||
|
25 | ||||
|
26 | QCPColorMapIterator QCPColorMapIterator::operator++(int) | |||
|
27 | { | |||
|
28 | auto result = *this; | |||
|
29 | this->operator++(); | |||
|
30 | return result; | |||
|
31 | } | |||
|
32 | ||||
|
33 | QCPColorMapIterator::pointer QCPColorMapIterator::operator->() const | |||
|
34 | { | |||
|
35 | return &m_Value; | |||
|
36 | } | |||
|
37 | ||||
|
38 | QCPColorMapIterator::reference QCPColorMapIterator::operator*() const | |||
|
39 | { | |||
|
40 | return m_Value; | |||
|
41 | } | |||
|
42 | ||||
|
43 | bool QCPColorMapIterator::operator==(const QCPColorMapIterator &other) | |||
|
44 | { | |||
|
45 | return std::tie(m_Data, m_KeyIndex, m_ValueIndex) | |||
|
46 | == std::tie(other.m_Data, other.m_KeyIndex, other.m_ValueIndex); | |||
|
47 | } | |||
|
48 | ||||
|
49 | bool QCPColorMapIterator::operator!=(const QCPColorMapIterator &other) | |||
|
50 | { | |||
|
51 | return !(*this == other); | |||
|
52 | } | |||
|
53 | ||||
|
54 | void QCPColorMapIterator::updateValue() | |||
|
55 | { | |||
|
56 | m_Value = m_KeyIndex != m_Data->keySize() ? m_Data->cell(m_KeyIndex, m_ValueIndex) | |||
|
57 | : std::numeric_limits<double>::quiet_NaN(); | |||
|
58 | } |
@@ -0,0 +1,60 | |||||
|
1 | #include "Visualization/SqpColorScale.h" | |||
|
2 | ||||
|
3 | #include <Data/DataSeriesUtils.h> | |||
|
4 | ||||
|
5 | #include <Visualization/QCPColorMapIterator.h> | |||
|
6 | ||||
|
7 | Q_LOGGING_CATEGORY(LOG_SqpColorScale, "SqpColorScale") | |||
|
8 | ||||
|
9 | namespace { | |||
|
10 | ||||
|
11 | const auto DEFAULT_GRADIENT_PRESET = QCPColorGradient::gpJet; | |||
|
12 | const auto DEFAULT_RANGE = QCPRange{1.0e3, 1.7e7}; | |||
|
13 | ||||
|
14 | } // namespace | |||
|
15 | ||||
|
16 | std::pair<double, double> SqpColorScale::computeThresholds(const SqpColorScale &scale) | |||
|
17 | { | |||
|
18 | auto qcpScale = scale.m_Scale; | |||
|
19 | ||||
|
20 | auto colorMaps = qcpScale->colorMaps(); | |||
|
21 | if (colorMaps.size() != 1) { | |||
|
22 | return {std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN()}; | |||
|
23 | } | |||
|
24 | ||||
|
25 | // Computes thresholds | |||
|
26 | auto isLogarithmicScale = qcpScale->dataScaleType() == QCPAxis::stLogarithmic; | |||
|
27 | auto colorMapData = colorMaps.first()->data(); | |||
|
28 | QCPColorMapIterator begin{colorMapData, true}; | |||
|
29 | QCPColorMapIterator end{colorMapData, false}; | |||
|
30 | ||||
|
31 | return DataSeriesUtils::thresholds(begin, end, isLogarithmicScale); | |||
|
32 | } | |||
|
33 | ||||
|
34 | SqpColorScale::SqpColorScale(QCustomPlot &plot) | |||
|
35 | : m_Scale{new QCPColorScale{&plot}}, | |||
|
36 | m_AutomaticThreshold{true}, | |||
|
37 | m_GradientPreset{DEFAULT_GRADIENT_PRESET} | |||
|
38 | { | |||
|
39 | m_Scale->setGradient(m_GradientPreset); | |||
|
40 | m_Scale->setDataRange(DEFAULT_RANGE); | |||
|
41 | } | |||
|
42 | ||||
|
43 | void SqpColorScale::updateDataRange() noexcept | |||
|
44 | { | |||
|
45 | // Updates data range only if mode is automatic | |||
|
46 | if (!m_AutomaticThreshold) { | |||
|
47 | return; | |||
|
48 | } | |||
|
49 | ||||
|
50 | double minThreshold, maxThreshold; | |||
|
51 | std::tie(minThreshold, maxThreshold) = computeThresholds(*this); | |||
|
52 | if (std::isnan(minThreshold) || std::isnan(maxThreshold)) { | |||
|
53 | qCCritical(LOG_SqpColorScale()) | |||
|
54 | << "Can't update data range of color scale: thresholds computed are invalid"; | |||
|
55 | return; | |||
|
56 | } | |||
|
57 | ||||
|
58 | // Updates thresholds | |||
|
59 | m_Scale->setDataRange({minThreshold, maxThreshold}); | |||
|
60 | } |
@@ -0,0 +1,163 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <ui version="4.0"> | |||
|
3 | <class>ColorScaleEditor</class> | |||
|
4 | <widget class="QDialog" name="ColorScaleEditor"> | |||
|
5 | <property name="geometry"> | |||
|
6 | <rect> | |||
|
7 | <x>0</x> | |||
|
8 | <y>0</y> | |||
|
9 | <width>258</width> | |||
|
10 | <height>232</height> | |||
|
11 | </rect> | |||
|
12 | </property> | |||
|
13 | <property name="windowTitle"> | |||
|
14 | <string>Color scale editor</string> | |||
|
15 | </property> | |||
|
16 | <layout class="QGridLayout" name="gridLayout"> | |||
|
17 | <item row="3" column="0"> | |||
|
18 | <layout class="QHBoxLayout" name="horizontalLayout"> | |||
|
19 | <item> | |||
|
20 | <spacer name="horizontalSpacer"> | |||
|
21 | <property name="orientation"> | |||
|
22 | <enum>Qt::Horizontal</enum> | |||
|
23 | </property> | |||
|
24 | <property name="sizeHint" stdset="0"> | |||
|
25 | <size> | |||
|
26 | <width>40</width> | |||
|
27 | <height>20</height> | |||
|
28 | </size> | |||
|
29 | </property> | |||
|
30 | </spacer> | |||
|
31 | </item> | |||
|
32 | <item> | |||
|
33 | <widget class="QPushButton" name="okButton"> | |||
|
34 | <property name="text"> | |||
|
35 | <string>OK</string> | |||
|
36 | </property> | |||
|
37 | </widget> | |||
|
38 | </item> | |||
|
39 | <item> | |||
|
40 | <widget class="QPushButton" name="cancelButton"> | |||
|
41 | <property name="text"> | |||
|
42 | <string>Cancel</string> | |||
|
43 | </property> | |||
|
44 | </widget> | |||
|
45 | </item> | |||
|
46 | </layout> | |||
|
47 | </item> | |||
|
48 | <item row="1" column="0"> | |||
|
49 | <widget class="QGroupBox" name="groupBox"> | |||
|
50 | <property name="title"> | |||
|
51 | <string>Preview</string> | |||
|
52 | </property> | |||
|
53 | <layout class="QGridLayout" name="gridLayout_3"> | |||
|
54 | <item row="0" column="0"> | |||
|
55 | <widget class="QCustomPlot" name="plot" native="true"/> | |||
|
56 | </item> | |||
|
57 | </layout> | |||
|
58 | </widget> | |||
|
59 | </item> | |||
|
60 | <item row="0" column="0"> | |||
|
61 | <layout class="QGridLayout" name="gridLayout_2"> | |||
|
62 | <item row="1" column="0"> | |||
|
63 | <widget class="QLabel" name="thresholdLabel"> | |||
|
64 | <property name="text"> | |||
|
65 | <string>Thresholds:</string> | |||
|
66 | </property> | |||
|
67 | </widget> | |||
|
68 | </item> | |||
|
69 | <item row="1" column="1"> | |||
|
70 | <widget class="QRadioButton" name="thresholdAutoButton"> | |||
|
71 | <property name="text"> | |||
|
72 | <string>Automatic</string> | |||
|
73 | </property> | |||
|
74 | <property name="checkable"> | |||
|
75 | <bool>true</bool> | |||
|
76 | </property> | |||
|
77 | <property name="checked"> | |||
|
78 | <bool>false</bool> | |||
|
79 | </property> | |||
|
80 | </widget> | |||
|
81 | </item> | |||
|
82 | <item row="1" column="2"> | |||
|
83 | <widget class="QRadioButton" name="thresholdManualButton"> | |||
|
84 | <property name="text"> | |||
|
85 | <string>Manual</string> | |||
|
86 | </property> | |||
|
87 | </widget> | |||
|
88 | </item> | |||
|
89 | <item row="2" column="0"> | |||
|
90 | <widget class="QLabel" name="minLabel"> | |||
|
91 | <property name="text"> | |||
|
92 | <string>Min:</string> | |||
|
93 | </property> | |||
|
94 | </widget> | |||
|
95 | </item> | |||
|
96 | <item row="3" column="0"> | |||
|
97 | <widget class="QLabel" name="maxLabel"> | |||
|
98 | <property name="text"> | |||
|
99 | <string>Max:</string> | |||
|
100 | </property> | |||
|
101 | </widget> | |||
|
102 | </item> | |||
|
103 | <item row="2" column="1" colspan="2"> | |||
|
104 | <widget class="QDoubleSpinBox" name="minSpinBox"> | |||
|
105 | <property name="showGroupSeparator" stdset="0"> | |||
|
106 | <bool>true</bool> | |||
|
107 | </property> | |||
|
108 | </widget> | |||
|
109 | </item> | |||
|
110 | <item row="3" column="1" colspan="2"> | |||
|
111 | <widget class="QDoubleSpinBox" name="maxSpinBox"> | |||
|
112 | <property name="showGroupSeparator" stdset="0"> | |||
|
113 | <bool>true</bool> | |||
|
114 | </property> | |||
|
115 | </widget> | |||
|
116 | </item> | |||
|
117 | <item row="0" column="0"> | |||
|
118 | <widget class="QLabel" name="gradientLabel"> | |||
|
119 | <property name="text"> | |||
|
120 | <string>Gradient:</string> | |||
|
121 | </property> | |||
|
122 | </widget> | |||
|
123 | </item> | |||
|
124 | <item row="0" column="1" colspan="2"> | |||
|
125 | <widget class="QComboBox" name="gradientComboBox"/> | |||
|
126 | </item> | |||
|
127 | </layout> | |||
|
128 | </item> | |||
|
129 | <item row="2" column="0"> | |||
|
130 | <spacer name="verticalSpacer"> | |||
|
131 | <property name="orientation"> | |||
|
132 | <enum>Qt::Vertical</enum> | |||
|
133 | </property> | |||
|
134 | <property name="sizeHint" stdset="0"> | |||
|
135 | <size> | |||
|
136 | <width>20</width> | |||
|
137 | <height>40</height> | |||
|
138 | </size> | |||
|
139 | </property> | |||
|
140 | </spacer> | |||
|
141 | </item> | |||
|
142 | </layout> | |||
|
143 | </widget> | |||
|
144 | <customwidgets> | |||
|
145 | <customwidget> | |||
|
146 | <class>QCustomPlot</class> | |||
|
147 | <extends>QWidget</extends> | |||
|
148 | <header>Visualization/qcustomplot.h</header> | |||
|
149 | <container>1</container> | |||
|
150 | </customwidget> | |||
|
151 | </customwidgets> | |||
|
152 | <tabstops> | |||
|
153 | <tabstop>gradientComboBox</tabstop> | |||
|
154 | <tabstop>thresholdAutoButton</tabstop> | |||
|
155 | <tabstop>thresholdManualButton</tabstop> | |||
|
156 | <tabstop>minSpinBox</tabstop> | |||
|
157 | <tabstop>maxSpinBox</tabstop> | |||
|
158 | <tabstop>okButton</tabstop> | |||
|
159 | <tabstop>cancelButton</tabstop> | |||
|
160 | </tabstops> | |||
|
161 | <resources/> | |||
|
162 | <connections/> | |||
|
163 | </ui> |
@@ -1,156 +1,159 | |||||
1 |
|
1 | |||
2 | ## core - CMakeLists.txt |
|
2 | ## core - CMakeLists.txt | |
3 | STRING(TOLOWER ${CMAKE_PROJECT_NAME} LIBRARY_PREFFIX) |
|
3 | STRING(TOLOWER ${CMAKE_PROJECT_NAME} LIBRARY_PREFFIX) | |
4 | SET(SQPCORE_LIBRARY_NAME "${LIBRARY_PREFFIX}_core${DEBUG_SUFFIX}") |
|
4 | SET(SQPCORE_LIBRARY_NAME "${LIBRARY_PREFFIX}_core${DEBUG_SUFFIX}") | |
5 | SET(SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/") |
|
5 | SET(SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/") | |
6 | SET(INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include/") |
|
6 | SET(INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include/") | |
|
7 | SET(TESTS_RESOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/tests-resources") | |||
7 |
|
8 | |||
8 | # Include core directory |
|
9 | # Include core directory | |
9 | include_directories("${INCLUDES_DIR}") |
|
10 | include_directories("${INCLUDES_DIR}") | |
10 |
|
11 | |||
11 | # Set a variable to display a warning in the version files. |
|
12 | # Set a variable to display a warning in the version files. | |
12 | SET(SCIQLOP_CMAKE_GENERATION_WARNING "DON'T CHANGE THIS FILE. AUTOGENERATED BY CMAKE.") |
|
13 | SET(SCIQLOP_CMAKE_GENERATION_WARNING "DON'T CHANGE THIS FILE. AUTOGENERATED BY CMAKE.") | |
13 | # Generate the version file from the cmake version variables. The version |
|
14 | # Generate the version file from the cmake version variables. The version | |
14 | # variables are defined in the cmake/sciqlop_version.cmake file. |
|
15 | # variables are defined in the cmake/sciqlop_version.cmake file. | |
15 | CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/resources/Version.h.in" |
|
16 | CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/resources/Version.h.in" | |
16 | "${INCLUDES_DIR}/Version.h") |
|
17 | "${INCLUDES_DIR}/Version.h") | |
17 | CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/resources/Version.cpp.in" |
|
18 | CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/resources/Version.cpp.in" | |
18 | "${SOURCES_DIR}/Version.cpp") |
|
19 | "${SOURCES_DIR}/Version.cpp") | |
19 |
|
20 | |||
20 | # Find dependent modules |
|
21 | # Find dependent modules | |
21 | find_package(sciqlop-plugin) |
|
22 | find_package(sciqlop-plugin) | |
22 | INCLUDE_DIRECTORIES(${SCIQLOP-PLUGIN_INCLUDE_DIR}) |
|
23 | INCLUDE_DIRECTORIES(${SCIQLOP-PLUGIN_INCLUDE_DIR}) | |
23 |
|
24 | |||
24 | # |
|
25 | # | |
25 | # Find Qt modules |
|
26 | # Find Qt modules | |
26 | # |
|
27 | # | |
27 | SCIQLOP_FIND_QT(Core Network) |
|
28 | SCIQLOP_FIND_QT(Core Network) | |
28 |
|
29 | |||
29 | # |
|
30 | # | |
30 | # Compile the library library |
|
31 | # Compile the library library | |
31 | # |
|
32 | # | |
32 |
|
33 | |||
33 | ADD_DEFINITIONS(-DCORE_LIB) |
|
34 | ADD_DEFINITIONS(-DCORE_LIB) | |
34 |
|
35 | |||
35 | FILE (GLOB_RECURSE MODULE_SOURCES |
|
36 | FILE (GLOB_RECURSE MODULE_SOURCES | |
36 | ${INCLUDES_DIR}/*.h |
|
37 | ${INCLUDES_DIR}/*.h | |
37 | ${SOURCES_DIR}/*.c |
|
38 | ${SOURCES_DIR}/*.c | |
38 | ${SOURCES_DIR}/*.cpp |
|
39 | ${SOURCES_DIR}/*.cpp | |
39 | ${SOURCES_DIR}/*.h) |
|
40 | ${SOURCES_DIR}/*.h) | |
40 |
|
41 | |||
41 | ADD_LIBRARY(${SQPCORE_LIBRARY_NAME} ${MODULE_SOURCES}) |
|
42 | ADD_LIBRARY(${SQPCORE_LIBRARY_NAME} ${MODULE_SOURCES}) | |
42 | set_property(TARGET ${SQPCORE_LIBRARY_NAME} PROPERTY CXX_STANDARD 14) |
|
43 | set_property(TARGET ${SQPCORE_LIBRARY_NAME} PROPERTY CXX_STANDARD 14) | |
43 | set_property(TARGET ${SQPCORE_LIBRARY_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) |
|
44 | set_property(TARGET ${SQPCORE_LIBRARY_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | |
44 | TARGET_LINK_LIBRARIES(${SQPCORE_LIBRARY_NAME}) |
|
45 | TARGET_LINK_LIBRARIES(${SQPCORE_LIBRARY_NAME}) | |
45 | qt5_use_modules(${SQPCORE_LIBRARY_NAME} Core Network) |
|
46 | qt5_use_modules(${SQPCORE_LIBRARY_NAME} Core Network) | |
46 |
|
47 | |||
47 | INSTALL(TARGETS ${SQPCORE_LIBRARY_NAME} |
|
48 | INSTALL(TARGETS ${SQPCORE_LIBRARY_NAME} | |
48 | RUNTIME DESTINATION ${INSTALL_BINARY_DIR} |
|
49 | RUNTIME DESTINATION ${INSTALL_BINARY_DIR} | |
49 | LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} |
|
50 | LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} | |
50 | ARCHIVE DESTINATION ${INSTALL_LIBRARY_DIR} |
|
51 | ARCHIVE DESTINATION ${INSTALL_LIBRARY_DIR} | |
51 | ) |
|
52 | ) | |
52 |
|
53 | |||
53 | # From cmake documentation: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html |
|
54 | # From cmake documentation: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html | |
54 | # Entries in the COMPILE_DEFINITIONS are prefixed with -D or /D and added to the compile line in an unspecified order. |
|
55 | # Entries in the COMPILE_DEFINITIONS are prefixed with -D or /D and added to the compile line in an unspecified order. | |
55 | # The DEFINE_SYMBOL target property is also added as a compile definition as a special convenience case for SHARED and MODULE library targets |
|
56 | # The DEFINE_SYMBOL target property is also added as a compile definition as a special convenience case for SHARED and MODULE library targets | |
56 | IF(BUILD_SHARED_LIBS) |
|
57 | IF(BUILD_SHARED_LIBS) | |
57 | SET_TARGET_PROPERTIES(${SQPCORE_LIBRARY_NAME} PROPERTIES COMPILE_DEFINITIONS "SCIQLOP_EXPORT") |
|
58 | SET_TARGET_PROPERTIES(${SQPCORE_LIBRARY_NAME} PROPERTIES COMPILE_DEFINITIONS "SCIQLOP_EXPORT") | |
58 | ELSE() |
|
59 | ELSE() | |
59 | TARGET_COMPILE_DEFINITIONS(${SQPCORE_LIBRARY_NAME} PUBLIC "SCIQLOP_STATIC_LIBRARIES") |
|
60 | TARGET_COMPILE_DEFINITIONS(${SQPCORE_LIBRARY_NAME} PUBLIC "SCIQLOP_STATIC_LIBRARIES") | |
60 | ENDIF() |
|
61 | ENDIF() | |
61 |
|
62 | |||
62 | # Set the variable to parent scope so that the other projects can copy the |
|
63 | # Set the variable to parent scope so that the other projects can copy the | |
63 | # dependent shared libraries |
|
64 | # dependent shared libraries | |
64 | SCIQLOP_SET_TO_PARENT_SCOPE(SQPCORE_LIBRARY_NAME) |
|
65 | SCIQLOP_SET_TO_PARENT_SCOPE(SQPCORE_LIBRARY_NAME) | |
65 |
|
66 | |||
66 | # Copy extern shared libraries to the lib folder |
|
67 | # Copy extern shared libraries to the lib folder | |
67 | SCIQLOP_COPY_TO_TARGET(LIBRARY ${SQPCORE_LIBRARY_NAME} ${EXTERN_SHARED_LIBRARIES}) |
|
68 | SCIQLOP_COPY_TO_TARGET(LIBRARY ${SQPCORE_LIBRARY_NAME} ${EXTERN_SHARED_LIBRARIES}) | |
68 |
|
69 | |||
69 | # Add the files to the list of files to be analyzed |
|
70 | # Add the files to the list of files to be analyzed | |
70 | LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES}) |
|
71 | LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES}) | |
71 | SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_INPUT_FILES) |
|
72 | SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_INPUT_FILES) | |
72 | # Vera++ exclusion files |
|
73 | # Vera++ exclusion files | |
73 | LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/vera-exclusions/exclusions.txt) |
|
74 | LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/vera-exclusions/exclusions.txt) | |
74 | SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES) |
|
75 | SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES) | |
75 |
|
76 | |||
76 | # |
|
77 | # | |
77 | # Compile the tests |
|
78 | # Compile the tests | |
78 | # |
|
79 | # | |
79 | IF(BUILD_TESTS) |
|
80 | IF(BUILD_TESTS) | |
80 | INCLUDE_DIRECTORIES(${SOURCES_DIR}) |
|
81 | INCLUDE_DIRECTORIES(${SOURCES_DIR}) | |
81 | FILE (GLOB_RECURSE TESTS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Test*.cpp) |
|
82 | FILE (GLOB_RECURSE TESTS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Test*.cpp) | |
82 | FILE (GLOB_RECURSE TESTS_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/Test*.h) |
|
83 | FILE (GLOB_RECURSE TESTS_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/Test*.h) | |
83 | SET( TEST_LIBRARIES ${SQPCORE_LIBRARY_NAME}) |
|
84 | SET( TEST_LIBRARIES ${SQPCORE_LIBRARY_NAME}) | |
84 |
|
85 | |||
85 | SET(TARGETS_COV) |
|
86 | SET(TARGETS_COV) | |
86 | FOREACH( testFile ${TESTS_SOURCES} ) |
|
87 | FOREACH( testFile ${TESTS_SOURCES} ) | |
87 | GET_FILENAME_COMPONENT( testDirectory ${testFile} DIRECTORY ) |
|
88 | GET_FILENAME_COMPONENT( testDirectory ${testFile} DIRECTORY ) | |
88 | GET_FILENAME_COMPONENT( testName ${testFile} NAME_WE ) |
|
89 | GET_FILENAME_COMPONENT( testName ${testFile} NAME_WE ) | |
89 |
|
90 | |||
90 | # Add to the list of sources files all the sources in the same |
|
91 | # Add to the list of sources files all the sources in the same | |
91 | # directory that aren't another test |
|
92 | # directory that aren't another test | |
92 | FILE (GLOB currentTestSources |
|
93 | FILE (GLOB currentTestSources | |
93 | ${testDirectory}/*.c |
|
94 | ${testDirectory}/*.c | |
94 | ${testDirectory}/*.cpp |
|
95 | ${testDirectory}/*.cpp | |
95 | ${testDirectory}/*.h) |
|
96 | ${testDirectory}/*.h) | |
96 | LIST (REMOVE_ITEM currentTestSources ${TESTS_SOURCES}) |
|
97 | LIST (REMOVE_ITEM currentTestSources ${TESTS_SOURCES}) | |
97 | # LIST (REMOVE_ITEM currentTestSources ${TESTS_HEADERS}) |
|
98 | # LIST (REMOVE_ITEM currentTestSources ${TESTS_HEADERS}) | |
98 |
|
99 | |||
99 | ADD_EXECUTABLE(${testName} ${testFile} ${currentTestSources}) |
|
100 | ADD_EXECUTABLE(${testName} ${testFile} ${currentTestSources}) | |
100 | set_property(TARGET ${testName} PROPERTY CXX_STANDARD 14) |
|
101 | set_property(TARGET ${testName} PROPERTY CXX_STANDARD 14) | |
101 | set_property(TARGET ${testName} PROPERTY CXX_STANDARD_REQUIRED ON) |
|
102 | set_property(TARGET ${testName} PROPERTY CXX_STANDARD_REQUIRED ON) | |
102 | TARGET_LINK_LIBRARIES( ${testName} ${TEST_LIBRARIES} ) |
|
103 | TARGET_LINK_LIBRARIES( ${testName} ${TEST_LIBRARIES} ) | |
103 | qt5_use_modules(${testName} Test) |
|
104 | qt5_use_modules(${testName} Test) | |
104 |
|
105 | |||
105 | ADD_TEST( NAME ${testName} COMMAND ${testName} ) |
|
106 | ADD_TEST( NAME ${testName} COMMAND ${testName} ) | |
106 |
|
107 | |||
107 | SCIQLOP_COPY_TO_TARGET(RUNTIME ${testName} ${EXTERN_SHARED_LIBRARIES}) |
|
108 | SCIQLOP_COPY_TO_TARGET(RUNTIME ${testName} ${EXTERN_SHARED_LIBRARIES}) | |
108 | set(Coverage_NAME ${testName}) |
|
109 | set(Coverage_NAME ${testName}) | |
109 | if(UNIX) |
|
110 | if(UNIX) | |
110 | SETUP_TARGET_FOR_COVERAGE(TARGET ${testName}_coverage OUTPUT ${testFile}-path NAME ${testFile} EXECUTABLE ${testName}) |
|
111 | SETUP_TARGET_FOR_COVERAGE(TARGET ${testName}_coverage OUTPUT ${testFile}-path NAME ${testFile} EXECUTABLE ${testName}) | |
111 | LIST( APPEND TARGETS_COV ${testName}_coverage) |
|
112 | LIST( APPEND TARGETS_COV ${testName}_coverage) | |
112 | endif(UNIX) |
|
113 | endif(UNIX) | |
113 |
|
114 | |||
114 | ENDFOREACH( testFile ) |
|
115 | ENDFOREACH( testFile ) | |
115 |
|
116 | |||
116 | add_custom_target(coverage) |
|
117 | add_custom_target(coverage) | |
117 |
|
118 | |||
118 | FOREACH( target_cov ${TARGETS_COV} ) |
|
119 | FOREACH( target_cov ${TARGETS_COV} ) | |
119 | add_custom_command(TARGET coverage PRE_BUILD COMMAND make ${target_cov}) |
|
120 | add_custom_command(TARGET coverage PRE_BUILD COMMAND make ${target_cov}) | |
120 | ENDFOREACH( target_cov ) |
|
121 | ENDFOREACH( target_cov ) | |
121 |
|
122 | |||
122 | LIST(APPEND testFilesToFormat ${TESTS_SOURCES}) |
|
123 | LIST(APPEND testFilesToFormat ${TESTS_SOURCES}) | |
123 | LIST(APPEND testFilesToFormat ${TESTS_HEADERS}) |
|
124 | LIST(APPEND testFilesToFormat ${TESTS_HEADERS}) | |
124 | LIST(APPEND FORMATTING_INPUT_FILES ${testFilesToFormat}) |
|
125 | LIST(APPEND FORMATTING_INPUT_FILES ${testFilesToFormat}) | |
125 | SCIQLOP_SET_TO_PARENT_SCOPE(FORMATTING_INPUT_FILES) |
|
126 | SCIQLOP_SET_TO_PARENT_SCOPE(FORMATTING_INPUT_FILES) | |
|
127 | ||||
|
128 | ADD_DEFINITIONS(-DCORE_TESTS_RESOURCES_DIR="${TESTS_RESOURCES_DIR}") | |||
126 | ENDIF(BUILD_TESTS) |
|
129 | ENDIF(BUILD_TESTS) | |
127 |
|
130 | |||
128 | # |
|
131 | # | |
129 | # Set the files that must be formatted by clang-format. |
|
132 | # Set the files that must be formatted by clang-format. | |
130 | # |
|
133 | # | |
131 | LIST (APPEND FORMATTING_INPUT_FILES ${MODULE_SOURCES}) |
|
134 | LIST (APPEND FORMATTING_INPUT_FILES ${MODULE_SOURCES}) | |
132 | SCIQLOP_SET_TO_PARENT_SCOPE(FORMATTING_INPUT_FILES) |
|
135 | SCIQLOP_SET_TO_PARENT_SCOPE(FORMATTING_INPUT_FILES) | |
133 |
|
136 | |||
134 | # |
|
137 | # | |
135 | # Set the directories that doxygen must browse to generate the |
|
138 | # Set the directories that doxygen must browse to generate the | |
136 | # documentation. |
|
139 | # documentation. | |
137 | # |
|
140 | # | |
138 | # Source directories: |
|
141 | # Source directories: | |
139 | LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/docs") |
|
142 | LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/docs") | |
140 | LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src") |
|
143 | LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src") | |
141 | SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_INPUT_DIRS) |
|
144 | SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_INPUT_DIRS) | |
142 | # Source directories to exclude from the documentation generation |
|
145 | # Source directories to exclude from the documentation generation | |
143 | #LIST (APPEND DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_SOURCE_DIR}/path/to/subdir/*") |
|
146 | #LIST (APPEND DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_SOURCE_DIR}/path/to/subdir/*") | |
144 | SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_EXCLUDE_PATTERNS) |
|
147 | SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_EXCLUDE_PATTERNS) | |
145 |
|
148 | |||
146 | # |
|
149 | # | |
147 | # Set the directories with the sources to analyze and propagate the |
|
150 | # Set the directories with the sources to analyze and propagate the | |
148 | # modification to the parent scope |
|
151 | # modification to the parent scope | |
149 | # |
|
152 | # | |
150 | # Source directories to analyze: |
|
153 | # Source directories to analyze: | |
151 | LIST (APPEND ANALYSIS_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src") |
|
154 | LIST (APPEND ANALYSIS_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src") | |
152 | LIST (APPEND ANALYSIS_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/tests") |
|
155 | LIST (APPEND ANALYSIS_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/tests") | |
153 | SCIQLOP_SET_TO_PARENT_SCOPE(ANALYSIS_INPUT_DIRS) |
|
156 | SCIQLOP_SET_TO_PARENT_SCOPE(ANALYSIS_INPUT_DIRS) | |
154 | # Source directories to exclude from the analysis |
|
157 | # Source directories to exclude from the analysis | |
155 | #LIST (APPEND ANALYSIS_EXCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/path/to/subdir") |
|
158 | #LIST (APPEND ANALYSIS_EXCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/path/to/subdir") | |
156 | SCIQLOP_SET_TO_PARENT_SCOPE(ANALYSIS_EXCLUDE_DIRS) |
|
159 | SCIQLOP_SET_TO_PARENT_SCOPE(ANALYSIS_EXCLUDE_DIRS) |
@@ -1,228 +1,317 | |||||
1 | #ifndef SCIQLOP_DATASERIESUTILS_H |
|
1 | #ifndef SCIQLOP_DATASERIESUTILS_H | |
2 | #define SCIQLOP_DATASERIESUTILS_H |
|
2 | #define SCIQLOP_DATASERIESUTILS_H | |
3 |
|
3 | |||
4 | #include "CoreGlobal.h" |
|
4 | #include "CoreGlobal.h" | |
5 |
|
5 | |||
|
6 | #include <Common/SortUtils.h> | |||
6 | #include <Data/DataSeriesIterator.h> |
|
7 | #include <Data/DataSeriesIterator.h> | |
7 |
|
8 | |||
8 | #include <cmath> |
|
|||
9 | #include <QLoggingCategory> |
|
9 | #include <QLoggingCategory> | |
|
10 | #include <cmath> | |||
10 |
|
11 | |||
11 | Q_DECLARE_LOGGING_CATEGORY(LOG_DataSeriesUtils) |
|
12 | Q_DECLARE_LOGGING_CATEGORY(LOG_DataSeriesUtils) | |
12 |
|
13 | |||
13 | /** |
|
14 | /** | |
14 | * Utility class with methods for data series |
|
15 | * Utility class with methods for data series | |
15 | */ |
|
16 | */ | |
16 | struct SCIQLOP_CORE_EXPORT DataSeriesUtils { |
|
17 | struct SCIQLOP_CORE_EXPORT DataSeriesUtils { | |
17 | /** |
|
18 | /** | |
18 | * Define a meshs. |
|
19 | * Define a meshs. | |
19 | * |
|
20 | * | |
20 | * A mesh is a regular grid representing cells of the same width (in x) and of the same height |
|
21 | * A mesh is a regular grid representing cells of the same width (in x) and of the same height | |
21 | * (in y). At each mesh point is associated a value. |
|
22 | * (in y). At each mesh point is associated a value. | |
22 | * |
|
23 | * | |
23 | * Each axis of the mesh is defined by a minimum value, a number of values is a mesh step. |
|
24 | * Each axis of the mesh is defined by a minimum value, a number of values is a mesh step. | |
24 | * For example: if min = 1, nbValues = 5 and step = 2 => the axis of the mesh will be [1, 3, 5, |
|
25 | * For example: if min = 1, nbValues = 5 and step = 2 => the axis of the mesh will be [1, 3, 5, | |
25 | * 7, 9]. |
|
26 | * 7, 9]. | |
26 | * |
|
27 | * | |
27 | * The values are defined in an array of size {nbX * nbY}. The data is stored along the X axis. |
|
28 | * The values are defined in an array of size {nbX * nbY}. The data is stored along the X axis. | |
28 | * |
|
29 | * | |
29 | * For example, the mesh: |
|
30 | * For example, the mesh: | |
30 | * Y = 2 [ 7 ; 8 ; 9 |
|
31 | * Y = 2 [ 7 ; 8 ; 9 | |
31 | * Y = 1 4 ; 5 ; 6 |
|
32 | * Y = 1 4 ; 5 ; 6 | |
32 | * Y = 0 1 ; 2 ; 3 ] |
|
33 | * Y = 0 1 ; 2 ; 3 ] | |
33 | * X = 0 X = 1 X = 2 |
|
34 | * X = 0 X = 1 X = 2 | |
34 | * |
|
35 | * | |
35 | * will be represented by data [1, 2, 3, 4, 5, 6, 7, 8, 9] |
|
36 | * will be represented by data [1, 2, 3, 4, 5, 6, 7, 8, 9] | |
36 | */ |
|
37 | */ | |
37 | struct Mesh { |
|
38 | struct Mesh { | |
38 | explicit Mesh() = default; |
|
39 | explicit Mesh() = default; | |
39 | explicit Mesh(int nbX, double xMin, double xStep, int nbY, double yMin, double yStep) |
|
40 | explicit Mesh(int nbX, double xMin, double xStep, int nbY, double yMin, double yStep) | |
40 | : m_NbX{nbX}, |
|
41 | : m_NbX{nbX}, | |
41 | m_XMin{xMin}, |
|
42 | m_XMin{xMin}, | |
42 | m_XStep{xStep}, |
|
43 | m_XStep{xStep}, | |
43 | m_NbY{nbY}, |
|
44 | m_NbY{nbY}, | |
44 | m_YMin{yMin}, |
|
45 | m_YMin{yMin}, | |
45 | m_YStep{yStep}, |
|
46 | m_YStep{yStep}, | |
46 | m_Data(nbX * nbY) |
|
47 | m_Data(nbX * nbY) | |
47 | { |
|
48 | { | |
48 | } |
|
49 | } | |
49 |
|
50 | |||
50 | inline bool isEmpty() const { return m_Data.size() == 0; } |
|
51 | inline bool isEmpty() const { return m_Data.size() == 0; } | |
51 | inline double xMax() const { return m_XMin + (m_NbX - 1) * m_XStep; } |
|
52 | inline double xMax() const { return m_XMin + (m_NbX - 1) * m_XStep; } | |
52 | inline double yMax() const { return m_YMin + (m_NbY - 1) * m_YStep; } |
|
53 | inline double yMax() const { return m_YMin + (m_NbY - 1) * m_YStep; } | |
53 |
|
54 | |||
54 | int m_NbX{0}; |
|
55 | int m_NbX{0}; | |
55 | double m_XMin{}; |
|
56 | double m_XMin{}; | |
56 | double m_XStep{}; |
|
57 | double m_XStep{}; | |
57 | int m_NbY{0}; |
|
58 | int m_NbY{0}; | |
58 | double m_YMin{}; |
|
59 | double m_YMin{}; | |
59 | double m_YStep{}; |
|
60 | double m_YStep{}; | |
60 | std::vector<double> m_Data{}; |
|
61 | std::vector<double> m_Data{}; | |
61 | }; |
|
62 | }; | |
62 |
|
63 | |||
63 | /** |
|
64 | /** | |
64 | * Represents a resolution used to generate the data of a mesh on the x-axis or in Y. |
|
65 | * Represents a resolution used to generate the data of a mesh on the x-axis or in Y. | |
65 | * |
|
66 | * | |
66 | * A resolution is represented by a value and flag indicating if it's in the logarithmic scale |
|
67 | * A resolution is represented by a value and flag indicating if it's in the logarithmic scale | |
67 | * @sa Mesh |
|
68 | * @sa Mesh | |
68 | */ |
|
69 | */ | |
69 | struct Resolution { |
|
70 | struct Resolution { | |
70 | double m_Val{std::numeric_limits<double>::quiet_NaN()}; |
|
71 | double m_Val{std::numeric_limits<double>::quiet_NaN()}; | |
71 | bool m_Logarithmic{false}; |
|
72 | bool m_Logarithmic{false}; | |
72 | }; |
|
73 | }; | |
73 |
|
74 | |||
74 | /** |
|
75 | /** | |
75 | * Processes data from a data series to complete the data holes with a fill value. |
|
76 | * Processes data from a data series to complete the data holes with a fill value. | |
76 | * |
|
77 | * | |
77 | * A data hole is determined by the resolution passed in parameter: if, between two continuous |
|
78 | * A data hole is determined by the resolution passed in parameter: if, between two continuous | |
78 | * data on the x-axis, the difference between these data is greater than the resolution, then |
|
79 | * data on the x-axis, the difference between these data is greater than the resolution, then | |
79 | * there is one or more holes between them. The holes are filled by adding: |
|
80 | * there is one or more holes between them. The holes are filled by adding: | |
80 | * - for the x-axis, new data corresponding to the 'step resolution' starting from the first |
|
81 | * - for the x-axis, new data corresponding to the 'step resolution' starting from the first | |
81 | * data; |
|
82 | * data; | |
82 | * - for values, a default value (fill value) for each new data added on the x-axis. |
|
83 | * - for values, a default value (fill value) for each new data added on the x-axis. | |
83 | * |
|
84 | * | |
84 | * For example, with : |
|
85 | * For example, with : | |
85 | * - xAxisData = [0, 1, 5, 7, 14 ] |
|
86 | * - xAxisData = [0, 1, 5, 7, 14 ] | |
86 | * - valuesData = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] (two components per x-axis data) |
|
87 | * - valuesData = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] (two components per x-axis data) | |
87 | * - fillValue = NaN |
|
88 | * - fillValue = NaN | |
88 | * - and resolution = 2; |
|
89 | * - and resolution = 2; | |
89 | * |
|
90 | * | |
90 | * For the x axis, we calculate as data holes: [3, 9, 11, 13]. These holes are added to the |
|
91 | * For the x axis, we calculate as data holes: [3, 9, 11, 13]. These holes are added to the | |
91 | * x-axis data, and NaNs (two per x-axis data) are added to the values: |
|
92 | * x-axis data, and NaNs (two per x-axis data) are added to the values: | |
92 | * => xAxisData = [0, 1, 3, 5, 7, 9, 11, 13, 14 ] |
|
93 | * => xAxisData = [0, 1, 3, 5, 7, 9, 11, 13, 14 ] | |
93 | * => valuesData = [0, 1, 2, 3, NaN, NaN, 4, 5, 6, 7, NaN, NaN, NaN, NaN, NaN, NaN, 8, 9] |
|
94 | * => valuesData = [0, 1, 2, 3, NaN, NaN, 4, 5, 6, 7, NaN, NaN, NaN, NaN, NaN, NaN, 8, 9] | |
94 | * |
|
95 | * | |
95 | * It is also possible to set bounds for the data series. If these bounds are defined and exceed |
|
96 | * It is also possible to set bounds for the data series. If these bounds are defined and exceed | |
96 | * the limits of the data series, data holes are added to the series at the beginning and/or the |
|
97 | * the limits of the data series, data holes are added to the series at the beginning and/or the | |
97 | * end. |
|
98 | * end. | |
98 | * |
|
99 | * | |
99 | * The generation of data holes at the beginning/end of the data series is performed starting |
|
100 | * The generation of data holes at the beginning/end of the data series is performed starting | |
100 | * from the x-axis series limit and adding data holes at each 'resolution step' as long as the |
|
101 | * from the x-axis series limit and adding data holes at each 'resolution step' as long as the | |
101 | * new bound is not reached. |
|
102 | * new bound is not reached. | |
102 | * |
|
103 | * | |
103 | * For example, with : |
|
104 | * For example, with : | |
104 | * - xAxisData = [3, 4, 5, 6, 7 ] |
|
105 | * - xAxisData = [3, 4, 5, 6, 7 ] | |
105 | * - valuesData = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] |
|
106 | * - valuesData = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
106 | * - fillValue = NaN |
|
107 | * - fillValue = NaN | |
107 | * - minBound = 0 |
|
108 | * - minBound = 0 | |
108 | * - maxBound = 12 |
|
109 | * - maxBound = 12 | |
109 | * - and resolution = 2; |
|
110 | * - and resolution = 2; | |
110 | * |
|
111 | * | |
111 | * => Starting from 3 and decreasing 2 by 2 until reaching 0 : a data hole at value 1 will be |
|
112 | * => Starting from 3 and decreasing 2 by 2 until reaching 0 : a data hole at value 1 will be | |
112 | * added to the beginning of the series |
|
113 | * added to the beginning of the series | |
113 | * => Starting from 7 and increasing 2 by 2 until reaching 12 : data holes at values 9 and 11 |
|
114 | * => Starting from 7 and increasing 2 by 2 until reaching 12 : data holes at values 9 and 11 | |
114 | * will be added to the end of the series |
|
115 | * will be added to the end of the series | |
115 | * |
|
116 | * | |
116 | * So : |
|
117 | * So : | |
117 | * => xAxisData = [1, 3, 4, 5, 6, 7, 9, 11 ] |
|
118 | * => xAxisData = [1, 3, 4, 5, 6, 7, 9, 11 ] | |
118 | * => valuesData = [NaN, NaN, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, NaN, NaN, NaN, NaN] |
|
119 | * => valuesData = [NaN, NaN, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, NaN, NaN, NaN, NaN] | |
119 | * |
|
120 | * | |
120 | * @param xAxisData the x-axis data of the data series |
|
121 | * @param xAxisData the x-axis data of the data series | |
121 | * @param valuesData the values data of the data series |
|
122 | * @param valuesData the values data of the data series | |
122 | * @param resolution the resoultion (on x-axis) used to determinate data holes |
|
123 | * @param resolution the resoultion (on x-axis) used to determinate data holes | |
123 | * @param fillValue the fill value used for data holes in the values data |
|
124 | * @param fillValue the fill value used for data holes in the values data | |
124 | * @param minBound the limit at which to start filling data holes for the series. If set to NaN, |
|
125 | * @param minBound the limit at which to start filling data holes for the series. If set to NaN, | |
125 | * the limit is not used |
|
126 | * the limit is not used | |
126 | * @param maxBound the limit at which to end filling data holes for the series. If set to NaN, |
|
127 | * @param maxBound the limit at which to end filling data holes for the series. If set to NaN, | |
127 | * the limit is not used |
|
128 | * the limit is not used | |
128 | * |
|
129 | * | |
129 | * @remarks There is no control over the consistency between x-axis data and values data. The |
|
130 | * @remarks There is no control over the consistency between x-axis data and values data. The | |
130 | * method considers that the data is well formed (the total number of values data is a multiple |
|
131 | * method considers that the data is well formed (the total number of values data is a multiple | |
131 | * of the number of x-axis data) |
|
132 | * of the number of x-axis data) | |
132 | */ |
|
133 | */ | |
133 | static void fillDataHoles(std::vector<double> &xAxisData, std::vector<double> &valuesData, |
|
134 | static void fillDataHoles(std::vector<double> &xAxisData, std::vector<double> &valuesData, | |
134 | double resolution, |
|
135 | double resolution, | |
135 | double fillValue = std::numeric_limits<double>::quiet_NaN(), |
|
136 | double fillValue = std::numeric_limits<double>::quiet_NaN(), | |
136 | double minBound = std::numeric_limits<double>::quiet_NaN(), |
|
137 | double minBound = std::numeric_limits<double>::quiet_NaN(), | |
137 | double maxBound = std::numeric_limits<double>::quiet_NaN()); |
|
138 | double maxBound = std::numeric_limits<double>::quiet_NaN()); | |
138 | /** |
|
139 | /** | |
139 | * Computes the resolution of a dataset passed as a parameter. |
|
140 | * Computes the resolution of a dataset passed as a parameter. | |
140 | * |
|
141 | * | |
141 | * The resolution of a dataset is the minimum difference between two values that follow in the |
|
142 | * The resolution of a dataset is the minimum difference between two values that follow in the | |
142 | * set. |
|
143 | * set. | |
143 | * For example: |
|
144 | * For example: | |
144 | * - for the set [0, 2, 4, 8, 10, 11, 13] => the resolution is 1 (difference between 10 and 11). |
|
145 | * - for the set [0, 2, 4, 8, 10, 11, 13] => the resolution is 1 (difference between 10 and 11). | |
145 | * |
|
146 | * | |
146 | * A resolution can be calculated on the logarithmic scale (base of 10). In this case, the |
|
147 | * A resolution can be calculated on the logarithmic scale (base of 10). In this case, the | |
147 | * dataset is first converted to logarithmic values. |
|
148 | * dataset is first converted to logarithmic values. | |
148 | * For example: |
|
149 | * For example: | |
149 | * - for the set [10, 100, 10000, 1000000], the values are converted to [1, 2, 4, 6] => the |
|
150 | * - for the set [10, 100, 10000, 1000000], the values are converted to [1, 2, 4, 6] => the | |
150 | * logarithmic resolution is 1 (difference between 1 and 2). |
|
151 | * logarithmic resolution is 1 (difference between 1 and 2). | |
151 | * |
|
152 | * | |
152 | * @param begin the iterator pointing to the beginning of the dataset |
|
153 | * @param begin the iterator pointing to the beginning of the dataset | |
153 | * @param end the iterator pointing to the end of the dataset |
|
154 | * @param end the iterator pointing to the end of the dataset | |
154 | * @param logarithmic computes a logarithmic resolution or not |
|
155 | * @param logarithmic computes a logarithmic resolution or not | |
155 | * @return the resolution computed |
|
156 | * @return the resolution computed | |
156 | * @warning the method considers the dataset as sorted and doesn't control it. |
|
157 | * @warning the method considers the dataset as sorted and doesn't control it. | |
157 | */ |
|
158 | */ | |
158 | template <typename Iterator> |
|
159 | template <typename Iterator> | |
159 | static Resolution resolution(Iterator begin, Iterator end, bool logarithmic = false); |
|
160 | static Resolution resolution(Iterator begin, Iterator end, bool logarithmic = false); | |
160 |
|
161 | |||
161 | /** |
|
162 | /** | |
162 | * Computes a regular mesh for a data series, according to resolutions for x-axis and y-axis |
|
163 | * Computes a regular mesh for a data series, according to resolutions for x-axis and y-axis | |
163 | * passed as parameters. |
|
164 | * passed as parameters. | |
164 | * |
|
165 | * | |
165 | * The mesh is created from the resolutions in x and y and the boundaries delimiting the data |
|
166 | * The mesh is created from the resolutions in x and y and the boundaries delimiting the data | |
166 | * series. If the resolutions do not allow to obtain a regular mesh, they are recalculated. |
|
167 | * series. If the resolutions do not allow to obtain a regular mesh, they are recalculated. | |
167 | * |
|
168 | * | |
168 | * For example : |
|
169 | * For example : | |
169 | * Let x-axis data = [0, 1, 3, 5, 9], its associated values = [0, 10, 30, 50, 90] and |
|
170 | * Let x-axis data = [0, 1, 3, 5, 9], its associated values = [0, 10, 30, 50, 90] and | |
170 | * xResolution = 2. |
|
171 | * xResolution = 2. | |
171 | * Based on the resolution, the mesh would be [0, 2, 4, 6, 8, 10] and would be invalid because |
|
172 | * Based on the resolution, the mesh would be [0, 2, 4, 6, 8, 10] and would be invalid because | |
172 | * it exceeds the maximum bound of the data. The resolution is thus recalculated so that the |
|
173 | * it exceeds the maximum bound of the data. The resolution is thus recalculated so that the | |
173 | * mesh holds between the data terminals. |
|
174 | * mesh holds between the data terminals. | |
174 | * So => resolution is 1.8 and the mesh is [0, 1.8, 3.6, 5.4, 7.2, 9]. |
|
175 | * So => resolution is 1.8 and the mesh is [0, 1.8, 3.6, 5.4, 7.2, 9]. | |
175 | * |
|
176 | * | |
176 | * Once the mesh is generated in x and y, the values are associated with each mesh point, |
|
177 | * Once the mesh is generated in x and y, the values are associated with each mesh point, | |
177 | * based on the data in the series, finding the existing data at which the mesh point would be |
|
178 | * based on the data in the series, finding the existing data at which the mesh point would be | |
178 | * or would be closest to, without exceeding it. |
|
179 | * or would be closest to, without exceeding it. | |
179 | * |
|
180 | * | |
180 | * In the example, we determine the value of each mesh point: |
|
181 | * In the example, we determine the value of each mesh point: | |
181 | * - x = 0 => value = 0 (existing x in the data series) |
|
182 | * - x = 0 => value = 0 (existing x in the data series) | |
182 | * - x = 1.8 => value = 10 (the closest existing x: 1) |
|
183 | * - x = 1.8 => value = 10 (the closest existing x: 1) | |
183 | * - x = 3.6 => value = 30 (the closest existing x: 3) |
|
184 | * - x = 3.6 => value = 30 (the closest existing x: 3) | |
184 | * - x = 5.4 => value = 50 (the closest existing x: 5) |
|
185 | * - x = 5.4 => value = 50 (the closest existing x: 5) | |
185 | * - x = 7.2 => value = 50 (the closest existing x: 5) |
|
186 | * - x = 7.2 => value = 50 (the closest existing x: 5) | |
186 | * - x = 9 => value = 90 (existing x in the data series) |
|
187 | * - x = 9 => value = 90 (existing x in the data series) | |
187 | * |
|
188 | * | |
188 | * Same algorithm is applied for y-axis. |
|
189 | * Same algorithm is applied for y-axis. | |
189 | * |
|
190 | * | |
190 | * @param begin the iterator pointing to the beginning of the data series |
|
191 | * @param begin the iterator pointing to the beginning of the data series | |
191 | * @param end the iterator pointing to the end of the data series |
|
192 | * @param end the iterator pointing to the end of the data series | |
192 | * @param xResolution the resolution expected for the mesh's x-axis |
|
193 | * @param xResolution the resolution expected for the mesh's x-axis | |
193 | * @param yResolution the resolution expected for the mesh's y-axis |
|
194 | * @param yResolution the resolution expected for the mesh's y-axis | |
194 | * @return the mesh created, an empty mesh if the input data do not allow to generate a regular |
|
195 | * @return the mesh created, an empty mesh if the input data do not allow to generate a regular | |
195 | * mesh (empty data, null resolutions, logarithmic x-axis) |
|
196 | * mesh (empty data, null resolutions, logarithmic x-axis) | |
196 | * @warning the method considers the dataset as sorted and doesn't control it. |
|
197 | * @warning the method considers the dataset as sorted and doesn't control it. | |
197 | */ |
|
198 | */ | |
198 | static Mesh regularMesh(DataSeriesIterator begin, DataSeriesIterator end, |
|
199 | static Mesh regularMesh(DataSeriesIterator begin, DataSeriesIterator end, | |
199 | Resolution xResolution, Resolution yResolution); |
|
200 | Resolution xResolution, Resolution yResolution); | |
|
201 | ||||
|
202 | /** | |||
|
203 | * Calculates the min and max thresholds of a dataset. | |||
|
204 | * | |||
|
205 | * The thresholds of a dataset correspond to the min and max limits of the set to which the | |||
|
206 | * outliers are exluded (values distant from the others) For example, for the set [1, 2, 3, 4, | |||
|
207 | * 5, 10000], 10000 is an outlier and will be excluded from the thresholds. | |||
|
208 | * | |||
|
209 | * Bounds determining the thresholds is calculated according to the mean and the standard | |||
|
210 | * deviation of the defined data. The thresholds are limited to the min / max values of the | |||
|
211 | * dataset: if for example the calculated min threshold is 2 but the min value of the datasetset | |||
|
212 | * is 4, 4 is returned as the min threshold. | |||
|
213 | * | |||
|
214 | * @param begin the beginning of the dataset | |||
|
215 | * @param end the end of the dataset | |||
|
216 | * @param logarithmic computes threshold with a logarithmic scale or not | |||
|
217 | * @return the thresholds computed, a couple of nan values if it couldn't be computed | |||
|
218 | */ | |||
|
219 | template <typename Iterator> | |||
|
220 | static std::pair<double, double> thresholds(Iterator begin, Iterator end, | |||
|
221 | bool logarithmic = false); | |||
200 | }; |
|
222 | }; | |
201 |
|
223 | |||
202 | template <typename Iterator> |
|
224 | template <typename Iterator> | |
203 | DataSeriesUtils::Resolution DataSeriesUtils::resolution(Iterator begin, Iterator end, |
|
225 | DataSeriesUtils::Resolution DataSeriesUtils::resolution(Iterator begin, Iterator end, | |
204 | bool logarithmic) |
|
226 | bool logarithmic) | |
205 | { |
|
227 | { | |
206 | // Retrieves data into a work dataset |
|
228 | // Retrieves data into a work dataset | |
207 | using ValueType = typename Iterator::value_type; |
|
229 | using ValueType = typename Iterator::value_type; | |
208 | std::vector<ValueType> values{}; |
|
230 | std::vector<ValueType> values{}; | |
209 | std::copy(begin, end, std::back_inserter(values)); |
|
231 | std::copy(begin, end, std::back_inserter(values)); | |
210 |
|
232 | |||
211 | // Converts data if logarithmic flag is activated |
|
233 | // Converts data if logarithmic flag is activated | |
212 | if (logarithmic) { |
|
234 | if (logarithmic) { | |
213 | std::for_each(values.begin(), values.end(), |
|
235 | std::for_each(values.begin(), values.end(), | |
214 | [logarithmic](auto &val) { val = std::log10(val); }); |
|
236 | [logarithmic](auto &val) { val = std::log10(val); }); | |
215 | } |
|
237 | } | |
216 |
|
238 | |||
217 | // Computes the differences between the values in the dataset |
|
239 | // Computes the differences between the values in the dataset | |
218 | std::adjacent_difference(values.begin(), values.end(), values.begin()); |
|
240 | std::adjacent_difference(values.begin(), values.end(), values.begin()); | |
219 |
|
241 | |||
220 | // Retrieves the smallest difference |
|
242 | // Retrieves the smallest difference | |
221 | auto resolutionIt = std::min_element(values.begin(), values.end()); |
|
243 | auto resolutionIt = std::min_element(values.begin(), values.end()); | |
222 | auto resolution |
|
244 | auto resolution | |
223 | = resolutionIt != values.end() ? *resolutionIt : std::numeric_limits<double>::quiet_NaN(); |
|
245 | = resolutionIt != values.end() ? *resolutionIt : std::numeric_limits<double>::quiet_NaN(); | |
224 |
|
246 | |||
225 | return Resolution{resolution, logarithmic}; |
|
247 | return Resolution{resolution, logarithmic}; | |
226 | } |
|
248 | } | |
227 |
|
249 | |||
|
250 | template <typename Iterator> | |||
|
251 | std::pair<double, double> DataSeriesUtils::thresholds(Iterator begin, Iterator end, | |||
|
252 | bool logarithmic) | |||
|
253 | { | |||
|
254 | /// Lambda that converts values in case of logaritmic scale | |||
|
255 | auto toLog = [logarithmic](const auto &value) { | |||
|
256 | if (logarithmic) { | |||
|
257 | // Logaritmic scale doesn't include zero value | |||
|
258 | return !(std::isnan(value) || value < std::numeric_limits<double>::epsilon()) | |||
|
259 | ? std::log10(value) | |||
|
260 | : std::numeric_limits<double>::quiet_NaN(); | |||
|
261 | } | |||
|
262 | else { | |||
|
263 | return value; | |||
|
264 | } | |||
|
265 | }; | |||
|
266 | ||||
|
267 | /// Lambda that converts values to linear scale | |||
|
268 | auto fromLog | |||
|
269 | = [logarithmic](const auto &value) { return logarithmic ? std::pow(10, value) : value; }; | |||
|
270 | ||||
|
271 | /// Lambda used to sum data and divide the sum by the number of data. It is used to calculate | |||
|
272 | /// the mean and standard deviation | |||
|
273 | /// @param fun the data addition function | |||
|
274 | auto accumulate = [begin, end](auto fun) { | |||
|
275 | double sum; | |||
|
276 | int nbValues; | |||
|
277 | std::tie(sum, nbValues) = std::accumulate( | |||
|
278 | begin, end, std::make_pair(0., 0), [fun](const auto &input, const auto &value) { | |||
|
279 | auto computedValue = fun(value); | |||
|
280 | ||||
|
281 | // NaN values are excluded from the sum | |||
|
282 | return !std::isnan(computedValue) | |||
|
283 | ? std::make_pair(input.first + computedValue, input.second + 1) | |||
|
284 | : input; | |||
|
285 | }); | |||
|
286 | ||||
|
287 | return nbValues != 0 ? sum / nbValues : std::numeric_limits<double>::quiet_NaN(); | |||
|
288 | }; | |||
|
289 | ||||
|
290 | // Computes mean | |||
|
291 | auto mean = accumulate([toLog](const auto &val) { return toLog(val); }); | |||
|
292 | if (std::isnan(mean)) { | |||
|
293 | return {std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN()}; | |||
|
294 | } | |||
|
295 | ||||
|
296 | // Computes standard deviation | |||
|
297 | auto variance | |||
|
298 | = accumulate([mean, toLog](const auto &val) { return std::pow(toLog(val) - mean, 2); }); | |||
|
299 | auto sigma = std::sqrt(variance); | |||
|
300 | ||||
|
301 | // Computes thresholds | |||
|
302 | auto minThreshold = fromLog(mean - 3 * sigma); | |||
|
303 | auto maxThreshold = fromLog(mean + 3 * sigma); | |||
|
304 | ||||
|
305 | // Finds min/max values | |||
|
306 | auto minIt = std::min_element(begin, end, [toLog](const auto &it1, const auto &it2) { | |||
|
307 | return SortUtils::minCompareWithNaN(toLog(it1), toLog(it2)); | |||
|
308 | }); | |||
|
309 | auto maxIt = std::max_element(begin, end, [toLog](const auto &it1, const auto &it2) { | |||
|
310 | return SortUtils::maxCompareWithNaN(toLog(it1), toLog(it2)); | |||
|
311 | }); | |||
|
312 | ||||
|
313 | // Returns thresholds (bounded to min/max values) | |||
|
314 | return {std::max(*minIt, minThreshold), std::min(*maxIt, maxThreshold)}; | |||
|
315 | } | |||
|
316 | ||||
228 | #endif // SCIQLOP_DATASERIESUTILS_H |
|
317 | #endif // SCIQLOP_DATASERIESUTILS_H |
@@ -1,108 +1,206 | |||||
1 | #include <Data/DataSeriesUtils.h> |
|
1 | #include <Data/DataSeriesUtils.h> | |
2 |
|
2 | |||
3 | #include <QObject> |
|
3 | #include <QObject> | |
4 | #include <QtTest> |
|
4 | #include <QtTest> | |
5 |
|
5 | |||
|
6 | namespace { | |||
|
7 | ||||
|
8 | /// Path for resources | |||
|
9 | const auto TESTS_RESOURCES_PATH | |||
|
10 | = QFileInfo{QString{CORE_TESTS_RESOURCES_DIR}, "TestDataSeriesUtils"}.absoluteFilePath(); | |||
|
11 | ||||
|
12 | QString inputFilePath(const QString &inputFileName) | |||
|
13 | { | |||
|
14 | return QFileInfo{TESTS_RESOURCES_PATH, inputFileName}.absoluteFilePath(); | |||
|
15 | } | |||
|
16 | ||||
|
17 | } // namespace | |||
|
18 | ||||
6 | class TestDataSeriesUtils : public QObject { |
|
19 | class TestDataSeriesUtils : public QObject { | |
7 | Q_OBJECT |
|
20 | Q_OBJECT | |
8 |
|
21 | |||
9 | private slots: |
|
22 | private slots: | |
|
23 | /// Tests @sa DataSeriesUtils::thresholds() method | |||
|
24 | void testThresholds_data(); | |||
|
25 | void testThresholds(); | |||
|
26 | ||||
10 | /// Tests @sa DataSeriesUtils::fillDataHoles() method |
|
27 | /// Tests @sa DataSeriesUtils::fillDataHoles() method | |
11 | void testFillDataHoles_data(); |
|
28 | void testFillDataHoles_data(); | |
12 | void testFillDataHoles(); |
|
29 | void testFillDataHoles(); | |
13 | }; |
|
30 | }; | |
14 |
|
31 | |||
15 | void TestDataSeriesUtils::testFillDataHoles_data() |
|
32 | void TestDataSeriesUtils::testFillDataHoles_data() | |
16 | { |
|
33 | { | |
17 | QTest::addColumn<std::vector<double> >("xAxisData"); |
|
34 | QTest::addColumn<std::vector<double> >("xAxisData"); | |
18 | QTest::addColumn<std::vector<double> >("valuesData"); |
|
35 | QTest::addColumn<std::vector<double> >("valuesData"); | |
19 | QTest::addColumn<double>("resolution"); |
|
36 | QTest::addColumn<double>("resolution"); | |
20 | QTest::addColumn<double>("fillValue"); |
|
37 | QTest::addColumn<double>("fillValue"); | |
21 | QTest::addColumn<double>("minBound"); |
|
38 | QTest::addColumn<double>("minBound"); | |
22 | QTest::addColumn<double>("maxBound"); |
|
39 | QTest::addColumn<double>("maxBound"); | |
23 | QTest::addColumn<std::vector<double> >( |
|
40 | QTest::addColumn<std::vector<double> >( | |
24 | "expectedXAxisData"); // expected x-axis data after filling holes |
|
41 | "expectedXAxisData"); // expected x-axis data after filling holes | |
25 | QTest::addColumn<std::vector<double> >( |
|
42 | QTest::addColumn<std::vector<double> >( | |
26 | "expectedValuesData"); // expected values data after filling holes |
|
43 | "expectedValuesData"); // expected values data after filling holes | |
27 |
|
44 | |||
28 | auto nan = std::numeric_limits<double>::quiet_NaN(); |
|
45 | auto nan = std::numeric_limits<double>::quiet_NaN(); | |
29 |
|
46 | |||
30 | QTest::newRow("fillDataHoles (basic case)") |
|
47 | QTest::newRow("fillDataHoles (basic case)") | |
31 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} << 2. |
|
48 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} << 2. | |
32 | << nan << nan << nan << std::vector<double>{0., 1., 3., 5., 7., 9., 11., 13., 14.} |
|
49 | << nan << nan << nan << std::vector<double>{0., 1., 3., 5., 7., 9., 11., 13., 14.} | |
33 | << std::vector<double>{0., 1., nan, 2., 3., nan, nan, nan, 4.}; |
|
50 | << std::vector<double>{0., 1., nan, 2., 3., nan, nan, nan, 4.}; | |
34 |
|
51 | |||
35 | QTest::newRow("fillDataHoles (change nb components)") |
|
52 | QTest::newRow("fillDataHoles (change nb components)") | |
36 | << std::vector<double>{0., 1., 5., 7., 14.} |
|
53 | << std::vector<double>{0., 1., 5., 7., 14.} | |
37 | << std::vector<double>{0., 1., 2., 3., 4., 5., 6., 7., 8., 9.} << 2. << nan << nan << nan |
|
54 | << std::vector<double>{0., 1., 2., 3., 4., 5., 6., 7., 8., 9.} << 2. << nan << nan << nan | |
38 | << std::vector<double>{0., 1., 3., 5., 7., 9., 11., 13., 14.} |
|
55 | << std::vector<double>{0., 1., 3., 5., 7., 9., 11., 13., 14.} | |
39 | << std::vector<double>{0., 1., 2., 3., nan, nan, 4., 5., 6., |
|
56 | << std::vector<double>{0., 1., 2., 3., nan, nan, 4., 5., 6., | |
40 | 7., nan, nan, nan, nan, nan, nan, 8., 9.}; |
|
57 | 7., nan, nan, nan, nan, nan, nan, 8., 9.}; | |
41 |
|
58 | |||
42 | QTest::newRow("fillDataHoles (change resolution)") |
|
59 | QTest::newRow("fillDataHoles (change resolution)") | |
43 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} |
|
60 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} | |
44 | << 1.5 << nan << nan << nan |
|
61 | << 1.5 << nan << nan << nan | |
45 | << std::vector<double>{0., 1., 2.5, 4., 5., 6.5, 7., 8.5, 10., 11.5, 13., 14.} |
|
62 | << std::vector<double>{0., 1., 2.5, 4., 5., 6.5, 7., 8.5, 10., 11.5, 13., 14.} | |
46 | << std::vector<double>{0., 1., nan, nan, 2., nan, 3., nan, nan, nan, nan, 4.}; |
|
63 | << std::vector<double>{0., 1., nan, nan, 2., nan, 3., nan, nan, nan, nan, 4.}; | |
47 |
|
64 | |||
48 | QTest::newRow("fillDataHoles (with no data (no changes made))") |
|
65 | QTest::newRow("fillDataHoles (with no data (no changes made))") | |
49 | << std::vector<double>{} << std::vector<double>{} << 2. << nan << nan << nan |
|
66 | << std::vector<double>{} << std::vector<double>{} << 2. << nan << nan << nan | |
50 | << std::vector<double>{} << std::vector<double>{}; |
|
67 | << std::vector<double>{} << std::vector<double>{}; | |
51 |
|
68 | |||
52 | QTest::newRow("fillDataHoles (with no resolution (no changes made))") |
|
69 | QTest::newRow("fillDataHoles (with no resolution (no changes made))") | |
53 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} << 0. |
|
70 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} << 0. | |
54 | << nan << nan << nan << std::vector<double>{0., 1., 5., 7., 14.} |
|
71 | << nan << nan << nan << std::vector<double>{0., 1., 5., 7., 14.} | |
55 | << std::vector<double>{0., 1., 2., 3., 4.}; |
|
72 | << std::vector<double>{0., 1., 2., 3., 4.}; | |
56 |
|
73 | |||
57 | QTest::newRow("fillDataHoles (change fill value)") |
|
74 | QTest::newRow("fillDataHoles (change fill value)") | |
58 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} << 2. |
|
75 | << std::vector<double>{0., 1., 5., 7., 14.} << std::vector<double>{0., 1., 2., 3., 4.} << 2. | |
59 | << -1. << nan << nan << std::vector<double>{0., 1., 3., 5., 7., 9., 11., 13., 14.} |
|
76 | << -1. << nan << nan << std::vector<double>{0., 1., 3., 5., 7., 9., 11., 13., 14.} | |
60 | << std::vector<double>{0., 1., -1., 2., 3., -1., -1., -1., 4.}; |
|
77 | << std::vector<double>{0., 1., -1., 2., 3., -1., -1., -1., 4.}; | |
61 |
|
78 | |||
62 | QTest::newRow("fillDataHoles (add data holes to the beginning)") |
|
79 | QTest::newRow("fillDataHoles (add data holes to the beginning)") | |
63 | << std::vector<double>{5., 7., 9., 11., 13.} << std::vector<double>{0., 1., 2., 3., 4.} |
|
80 | << std::vector<double>{5., 7., 9., 11., 13.} << std::vector<double>{0., 1., 2., 3., 4.} | |
64 | << 2. << nan << 0. << nan << std::vector<double>{1., 3., 5., 7., 9., 11., 13.} |
|
81 | << 2. << nan << 0. << nan << std::vector<double>{1., 3., 5., 7., 9., 11., 13.} | |
65 | << std::vector<double>{nan, nan, 0., 1., 2., 3., 4.}; |
|
82 | << std::vector<double>{nan, nan, 0., 1., 2., 3., 4.}; | |
66 |
|
83 | |||
67 | QTest::newRow("fillDataHoles (add data holes to the end)") |
|
84 | QTest::newRow("fillDataHoles (add data holes to the end)") | |
68 | << std::vector<double>{5., 7., 9., 11., 13.} << std::vector<double>{0., 1., 2., 3., 4.} |
|
85 | << std::vector<double>{5., 7., 9., 11., 13.} << std::vector<double>{0., 1., 2., 3., 4.} | |
69 | << 2. << nan << nan << 21. << std::vector<double>{5., 7., 9., 11., 13., 15., 17., 19., 21.} |
|
86 | << 2. << nan << nan << 21. << std::vector<double>{5., 7., 9., 11., 13., 15., 17., 19., 21.} | |
70 | << std::vector<double>{0., 1., 2., 3., 4., nan, nan, nan, nan}; |
|
87 | << std::vector<double>{0., 1., 2., 3., 4., nan, nan, nan, nan}; | |
71 |
|
88 | |||
72 | QTest::newRow("fillDataHoles (invalid min/max bounds (no changes made))") |
|
89 | QTest::newRow("fillDataHoles (invalid min/max bounds (no changes made))") | |
73 | << std::vector<double>{5., 7., 9., 11., 13.} << std::vector<double>{0., 1., 2., 3., 4.} |
|
90 | << std::vector<double>{5., 7., 9., 11., 13.} << std::vector<double>{0., 1., 2., 3., 4.} | |
74 | << 2. << nan << 8. << 13. << std::vector<double>{5., 7., 9., 11., 13.} |
|
91 | << 2. << nan << 8. << 13. << std::vector<double>{5., 7., 9., 11., 13.} | |
75 | << std::vector<double>{0., 1., 2., 3., 4.}; |
|
92 | << std::vector<double>{0., 1., 2., 3., 4.}; | |
76 | } |
|
93 | } | |
77 |
|
94 | |||
78 | void TestDataSeriesUtils::testFillDataHoles() |
|
95 | void TestDataSeriesUtils::testFillDataHoles() | |
79 | { |
|
96 | { | |
80 | QFETCH(std::vector<double>, xAxisData); |
|
97 | QFETCH(std::vector<double>, xAxisData); | |
81 | QFETCH(std::vector<double>, valuesData); |
|
98 | QFETCH(std::vector<double>, valuesData); | |
82 | QFETCH(double, resolution); |
|
99 | QFETCH(double, resolution); | |
83 | QFETCH(double, fillValue); |
|
100 | QFETCH(double, fillValue); | |
84 | QFETCH(double, minBound); |
|
101 | QFETCH(double, minBound); | |
85 | QFETCH(double, maxBound); |
|
102 | QFETCH(double, maxBound); | |
86 |
|
103 | |||
87 | QFETCH(std::vector<double>, expectedXAxisData); |
|
104 | QFETCH(std::vector<double>, expectedXAxisData); | |
88 | QFETCH(std::vector<double>, expectedValuesData); |
|
105 | QFETCH(std::vector<double>, expectedValuesData); | |
89 |
|
106 | |||
90 | // Executes method (xAxisData and valuesData are modified) |
|
107 | // Executes method (xAxisData and valuesData are modified) | |
91 | DataSeriesUtils::fillDataHoles(xAxisData, valuesData, resolution, fillValue, minBound, |
|
108 | DataSeriesUtils::fillDataHoles(xAxisData, valuesData, resolution, fillValue, minBound, | |
92 | maxBound); |
|
109 | maxBound); | |
93 |
|
110 | |||
94 | // Checks results |
|
111 | // Checks results | |
95 | auto equal = [](const auto &data, const auto &expectedData) { |
|
112 | auto equal = [](const auto &data, const auto &expectedData) { | |
96 | // Compares with NaN values |
|
113 | // Compares with NaN values | |
97 | return std::equal(data.begin(), data.end(), expectedData.begin(), expectedData.end(), |
|
114 | return std::equal(data.begin(), data.end(), expectedData.begin(), expectedData.end(), | |
98 | [](const auto &val, const auto &expectedVal) { |
|
115 | [](const auto &val, const auto &expectedVal) { | |
99 | return (std::isnan(val) && std::isnan(expectedVal)) |
|
116 | return (std::isnan(val) && std::isnan(expectedVal)) | |
100 | || val == expectedVal; |
|
117 | || val == expectedVal; | |
101 | }); |
|
118 | }); | |
102 | }; |
|
119 | }; | |
103 | QVERIFY(equal(xAxisData, expectedXAxisData)); |
|
120 | QVERIFY(equal(xAxisData, expectedXAxisData)); | |
104 | QVERIFY(equal(valuesData, expectedValuesData)); |
|
121 | QVERIFY(equal(valuesData, expectedValuesData)); | |
105 | } |
|
122 | } | |
106 |
|
123 | |||
|
124 | namespace { | |||
|
125 | ||||
|
126 | const auto LINE_SEP = QRegularExpression{QStringLiteral("\\s+")}; | |||
|
127 | ||||
|
128 | std::vector<double> fromFile(const QString &filePath) | |||
|
129 | { | |||
|
130 | QFile file{filePath}; | |||
|
131 | ||||
|
132 | if (!file.open(QFile::ReadOnly | QIODevice::Text)) { | |||
|
133 | return {}; | |||
|
134 | } | |||
|
135 | ||||
|
136 | std::vector<double> result{}; | |||
|
137 | ||||
|
138 | QTextStream stream{&file}; | |||
|
139 | QString line{}; | |||
|
140 | ||||
|
141 | while (stream.readLineInto(&line)) { | |||
|
142 | auto lineData = line.split(LINE_SEP, QString::SkipEmptyParts); | |||
|
143 | ||||
|
144 | for (auto data : lineData) { | |||
|
145 | bool valueOk; | |||
|
146 | auto value = data.toDouble(&valueOk); | |||
|
147 | ||||
|
148 | result.push_back(valueOk ? value : std::numeric_limits<double>::quiet_NaN()); | |||
|
149 | } | |||
|
150 | } | |||
|
151 | ||||
|
152 | return result; | |||
|
153 | } | |||
|
154 | ||||
|
155 | } // namespace | |||
|
156 | ||||
|
157 | void TestDataSeriesUtils::testThresholds_data() | |||
|
158 | { | |||
|
159 | QTest::addColumn<std::vector<double> >("input"); | |||
|
160 | QTest::addColumn<bool>("logarithmic"); | |||
|
161 | QTest::addColumn<double>("expectedMinThreshold"); | |||
|
162 | QTest::addColumn<double>("expectedMaxThreshold"); | |||
|
163 | ||||
|
164 | auto nan = std::numeric_limits<double>::quiet_NaN(); | |||
|
165 | ||||
|
166 | QTest::newRow("thresholds (basic case)") | |||
|
167 | << std::vector<double>{1., 2., 3., 4., 5., 6., 7., 8., 9., 10.} << false << 1. << 10.; | |||
|
168 | ||||
|
169 | QTest::newRow("thresholds (with nan values)") | |||
|
170 | << std::vector<double>{nan, 2., 3., 4., 5., 6., 7., 8., 9., nan} << false << 2. << 9.; | |||
|
171 | ||||
|
172 | QTest::newRow("thresholds (case with low values and aberrant value)") | |||
|
173 | << std::vector<double>{1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 2., | |||
|
174 | 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 3., 3., | |||
|
175 | 3., 3., 3., 3., 3., 3., 3., 3., 3., 3., 3., 3., 3., 100.} | |||
|
176 | << false << 1. << 47.073; | |||
|
177 | ||||
|
178 | QTest::newRow("thresholds (empty data)") << std::vector<double>{} << false << nan << nan; | |||
|
179 | QTest::newRow("thresholds (only nan values)") | |||
|
180 | << std::vector<double>{nan, nan, nan, nan, nan} << false << nan << nan; | |||
|
181 | ||||
|
182 | QTest::newRow("thresholds (from file with logarithmic scale)") | |||
|
183 | << fromFile(inputFilePath("TestThresholds.txt")) << true << 832.005 << 17655064.730; | |||
|
184 | } | |||
|
185 | ||||
|
186 | void TestDataSeriesUtils::testThresholds() | |||
|
187 | { | |||
|
188 | QFETCH(std::vector<double>, input); | |||
|
189 | QFETCH(bool, logarithmic); | |||
|
190 | QFETCH(double, expectedMinThreshold); | |||
|
191 | QFETCH(double, expectedMaxThreshold); | |||
|
192 | ||||
|
193 | double minThreshold, maxThreshold; | |||
|
194 | std::tie(minThreshold, maxThreshold) | |||
|
195 | = DataSeriesUtils::thresholds(input.begin(), input.end(), logarithmic); | |||
|
196 | ||||
|
197 | auto compareWithNaN = [](const auto &v1, const auto &v2) { | |||
|
198 | return (std::isnan(v1) && std::isnan(v2)) || std::abs(v1 - v2) < 1e-3; | |||
|
199 | }; | |||
|
200 | ||||
|
201 | QVERIFY(compareWithNaN(minThreshold, expectedMinThreshold)); | |||
|
202 | QVERIFY(compareWithNaN(maxThreshold, expectedMaxThreshold)); | |||
|
203 | } | |||
|
204 | ||||
107 | QTEST_MAIN(TestDataSeriesUtils) |
|
205 | QTEST_MAIN(TestDataSeriesUtils) | |
108 | #include "TestDataSeriesUtils.moc" |
|
206 | #include "TestDataSeriesUtils.moc" |
@@ -1,32 +1,33 | |||||
1 |
|
1 | |||
2 |
|
2 | |||
3 | tests = [ |
|
3 | tests = [ | |
4 | [['Common/TestStringUtils.cpp'],'test_string_utils','StringUtils test'], |
|
4 | [['Common/TestStringUtils.cpp'],'test_string_utils','StringUtils test'], | |
5 | [['Data/TestScalarSeries.cpp'],'test_scalar','ScalarSeries test'], |
|
5 | [['Data/TestScalarSeries.cpp'],'test_scalar','ScalarSeries test'], | |
6 | [['Data/TestSpectrogramSeries.cpp'],'test_spectrogram','SpectrogramSeries test'], |
|
6 | [['Data/TestSpectrogramSeries.cpp'],'test_spectrogram','SpectrogramSeries test'], | |
7 | [['Data/TestVectorSeries.cpp'],'test_vector','VectorSeries test'], |
|
7 | [['Data/TestVectorSeries.cpp'],'test_vector','VectorSeries test'], | |
8 | [['Data/TestOneDimArrayData.cpp'],'test_1d','One Dim Array test'], |
|
8 | [['Data/TestOneDimArrayData.cpp'],'test_1d','One Dim Array test'], | |
9 | [['Data/TestOptionalAxis.cpp'],'test_optional_axis','OptionalAxis test'], |
|
9 | [['Data/TestOptionalAxis.cpp'],'test_optional_axis','OptionalAxis test'], | |
10 | [['Data/TestTwoDimArrayData.cpp'],'test_2d','Two Dim Array test'], |
|
10 | [['Data/TestTwoDimArrayData.cpp'],'test_2d','Two Dim Array test'], | |
11 | [['Data/TestDataSeriesUtils.cpp'],'test_dataseries_util','Data series utils test'], |
|
11 | [['Data/TestDataSeriesUtils.cpp'],'test_dataseries_util','Data series utils test'], | |
12 | [['DataSource/TestDataSourceController.cpp'],'test_data_source','DataSourceController test'], |
|
12 | [['DataSource/TestDataSourceController.cpp'],'test_data_source','DataSourceController test'], | |
13 | [['Variable/TestVariableCacheController.cpp'],'test_variable_cache','VariableCacheController test'], |
|
13 | [['Variable/TestVariableCacheController.cpp'],'test_variable_cache','VariableCacheController test'], | |
14 | [['Variable/TestVariable.cpp'],'test_variable','Variable test'], |
|
14 | [['Variable/TestVariable.cpp'],'test_variable','Variable test'], | |
15 | [['Variable/TestVariableSync.cpp'],'test_variable_sync','Variable synchronization test'] |
|
15 | [['Variable/TestVariableSync.cpp'],'test_variable_sync','Variable synchronization test'] | |
16 | ] |
|
16 | ] | |
17 |
|
17 | |||
18 | amdatest_sources = [ |
|
18 | amdatest_sources = [ | |
19 | 'Data/DataSeriesBuilders.h', |
|
19 | 'Data/DataSeriesBuilders.h', | |
20 | 'Data/DataSeriesBuilders.cpp', |
|
20 | 'Data/DataSeriesBuilders.cpp', | |
21 | 'Data/DataSeriesTestsUtils.h', |
|
21 | 'Data/DataSeriesTestsUtils.h', | |
22 | 'Data/DataSeriesTestsUtils.cpp' |
|
22 | 'Data/DataSeriesTestsUtils.cpp' | |
23 | ] |
|
23 | ] | |
24 |
|
24 | |||
25 | foreach unit_test : tests |
|
25 | foreach unit_test : tests | |
26 | test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) |
|
26 | test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) | |
27 | test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, |
|
27 | test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, | |
28 | dependencies : [sciqlop_core, qt5test], |
|
28 | dependencies : [sciqlop_core, qt5test], | |
|
29 | cpp_args : ['-DCORE_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/../tests-resources"'], | |||
29 | sources : [amdatest_sources]) |
|
30 | sources : [amdatest_sources]) | |
30 | test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])]) |
|
31 | test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])]) | |
31 | endforeach |
|
32 | endforeach | |
32 |
|
33 |
@@ -1,37 +1,37 | |||||
1 | #ifndef SCIQLOP_AXISRENDERINGUTILS_H |
|
1 | #ifndef SCIQLOP_AXISRENDERINGUTILS_H | |
2 | #define SCIQLOP_AXISRENDERINGUTILS_H |
|
2 | #define SCIQLOP_AXISRENDERINGUTILS_H | |
3 |
|
3 | |||
4 | #include <memory> |
|
4 | #include <memory> | |
5 |
|
5 | |||
6 | #include <QtCore/QLoggingCategory> |
|
6 | #include <QtCore/QLoggingCategory> | |
7 | #include <QtCore/QString> |
|
7 | #include <QtCore/QString> | |
8 |
|
8 | |||
9 | Q_DECLARE_LOGGING_CATEGORY(LOG_AxisRenderingUtils) |
|
9 | Q_DECLARE_LOGGING_CATEGORY(LOG_AxisRenderingUtils) | |
10 |
|
10 | |||
11 | class IDataSeries; |
|
11 | class IDataSeries; | |
12 | class QCPAxis; |
|
12 | class QCPAxis; | |
13 | class QCPColorScale; |
|
|||
14 | class QCustomPlot; |
|
13 | class QCustomPlot; | |
|
14 | class SqpColorScale; | |||
15 |
|
15 | |||
16 | /// Formats a data value according to the axis on which it is present |
|
16 | /// Formats a data value according to the axis on which it is present | |
17 | QString formatValue(double value, const QCPAxis &axis); |
|
17 | QString formatValue(double value, const QCPAxis &axis); | |
18 |
|
18 | |||
19 | /** |
|
19 | /** | |
20 | * Helper used to handle axes rendering |
|
20 | * Helper used to handle axes rendering | |
21 | */ |
|
21 | */ | |
22 | struct IAxisHelper { |
|
22 | struct IAxisHelper { | |
23 | virtual ~IAxisHelper() noexcept = default; |
|
23 | virtual ~IAxisHelper() noexcept = default; | |
24 |
|
24 | |||
25 | /// Set properties of the plot's axes and the color scale associated to plot passed as |
|
25 | /// Set properties of the plot's axes and the color scale associated to plot passed as | |
26 | /// parameters |
|
26 | /// parameters | |
27 | /// @param plot the plot for which to set axe properties |
|
27 | /// @param plot the plot for which to set axe properties | |
28 | /// @param colorScale the color scale for which to set properties |
|
28 | /// @param colorScale the color scale for which to set properties | |
29 |
virtual void setProperties(QCustomPlot &plot, |
|
29 | virtual void setProperties(QCustomPlot &plot, SqpColorScale &colorScale) = 0; | |
30 | }; |
|
30 | }; | |
31 |
|
31 | |||
32 | struct IAxisHelperFactory { |
|
32 | struct IAxisHelperFactory { | |
33 | /// Creates IAxisHelper according to a data series |
|
33 | /// Creates IAxisHelper according to a data series | |
34 | static std::unique_ptr<IAxisHelper> create(std::shared_ptr<IDataSeries> dataSeries) noexcept; |
|
34 | static std::unique_ptr<IAxisHelper> create(std::shared_ptr<IDataSeries> dataSeries) noexcept; | |
35 | }; |
|
35 | }; | |
36 |
|
36 | |||
37 | #endif // SCIQLOP_AXISRENDERINGUTILS_H |
|
37 | #endif // SCIQLOP_AXISRENDERINGUTILS_H |
@@ -1,57 +1,61 | |||||
1 | #ifndef SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H |
|
1 | #ifndef SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H | |
2 | #define SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H |
|
2 | #define SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H | |
3 |
|
3 | |||
4 | #include <Common/spimpl.h> |
|
4 | #include <Common/spimpl.h> | |
5 | #include <QFrame> |
|
5 | #include <QFrame> | |
6 | #include <QLoggingCategory> |
|
6 | #include <QLoggingCategory> | |
7 | #include <QMimeData> |
|
7 | #include <QMimeData> | |
8 | #include <QVBoxLayout> |
|
8 | #include <QVBoxLayout> | |
9 |
|
9 | |||
10 | #include <functional> |
|
10 | #include <functional> | |
11 |
|
11 | |||
12 | #include <DragAndDrop/DragDropHelper.h> |
|
12 | #include <DragAndDrop/DragDropHelper.h> | |
13 |
|
13 | |||
14 | Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer) |
|
14 | Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer) | |
15 |
|
15 | |||
16 | class VisualizationDragWidget; |
|
16 | class VisualizationDragWidget; | |
17 |
|
17 | |||
18 | class VisualizationDragDropContainer : public QFrame { |
|
18 | class VisualizationDragDropContainer : public QFrame { | |
19 | Q_OBJECT |
|
19 | Q_OBJECT | |
20 |
|
20 | |||
21 | signals: |
|
21 | signals: | |
22 | void dropOccuredInContainer(int dropIndex, const QMimeData *mimeData); |
|
22 | void dropOccuredInContainer(int dropIndex, const QMimeData *mimeData); | |
23 | void dropOccuredOnWidget(VisualizationDragWidget *dragWidget, const QMimeData *mimeData); |
|
23 | void dropOccuredOnWidget(VisualizationDragWidget *dragWidget, const QMimeData *mimeData); | |
24 |
|
24 | |||
25 | public: |
|
25 | public: | |
26 | enum class DropBehavior { Inserted, Merged, InsertedAndMerged, Forbidden }; |
|
26 | enum class DropBehavior { Inserted, Merged, InsertedAndMerged, Forbidden }; | |
27 | using AcceptMimeDataFunction = std::function<bool(const QMimeData *mimeData)>; |
|
27 | using AcceptMimeDataFunction = std::function<bool(const QMimeData *mimeData)>; | |
|
28 | using AcceptDragWidgetFunction | |||
|
29 | = std::function<bool(const VisualizationDragWidget *dragWidget, const QMimeData *mimeData)>; | |||
28 |
|
30 | |||
29 | VisualizationDragDropContainer(QWidget *parent = nullptr); |
|
31 | VisualizationDragDropContainer(QWidget *parent = nullptr); | |
30 |
|
32 | |||
31 | void addDragWidget(VisualizationDragWidget *dragWidget); |
|
33 | void addDragWidget(VisualizationDragWidget *dragWidget); | |
32 | void insertDragWidget(int index, VisualizationDragWidget *dragWidget); |
|
34 | void insertDragWidget(int index, VisualizationDragWidget *dragWidget); | |
33 |
|
35 | |||
34 | void setMimeType(const QString &mimeType, DropBehavior behavior); |
|
36 | void setMimeType(const QString &mimeType, DropBehavior behavior); | |
35 |
|
37 | |||
36 | int countDragWidget() const; |
|
38 | int countDragWidget() const; | |
37 |
|
39 | |||
38 | void setAcceptMimeDataFunction(AcceptMimeDataFunction fun); |
|
40 | void setAcceptMimeDataFunction(AcceptMimeDataFunction fun); | |
39 |
|
41 | |||
|
42 | void setAcceptDragWidgetFunction(AcceptDragWidgetFunction fun); | |||
|
43 | ||||
40 | void setPlaceHolderType(DragDropHelper::PlaceHolderType type, |
|
44 | void setPlaceHolderType(DragDropHelper::PlaceHolderType type, | |
41 | const QString &placeHolderText = QString()); |
|
45 | const QString &placeHolderText = QString()); | |
42 |
|
46 | |||
43 | protected: |
|
47 | protected: | |
44 | void dragEnterEvent(QDragEnterEvent *event); |
|
48 | void dragEnterEvent(QDragEnterEvent *event); | |
45 | void dragLeaveEvent(QDragLeaveEvent *event); |
|
49 | void dragLeaveEvent(QDragLeaveEvent *event); | |
46 | void dragMoveEvent(QDragMoveEvent *event); |
|
50 | void dragMoveEvent(QDragMoveEvent *event); | |
47 | void dropEvent(QDropEvent *event); |
|
51 | void dropEvent(QDropEvent *event); | |
48 |
|
52 | |||
49 | private: |
|
53 | private: | |
50 | class VisualizationDragDropContainerPrivate; |
|
54 | class VisualizationDragDropContainerPrivate; | |
51 | spimpl::unique_impl_ptr<VisualizationDragDropContainerPrivate> impl; |
|
55 | spimpl::unique_impl_ptr<VisualizationDragDropContainerPrivate> impl; | |
52 |
|
56 | |||
53 | private slots: |
|
57 | private slots: | |
54 | void startDrag(VisualizationDragWidget *dragWidget, const QPoint &dragPosition); |
|
58 | void startDrag(VisualizationDragWidget *dragWidget, const QPoint &dragPosition); | |
55 | }; |
|
59 | }; | |
56 |
|
60 | |||
57 | #endif // SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H |
|
61 | #endif // SCIQLOP_VISUALIZATIONDRAGDROPCONTAINER_H |
@@ -1,39 +1,42 | |||||
1 | #ifndef SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H |
|
1 | #ifndef SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H | |
2 | #define SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H |
|
2 | #define SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H | |
3 |
|
3 | |||
4 | #include <Common/spimpl.h> |
|
4 | #include <Common/spimpl.h> | |
5 |
|
5 | |||
6 | #include <Visualization/VisualizationDefs.h> |
|
6 | #include <Visualization/VisualizationDefs.h> | |
7 |
|
7 | |||
8 | class IDataSeries; |
|
8 | class IDataSeries; | |
9 | class QCustomPlot; |
|
9 | class QCustomPlot; | |
10 | class QMouseEvent; |
|
10 | class QMouseEvent; | |
11 | class Unit; |
|
11 | class Unit; | |
12 | class VisualizationGraphWidget; |
|
12 | class VisualizationGraphWidget; | |
13 |
|
13 | |||
14 | class VisualizationGraphRenderingDelegate { |
|
14 | class VisualizationGraphRenderingDelegate { | |
15 | public: |
|
15 | public: | |
16 | /// Ctor |
|
16 | /// Ctor | |
17 | /// @param graphWidget the graph widget to which the delegate is associated |
|
17 | /// @param graphWidget the graph widget to which the delegate is associated | |
18 | /// @remarks the graph widget must exist throughout the life cycle of the delegate |
|
18 | /// @remarks the graph widget must exist throughout the life cycle of the delegate | |
19 | explicit VisualizationGraphRenderingDelegate(VisualizationGraphWidget &graphWidget); |
|
19 | explicit VisualizationGraphRenderingDelegate(VisualizationGraphWidget &graphWidget); | |
20 |
|
20 | |||
|
21 | void onMouseDoubleClick(QMouseEvent *event) noexcept; | |||
21 | void onMouseMove(QMouseEvent *event) noexcept; |
|
22 | void onMouseMove(QMouseEvent *event) noexcept; | |
|
23 | /// Updates rendering when data of plot changed | |||
|
24 | void onPlotUpdated() noexcept; | |||
22 |
|
25 | |||
23 | /// Sets properties of the plot's axes from the data series passed as parameter |
|
26 | /// Sets properties of the plot's axes from the data series passed as parameter | |
24 | void setAxesProperties(std::shared_ptr<IDataSeries> dataSeries) noexcept; |
|
27 | void setAxesProperties(std::shared_ptr<IDataSeries> dataSeries) noexcept; | |
25 |
|
28 | |||
26 | /// Sets rendering properties of the plottables passed as parameter, from the data series that |
|
29 | /// Sets rendering properties of the plottables passed as parameter, from the data series that | |
27 | /// generated these |
|
30 | /// generated these | |
28 | void setPlottablesProperties(std::shared_ptr<IDataSeries> dataSeries, |
|
31 | void setPlottablesProperties(std::shared_ptr<IDataSeries> dataSeries, | |
29 | PlottablesMap &plottables) noexcept; |
|
32 | PlottablesMap &plottables) noexcept; | |
30 |
|
33 | |||
31 | /// Shows or hides graph overlay (name, close button, etc.) |
|
34 | /// Shows or hides graph overlay (name, close button, etc.) | |
32 | void showGraphOverlay(bool show) noexcept; |
|
35 | void showGraphOverlay(bool show) noexcept; | |
33 |
|
36 | |||
34 | private: |
|
37 | private: | |
35 | class VisualizationGraphRenderingDelegatePrivate; |
|
38 | class VisualizationGraphRenderingDelegatePrivate; | |
36 | spimpl::unique_impl_ptr<VisualizationGraphRenderingDelegatePrivate> impl; |
|
39 | spimpl::unique_impl_ptr<VisualizationGraphRenderingDelegatePrivate> impl; | |
37 | }; |
|
40 | }; | |
38 |
|
41 | |||
39 | #endif // SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H |
|
42 | #endif // SCIQLOP_VISUALIZATIONGRAPHRENDERINGDELEGATE_H |
@@ -1,121 +1,123 | |||||
1 | #ifndef SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
|
1 | #ifndef SCIQLOP_VISUALIZATIONGRAPHWIDGET_H | |
2 | #define SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
|
2 | #define SCIQLOP_VISUALIZATIONGRAPHWIDGET_H | |
3 |
|
3 | |||
4 | #include "Visualization/IVisualizationWidget.h" |
|
4 | #include "Visualization/IVisualizationWidget.h" | |
5 | #include "Visualization/VisualizationDragWidget.h" |
|
5 | #include "Visualization/VisualizationDragWidget.h" | |
6 |
|
6 | |||
7 | #include <QLoggingCategory> |
|
7 | #include <QLoggingCategory> | |
8 | #include <QWidget> |
|
8 | #include <QWidget> | |
9 |
|
9 | |||
10 | #include <memory> |
|
10 | #include <memory> | |
11 |
|
11 | |||
12 | #include <Common/spimpl.h> |
|
12 | #include <Common/spimpl.h> | |
13 |
|
13 | |||
14 | Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationGraphWidget) |
|
14 | Q_DECLARE_LOGGING_CATEGORY(LOG_VisualizationGraphWidget) | |
15 |
|
15 | |||
16 | class QCPRange; |
|
16 | class QCPRange; | |
17 | class QCustomPlot; |
|
17 | class QCustomPlot; | |
18 | class SqpRange; |
|
18 | class SqpRange; | |
19 | class Variable; |
|
19 | class Variable; | |
20 | class VisualizationZoneWidget; |
|
20 | class VisualizationZoneWidget; | |
21 |
|
21 | |||
22 | namespace Ui { |
|
22 | namespace Ui { | |
23 | class VisualizationGraphWidget; |
|
23 | class VisualizationGraphWidget; | |
24 | } // namespace Ui |
|
24 | } // namespace Ui | |
25 |
|
25 | |||
26 | class VisualizationGraphWidget : public VisualizationDragWidget, public IVisualizationWidget { |
|
26 | class VisualizationGraphWidget : public VisualizationDragWidget, public IVisualizationWidget { | |
27 | Q_OBJECT |
|
27 | Q_OBJECT | |
28 |
|
28 | |||
29 | friend class QCustomPlotSynchronizer; |
|
29 | friend class QCustomPlotSynchronizer; | |
30 | friend class VisualizationGraphRenderingDelegate; |
|
30 | friend class VisualizationGraphRenderingDelegate; | |
31 |
|
31 | |||
32 | public: |
|
32 | public: | |
33 | explicit VisualizationGraphWidget(const QString &name = {}, QWidget *parent = 0); |
|
33 | explicit VisualizationGraphWidget(const QString &name = {}, QWidget *parent = 0); | |
34 | virtual ~VisualizationGraphWidget(); |
|
34 | virtual ~VisualizationGraphWidget(); | |
35 |
|
35 | |||
36 | VisualizationZoneWidget *parentZoneWidget() const noexcept; |
|
36 | VisualizationZoneWidget *parentZoneWidget() const noexcept; | |
37 |
|
37 | |||
38 | /// If acquisition isn't enable, requestDataLoading signal cannot be emit |
|
38 | /// If acquisition isn't enable, requestDataLoading signal cannot be emit | |
39 | void enableAcquisition(bool enable); |
|
39 | void enableAcquisition(bool enable); | |
40 |
|
40 | |||
41 | void addVariable(std::shared_ptr<Variable> variable, SqpRange range); |
|
41 | void addVariable(std::shared_ptr<Variable> variable, SqpRange range); | |
42 |
|
42 | |||
43 | /// Removes a variable from the graph |
|
43 | /// Removes a variable from the graph | |
44 | void removeVariable(std::shared_ptr<Variable> variable) noexcept; |
|
44 | void removeVariable(std::shared_ptr<Variable> variable) noexcept; | |
45 |
|
45 | |||
46 | /// Returns the list of all variables used in the graph |
|
46 | /// Returns the list of all variables used in the graph | |
47 | QList<std::shared_ptr<Variable> > variables() const; |
|
47 | QList<std::shared_ptr<Variable> > variables() const; | |
48 |
|
48 | |||
49 | /// Sets the y-axis range based on the data of a variable |
|
49 | /// Sets the y-axis range based on the data of a variable | |
50 | void setYRange(std::shared_ptr<Variable> variable); |
|
50 | void setYRange(std::shared_ptr<Variable> variable); | |
51 | SqpRange graphRange() const noexcept; |
|
51 | SqpRange graphRange() const noexcept; | |
52 | void setGraphRange(const SqpRange &range); |
|
52 | void setGraphRange(const SqpRange &range); | |
53 |
|
53 | |||
54 | // IVisualizationWidget interface |
|
54 | // IVisualizationWidget interface | |
55 | void accept(IVisualizationWidgetVisitor *visitor) override; |
|
55 | void accept(IVisualizationWidgetVisitor *visitor) override; | |
56 | bool canDrop(const Variable &variable) const override; |
|
56 | bool canDrop(const Variable &variable) const override; | |
57 | bool contains(const Variable &variable) const override; |
|
57 | bool contains(const Variable &variable) const override; | |
58 | QString name() const override; |
|
58 | QString name() const override; | |
59 |
|
59 | |||
60 | // VisualisationDragWidget |
|
60 | // VisualisationDragWidget | |
61 | QMimeData *mimeData() const override; |
|
61 | QMimeData *mimeData() const override; | |
62 | bool isDragAllowed() const override; |
|
62 | bool isDragAllowed() const override; | |
63 | void highlightForMerge(bool highlighted) override; |
|
63 | void highlightForMerge(bool highlighted) override; | |
64 |
|
64 | |||
65 | // Cursors |
|
65 | // Cursors | |
66 | /// Adds or moves the vertical cursor at the specified value on the x-axis |
|
66 | /// Adds or moves the vertical cursor at the specified value on the x-axis | |
67 | void addVerticalCursor(double time); |
|
67 | void addVerticalCursor(double time); | |
68 | /// Adds or moves the vertical cursor at the specified value on the x-axis |
|
68 | /// Adds or moves the vertical cursor at the specified value on the x-axis | |
69 | void addVerticalCursorAtViewportPosition(double position); |
|
69 | void addVerticalCursorAtViewportPosition(double position); | |
70 | void removeVerticalCursor(); |
|
70 | void removeVerticalCursor(); | |
71 | /// Adds or moves the vertical cursor at the specified value on the y-axis |
|
71 | /// Adds or moves the vertical cursor at the specified value on the y-axis | |
72 | void addHorizontalCursor(double value); |
|
72 | void addHorizontalCursor(double value); | |
73 | /// Adds or moves the vertical cursor at the specified value on the y-axis |
|
73 | /// Adds or moves the vertical cursor at the specified value on the y-axis | |
74 | void addHorizontalCursorAtViewportPosition(double position); |
|
74 | void addHorizontalCursorAtViewportPosition(double position); | |
75 | void removeHorizontalCursor(); |
|
75 | void removeHorizontalCursor(); | |
76 |
|
76 | |||
77 | signals: |
|
77 | signals: | |
78 | void synchronize(const SqpRange &range, const SqpRange &oldRange); |
|
78 | void synchronize(const SqpRange &range, const SqpRange &oldRange); | |
79 | void requestDataLoading(QVector<std::shared_ptr<Variable> > variable, const SqpRange &range, |
|
79 | void requestDataLoading(QVector<std::shared_ptr<Variable> > variable, const SqpRange &range, | |
80 | bool synchronise); |
|
80 | bool synchronise); | |
81 |
|
81 | |||
82 | /// Signal emitted when the variable is about to be removed from the graph |
|
82 | /// Signal emitted when the variable is about to be removed from the graph | |
83 | void variableAboutToBeRemoved(std::shared_ptr<Variable> var); |
|
83 | void variableAboutToBeRemoved(std::shared_ptr<Variable> var); | |
84 | /// Signal emitted when the variable has been added to the graph |
|
84 | /// Signal emitted when the variable has been added to the graph | |
85 | void variableAdded(std::shared_ptr<Variable> var); |
|
85 | void variableAdded(std::shared_ptr<Variable> var); | |
86 |
|
86 | |||
87 | protected: |
|
87 | protected: | |
88 | void closeEvent(QCloseEvent *event) override; |
|
88 | void closeEvent(QCloseEvent *event) override; | |
89 | void enterEvent(QEvent *event) override; |
|
89 | void enterEvent(QEvent *event) override; | |
90 | void leaveEvent(QEvent *event) override; |
|
90 | void leaveEvent(QEvent *event) override; | |
91 |
|
91 | |||
92 | QCustomPlot &plot() noexcept; |
|
92 | QCustomPlot &plot() noexcept; | |
93 |
|
93 | |||
94 | private: |
|
94 | private: | |
95 | Ui::VisualizationGraphWidget *ui; |
|
95 | Ui::VisualizationGraphWidget *ui; | |
96 |
|
96 | |||
97 | class VisualizationGraphWidgetPrivate; |
|
97 | class VisualizationGraphWidgetPrivate; | |
98 | spimpl::unique_impl_ptr<VisualizationGraphWidgetPrivate> impl; |
|
98 | spimpl::unique_impl_ptr<VisualizationGraphWidgetPrivate> impl; | |
99 |
|
99 | |||
100 | private slots: |
|
100 | private slots: | |
101 | /// Slot called when right clicking on the graph (displays a menu) |
|
101 | /// Slot called when right clicking on the graph (displays a menu) | |
102 | void onGraphMenuRequested(const QPoint &pos) noexcept; |
|
102 | void onGraphMenuRequested(const QPoint &pos) noexcept; | |
103 |
|
103 | |||
104 | /// Rescale the X axe to range parameter |
|
104 | /// Rescale the X axe to range parameter | |
105 | void onRangeChanged(const QCPRange &t1, const QCPRange &t2); |
|
105 | void onRangeChanged(const QCPRange &t1, const QCPRange &t2); | |
106 |
|
106 | |||
|
107 | /// Slot called when a mouse double click was made | |||
|
108 | void onMouseDoubleClick(QMouseEvent *event) noexcept; | |||
107 | /// Slot called when a mouse move was made |
|
109 | /// Slot called when a mouse move was made | |
108 | void onMouseMove(QMouseEvent *event) noexcept; |
|
110 | void onMouseMove(QMouseEvent *event) noexcept; | |
109 | /// Slot called when a mouse wheel was made, to perform some processing before the zoom is done |
|
111 | /// Slot called when a mouse wheel was made, to perform some processing before the zoom is done | |
110 | void onMouseWheel(QWheelEvent *event) noexcept; |
|
112 | void onMouseWheel(QWheelEvent *event) noexcept; | |
111 | /// Slot called when a mouse press was made, to activate the calibration of a graph |
|
113 | /// Slot called when a mouse press was made, to activate the calibration of a graph | |
112 | void onMousePress(QMouseEvent *event) noexcept; |
|
114 | void onMousePress(QMouseEvent *event) noexcept; | |
113 | /// Slot called when a mouse release was made, to deactivate the calibration of a graph |
|
115 | /// Slot called when a mouse release was made, to deactivate the calibration of a graph | |
114 | void onMouseRelease(QMouseEvent *event) noexcept; |
|
116 | void onMouseRelease(QMouseEvent *event) noexcept; | |
115 |
|
117 | |||
116 | void onDataCacheVariableUpdated(); |
|
118 | void onDataCacheVariableUpdated(); | |
117 |
|
119 | |||
118 | void onUpdateVarDisplaying(std::shared_ptr<Variable> variable, const SqpRange &range); |
|
120 | void onUpdateVarDisplaying(std::shared_ptr<Variable> variable, const SqpRange &range); | |
119 | }; |
|
121 | }; | |
120 |
|
122 | |||
121 | #endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
|
123 | #endif // SCIQLOP_VISUALIZATIONGRAPHWIDGET_H |
@@ -1,96 +1,101 | |||||
1 |
|
1 | |||
2 | gui_moc_headers = [ |
|
2 | gui_moc_headers = [ | |
3 | 'include/DataSource/DataSourceWidget.h', |
|
3 | 'include/DataSource/DataSourceWidget.h', | |
4 | 'include/Settings/SqpSettingsDialog.h', |
|
4 | 'include/Settings/SqpSettingsDialog.h', | |
5 | 'include/Settings/SqpSettingsGeneralWidget.h', |
|
5 | 'include/Settings/SqpSettingsGeneralWidget.h', | |
6 | 'include/SidePane/SqpSidePane.h', |
|
6 | 'include/SidePane/SqpSidePane.h', | |
7 | 'include/SqpApplication.h', |
|
7 | 'include/SqpApplication.h', | |
8 | 'include/DragAndDrop/DragDropScroller.h', |
|
8 | 'include/DragAndDrop/DragDropScroller.h', | |
9 | 'include/DragAndDrop/DragDropTabSwitcher.h', |
|
9 | 'include/DragAndDrop/DragDropTabSwitcher.h', | |
10 | 'include/TimeWidget/TimeWidget.h', |
|
10 | 'include/TimeWidget/TimeWidget.h', | |
11 | 'include/Variable/VariableInspectorWidget.h', |
|
11 | 'include/Variable/VariableInspectorWidget.h', | |
12 | 'include/Variable/RenameVariableDialog.h', |
|
12 | 'include/Variable/RenameVariableDialog.h', | |
13 | 'include/Visualization/qcustomplot.h', |
|
13 | 'include/Visualization/qcustomplot.h', | |
14 | 'include/Visualization/VisualizationGraphWidget.h', |
|
14 | 'include/Visualization/VisualizationGraphWidget.h', | |
15 | 'include/Visualization/VisualizationTabWidget.h', |
|
15 | 'include/Visualization/VisualizationTabWidget.h', | |
16 | 'include/Visualization/VisualizationWidget.h', |
|
16 | 'include/Visualization/VisualizationWidget.h', | |
17 | 'include/Visualization/VisualizationZoneWidget.h', |
|
17 | 'include/Visualization/VisualizationZoneWidget.h', | |
18 | 'include/Visualization/VisualizationDragDropContainer.h', |
|
18 | 'include/Visualization/VisualizationDragDropContainer.h', | |
19 | 'include/Visualization/VisualizationDragWidget.h' |
|
19 | 'include/Visualization/VisualizationDragWidget.h', | |
|
20 | 'include/Visualization/ColorScaleEditor.h' | |||
20 | ] |
|
21 | ] | |
21 |
|
22 | |||
22 | gui_ui_files = [ |
|
23 | gui_ui_files = [ | |
23 | 'ui/DataSource/DataSourceWidget.ui', |
|
24 | 'ui/DataSource/DataSourceWidget.ui', | |
24 | 'ui/Settings/SqpSettingsDialog.ui', |
|
25 | 'ui/Settings/SqpSettingsDialog.ui', | |
25 | 'ui/Settings/SqpSettingsGeneralWidget.ui', |
|
26 | 'ui/Settings/SqpSettingsGeneralWidget.ui', | |
26 | 'ui/SidePane/SqpSidePane.ui', |
|
27 | 'ui/SidePane/SqpSidePane.ui', | |
27 | 'ui/TimeWidget/TimeWidget.ui', |
|
28 | 'ui/TimeWidget/TimeWidget.ui', | |
28 | 'ui/Variable/VariableInspectorWidget.ui', |
|
29 | 'ui/Variable/VariableInspectorWidget.ui', | |
29 | 'ui/Variable/RenameVariableDialog.ui', |
|
30 | 'ui/Variable/RenameVariableDialog.ui', | |
30 | 'ui/Variable/VariableMenuHeaderWidget.ui', |
|
31 | 'ui/Variable/VariableMenuHeaderWidget.ui', | |
31 | 'ui/Visualization/VisualizationGraphWidget.ui', |
|
32 | 'ui/Visualization/VisualizationGraphWidget.ui', | |
32 | 'ui/Visualization/VisualizationTabWidget.ui', |
|
33 | 'ui/Visualization/VisualizationTabWidget.ui', | |
33 | 'ui/Visualization/VisualizationWidget.ui', |
|
34 | 'ui/Visualization/VisualizationWidget.ui', | |
34 | 'ui/Visualization/VisualizationZoneWidget.ui' |
|
35 | 'ui/Visualization/VisualizationZoneWidget.ui', | |
|
36 | 'ui/Visualization/ColorScaleEditor.ui' | |||
35 | ] |
|
37 | ] | |
36 |
|
38 | |||
37 | gui_qresources = ['resources/sqpguiresources.qrc'] |
|
39 | gui_qresources = ['resources/sqpguiresources.qrc'] | |
38 |
|
40 | |||
39 | gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers, |
|
41 | gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers, | |
40 | ui_files : gui_ui_files, |
|
42 | ui_files : gui_ui_files, | |
41 | qresources : gui_qresources) |
|
43 | qresources : gui_qresources) | |
42 |
|
44 | |||
43 | gui_sources = [ |
|
45 | gui_sources = [ | |
44 | 'src/SqpApplication.cpp', |
|
46 | 'src/SqpApplication.cpp', | |
45 | 'src/DragAndDrop/DragDropHelper.cpp', |
|
47 | 'src/DragAndDrop/DragDropHelper.cpp', | |
46 | 'src/DragAndDrop/DragDropScroller.cpp', |
|
48 | 'src/DragAndDrop/DragDropScroller.cpp', | |
47 | 'src/DragAndDrop/DragDropTabSwitcher.cpp', |
|
49 | 'src/DragAndDrop/DragDropTabSwitcher.cpp', | |
48 | 'src/Common/ColorUtils.cpp', |
|
50 | 'src/Common/ColorUtils.cpp', | |
49 | 'src/Common/VisualizationDef.cpp', |
|
51 | 'src/Common/VisualizationDef.cpp', | |
50 | 'src/DataSource/DataSourceTreeWidgetItem.cpp', |
|
52 | 'src/DataSource/DataSourceTreeWidgetItem.cpp', | |
51 | 'src/DataSource/DataSourceTreeWidgetHelper.cpp', |
|
53 | 'src/DataSource/DataSourceTreeWidgetHelper.cpp', | |
52 | 'src/DataSource/DataSourceWidget.cpp', |
|
54 | 'src/DataSource/DataSourceWidget.cpp', | |
53 | 'src/DataSource/DataSourceTreeWidget.cpp', |
|
55 | 'src/DataSource/DataSourceTreeWidget.cpp', | |
54 | 'src/Settings/SqpSettingsDialog.cpp', |
|
56 | 'src/Settings/SqpSettingsDialog.cpp', | |
55 | 'src/Settings/SqpSettingsGeneralWidget.cpp', |
|
57 | 'src/Settings/SqpSettingsGeneralWidget.cpp', | |
56 | 'src/SidePane/SqpSidePane.cpp', |
|
58 | 'src/SidePane/SqpSidePane.cpp', | |
57 | 'src/TimeWidget/TimeWidget.cpp', |
|
59 | 'src/TimeWidget/TimeWidget.cpp', | |
58 | 'src/Variable/VariableInspectorWidget.cpp', |
|
60 | 'src/Variable/VariableInspectorWidget.cpp', | |
59 | 'src/Variable/VariableInspectorTableView.cpp', |
|
61 | 'src/Variable/VariableInspectorTableView.cpp', | |
60 | 'src/Variable/VariableMenuHeaderWidget.cpp', |
|
62 | 'src/Variable/VariableMenuHeaderWidget.cpp', | |
61 | 'src/Variable/RenameVariableDialog.cpp', |
|
63 | 'src/Variable/RenameVariableDialog.cpp', | |
62 | 'src/Visualization/VisualizationGraphHelper.cpp', |
|
64 | 'src/Visualization/VisualizationGraphHelper.cpp', | |
63 | 'src/Visualization/VisualizationGraphRenderingDelegate.cpp', |
|
65 | 'src/Visualization/VisualizationGraphRenderingDelegate.cpp', | |
64 | 'src/Visualization/VisualizationGraphWidget.cpp', |
|
66 | 'src/Visualization/VisualizationGraphWidget.cpp', | |
65 | 'src/Visualization/VisualizationTabWidget.cpp', |
|
67 | 'src/Visualization/VisualizationTabWidget.cpp', | |
66 | 'src/Visualization/VisualizationWidget.cpp', |
|
68 | 'src/Visualization/VisualizationWidget.cpp', | |
67 | 'src/Visualization/VisualizationZoneWidget.cpp', |
|
69 | 'src/Visualization/VisualizationZoneWidget.cpp', | |
68 | 'src/Visualization/qcustomplot.cpp', |
|
70 | 'src/Visualization/qcustomplot.cpp', | |
69 | 'src/Visualization/QCustomPlotSynchronizer.cpp', |
|
71 | 'src/Visualization/QCustomPlotSynchronizer.cpp', | |
70 | 'src/Visualization/operations/FindVariableOperation.cpp', |
|
72 | 'src/Visualization/operations/FindVariableOperation.cpp', | |
71 | 'src/Visualization/operations/GenerateVariableMenuOperation.cpp', |
|
73 | 'src/Visualization/operations/GenerateVariableMenuOperation.cpp', | |
72 | 'src/Visualization/operations/MenuBuilder.cpp', |
|
74 | 'src/Visualization/operations/MenuBuilder.cpp', | |
73 | 'src/Visualization/operations/RemoveVariableOperation.cpp', |
|
75 | 'src/Visualization/operations/RemoveVariableOperation.cpp', | |
74 | 'src/Visualization/operations/RescaleAxeOperation.cpp', |
|
76 | 'src/Visualization/operations/RescaleAxeOperation.cpp', | |
75 | 'src/Visualization/VisualizationDragDropContainer.cpp', |
|
77 | 'src/Visualization/VisualizationDragDropContainer.cpp', | |
76 | 'src/Visualization/VisualizationDragWidget.cpp', |
|
78 | 'src/Visualization/VisualizationDragWidget.cpp', | |
77 | 'src/Visualization/AxisRenderingUtils.cpp', |
|
79 | 'src/Visualization/AxisRenderingUtils.cpp', | |
78 | 'src/Visualization/PlottablesRenderingUtils.cpp', |
|
80 | 'src/Visualization/PlottablesRenderingUtils.cpp', | |
79 | 'src/Visualization/MacScrollBarStyle.cpp', |
|
81 | 'src/Visualization/MacScrollBarStyle.cpp', | |
80 | 'src/Visualization/VisualizationCursorItem.cpp' |
|
82 | 'src/Visualization/VisualizationCursorItem.cpp', | |
|
83 | 'src/Visualization/ColorScaleEditor.cpp', | |||
|
84 | 'src/Visualization/SqpColorScale.cpp', | |||
|
85 | 'src/Visualization/QCPColorMapIterator.cpp' | |||
81 | ] |
|
86 | ] | |
82 |
|
87 | |||
83 | gui_inc = include_directories(['include']) |
|
88 | gui_inc = include_directories(['include']) | |
84 |
|
89 | |||
85 | sciqlop_gui_lib = library('sciqlopgui', |
|
90 | sciqlop_gui_lib = library('sciqlopgui', | |
86 | gui_sources, |
|
91 | gui_sources, | |
87 | gui_moc_files, |
|
92 | gui_moc_files, | |
88 | include_directories : [gui_inc], |
|
93 | include_directories : [gui_inc], | |
89 | dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core], |
|
94 | dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core], | |
90 | install : true |
|
95 | install : true | |
91 | ) |
|
96 | ) | |
92 |
|
97 | |||
93 | sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib, |
|
98 | sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib, | |
94 | include_directories : gui_inc, |
|
99 | include_directories : gui_inc, | |
95 | dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core]) |
|
100 | dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core]) | |
96 |
|
101 |
@@ -1,174 +1,176 | |||||
1 | #include "Visualization/AxisRenderingUtils.h" |
|
1 | #include "Visualization/AxisRenderingUtils.h" | |
2 |
|
2 | |||
3 | #include <Data/ScalarSeries.h> |
|
3 | #include <Data/ScalarSeries.h> | |
4 | #include <Data/SpectrogramSeries.h> |
|
4 | #include <Data/SpectrogramSeries.h> | |
5 | #include <Data/VectorSeries.h> |
|
5 | #include <Data/VectorSeries.h> | |
6 |
|
6 | |||
|
7 | #include <Visualization/SqpColorScale.h> | |||
7 | #include <Visualization/qcustomplot.h> |
|
8 | #include <Visualization/qcustomplot.h> | |
8 |
|
9 | |||
9 | Q_LOGGING_CATEGORY(LOG_AxisRenderingUtils, "AxisRenderingUtils") |
|
10 | Q_LOGGING_CATEGORY(LOG_AxisRenderingUtils, "AxisRenderingUtils") | |
10 |
|
11 | |||
11 | namespace { |
|
12 | namespace { | |
12 |
|
13 | |||
13 | const auto DATETIME_FORMAT = QStringLiteral("yyyy/MM/dd hh:mm:ss:zzz"); |
|
14 | const auto DATETIME_FORMAT = QStringLiteral("yyyy/MM/dd hh:mm:ss:zzz"); | |
14 |
|
15 | |||
15 | /// Format for datetimes on a axis |
|
16 | /// Format for datetimes on a axis | |
16 | const auto DATETIME_TICKER_FORMAT = QStringLiteral("yyyy/MM/dd \nhh:mm:ss"); |
|
17 | const auto DATETIME_TICKER_FORMAT = QStringLiteral("yyyy/MM/dd \nhh:mm:ss"); | |
17 |
|
18 | |||
|
19 | const auto NUMBER_FORMAT = 'g'; | |||
|
20 | const auto NUMBER_PRECISION = 9; | |||
|
21 | ||||
18 | /// Generates the appropriate ticker for an axis, depending on whether the axis displays time or |
|
22 | /// Generates the appropriate ticker for an axis, depending on whether the axis displays time or | |
19 | /// non-time data |
|
23 | /// non-time data | |
20 | QSharedPointer<QCPAxisTicker> axisTicker(bool isTimeAxis, QCPAxis::ScaleType scaleType) |
|
24 | QSharedPointer<QCPAxisTicker> axisTicker(bool isTimeAxis, QCPAxis::ScaleType scaleType) | |
21 | { |
|
25 | { | |
22 | if (isTimeAxis) { |
|
26 | if (isTimeAxis) { | |
23 | auto dateTicker = QSharedPointer<QCPAxisTickerDateTime>::create(); |
|
27 | auto dateTicker = QSharedPointer<QCPAxisTickerDateTime>::create(); | |
24 | dateTicker->setDateTimeFormat(DATETIME_TICKER_FORMAT); |
|
28 | dateTicker->setDateTimeFormat(DATETIME_TICKER_FORMAT); | |
25 | dateTicker->setDateTimeSpec(Qt::UTC); |
|
29 | dateTicker->setDateTimeSpec(Qt::UTC); | |
26 |
|
30 | |||
27 | return dateTicker; |
|
31 | return dateTicker; | |
28 | } |
|
32 | } | |
29 | else if (scaleType == QCPAxis::stLogarithmic) { |
|
33 | else if (scaleType == QCPAxis::stLogarithmic) { | |
30 | return QSharedPointer<QCPAxisTickerLog>::create(); |
|
34 | return QSharedPointer<QCPAxisTickerLog>::create(); | |
31 | } |
|
35 | } | |
32 | else { |
|
36 | else { | |
33 | // default ticker |
|
37 | // default ticker | |
34 | return QSharedPointer<QCPAxisTicker>::create(); |
|
38 | return QSharedPointer<QCPAxisTicker>::create(); | |
35 | } |
|
39 | } | |
36 | } |
|
40 | } | |
37 |
|
41 | |||
38 | /** |
|
42 | /** | |
39 | * Sets properties of the axis passed as parameter |
|
43 | * Sets properties of the axis passed as parameter | |
40 | * @param axis the axis to set |
|
44 | * @param axis the axis to set | |
41 | * @param unit the unit to set for the axis |
|
45 | * @param unit the unit to set for the axis | |
42 | * @param scaleType the scale type to set for the axis |
|
46 | * @param scaleType the scale type to set for the axis | |
43 | */ |
|
47 | */ | |
44 | void setAxisProperties(QCPAxis &axis, const Unit &unit, |
|
48 | void setAxisProperties(QCPAxis &axis, const Unit &unit, | |
45 | QCPAxis::ScaleType scaleType = QCPAxis::stLinear) |
|
49 | QCPAxis::ScaleType scaleType = QCPAxis::stLinear) | |
46 | { |
|
50 | { | |
47 | // label (unit name) |
|
51 | // label (unit name) | |
48 | axis.setLabel(unit.m_Name); |
|
52 | axis.setLabel(unit.m_Name); | |
49 |
|
53 | |||
50 | // scale type |
|
54 | // scale type | |
51 | axis.setScaleType(scaleType); |
|
55 | axis.setScaleType(scaleType); | |
52 | if (scaleType == QCPAxis::stLogarithmic) { |
|
56 | if (scaleType == QCPAxis::stLogarithmic) { | |
53 | // Scientific notation |
|
57 | // Scientific notation | |
54 | axis.setNumberPrecision(0); |
|
58 | axis.setNumberPrecision(0); | |
55 | axis.setNumberFormat("eb"); |
|
59 | axis.setNumberFormat("eb"); | |
56 | } |
|
60 | } | |
57 |
|
61 | |||
58 | // ticker (depending on the type of unit) |
|
62 | // ticker (depending on the type of unit) | |
59 | axis.setTicker(axisTicker(unit.m_TimeUnit, scaleType)); |
|
63 | axis.setTicker(axisTicker(unit.m_TimeUnit, scaleType)); | |
60 | } |
|
64 | } | |
61 |
|
65 | |||
62 | /** |
|
66 | /** | |
63 | * Delegate used to set axes properties |
|
67 | * Delegate used to set axes properties | |
64 | */ |
|
68 | */ | |
65 | template <typename T, typename Enabled = void> |
|
69 | template <typename T, typename Enabled = void> | |
66 | struct AxisSetter { |
|
70 | struct AxisSetter { | |
67 |
static void setProperties(T &, QCustomPlot &, |
|
71 | static void setProperties(T &, QCustomPlot &, SqpColorScale &) | |
68 | { |
|
72 | { | |
69 | // Default implementation does nothing |
|
73 | // Default implementation does nothing | |
70 | qCCritical(LOG_AxisRenderingUtils()) << "Can't set axis properties: unmanaged type of data"; |
|
74 | qCCritical(LOG_AxisRenderingUtils()) << "Can't set axis properties: unmanaged type of data"; | |
71 | } |
|
75 | } | |
72 | }; |
|
76 | }; | |
73 |
|
77 | |||
74 | /** |
|
78 | /** | |
75 | * Specialization of AxisSetter for scalars and vectors |
|
79 | * Specialization of AxisSetter for scalars and vectors | |
76 | * @sa ScalarSeries |
|
80 | * @sa ScalarSeries | |
77 | * @sa VectorSeries |
|
81 | * @sa VectorSeries | |
78 | */ |
|
82 | */ | |
79 | template <typename T> |
|
83 | template <typename T> | |
80 | struct AxisSetter<T, typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value |
|
84 | struct AxisSetter<T, typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value | |
81 | or std::is_base_of<VectorSeries, T>::value> > { |
|
85 | or std::is_base_of<VectorSeries, T>::value> > { | |
82 |
static void setProperties(T &dataSeries, QCustomPlot &plot, |
|
86 | static void setProperties(T &dataSeries, QCustomPlot &plot, SqpColorScale &) | |
83 | { |
|
87 | { | |
84 | dataSeries.lockRead(); |
|
88 | dataSeries.lockRead(); | |
85 | auto xAxisUnit = dataSeries.xAxisUnit(); |
|
89 | auto xAxisUnit = dataSeries.xAxisUnit(); | |
86 | auto valuesUnit = dataSeries.valuesUnit(); |
|
90 | auto valuesUnit = dataSeries.valuesUnit(); | |
87 | dataSeries.unlock(); |
|
91 | dataSeries.unlock(); | |
88 |
|
92 | |||
89 | setAxisProperties(*plot.xAxis, xAxisUnit); |
|
93 | setAxisProperties(*plot.xAxis, xAxisUnit); | |
90 | setAxisProperties(*plot.yAxis, valuesUnit); |
|
94 | setAxisProperties(*plot.yAxis, valuesUnit); | |
91 | } |
|
95 | } | |
92 | }; |
|
96 | }; | |
93 |
|
97 | |||
94 | /** |
|
98 | /** | |
95 | * Specialization of AxisSetter for spectrograms |
|
99 | * Specialization of AxisSetter for spectrograms | |
96 | * @sa SpectrogramSeries |
|
100 | * @sa SpectrogramSeries | |
97 | */ |
|
101 | */ | |
98 | template <typename T> |
|
102 | template <typename T> | |
99 | struct AxisSetter<T, typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { |
|
103 | struct AxisSetter<T, typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { | |
100 |
static void setProperties(T &dataSeries, QCustomPlot &plot, |
|
104 | static void setProperties(T &dataSeries, QCustomPlot &plot, SqpColorScale &colorScale) | |
101 | { |
|
105 | { | |
102 | dataSeries.lockRead(); |
|
106 | dataSeries.lockRead(); | |
103 | auto xAxisUnit = dataSeries.xAxisUnit(); |
|
107 | auto xAxisUnit = dataSeries.xAxisUnit(); | |
104 | auto yAxisUnit = dataSeries.yAxisUnit(); |
|
108 | auto yAxisUnit = dataSeries.yAxisUnit(); | |
105 | auto valuesUnit = dataSeries.valuesUnit(); |
|
109 | auto valuesUnit = dataSeries.valuesUnit(); | |
106 | dataSeries.unlock(); |
|
110 | dataSeries.unlock(); | |
107 |
|
111 | |||
108 | setAxisProperties(*plot.xAxis, xAxisUnit); |
|
112 | setAxisProperties(*plot.xAxis, xAxisUnit); | |
109 | setAxisProperties(*plot.yAxis, yAxisUnit, QCPAxis::stLogarithmic); |
|
113 | setAxisProperties(*plot.yAxis, yAxisUnit, QCPAxis::stLogarithmic); | |
110 |
|
114 | |||
111 | // Displays color scale in plot |
|
115 | // Displays color scale in plot | |
112 | plot.plotLayout()->insertRow(0); |
|
116 | plot.plotLayout()->insertRow(0); | |
113 |
plot.plotLayout()->addElement(0, 0, |
|
117 | plot.plotLayout()->addElement(0, 0, colorScale.m_Scale); | |
114 | colorScale.setType(QCPAxis::atTop); |
|
118 | colorScale.m_Scale->setType(QCPAxis::atTop); | |
115 | colorScale.setMinimumMargins(QMargins{0, 0, 0, 0}); |
|
119 | colorScale.m_Scale->setMinimumMargins(QMargins{0, 0, 0, 0}); | |
116 |
|
120 | |||
117 | // Aligns color scale with axes |
|
121 | // Aligns color scale with axes | |
118 | auto marginGroups = plot.axisRect()->marginGroups(); |
|
122 | auto marginGroups = plot.axisRect()->marginGroups(); | |
119 | for (auto it = marginGroups.begin(), end = marginGroups.end(); it != end; ++it) { |
|
123 | for (auto it = marginGroups.begin(), end = marginGroups.end(); it != end; ++it) { | |
120 | colorScale.setMarginGroup(it.key(), it.value()); |
|
124 | colorScale.m_Scale->setMarginGroup(it.key(), it.value()); | |
121 | } |
|
125 | } | |
122 |
|
126 | |||
123 | // Set color scale properties |
|
127 | // Set color scale properties | |
124 | setAxisProperties(*colorScale.axis(), valuesUnit, QCPAxis::stLogarithmic); |
|
128 | setAxisProperties(*colorScale.m_Scale->axis(), valuesUnit, QCPAxis::stLogarithmic); | |
125 | /// @todo ALX: temp data range, remove it when widget to set data range is implemented |
|
|||
126 | colorScale.setDataRange(QCPRange{8.32e2, 1.77e7}); |
|
|||
127 | } |
|
129 | } | |
128 | }; |
|
130 | }; | |
129 |
|
131 | |||
130 | /** |
|
132 | /** | |
131 | * Default implementation of IAxisHelper, which takes data series to set axes properties |
|
133 | * Default implementation of IAxisHelper, which takes data series to set axes properties | |
132 | * @tparam T the data series' type |
|
134 | * @tparam T the data series' type | |
133 | */ |
|
135 | */ | |
134 | template <typename T> |
|
136 | template <typename T> | |
135 | struct AxisHelper : public IAxisHelper { |
|
137 | struct AxisHelper : public IAxisHelper { | |
136 | explicit AxisHelper(T &dataSeries) : m_DataSeries{dataSeries} {} |
|
138 | explicit AxisHelper(T &dataSeries) : m_DataSeries{dataSeries} {} | |
137 |
|
139 | |||
138 |
void setProperties(QCustomPlot &plot, |
|
140 | void setProperties(QCustomPlot &plot, SqpColorScale &colorScale) override | |
139 | { |
|
141 | { | |
140 | AxisSetter<T>::setProperties(m_DataSeries, plot, colorScale); |
|
142 | AxisSetter<T>::setProperties(m_DataSeries, plot, colorScale); | |
141 | } |
|
143 | } | |
142 |
|
144 | |||
143 | T &m_DataSeries; |
|
145 | T &m_DataSeries; | |
144 | }; |
|
146 | }; | |
145 |
|
147 | |||
146 | } // namespace |
|
148 | } // namespace | |
147 |
|
149 | |||
148 | QString formatValue(double value, const QCPAxis &axis) |
|
150 | QString formatValue(double value, const QCPAxis &axis) | |
149 | { |
|
151 | { | |
150 | // If the axis is a time axis, formats the value as a date |
|
152 | // If the axis is a time axis, formats the value as a date | |
151 | if (auto axisTicker = qSharedPointerDynamicCast<QCPAxisTickerDateTime>(axis.ticker())) { |
|
153 | if (auto axisTicker = qSharedPointerDynamicCast<QCPAxisTickerDateTime>(axis.ticker())) { | |
152 | return DateUtils::dateTime(value, axisTicker->dateTimeSpec()).toString(DATETIME_FORMAT); |
|
154 | return DateUtils::dateTime(value, axisTicker->dateTimeSpec()).toString(DATETIME_FORMAT); | |
153 | } |
|
155 | } | |
154 | else { |
|
156 | else { | |
155 | return QString::number(value); |
|
157 | return QString::number(value, NUMBER_FORMAT, NUMBER_PRECISION); | |
156 | } |
|
158 | } | |
157 | } |
|
159 | } | |
158 |
|
160 | |||
159 | std::unique_ptr<IAxisHelper> |
|
161 | std::unique_ptr<IAxisHelper> | |
160 | IAxisHelperFactory::create(std::shared_ptr<IDataSeries> dataSeries) noexcept |
|
162 | IAxisHelperFactory::create(std::shared_ptr<IDataSeries> dataSeries) noexcept | |
161 | { |
|
163 | { | |
162 | if (auto scalarSeries = std::dynamic_pointer_cast<ScalarSeries>(dataSeries)) { |
|
164 | if (auto scalarSeries = std::dynamic_pointer_cast<ScalarSeries>(dataSeries)) { | |
163 | return std::make_unique<AxisHelper<ScalarSeries> >(*scalarSeries); |
|
165 | return std::make_unique<AxisHelper<ScalarSeries> >(*scalarSeries); | |
164 | } |
|
166 | } | |
165 | else if (auto spectrogramSeries = std::dynamic_pointer_cast<SpectrogramSeries>(dataSeries)) { |
|
167 | else if (auto spectrogramSeries = std::dynamic_pointer_cast<SpectrogramSeries>(dataSeries)) { | |
166 | return std::make_unique<AxisHelper<SpectrogramSeries> >(*spectrogramSeries); |
|
168 | return std::make_unique<AxisHelper<SpectrogramSeries> >(*spectrogramSeries); | |
167 | } |
|
169 | } | |
168 | else if (auto vectorSeries = std::dynamic_pointer_cast<VectorSeries>(dataSeries)) { |
|
170 | else if (auto vectorSeries = std::dynamic_pointer_cast<VectorSeries>(dataSeries)) { | |
169 | return std::make_unique<AxisHelper<VectorSeries> >(*vectorSeries); |
|
171 | return std::make_unique<AxisHelper<VectorSeries> >(*vectorSeries); | |
170 | } |
|
172 | } | |
171 | else { |
|
173 | else { | |
172 | return std::make_unique<AxisHelper<IDataSeries> >(*dataSeries); |
|
174 | return std::make_unique<AxisHelper<IDataSeries> >(*dataSeries); | |
173 | } |
|
175 | } | |
174 | } |
|
176 | } |
@@ -1,127 +1,122 | |||||
1 | #include "Visualization/PlottablesRenderingUtils.h" |
|
1 | #include "Visualization/PlottablesRenderingUtils.h" | |
2 |
|
2 | |||
3 | #include <Common/ColorUtils.h> |
|
3 | #include <Common/ColorUtils.h> | |
4 |
|
4 | |||
5 | #include <Data/ScalarSeries.h> |
|
5 | #include <Data/ScalarSeries.h> | |
6 | #include <Data/SpectrogramSeries.h> |
|
6 | #include <Data/SpectrogramSeries.h> | |
7 | #include <Data/VectorSeries.h> |
|
7 | #include <Data/VectorSeries.h> | |
8 |
|
8 | |||
9 | #include <Visualization/qcustomplot.h> |
|
9 | #include <Visualization/qcustomplot.h> | |
10 |
|
10 | |||
11 | Q_LOGGING_CATEGORY(LOG_PlottablesRenderingUtils, "PlottablesRenderingUtils") |
|
11 | Q_LOGGING_CATEGORY(LOG_PlottablesRenderingUtils, "PlottablesRenderingUtils") | |
12 |
|
12 | |||
13 | namespace { |
|
13 | namespace { | |
14 |
|
14 | |||
15 | /// Default gradient used for colormap |
|
|||
16 | const auto DEFAULT_COLORMAP_GRADIENT = QCPColorGradient::gpJet; |
|
|||
17 |
|
||||
18 | /** |
|
15 | /** | |
19 | * Delegate used to set plottables properties |
|
16 | * Delegate used to set plottables properties | |
20 | */ |
|
17 | */ | |
21 | template <typename T, typename Enabled = void> |
|
18 | template <typename T, typename Enabled = void> | |
22 | struct PlottablesSetter { |
|
19 | struct PlottablesSetter { | |
23 | static void setProperties(T &, PlottablesMap &) |
|
20 | static void setProperties(T &, PlottablesMap &) | |
24 | { |
|
21 | { | |
25 | // Default implementation does nothing |
|
22 | // Default implementation does nothing | |
26 | qCCritical(LOG_PlottablesRenderingUtils()) |
|
23 | qCCritical(LOG_PlottablesRenderingUtils()) | |
27 | << "Can't set plottables properties: unmanaged type of data"; |
|
24 | << "Can't set plottables properties: unmanaged type of data"; | |
28 | } |
|
25 | } | |
29 | }; |
|
26 | }; | |
30 |
|
27 | |||
31 | /** |
|
28 | /** | |
32 | * Specialization of PlottablesSetter for scalars and vectors |
|
29 | * Specialization of PlottablesSetter for scalars and vectors | |
33 | * @sa ScalarSeries |
|
30 | * @sa ScalarSeries | |
34 | * @sa VectorSeries |
|
31 | * @sa VectorSeries | |
35 | */ |
|
32 | */ | |
36 | template <typename T> |
|
33 | template <typename T> | |
37 | struct PlottablesSetter<T, typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value |
|
34 | struct PlottablesSetter<T, typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value | |
38 | or std::is_base_of<VectorSeries, T>::value> > { |
|
35 | or std::is_base_of<VectorSeries, T>::value> > { | |
39 | static void setProperties(T &dataSeries, PlottablesMap &plottables) |
|
36 | static void setProperties(T &dataSeries, PlottablesMap &plottables) | |
40 | { |
|
37 | { | |
41 | // Gets the number of components of the data series |
|
38 | // Gets the number of components of the data series | |
42 | dataSeries.lockRead(); |
|
39 | dataSeries.lockRead(); | |
43 | auto componentCount = dataSeries.valuesData()->componentCount(); |
|
40 | auto componentCount = dataSeries.valuesData()->componentCount(); | |
44 | dataSeries.unlock(); |
|
41 | dataSeries.unlock(); | |
45 |
|
42 | |||
46 | // Generates colors for each component |
|
43 | // Generates colors for each component | |
47 | auto colors = ColorUtils::colors(Qt::blue, Qt::red, componentCount); |
|
44 | auto colors = ColorUtils::colors(Qt::blue, Qt::red, componentCount); | |
48 |
|
45 | |||
49 | // For each component of the data series, creates a QCPGraph to add to the plot |
|
46 | // For each component of the data series, creates a QCPGraph to add to the plot | |
50 | for (auto i = 0; i < componentCount; ++i) { |
|
47 | for (auto i = 0; i < componentCount; ++i) { | |
51 | auto graph = plottables.at(i); |
|
48 | auto graph = plottables.at(i); | |
52 | graph->setPen(QPen{colors.at(i)}); |
|
49 | graph->setPen(QPen{colors.at(i)}); | |
53 | } |
|
50 | } | |
54 | } |
|
51 | } | |
55 | }; |
|
52 | }; | |
56 |
|
53 | |||
57 | /** |
|
54 | /** | |
58 | * Specialization of PlottablesSetter for spectrograms |
|
55 | * Specialization of PlottablesSetter for spectrograms | |
59 | * @sa SpectrogramSeries |
|
56 | * @sa SpectrogramSeries | |
60 | */ |
|
57 | */ | |
61 | template <typename T> |
|
58 | template <typename T> | |
62 | struct PlottablesSetter<T, |
|
59 | struct PlottablesSetter<T, | |
63 | typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { |
|
60 | typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { | |
64 | static void setProperties(T &, PlottablesMap &plottables) |
|
61 | static void setProperties(T &, PlottablesMap &plottables) | |
65 | { |
|
62 | { | |
66 | // Checks that for a spectrogram there is only one plottable, that is a colormap |
|
63 | // Checks that for a spectrogram there is only one plottable, that is a colormap | |
67 | if (plottables.size() != 1) { |
|
64 | if (plottables.size() != 1) { | |
68 | return; |
|
65 | return; | |
69 | } |
|
66 | } | |
70 |
|
67 | |||
71 | if (auto colormap = dynamic_cast<QCPColorMap *>(plottables.begin()->second)) { |
|
68 | if (auto colormap = dynamic_cast<QCPColorMap *>(plottables.begin()->second)) { | |
72 | colormap->setInterpolate(false); // No value interpolation |
|
69 | colormap->setInterpolate(false); // No value interpolation | |
73 | colormap->setTightBoundary(true); |
|
70 | colormap->setTightBoundary(true); | |
74 |
|
71 | |||
75 | // Finds color scale in the colormap's plot to associate with it |
|
72 | // Finds color scale in the colormap's plot to associate with it | |
76 | auto plot = colormap->parentPlot(); |
|
73 | auto plot = colormap->parentPlot(); | |
77 | auto plotElements = plot->plotLayout()->elements(false); |
|
74 | auto plotElements = plot->plotLayout()->elements(false); | |
78 | for (auto plotElement : plotElements) { |
|
75 | for (auto plotElement : plotElements) { | |
79 | if (auto colorScale = dynamic_cast<QCPColorScale *>(plotElement)) { |
|
76 | if (auto colorScale = dynamic_cast<QCPColorScale *>(plotElement)) { | |
80 | colormap->setColorScale(colorScale); |
|
77 | colormap->setColorScale(colorScale); | |
81 | } |
|
78 | } | |
82 | } |
|
79 | } | |
83 |
|
80 | |||
84 | // Sets gradient used for color scale |
|
|||
85 | colormap->setGradient(DEFAULT_COLORMAP_GRADIENT); |
|
|||
86 | colormap->rescaleDataRange(); |
|
81 | colormap->rescaleDataRange(); | |
87 | } |
|
82 | } | |
88 | else { |
|
83 | else { | |
89 | qCCritical(LOG_PlottablesRenderingUtils()) << "Can't get colormap of the spectrogram"; |
|
84 | qCCritical(LOG_PlottablesRenderingUtils()) << "Can't get colormap of the spectrogram"; | |
90 | } |
|
85 | } | |
91 | } |
|
86 | } | |
92 | }; |
|
87 | }; | |
93 |
|
88 | |||
94 | /** |
|
89 | /** | |
95 | * Default implementation of IPlottablesHelper, which takes data series to set plottables properties |
|
90 | * Default implementation of IPlottablesHelper, which takes data series to set plottables properties | |
96 | * @tparam T the data series' type |
|
91 | * @tparam T the data series' type | |
97 | */ |
|
92 | */ | |
98 | template <typename T> |
|
93 | template <typename T> | |
99 | struct PlottablesHelper : public IPlottablesHelper { |
|
94 | struct PlottablesHelper : public IPlottablesHelper { | |
100 | explicit PlottablesHelper(T &dataSeries) : m_DataSeries{dataSeries} {} |
|
95 | explicit PlottablesHelper(T &dataSeries) : m_DataSeries{dataSeries} {} | |
101 |
|
96 | |||
102 | void setProperties(PlottablesMap &plottables) override |
|
97 | void setProperties(PlottablesMap &plottables) override | |
103 | { |
|
98 | { | |
104 | PlottablesSetter<T>::setProperties(m_DataSeries, plottables); |
|
99 | PlottablesSetter<T>::setProperties(m_DataSeries, plottables); | |
105 | } |
|
100 | } | |
106 |
|
101 | |||
107 | T &m_DataSeries; |
|
102 | T &m_DataSeries; | |
108 | }; |
|
103 | }; | |
109 |
|
104 | |||
110 | } // namespace |
|
105 | } // namespace | |
111 |
|
106 | |||
112 | std::unique_ptr<IPlottablesHelper> |
|
107 | std::unique_ptr<IPlottablesHelper> | |
113 | IPlottablesHelperFactory::create(std::shared_ptr<IDataSeries> dataSeries) noexcept |
|
108 | IPlottablesHelperFactory::create(std::shared_ptr<IDataSeries> dataSeries) noexcept | |
114 | { |
|
109 | { | |
115 | if (auto scalarSeries = std::dynamic_pointer_cast<ScalarSeries>(dataSeries)) { |
|
110 | if (auto scalarSeries = std::dynamic_pointer_cast<ScalarSeries>(dataSeries)) { | |
116 | return std::make_unique<PlottablesHelper<ScalarSeries> >(*scalarSeries); |
|
111 | return std::make_unique<PlottablesHelper<ScalarSeries> >(*scalarSeries); | |
117 | } |
|
112 | } | |
118 | else if (auto spectrogramSeries = std::dynamic_pointer_cast<SpectrogramSeries>(dataSeries)) { |
|
113 | else if (auto spectrogramSeries = std::dynamic_pointer_cast<SpectrogramSeries>(dataSeries)) { | |
119 | return std::make_unique<PlottablesHelper<SpectrogramSeries> >(*spectrogramSeries); |
|
114 | return std::make_unique<PlottablesHelper<SpectrogramSeries> >(*spectrogramSeries); | |
120 | } |
|
115 | } | |
121 | else if (auto vectorSeries = std::dynamic_pointer_cast<VectorSeries>(dataSeries)) { |
|
116 | else if (auto vectorSeries = std::dynamic_pointer_cast<VectorSeries>(dataSeries)) { | |
122 | return std::make_unique<PlottablesHelper<VectorSeries> >(*vectorSeries); |
|
117 | return std::make_unique<PlottablesHelper<VectorSeries> >(*vectorSeries); | |
123 | } |
|
118 | } | |
124 | else { |
|
119 | else { | |
125 | return std::make_unique<PlottablesHelper<IDataSeries> >(*dataSeries); |
|
120 | return std::make_unique<PlottablesHelper<IDataSeries> >(*dataSeries); | |
126 | } |
|
121 | } | |
127 | } |
|
122 | } |
@@ -1,473 +1,492 | |||||
1 | #include "Visualization/VisualizationDragDropContainer.h" |
|
1 | #include "Visualization/VisualizationDragDropContainer.h" | |
2 | #include "DragAndDrop/DragDropHelper.h" |
|
2 | #include "DragAndDrop/DragDropHelper.h" | |
3 | #include "SqpApplication.h" |
|
3 | #include "SqpApplication.h" | |
4 | #include "Visualization/VisualizationDragWidget.h" |
|
4 | #include "Visualization/VisualizationDragWidget.h" | |
5 |
|
5 | |||
6 | #include "Common/VisualizationDef.h" |
|
6 | #include "Common/VisualizationDef.h" | |
7 |
|
7 | |||
8 | #include <QDrag> |
|
8 | #include <QDrag> | |
9 | #include <QDragEnterEvent> |
|
9 | #include <QDragEnterEvent> | |
10 | #include <QVBoxLayout> |
|
10 | #include <QVBoxLayout> | |
11 |
|
11 | |||
12 | #include <cmath> |
|
12 | #include <cmath> | |
13 | #include <memory> |
|
13 | #include <memory> | |
14 |
|
14 | |||
15 | Q_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer, "VisualizationDragDropContainer") |
|
15 | Q_LOGGING_CATEGORY(LOG_VisualizationDragDropContainer, "VisualizationDragDropContainer") | |
16 |
|
16 | |||
17 | auto DRAGGED_MINIATURE_WIDTH = 200; // in pixels |
|
17 | auto DRAGGED_MINIATURE_WIDTH = 200; // in pixels | |
18 |
|
18 | |||
19 | struct VisualizationDragDropContainer::VisualizationDragDropContainerPrivate { |
|
19 | struct VisualizationDragDropContainer::VisualizationDragDropContainerPrivate { | |
20 |
|
20 | |||
21 | QVBoxLayout *m_Layout; |
|
21 | QVBoxLayout *m_Layout; | |
22 | QHash<QString, VisualizationDragDropContainer::DropBehavior> m_AcceptedMimeTypes; |
|
22 | QHash<QString, VisualizationDragDropContainer::DropBehavior> m_AcceptedMimeTypes; | |
23 | QString m_PlaceHolderText; |
|
23 | QString m_PlaceHolderText; | |
24 | DragDropHelper::PlaceHolderType m_PlaceHolderType; |
|
24 | DragDropHelper::PlaceHolderType m_PlaceHolderType; | |
25 |
|
25 | |||
26 | VisualizationDragDropContainer::AcceptMimeDataFunction m_AcceptMimeDataFun |
|
26 | VisualizationDragDropContainer::AcceptMimeDataFunction m_AcceptMimeDataFun | |
27 | = [](auto mimeData) { return true; }; |
|
27 | = [](auto mimeData) { return true; }; | |
|
28 | VisualizationDragDropContainer::AcceptDragWidgetFunction m_AcceptDragWidgetFun | |||
|
29 | = [](auto dragWidget, auto mimeData) { return true; }; | |||
28 |
|
30 | |||
29 | int m_MinContainerHeight = 0; |
|
31 | int m_MinContainerHeight = 0; | |
30 |
|
32 | |||
31 | explicit VisualizationDragDropContainerPrivate(QWidget *widget) |
|
33 | explicit VisualizationDragDropContainerPrivate(QWidget *widget) | |
32 | : m_PlaceHolderType(DragDropHelper::PlaceHolderType::Graph) |
|
34 | : m_PlaceHolderType(DragDropHelper::PlaceHolderType::Graph) | |
33 | { |
|
35 | { | |
34 | m_Layout = new QVBoxLayout(widget); |
|
36 | m_Layout = new QVBoxLayout(widget); | |
35 | m_Layout->setContentsMargins(0, 0, 0, 0); |
|
37 | m_Layout->setContentsMargins(0, 0, 0, 0); | |
36 | } |
|
38 | } | |
37 |
|
39 | |||
38 | bool acceptMimeData(const QMimeData *data) const |
|
40 | bool acceptMimeData(const QMimeData *data) const | |
39 | { |
|
41 | { | |
40 | auto accepted = false; |
|
42 | auto accepted = false; | |
41 | for (auto it = m_AcceptedMimeTypes.constBegin(); it != m_AcceptedMimeTypes.constEnd(); |
|
43 | for (auto it = m_AcceptedMimeTypes.constBegin(); it != m_AcceptedMimeTypes.constEnd(); | |
42 | ++it) { |
|
44 | ++it) { | |
43 | const auto &type = it.key(); |
|
45 | const auto &type = it.key(); | |
44 | const auto &behavior = it.value(); |
|
46 | const auto &behavior = it.value(); | |
45 |
|
47 | |||
46 | if (data->hasFormat(type)) { |
|
48 | if (data->hasFormat(type)) { | |
47 | if (behavior != DropBehavior::Forbidden) { |
|
49 | if (behavior != DropBehavior::Forbidden) { | |
48 | accepted = true; |
|
50 | accepted = true; | |
49 | } |
|
51 | } | |
50 | else { |
|
52 | else { | |
51 | accepted = false; |
|
53 | accepted = false; | |
52 | break; |
|
54 | break; | |
53 | } |
|
55 | } | |
54 | } |
|
56 | } | |
55 | } |
|
57 | } | |
56 |
|
58 | |||
57 | if (accepted) { |
|
59 | if (accepted) { | |
58 | accepted = m_AcceptMimeDataFun(data); |
|
60 | accepted = m_AcceptMimeDataFun(data); | |
59 | } |
|
61 | } | |
60 |
|
62 | |||
61 | return accepted; |
|
63 | return accepted; | |
62 | } |
|
64 | } | |
63 |
|
65 | |||
64 | bool allowMergeForMimeData(const QMimeData *data) const |
|
66 | bool allowMergeForMimeData(const QMimeData *data) const | |
65 | { |
|
67 | { | |
66 | auto result = false; |
|
68 | auto result = false; | |
67 | for (auto it = m_AcceptedMimeTypes.constBegin(); it != m_AcceptedMimeTypes.constEnd(); |
|
69 | for (auto it = m_AcceptedMimeTypes.constBegin(); it != m_AcceptedMimeTypes.constEnd(); | |
68 | ++it) { |
|
70 | ++it) { | |
69 |
|
71 | |||
70 | if (data->hasFormat(it.key()) |
|
72 | if (data->hasFormat(it.key()) | |
71 | && (it.value() == VisualizationDragDropContainer::DropBehavior::Merged |
|
73 | && (it.value() == VisualizationDragDropContainer::DropBehavior::Merged | |
72 | || it.value() |
|
74 | || it.value() | |
73 | == VisualizationDragDropContainer::DropBehavior::InsertedAndMerged)) { |
|
75 | == VisualizationDragDropContainer::DropBehavior::InsertedAndMerged)) { | |
74 | result = true; |
|
76 | result = true; | |
75 | } |
|
77 | } | |
76 | else if (data->hasFormat(it.key()) |
|
78 | else if (data->hasFormat(it.key()) | |
77 | && it.value() == VisualizationDragDropContainer::DropBehavior::Inserted) { |
|
79 | && it.value() == VisualizationDragDropContainer::DropBehavior::Inserted) { | |
78 | // Merge is forbidden if the mime data contain an acceptable type which cannot be |
|
80 | // Merge is forbidden if the mime data contain an acceptable type which cannot be | |
79 | // merged |
|
81 | // merged | |
80 | result = false; |
|
82 | result = false; | |
81 | break; |
|
83 | break; | |
82 | } |
|
84 | } | |
83 | } |
|
85 | } | |
84 |
|
86 | |||
85 | return result; |
|
87 | return result; | |
86 | } |
|
88 | } | |
87 |
|
89 | |||
88 | bool allowInsertForMimeData(const QMimeData *data) const |
|
90 | bool allowInsertForMimeData(const QMimeData *data) const | |
89 | { |
|
91 | { | |
90 | for (auto it = m_AcceptedMimeTypes.constBegin(); it != m_AcceptedMimeTypes.constEnd(); |
|
92 | for (auto it = m_AcceptedMimeTypes.constBegin(); it != m_AcceptedMimeTypes.constEnd(); | |
91 | ++it) { |
|
93 | ++it) { | |
92 | if (data->hasFormat(it.key()) |
|
94 | if (data->hasFormat(it.key()) | |
93 | && (it.value() == VisualizationDragDropContainer::DropBehavior::Inserted |
|
95 | && (it.value() == VisualizationDragDropContainer::DropBehavior::Inserted | |
94 | || it.value() |
|
96 | || it.value() | |
95 | == VisualizationDragDropContainer::DropBehavior::InsertedAndMerged)) { |
|
97 | == VisualizationDragDropContainer::DropBehavior::InsertedAndMerged)) { | |
96 | return true; |
|
98 | return true; | |
97 | } |
|
99 | } | |
98 | } |
|
100 | } | |
99 |
|
101 | |||
100 | return false; |
|
102 | return false; | |
101 | } |
|
103 | } | |
102 |
|
104 | |||
103 | bool hasPlaceHolder() const |
|
105 | bool hasPlaceHolder() const | |
104 | { |
|
106 | { | |
105 | return sqpApp->dragDropHelper().placeHolder().parentWidget() == m_Layout->parentWidget(); |
|
107 | return sqpApp->dragDropHelper().placeHolder().parentWidget() == m_Layout->parentWidget(); | |
106 | } |
|
108 | } | |
107 |
|
109 | |||
108 | VisualizationDragWidget *getChildDragWidgetAt(const QWidget *parent, const QPoint &pos) const |
|
110 | VisualizationDragWidget *getChildDragWidgetAt(const QWidget *parent, const QPoint &pos) const | |
109 | { |
|
111 | { | |
110 | VisualizationDragWidget *dragWidget = nullptr; |
|
112 | VisualizationDragWidget *dragWidget = nullptr; | |
111 |
|
113 | |||
112 | for (auto child : parent->children()) { |
|
114 | for (auto child : parent->children()) { | |
113 | auto widget = qobject_cast<VisualizationDragWidget *>(child); |
|
115 | auto widget = qobject_cast<VisualizationDragWidget *>(child); | |
114 | if (widget && widget->isVisible()) { |
|
116 | if (widget && widget->isVisible()) { | |
115 | if (widget->frameGeometry().contains(pos)) { |
|
117 | if (widget->frameGeometry().contains(pos)) { | |
116 | dragWidget = widget; |
|
118 | dragWidget = widget; | |
117 | break; |
|
119 | break; | |
118 | } |
|
120 | } | |
119 | } |
|
121 | } | |
120 | } |
|
122 | } | |
121 |
|
123 | |||
122 | return dragWidget; |
|
124 | return dragWidget; | |
123 | } |
|
125 | } | |
124 |
|
126 | |||
125 | bool cursorIsInContainer(QWidget *container) const |
|
127 | bool cursorIsInContainer(QWidget *container) const | |
126 | { |
|
128 | { | |
127 | auto widgetUnderMouse = sqpApp->widgetAt(QCursor::pos()); |
|
129 | auto widgetUnderMouse = sqpApp->widgetAt(QCursor::pos()); | |
128 | return container->isAncestorOf(widgetUnderMouse) && widgetUnderMouse != container |
|
130 | return container->isAncestorOf(widgetUnderMouse) && widgetUnderMouse != container | |
129 | && sqpApp->dragDropHelper().placeHolder().isAncestorOf(widgetUnderMouse); |
|
131 | && sqpApp->dragDropHelper().placeHolder().isAncestorOf(widgetUnderMouse); | |
130 | } |
|
132 | } | |
131 |
|
133 | |||
132 | int countDragWidget(const QWidget *parent, bool onlyVisible = false) const |
|
134 | int countDragWidget(const QWidget *parent, bool onlyVisible = false) const | |
133 | { |
|
135 | { | |
134 | auto nbGraph = 0; |
|
136 | auto nbGraph = 0; | |
135 | for (auto child : parent->children()) { |
|
137 | for (auto child : parent->children()) { | |
136 | if (qobject_cast<VisualizationDragWidget *>(child)) { |
|
138 | if (qobject_cast<VisualizationDragWidget *>(child)) { | |
137 | if (!onlyVisible || qobject_cast<VisualizationDragWidget *>(child)->isVisible()) { |
|
139 | if (!onlyVisible || qobject_cast<VisualizationDragWidget *>(child)->isVisible()) { | |
138 | nbGraph += 1; |
|
140 | nbGraph += 1; | |
139 | } |
|
141 | } | |
140 | } |
|
142 | } | |
141 | } |
|
143 | } | |
142 |
|
144 | |||
143 | return nbGraph; |
|
145 | return nbGraph; | |
144 | } |
|
146 | } | |
145 |
|
147 | |||
146 |
|
|
148 | bool findPlaceHolderPosition(const QPoint &pos, const QMimeData *mimeData, bool canInsert, | |
147 | const VisualizationDragDropContainer *container); |
|
149 | bool canMerge, const VisualizationDragDropContainer *container); | |
148 | }; |
|
150 | }; | |
149 |
|
151 | |||
150 | VisualizationDragDropContainer::VisualizationDragDropContainer(QWidget *parent) |
|
152 | VisualizationDragDropContainer::VisualizationDragDropContainer(QWidget *parent) | |
151 | : QFrame{parent}, |
|
153 | : QFrame{parent}, | |
152 | impl{spimpl::make_unique_impl<VisualizationDragDropContainerPrivate>(this)} |
|
154 | impl{spimpl::make_unique_impl<VisualizationDragDropContainerPrivate>(this)} | |
153 | { |
|
155 | { | |
154 | setAcceptDrops(true); |
|
156 | setAcceptDrops(true); | |
155 | } |
|
157 | } | |
156 |
|
158 | |||
157 | void VisualizationDragDropContainer::addDragWidget(VisualizationDragWidget *dragWidget) |
|
159 | void VisualizationDragDropContainer::addDragWidget(VisualizationDragWidget *dragWidget) | |
158 | { |
|
160 | { | |
159 | impl->m_Layout->addWidget(dragWidget); |
|
161 | impl->m_Layout->addWidget(dragWidget); | |
160 | disconnect(dragWidget, &VisualizationDragWidget::dragDetected, nullptr, nullptr); |
|
162 | disconnect(dragWidget, &VisualizationDragWidget::dragDetected, nullptr, nullptr); | |
161 | connect(dragWidget, &VisualizationDragWidget::dragDetected, this, |
|
163 | connect(dragWidget, &VisualizationDragWidget::dragDetected, this, | |
162 | &VisualizationDragDropContainer::startDrag); |
|
164 | &VisualizationDragDropContainer::startDrag); | |
163 | } |
|
165 | } | |
164 |
|
166 | |||
165 | void VisualizationDragDropContainer::insertDragWidget(int index, |
|
167 | void VisualizationDragDropContainer::insertDragWidget(int index, | |
166 | VisualizationDragWidget *dragWidget) |
|
168 | VisualizationDragWidget *dragWidget) | |
167 | { |
|
169 | { | |
168 | impl->m_Layout->insertWidget(index, dragWidget); |
|
170 | impl->m_Layout->insertWidget(index, dragWidget); | |
169 | disconnect(dragWidget, &VisualizationDragWidget::dragDetected, nullptr, nullptr); |
|
171 | disconnect(dragWidget, &VisualizationDragWidget::dragDetected, nullptr, nullptr); | |
170 | connect(dragWidget, &VisualizationDragWidget::dragDetected, this, |
|
172 | connect(dragWidget, &VisualizationDragWidget::dragDetected, this, | |
171 | &VisualizationDragDropContainer::startDrag); |
|
173 | &VisualizationDragDropContainer::startDrag); | |
172 | } |
|
174 | } | |
173 |
|
175 | |||
174 | void VisualizationDragDropContainer::setMimeType( |
|
176 | void VisualizationDragDropContainer::setMimeType( | |
175 | const QString &mimeType, VisualizationDragDropContainer::DropBehavior behavior) |
|
177 | const QString &mimeType, VisualizationDragDropContainer::DropBehavior behavior) | |
176 | { |
|
178 | { | |
177 | impl->m_AcceptedMimeTypes[mimeType] = behavior; |
|
179 | impl->m_AcceptedMimeTypes[mimeType] = behavior; | |
178 | } |
|
180 | } | |
179 |
|
181 | |||
180 | int VisualizationDragDropContainer::countDragWidget() const |
|
182 | int VisualizationDragDropContainer::countDragWidget() const | |
181 | { |
|
183 | { | |
182 | return impl->countDragWidget(this); |
|
184 | return impl->countDragWidget(this); | |
183 | } |
|
185 | } | |
184 |
|
186 | |||
185 | void VisualizationDragDropContainer::setAcceptMimeDataFunction( |
|
187 | void VisualizationDragDropContainer::setAcceptMimeDataFunction( | |
186 | VisualizationDragDropContainer::AcceptMimeDataFunction fun) |
|
188 | VisualizationDragDropContainer::AcceptMimeDataFunction fun) | |
187 | { |
|
189 | { | |
188 | impl->m_AcceptMimeDataFun = fun; |
|
190 | impl->m_AcceptMimeDataFun = fun; | |
189 | } |
|
191 | } | |
190 |
|
192 | |||
|
193 | void VisualizationDragDropContainer::setAcceptDragWidgetFunction( | |||
|
194 | VisualizationDragDropContainer::AcceptDragWidgetFunction fun) | |||
|
195 | { | |||
|
196 | impl->m_AcceptDragWidgetFun = fun; | |||
|
197 | } | |||
|
198 | ||||
191 | void VisualizationDragDropContainer::setPlaceHolderType(DragDropHelper::PlaceHolderType type, |
|
199 | void VisualizationDragDropContainer::setPlaceHolderType(DragDropHelper::PlaceHolderType type, | |
192 | const QString &placeHolderText) |
|
200 | const QString &placeHolderText) | |
193 | { |
|
201 | { | |
194 | impl->m_PlaceHolderType = type; |
|
202 | impl->m_PlaceHolderType = type; | |
195 | impl->m_PlaceHolderText = placeHolderText; |
|
203 | impl->m_PlaceHolderText = placeHolderText; | |
196 | } |
|
204 | } | |
197 |
|
205 | |||
198 | void VisualizationDragDropContainer::startDrag(VisualizationDragWidget *dragWidget, |
|
206 | void VisualizationDragDropContainer::startDrag(VisualizationDragWidget *dragWidget, | |
199 | const QPoint &dragPosition) |
|
207 | const QPoint &dragPosition) | |
200 | { |
|
208 | { | |
201 | auto &helper = sqpApp->dragDropHelper(); |
|
209 | auto &helper = sqpApp->dragDropHelper(); | |
202 | helper.resetDragAndDrop(); |
|
210 | helper.resetDragAndDrop(); | |
203 |
|
211 | |||
204 | // Note: The management of the drag object is done by Qt |
|
212 | // Note: The management of the drag object is done by Qt | |
205 | auto drag = new QDrag{dragWidget}; |
|
213 | auto drag = new QDrag{dragWidget}; | |
206 |
|
214 | |||
207 | auto mimeData = dragWidget->mimeData(); |
|
215 | auto mimeData = dragWidget->mimeData(); | |
208 | drag->setMimeData(mimeData); |
|
216 | drag->setMimeData(mimeData); | |
209 |
|
217 | |||
210 | auto pixmap = QPixmap(dragWidget->size()); |
|
218 | auto pixmap = QPixmap(dragWidget->size()); | |
211 | dragWidget->render(&pixmap); |
|
219 | dragWidget->render(&pixmap); | |
212 | drag->setPixmap(pixmap.scaled(DRAGGED_MINIATURE_WIDTH, DRAGGED_MINIATURE_WIDTH, |
|
220 | drag->setPixmap(pixmap.scaled(DRAGGED_MINIATURE_WIDTH, DRAGGED_MINIATURE_WIDTH, | |
213 | Qt::KeepAspectRatio, Qt::SmoothTransformation)); |
|
221 | Qt::KeepAspectRatio, Qt::SmoothTransformation)); | |
214 |
|
222 | |||
215 | auto image = pixmap.toImage(); |
|
223 | auto image = pixmap.toImage(); | |
216 | mimeData->setImageData(image); |
|
224 | mimeData->setImageData(image); | |
217 | mimeData->setUrls({helper.imageTemporaryUrl(image)}); |
|
225 | mimeData->setUrls({helper.imageTemporaryUrl(image)}); | |
218 |
|
226 | |||
219 | if (impl->m_Layout->indexOf(dragWidget) >= 0) { |
|
227 | if (impl->m_Layout->indexOf(dragWidget) >= 0) { | |
220 | helper.setCurrentDragWidget(dragWidget); |
|
228 | helper.setCurrentDragWidget(dragWidget); | |
221 |
|
229 | |||
222 | if (impl->cursorIsInContainer(this)) { |
|
230 | if (impl->cursorIsInContainer(this)) { | |
223 | auto dragWidgetIndex = impl->m_Layout->indexOf(dragWidget); |
|
231 | auto dragWidgetIndex = impl->m_Layout->indexOf(dragWidget); | |
224 | helper.insertPlaceHolder(impl->m_Layout, dragWidgetIndex, impl->m_PlaceHolderType, |
|
232 | helper.insertPlaceHolder(impl->m_Layout, dragWidgetIndex, impl->m_PlaceHolderType, | |
225 | impl->m_PlaceHolderText); |
|
233 | impl->m_PlaceHolderText); | |
226 | dragWidget->setVisible(false); |
|
234 | dragWidget->setVisible(false); | |
227 | } |
|
235 | } | |
228 | else { |
|
236 | else { | |
229 | // The drag starts directly outside the drop zone |
|
237 | // The drag starts directly outside the drop zone | |
230 | // do not add the placeHolder |
|
238 | // do not add the placeHolder | |
231 | } |
|
239 | } | |
232 |
|
240 | |||
233 | drag->exec(Qt::MoveAction | Qt::CopyAction, Qt::MoveAction); |
|
241 | drag->exec(Qt::MoveAction | Qt::CopyAction, Qt::MoveAction); | |
234 |
|
242 | |||
235 | helper.doCloseWidgets(); |
|
243 | helper.doCloseWidgets(); | |
236 | } |
|
244 | } | |
237 | else { |
|
245 | else { | |
238 | qCWarning(LOG_VisualizationDragDropContainer()) |
|
246 | qCWarning(LOG_VisualizationDragDropContainer()) | |
239 | << tr("VisualizationDragDropContainer::startDrag, drag aborted, the specified " |
|
247 | << tr("VisualizationDragDropContainer::startDrag, drag aborted, the specified " | |
240 | "VisualizationDragWidget is not found in this container."); |
|
248 | "VisualizationDragWidget is not found in this container."); | |
241 | } |
|
249 | } | |
242 | } |
|
250 | } | |
243 |
|
251 | |||
244 | void VisualizationDragDropContainer::dragEnterEvent(QDragEnterEvent *event) |
|
252 | void VisualizationDragDropContainer::dragEnterEvent(QDragEnterEvent *event) | |
245 | { |
|
253 | { | |
246 | if (impl->acceptMimeData(event->mimeData())) { |
|
254 | if (impl->acceptMimeData(event->mimeData())) { | |
247 | event->acceptProposedAction(); |
|
255 | event->acceptProposedAction(); | |
248 |
|
256 | |||
249 | auto &helper = sqpApp->dragDropHelper(); |
|
257 | auto &helper = sqpApp->dragDropHelper(); | |
250 |
|
258 | |||
251 | if (!impl->hasPlaceHolder()) { |
|
259 | if (!impl->hasPlaceHolder()) { | |
252 | auto dragWidget = helper.getCurrentDragWidget(); |
|
260 | auto dragWidget = helper.getCurrentDragWidget(); | |
253 |
|
261 | |||
254 | if (dragWidget) { |
|
262 | if (dragWidget) { | |
255 | // If the drag&drop is internal to the visualization, entering the container hide |
|
263 | // If the drag&drop is internal to the visualization, entering the container hide | |
256 | // the dragWidget which was made visible by the dragLeaveEvent |
|
264 | // the dragWidget which was made visible by the dragLeaveEvent | |
257 | auto parentWidget |
|
265 | auto parentWidget | |
258 | = qobject_cast<VisualizationDragDropContainer *>(dragWidget->parentWidget()); |
|
266 | = qobject_cast<VisualizationDragDropContainer *>(dragWidget->parentWidget()); | |
259 | if (parentWidget) { |
|
267 | if (parentWidget) { | |
260 | dragWidget->setVisible(false); |
|
268 | dragWidget->setVisible(false); | |
261 | } |
|
269 | } | |
262 | } |
|
270 | } | |
263 |
|
271 | |||
264 | auto canMerge = impl->allowMergeForMimeData(event->mimeData()); |
|
272 | auto canMerge = impl->allowMergeForMimeData(event->mimeData()); | |
265 | auto canInsert = impl->allowInsertForMimeData(event->mimeData()); |
|
273 | auto canInsert = impl->allowInsertForMimeData(event->mimeData()); | |
266 |
impl->findPlaceHolderPosition(event->pos(), canInsert, canMerge, |
|
274 | if (!impl->findPlaceHolderPosition(event->pos(), event->mimeData(), canInsert, canMerge, | |
|
275 | this)) { | |||
|
276 | event->ignore(); | |||
|
277 | } | |||
267 | } |
|
278 | } | |
268 | else { |
|
279 | else { | |
269 | // do nothing |
|
280 | // do nothing | |
270 | } |
|
281 | } | |
271 | } |
|
282 | } | |
272 | else { |
|
283 | else { | |
273 | event->ignore(); |
|
284 | event->ignore(); | |
274 | } |
|
285 | } | |
275 |
|
286 | |||
276 | QWidget::dragEnterEvent(event); |
|
287 | QWidget::dragEnterEvent(event); | |
277 | } |
|
288 | } | |
278 |
|
289 | |||
279 | void VisualizationDragDropContainer::dragLeaveEvent(QDragLeaveEvent *event) |
|
290 | void VisualizationDragDropContainer::dragLeaveEvent(QDragLeaveEvent *event) | |
280 | { |
|
291 | { | |
281 | Q_UNUSED(event); |
|
292 | Q_UNUSED(event); | |
282 |
|
293 | |||
283 | auto &helper = sqpApp->dragDropHelper(); |
|
294 | auto &helper = sqpApp->dragDropHelper(); | |
284 |
|
295 | |||
285 | if (!impl->cursorIsInContainer(this)) { |
|
296 | if (!impl->cursorIsInContainer(this)) { | |
286 | helper.removePlaceHolder(); |
|
297 | helper.removePlaceHolder(); | |
287 | helper.setHightlightedDragWidget(nullptr); |
|
298 | helper.setHightlightedDragWidget(nullptr); | |
288 | impl->m_MinContainerHeight = 0; |
|
299 | impl->m_MinContainerHeight = 0; | |
289 |
|
300 | |||
290 | auto dragWidget = helper.getCurrentDragWidget(); |
|
301 | auto dragWidget = helper.getCurrentDragWidget(); | |
291 | if (dragWidget) { |
|
302 | if (dragWidget) { | |
292 | // dragWidget has a value only if the drag is started from the visualization |
|
303 | // dragWidget has a value only if the drag is started from the visualization | |
293 | // In that case, shows the drag widget at its original place |
|
304 | // In that case, shows the drag widget at its original place | |
294 | // So the drag widget doesn't stay hidden if the drop occurs outside the visualization |
|
305 | // So the drag widget doesn't stay hidden if the drop occurs outside the visualization | |
295 | // drop zone (It is not possible to catch a drop event outside of the application) |
|
306 | // drop zone (It is not possible to catch a drop event outside of the application) | |
296 |
|
307 | |||
297 | if (dragWidget) { |
|
308 | if (dragWidget) { | |
298 | dragWidget->setVisible(true); |
|
309 | dragWidget->setVisible(true); | |
299 | } |
|
310 | } | |
300 | } |
|
311 | } | |
301 | } |
|
312 | } | |
302 | else { |
|
313 | else { | |
303 | // Leave event probably received for a child widget. |
|
314 | // Leave event probably received for a child widget. | |
304 | // Do nothing. |
|
315 | // Do nothing. | |
305 | // Note: The DragLeave event, doesn't have any mean to determine who sent it. |
|
316 | // Note: The DragLeave event, doesn't have any mean to determine who sent it. | |
306 | } |
|
317 | } | |
307 |
|
318 | |||
308 | QWidget::dragLeaveEvent(event); |
|
319 | QWidget::dragLeaveEvent(event); | |
309 | } |
|
320 | } | |
310 |
|
321 | |||
311 | void VisualizationDragDropContainer::dragMoveEvent(QDragMoveEvent *event) |
|
322 | void VisualizationDragDropContainer::dragMoveEvent(QDragMoveEvent *event) | |
312 | { |
|
323 | { | |
313 | if (impl->acceptMimeData(event->mimeData())) { |
|
324 | if (impl->acceptMimeData(event->mimeData())) { | |
314 | auto canMerge = impl->allowMergeForMimeData(event->mimeData()); |
|
325 | auto canMerge = impl->allowMergeForMimeData(event->mimeData()); | |
315 | auto canInsert = impl->allowInsertForMimeData(event->mimeData()); |
|
326 | auto canInsert = impl->allowInsertForMimeData(event->mimeData()); | |
316 | impl->findPlaceHolderPosition(event->pos(), canInsert, canMerge, this); |
|
327 | impl->findPlaceHolderPosition(event->pos(), event->mimeData(), canInsert, canMerge, this); | |
317 | } |
|
328 | } | |
318 | else { |
|
329 | else { | |
319 | event->ignore(); |
|
330 | event->ignore(); | |
320 | } |
|
331 | } | |
321 |
|
332 | |||
322 | QWidget::dragMoveEvent(event); |
|
333 | QWidget::dragMoveEvent(event); | |
323 | } |
|
334 | } | |
324 |
|
335 | |||
325 | void VisualizationDragDropContainer::dropEvent(QDropEvent *event) |
|
336 | void VisualizationDragDropContainer::dropEvent(QDropEvent *event) | |
326 | { |
|
337 | { | |
327 | auto &helper = sqpApp->dragDropHelper(); |
|
338 | auto &helper = sqpApp->dragDropHelper(); | |
328 |
|
339 | |||
329 | if (impl->acceptMimeData(event->mimeData())) { |
|
340 | if (impl->acceptMimeData(event->mimeData())) { | |
330 | auto dragWidget = helper.getCurrentDragWidget(); |
|
341 | auto dragWidget = helper.getCurrentDragWidget(); | |
331 | if (impl->hasPlaceHolder()) { |
|
342 | if (impl->hasPlaceHolder()) { | |
332 | // drop where the placeHolder is located |
|
343 | // drop where the placeHolder is located | |
333 |
|
344 | |||
334 | auto canInsert = impl->allowInsertForMimeData(event->mimeData()); |
|
345 | auto canInsert = impl->allowInsertForMimeData(event->mimeData()); | |
335 | if (canInsert) { |
|
346 | if (canInsert) { | |
336 | auto droppedIndex = impl->m_Layout->indexOf(&helper.placeHolder()); |
|
347 | auto droppedIndex = impl->m_Layout->indexOf(&helper.placeHolder()); | |
337 |
|
348 | |||
338 | if (dragWidget) { |
|
349 | if (dragWidget) { | |
339 | auto dragWidgetIndex = impl->m_Layout->indexOf(dragWidget); |
|
350 | auto dragWidgetIndex = impl->m_Layout->indexOf(dragWidget); | |
340 | if (dragWidgetIndex >= 0 && dragWidgetIndex < droppedIndex) { |
|
351 | if (dragWidgetIndex >= 0 && dragWidgetIndex < droppedIndex) { | |
341 | // Correction of the index if the drop occurs in the same container |
|
352 | // Correction of the index if the drop occurs in the same container | |
342 | // and if the drag is started from the visualization (in that case, the |
|
353 | // and if the drag is started from the visualization (in that case, the | |
343 | // dragWidget is hidden) |
|
354 | // dragWidget is hidden) | |
344 | droppedIndex -= 1; |
|
355 | droppedIndex -= 1; | |
345 | } |
|
356 | } | |
346 |
|
357 | |||
347 | dragWidget->setVisible(true); |
|
358 | dragWidget->setVisible(true); | |
348 | } |
|
359 | } | |
349 |
|
360 | |||
350 | event->acceptProposedAction(); |
|
361 | event->acceptProposedAction(); | |
351 |
|
362 | |||
352 | helper.removePlaceHolder(); |
|
363 | helper.removePlaceHolder(); | |
353 |
|
364 | |||
354 | emit dropOccuredInContainer(droppedIndex, event->mimeData()); |
|
365 | emit dropOccuredInContainer(droppedIndex, event->mimeData()); | |
355 | } |
|
366 | } | |
356 | else { |
|
367 | else { | |
357 | qCWarning(LOG_VisualizationDragDropContainer()) << tr( |
|
368 | qCWarning(LOG_VisualizationDragDropContainer()) << tr( | |
358 | "VisualizationDragDropContainer::dropEvent, dropping on the placeHolder, but " |
|
369 | "VisualizationDragDropContainer::dropEvent, dropping on the placeHolder, but " | |
359 | "the insertion is forbidden."); |
|
370 | "the insertion is forbidden."); | |
360 | Q_ASSERT(false); |
|
371 | Q_ASSERT(false); | |
361 | } |
|
372 | } | |
362 | } |
|
373 | } | |
363 | else if (helper.getHightlightedDragWidget()) { |
|
374 | else if (helper.getHightlightedDragWidget()) { | |
364 | // drop on the highlighted widget |
|
375 | // drop on the highlighted widget | |
365 |
|
376 | |||
366 | auto canMerge = impl->allowMergeForMimeData(event->mimeData()); |
|
377 | auto canMerge = impl->allowMergeForMimeData(event->mimeData()); | |
367 | if (canMerge) { |
|
378 | if (canMerge) { | |
368 | event->acceptProposedAction(); |
|
379 | event->acceptProposedAction(); | |
369 | emit dropOccuredOnWidget(helper.getHightlightedDragWidget(), event->mimeData()); |
|
380 | emit dropOccuredOnWidget(helper.getHightlightedDragWidget(), event->mimeData()); | |
370 | } |
|
381 | } | |
371 | else { |
|
382 | else { | |
372 | qCWarning(LOG_VisualizationDragDropContainer()) |
|
383 | qCWarning(LOG_VisualizationDragDropContainer()) | |
373 | << tr("VisualizationDragDropContainer::dropEvent, dropping on a widget, but " |
|
384 | << tr("VisualizationDragDropContainer::dropEvent, dropping on a widget, but " | |
374 | "the merge is forbidden."); |
|
385 | "the merge is forbidden."); | |
375 | Q_ASSERT(false); |
|
386 | Q_ASSERT(false); | |
376 | } |
|
387 | } | |
377 | } |
|
388 | } | |
378 | } |
|
389 | } | |
379 | else { |
|
390 | else { | |
380 | event->ignore(); |
|
391 | event->ignore(); | |
381 | } |
|
392 | } | |
382 |
|
393 | |||
383 | sqpApp->dragDropHelper().setHightlightedDragWidget(nullptr); |
|
394 | sqpApp->dragDropHelper().setHightlightedDragWidget(nullptr); | |
384 | impl->m_MinContainerHeight = 0; |
|
395 | impl->m_MinContainerHeight = 0; | |
385 |
|
396 | |||
386 | QWidget::dropEvent(event); |
|
397 | QWidget::dropEvent(event); | |
387 | } |
|
398 | } | |
388 |
|
399 | |||
389 |
|
400 | |||
390 |
|
|
401 | bool VisualizationDragDropContainer::VisualizationDragDropContainerPrivate::findPlaceHolderPosition( | |
391 | const QPoint &pos, bool canInsert, bool canMerge, |
|
402 | const QPoint &pos, const QMimeData *mimeData, bool canInsert, bool canMerge, | |
392 | const VisualizationDragDropContainer *container) |
|
403 | const VisualizationDragDropContainer *container) | |
393 | { |
|
404 | { | |
394 | auto &helper = sqpApp->dragDropHelper(); |
|
405 | auto &helper = sqpApp->dragDropHelper(); | |
395 |
|
406 | |||
396 | auto absPos = container->mapToGlobal(pos); |
|
407 | auto absPos = container->mapToGlobal(pos); | |
397 | auto isOnPlaceHolder = helper.placeHolder().isAncestorOf(sqpApp->widgetAt(absPos)); |
|
408 | auto isOnPlaceHolder = helper.placeHolder().isAncestorOf(sqpApp->widgetAt(absPos)); | |
398 |
|
409 | |||
399 | if (countDragWidget(container, true) == 0) { |
|
410 | if (countDragWidget(container, true) == 0) { | |
400 | // Drop on an empty container, just add the placeHolder at the top |
|
411 | // Drop on an empty container, just add the placeHolder at the top | |
401 | helper.insertPlaceHolder(m_Layout, 0, m_PlaceHolderType, m_PlaceHolderText); |
|
412 | helper.insertPlaceHolder(m_Layout, 0, m_PlaceHolderType, m_PlaceHolderText); | |
402 | } |
|
413 | } | |
403 | else if (!isOnPlaceHolder) { |
|
414 | else if (!isOnPlaceHolder) { | |
404 | auto nbDragWidget = countDragWidget(container); |
|
415 | auto nbDragWidget = countDragWidget(container); | |
405 | if (nbDragWidget > 0) { |
|
416 | if (nbDragWidget > 0) { | |
406 |
|
417 | |||
407 | if (m_MinContainerHeight == 0) { |
|
418 | if (m_MinContainerHeight == 0) { | |
408 | m_MinContainerHeight = container->size().height(); |
|
419 | m_MinContainerHeight = container->size().height(); | |
409 | } |
|
420 | } | |
410 |
|
421 | |||
411 | m_MinContainerHeight = qMin(m_MinContainerHeight, container->size().height()); |
|
422 | m_MinContainerHeight = qMin(m_MinContainerHeight, container->size().height()); | |
412 | auto graphHeight = qMax(m_MinContainerHeight / nbDragWidget, GRAPH_MINIMUM_HEIGHT); |
|
423 | auto graphHeight = qMax(m_MinContainerHeight / nbDragWidget, GRAPH_MINIMUM_HEIGHT); | |
413 |
|
424 | |||
414 | auto posY = pos.y(); |
|
425 | auto posY = pos.y(); | |
415 | auto dropIndex = floor(posY / graphHeight); |
|
426 | auto dropIndex = floor(posY / graphHeight); | |
416 | auto zoneSize = qMin(graphHeight / 4.0, 75.0); |
|
427 | auto zoneSize = qMin(graphHeight / 4.0, 75.0); | |
417 |
|
428 | |||
418 |
|
429 | |||
419 | auto isOnTop = posY < dropIndex * graphHeight + zoneSize; |
|
430 | auto isOnTop = posY < dropIndex * graphHeight + zoneSize; | |
420 | auto isOnBottom = posY > (dropIndex + 1) * graphHeight - zoneSize; |
|
431 | auto isOnBottom = posY > (dropIndex + 1) * graphHeight - zoneSize; | |
421 |
|
432 | |||
422 | auto placeHolderIndex = m_Layout->indexOf(&(helper.placeHolder())); |
|
433 | auto placeHolderIndex = m_Layout->indexOf(&(helper.placeHolder())); | |
423 |
|
434 | |||
424 | auto dragWidgetHovered = getChildDragWidgetAt(container, pos); |
|
435 | auto dragWidgetHovered = getChildDragWidgetAt(container, pos); | |
425 |
|
436 | |||
426 | if (canInsert && (isOnTop || isOnBottom || !canMerge)) { |
|
437 | if (canInsert && (isOnTop || isOnBottom || !canMerge)) { | |
427 | if (isOnBottom) { |
|
438 | if (isOnBottom) { | |
428 | dropIndex += 1; |
|
439 | dropIndex += 1; | |
429 | } |
|
440 | } | |
430 |
|
441 | |||
431 | if (helper.getCurrentDragWidget()) { |
|
442 | if (helper.getCurrentDragWidget()) { | |
432 | auto dragWidgetIndex = m_Layout->indexOf(helper.getCurrentDragWidget()); |
|
443 | auto dragWidgetIndex = m_Layout->indexOf(helper.getCurrentDragWidget()); | |
433 | if (dragWidgetIndex >= 0 && dragWidgetIndex <= dropIndex) { |
|
444 | if (dragWidgetIndex >= 0 && dragWidgetIndex <= dropIndex) { | |
434 | // Correction of the index if the drop occurs in the same container |
|
445 | // Correction of the index if the drop occurs in the same container | |
435 | // and if the drag is started from the visualization (in that case, the |
|
446 | // and if the drag is started from the visualization (in that case, the | |
436 | // dragWidget is hidden) |
|
447 | // dragWidget is hidden) | |
437 | dropIndex += 1; |
|
448 | dropIndex += 1; | |
438 | } |
|
449 | } | |
439 | } |
|
450 | } | |
440 |
|
451 | |||
441 | if (dropIndex != placeHolderIndex) { |
|
452 | if (dropIndex != placeHolderIndex) { | |
442 | helper.insertPlaceHolder(m_Layout, dropIndex, m_PlaceHolderType, |
|
453 | helper.insertPlaceHolder(m_Layout, dropIndex, m_PlaceHolderType, | |
443 | m_PlaceHolderText); |
|
454 | m_PlaceHolderText); | |
444 | } |
|
455 | } | |
445 |
|
456 | |||
446 | helper.setHightlightedDragWidget(nullptr); |
|
457 | helper.setHightlightedDragWidget(nullptr); | |
447 | } |
|
458 | } | |
448 | else if (canMerge && dragWidgetHovered) { |
|
459 | else if (canMerge && dragWidgetHovered) { | |
449 | // drop on the middle -> merge |
|
460 | // drop on the middle -> merge | |
450 | if (hasPlaceHolder()) { |
|
461 | if (hasPlaceHolder()) { | |
451 | helper.removePlaceHolder(); |
|
462 | helper.removePlaceHolder(); | |
452 | } |
|
463 | } | |
453 |
|
464 | |||
|
465 | if (m_AcceptDragWidgetFun(dragWidgetHovered, mimeData)) { | |||
454 | helper.setHightlightedDragWidget(dragWidgetHovered); |
|
466 | helper.setHightlightedDragWidget(dragWidgetHovered); | |
|
467 | return true; | |||
|
468 | } | |||
|
469 | else { | |||
|
470 | return false; | |||
|
471 | } | |||
455 | } |
|
472 | } | |
456 | else { |
|
473 | else { | |
457 | qCWarning(LOG_VisualizationDragDropContainer()) |
|
474 | qCWarning(LOG_VisualizationDragDropContainer()) | |
458 | << tr("VisualizationDragDropContainer::findPlaceHolderPosition, no valid drop " |
|
475 | << tr("VisualizationDragDropContainer::findPlaceHolderPosition, no valid drop " | |
459 | "action."); |
|
476 | "action."); | |
460 | } |
|
477 | } | |
461 | } |
|
478 | } | |
462 | else { |
|
479 | else { | |
463 | qCWarning(LOG_VisualizationDragDropContainer()) |
|
480 | qCWarning(LOG_VisualizationDragDropContainer()) | |
464 | << tr("VisualizationDragDropContainer::findPlaceHolderPosition, no widget " |
|
481 | << tr("VisualizationDragDropContainer::findPlaceHolderPosition, no widget " | |
465 | "found in the " |
|
482 | "found in the " | |
466 | "container"); |
|
483 | "container"); | |
467 | } |
|
484 | } | |
468 | } |
|
485 | } | |
469 | else { |
|
486 | else { | |
470 | // the mouse is hover the placeHolder |
|
487 | // the mouse is hover the placeHolder | |
471 | // Do nothing |
|
488 | // Do nothing | |
472 | } |
|
489 | } | |
|
490 | ||||
|
491 | return true; | |||
473 | } |
|
492 | } |
@@ -1,344 +1,340 | |||||
1 | #include "Visualization/VisualizationGraphHelper.h" |
|
1 | #include "Visualization/VisualizationGraphHelper.h" | |
2 | #include "Visualization/qcustomplot.h" |
|
2 | #include "Visualization/qcustomplot.h" | |
3 |
|
3 | |||
4 | #include <Data/DataSeriesUtils.h> |
|
4 | #include <Data/DataSeriesUtils.h> | |
5 | #include <Data/ScalarSeries.h> |
|
5 | #include <Data/ScalarSeries.h> | |
6 | #include <Data/SpectrogramSeries.h> |
|
6 | #include <Data/SpectrogramSeries.h> | |
7 | #include <Data/VectorSeries.h> |
|
7 | #include <Data/VectorSeries.h> | |
8 |
|
8 | |||
9 | #include <Variable/Variable.h> |
|
9 | #include <Variable/Variable.h> | |
10 |
|
10 | |||
11 | Q_LOGGING_CATEGORY(LOG_VisualizationGraphHelper, "VisualizationGraphHelper") |
|
11 | Q_LOGGING_CATEGORY(LOG_VisualizationGraphHelper, "VisualizationGraphHelper") | |
12 |
|
12 | |||
13 | namespace { |
|
13 | namespace { | |
14 |
|
14 | |||
15 | class SqpDataContainer : public QCPGraphDataContainer { |
|
15 | class SqpDataContainer : public QCPGraphDataContainer { | |
16 | public: |
|
16 | public: | |
17 | void appendGraphData(const QCPGraphData &data) { mData.append(data); } |
|
17 | void appendGraphData(const QCPGraphData &data) { mData.append(data); } | |
18 | }; |
|
18 | }; | |
19 |
|
19 | |||
20 | /** |
|
20 | /** | |
21 | * Struct used to create plottables, depending on the type of the data series from which to create |
|
21 | * Struct used to create plottables, depending on the type of the data series from which to create | |
22 | * them |
|
22 | * them | |
23 | * @tparam T the data series' type |
|
23 | * @tparam T the data series' type | |
24 | * @remarks Default implementation can't create plottables |
|
24 | * @remarks Default implementation can't create plottables | |
25 | */ |
|
25 | */ | |
26 | template <typename T, typename Enabled = void> |
|
26 | template <typename T, typename Enabled = void> | |
27 | struct PlottablesCreator { |
|
27 | struct PlottablesCreator { | |
28 | static PlottablesMap createPlottables(T &, QCustomPlot &) |
|
28 | static PlottablesMap createPlottables(T &, QCustomPlot &) | |
29 | { |
|
29 | { | |
30 | qCCritical(LOG_DataSeries()) |
|
30 | qCCritical(LOG_DataSeries()) | |
31 | << QObject::tr("Can't create plottables: unmanaged data series type"); |
|
31 | << QObject::tr("Can't create plottables: unmanaged data series type"); | |
32 | return {}; |
|
32 | return {}; | |
33 | } |
|
33 | } | |
34 | }; |
|
34 | }; | |
35 |
|
35 | |||
36 | /** |
|
36 | /** | |
37 | * Specialization of PlottablesCreator for scalars and vectors |
|
37 | * Specialization of PlottablesCreator for scalars and vectors | |
38 | * @sa ScalarSeries |
|
38 | * @sa ScalarSeries | |
39 | * @sa VectorSeries |
|
39 | * @sa VectorSeries | |
40 | */ |
|
40 | */ | |
41 | template <typename T> |
|
41 | template <typename T> | |
42 | struct PlottablesCreator<T, |
|
42 | struct PlottablesCreator<T, | |
43 | typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value |
|
43 | typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value | |
44 | or std::is_base_of<VectorSeries, T>::value> > { |
|
44 | or std::is_base_of<VectorSeries, T>::value> > { | |
45 | static PlottablesMap createPlottables(T &dataSeries, QCustomPlot &plot) |
|
45 | static PlottablesMap createPlottables(T &dataSeries, QCustomPlot &plot) | |
46 | { |
|
46 | { | |
47 | PlottablesMap result{}; |
|
47 | PlottablesMap result{}; | |
48 |
|
48 | |||
49 | // Gets the number of components of the data series |
|
49 | // Gets the number of components of the data series | |
50 | dataSeries.lockRead(); |
|
50 | dataSeries.lockRead(); | |
51 | auto componentCount = dataSeries.valuesData()->componentCount(); |
|
51 | auto componentCount = dataSeries.valuesData()->componentCount(); | |
52 | dataSeries.unlock(); |
|
52 | dataSeries.unlock(); | |
53 |
|
53 | |||
54 | // For each component of the data series, creates a QCPGraph to add to the plot |
|
54 | // For each component of the data series, creates a QCPGraph to add to the plot | |
55 | for (auto i = 0; i < componentCount; ++i) { |
|
55 | for (auto i = 0; i < componentCount; ++i) { | |
56 | auto graph = plot.addGraph(); |
|
56 | auto graph = plot.addGraph(); | |
57 | result.insert({i, graph}); |
|
57 | result.insert({i, graph}); | |
58 | } |
|
58 | } | |
59 |
|
59 | |||
60 | plot.replot(); |
|
60 | plot.replot(); | |
61 |
|
61 | |||
62 | return result; |
|
62 | return result; | |
63 | } |
|
63 | } | |
64 | }; |
|
64 | }; | |
65 |
|
65 | |||
66 | /** |
|
66 | /** | |
67 | * Specialization of PlottablesCreator for spectrograms |
|
67 | * Specialization of PlottablesCreator for spectrograms | |
68 | * @sa SpectrogramSeries |
|
68 | * @sa SpectrogramSeries | |
69 | */ |
|
69 | */ | |
70 | template <typename T> |
|
70 | template <typename T> | |
71 | struct PlottablesCreator<T, |
|
71 | struct PlottablesCreator<T, | |
72 | typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { |
|
72 | typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { | |
73 | static PlottablesMap createPlottables(T &dataSeries, QCustomPlot &plot) |
|
73 | static PlottablesMap createPlottables(T &dataSeries, QCustomPlot &plot) | |
74 | { |
|
74 | { | |
75 | PlottablesMap result{}; |
|
75 | PlottablesMap result{}; | |
76 | result.insert({0, new QCPColorMap{plot.xAxis, plot.yAxis}}); |
|
76 | result.insert({0, new QCPColorMap{plot.xAxis, plot.yAxis}}); | |
77 |
|
77 | |||
78 | plot.replot(); |
|
78 | plot.replot(); | |
79 |
|
79 | |||
80 | return result; |
|
80 | return result; | |
81 | } |
|
81 | } | |
82 | }; |
|
82 | }; | |
83 |
|
83 | |||
84 | /** |
|
84 | /** | |
85 | * Struct used to update plottables, depending on the type of the data series from which to update |
|
85 | * Struct used to update plottables, depending on the type of the data series from which to update | |
86 | * them |
|
86 | * them | |
87 | * @tparam T the data series' type |
|
87 | * @tparam T the data series' type | |
88 | * @remarks Default implementation can't update plottables |
|
88 | * @remarks Default implementation can't update plottables | |
89 | */ |
|
89 | */ | |
90 | template <typename T, typename Enabled = void> |
|
90 | template <typename T, typename Enabled = void> | |
91 | struct PlottablesUpdater { |
|
91 | struct PlottablesUpdater { | |
92 | static void setPlotYAxisRange(T &, const SqpRange &, QCustomPlot &) |
|
92 | static void setPlotYAxisRange(T &, const SqpRange &, QCustomPlot &) | |
93 | { |
|
93 | { | |
94 | qCCritical(LOG_VisualizationGraphHelper()) |
|
94 | qCCritical(LOG_VisualizationGraphHelper()) | |
95 | << QObject::tr("Can't set plot y-axis range: unmanaged data series type"); |
|
95 | << QObject::tr("Can't set plot y-axis range: unmanaged data series type"); | |
96 | } |
|
96 | } | |
97 |
|
97 | |||
98 | static void updatePlottables(T &, PlottablesMap &, const SqpRange &, bool) |
|
98 | static void updatePlottables(T &, PlottablesMap &, const SqpRange &, bool) | |
99 | { |
|
99 | { | |
100 | qCCritical(LOG_VisualizationGraphHelper()) |
|
100 | qCCritical(LOG_VisualizationGraphHelper()) | |
101 | << QObject::tr("Can't update plottables: unmanaged data series type"); |
|
101 | << QObject::tr("Can't update plottables: unmanaged data series type"); | |
102 | } |
|
102 | } | |
103 | }; |
|
103 | }; | |
104 |
|
104 | |||
105 | /** |
|
105 | /** | |
106 | * Specialization of PlottablesUpdater for scalars and vectors |
|
106 | * Specialization of PlottablesUpdater for scalars and vectors | |
107 | * @sa ScalarSeries |
|
107 | * @sa ScalarSeries | |
108 | * @sa VectorSeries |
|
108 | * @sa VectorSeries | |
109 | */ |
|
109 | */ | |
110 | template <typename T> |
|
110 | template <typename T> | |
111 | struct PlottablesUpdater<T, |
|
111 | struct PlottablesUpdater<T, | |
112 | typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value |
|
112 | typename std::enable_if_t<std::is_base_of<ScalarSeries, T>::value | |
113 | or std::is_base_of<VectorSeries, T>::value> > { |
|
113 | or std::is_base_of<VectorSeries, T>::value> > { | |
114 | static void setPlotYAxisRange(T &dataSeries, const SqpRange &xAxisRange, QCustomPlot &plot) |
|
114 | static void setPlotYAxisRange(T &dataSeries, const SqpRange &xAxisRange, QCustomPlot &plot) | |
115 | { |
|
115 | { | |
116 | auto minValue = 0., maxValue = 0.; |
|
116 | auto minValue = 0., maxValue = 0.; | |
117 |
|
117 | |||
118 | dataSeries.lockRead(); |
|
118 | dataSeries.lockRead(); | |
119 | auto valuesBounds = dataSeries.valuesBounds(xAxisRange.m_TStart, xAxisRange.m_TEnd); |
|
119 | auto valuesBounds = dataSeries.valuesBounds(xAxisRange.m_TStart, xAxisRange.m_TEnd); | |
120 | auto end = dataSeries.cend(); |
|
120 | auto end = dataSeries.cend(); | |
121 | if (valuesBounds.first != end && valuesBounds.second != end) { |
|
121 | if (valuesBounds.first != end && valuesBounds.second != end) { | |
122 | auto rangeValue = [](const auto &value) { return std::isnan(value) ? 0. : value; }; |
|
122 | auto rangeValue = [](const auto &value) { return std::isnan(value) ? 0. : value; }; | |
123 |
|
123 | |||
124 | minValue = rangeValue(valuesBounds.first->minValue()); |
|
124 | minValue = rangeValue(valuesBounds.first->minValue()); | |
125 | maxValue = rangeValue(valuesBounds.second->maxValue()); |
|
125 | maxValue = rangeValue(valuesBounds.second->maxValue()); | |
126 | } |
|
126 | } | |
127 | dataSeries.unlock(); |
|
127 | dataSeries.unlock(); | |
128 |
|
128 | |||
129 | plot.yAxis->setRange(QCPRange{minValue, maxValue}); |
|
129 | plot.yAxis->setRange(QCPRange{minValue, maxValue}); | |
130 | } |
|
130 | } | |
131 |
|
131 | |||
132 | static void updatePlottables(T &dataSeries, PlottablesMap &plottables, const SqpRange &range, |
|
132 | static void updatePlottables(T &dataSeries, PlottablesMap &plottables, const SqpRange &range, | |
133 | bool rescaleAxes) |
|
133 | bool rescaleAxes) | |
134 | { |
|
134 | { | |
135 |
|
135 | |||
136 | // For each plottable to update, resets its data |
|
136 | // For each plottable to update, resets its data | |
137 | std::map<int, QSharedPointer<SqpDataContainer> > dataContainers{}; |
|
137 | std::map<int, QSharedPointer<SqpDataContainer> > dataContainers{}; | |
138 | for (const auto &plottable : plottables) { |
|
138 | for (const auto &plottable : plottables) { | |
139 | if (auto graph = dynamic_cast<QCPGraph *>(plottable.second)) { |
|
139 | if (auto graph = dynamic_cast<QCPGraph *>(plottable.second)) { | |
140 | auto dataContainer = QSharedPointer<SqpDataContainer>::create(); |
|
140 | auto dataContainer = QSharedPointer<SqpDataContainer>::create(); | |
141 | graph->setData(dataContainer); |
|
141 | graph->setData(dataContainer); | |
142 |
|
142 | |||
143 | dataContainers.insert({plottable.first, dataContainer}); |
|
143 | dataContainers.insert({plottable.first, dataContainer}); | |
144 | } |
|
144 | } | |
145 | } |
|
145 | } | |
146 | dataSeries.lockRead(); |
|
146 | dataSeries.lockRead(); | |
147 |
|
147 | |||
148 | // - Gets the data of the series included in the current range |
|
148 | // - Gets the data of the series included in the current range | |
149 | // - Updates each plottable by adding, for each data item, a point that takes x-axis data |
|
149 | // - Updates each plottable by adding, for each data item, a point that takes x-axis data | |
150 | // and value data. The correct value is retrieved according to the index of the component |
|
150 | // and value data. The correct value is retrieved according to the index of the component | |
151 | auto subDataIts = dataSeries.xAxisRange(range.m_TStart, range.m_TEnd); |
|
151 | auto subDataIts = dataSeries.xAxisRange(range.m_TStart, range.m_TEnd); | |
152 | for (auto it = subDataIts.first; it != subDataIts.second; ++it) { |
|
152 | for (auto it = subDataIts.first; it != subDataIts.second; ++it) { | |
153 | for (const auto &dataContainer : dataContainers) { |
|
153 | for (const auto &dataContainer : dataContainers) { | |
154 | auto componentIndex = dataContainer.first; |
|
154 | auto componentIndex = dataContainer.first; | |
155 | dataContainer.second->appendGraphData( |
|
155 | dataContainer.second->appendGraphData( | |
156 | QCPGraphData(it->x(), it->value(componentIndex))); |
|
156 | QCPGraphData(it->x(), it->value(componentIndex))); | |
157 | } |
|
157 | } | |
158 | } |
|
158 | } | |
159 |
|
159 | |||
160 | dataSeries.unlock(); |
|
160 | dataSeries.unlock(); | |
161 |
|
161 | |||
162 | if (!plottables.empty()) { |
|
162 | if (!plottables.empty()) { | |
163 | auto plot = plottables.begin()->second->parentPlot(); |
|
163 | auto plot = plottables.begin()->second->parentPlot(); | |
164 |
|
164 | |||
165 | if (rescaleAxes) { |
|
165 | if (rescaleAxes) { | |
166 | plot->rescaleAxes(); |
|
166 | plot->rescaleAxes(); | |
167 | } |
|
167 | } | |
168 |
|
||||
169 | plot->replot(); |
|
|||
170 | } |
|
168 | } | |
171 | } |
|
169 | } | |
172 | }; |
|
170 | }; | |
173 |
|
171 | |||
174 | /** |
|
172 | /** | |
175 | * Specialization of PlottablesUpdater for spectrograms |
|
173 | * Specialization of PlottablesUpdater for spectrograms | |
176 | * @sa SpectrogramSeries |
|
174 | * @sa SpectrogramSeries | |
177 | */ |
|
175 | */ | |
178 | template <typename T> |
|
176 | template <typename T> | |
179 | struct PlottablesUpdater<T, |
|
177 | struct PlottablesUpdater<T, | |
180 | typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { |
|
178 | typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > { | |
181 | static void setPlotYAxisRange(T &dataSeries, const SqpRange &xAxisRange, QCustomPlot &plot) |
|
179 | static void setPlotYAxisRange(T &dataSeries, const SqpRange &xAxisRange, QCustomPlot &plot) | |
182 | { |
|
180 | { | |
183 | double min, max; |
|
181 | double min, max; | |
184 | std::tie(min, max) = dataSeries.yBounds(); |
|
182 | std::tie(min, max) = dataSeries.yBounds(); | |
185 |
|
183 | |||
186 | if (!std::isnan(min) && !std::isnan(max)) { |
|
184 | if (!std::isnan(min) && !std::isnan(max)) { | |
187 | plot.yAxis->setRange(QCPRange{min, max}); |
|
185 | plot.yAxis->setRange(QCPRange{min, max}); | |
188 | } |
|
186 | } | |
189 | } |
|
187 | } | |
190 |
|
188 | |||
191 | static void updatePlottables(T &dataSeries, PlottablesMap &plottables, const SqpRange &range, |
|
189 | static void updatePlottables(T &dataSeries, PlottablesMap &plottables, const SqpRange &range, | |
192 | bool rescaleAxes) |
|
190 | bool rescaleAxes) | |
193 | { |
|
191 | { | |
194 | if (plottables.empty()) { |
|
192 | if (plottables.empty()) { | |
195 | qCDebug(LOG_VisualizationGraphHelper()) |
|
193 | qCDebug(LOG_VisualizationGraphHelper()) | |
196 | << QObject::tr("Can't update spectrogram: no colormap has been associated"); |
|
194 | << QObject::tr("Can't update spectrogram: no colormap has been associated"); | |
197 | return; |
|
195 | return; | |
198 | } |
|
196 | } | |
199 |
|
197 | |||
200 | // Gets the colormap to update (normally there is only one colormap) |
|
198 | // Gets the colormap to update (normally there is only one colormap) | |
201 | Q_ASSERT(plottables.size() == 1); |
|
199 | Q_ASSERT(plottables.size() == 1); | |
202 | auto colormap = dynamic_cast<QCPColorMap *>(plottables.at(0)); |
|
200 | auto colormap = dynamic_cast<QCPColorMap *>(plottables.at(0)); | |
203 | Q_ASSERT(colormap != nullptr); |
|
201 | Q_ASSERT(colormap != nullptr); | |
204 |
|
202 | |||
205 | dataSeries.lockRead(); |
|
203 | dataSeries.lockRead(); | |
206 |
|
204 | |||
207 | // Processing spectrogram data for display in QCustomPlot |
|
205 | // Processing spectrogram data for display in QCustomPlot | |
208 | auto its = dataSeries.xAxisRange(range.m_TStart, range.m_TEnd); |
|
206 | auto its = dataSeries.xAxisRange(range.m_TStart, range.m_TEnd); | |
209 |
|
207 | |||
210 | // Computes logarithmic y-axis resolution for the spectrogram |
|
208 | // Computes logarithmic y-axis resolution for the spectrogram | |
211 | auto yData = its.first->y(); |
|
209 | auto yData = its.first->y(); | |
212 | auto yResolution = DataSeriesUtils::resolution(yData.begin(), yData.end(), true); |
|
210 | auto yResolution = DataSeriesUtils::resolution(yData.begin(), yData.end(), true); | |
213 |
|
211 | |||
214 | // Generates mesh for colormap |
|
212 | // Generates mesh for colormap | |
215 | auto mesh = DataSeriesUtils::regularMesh( |
|
213 | auto mesh = DataSeriesUtils::regularMesh( | |
216 | its.first, its.second, DataSeriesUtils::Resolution{dataSeries.xResolution()}, |
|
214 | its.first, its.second, DataSeriesUtils::Resolution{dataSeries.xResolution()}, | |
217 | yResolution); |
|
215 | yResolution); | |
218 |
|
216 | |||
219 | dataSeries.unlock(); |
|
217 | dataSeries.unlock(); | |
220 |
|
218 | |||
221 | colormap->data()->setSize(mesh.m_NbX, mesh.m_NbY); |
|
219 | colormap->data()->setSize(mesh.m_NbX, mesh.m_NbY); | |
222 | if (!mesh.isEmpty()) { |
|
220 | if (!mesh.isEmpty()) { | |
223 | colormap->data()->setRange( |
|
221 | colormap->data()->setRange( | |
224 | QCPRange{mesh.m_XMin, mesh.xMax()}, |
|
222 | QCPRange{mesh.m_XMin, mesh.xMax()}, | |
225 | // y-axis range is converted to linear values |
|
223 | // y-axis range is converted to linear values | |
226 | QCPRange{std::pow(10, mesh.m_YMin), std::pow(10, mesh.yMax())}); |
|
224 | QCPRange{std::pow(10, mesh.m_YMin), std::pow(10, mesh.yMax())}); | |
227 |
|
225 | |||
228 | // Sets values |
|
226 | // Sets values | |
229 | auto index = 0; |
|
227 | auto index = 0; | |
230 | for (auto it = mesh.m_Data.begin(), end = mesh.m_Data.end(); it != end; ++it, ++index) { |
|
228 | for (auto it = mesh.m_Data.begin(), end = mesh.m_Data.end(); it != end; ++it, ++index) { | |
231 | auto xIndex = index % mesh.m_NbX; |
|
229 | auto xIndex = index % mesh.m_NbX; | |
232 | auto yIndex = index / mesh.m_NbX; |
|
230 | auto yIndex = index / mesh.m_NbX; | |
233 |
|
231 | |||
234 | colormap->data()->setCell(xIndex, yIndex, *it); |
|
232 | colormap->data()->setCell(xIndex, yIndex, *it); | |
235 |
|
233 | |||
236 | // Makes the NaN values to be transparent in the colormap |
|
234 | // Makes the NaN values to be transparent in the colormap | |
237 | if (std::isnan(*it)) { |
|
235 | if (std::isnan(*it)) { | |
238 | colormap->data()->setAlpha(xIndex, yIndex, 0); |
|
236 | colormap->data()->setAlpha(xIndex, yIndex, 0); | |
239 | } |
|
237 | } | |
240 | } |
|
238 | } | |
241 | } |
|
239 | } | |
242 |
|
240 | |||
243 | // Rescales axes |
|
241 | // Rescales axes | |
244 | auto plot = colormap->parentPlot(); |
|
242 | auto plot = colormap->parentPlot(); | |
245 |
|
243 | |||
246 | if (rescaleAxes) { |
|
244 | if (rescaleAxes) { | |
247 | plot->rescaleAxes(); |
|
245 | plot->rescaleAxes(); | |
248 | } |
|
246 | } | |
249 |
|
||||
250 | plot->replot(); |
|
|||
251 | } |
|
247 | } | |
252 | }; |
|
248 | }; | |
253 |
|
249 | |||
254 | /** |
|
250 | /** | |
255 | * Helper used to create/update plottables |
|
251 | * Helper used to create/update plottables | |
256 | */ |
|
252 | */ | |
257 | struct IPlottablesHelper { |
|
253 | struct IPlottablesHelper { | |
258 | virtual ~IPlottablesHelper() noexcept = default; |
|
254 | virtual ~IPlottablesHelper() noexcept = default; | |
259 | virtual PlottablesMap create(QCustomPlot &plot) const = 0; |
|
255 | virtual PlottablesMap create(QCustomPlot &plot) const = 0; | |
260 | virtual void setYAxisRange(const SqpRange &xAxisRange, QCustomPlot &plot) const = 0; |
|
256 | virtual void setYAxisRange(const SqpRange &xAxisRange, QCustomPlot &plot) const = 0; | |
261 | virtual void update(PlottablesMap &plottables, const SqpRange &range, |
|
257 | virtual void update(PlottablesMap &plottables, const SqpRange &range, | |
262 | bool rescaleAxes = false) const = 0; |
|
258 | bool rescaleAxes = false) const = 0; | |
263 | }; |
|
259 | }; | |
264 |
|
260 | |||
265 | /** |
|
261 | /** | |
266 | * Default implementation of IPlottablesHelper, which takes data series to create/update plottables |
|
262 | * Default implementation of IPlottablesHelper, which takes data series to create/update plottables | |
267 | * @tparam T the data series' type |
|
263 | * @tparam T the data series' type | |
268 | */ |
|
264 | */ | |
269 | template <typename T> |
|
265 | template <typename T> | |
270 | struct PlottablesHelper : public IPlottablesHelper { |
|
266 | struct PlottablesHelper : public IPlottablesHelper { | |
271 | explicit PlottablesHelper(T &dataSeries) : m_DataSeries{dataSeries} {} |
|
267 | explicit PlottablesHelper(T &dataSeries) : m_DataSeries{dataSeries} {} | |
272 |
|
268 | |||
273 | PlottablesMap create(QCustomPlot &plot) const override |
|
269 | PlottablesMap create(QCustomPlot &plot) const override | |
274 | { |
|
270 | { | |
275 | return PlottablesCreator<T>::createPlottables(m_DataSeries, plot); |
|
271 | return PlottablesCreator<T>::createPlottables(m_DataSeries, plot); | |
276 | } |
|
272 | } | |
277 |
|
273 | |||
278 | void update(PlottablesMap &plottables, const SqpRange &range, bool rescaleAxes) const override |
|
274 | void update(PlottablesMap &plottables, const SqpRange &range, bool rescaleAxes) const override | |
279 | { |
|
275 | { | |
280 | PlottablesUpdater<T>::updatePlottables(m_DataSeries, plottables, range, rescaleAxes); |
|
276 | PlottablesUpdater<T>::updatePlottables(m_DataSeries, plottables, range, rescaleAxes); | |
281 | } |
|
277 | } | |
282 |
|
278 | |||
283 | void setYAxisRange(const SqpRange &xAxisRange, QCustomPlot &plot) const override |
|
279 | void setYAxisRange(const SqpRange &xAxisRange, QCustomPlot &plot) const override | |
284 | { |
|
280 | { | |
285 | return PlottablesUpdater<T>::setPlotYAxisRange(m_DataSeries, xAxisRange, plot); |
|
281 | return PlottablesUpdater<T>::setPlotYAxisRange(m_DataSeries, xAxisRange, plot); | |
286 | } |
|
282 | } | |
287 |
|
283 | |||
288 | T &m_DataSeries; |
|
284 | T &m_DataSeries; | |
289 | }; |
|
285 | }; | |
290 |
|
286 | |||
291 | /// Creates IPlottablesHelper according to a data series |
|
287 | /// Creates IPlottablesHelper according to a data series | |
292 | std::unique_ptr<IPlottablesHelper> createHelper(std::shared_ptr<IDataSeries> dataSeries) noexcept |
|
288 | std::unique_ptr<IPlottablesHelper> createHelper(std::shared_ptr<IDataSeries> dataSeries) noexcept | |
293 | { |
|
289 | { | |
294 | if (auto scalarSeries = std::dynamic_pointer_cast<ScalarSeries>(dataSeries)) { |
|
290 | if (auto scalarSeries = std::dynamic_pointer_cast<ScalarSeries>(dataSeries)) { | |
295 | return std::make_unique<PlottablesHelper<ScalarSeries> >(*scalarSeries); |
|
291 | return std::make_unique<PlottablesHelper<ScalarSeries> >(*scalarSeries); | |
296 | } |
|
292 | } | |
297 | else if (auto spectrogramSeries = std::dynamic_pointer_cast<SpectrogramSeries>(dataSeries)) { |
|
293 | else if (auto spectrogramSeries = std::dynamic_pointer_cast<SpectrogramSeries>(dataSeries)) { | |
298 | return std::make_unique<PlottablesHelper<SpectrogramSeries> >(*spectrogramSeries); |
|
294 | return std::make_unique<PlottablesHelper<SpectrogramSeries> >(*spectrogramSeries); | |
299 | } |
|
295 | } | |
300 | else if (auto vectorSeries = std::dynamic_pointer_cast<VectorSeries>(dataSeries)) { |
|
296 | else if (auto vectorSeries = std::dynamic_pointer_cast<VectorSeries>(dataSeries)) { | |
301 | return std::make_unique<PlottablesHelper<VectorSeries> >(*vectorSeries); |
|
297 | return std::make_unique<PlottablesHelper<VectorSeries> >(*vectorSeries); | |
302 | } |
|
298 | } | |
303 | else { |
|
299 | else { | |
304 | return std::make_unique<PlottablesHelper<IDataSeries> >(*dataSeries); |
|
300 | return std::make_unique<PlottablesHelper<IDataSeries> >(*dataSeries); | |
305 | } |
|
301 | } | |
306 | } |
|
302 | } | |
307 |
|
303 | |||
308 | } // namespace |
|
304 | } // namespace | |
309 |
|
305 | |||
310 | PlottablesMap VisualizationGraphHelper::create(std::shared_ptr<Variable> variable, |
|
306 | PlottablesMap VisualizationGraphHelper::create(std::shared_ptr<Variable> variable, | |
311 | QCustomPlot &plot) noexcept |
|
307 | QCustomPlot &plot) noexcept | |
312 | { |
|
308 | { | |
313 | if (variable) { |
|
309 | if (variable) { | |
314 | auto helper = createHelper(variable->dataSeries()); |
|
310 | auto helper = createHelper(variable->dataSeries()); | |
315 | auto plottables = helper->create(plot); |
|
311 | auto plottables = helper->create(plot); | |
316 | return plottables; |
|
312 | return plottables; | |
317 | } |
|
313 | } | |
318 | else { |
|
314 | else { | |
319 | qCDebug(LOG_VisualizationGraphHelper()) |
|
315 | qCDebug(LOG_VisualizationGraphHelper()) | |
320 | << QObject::tr("Can't create graph plottables : the variable is null"); |
|
316 | << QObject::tr("Can't create graph plottables : the variable is null"); | |
321 | return PlottablesMap{}; |
|
317 | return PlottablesMap{}; | |
322 | } |
|
318 | } | |
323 | } |
|
319 | } | |
324 |
|
320 | |||
325 | void VisualizationGraphHelper::setYAxisRange(std::shared_ptr<Variable> variable, |
|
321 | void VisualizationGraphHelper::setYAxisRange(std::shared_ptr<Variable> variable, | |
326 | QCustomPlot &plot) noexcept |
|
322 | QCustomPlot &plot) noexcept | |
327 | { |
|
323 | { | |
328 | if (variable) { |
|
324 | if (variable) { | |
329 | auto helper = createHelper(variable->dataSeries()); |
|
325 | auto helper = createHelper(variable->dataSeries()); | |
330 | helper->setYAxisRange(variable->range(), plot); |
|
326 | helper->setYAxisRange(variable->range(), plot); | |
331 | } |
|
327 | } | |
332 | else { |
|
328 | else { | |
333 | qCDebug(LOG_VisualizationGraphHelper()) |
|
329 | qCDebug(LOG_VisualizationGraphHelper()) | |
334 | << QObject::tr("Can't set y-axis range of plot: the variable is null"); |
|
330 | << QObject::tr("Can't set y-axis range of plot: the variable is null"); | |
335 | } |
|
331 | } | |
336 | } |
|
332 | } | |
337 |
|
333 | |||
338 | void VisualizationGraphHelper::updateData(PlottablesMap &plottables, |
|
334 | void VisualizationGraphHelper::updateData(PlottablesMap &plottables, | |
339 | std::shared_ptr<IDataSeries> dataSeries, |
|
335 | std::shared_ptr<IDataSeries> dataSeries, | |
340 | const SqpRange &dateTime) |
|
336 | const SqpRange &dateTime) | |
341 | { |
|
337 | { | |
342 | auto helper = createHelper(dataSeries); |
|
338 | auto helper = createHelper(dataSeries); | |
343 | helper->update(plottables, dateTime); |
|
339 | helper->update(plottables, dateTime); | |
344 | } |
|
340 | } |
@@ -1,245 +1,331 | |||||
1 | #include "Visualization/VisualizationGraphRenderingDelegate.h" |
|
1 | #include "Visualization/VisualizationGraphRenderingDelegate.h" | |
2 | #include "Visualization/AxisRenderingUtils.h" |
|
2 | #include "Visualization/AxisRenderingUtils.h" | |
|
3 | #include "Visualization/ColorScaleEditor.h" | |||
3 | #include "Visualization/PlottablesRenderingUtils.h" |
|
4 | #include "Visualization/PlottablesRenderingUtils.h" | |
|
5 | #include "Visualization/SqpColorScale.h" | |||
4 | #include "Visualization/VisualizationGraphWidget.h" |
|
6 | #include "Visualization/VisualizationGraphWidget.h" | |
5 | #include "Visualization/qcustomplot.h" |
|
7 | #include "Visualization/qcustomplot.h" | |
6 |
|
8 | |||
7 | #include <Common/DateUtils.h> |
|
9 | #include <Common/DateUtils.h> | |
8 |
|
10 | |||
9 | #include <Data/IDataSeries.h> |
|
11 | #include <Data/IDataSeries.h> | |
10 |
|
12 | |||
11 | #include <SqpApplication.h> |
|
13 | #include <SqpApplication.h> | |
12 |
|
14 | |||
13 | namespace { |
|
15 | namespace { | |
14 |
|
16 | |||
15 | /// Name of the axes layer in QCustomPlot |
|
17 | /// Name of the axes layer in QCustomPlot | |
16 | const auto AXES_LAYER = QStringLiteral("axes"); |
|
18 | const auto AXES_LAYER = QStringLiteral("axes"); | |
17 |
|
19 | |||
18 | /// Icon used to show x-axis properties |
|
20 | /// Icon used to show x-axis properties | |
19 | const auto HIDE_AXIS_ICON_PATH = QStringLiteral(":/icones/down.png"); |
|
21 | const auto HIDE_AXIS_ICON_PATH = QStringLiteral(":/icones/down.png"); | |
20 |
|
22 | |||
21 | /// Name of the overlay layer in QCustomPlot |
|
23 | /// Name of the overlay layer in QCustomPlot | |
22 | const auto OVERLAY_LAYER = QStringLiteral("overlay"); |
|
24 | const auto OVERLAY_LAYER = QStringLiteral("overlay"); | |
23 |
|
25 | |||
24 | /// Pixmap used to show x-axis properties |
|
26 | /// Pixmap used to show x-axis properties | |
25 | const auto SHOW_AXIS_ICON_PATH = QStringLiteral(":/icones/up.png"); |
|
27 | const auto SHOW_AXIS_ICON_PATH = QStringLiteral(":/icones/up.png"); | |
26 |
|
28 | |||
27 | const auto TOOLTIP_FORMAT = QStringLiteral("key: %1\nvalue: %2"); |
|
29 | /// Tooltip format for graphs | |
|
30 | const auto GRAPH_TOOLTIP_FORMAT = QStringLiteral("key: %1\nvalue: %2"); | |||
|
31 | ||||
|
32 | /// Tooltip format for colormaps | |||
|
33 | const auto COLORMAP_TOOLTIP_FORMAT = QStringLiteral("x: %1\ny: %2\nvalue: %3"); | |||
28 |
|
34 | |||
29 | /// Offset used to shift the tooltip of the mouse |
|
35 | /// Offset used to shift the tooltip of the mouse | |
30 | const auto TOOLTIP_OFFSET = QPoint{20, 20}; |
|
36 | const auto TOOLTIP_OFFSET = QPoint{20, 20}; | |
31 |
|
37 | |||
32 | /// Tooltip display rectangle (the tooltip is hidden when the mouse leaves this rectangle) |
|
38 | /// Tooltip display rectangle (the tooltip is hidden when the mouse leaves this rectangle) | |
33 | const auto TOOLTIP_RECT = QRect{10, 10, 10, 10}; |
|
39 | const auto TOOLTIP_RECT = QRect{10, 10, 10, 10}; | |
34 |
|
40 | |||
35 | /// Timeout after which the tooltip is displayed |
|
41 | /// Timeout after which the tooltip is displayed | |
36 | const auto TOOLTIP_TIMEOUT = 500; |
|
42 | const auto TOOLTIP_TIMEOUT = 500; | |
37 |
|
43 | |||
38 | void initPointTracerStyle(QCPItemTracer &tracer) noexcept |
|
44 | void initPointTracerStyle(QCPItemTracer &tracer) noexcept | |
39 | { |
|
45 | { | |
40 | tracer.setInterpolating(false); |
|
46 | tracer.setInterpolating(false); | |
41 | tracer.setStyle(QCPItemTracer::tsCircle); |
|
47 | tracer.setStyle(QCPItemTracer::tsCircle); | |
42 | tracer.setSize(3); |
|
48 | tracer.setSize(3); | |
43 | tracer.setPen(QPen(Qt::black)); |
|
49 | tracer.setPen(QPen(Qt::black)); | |
44 | tracer.setBrush(Qt::black); |
|
50 | tracer.setBrush(Qt::black); | |
45 | } |
|
51 | } | |
46 |
|
52 | |||
47 | QPixmap pixmap(const QString &iconPath) noexcept |
|
53 | QPixmap pixmap(const QString &iconPath) noexcept | |
48 | { |
|
54 | { | |
49 | return QIcon{iconPath}.pixmap(QSize{16, 16}); |
|
55 | return QIcon{iconPath}.pixmap(QSize{16, 16}); | |
50 | } |
|
56 | } | |
51 |
|
57 | |||
52 | void initClosePixmapStyle(QCPItemPixmap &pixmap) noexcept |
|
58 | void initClosePixmapStyle(QCPItemPixmap &pixmap) noexcept | |
53 | { |
|
59 | { | |
54 | // Icon |
|
60 | // Icon | |
55 | pixmap.setPixmap( |
|
61 | pixmap.setPixmap( | |
56 | sqpApp->style()->standardIcon(QStyle::SP_TitleBarCloseButton).pixmap(QSize{16, 16})); |
|
62 | sqpApp->style()->standardIcon(QStyle::SP_TitleBarCloseButton).pixmap(QSize{16, 16})); | |
57 |
|
63 | |||
58 | // Position |
|
64 | // Position | |
59 | pixmap.topLeft->setType(QCPItemPosition::ptAxisRectRatio); |
|
65 | pixmap.topLeft->setType(QCPItemPosition::ptAxisRectRatio); | |
60 | pixmap.topLeft->setCoords(1, 0); |
|
66 | pixmap.topLeft->setCoords(1, 0); | |
61 | pixmap.setClipToAxisRect(false); |
|
67 | pixmap.setClipToAxisRect(false); | |
62 |
|
68 | |||
63 | // Can be selected |
|
69 | // Can be selected | |
64 | pixmap.setSelectable(true); |
|
70 | pixmap.setSelectable(true); | |
65 | } |
|
71 | } | |
66 |
|
72 | |||
67 | void initXAxisPixmapStyle(QCPItemPixmap &itemPixmap) noexcept |
|
73 | void initXAxisPixmapStyle(QCPItemPixmap &itemPixmap) noexcept | |
68 | { |
|
74 | { | |
69 | // Icon |
|
75 | // Icon | |
70 | itemPixmap.setPixmap(pixmap(HIDE_AXIS_ICON_PATH)); |
|
76 | itemPixmap.setPixmap(pixmap(HIDE_AXIS_ICON_PATH)); | |
71 |
|
77 | |||
72 | // Position |
|
78 | // Position | |
73 | itemPixmap.topLeft->setType(QCPItemPosition::ptAxisRectRatio); |
|
79 | itemPixmap.topLeft->setType(QCPItemPosition::ptAxisRectRatio); | |
74 | itemPixmap.topLeft->setCoords(0, 1); |
|
80 | itemPixmap.topLeft->setCoords(0, 1); | |
75 | itemPixmap.setClipToAxisRect(false); |
|
81 | itemPixmap.setClipToAxisRect(false); | |
76 |
|
82 | |||
77 | // Can be selected |
|
83 | // Can be selected | |
78 | itemPixmap.setSelectable(true); |
|
84 | itemPixmap.setSelectable(true); | |
79 | } |
|
85 | } | |
80 |
|
86 | |||
81 | void initTitleTextStyle(QCPItemText &text) noexcept |
|
87 | void initTitleTextStyle(QCPItemText &text) noexcept | |
82 | { |
|
88 | { | |
83 | // Font and background styles |
|
89 | // Font and background styles | |
84 | text.setColor(Qt::gray); |
|
90 | text.setColor(Qt::gray); | |
85 | text.setBrush(Qt::white); |
|
91 | text.setBrush(Qt::white); | |
86 |
|
92 | |||
87 | // Position |
|
93 | // Position | |
88 | text.setPositionAlignment(Qt::AlignTop | Qt::AlignLeft); |
|
94 | text.setPositionAlignment(Qt::AlignTop | Qt::AlignLeft); | |
89 | text.position->setType(QCPItemPosition::ptAxisRectRatio); |
|
95 | text.position->setType(QCPItemPosition::ptAxisRectRatio); | |
90 | text.position->setCoords(0.5, 0); |
|
96 | text.position->setCoords(0.5, 0); | |
91 | } |
|
97 | } | |
92 |
|
98 | |||
|
99 | /** | |||
|
100 | * Returns the cell index (x or y) of a colormap according to the coordinate passed in parameter. | |||
|
101 | * This method handles the fact that a colormap axis can be logarithmic or linear. | |||
|
102 | * @param colormap the colormap for which to calculate the index | |||
|
103 | * @param coord the coord to convert to cell index | |||
|
104 | * @param xCoord calculates the x index if true, calculates y index if false | |||
|
105 | * @return the cell index | |||
|
106 | */ | |||
|
107 | int colorMapCellIndex(const QCPColorMap &colormap, double coord, bool xCoord) | |||
|
108 | { | |||
|
109 | // Determines the axis of the colormap according to xCoord, and whether it is logarithmic or not | |||
|
110 | auto isLogarithmic = (xCoord ? colormap.keyAxis() : colormap.valueAxis())->scaleType() | |||
|
111 | == QCPAxis::stLogarithmic; | |||
|
112 | ||||
|
113 | if (isLogarithmic) { | |||
|
114 | // For a logarithmic axis we can't use the conversion method of colormap, so we calculate | |||
|
115 | // the index manually based on the position of the coordinate on the axis | |||
|
116 | ||||
|
117 | // Gets the axis range and the number of values between range bounds to calculate the step | |||
|
118 | // between each value of the range | |||
|
119 | auto range = xCoord ? colormap.data()->keyRange() : colormap.data()->valueRange(); | |||
|
120 | auto nbValues = (xCoord ? colormap.data()->keySize() : colormap.data()->valueSize()) - 1; | |||
|
121 | auto valueStep | |||
|
122 | = (std::log10(range.upper) - std::log10(range.lower)) / static_cast<double>(nbValues); | |||
|
123 | ||||
|
124 | // According to the coord position, calculates the closest index in the range | |||
|
125 | return std::round((std::log10(coord) - std::log10(range.lower)) / valueStep); | |||
|
126 | } | |||
|
127 | else { | |||
|
128 | // For a linear axis, we use the conversion method of colormap | |||
|
129 | int index; | |||
|
130 | if (xCoord) { | |||
|
131 | colormap.data()->coordToCell(coord, 0., &index, nullptr); | |||
|
132 | } | |||
|
133 | else { | |||
|
134 | colormap.data()->coordToCell(0., coord, nullptr, &index); | |||
|
135 | } | |||
|
136 | ||||
|
137 | return index; | |||
|
138 | } | |||
|
139 | } | |||
|
140 | ||||
93 | } // namespace |
|
141 | } // namespace | |
94 |
|
142 | |||
95 | struct VisualizationGraphRenderingDelegate::VisualizationGraphRenderingDelegatePrivate { |
|
143 | struct VisualizationGraphRenderingDelegate::VisualizationGraphRenderingDelegatePrivate { | |
96 | explicit VisualizationGraphRenderingDelegatePrivate(VisualizationGraphWidget &graphWidget) |
|
144 | explicit VisualizationGraphRenderingDelegatePrivate(VisualizationGraphWidget &graphWidget) | |
97 | : m_Plot{graphWidget.plot()}, |
|
145 | : m_Plot{graphWidget.plot()}, | |
98 | m_PointTracer{new QCPItemTracer{&m_Plot}}, |
|
146 | m_PointTracer{new QCPItemTracer{&m_Plot}}, | |
99 | m_TracerTimer{}, |
|
147 | m_TracerTimer{}, | |
100 | m_ClosePixmap{new QCPItemPixmap{&m_Plot}}, |
|
148 | m_ClosePixmap{new QCPItemPixmap{&m_Plot}}, | |
101 | m_TitleText{new QCPItemText{&m_Plot}}, |
|
149 | m_TitleText{new QCPItemText{&m_Plot}}, | |
102 | m_XAxisPixmap{new QCPItemPixmap{&m_Plot}}, |
|
150 | m_XAxisPixmap{new QCPItemPixmap{&m_Plot}}, | |
103 | m_ShowXAxis{true}, |
|
151 | m_ShowXAxis{true}, | |
104 | m_XAxisLabel{}, |
|
152 | m_XAxisLabel{}, | |
105 |
m_ColorScale{ |
|
153 | m_ColorScale{SqpColorScale{m_Plot}} | |
106 | { |
|
154 | { | |
107 | initPointTracerStyle(*m_PointTracer); |
|
155 | initPointTracerStyle(*m_PointTracer); | |
108 |
|
156 | |||
109 | m_TracerTimer.setInterval(TOOLTIP_TIMEOUT); |
|
157 | m_TracerTimer.setInterval(TOOLTIP_TIMEOUT); | |
110 | m_TracerTimer.setSingleShot(true); |
|
158 | m_TracerTimer.setSingleShot(true); | |
111 |
|
159 | |||
112 | // Inits "close button" in plot overlay |
|
160 | // Inits "close button" in plot overlay | |
113 | m_ClosePixmap->setLayer(OVERLAY_LAYER); |
|
161 | m_ClosePixmap->setLayer(OVERLAY_LAYER); | |
114 | initClosePixmapStyle(*m_ClosePixmap); |
|
162 | initClosePixmapStyle(*m_ClosePixmap); | |
115 |
|
163 | |||
116 | // Connects pixmap selection to graph widget closing |
|
164 | // Connects pixmap selection to graph widget closing | |
117 | QObject::connect(m_ClosePixmap, &QCPItemPixmap::selectionChanged, |
|
165 | QObject::connect(m_ClosePixmap, &QCPItemPixmap::selectionChanged, | |
118 | [&graphWidget](bool selected) { |
|
166 | [&graphWidget](bool selected) { | |
119 | if (selected) { |
|
167 | if (selected) { | |
120 | graphWidget.close(); |
|
168 | graphWidget.close(); | |
121 | } |
|
169 | } | |
122 | }); |
|
170 | }); | |
123 |
|
171 | |||
124 | // Inits graph name in plot overlay |
|
172 | // Inits graph name in plot overlay | |
125 | m_TitleText->setLayer(OVERLAY_LAYER); |
|
173 | m_TitleText->setLayer(OVERLAY_LAYER); | |
126 | m_TitleText->setText(graphWidget.name()); |
|
174 | m_TitleText->setText(graphWidget.name()); | |
127 | initTitleTextStyle(*m_TitleText); |
|
175 | initTitleTextStyle(*m_TitleText); | |
128 |
|
176 | |||
129 | // Inits "show x-axis button" in plot overlay |
|
177 | // Inits "show x-axis button" in plot overlay | |
130 | m_XAxisPixmap->setLayer(OVERLAY_LAYER); |
|
178 | m_XAxisPixmap->setLayer(OVERLAY_LAYER); | |
131 | initXAxisPixmapStyle(*m_XAxisPixmap); |
|
179 | initXAxisPixmapStyle(*m_XAxisPixmap); | |
132 |
|
180 | |||
133 | // Connects pixmap selection to graph x-axis showing/hiding |
|
181 | // Connects pixmap selection to graph x-axis showing/hiding | |
134 | QObject::connect(m_XAxisPixmap, &QCPItemPixmap::selectionChanged, [this]() { |
|
182 | QObject::connect(m_XAxisPixmap, &QCPItemPixmap::selectionChanged, [this]() { | |
135 | if (m_XAxisPixmap->selected()) { |
|
183 | if (m_XAxisPixmap->selected()) { | |
136 | // Changes the selection state and refreshes the x-axis |
|
184 | // Changes the selection state and refreshes the x-axis | |
137 | m_ShowXAxis = !m_ShowXAxis; |
|
185 | m_ShowXAxis = !m_ShowXAxis; | |
138 | updateXAxisState(); |
|
186 | updateXAxisState(); | |
139 | m_Plot.layer(AXES_LAYER)->replot(); |
|
187 | m_Plot.layer(AXES_LAYER)->replot(); | |
140 |
|
188 | |||
141 | // Deselects the x-axis pixmap and updates icon |
|
189 | // Deselects the x-axis pixmap and updates icon | |
142 | m_XAxisPixmap->setSelected(false); |
|
190 | m_XAxisPixmap->setSelected(false); | |
143 | m_XAxisPixmap->setPixmap( |
|
191 | m_XAxisPixmap->setPixmap( | |
144 | pixmap(m_ShowXAxis ? HIDE_AXIS_ICON_PATH : SHOW_AXIS_ICON_PATH)); |
|
192 | pixmap(m_ShowXAxis ? HIDE_AXIS_ICON_PATH : SHOW_AXIS_ICON_PATH)); | |
145 | m_Plot.layer(OVERLAY_LAYER)->replot(); |
|
193 | m_Plot.layer(OVERLAY_LAYER)->replot(); | |
146 | } |
|
194 | } | |
147 | }); |
|
195 | }); | |
148 | } |
|
196 | } | |
149 |
|
197 | |||
150 | /// Updates state of x-axis according to the current selection of x-axis pixmap |
|
198 | /// Updates state of x-axis according to the current selection of x-axis pixmap | |
151 | /// @remarks the method doesn't call plot refresh |
|
199 | /// @remarks the method doesn't call plot refresh | |
152 | void updateXAxisState() noexcept |
|
200 | void updateXAxisState() noexcept | |
153 | { |
|
201 | { | |
154 | m_Plot.xAxis->setTickLabels(m_ShowXAxis); |
|
202 | m_Plot.xAxis->setTickLabels(m_ShowXAxis); | |
155 | m_Plot.xAxis->setLabel(m_ShowXAxis ? m_XAxisLabel : QString{}); |
|
203 | m_Plot.xAxis->setLabel(m_ShowXAxis ? m_XAxisLabel : QString{}); | |
156 | } |
|
204 | } | |
157 |
|
205 | |||
158 | QCustomPlot &m_Plot; |
|
206 | QCustomPlot &m_Plot; | |
159 | QCPItemTracer *m_PointTracer; |
|
207 | QCPItemTracer *m_PointTracer; | |
160 | QTimer m_TracerTimer; |
|
208 | QTimer m_TracerTimer; | |
161 | QCPItemPixmap *m_ClosePixmap; /// Graph's close button |
|
209 | QCPItemPixmap *m_ClosePixmap; /// Graph's close button | |
162 | QCPItemText *m_TitleText; /// Graph's title |
|
210 | QCPItemText *m_TitleText; /// Graph's title | |
163 | QCPItemPixmap *m_XAxisPixmap; |
|
211 | QCPItemPixmap *m_XAxisPixmap; | |
164 | bool m_ShowXAxis; /// X-axis properties are shown or hidden |
|
212 | bool m_ShowXAxis; /// X-axis properties are shown or hidden | |
165 | QString m_XAxisLabel; |
|
213 | QString m_XAxisLabel; | |
166 |
|
|
214 | SqpColorScale m_ColorScale; /// Color scale used for some types of graphs (as spectrograms) | |
167 | }; |
|
215 | }; | |
168 |
|
216 | |||
169 | VisualizationGraphRenderingDelegate::VisualizationGraphRenderingDelegate( |
|
217 | VisualizationGraphRenderingDelegate::VisualizationGraphRenderingDelegate( | |
170 | VisualizationGraphWidget &graphWidget) |
|
218 | VisualizationGraphWidget &graphWidget) | |
171 | : impl{spimpl::make_unique_impl<VisualizationGraphRenderingDelegatePrivate>(graphWidget)} |
|
219 | : impl{spimpl::make_unique_impl<VisualizationGraphRenderingDelegatePrivate>(graphWidget)} | |
172 | { |
|
220 | { | |
173 | } |
|
221 | } | |
174 |
|
222 | |||
|
223 | void VisualizationGraphRenderingDelegate::onMouseDoubleClick(QMouseEvent *event) noexcept | |||
|
224 | { | |||
|
225 | // Opens color scale editor if color scale is double clicked | |||
|
226 | auto colorScale = dynamic_cast<QCPColorScale *>(impl->m_Plot.layoutElementAt(event->pos())); | |||
|
227 | if (impl->m_ColorScale.m_Scale == colorScale) { | |||
|
228 | if (ColorScaleEditor{impl->m_ColorScale}.exec() == QDialog::Accepted) { | |||
|
229 | impl->m_Plot.replot(); | |||
|
230 | } | |||
|
231 | } | |||
|
232 | } | |||
|
233 | ||||
175 | void VisualizationGraphRenderingDelegate::onMouseMove(QMouseEvent *event) noexcept |
|
234 | void VisualizationGraphRenderingDelegate::onMouseMove(QMouseEvent *event) noexcept | |
176 | { |
|
235 | { | |
177 | // Cancels pending refresh |
|
236 | // Cancels pending refresh | |
178 | impl->m_TracerTimer.disconnect(); |
|
237 | impl->m_TracerTimer.disconnect(); | |
179 |
|
238 | |||
180 | // Reinits tracers |
|
239 | // Reinits tracers | |
181 | impl->m_PointTracer->setGraph(nullptr); |
|
240 | impl->m_PointTracer->setGraph(nullptr); | |
182 | impl->m_PointTracer->setVisible(false); |
|
241 | impl->m_PointTracer->setVisible(false); | |
183 | impl->m_Plot.replot(); |
|
242 | impl->m_Plot.replot(); | |
184 |
|
243 | |||
|
244 | QString tooltip{}; | |||
|
245 | ||||
185 | // Gets the graph under the mouse position |
|
246 | // Gets the graph under the mouse position | |
186 | auto eventPos = event->pos(); |
|
247 | auto eventPos = event->pos(); | |
187 | if (auto graph = qobject_cast<QCPGraph *>(impl->m_Plot.plottableAt(eventPos))) { |
|
248 | if (auto graph = qobject_cast<QCPGraph *>(impl->m_Plot.plottableAt(eventPos))) { | |
188 | auto mouseKey = graph->keyAxis()->pixelToCoord(eventPos.x()); |
|
249 | auto mouseKey = graph->keyAxis()->pixelToCoord(eventPos.x()); | |
189 | auto graphData = graph->data(); |
|
250 | auto graphData = graph->data(); | |
190 |
|
251 | |||
191 | // Gets the closest data point to the mouse |
|
252 | // Gets the closest data point to the mouse | |
192 | auto graphDataIt = graphData->findBegin(mouseKey); |
|
253 | auto graphDataIt = graphData->findBegin(mouseKey); | |
193 | if (graphDataIt != graphData->constEnd()) { |
|
254 | if (graphDataIt != graphData->constEnd()) { | |
|
255 | // Sets tooltip | |||
194 | auto key = formatValue(graphDataIt->key, *graph->keyAxis()); |
|
256 | auto key = formatValue(graphDataIt->key, *graph->keyAxis()); | |
195 | auto value = formatValue(graphDataIt->value, *graph->valueAxis()); |
|
257 | auto value = formatValue(graphDataIt->value, *graph->valueAxis()); | |
|
258 | tooltip = GRAPH_TOOLTIP_FORMAT.arg(key, value); | |||
196 |
|
259 | |||
197 | // Displays point tracer |
|
260 | // Displays point tracer | |
198 | impl->m_PointTracer->setGraph(graph); |
|
261 | impl->m_PointTracer->setGraph(graph); | |
199 | impl->m_PointTracer->setGraphKey(graphDataIt->key); |
|
262 | impl->m_PointTracer->setGraphKey(graphDataIt->key); | |
200 | impl->m_PointTracer->setLayer( |
|
263 | impl->m_PointTracer->setLayer( | |
201 | impl->m_Plot.layer("main")); // Tracer is set on top of the plot's main layer |
|
264 | impl->m_Plot.layer("main")); // Tracer is set on top of the plot's main layer | |
202 | impl->m_PointTracer->setVisible(true); |
|
265 | impl->m_PointTracer->setVisible(true); | |
203 | impl->m_Plot.replot(); |
|
266 | impl->m_Plot.replot(); | |
|
267 | } | |||
|
268 | } | |||
|
269 | else if (auto colorMap = qobject_cast<QCPColorMap *>(impl->m_Plot.plottableAt(eventPos))) { | |||
|
270 | // Gets x and y coords | |||
|
271 | auto x = colorMap->keyAxis()->pixelToCoord(eventPos.x()); | |||
|
272 | auto y = colorMap->valueAxis()->pixelToCoord(eventPos.y()); | |||
|
273 | ||||
|
274 | // Calculates x and y cell indexes, and retrieves the underlying value | |||
|
275 | auto xCellIndex = colorMapCellIndex(*colorMap, x, true); | |||
|
276 | auto yCellIndex = colorMapCellIndex(*colorMap, y, false); | |||
|
277 | auto value = colorMap->data()->cell(xCellIndex, yCellIndex); | |||
|
278 | ||||
|
279 | // Sets tooltips | |||
|
280 | tooltip = COLORMAP_TOOLTIP_FORMAT.arg(formatValue(x, *colorMap->keyAxis()), | |||
|
281 | formatValue(y, *colorMap->valueAxis()), | |||
|
282 | formatValue(value, *colorMap->colorScale()->axis())); | |||
|
283 | } | |||
204 |
|
284 | |||
|
285 | if (!tooltip.isEmpty()) { | |||
205 |
|
|
286 | // Starts timer to show tooltip after timeout | |
206 |
|
|
287 | auto showTooltip = [tooltip, eventPos, this]() { | |
207 | { |
|
|||
208 |
|
|
288 | QToolTip::showText(impl->m_Plot.mapToGlobal(eventPos) + TOOLTIP_OFFSET, tooltip, | |
209 |
|
|
289 | &impl->m_Plot, TOOLTIP_RECT); | |
210 |
|
|
290 | }; | |
211 |
|
291 | |||
212 |
|
|
292 | QObject::connect(&impl->m_TracerTimer, &QTimer::timeout, showTooltip); | |
213 |
|
|
293 | impl->m_TracerTimer.start(); | |
214 |
|
|
294 | } | |
215 | } |
|
295 | } | |
|
296 | ||||
|
297 | void VisualizationGraphRenderingDelegate::onPlotUpdated() noexcept | |||
|
298 | { | |||
|
299 | // Updates color scale bounds | |||
|
300 | impl->m_ColorScale.updateDataRange(); | |||
|
301 | impl->m_Plot.replot(); | |||
216 | } |
|
302 | } | |
217 |
|
303 | |||
218 | void VisualizationGraphRenderingDelegate::setAxesProperties( |
|
304 | void VisualizationGraphRenderingDelegate::setAxesProperties( | |
219 | std::shared_ptr<IDataSeries> dataSeries) noexcept |
|
305 | std::shared_ptr<IDataSeries> dataSeries) noexcept | |
220 | { |
|
306 | { | |
221 | // Stores x-axis label to be able to retrieve it when x-axis pixmap is unselected |
|
307 | // Stores x-axis label to be able to retrieve it when x-axis pixmap is unselected | |
222 | impl->m_XAxisLabel = dataSeries->xAxisUnit().m_Name; |
|
308 | impl->m_XAxisLabel = dataSeries->xAxisUnit().m_Name; | |
223 |
|
309 | |||
224 | auto axisHelper = IAxisHelperFactory::create(dataSeries); |
|
310 | auto axisHelper = IAxisHelperFactory::create(dataSeries); | |
225 |
axisHelper->setProperties(impl->m_Plot, |
|
311 | axisHelper->setProperties(impl->m_Plot, impl->m_ColorScale); | |
226 |
|
312 | |||
227 | // Updates x-axis state |
|
313 | // Updates x-axis state | |
228 | impl->updateXAxisState(); |
|
314 | impl->updateXAxisState(); | |
229 |
|
315 | |||
230 | impl->m_Plot.layer(AXES_LAYER)->replot(); |
|
316 | impl->m_Plot.layer(AXES_LAYER)->replot(); | |
231 | } |
|
317 | } | |
232 |
|
318 | |||
233 | void VisualizationGraphRenderingDelegate::setPlottablesProperties( |
|
319 | void VisualizationGraphRenderingDelegate::setPlottablesProperties( | |
234 | std::shared_ptr<IDataSeries> dataSeries, PlottablesMap &plottables) noexcept |
|
320 | std::shared_ptr<IDataSeries> dataSeries, PlottablesMap &plottables) noexcept | |
235 | { |
|
321 | { | |
236 | auto plottablesHelper = IPlottablesHelperFactory::create(dataSeries); |
|
322 | auto plottablesHelper = IPlottablesHelperFactory::create(dataSeries); | |
237 | plottablesHelper->setProperties(plottables); |
|
323 | plottablesHelper->setProperties(plottables); | |
238 | } |
|
324 | } | |
239 |
|
325 | |||
240 | void VisualizationGraphRenderingDelegate::showGraphOverlay(bool show) noexcept |
|
326 | void VisualizationGraphRenderingDelegate::showGraphOverlay(bool show) noexcept | |
241 | { |
|
327 | { | |
242 | auto overlay = impl->m_Plot.layer(OVERLAY_LAYER); |
|
328 | auto overlay = impl->m_Plot.layer(OVERLAY_LAYER); | |
243 | overlay->setVisible(show); |
|
329 | overlay->setVisible(show); | |
244 | overlay->replot(); |
|
330 | overlay->replot(); | |
245 | } |
|
331 | } |
@@ -1,597 +1,621 | |||||
1 | #include "Visualization/VisualizationGraphWidget.h" |
|
1 | #include "Visualization/VisualizationGraphWidget.h" | |
2 | #include "Visualization/IVisualizationWidgetVisitor.h" |
|
2 | #include "Visualization/IVisualizationWidgetVisitor.h" | |
3 | #include "Visualization/VisualizationCursorItem.h" |
|
3 | #include "Visualization/VisualizationCursorItem.h" | |
4 | #include "Visualization/VisualizationDefs.h" |
|
4 | #include "Visualization/VisualizationDefs.h" | |
5 | #include "Visualization/VisualizationGraphHelper.h" |
|
5 | #include "Visualization/VisualizationGraphHelper.h" | |
6 | #include "Visualization/VisualizationGraphRenderingDelegate.h" |
|
6 | #include "Visualization/VisualizationGraphRenderingDelegate.h" | |
7 | #include "Visualization/VisualizationZoneWidget.h" |
|
7 | #include "Visualization/VisualizationZoneWidget.h" | |
8 | #include "ui_VisualizationGraphWidget.h" |
|
8 | #include "ui_VisualizationGraphWidget.h" | |
9 |
|
9 | |||
10 | #include <Common/MimeTypesDef.h> |
|
10 | #include <Common/MimeTypesDef.h> | |
11 | #include <Data/ArrayData.h> |
|
11 | #include <Data/ArrayData.h> | |
12 | #include <Data/IDataSeries.h> |
|
12 | #include <Data/IDataSeries.h> | |
|
13 | #include <Data/SpectrogramSeries.h> | |||
13 | #include <DragAndDrop/DragDropHelper.h> |
|
14 | #include <DragAndDrop/DragDropHelper.h> | |
14 | #include <Settings/SqpSettingsDefs.h> |
|
15 | #include <Settings/SqpSettingsDefs.h> | |
15 | #include <SqpApplication.h> |
|
16 | #include <SqpApplication.h> | |
16 | #include <Time/TimeController.h> |
|
17 | #include <Time/TimeController.h> | |
17 | #include <Variable/Variable.h> |
|
18 | #include <Variable/Variable.h> | |
18 | #include <Variable/VariableController.h> |
|
19 | #include <Variable/VariableController.h> | |
19 |
|
20 | |||
20 | #include <unordered_map> |
|
21 | #include <unordered_map> | |
21 |
|
22 | |||
22 | Q_LOGGING_CATEGORY(LOG_VisualizationGraphWidget, "VisualizationGraphWidget") |
|
23 | Q_LOGGING_CATEGORY(LOG_VisualizationGraphWidget, "VisualizationGraphWidget") | |
23 |
|
24 | |||
24 | namespace { |
|
25 | namespace { | |
25 |
|
26 | |||
26 | /// Key pressed to enable zoom on horizontal axis |
|
27 | /// Key pressed to enable zoom on horizontal axis | |
27 | const auto HORIZONTAL_ZOOM_MODIFIER = Qt::ControlModifier; |
|
28 | const auto HORIZONTAL_ZOOM_MODIFIER = Qt::ControlModifier; | |
28 |
|
29 | |||
29 | /// Key pressed to enable zoom on vertical axis |
|
30 | /// Key pressed to enable zoom on vertical axis | |
30 | const auto VERTICAL_ZOOM_MODIFIER = Qt::ShiftModifier; |
|
31 | const auto VERTICAL_ZOOM_MODIFIER = Qt::ShiftModifier; | |
31 |
|
32 | |||
32 | /// Speed of a step of a wheel event for a pan, in percentage of the axis range |
|
33 | /// Speed of a step of a wheel event for a pan, in percentage of the axis range | |
33 | const auto PAN_SPEED = 5; |
|
34 | const auto PAN_SPEED = 5; | |
34 |
|
35 | |||
35 | /// Key pressed to enable a calibration pan |
|
36 | /// Key pressed to enable a calibration pan | |
36 | const auto VERTICAL_PAN_MODIFIER = Qt::AltModifier; |
|
37 | const auto VERTICAL_PAN_MODIFIER = Qt::AltModifier; | |
37 |
|
38 | |||
38 | /// Minimum size for the zoom box, in percentage of the axis range |
|
39 | /// Minimum size for the zoom box, in percentage of the axis range | |
39 | const auto ZOOM_BOX_MIN_SIZE = 0.8; |
|
40 | const auto ZOOM_BOX_MIN_SIZE = 0.8; | |
40 |
|
41 | |||
41 | /// Format of the dates appearing in the label of a cursor |
|
42 | /// Format of the dates appearing in the label of a cursor | |
42 | const auto CURSOR_LABELS_DATETIME_FORMAT = QStringLiteral("yyyy/MM/dd\nhh:mm:ss:zzz"); |
|
43 | const auto CURSOR_LABELS_DATETIME_FORMAT = QStringLiteral("yyyy/MM/dd\nhh:mm:ss:zzz"); | |
43 |
|
44 | |||
44 | } // namespace |
|
45 | } // namespace | |
45 |
|
46 | |||
46 | struct VisualizationGraphWidget::VisualizationGraphWidgetPrivate { |
|
47 | struct VisualizationGraphWidget::VisualizationGraphWidgetPrivate { | |
47 |
|
48 | |||
48 | explicit VisualizationGraphWidgetPrivate(const QString &name) |
|
49 | explicit VisualizationGraphWidgetPrivate(const QString &name) | |
49 | : m_Name{name}, |
|
50 | : m_Name{name}, | |
50 | m_DoAcquisition{true}, |
|
51 | m_DoAcquisition{true}, | |
51 | m_IsCalibration{false}, |
|
52 | m_IsCalibration{false}, | |
52 | m_RenderingDelegate{nullptr} |
|
53 | m_RenderingDelegate{nullptr} | |
53 | { |
|
54 | { | |
54 | } |
|
55 | } | |
55 |
|
56 | |||
|
57 | void updateData(PlottablesMap &plottables, std::shared_ptr<IDataSeries> dataSeries, | |||
|
58 | const SqpRange &range) | |||
|
59 | { | |||
|
60 | VisualizationGraphHelper::updateData(plottables, dataSeries, range); | |||
|
61 | ||||
|
62 | // Prevents that data has changed to update rendering | |||
|
63 | m_RenderingDelegate->onPlotUpdated(); | |||
|
64 | } | |||
|
65 | ||||
56 | QString m_Name; |
|
66 | QString m_Name; | |
57 | // 1 variable -> n qcpplot |
|
67 | // 1 variable -> n qcpplot | |
58 | std::map<std::shared_ptr<Variable>, PlottablesMap> m_VariableToPlotMultiMap; |
|
68 | std::map<std::shared_ptr<Variable>, PlottablesMap> m_VariableToPlotMultiMap; | |
59 | bool m_DoAcquisition; |
|
69 | bool m_DoAcquisition; | |
60 | bool m_IsCalibration; |
|
70 | bool m_IsCalibration; | |
61 | /// Delegate used to attach rendering features to the plot |
|
71 | /// Delegate used to attach rendering features to the plot | |
62 | std::unique_ptr<VisualizationGraphRenderingDelegate> m_RenderingDelegate; |
|
72 | std::unique_ptr<VisualizationGraphRenderingDelegate> m_RenderingDelegate; | |
63 |
|
73 | |||
64 | QCPItemRect *m_DrawingRect = nullptr; |
|
74 | QCPItemRect *m_DrawingRect = nullptr; | |
65 | std::unique_ptr<VisualizationCursorItem> m_HorizontalCursor = nullptr; |
|
75 | std::unique_ptr<VisualizationCursorItem> m_HorizontalCursor = nullptr; | |
66 | std::unique_ptr<VisualizationCursorItem> m_VerticalCursor = nullptr; |
|
76 | std::unique_ptr<VisualizationCursorItem> m_VerticalCursor = nullptr; | |
67 |
|
77 | |||
68 | void configureDrawingRect() |
|
78 | void configureDrawingRect() | |
69 | { |
|
79 | { | |
70 | if (m_DrawingRect) { |
|
80 | if (m_DrawingRect) { | |
71 | QPen p; |
|
81 | QPen p; | |
72 | p.setWidth(2); |
|
82 | p.setWidth(2); | |
73 | m_DrawingRect->setPen(p); |
|
83 | m_DrawingRect->setPen(p); | |
74 | } |
|
84 | } | |
75 | } |
|
85 | } | |
76 |
|
86 | |||
77 | void startDrawingRect(const QPoint &pos, QCustomPlot &plot) |
|
87 | void startDrawingRect(const QPoint &pos, QCustomPlot &plot) | |
78 | { |
|
88 | { | |
79 | removeDrawingRect(plot); |
|
89 | removeDrawingRect(plot); | |
80 |
|
90 | |||
81 | auto axisPos = posToAxisPos(pos, plot); |
|
91 | auto axisPos = posToAxisPos(pos, plot); | |
82 |
|
92 | |||
83 | m_DrawingRect = new QCPItemRect{&plot}; |
|
93 | m_DrawingRect = new QCPItemRect{&plot}; | |
84 | configureDrawingRect(); |
|
94 | configureDrawingRect(); | |
85 |
|
95 | |||
86 | m_DrawingRect->topLeft->setCoords(axisPos); |
|
96 | m_DrawingRect->topLeft->setCoords(axisPos); | |
87 | m_DrawingRect->bottomRight->setCoords(axisPos); |
|
97 | m_DrawingRect->bottomRight->setCoords(axisPos); | |
88 | } |
|
98 | } | |
89 |
|
99 | |||
90 | void removeDrawingRect(QCustomPlot &plot) |
|
100 | void removeDrawingRect(QCustomPlot &plot) | |
91 | { |
|
101 | { | |
92 | if (m_DrawingRect) { |
|
102 | if (m_DrawingRect) { | |
93 | plot.removeItem(m_DrawingRect); // the item is deleted by QCustomPlot |
|
103 | plot.removeItem(m_DrawingRect); // the item is deleted by QCustomPlot | |
94 | m_DrawingRect = nullptr; |
|
104 | m_DrawingRect = nullptr; | |
95 | plot.replot(QCustomPlot::rpQueuedReplot); |
|
105 | plot.replot(QCustomPlot::rpQueuedReplot); | |
96 | } |
|
106 | } | |
97 | } |
|
107 | } | |
98 |
|
108 | |||
99 | QPointF posToAxisPos(const QPoint &pos, QCustomPlot &plot) const |
|
109 | QPointF posToAxisPos(const QPoint &pos, QCustomPlot &plot) const | |
100 | { |
|
110 | { | |
101 | auto axisX = plot.axisRect()->axis(QCPAxis::atBottom); |
|
111 | auto axisX = plot.axisRect()->axis(QCPAxis::atBottom); | |
102 | auto axisY = plot.axisRect()->axis(QCPAxis::atLeft); |
|
112 | auto axisY = plot.axisRect()->axis(QCPAxis::atLeft); | |
103 | return QPointF{axisX->pixelToCoord(pos.x()), axisY->pixelToCoord(pos.y())}; |
|
113 | return QPointF{axisX->pixelToCoord(pos.x()), axisY->pixelToCoord(pos.y())}; | |
104 | } |
|
114 | } | |
105 |
|
115 | |||
106 | bool pointIsInAxisRect(const QPointF &axisPoint, QCustomPlot &plot) const |
|
116 | bool pointIsInAxisRect(const QPointF &axisPoint, QCustomPlot &plot) const | |
107 | { |
|
117 | { | |
108 | auto axisX = plot.axisRect()->axis(QCPAxis::atBottom); |
|
118 | auto axisX = plot.axisRect()->axis(QCPAxis::atBottom); | |
109 | auto axisY = plot.axisRect()->axis(QCPAxis::atLeft); |
|
119 | auto axisY = plot.axisRect()->axis(QCPAxis::atLeft); | |
110 |
|
120 | |||
111 | return axisX->range().contains(axisPoint.x()) && axisY->range().contains(axisPoint.y()); |
|
121 | return axisX->range().contains(axisPoint.x()) && axisY->range().contains(axisPoint.y()); | |
112 | } |
|
122 | } | |
113 | }; |
|
123 | }; | |
114 |
|
124 | |||
115 | VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget *parent) |
|
125 | VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget *parent) | |
116 | : VisualizationDragWidget{parent}, |
|
126 | : VisualizationDragWidget{parent}, | |
117 | ui{new Ui::VisualizationGraphWidget}, |
|
127 | ui{new Ui::VisualizationGraphWidget}, | |
118 | impl{spimpl::make_unique_impl<VisualizationGraphWidgetPrivate>(name)} |
|
128 | impl{spimpl::make_unique_impl<VisualizationGraphWidgetPrivate>(name)} | |
119 | { |
|
129 | { | |
120 | ui->setupUi(this); |
|
130 | ui->setupUi(this); | |
121 |
|
131 | |||
122 | // 'Close' options : widget is deleted when closed |
|
132 | // 'Close' options : widget is deleted when closed | |
123 | setAttribute(Qt::WA_DeleteOnClose); |
|
133 | setAttribute(Qt::WA_DeleteOnClose); | |
124 |
|
134 | |||
125 | // Set qcpplot properties : |
|
135 | // Set qcpplot properties : | |
126 | // - Drag (on x-axis) and zoom are enabled |
|
136 | // - Drag (on x-axis) and zoom are enabled | |
127 | // - Mouse wheel on qcpplot is intercepted to determine the zoom orientation |
|
137 | // - Mouse wheel on qcpplot is intercepted to determine the zoom orientation | |
128 | ui->widget->setInteractions(QCP::iRangeZoom | QCP::iSelectItems); |
|
138 | ui->widget->setInteractions(QCP::iRangeZoom | QCP::iSelectItems); | |
129 |
|
139 | |||
130 | // The delegate must be initialized after the ui as it uses the plot |
|
140 | // The delegate must be initialized after the ui as it uses the plot | |
131 | impl->m_RenderingDelegate = std::make_unique<VisualizationGraphRenderingDelegate>(*this); |
|
141 | impl->m_RenderingDelegate = std::make_unique<VisualizationGraphRenderingDelegate>(*this); | |
132 |
|
142 | |||
133 | // Init the cursors |
|
143 | // Init the cursors | |
134 | impl->m_HorizontalCursor = std::make_unique<VisualizationCursorItem>(&plot()); |
|
144 | impl->m_HorizontalCursor = std::make_unique<VisualizationCursorItem>(&plot()); | |
135 | impl->m_HorizontalCursor->setOrientation(Qt::Horizontal); |
|
145 | impl->m_HorizontalCursor->setOrientation(Qt::Horizontal); | |
136 | impl->m_VerticalCursor = std::make_unique<VisualizationCursorItem>(&plot()); |
|
146 | impl->m_VerticalCursor = std::make_unique<VisualizationCursorItem>(&plot()); | |
137 | impl->m_VerticalCursor->setOrientation(Qt::Vertical); |
|
147 | impl->m_VerticalCursor->setOrientation(Qt::Vertical); | |
138 |
|
148 | |||
139 | connect(ui->widget, &QCustomPlot::mousePress, this, &VisualizationGraphWidget::onMousePress); |
|
149 | connect(ui->widget, &QCustomPlot::mousePress, this, &VisualizationGraphWidget::onMousePress); | |
140 | connect(ui->widget, &QCustomPlot::mouseRelease, this, |
|
150 | connect(ui->widget, &QCustomPlot::mouseRelease, this, | |
141 | &VisualizationGraphWidget::onMouseRelease); |
|
151 | &VisualizationGraphWidget::onMouseRelease); | |
142 | connect(ui->widget, &QCustomPlot::mouseMove, this, &VisualizationGraphWidget::onMouseMove); |
|
152 | connect(ui->widget, &QCustomPlot::mouseMove, this, &VisualizationGraphWidget::onMouseMove); | |
143 | connect(ui->widget, &QCustomPlot::mouseWheel, this, &VisualizationGraphWidget::onMouseWheel); |
|
153 | connect(ui->widget, &QCustomPlot::mouseWheel, this, &VisualizationGraphWidget::onMouseWheel); | |
|
154 | connect(ui->widget, &QCustomPlot::mouseDoubleClick, this, | |||
|
155 | &VisualizationGraphWidget::onMouseDoubleClick); | |||
144 | connect(ui->widget->xAxis, static_cast<void (QCPAxis::*)(const QCPRange &, const QCPRange &)>( |
|
156 | connect(ui->widget->xAxis, static_cast<void (QCPAxis::*)(const QCPRange &, const QCPRange &)>( | |
145 | &QCPAxis::rangeChanged), |
|
157 | &QCPAxis::rangeChanged), | |
146 | this, &VisualizationGraphWidget::onRangeChanged, Qt::DirectConnection); |
|
158 | this, &VisualizationGraphWidget::onRangeChanged, Qt::DirectConnection); | |
147 |
|
159 | |||
148 | // Activates menu when right clicking on the graph |
|
160 | // Activates menu when right clicking on the graph | |
149 | ui->widget->setContextMenuPolicy(Qt::CustomContextMenu); |
|
161 | ui->widget->setContextMenuPolicy(Qt::CustomContextMenu); | |
150 | connect(ui->widget, &QCustomPlot::customContextMenuRequested, this, |
|
162 | connect(ui->widget, &QCustomPlot::customContextMenuRequested, this, | |
151 | &VisualizationGraphWidget::onGraphMenuRequested); |
|
163 | &VisualizationGraphWidget::onGraphMenuRequested); | |
152 |
|
164 | |||
153 | connect(this, &VisualizationGraphWidget::requestDataLoading, &sqpApp->variableController(), |
|
165 | connect(this, &VisualizationGraphWidget::requestDataLoading, &sqpApp->variableController(), | |
154 | &VariableController::onRequestDataLoading); |
|
166 | &VariableController::onRequestDataLoading); | |
155 |
|
167 | |||
156 | connect(&sqpApp->variableController(), &VariableController::updateVarDisplaying, this, |
|
168 | connect(&sqpApp->variableController(), &VariableController::updateVarDisplaying, this, | |
157 | &VisualizationGraphWidget::onUpdateVarDisplaying); |
|
169 | &VisualizationGraphWidget::onUpdateVarDisplaying); | |
158 |
|
170 | |||
159 | #ifdef Q_OS_MAC |
|
171 | #ifdef Q_OS_MAC | |
160 | plot().setPlottingHint(QCP::phFastPolylines, true); |
|
172 | plot().setPlottingHint(QCP::phFastPolylines, true); | |
161 | #endif |
|
173 | #endif | |
162 | } |
|
174 | } | |
163 |
|
175 | |||
164 |
|
176 | |||
165 | VisualizationGraphWidget::~VisualizationGraphWidget() |
|
177 | VisualizationGraphWidget::~VisualizationGraphWidget() | |
166 | { |
|
178 | { | |
167 | delete ui; |
|
179 | delete ui; | |
168 | } |
|
180 | } | |
169 |
|
181 | |||
170 | VisualizationZoneWidget *VisualizationGraphWidget::parentZoneWidget() const noexcept |
|
182 | VisualizationZoneWidget *VisualizationGraphWidget::parentZoneWidget() const noexcept | |
171 | { |
|
183 | { | |
172 | auto parent = parentWidget(); |
|
184 | auto parent = parentWidget(); | |
173 | while (parent != nullptr && !qobject_cast<VisualizationZoneWidget *>(parent)) { |
|
185 | while (parent != nullptr && !qobject_cast<VisualizationZoneWidget *>(parent)) { | |
174 | parent = parent->parentWidget(); |
|
186 | parent = parent->parentWidget(); | |
175 | } |
|
187 | } | |
176 |
|
188 | |||
177 | return qobject_cast<VisualizationZoneWidget *>(parent); |
|
189 | return qobject_cast<VisualizationZoneWidget *>(parent); | |
178 | } |
|
190 | } | |
179 |
|
191 | |||
180 | void VisualizationGraphWidget::enableAcquisition(bool enable) |
|
192 | void VisualizationGraphWidget::enableAcquisition(bool enable) | |
181 | { |
|
193 | { | |
182 | impl->m_DoAcquisition = enable; |
|
194 | impl->m_DoAcquisition = enable; | |
183 | } |
|
195 | } | |
184 |
|
196 | |||
185 | void VisualizationGraphWidget::addVariable(std::shared_ptr<Variable> variable, SqpRange range) |
|
197 | void VisualizationGraphWidget::addVariable(std::shared_ptr<Variable> variable, SqpRange range) | |
186 | { |
|
198 | { | |
187 | // Uses delegate to create the qcpplot components according to the variable |
|
199 | // Uses delegate to create the qcpplot components according to the variable | |
188 | auto createdPlottables = VisualizationGraphHelper::create(variable, *ui->widget); |
|
200 | auto createdPlottables = VisualizationGraphHelper::create(variable, *ui->widget); | |
189 |
|
201 | |||
190 | if (auto dataSeries = variable->dataSeries()) { |
|
202 | if (auto dataSeries = variable->dataSeries()) { | |
191 | // Set axes properties according to the units of the data series |
|
203 | // Set axes properties according to the units of the data series | |
192 | impl->m_RenderingDelegate->setAxesProperties(dataSeries); |
|
204 | impl->m_RenderingDelegate->setAxesProperties(dataSeries); | |
193 |
|
205 | |||
194 | // Sets rendering properties for the new plottables |
|
206 | // Sets rendering properties for the new plottables | |
195 | // Warning: this method must be called after setAxesProperties(), as it can access to some |
|
207 | // Warning: this method must be called after setAxesProperties(), as it can access to some | |
196 | // axes properties that have to be initialized |
|
208 | // axes properties that have to be initialized | |
197 | impl->m_RenderingDelegate->setPlottablesProperties(dataSeries, createdPlottables); |
|
209 | impl->m_RenderingDelegate->setPlottablesProperties(dataSeries, createdPlottables); | |
198 | } |
|
210 | } | |
199 |
|
211 | |||
200 | impl->m_VariableToPlotMultiMap.insert({variable, std::move(createdPlottables)}); |
|
212 | impl->m_VariableToPlotMultiMap.insert({variable, std::move(createdPlottables)}); | |
201 |
|
213 | |||
202 | connect(variable.get(), SIGNAL(updated()), this, SLOT(onDataCacheVariableUpdated())); |
|
214 | connect(variable.get(), SIGNAL(updated()), this, SLOT(onDataCacheVariableUpdated())); | |
203 |
|
215 | |||
204 | this->enableAcquisition(false); |
|
216 | this->enableAcquisition(false); | |
205 | this->setGraphRange(range); |
|
217 | this->setGraphRange(range); | |
206 | this->enableAcquisition(true); |
|
218 | this->enableAcquisition(true); | |
207 |
|
219 | |||
208 | emit requestDataLoading(QVector<std::shared_ptr<Variable> >() << variable, range, false); |
|
220 | emit requestDataLoading(QVector<std::shared_ptr<Variable> >() << variable, range, false); | |
209 |
|
221 | |||
210 | emit variableAdded(variable); |
|
222 | emit variableAdded(variable); | |
211 | } |
|
223 | } | |
212 |
|
224 | |||
213 | void VisualizationGraphWidget::removeVariable(std::shared_ptr<Variable> variable) noexcept |
|
225 | void VisualizationGraphWidget::removeVariable(std::shared_ptr<Variable> variable) noexcept | |
214 | { |
|
226 | { | |
215 | // Each component associated to the variable : |
|
227 | // Each component associated to the variable : | |
216 | // - is removed from qcpplot (which deletes it) |
|
228 | // - is removed from qcpplot (which deletes it) | |
217 | // - is no longer referenced in the map |
|
229 | // - is no longer referenced in the map | |
218 | auto variableIt = impl->m_VariableToPlotMultiMap.find(variable); |
|
230 | auto variableIt = impl->m_VariableToPlotMultiMap.find(variable); | |
219 | if (variableIt != impl->m_VariableToPlotMultiMap.cend()) { |
|
231 | if (variableIt != impl->m_VariableToPlotMultiMap.cend()) { | |
220 | emit variableAboutToBeRemoved(variable); |
|
232 | emit variableAboutToBeRemoved(variable); | |
221 |
|
233 | |||
222 | auto &plottablesMap = variableIt->second; |
|
234 | auto &plottablesMap = variableIt->second; | |
223 |
|
235 | |||
224 | for (auto plottableIt = plottablesMap.cbegin(), plottableEnd = plottablesMap.cend(); |
|
236 | for (auto plottableIt = plottablesMap.cbegin(), plottableEnd = plottablesMap.cend(); | |
225 | plottableIt != plottableEnd;) { |
|
237 | plottableIt != plottableEnd;) { | |
226 | ui->widget->removePlottable(plottableIt->second); |
|
238 | ui->widget->removePlottable(plottableIt->second); | |
227 | plottableIt = plottablesMap.erase(plottableIt); |
|
239 | plottableIt = plottablesMap.erase(plottableIt); | |
228 | } |
|
240 | } | |
229 |
|
241 | |||
230 | impl->m_VariableToPlotMultiMap.erase(variableIt); |
|
242 | impl->m_VariableToPlotMultiMap.erase(variableIt); | |
231 | } |
|
243 | } | |
232 |
|
244 | |||
233 | // Updates graph |
|
245 | // Updates graph | |
234 | ui->widget->replot(); |
|
246 | ui->widget->replot(); | |
235 | } |
|
247 | } | |
236 |
|
248 | |||
237 | QList<std::shared_ptr<Variable> > VisualizationGraphWidget::variables() const |
|
249 | QList<std::shared_ptr<Variable> > VisualizationGraphWidget::variables() const | |
238 | { |
|
250 | { | |
239 | auto variables = QList<std::shared_ptr<Variable> >{}; |
|
251 | auto variables = QList<std::shared_ptr<Variable> >{}; | |
240 | for (auto it = std::cbegin(impl->m_VariableToPlotMultiMap); |
|
252 | for (auto it = std::cbegin(impl->m_VariableToPlotMultiMap); | |
241 | it != std::cend(impl->m_VariableToPlotMultiMap); ++it) { |
|
253 | it != std::cend(impl->m_VariableToPlotMultiMap); ++it) { | |
242 | variables << it->first; |
|
254 | variables << it->first; | |
243 | } |
|
255 | } | |
244 |
|
256 | |||
245 | return variables; |
|
257 | return variables; | |
246 | } |
|
258 | } | |
247 |
|
259 | |||
248 | void VisualizationGraphWidget::setYRange(std::shared_ptr<Variable> variable) |
|
260 | void VisualizationGraphWidget::setYRange(std::shared_ptr<Variable> variable) | |
249 | { |
|
261 | { | |
250 | if (!variable) { |
|
262 | if (!variable) { | |
251 | qCCritical(LOG_VisualizationGraphWidget()) << "Can't set y-axis range: variable is null"; |
|
263 | qCCritical(LOG_VisualizationGraphWidget()) << "Can't set y-axis range: variable is null"; | |
252 | return; |
|
264 | return; | |
253 | } |
|
265 | } | |
254 |
|
266 | |||
255 | VisualizationGraphHelper::setYAxisRange(variable, *ui->widget); |
|
267 | VisualizationGraphHelper::setYAxisRange(variable, *ui->widget); | |
256 | } |
|
268 | } | |
257 |
|
269 | |||
258 | SqpRange VisualizationGraphWidget::graphRange() const noexcept |
|
270 | SqpRange VisualizationGraphWidget::graphRange() const noexcept | |
259 | { |
|
271 | { | |
260 | auto graphRange = ui->widget->xAxis->range(); |
|
272 | auto graphRange = ui->widget->xAxis->range(); | |
261 | return SqpRange{graphRange.lower, graphRange.upper}; |
|
273 | return SqpRange{graphRange.lower, graphRange.upper}; | |
262 | } |
|
274 | } | |
263 |
|
275 | |||
264 | void VisualizationGraphWidget::setGraphRange(const SqpRange &range) |
|
276 | void VisualizationGraphWidget::setGraphRange(const SqpRange &range) | |
265 | { |
|
277 | { | |
266 | qCDebug(LOG_VisualizationGraphWidget()) << tr("VisualizationGraphWidget::setGraphRange START"); |
|
278 | qCDebug(LOG_VisualizationGraphWidget()) << tr("VisualizationGraphWidget::setGraphRange START"); | |
267 | ui->widget->xAxis->setRange(range.m_TStart, range.m_TEnd); |
|
279 | ui->widget->xAxis->setRange(range.m_TStart, range.m_TEnd); | |
268 | ui->widget->replot(); |
|
280 | ui->widget->replot(); | |
269 | qCDebug(LOG_VisualizationGraphWidget()) << tr("VisualizationGraphWidget::setGraphRange END"); |
|
281 | qCDebug(LOG_VisualizationGraphWidget()) << tr("VisualizationGraphWidget::setGraphRange END"); | |
270 | } |
|
282 | } | |
271 |
|
283 | |||
272 | void VisualizationGraphWidget::accept(IVisualizationWidgetVisitor *visitor) |
|
284 | void VisualizationGraphWidget::accept(IVisualizationWidgetVisitor *visitor) | |
273 | { |
|
285 | { | |
274 | if (visitor) { |
|
286 | if (visitor) { | |
275 | visitor->visit(this); |
|
287 | visitor->visit(this); | |
276 | } |
|
288 | } | |
277 | else { |
|
289 | else { | |
278 | qCCritical(LOG_VisualizationGraphWidget()) |
|
290 | qCCritical(LOG_VisualizationGraphWidget()) | |
279 | << tr("Can't visit widget : the visitor is null"); |
|
291 | << tr("Can't visit widget : the visitor is null"); | |
280 | } |
|
292 | } | |
281 | } |
|
293 | } | |
282 |
|
294 | |||
283 | bool VisualizationGraphWidget::canDrop(const Variable &variable) const |
|
295 | bool VisualizationGraphWidget::canDrop(const Variable &variable) const | |
284 | { |
|
296 | { | |
285 | /// @todo : for the moment, a graph can always accomodate a variable |
|
297 | auto isSpectrogram = [](const auto &variable) { | |
286 | Q_UNUSED(variable); |
|
298 | return std::dynamic_pointer_cast<SpectrogramSeries>(variable.dataSeries()) != nullptr; | |
287 | return true; |
|
299 | }; | |
|
300 | ||||
|
301 | // - A spectrogram series can't be dropped on graph with existing plottables | |||
|
302 | // - No data series can be dropped on graph with existing spectrogram series | |||
|
303 | return isSpectrogram(variable) | |||
|
304 | ? impl->m_VariableToPlotMultiMap.empty() | |||
|
305 | : std::none_of( | |||
|
306 | impl->m_VariableToPlotMultiMap.cbegin(), impl->m_VariableToPlotMultiMap.cend(), | |||
|
307 | [isSpectrogram](const auto &entry) { return isSpectrogram(*entry.first); }); | |||
288 | } |
|
308 | } | |
289 |
|
309 | |||
290 | bool VisualizationGraphWidget::contains(const Variable &variable) const |
|
310 | bool VisualizationGraphWidget::contains(const Variable &variable) const | |
291 | { |
|
311 | { | |
292 | // Finds the variable among the keys of the map |
|
312 | // Finds the variable among the keys of the map | |
293 | auto variablePtr = &variable; |
|
313 | auto variablePtr = &variable; | |
294 | auto findVariable |
|
314 | auto findVariable | |
295 | = [variablePtr](const auto &entry) { return variablePtr == entry.first.get(); }; |
|
315 | = [variablePtr](const auto &entry) { return variablePtr == entry.first.get(); }; | |
296 |
|
316 | |||
297 | auto end = impl->m_VariableToPlotMultiMap.cend(); |
|
317 | auto end = impl->m_VariableToPlotMultiMap.cend(); | |
298 | auto it = std::find_if(impl->m_VariableToPlotMultiMap.cbegin(), end, findVariable); |
|
318 | auto it = std::find_if(impl->m_VariableToPlotMultiMap.cbegin(), end, findVariable); | |
299 | return it != end; |
|
319 | return it != end; | |
300 | } |
|
320 | } | |
301 |
|
321 | |||
302 | QString VisualizationGraphWidget::name() const |
|
322 | QString VisualizationGraphWidget::name() const | |
303 | { |
|
323 | { | |
304 | return impl->m_Name; |
|
324 | return impl->m_Name; | |
305 | } |
|
325 | } | |
306 |
|
326 | |||
307 | QMimeData *VisualizationGraphWidget::mimeData() const |
|
327 | QMimeData *VisualizationGraphWidget::mimeData() const | |
308 | { |
|
328 | { | |
309 | auto mimeData = new QMimeData; |
|
329 | auto mimeData = new QMimeData; | |
310 | mimeData->setData(MIME_TYPE_GRAPH, QByteArray{}); |
|
330 | mimeData->setData(MIME_TYPE_GRAPH, QByteArray{}); | |
311 |
|
331 | |||
312 | auto timeRangeData = TimeController::mimeDataForTimeRange(graphRange()); |
|
332 | auto timeRangeData = TimeController::mimeDataForTimeRange(graphRange()); | |
313 | mimeData->setData(MIME_TYPE_TIME_RANGE, timeRangeData); |
|
333 | mimeData->setData(MIME_TYPE_TIME_RANGE, timeRangeData); | |
314 |
|
334 | |||
315 | return mimeData; |
|
335 | return mimeData; | |
316 | } |
|
336 | } | |
317 |
|
337 | |||
318 | bool VisualizationGraphWidget::isDragAllowed() const |
|
338 | bool VisualizationGraphWidget::isDragAllowed() const | |
319 | { |
|
339 | { | |
320 | return true; |
|
340 | return true; | |
321 | } |
|
341 | } | |
322 |
|
342 | |||
323 | void VisualizationGraphWidget::highlightForMerge(bool highlighted) |
|
343 | void VisualizationGraphWidget::highlightForMerge(bool highlighted) | |
324 | { |
|
344 | { | |
325 | if (highlighted) { |
|
345 | if (highlighted) { | |
326 | plot().setBackground(QBrush(QColor("#BBD5EE"))); |
|
346 | plot().setBackground(QBrush(QColor("#BBD5EE"))); | |
327 | } |
|
347 | } | |
328 | else { |
|
348 | else { | |
329 | plot().setBackground(QBrush(Qt::white)); |
|
349 | plot().setBackground(QBrush(Qt::white)); | |
330 | } |
|
350 | } | |
331 |
|
351 | |||
332 | plot().update(); |
|
352 | plot().update(); | |
333 | } |
|
353 | } | |
334 |
|
354 | |||
335 | void VisualizationGraphWidget::addVerticalCursor(double time) |
|
355 | void VisualizationGraphWidget::addVerticalCursor(double time) | |
336 | { |
|
356 | { | |
337 | impl->m_VerticalCursor->setPosition(time); |
|
357 | impl->m_VerticalCursor->setPosition(time); | |
338 | impl->m_VerticalCursor->setVisible(true); |
|
358 | impl->m_VerticalCursor->setVisible(true); | |
339 |
|
359 | |||
340 | auto text |
|
360 | auto text | |
341 | = DateUtils::dateTime(time).toString(CURSOR_LABELS_DATETIME_FORMAT).replace(' ', '\n'); |
|
361 | = DateUtils::dateTime(time).toString(CURSOR_LABELS_DATETIME_FORMAT).replace(' ', '\n'); | |
342 | impl->m_VerticalCursor->setLabelText(text); |
|
362 | impl->m_VerticalCursor->setLabelText(text); | |
343 | } |
|
363 | } | |
344 |
|
364 | |||
345 | void VisualizationGraphWidget::addVerticalCursorAtViewportPosition(double position) |
|
365 | void VisualizationGraphWidget::addVerticalCursorAtViewportPosition(double position) | |
346 | { |
|
366 | { | |
347 | impl->m_VerticalCursor->setAbsolutePosition(position); |
|
367 | impl->m_VerticalCursor->setAbsolutePosition(position); | |
348 | impl->m_VerticalCursor->setVisible(true); |
|
368 | impl->m_VerticalCursor->setVisible(true); | |
349 |
|
369 | |||
350 | auto axis = plot().axisRect()->axis(QCPAxis::atBottom); |
|
370 | auto axis = plot().axisRect()->axis(QCPAxis::atBottom); | |
351 | auto text |
|
371 | auto text | |
352 | = DateUtils::dateTime(axis->pixelToCoord(position)).toString(CURSOR_LABELS_DATETIME_FORMAT); |
|
372 | = DateUtils::dateTime(axis->pixelToCoord(position)).toString(CURSOR_LABELS_DATETIME_FORMAT); | |
353 | impl->m_VerticalCursor->setLabelText(text); |
|
373 | impl->m_VerticalCursor->setLabelText(text); | |
354 | } |
|
374 | } | |
355 |
|
375 | |||
356 | void VisualizationGraphWidget::removeVerticalCursor() |
|
376 | void VisualizationGraphWidget::removeVerticalCursor() | |
357 | { |
|
377 | { | |
358 | impl->m_VerticalCursor->setVisible(false); |
|
378 | impl->m_VerticalCursor->setVisible(false); | |
359 | plot().replot(QCustomPlot::rpQueuedReplot); |
|
379 | plot().replot(QCustomPlot::rpQueuedReplot); | |
360 | } |
|
380 | } | |
361 |
|
381 | |||
362 | void VisualizationGraphWidget::addHorizontalCursor(double value) |
|
382 | void VisualizationGraphWidget::addHorizontalCursor(double value) | |
363 | { |
|
383 | { | |
364 | impl->m_HorizontalCursor->setPosition(value); |
|
384 | impl->m_HorizontalCursor->setPosition(value); | |
365 | impl->m_HorizontalCursor->setVisible(true); |
|
385 | impl->m_HorizontalCursor->setVisible(true); | |
366 | impl->m_HorizontalCursor->setLabelText(QString::number(value)); |
|
386 | impl->m_HorizontalCursor->setLabelText(QString::number(value)); | |
367 | } |
|
387 | } | |
368 |
|
388 | |||
369 | void VisualizationGraphWidget::addHorizontalCursorAtViewportPosition(double position) |
|
389 | void VisualizationGraphWidget::addHorizontalCursorAtViewportPosition(double position) | |
370 | { |
|
390 | { | |
371 | impl->m_HorizontalCursor->setAbsolutePosition(position); |
|
391 | impl->m_HorizontalCursor->setAbsolutePosition(position); | |
372 | impl->m_HorizontalCursor->setVisible(true); |
|
392 | impl->m_HorizontalCursor->setVisible(true); | |
373 |
|
393 | |||
374 | auto axis = plot().axisRect()->axis(QCPAxis::atLeft); |
|
394 | auto axis = plot().axisRect()->axis(QCPAxis::atLeft); | |
375 | impl->m_HorizontalCursor->setLabelText(QString::number(axis->pixelToCoord(position))); |
|
395 | impl->m_HorizontalCursor->setLabelText(QString::number(axis->pixelToCoord(position))); | |
376 | } |
|
396 | } | |
377 |
|
397 | |||
378 | void VisualizationGraphWidget::removeHorizontalCursor() |
|
398 | void VisualizationGraphWidget::removeHorizontalCursor() | |
379 | { |
|
399 | { | |
380 | impl->m_HorizontalCursor->setVisible(false); |
|
400 | impl->m_HorizontalCursor->setVisible(false); | |
381 | plot().replot(QCustomPlot::rpQueuedReplot); |
|
401 | plot().replot(QCustomPlot::rpQueuedReplot); | |
382 | } |
|
402 | } | |
383 |
|
403 | |||
384 | void VisualizationGraphWidget::closeEvent(QCloseEvent *event) |
|
404 | void VisualizationGraphWidget::closeEvent(QCloseEvent *event) | |
385 | { |
|
405 | { | |
386 | Q_UNUSED(event); |
|
406 | Q_UNUSED(event); | |
387 |
|
407 | |||
388 | // Prevents that all variables will be removed from graph when it will be closed |
|
408 | // Prevents that all variables will be removed from graph when it will be closed | |
389 | for (auto &variableEntry : impl->m_VariableToPlotMultiMap) { |
|
409 | for (auto &variableEntry : impl->m_VariableToPlotMultiMap) { | |
390 | emit variableAboutToBeRemoved(variableEntry.first); |
|
410 | emit variableAboutToBeRemoved(variableEntry.first); | |
391 | } |
|
411 | } | |
392 | } |
|
412 | } | |
393 |
|
413 | |||
394 | void VisualizationGraphWidget::enterEvent(QEvent *event) |
|
414 | void VisualizationGraphWidget::enterEvent(QEvent *event) | |
395 | { |
|
415 | { | |
396 | Q_UNUSED(event); |
|
416 | Q_UNUSED(event); | |
397 | impl->m_RenderingDelegate->showGraphOverlay(true); |
|
417 | impl->m_RenderingDelegate->showGraphOverlay(true); | |
398 | } |
|
418 | } | |
399 |
|
419 | |||
400 | void VisualizationGraphWidget::leaveEvent(QEvent *event) |
|
420 | void VisualizationGraphWidget::leaveEvent(QEvent *event) | |
401 | { |
|
421 | { | |
402 | Q_UNUSED(event); |
|
422 | Q_UNUSED(event); | |
403 | impl->m_RenderingDelegate->showGraphOverlay(false); |
|
423 | impl->m_RenderingDelegate->showGraphOverlay(false); | |
404 |
|
424 | |||
405 | if (auto parentZone = parentZoneWidget()) { |
|
425 | if (auto parentZone = parentZoneWidget()) { | |
406 | parentZone->notifyMouseLeaveGraph(this); |
|
426 | parentZone->notifyMouseLeaveGraph(this); | |
407 | } |
|
427 | } | |
408 | else { |
|
428 | else { | |
409 | qCWarning(LOG_VisualizationGraphWidget()) << "leaveEvent: No parent zone widget"; |
|
429 | qCWarning(LOG_VisualizationGraphWidget()) << "leaveEvent: No parent zone widget"; | |
410 | } |
|
430 | } | |
411 | } |
|
431 | } | |
412 |
|
432 | |||
413 | QCustomPlot &VisualizationGraphWidget::plot() noexcept |
|
433 | QCustomPlot &VisualizationGraphWidget::plot() noexcept | |
414 | { |
|
434 | { | |
415 | return *ui->widget; |
|
435 | return *ui->widget; | |
416 | } |
|
436 | } | |
417 |
|
437 | |||
418 | void VisualizationGraphWidget::onGraphMenuRequested(const QPoint &pos) noexcept |
|
438 | void VisualizationGraphWidget::onGraphMenuRequested(const QPoint &pos) noexcept | |
419 | { |
|
439 | { | |
420 | QMenu graphMenu{}; |
|
440 | QMenu graphMenu{}; | |
421 |
|
441 | |||
422 | // Iterates on variables (unique keys) |
|
442 | // Iterates on variables (unique keys) | |
423 | for (auto it = impl->m_VariableToPlotMultiMap.cbegin(), |
|
443 | for (auto it = impl->m_VariableToPlotMultiMap.cbegin(), | |
424 | end = impl->m_VariableToPlotMultiMap.cend(); |
|
444 | end = impl->m_VariableToPlotMultiMap.cend(); | |
425 | it != end; it = impl->m_VariableToPlotMultiMap.upper_bound(it->first)) { |
|
445 | it != end; it = impl->m_VariableToPlotMultiMap.upper_bound(it->first)) { | |
426 | // 'Remove variable' action |
|
446 | // 'Remove variable' action | |
427 | graphMenu.addAction(tr("Remove variable %1").arg(it->first->name()), |
|
447 | graphMenu.addAction(tr("Remove variable %1").arg(it->first->name()), | |
428 | [ this, var = it->first ]() { removeVariable(var); }); |
|
448 | [ this, var = it->first ]() { removeVariable(var); }); | |
429 | } |
|
449 | } | |
430 |
|
450 | |||
431 | if (!graphMenu.isEmpty()) { |
|
451 | if (!graphMenu.isEmpty()) { | |
432 | graphMenu.exec(QCursor::pos()); |
|
452 | graphMenu.exec(QCursor::pos()); | |
433 | } |
|
453 | } | |
434 | } |
|
454 | } | |
435 |
|
455 | |||
436 | void VisualizationGraphWidget::onRangeChanged(const QCPRange &t1, const QCPRange &t2) |
|
456 | void VisualizationGraphWidget::onRangeChanged(const QCPRange &t1, const QCPRange &t2) | |
437 | { |
|
457 | { | |
438 | qCDebug(LOG_VisualizationGraphWidget()) << tr("TORM: VisualizationGraphWidget::onRangeChanged") |
|
458 | qCDebug(LOG_VisualizationGraphWidget()) << tr("TORM: VisualizationGraphWidget::onRangeChanged") | |
439 | << QThread::currentThread()->objectName() << "DoAcqui" |
|
459 | << QThread::currentThread()->objectName() << "DoAcqui" | |
440 | << impl->m_DoAcquisition; |
|
460 | << impl->m_DoAcquisition; | |
441 |
|
461 | |||
442 | auto graphRange = SqpRange{t1.lower, t1.upper}; |
|
462 | auto graphRange = SqpRange{t1.lower, t1.upper}; | |
443 | auto oldGraphRange = SqpRange{t2.lower, t2.upper}; |
|
463 | auto oldGraphRange = SqpRange{t2.lower, t2.upper}; | |
444 |
|
464 | |||
445 | if (impl->m_DoAcquisition) { |
|
465 | if (impl->m_DoAcquisition) { | |
446 | QVector<std::shared_ptr<Variable> > variableUnderGraphVector; |
|
466 | QVector<std::shared_ptr<Variable> > variableUnderGraphVector; | |
447 |
|
467 | |||
448 | for (auto it = impl->m_VariableToPlotMultiMap.begin(), |
|
468 | for (auto it = impl->m_VariableToPlotMultiMap.begin(), | |
449 | end = impl->m_VariableToPlotMultiMap.end(); |
|
469 | end = impl->m_VariableToPlotMultiMap.end(); | |
450 | it != end; it = impl->m_VariableToPlotMultiMap.upper_bound(it->first)) { |
|
470 | it != end; it = impl->m_VariableToPlotMultiMap.upper_bound(it->first)) { | |
451 | variableUnderGraphVector.push_back(it->first); |
|
471 | variableUnderGraphVector.push_back(it->first); | |
452 | } |
|
472 | } | |
453 | emit requestDataLoading(std::move(variableUnderGraphVector), graphRange, |
|
473 | emit requestDataLoading(std::move(variableUnderGraphVector), graphRange, | |
454 | !impl->m_IsCalibration); |
|
474 | !impl->m_IsCalibration); | |
455 |
|
475 | |||
456 | if (!impl->m_IsCalibration) { |
|
476 | if (!impl->m_IsCalibration) { | |
457 | qCDebug(LOG_VisualizationGraphWidget()) |
|
477 | qCDebug(LOG_VisualizationGraphWidget()) | |
458 | << tr("TORM: VisualizationGraphWidget::Synchronize notify !!") |
|
478 | << tr("TORM: VisualizationGraphWidget::Synchronize notify !!") | |
459 | << QThread::currentThread()->objectName() << graphRange << oldGraphRange; |
|
479 | << QThread::currentThread()->objectName() << graphRange << oldGraphRange; | |
460 | emit synchronize(graphRange, oldGraphRange); |
|
480 | emit synchronize(graphRange, oldGraphRange); | |
461 | } |
|
481 | } | |
462 | } |
|
482 | } | |
463 |
|
483 | |||
464 | auto pos = mapFromGlobal(QCursor::pos()); |
|
484 | auto pos = mapFromGlobal(QCursor::pos()); | |
465 | auto axisPos = impl->posToAxisPos(pos, plot()); |
|
485 | auto axisPos = impl->posToAxisPos(pos, plot()); | |
466 | if (auto parentZone = parentZoneWidget()) { |
|
486 | if (auto parentZone = parentZoneWidget()) { | |
467 | if (impl->pointIsInAxisRect(axisPos, plot())) { |
|
487 | if (impl->pointIsInAxisRect(axisPos, plot())) { | |
468 | parentZone->notifyMouseMoveInGraph(pos, axisPos, this); |
|
488 | parentZone->notifyMouseMoveInGraph(pos, axisPos, this); | |
469 | } |
|
489 | } | |
470 | else { |
|
490 | else { | |
471 | parentZone->notifyMouseLeaveGraph(this); |
|
491 | parentZone->notifyMouseLeaveGraph(this); | |
472 | } |
|
492 | } | |
473 | } |
|
493 | } | |
474 | else { |
|
494 | else { | |
475 | qCWarning(LOG_VisualizationGraphWidget()) << "onMouseMove: No parent zone widget"; |
|
495 | qCWarning(LOG_VisualizationGraphWidget()) << "onMouseMove: No parent zone widget"; | |
476 | } |
|
496 | } | |
477 | } |
|
497 | } | |
478 |
|
498 | |||
|
499 | void VisualizationGraphWidget::onMouseDoubleClick(QMouseEvent *event) noexcept | |||
|
500 | { | |||
|
501 | impl->m_RenderingDelegate->onMouseDoubleClick(event); | |||
|
502 | } | |||
|
503 | ||||
479 | void VisualizationGraphWidget::onMouseMove(QMouseEvent *event) noexcept |
|
504 | void VisualizationGraphWidget::onMouseMove(QMouseEvent *event) noexcept | |
480 | { |
|
505 | { | |
481 | // Handles plot rendering when mouse is moving |
|
506 | // Handles plot rendering when mouse is moving | |
482 | impl->m_RenderingDelegate->onMouseMove(event); |
|
507 | impl->m_RenderingDelegate->onMouseMove(event); | |
483 |
|
508 | |||
484 | auto axisPos = impl->posToAxisPos(event->pos(), plot()); |
|
509 | auto axisPos = impl->posToAxisPos(event->pos(), plot()); | |
485 |
|
510 | |||
486 | if (impl->m_DrawingRect) { |
|
511 | if (impl->m_DrawingRect) { | |
487 | impl->m_DrawingRect->bottomRight->setCoords(axisPos); |
|
512 | impl->m_DrawingRect->bottomRight->setCoords(axisPos); | |
488 | } |
|
513 | } | |
489 |
|
514 | |||
490 | if (auto parentZone = parentZoneWidget()) { |
|
515 | if (auto parentZone = parentZoneWidget()) { | |
491 | if (impl->pointIsInAxisRect(axisPos, plot())) { |
|
516 | if (impl->pointIsInAxisRect(axisPos, plot())) { | |
492 | parentZone->notifyMouseMoveInGraph(event->pos(), axisPos, this); |
|
517 | parentZone->notifyMouseMoveInGraph(event->pos(), axisPos, this); | |
493 | } |
|
518 | } | |
494 | else { |
|
519 | else { | |
495 | parentZone->notifyMouseLeaveGraph(this); |
|
520 | parentZone->notifyMouseLeaveGraph(this); | |
496 | } |
|
521 | } | |
497 | } |
|
522 | } | |
498 | else { |
|
523 | else { | |
499 | qCWarning(LOG_VisualizationGraphWidget()) << "onMouseMove: No parent zone widget"; |
|
524 | qCWarning(LOG_VisualizationGraphWidget()) << "onMouseMove: No parent zone widget"; | |
500 | } |
|
525 | } | |
501 |
|
526 | |||
502 | VisualizationDragWidget::mouseMoveEvent(event); |
|
527 | VisualizationDragWidget::mouseMoveEvent(event); | |
503 | } |
|
528 | } | |
504 |
|
529 | |||
505 | void VisualizationGraphWidget::onMouseWheel(QWheelEvent *event) noexcept |
|
530 | void VisualizationGraphWidget::onMouseWheel(QWheelEvent *event) noexcept | |
506 | { |
|
531 | { | |
507 | auto value = event->angleDelta().x() + event->angleDelta().y(); |
|
532 | auto value = event->angleDelta().x() + event->angleDelta().y(); | |
508 | if (value != 0) { |
|
533 | if (value != 0) { | |
509 |
|
534 | |||
510 | auto direction = value > 0 ? 1.0 : -1.0; |
|
535 | auto direction = value > 0 ? 1.0 : -1.0; | |
511 | auto isZoomX = event->modifiers().testFlag(HORIZONTAL_ZOOM_MODIFIER); |
|
536 | auto isZoomX = event->modifiers().testFlag(HORIZONTAL_ZOOM_MODIFIER); | |
512 | auto isZoomY = event->modifiers().testFlag(VERTICAL_ZOOM_MODIFIER); |
|
537 | auto isZoomY = event->modifiers().testFlag(VERTICAL_ZOOM_MODIFIER); | |
513 | impl->m_IsCalibration = event->modifiers().testFlag(VERTICAL_PAN_MODIFIER); |
|
538 | impl->m_IsCalibration = event->modifiers().testFlag(VERTICAL_PAN_MODIFIER); | |
514 |
|
539 | |||
515 | auto zoomOrientations = QFlags<Qt::Orientation>{}; |
|
540 | auto zoomOrientations = QFlags<Qt::Orientation>{}; | |
516 | zoomOrientations.setFlag(Qt::Horizontal, isZoomX); |
|
541 | zoomOrientations.setFlag(Qt::Horizontal, isZoomX); | |
517 | zoomOrientations.setFlag(Qt::Vertical, isZoomY); |
|
542 | zoomOrientations.setFlag(Qt::Vertical, isZoomY); | |
518 |
|
543 | |||
519 | ui->widget->axisRect()->setRangeZoom(zoomOrientations); |
|
544 | ui->widget->axisRect()->setRangeZoom(zoomOrientations); | |
520 |
|
545 | |||
521 | if (!isZoomX && !isZoomY) { |
|
546 | if (!isZoomX && !isZoomY) { | |
522 | auto axis = plot().axisRect()->axis(QCPAxis::atBottom); |
|
547 | auto axis = plot().axisRect()->axis(QCPAxis::atBottom); | |
523 | auto diff = direction * (axis->range().size() * (PAN_SPEED / 100.0)); |
|
548 | auto diff = direction * (axis->range().size() * (PAN_SPEED / 100.0)); | |
524 |
|
549 | |||
525 | axis->setRange(axis->range() + diff); |
|
550 | axis->setRange(axis->range() + diff); | |
526 |
|
551 | |||
527 | if (plot().noAntialiasingOnDrag()) { |
|
552 | if (plot().noAntialiasingOnDrag()) { | |
528 | plot().setNotAntialiasedElements(QCP::aeAll); |
|
553 | plot().setNotAntialiasedElements(QCP::aeAll); | |
529 | } |
|
554 | } | |
530 |
|
555 | |||
531 | plot().replot(QCustomPlot::rpQueuedReplot); |
|
556 | plot().replot(QCustomPlot::rpQueuedReplot); | |
532 | } |
|
557 | } | |
533 | } |
|
558 | } | |
534 | } |
|
559 | } | |
535 |
|
560 | |||
536 | void VisualizationGraphWidget::onMousePress(QMouseEvent *event) noexcept |
|
561 | void VisualizationGraphWidget::onMousePress(QMouseEvent *event) noexcept | |
537 | { |
|
562 | { | |
538 | if (sqpApp->plotsInteractionMode() == SqpApplication::PlotsInteractionMode::ZoomBox) { |
|
563 | if (sqpApp->plotsInteractionMode() == SqpApplication::PlotsInteractionMode::ZoomBox) { | |
539 | impl->startDrawingRect(event->pos(), plot()); |
|
564 | impl->startDrawingRect(event->pos(), plot()); | |
540 | } |
|
565 | } | |
541 |
|
566 | |||
542 | VisualizationDragWidget::mousePressEvent(event); |
|
567 | VisualizationDragWidget::mousePressEvent(event); | |
543 | } |
|
568 | } | |
544 |
|
569 | |||
545 | void VisualizationGraphWidget::onMouseRelease(QMouseEvent *event) noexcept |
|
570 | void VisualizationGraphWidget::onMouseRelease(QMouseEvent *event) noexcept | |
546 | { |
|
571 | { | |
547 | if (impl->m_DrawingRect) { |
|
572 | if (impl->m_DrawingRect) { | |
548 |
|
573 | |||
549 | auto axisX = plot().axisRect()->axis(QCPAxis::atBottom); |
|
574 | auto axisX = plot().axisRect()->axis(QCPAxis::atBottom); | |
550 | auto axisY = plot().axisRect()->axis(QCPAxis::atLeft); |
|
575 | auto axisY = plot().axisRect()->axis(QCPAxis::atLeft); | |
551 |
|
576 | |||
552 | auto newAxisXRange = QCPRange{impl->m_DrawingRect->topLeft->coords().x(), |
|
577 | auto newAxisXRange = QCPRange{impl->m_DrawingRect->topLeft->coords().x(), | |
553 | impl->m_DrawingRect->bottomRight->coords().x()}; |
|
578 | impl->m_DrawingRect->bottomRight->coords().x()}; | |
554 |
|
579 | |||
555 | auto newAxisYRange = QCPRange{impl->m_DrawingRect->topLeft->coords().y(), |
|
580 | auto newAxisYRange = QCPRange{impl->m_DrawingRect->topLeft->coords().y(), | |
556 | impl->m_DrawingRect->bottomRight->coords().y()}; |
|
581 | impl->m_DrawingRect->bottomRight->coords().y()}; | |
557 |
|
582 | |||
558 | impl->removeDrawingRect(plot()); |
|
583 | impl->removeDrawingRect(plot()); | |
559 |
|
584 | |||
560 | if (newAxisXRange.size() > axisX->range().size() * (ZOOM_BOX_MIN_SIZE / 100.0) |
|
585 | if (newAxisXRange.size() > axisX->range().size() * (ZOOM_BOX_MIN_SIZE / 100.0) | |
561 | && newAxisYRange.size() > axisY->range().size() * (ZOOM_BOX_MIN_SIZE / 100.0)) { |
|
586 | && newAxisYRange.size() > axisY->range().size() * (ZOOM_BOX_MIN_SIZE / 100.0)) { | |
562 | axisX->setRange(newAxisXRange); |
|
587 | axisX->setRange(newAxisXRange); | |
563 | axisY->setRange(newAxisYRange); |
|
588 | axisY->setRange(newAxisYRange); | |
564 |
|
589 | |||
565 | plot().replot(QCustomPlot::rpQueuedReplot); |
|
590 | plot().replot(QCustomPlot::rpQueuedReplot); | |
566 | } |
|
591 | } | |
567 | } |
|
592 | } | |
568 |
|
593 | |||
569 | impl->m_IsCalibration = false; |
|
594 | impl->m_IsCalibration = false; | |
570 | } |
|
595 | } | |
571 |
|
596 | |||
572 | void VisualizationGraphWidget::onDataCacheVariableUpdated() |
|
597 | void VisualizationGraphWidget::onDataCacheVariableUpdated() | |
573 | { |
|
598 | { | |
574 | auto graphRange = ui->widget->xAxis->range(); |
|
599 | auto graphRange = ui->widget->xAxis->range(); | |
575 | auto dateTime = SqpRange{graphRange.lower, graphRange.upper}; |
|
600 | auto dateTime = SqpRange{graphRange.lower, graphRange.upper}; | |
576 |
|
601 | |||
577 | for (auto &variableEntry : impl->m_VariableToPlotMultiMap) { |
|
602 | for (auto &variableEntry : impl->m_VariableToPlotMultiMap) { | |
578 | auto variable = variableEntry.first; |
|
603 | auto variable = variableEntry.first; | |
579 | qCDebug(LOG_VisualizationGraphWidget()) |
|
604 | qCDebug(LOG_VisualizationGraphWidget()) | |
580 | << "TORM: VisualizationGraphWidget::onDataCacheVariableUpdated S" << variable->range(); |
|
605 | << "TORM: VisualizationGraphWidget::onDataCacheVariableUpdated S" << variable->range(); | |
581 | qCDebug(LOG_VisualizationGraphWidget()) |
|
606 | qCDebug(LOG_VisualizationGraphWidget()) | |
582 | << "TORM: VisualizationGraphWidget::onDataCacheVariableUpdated E" << dateTime; |
|
607 | << "TORM: VisualizationGraphWidget::onDataCacheVariableUpdated E" << dateTime; | |
583 | if (dateTime.contains(variable->range()) || dateTime.intersect(variable->range())) { |
|
608 | if (dateTime.contains(variable->range()) || dateTime.intersect(variable->range())) { | |
584 |
|
|
609 | impl->updateData(variableEntry.second, variable->dataSeries(), variable->range()); | |
585 | variable->range()); |
|
|||
586 | } |
|
610 | } | |
587 | } |
|
611 | } | |
588 | } |
|
612 | } | |
589 |
|
613 | |||
590 | void VisualizationGraphWidget::onUpdateVarDisplaying(std::shared_ptr<Variable> variable, |
|
614 | void VisualizationGraphWidget::onUpdateVarDisplaying(std::shared_ptr<Variable> variable, | |
591 | const SqpRange &range) |
|
615 | const SqpRange &range) | |
592 | { |
|
616 | { | |
593 | auto it = impl->m_VariableToPlotMultiMap.find(variable); |
|
617 | auto it = impl->m_VariableToPlotMultiMap.find(variable); | |
594 | if (it != impl->m_VariableToPlotMultiMap.end()) { |
|
618 | if (it != impl->m_VariableToPlotMultiMap.end()) { | |
595 |
|
|
619 | impl->updateData(it->second, variable->dataSeries(), range); | |
596 | } |
|
620 | } | |
597 | } |
|
621 | } |
@@ -1,560 +1,583 | |||||
1 | #include "Visualization/VisualizationZoneWidget.h" |
|
1 | #include "Visualization/VisualizationZoneWidget.h" | |
2 |
|
2 | |||
3 | #include "Visualization/IVisualizationWidgetVisitor.h" |
|
3 | #include "Visualization/IVisualizationWidgetVisitor.h" | |
4 | #include "Visualization/QCustomPlotSynchronizer.h" |
|
4 | #include "Visualization/QCustomPlotSynchronizer.h" | |
5 | #include "Visualization/VisualizationGraphWidget.h" |
|
5 | #include "Visualization/VisualizationGraphWidget.h" | |
6 | #include "Visualization/VisualizationWidget.h" |
|
6 | #include "Visualization/VisualizationWidget.h" | |
7 | #include "ui_VisualizationZoneWidget.h" |
|
7 | #include "ui_VisualizationZoneWidget.h" | |
8 |
|
8 | |||
9 | #include "Common/MimeTypesDef.h" |
|
9 | #include "Common/MimeTypesDef.h" | |
10 | #include "Common/VisualizationDef.h" |
|
10 | #include "Common/VisualizationDef.h" | |
11 |
|
11 | |||
12 | #include <Data/SqpRange.h> |
|
12 | #include <Data/SqpRange.h> | |
13 | #include <Time/TimeController.h> |
|
13 | #include <Time/TimeController.h> | |
14 | #include <Variable/Variable.h> |
|
14 | #include <Variable/Variable.h> | |
15 | #include <Variable/VariableController.h> |
|
15 | #include <Variable/VariableController.h> | |
16 |
|
16 | |||
17 | #include <Visualization/operations/FindVariableOperation.h> |
|
17 | #include <Visualization/operations/FindVariableOperation.h> | |
18 |
|
18 | |||
19 | #include <DragAndDrop/DragDropHelper.h> |
|
19 | #include <DragAndDrop/DragDropHelper.h> | |
20 | #include <QUuid> |
|
20 | #include <QUuid> | |
21 | #include <SqpApplication.h> |
|
21 | #include <SqpApplication.h> | |
22 | #include <cmath> |
|
22 | #include <cmath> | |
23 |
|
23 | |||
24 | #include <QLayout> |
|
24 | #include <QLayout> | |
25 |
|
25 | |||
26 | Q_LOGGING_CATEGORY(LOG_VisualizationZoneWidget, "VisualizationZoneWidget") |
|
26 | Q_LOGGING_CATEGORY(LOG_VisualizationZoneWidget, "VisualizationZoneWidget") | |
27 |
|
27 | |||
28 | namespace { |
|
28 | namespace { | |
29 |
|
29 | |||
30 |
|
30 | |||
31 | /// Generates a default name for a new graph, according to the number of graphs already displayed in |
|
31 | /// Generates a default name for a new graph, according to the number of graphs already displayed in | |
32 | /// the zone |
|
32 | /// the zone | |
33 | QString defaultGraphName(const QLayout &layout) |
|
33 | QString defaultGraphName(const QLayout &layout) | |
34 | { |
|
34 | { | |
35 | auto count = 0; |
|
35 | auto count = 0; | |
36 | for (auto i = 0; i < layout.count(); ++i) { |
|
36 | for (auto i = 0; i < layout.count(); ++i) { | |
37 | if (dynamic_cast<VisualizationGraphWidget *>(layout.itemAt(i)->widget())) { |
|
37 | if (dynamic_cast<VisualizationGraphWidget *>(layout.itemAt(i)->widget())) { | |
38 | count++; |
|
38 | count++; | |
39 | } |
|
39 | } | |
40 | } |
|
40 | } | |
41 |
|
41 | |||
42 | return QObject::tr("Graph %1").arg(count + 1); |
|
42 | return QObject::tr("Graph %1").arg(count + 1); | |
43 | } |
|
43 | } | |
44 |
|
44 | |||
45 | /** |
|
45 | /** | |
46 | * Applies a function to all graphs of the zone represented by its layout |
|
46 | * Applies a function to all graphs of the zone represented by its layout | |
47 | * @param layout the layout that contains graphs |
|
47 | * @param layout the layout that contains graphs | |
48 | * @param fun the function to apply to each graph |
|
48 | * @param fun the function to apply to each graph | |
49 | */ |
|
49 | */ | |
50 | template <typename Fun> |
|
50 | template <typename Fun> | |
51 | void processGraphs(QLayout &layout, Fun fun) |
|
51 | void processGraphs(QLayout &layout, Fun fun) | |
52 | { |
|
52 | { | |
53 | for (auto i = 0; i < layout.count(); ++i) { |
|
53 | for (auto i = 0; i < layout.count(); ++i) { | |
54 | if (auto item = layout.itemAt(i)) { |
|
54 | if (auto item = layout.itemAt(i)) { | |
55 | if (auto visualizationGraphWidget |
|
55 | if (auto visualizationGraphWidget | |
56 | = qobject_cast<VisualizationGraphWidget *>(item->widget())) { |
|
56 | = qobject_cast<VisualizationGraphWidget *>(item->widget())) { | |
57 | fun(*visualizationGraphWidget); |
|
57 | fun(*visualizationGraphWidget); | |
58 | } |
|
58 | } | |
59 | } |
|
59 | } | |
60 | } |
|
60 | } | |
61 | } |
|
61 | } | |
62 |
|
62 | |||
63 | } // namespace |
|
63 | } // namespace | |
64 |
|
64 | |||
65 | struct VisualizationZoneWidget::VisualizationZoneWidgetPrivate { |
|
65 | struct VisualizationZoneWidget::VisualizationZoneWidgetPrivate { | |
66 |
|
66 | |||
67 | explicit VisualizationZoneWidgetPrivate() |
|
67 | explicit VisualizationZoneWidgetPrivate() | |
68 | : m_SynchronisationGroupId{QUuid::createUuid()}, |
|
68 | : m_SynchronisationGroupId{QUuid::createUuid()}, | |
69 | m_Synchronizer{std::make_unique<QCustomPlotSynchronizer>()} |
|
69 | m_Synchronizer{std::make_unique<QCustomPlotSynchronizer>()} | |
70 | { |
|
70 | { | |
71 | } |
|
71 | } | |
72 | QUuid m_SynchronisationGroupId; |
|
72 | QUuid m_SynchronisationGroupId; | |
73 | std::unique_ptr<IGraphSynchronizer> m_Synchronizer; |
|
73 | std::unique_ptr<IGraphSynchronizer> m_Synchronizer; | |
74 |
|
74 | |||
75 | // Returns the first graph in the zone or nullptr if there is no graph inside |
|
75 | // Returns the first graph in the zone or nullptr if there is no graph inside | |
76 | VisualizationGraphWidget *firstGraph(const VisualizationZoneWidget *zoneWidget) const |
|
76 | VisualizationGraphWidget *firstGraph(const VisualizationZoneWidget *zoneWidget) const | |
77 | { |
|
77 | { | |
78 | VisualizationGraphWidget *firstGraph = nullptr; |
|
78 | VisualizationGraphWidget *firstGraph = nullptr; | |
79 | auto layout = zoneWidget->ui->dragDropContainer->layout(); |
|
79 | auto layout = zoneWidget->ui->dragDropContainer->layout(); | |
80 | if (layout->count() > 0) { |
|
80 | if (layout->count() > 0) { | |
81 | if (auto visualizationGraphWidget |
|
81 | if (auto visualizationGraphWidget | |
82 | = qobject_cast<VisualizationGraphWidget *>(layout->itemAt(0)->widget())) { |
|
82 | = qobject_cast<VisualizationGraphWidget *>(layout->itemAt(0)->widget())) { | |
83 | firstGraph = visualizationGraphWidget; |
|
83 | firstGraph = visualizationGraphWidget; | |
84 | } |
|
84 | } | |
85 | } |
|
85 | } | |
86 |
|
86 | |||
87 | return firstGraph; |
|
87 | return firstGraph; | |
88 | } |
|
88 | } | |
89 |
|
89 | |||
90 | void dropGraph(int index, VisualizationZoneWidget *zoneWidget); |
|
90 | void dropGraph(int index, VisualizationZoneWidget *zoneWidget); | |
91 | void dropVariables(const QList<std::shared_ptr<Variable> > &variables, int index, |
|
91 | void dropVariables(const QList<std::shared_ptr<Variable> > &variables, int index, | |
92 | VisualizationZoneWidget *zoneWidget); |
|
92 | VisualizationZoneWidget *zoneWidget); | |
93 | }; |
|
93 | }; | |
94 |
|
94 | |||
95 | VisualizationZoneWidget::VisualizationZoneWidget(const QString &name, QWidget *parent) |
|
95 | VisualizationZoneWidget::VisualizationZoneWidget(const QString &name, QWidget *parent) | |
96 | : VisualizationDragWidget{parent}, |
|
96 | : VisualizationDragWidget{parent}, | |
97 | ui{new Ui::VisualizationZoneWidget}, |
|
97 | ui{new Ui::VisualizationZoneWidget}, | |
98 | impl{spimpl::make_unique_impl<VisualizationZoneWidgetPrivate>()} |
|
98 | impl{spimpl::make_unique_impl<VisualizationZoneWidgetPrivate>()} | |
99 | { |
|
99 | { | |
100 | ui->setupUi(this); |
|
100 | ui->setupUi(this); | |
101 |
|
101 | |||
102 | ui->zoneNameLabel->setText(name); |
|
102 | ui->zoneNameLabel->setText(name); | |
103 |
|
103 | |||
104 | ui->dragDropContainer->setPlaceHolderType(DragDropHelper::PlaceHolderType::Graph); |
|
104 | ui->dragDropContainer->setPlaceHolderType(DragDropHelper::PlaceHolderType::Graph); | |
105 | ui->dragDropContainer->setMimeType(MIME_TYPE_GRAPH, |
|
105 | ui->dragDropContainer->setMimeType(MIME_TYPE_GRAPH, | |
106 | VisualizationDragDropContainer::DropBehavior::Inserted); |
|
106 | VisualizationDragDropContainer::DropBehavior::Inserted); | |
107 | ui->dragDropContainer->setMimeType( |
|
107 | ui->dragDropContainer->setMimeType( | |
108 | MIME_TYPE_VARIABLE_LIST, VisualizationDragDropContainer::DropBehavior::InsertedAndMerged); |
|
108 | MIME_TYPE_VARIABLE_LIST, VisualizationDragDropContainer::DropBehavior::InsertedAndMerged); | |
109 | ui->dragDropContainer->setMimeType(MIME_TYPE_TIME_RANGE, |
|
109 | ui->dragDropContainer->setMimeType(MIME_TYPE_TIME_RANGE, | |
110 | VisualizationDragDropContainer::DropBehavior::Merged); |
|
110 | VisualizationDragDropContainer::DropBehavior::Merged); | |
111 | ui->dragDropContainer->setMimeType(MIME_TYPE_ZONE, |
|
111 | ui->dragDropContainer->setMimeType(MIME_TYPE_ZONE, | |
112 | VisualizationDragDropContainer::DropBehavior::Forbidden); |
|
112 | VisualizationDragDropContainer::DropBehavior::Forbidden); | |
113 | ui->dragDropContainer->setAcceptMimeDataFunction([this](auto mimeData) { |
|
113 | ui->dragDropContainer->setAcceptMimeDataFunction([this](auto mimeData) { | |
114 | return sqpApp->dragDropHelper().checkMimeDataForVisualization(mimeData, |
|
114 | return sqpApp->dragDropHelper().checkMimeDataForVisualization(mimeData, | |
115 | ui->dragDropContainer); |
|
115 | ui->dragDropContainer); | |
116 | }); |
|
116 | }); | |
117 |
|
117 | |||
|
118 | auto acceptDragWidgetFun = [](auto dragWidget, auto mimeData) { | |||
|
119 | if (!mimeData) { | |||
|
120 | return false; | |||
|
121 | } | |||
|
122 | ||||
|
123 | if (mimeData->hasFormat(MIME_TYPE_VARIABLE_LIST)) { | |||
|
124 | auto variables = sqpApp->variableController().variablesForMimeData( | |||
|
125 | mimeData->data(MIME_TYPE_VARIABLE_LIST)); | |||
|
126 | ||||
|
127 | if (variables.count() != 1) { | |||
|
128 | return false; | |||
|
129 | } | |||
|
130 | auto variable = variables.first(); | |||
|
131 | ||||
|
132 | if (auto graphWidget = dynamic_cast<const VisualizationGraphWidget *>(dragWidget)) { | |||
|
133 | return graphWidget->canDrop(*variable); | |||
|
134 | } | |||
|
135 | } | |||
|
136 | ||||
|
137 | return true; | |||
|
138 | }; | |||
|
139 | ui->dragDropContainer->setAcceptDragWidgetFunction(acceptDragWidgetFun); | |||
|
140 | ||||
118 | connect(ui->dragDropContainer, &VisualizationDragDropContainer::dropOccuredInContainer, this, |
|
141 | connect(ui->dragDropContainer, &VisualizationDragDropContainer::dropOccuredInContainer, this, | |
119 | &VisualizationZoneWidget::dropMimeData); |
|
142 | &VisualizationZoneWidget::dropMimeData); | |
120 | connect(ui->dragDropContainer, &VisualizationDragDropContainer::dropOccuredOnWidget, this, |
|
143 | connect(ui->dragDropContainer, &VisualizationDragDropContainer::dropOccuredOnWidget, this, | |
121 | &VisualizationZoneWidget::dropMimeDataOnGraph); |
|
144 | &VisualizationZoneWidget::dropMimeDataOnGraph); | |
122 |
|
145 | |||
123 | // 'Close' options : widget is deleted when closed |
|
146 | // 'Close' options : widget is deleted when closed | |
124 | setAttribute(Qt::WA_DeleteOnClose); |
|
147 | setAttribute(Qt::WA_DeleteOnClose); | |
125 | connect(ui->closeButton, &QToolButton::clicked, this, &VisualizationZoneWidget::close); |
|
148 | connect(ui->closeButton, &QToolButton::clicked, this, &VisualizationZoneWidget::close); | |
126 | ui->closeButton->setIcon(sqpApp->style()->standardIcon(QStyle::SP_TitleBarCloseButton)); |
|
149 | ui->closeButton->setIcon(sqpApp->style()->standardIcon(QStyle::SP_TitleBarCloseButton)); | |
127 |
|
150 | |||
128 | // Synchronisation id |
|
151 | // Synchronisation id | |
129 | QMetaObject::invokeMethod(&sqpApp->variableController(), "onAddSynchronizationGroupId", |
|
152 | QMetaObject::invokeMethod(&sqpApp->variableController(), "onAddSynchronizationGroupId", | |
130 | Qt::QueuedConnection, Q_ARG(QUuid, impl->m_SynchronisationGroupId)); |
|
153 | Qt::QueuedConnection, Q_ARG(QUuid, impl->m_SynchronisationGroupId)); | |
131 | } |
|
154 | } | |
132 |
|
155 | |||
133 | VisualizationZoneWidget::~VisualizationZoneWidget() |
|
156 | VisualizationZoneWidget::~VisualizationZoneWidget() | |
134 | { |
|
157 | { | |
135 | delete ui; |
|
158 | delete ui; | |
136 | } |
|
159 | } | |
137 |
|
160 | |||
138 | void VisualizationZoneWidget::addGraph(VisualizationGraphWidget *graphWidget) |
|
161 | void VisualizationZoneWidget::addGraph(VisualizationGraphWidget *graphWidget) | |
139 | { |
|
162 | { | |
140 | // Synchronize new graph with others in the zone |
|
163 | // Synchronize new graph with others in the zone | |
141 | impl->m_Synchronizer->addGraph(*graphWidget); |
|
164 | impl->m_Synchronizer->addGraph(*graphWidget); | |
142 |
|
165 | |||
143 | ui->dragDropContainer->addDragWidget(graphWidget); |
|
166 | ui->dragDropContainer->addDragWidget(graphWidget); | |
144 | } |
|
167 | } | |
145 |
|
168 | |||
146 | void VisualizationZoneWidget::insertGraph(int index, VisualizationGraphWidget *graphWidget) |
|
169 | void VisualizationZoneWidget::insertGraph(int index, VisualizationGraphWidget *graphWidget) | |
147 | { |
|
170 | { | |
148 | // Synchronize new graph with others in the zone |
|
171 | // Synchronize new graph with others in the zone | |
149 | impl->m_Synchronizer->addGraph(*graphWidget); |
|
172 | impl->m_Synchronizer->addGraph(*graphWidget); | |
150 |
|
173 | |||
151 | ui->dragDropContainer->insertDragWidget(index, graphWidget); |
|
174 | ui->dragDropContainer->insertDragWidget(index, graphWidget); | |
152 | } |
|
175 | } | |
153 |
|
176 | |||
154 | VisualizationGraphWidget *VisualizationZoneWidget::createGraph(std::shared_ptr<Variable> variable) |
|
177 | VisualizationGraphWidget *VisualizationZoneWidget::createGraph(std::shared_ptr<Variable> variable) | |
155 | { |
|
178 | { | |
156 | return createGraph(variable, -1); |
|
179 | return createGraph(variable, -1); | |
157 | } |
|
180 | } | |
158 |
|
181 | |||
159 | VisualizationGraphWidget *VisualizationZoneWidget::createGraph(std::shared_ptr<Variable> variable, |
|
182 | VisualizationGraphWidget *VisualizationZoneWidget::createGraph(std::shared_ptr<Variable> variable, | |
160 | int index) |
|
183 | int index) | |
161 | { |
|
184 | { | |
162 | auto graphWidget |
|
185 | auto graphWidget | |
163 | = new VisualizationGraphWidget{defaultGraphName(*ui->dragDropContainer->layout()), this}; |
|
186 | = new VisualizationGraphWidget{defaultGraphName(*ui->dragDropContainer->layout()), this}; | |
164 |
|
187 | |||
165 |
|
188 | |||
166 | // Set graph properties |
|
189 | // Set graph properties | |
167 | graphWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); |
|
190 | graphWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); | |
168 | graphWidget->setMinimumHeight(GRAPH_MINIMUM_HEIGHT); |
|
191 | graphWidget->setMinimumHeight(GRAPH_MINIMUM_HEIGHT); | |
169 |
|
192 | |||
170 |
|
193 | |||
171 | // Lambda to synchronize zone widget |
|
194 | // Lambda to synchronize zone widget | |
172 | auto synchronizeZoneWidget = [this, graphWidget](const SqpRange &graphRange, |
|
195 | auto synchronizeZoneWidget = [this, graphWidget](const SqpRange &graphRange, | |
173 | const SqpRange &oldGraphRange) { |
|
196 | const SqpRange &oldGraphRange) { | |
174 |
|
197 | |||
175 | auto zoomType = VariableController::getZoomType(graphRange, oldGraphRange); |
|
198 | auto zoomType = VariableController::getZoomType(graphRange, oldGraphRange); | |
176 | auto frameLayout = ui->dragDropContainer->layout(); |
|
199 | auto frameLayout = ui->dragDropContainer->layout(); | |
177 | for (auto i = 0; i < frameLayout->count(); ++i) { |
|
200 | for (auto i = 0; i < frameLayout->count(); ++i) { | |
178 | auto graphChild |
|
201 | auto graphChild | |
179 | = dynamic_cast<VisualizationGraphWidget *>(frameLayout->itemAt(i)->widget()); |
|
202 | = dynamic_cast<VisualizationGraphWidget *>(frameLayout->itemAt(i)->widget()); | |
180 | if (graphChild && (graphChild != graphWidget)) { |
|
203 | if (graphChild && (graphChild != graphWidget)) { | |
181 |
|
204 | |||
182 | auto graphChildRange = graphChild->graphRange(); |
|
205 | auto graphChildRange = graphChild->graphRange(); | |
183 | switch (zoomType) { |
|
206 | switch (zoomType) { | |
184 | case AcquisitionZoomType::ZoomIn: { |
|
207 | case AcquisitionZoomType::ZoomIn: { | |
185 | auto deltaLeft = graphRange.m_TStart - oldGraphRange.m_TStart; |
|
208 | auto deltaLeft = graphRange.m_TStart - oldGraphRange.m_TStart; | |
186 | auto deltaRight = oldGraphRange.m_TEnd - graphRange.m_TEnd; |
|
209 | auto deltaRight = oldGraphRange.m_TEnd - graphRange.m_TEnd; | |
187 | graphChildRange.m_TStart += deltaLeft; |
|
210 | graphChildRange.m_TStart += deltaLeft; | |
188 | graphChildRange.m_TEnd -= deltaRight; |
|
211 | graphChildRange.m_TEnd -= deltaRight; | |
189 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: ZoomIn"); |
|
212 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: ZoomIn"); | |
190 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaLeft") |
|
213 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaLeft") | |
191 | << deltaLeft; |
|
214 | << deltaLeft; | |
192 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaRight") |
|
215 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaRight") | |
193 | << deltaRight; |
|
216 | << deltaRight; | |
194 | qCDebug(LOG_VisualizationZoneWidget()) |
|
217 | qCDebug(LOG_VisualizationZoneWidget()) | |
195 | << tr("TORM: dt") << graphRange.m_TEnd - graphRange.m_TStart; |
|
218 | << tr("TORM: dt") << graphRange.m_TEnd - graphRange.m_TStart; | |
196 |
|
219 | |||
197 | break; |
|
220 | break; | |
198 | } |
|
221 | } | |
199 |
|
222 | |||
200 | case AcquisitionZoomType::ZoomOut: { |
|
223 | case AcquisitionZoomType::ZoomOut: { | |
201 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: ZoomOut"); |
|
224 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: ZoomOut"); | |
202 | auto deltaLeft = oldGraphRange.m_TStart - graphRange.m_TStart; |
|
225 | auto deltaLeft = oldGraphRange.m_TStart - graphRange.m_TStart; | |
203 | auto deltaRight = graphRange.m_TEnd - oldGraphRange.m_TEnd; |
|
226 | auto deltaRight = graphRange.m_TEnd - oldGraphRange.m_TEnd; | |
204 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaLeft") |
|
227 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaLeft") | |
205 | << deltaLeft; |
|
228 | << deltaLeft; | |
206 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaRight") |
|
229 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: deltaRight") | |
207 | << deltaRight; |
|
230 | << deltaRight; | |
208 | qCDebug(LOG_VisualizationZoneWidget()) |
|
231 | qCDebug(LOG_VisualizationZoneWidget()) | |
209 | << tr("TORM: dt") << graphRange.m_TEnd - graphRange.m_TStart; |
|
232 | << tr("TORM: dt") << graphRange.m_TEnd - graphRange.m_TStart; | |
210 | graphChildRange.m_TStart -= deltaLeft; |
|
233 | graphChildRange.m_TStart -= deltaLeft; | |
211 | graphChildRange.m_TEnd += deltaRight; |
|
234 | graphChildRange.m_TEnd += deltaRight; | |
212 | break; |
|
235 | break; | |
213 | } |
|
236 | } | |
214 | case AcquisitionZoomType::PanRight: { |
|
237 | case AcquisitionZoomType::PanRight: { | |
215 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: PanRight"); |
|
238 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: PanRight"); | |
216 | auto deltaLeft = graphRange.m_TStart - oldGraphRange.m_TStart; |
|
239 | auto deltaLeft = graphRange.m_TStart - oldGraphRange.m_TStart; | |
217 | auto deltaRight = graphRange.m_TEnd - oldGraphRange.m_TEnd; |
|
240 | auto deltaRight = graphRange.m_TEnd - oldGraphRange.m_TEnd; | |
218 | graphChildRange.m_TStart += deltaLeft; |
|
241 | graphChildRange.m_TStart += deltaLeft; | |
219 | graphChildRange.m_TEnd += deltaRight; |
|
242 | graphChildRange.m_TEnd += deltaRight; | |
220 | qCDebug(LOG_VisualizationZoneWidget()) |
|
243 | qCDebug(LOG_VisualizationZoneWidget()) | |
221 | << tr("TORM: dt") << graphRange.m_TEnd - graphRange.m_TStart; |
|
244 | << tr("TORM: dt") << graphRange.m_TEnd - graphRange.m_TStart; | |
222 | break; |
|
245 | break; | |
223 | } |
|
246 | } | |
224 | case AcquisitionZoomType::PanLeft: { |
|
247 | case AcquisitionZoomType::PanLeft: { | |
225 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: PanLeft"); |
|
248 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: PanLeft"); | |
226 | auto deltaLeft = oldGraphRange.m_TStart - graphRange.m_TStart; |
|
249 | auto deltaLeft = oldGraphRange.m_TStart - graphRange.m_TStart; | |
227 | auto deltaRight = oldGraphRange.m_TEnd - graphRange.m_TEnd; |
|
250 | auto deltaRight = oldGraphRange.m_TEnd - graphRange.m_TEnd; | |
228 | graphChildRange.m_TStart -= deltaLeft; |
|
251 | graphChildRange.m_TStart -= deltaLeft; | |
229 | graphChildRange.m_TEnd -= deltaRight; |
|
252 | graphChildRange.m_TEnd -= deltaRight; | |
230 | break; |
|
253 | break; | |
231 | } |
|
254 | } | |
232 | case AcquisitionZoomType::Unknown: { |
|
255 | case AcquisitionZoomType::Unknown: { | |
233 | qCDebug(LOG_VisualizationZoneWidget()) |
|
256 | qCDebug(LOG_VisualizationZoneWidget()) | |
234 | << tr("Impossible to synchronize: zoom type unknown"); |
|
257 | << tr("Impossible to synchronize: zoom type unknown"); | |
235 | break; |
|
258 | break; | |
236 | } |
|
259 | } | |
237 | default: |
|
260 | default: | |
238 | qCCritical(LOG_VisualizationZoneWidget()) |
|
261 | qCCritical(LOG_VisualizationZoneWidget()) | |
239 | << tr("Impossible to synchronize: zoom type not take into account"); |
|
262 | << tr("Impossible to synchronize: zoom type not take into account"); | |
240 | // No action |
|
263 | // No action | |
241 | break; |
|
264 | break; | |
242 | } |
|
265 | } | |
243 | graphChild->enableAcquisition(false); |
|
266 | graphChild->enableAcquisition(false); | |
244 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: Range before: ") |
|
267 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: Range before: ") | |
245 | << graphChild->graphRange(); |
|
268 | << graphChild->graphRange(); | |
246 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: Range after : ") |
|
269 | qCDebug(LOG_VisualizationZoneWidget()) << tr("TORM: Range after : ") | |
247 | << graphChildRange; |
|
270 | << graphChildRange; | |
248 | qCDebug(LOG_VisualizationZoneWidget()) |
|
271 | qCDebug(LOG_VisualizationZoneWidget()) | |
249 | << tr("TORM: child dt") << graphChildRange.m_TEnd - graphChildRange.m_TStart; |
|
272 | << tr("TORM: child dt") << graphChildRange.m_TEnd - graphChildRange.m_TStart; | |
250 | graphChild->setGraphRange(graphChildRange); |
|
273 | graphChild->setGraphRange(graphChildRange); | |
251 | graphChild->enableAcquisition(true); |
|
274 | graphChild->enableAcquisition(true); | |
252 | } |
|
275 | } | |
253 | } |
|
276 | } | |
254 | }; |
|
277 | }; | |
255 |
|
278 | |||
256 | // connection for synchronization |
|
279 | // connection for synchronization | |
257 | connect(graphWidget, &VisualizationGraphWidget::synchronize, synchronizeZoneWidget); |
|
280 | connect(graphWidget, &VisualizationGraphWidget::synchronize, synchronizeZoneWidget); | |
258 | connect(graphWidget, &VisualizationGraphWidget::variableAdded, this, |
|
281 | connect(graphWidget, &VisualizationGraphWidget::variableAdded, this, | |
259 | &VisualizationZoneWidget::onVariableAdded); |
|
282 | &VisualizationZoneWidget::onVariableAdded); | |
260 | connect(graphWidget, &VisualizationGraphWidget::variableAboutToBeRemoved, this, |
|
283 | connect(graphWidget, &VisualizationGraphWidget::variableAboutToBeRemoved, this, | |
261 | &VisualizationZoneWidget::onVariableAboutToBeRemoved); |
|
284 | &VisualizationZoneWidget::onVariableAboutToBeRemoved); | |
262 |
|
285 | |||
263 | auto range = SqpRange{}; |
|
286 | auto range = SqpRange{}; | |
264 | if (auto firstGraph = impl->firstGraph(this)) { |
|
287 | if (auto firstGraph = impl->firstGraph(this)) { | |
265 | // Case of a new graph in a existant zone |
|
288 | // Case of a new graph in a existant zone | |
266 | range = firstGraph->graphRange(); |
|
289 | range = firstGraph->graphRange(); | |
267 | } |
|
290 | } | |
268 | else { |
|
291 | else { | |
269 | // Case of a new graph as the first of the zone |
|
292 | // Case of a new graph as the first of the zone | |
270 | range = variable->range(); |
|
293 | range = variable->range(); | |
271 | } |
|
294 | } | |
272 |
|
295 | |||
273 | this->insertGraph(index, graphWidget); |
|
296 | this->insertGraph(index, graphWidget); | |
274 |
|
297 | |||
275 | graphWidget->addVariable(variable, range); |
|
298 | graphWidget->addVariable(variable, range); | |
276 | graphWidget->setYRange(variable); |
|
299 | graphWidget->setYRange(variable); | |
277 |
|
300 | |||
278 | return graphWidget; |
|
301 | return graphWidget; | |
279 | } |
|
302 | } | |
280 |
|
303 | |||
281 | VisualizationGraphWidget * |
|
304 | VisualizationGraphWidget * | |
282 | VisualizationZoneWidget::createGraph(const QList<std::shared_ptr<Variable> > variables, int index) |
|
305 | VisualizationZoneWidget::createGraph(const QList<std::shared_ptr<Variable> > variables, int index) | |
283 | { |
|
306 | { | |
284 | if (variables.isEmpty()) { |
|
307 | if (variables.isEmpty()) { | |
285 | return nullptr; |
|
308 | return nullptr; | |
286 | } |
|
309 | } | |
287 |
|
310 | |||
288 | auto graphWidget = createGraph(variables.first(), index); |
|
311 | auto graphWidget = createGraph(variables.first(), index); | |
289 | for (auto variableIt = variables.cbegin() + 1; variableIt != variables.cend(); ++variableIt) { |
|
312 | for (auto variableIt = variables.cbegin() + 1; variableIt != variables.cend(); ++variableIt) { | |
290 | graphWidget->addVariable(*variableIt, graphWidget->graphRange()); |
|
313 | graphWidget->addVariable(*variableIt, graphWidget->graphRange()); | |
291 | } |
|
314 | } | |
292 |
|
315 | |||
293 | return graphWidget; |
|
316 | return graphWidget; | |
294 | } |
|
317 | } | |
295 |
|
318 | |||
296 | void VisualizationZoneWidget::accept(IVisualizationWidgetVisitor *visitor) |
|
319 | void VisualizationZoneWidget::accept(IVisualizationWidgetVisitor *visitor) | |
297 | { |
|
320 | { | |
298 | if (visitor) { |
|
321 | if (visitor) { | |
299 | visitor->visitEnter(this); |
|
322 | visitor->visitEnter(this); | |
300 |
|
323 | |||
301 | // Apply visitor to graph children: widgets different from graphs are not visited (no |
|
324 | // Apply visitor to graph children: widgets different from graphs are not visited (no | |
302 | // action) |
|
325 | // action) | |
303 | processGraphs( |
|
326 | processGraphs( | |
304 | *ui->dragDropContainer->layout(), |
|
327 | *ui->dragDropContainer->layout(), | |
305 | [visitor](VisualizationGraphWidget &graphWidget) { graphWidget.accept(visitor); }); |
|
328 | [visitor](VisualizationGraphWidget &graphWidget) { graphWidget.accept(visitor); }); | |
306 |
|
329 | |||
307 | visitor->visitLeave(this); |
|
330 | visitor->visitLeave(this); | |
308 | } |
|
331 | } | |
309 | else { |
|
332 | else { | |
310 | qCCritical(LOG_VisualizationZoneWidget()) << tr("Can't visit widget : the visitor is null"); |
|
333 | qCCritical(LOG_VisualizationZoneWidget()) << tr("Can't visit widget : the visitor is null"); | |
311 | } |
|
334 | } | |
312 | } |
|
335 | } | |
313 |
|
336 | |||
314 | bool VisualizationZoneWidget::canDrop(const Variable &variable) const |
|
337 | bool VisualizationZoneWidget::canDrop(const Variable &variable) const | |
315 | { |
|
338 | { | |
316 | // A tab can always accomodate a variable |
|
339 | // A tab can always accomodate a variable | |
317 | Q_UNUSED(variable); |
|
340 | Q_UNUSED(variable); | |
318 | return true; |
|
341 | return true; | |
319 | } |
|
342 | } | |
320 |
|
343 | |||
321 | bool VisualizationZoneWidget::contains(const Variable &variable) const |
|
344 | bool VisualizationZoneWidget::contains(const Variable &variable) const | |
322 | { |
|
345 | { | |
323 | Q_UNUSED(variable); |
|
346 | Q_UNUSED(variable); | |
324 | return false; |
|
347 | return false; | |
325 | } |
|
348 | } | |
326 |
|
349 | |||
327 | QString VisualizationZoneWidget::name() const |
|
350 | QString VisualizationZoneWidget::name() const | |
328 | { |
|
351 | { | |
329 | return ui->zoneNameLabel->text(); |
|
352 | return ui->zoneNameLabel->text(); | |
330 | } |
|
353 | } | |
331 |
|
354 | |||
332 | QMimeData *VisualizationZoneWidget::mimeData() const |
|
355 | QMimeData *VisualizationZoneWidget::mimeData() const | |
333 | { |
|
356 | { | |
334 | auto mimeData = new QMimeData; |
|
357 | auto mimeData = new QMimeData; | |
335 | mimeData->setData(MIME_TYPE_ZONE, QByteArray{}); |
|
358 | mimeData->setData(MIME_TYPE_ZONE, QByteArray{}); | |
336 |
|
359 | |||
337 | if (auto firstGraph = impl->firstGraph(this)) { |
|
360 | if (auto firstGraph = impl->firstGraph(this)) { | |
338 | auto timeRangeData = TimeController::mimeDataForTimeRange(firstGraph->graphRange()); |
|
361 | auto timeRangeData = TimeController::mimeDataForTimeRange(firstGraph->graphRange()); | |
339 | mimeData->setData(MIME_TYPE_TIME_RANGE, timeRangeData); |
|
362 | mimeData->setData(MIME_TYPE_TIME_RANGE, timeRangeData); | |
340 | } |
|
363 | } | |
341 |
|
364 | |||
342 | return mimeData; |
|
365 | return mimeData; | |
343 | } |
|
366 | } | |
344 |
|
367 | |||
345 | bool VisualizationZoneWidget::isDragAllowed() const |
|
368 | bool VisualizationZoneWidget::isDragAllowed() const | |
346 | { |
|
369 | { | |
347 | return true; |
|
370 | return true; | |
348 | } |
|
371 | } | |
349 |
|
372 | |||
350 | void VisualizationZoneWidget::notifyMouseMoveInGraph(const QPointF &graphPosition, |
|
373 | void VisualizationZoneWidget::notifyMouseMoveInGraph(const QPointF &graphPosition, | |
351 | const QPointF &plotPosition, |
|
374 | const QPointF &plotPosition, | |
352 | VisualizationGraphWidget *graphWidget) |
|
375 | VisualizationGraphWidget *graphWidget) | |
353 | { |
|
376 | { | |
354 | processGraphs(*ui->dragDropContainer->layout(), [&graphPosition, &plotPosition, &graphWidget]( |
|
377 | processGraphs(*ui->dragDropContainer->layout(), [&graphPosition, &plotPosition, &graphWidget]( | |
355 | VisualizationGraphWidget &processedGraph) { |
|
378 | VisualizationGraphWidget &processedGraph) { | |
356 |
|
379 | |||
357 | switch (sqpApp->plotsCursorMode()) { |
|
380 | switch (sqpApp->plotsCursorMode()) { | |
358 | case SqpApplication::PlotsCursorMode::Vertical: |
|
381 | case SqpApplication::PlotsCursorMode::Vertical: | |
359 | processedGraph.removeHorizontalCursor(); |
|
382 | processedGraph.removeHorizontalCursor(); | |
360 | processedGraph.addVerticalCursorAtViewportPosition(graphPosition.x()); |
|
383 | processedGraph.addVerticalCursorAtViewportPosition(graphPosition.x()); | |
361 | break; |
|
384 | break; | |
362 | case SqpApplication::PlotsCursorMode::Temporal: |
|
385 | case SqpApplication::PlotsCursorMode::Temporal: | |
363 | processedGraph.addVerticalCursor(plotPosition.x()); |
|
386 | processedGraph.addVerticalCursor(plotPosition.x()); | |
364 | processedGraph.removeHorizontalCursor(); |
|
387 | processedGraph.removeHorizontalCursor(); | |
365 | break; |
|
388 | break; | |
366 | case SqpApplication::PlotsCursorMode::Horizontal: |
|
389 | case SqpApplication::PlotsCursorMode::Horizontal: | |
367 | processedGraph.removeVerticalCursor(); |
|
390 | processedGraph.removeVerticalCursor(); | |
368 | if (&processedGraph == graphWidget) { |
|
391 | if (&processedGraph == graphWidget) { | |
369 | processedGraph.addHorizontalCursorAtViewportPosition(graphPosition.y()); |
|
392 | processedGraph.addHorizontalCursorAtViewportPosition(graphPosition.y()); | |
370 | } |
|
393 | } | |
371 | else { |
|
394 | else { | |
372 | processedGraph.removeHorizontalCursor(); |
|
395 | processedGraph.removeHorizontalCursor(); | |
373 | } |
|
396 | } | |
374 | break; |
|
397 | break; | |
375 | case SqpApplication::PlotsCursorMode::Cross: |
|
398 | case SqpApplication::PlotsCursorMode::Cross: | |
376 | if (&processedGraph == graphWidget) { |
|
399 | if (&processedGraph == graphWidget) { | |
377 | processedGraph.addVerticalCursorAtViewportPosition(graphPosition.x()); |
|
400 | processedGraph.addVerticalCursorAtViewportPosition(graphPosition.x()); | |
378 | processedGraph.addHorizontalCursorAtViewportPosition(graphPosition.y()); |
|
401 | processedGraph.addHorizontalCursorAtViewportPosition(graphPosition.y()); | |
379 | } |
|
402 | } | |
380 | else { |
|
403 | else { | |
381 | processedGraph.removeHorizontalCursor(); |
|
404 | processedGraph.removeHorizontalCursor(); | |
382 | processedGraph.removeVerticalCursor(); |
|
405 | processedGraph.removeVerticalCursor(); | |
383 | } |
|
406 | } | |
384 | break; |
|
407 | break; | |
385 | case SqpApplication::PlotsCursorMode::NoCursor: |
|
408 | case SqpApplication::PlotsCursorMode::NoCursor: | |
386 | processedGraph.removeHorizontalCursor(); |
|
409 | processedGraph.removeHorizontalCursor(); | |
387 | processedGraph.removeVerticalCursor(); |
|
410 | processedGraph.removeVerticalCursor(); | |
388 | break; |
|
411 | break; | |
389 | } |
|
412 | } | |
390 |
|
413 | |||
391 |
|
414 | |||
392 | }); |
|
415 | }); | |
393 | } |
|
416 | } | |
394 |
|
417 | |||
395 | void VisualizationZoneWidget::notifyMouseLeaveGraph(VisualizationGraphWidget *graphWidget) |
|
418 | void VisualizationZoneWidget::notifyMouseLeaveGraph(VisualizationGraphWidget *graphWidget) | |
396 | { |
|
419 | { | |
397 | processGraphs(*ui->dragDropContainer->layout(), [](VisualizationGraphWidget &processedGraph) { |
|
420 | processGraphs(*ui->dragDropContainer->layout(), [](VisualizationGraphWidget &processedGraph) { | |
398 | processedGraph.removeHorizontalCursor(); |
|
421 | processedGraph.removeHorizontalCursor(); | |
399 | processedGraph.removeVerticalCursor(); |
|
422 | processedGraph.removeVerticalCursor(); | |
400 | }); |
|
423 | }); | |
401 | } |
|
424 | } | |
402 |
|
425 | |||
403 | void VisualizationZoneWidget::closeEvent(QCloseEvent *event) |
|
426 | void VisualizationZoneWidget::closeEvent(QCloseEvent *event) | |
404 | { |
|
427 | { | |
405 | // Closes graphs in the zone |
|
428 | // Closes graphs in the zone | |
406 | processGraphs(*ui->dragDropContainer->layout(), |
|
429 | processGraphs(*ui->dragDropContainer->layout(), | |
407 | [](VisualizationGraphWidget &graphWidget) { graphWidget.close(); }); |
|
430 | [](VisualizationGraphWidget &graphWidget) { graphWidget.close(); }); | |
408 |
|
431 | |||
409 | // Delete synchronization group from variable controller |
|
432 | // Delete synchronization group from variable controller | |
410 | QMetaObject::invokeMethod(&sqpApp->variableController(), "onRemoveSynchronizationGroupId", |
|
433 | QMetaObject::invokeMethod(&sqpApp->variableController(), "onRemoveSynchronizationGroupId", | |
411 | Qt::QueuedConnection, Q_ARG(QUuid, impl->m_SynchronisationGroupId)); |
|
434 | Qt::QueuedConnection, Q_ARG(QUuid, impl->m_SynchronisationGroupId)); | |
412 |
|
435 | |||
413 | QWidget::closeEvent(event); |
|
436 | QWidget::closeEvent(event); | |
414 | } |
|
437 | } | |
415 |
|
438 | |||
416 | void VisualizationZoneWidget::onVariableAdded(std::shared_ptr<Variable> variable) |
|
439 | void VisualizationZoneWidget::onVariableAdded(std::shared_ptr<Variable> variable) | |
417 | { |
|
440 | { | |
418 | QMetaObject::invokeMethod(&sqpApp->variableController(), "onAddSynchronized", |
|
441 | QMetaObject::invokeMethod(&sqpApp->variableController(), "onAddSynchronized", | |
419 | Qt::QueuedConnection, Q_ARG(std::shared_ptr<Variable>, variable), |
|
442 | Qt::QueuedConnection, Q_ARG(std::shared_ptr<Variable>, variable), | |
420 | Q_ARG(QUuid, impl->m_SynchronisationGroupId)); |
|
443 | Q_ARG(QUuid, impl->m_SynchronisationGroupId)); | |
421 | } |
|
444 | } | |
422 |
|
445 | |||
423 | void VisualizationZoneWidget::onVariableAboutToBeRemoved(std::shared_ptr<Variable> variable) |
|
446 | void VisualizationZoneWidget::onVariableAboutToBeRemoved(std::shared_ptr<Variable> variable) | |
424 | { |
|
447 | { | |
425 | QMetaObject::invokeMethod(&sqpApp->variableController(), "desynchronize", Qt::QueuedConnection, |
|
448 | QMetaObject::invokeMethod(&sqpApp->variableController(), "desynchronize", Qt::QueuedConnection, | |
426 | Q_ARG(std::shared_ptr<Variable>, variable), |
|
449 | Q_ARG(std::shared_ptr<Variable>, variable), | |
427 | Q_ARG(QUuid, impl->m_SynchronisationGroupId)); |
|
450 | Q_ARG(QUuid, impl->m_SynchronisationGroupId)); | |
428 | } |
|
451 | } | |
429 |
|
452 | |||
430 | void VisualizationZoneWidget::dropMimeData(int index, const QMimeData *mimeData) |
|
453 | void VisualizationZoneWidget::dropMimeData(int index, const QMimeData *mimeData) | |
431 | { |
|
454 | { | |
432 | if (mimeData->hasFormat(MIME_TYPE_GRAPH)) { |
|
455 | if (mimeData->hasFormat(MIME_TYPE_GRAPH)) { | |
433 | impl->dropGraph(index, this); |
|
456 | impl->dropGraph(index, this); | |
434 | } |
|
457 | } | |
435 | else if (mimeData->hasFormat(MIME_TYPE_VARIABLE_LIST)) { |
|
458 | else if (mimeData->hasFormat(MIME_TYPE_VARIABLE_LIST)) { | |
436 | auto variables = sqpApp->variableController().variablesForMimeData( |
|
459 | auto variables = sqpApp->variableController().variablesForMimeData( | |
437 | mimeData->data(MIME_TYPE_VARIABLE_LIST)); |
|
460 | mimeData->data(MIME_TYPE_VARIABLE_LIST)); | |
438 | impl->dropVariables(variables, index, this); |
|
461 | impl->dropVariables(variables, index, this); | |
439 | } |
|
462 | } | |
440 | else { |
|
463 | else { | |
441 | qCWarning(LOG_VisualizationZoneWidget()) |
|
464 | qCWarning(LOG_VisualizationZoneWidget()) | |
442 | << tr("VisualizationZoneWidget::dropMimeData, unknown MIME data received."); |
|
465 | << tr("VisualizationZoneWidget::dropMimeData, unknown MIME data received."); | |
443 | } |
|
466 | } | |
444 | } |
|
467 | } | |
445 |
|
468 | |||
446 | void VisualizationZoneWidget::dropMimeDataOnGraph(VisualizationDragWidget *dragWidget, |
|
469 | void VisualizationZoneWidget::dropMimeDataOnGraph(VisualizationDragWidget *dragWidget, | |
447 | const QMimeData *mimeData) |
|
470 | const QMimeData *mimeData) | |
448 | { |
|
471 | { | |
449 | auto graphWidget = qobject_cast<VisualizationGraphWidget *>(dragWidget); |
|
472 | auto graphWidget = qobject_cast<VisualizationGraphWidget *>(dragWidget); | |
450 | if (!graphWidget) { |
|
473 | if (!graphWidget) { | |
451 | qCWarning(LOG_VisualizationZoneWidget()) |
|
474 | qCWarning(LOG_VisualizationZoneWidget()) | |
452 | << tr("VisualizationZoneWidget::dropMimeDataOnGraph, dropping in an unknown widget, " |
|
475 | << tr("VisualizationZoneWidget::dropMimeDataOnGraph, dropping in an unknown widget, " | |
453 | "drop aborted"); |
|
476 | "drop aborted"); | |
454 | Q_ASSERT(false); |
|
477 | Q_ASSERT(false); | |
455 | return; |
|
478 | return; | |
456 | } |
|
479 | } | |
457 |
|
480 | |||
458 | if (mimeData->hasFormat(MIME_TYPE_VARIABLE_LIST)) { |
|
481 | if (mimeData->hasFormat(MIME_TYPE_VARIABLE_LIST)) { | |
459 | auto variables = sqpApp->variableController().variablesForMimeData( |
|
482 | auto variables = sqpApp->variableController().variablesForMimeData( | |
460 | mimeData->data(MIME_TYPE_VARIABLE_LIST)); |
|
483 | mimeData->data(MIME_TYPE_VARIABLE_LIST)); | |
461 | for (const auto &var : variables) { |
|
484 | for (const auto &var : variables) { | |
462 | graphWidget->addVariable(var, graphWidget->graphRange()); |
|
485 | graphWidget->addVariable(var, graphWidget->graphRange()); | |
463 | } |
|
486 | } | |
464 | } |
|
487 | } | |
465 | else if (mimeData->hasFormat(MIME_TYPE_TIME_RANGE)) { |
|
488 | else if (mimeData->hasFormat(MIME_TYPE_TIME_RANGE)) { | |
466 | auto range = TimeController::timeRangeForMimeData(mimeData->data(MIME_TYPE_TIME_RANGE)); |
|
489 | auto range = TimeController::timeRangeForMimeData(mimeData->data(MIME_TYPE_TIME_RANGE)); | |
467 | graphWidget->setGraphRange(range); |
|
490 | graphWidget->setGraphRange(range); | |
468 | } |
|
491 | } | |
469 | else { |
|
492 | else { | |
470 | qCWarning(LOG_VisualizationZoneWidget()) |
|
493 | qCWarning(LOG_VisualizationZoneWidget()) | |
471 | << tr("VisualizationZoneWidget::dropMimeDataOnGraph, unknown MIME data received."); |
|
494 | << tr("VisualizationZoneWidget::dropMimeDataOnGraph, unknown MIME data received."); | |
472 | } |
|
495 | } | |
473 | } |
|
496 | } | |
474 |
|
497 | |||
475 | void VisualizationZoneWidget::VisualizationZoneWidgetPrivate::dropGraph( |
|
498 | void VisualizationZoneWidget::VisualizationZoneWidgetPrivate::dropGraph( | |
476 | int index, VisualizationZoneWidget *zoneWidget) |
|
499 | int index, VisualizationZoneWidget *zoneWidget) | |
477 | { |
|
500 | { | |
478 | auto &helper = sqpApp->dragDropHelper(); |
|
501 | auto &helper = sqpApp->dragDropHelper(); | |
479 |
|
502 | |||
480 | auto graphWidget = qobject_cast<VisualizationGraphWidget *>(helper.getCurrentDragWidget()); |
|
503 | auto graphWidget = qobject_cast<VisualizationGraphWidget *>(helper.getCurrentDragWidget()); | |
481 | if (!graphWidget) { |
|
504 | if (!graphWidget) { | |
482 | qCWarning(LOG_VisualizationZoneWidget()) |
|
505 | qCWarning(LOG_VisualizationZoneWidget()) | |
483 | << tr("VisualizationZoneWidget::dropGraph, drop aborted, the dropped graph is not " |
|
506 | << tr("VisualizationZoneWidget::dropGraph, drop aborted, the dropped graph is not " | |
484 | "found or invalid."); |
|
507 | "found or invalid."); | |
485 | Q_ASSERT(false); |
|
508 | Q_ASSERT(false); | |
486 | return; |
|
509 | return; | |
487 | } |
|
510 | } | |
488 |
|
511 | |||
489 | auto parentDragDropContainer |
|
512 | auto parentDragDropContainer | |
490 | = qobject_cast<VisualizationDragDropContainer *>(graphWidget->parentWidget()); |
|
513 | = qobject_cast<VisualizationDragDropContainer *>(graphWidget->parentWidget()); | |
491 | if (!parentDragDropContainer) { |
|
514 | if (!parentDragDropContainer) { | |
492 | qCWarning(LOG_VisualizationZoneWidget()) |
|
515 | qCWarning(LOG_VisualizationZoneWidget()) | |
493 | << tr("VisualizationZoneWidget::dropGraph, drop aborted, the parent container of " |
|
516 | << tr("VisualizationZoneWidget::dropGraph, drop aborted, the parent container of " | |
494 | "the dropped graph is not found."); |
|
517 | "the dropped graph is not found."); | |
495 | Q_ASSERT(false); |
|
518 | Q_ASSERT(false); | |
496 | return; |
|
519 | return; | |
497 | } |
|
520 | } | |
498 |
|
521 | |||
499 | const auto &variables = graphWidget->variables(); |
|
522 | const auto &variables = graphWidget->variables(); | |
500 |
|
523 | |||
501 | if (parentDragDropContainer != zoneWidget->ui->dragDropContainer && !variables.isEmpty()) { |
|
524 | if (parentDragDropContainer != zoneWidget->ui->dragDropContainer && !variables.isEmpty()) { | |
502 | // The drop didn't occur in the same zone |
|
525 | // The drop didn't occur in the same zone | |
503 |
|
526 | |||
504 | // Abort the requests for the variables (if any) |
|
527 | // Abort the requests for the variables (if any) | |
505 | // Commented, because it's not sure if it's needed or not |
|
528 | // Commented, because it's not sure if it's needed or not | |
506 | // for (const auto& var : variables) |
|
529 | // for (const auto& var : variables) | |
507 | //{ |
|
530 | //{ | |
508 | // sqpApp->variableController().onAbortProgressRequested(var); |
|
531 | // sqpApp->variableController().onAbortProgressRequested(var); | |
509 | //} |
|
532 | //} | |
510 |
|
533 | |||
511 | auto previousParentZoneWidget = graphWidget->parentZoneWidget(); |
|
534 | auto previousParentZoneWidget = graphWidget->parentZoneWidget(); | |
512 | auto nbGraph = parentDragDropContainer->countDragWidget(); |
|
535 | auto nbGraph = parentDragDropContainer->countDragWidget(); | |
513 | if (nbGraph == 1) { |
|
536 | if (nbGraph == 1) { | |
514 | // This is the only graph in the previous zone, close the zone |
|
537 | // This is the only graph in the previous zone, close the zone | |
515 | helper.delayedCloseWidget(previousParentZoneWidget); |
|
538 | helper.delayedCloseWidget(previousParentZoneWidget); | |
516 | } |
|
539 | } | |
517 | else { |
|
540 | else { | |
518 | // Close the graph |
|
541 | // Close the graph | |
519 | helper.delayedCloseWidget(graphWidget); |
|
542 | helper.delayedCloseWidget(graphWidget); | |
520 | } |
|
543 | } | |
521 |
|
544 | |||
522 | // Creates the new graph in the zone |
|
545 | // Creates the new graph in the zone | |
523 | zoneWidget->createGraph(variables, index); |
|
546 | zoneWidget->createGraph(variables, index); | |
524 | } |
|
547 | } | |
525 | else { |
|
548 | else { | |
526 | // The drop occurred in the same zone or the graph is empty |
|
549 | // The drop occurred in the same zone or the graph is empty | |
527 | // Simple move of the graph, no variable operation associated |
|
550 | // Simple move of the graph, no variable operation associated | |
528 | parentDragDropContainer->layout()->removeWidget(graphWidget); |
|
551 | parentDragDropContainer->layout()->removeWidget(graphWidget); | |
529 |
|
552 | |||
530 | if (variables.isEmpty() && parentDragDropContainer != zoneWidget->ui->dragDropContainer) { |
|
553 | if (variables.isEmpty() && parentDragDropContainer != zoneWidget->ui->dragDropContainer) { | |
531 | // The graph is empty and dropped in a different zone. |
|
554 | // The graph is empty and dropped in a different zone. | |
532 | // Take the range of the first graph in the zone (if existing). |
|
555 | // Take the range of the first graph in the zone (if existing). | |
533 | auto layout = zoneWidget->ui->dragDropContainer->layout(); |
|
556 | auto layout = zoneWidget->ui->dragDropContainer->layout(); | |
534 | if (layout->count() > 0) { |
|
557 | if (layout->count() > 0) { | |
535 | if (auto visualizationGraphWidget |
|
558 | if (auto visualizationGraphWidget | |
536 | = qobject_cast<VisualizationGraphWidget *>(layout->itemAt(0)->widget())) { |
|
559 | = qobject_cast<VisualizationGraphWidget *>(layout->itemAt(0)->widget())) { | |
537 | graphWidget->setGraphRange(visualizationGraphWidget->graphRange()); |
|
560 | graphWidget->setGraphRange(visualizationGraphWidget->graphRange()); | |
538 | } |
|
561 | } | |
539 | } |
|
562 | } | |
540 | } |
|
563 | } | |
541 |
|
564 | |||
542 | zoneWidget->ui->dragDropContainer->insertDragWidget(index, graphWidget); |
|
565 | zoneWidget->ui->dragDropContainer->insertDragWidget(index, graphWidget); | |
543 | } |
|
566 | } | |
544 | } |
|
567 | } | |
545 |
|
568 | |||
546 | void VisualizationZoneWidget::VisualizationZoneWidgetPrivate::dropVariables( |
|
569 | void VisualizationZoneWidget::VisualizationZoneWidgetPrivate::dropVariables( | |
547 | const QList<std::shared_ptr<Variable> > &variables, int index, |
|
570 | const QList<std::shared_ptr<Variable> > &variables, int index, | |
548 | VisualizationZoneWidget *zoneWidget) |
|
571 | VisualizationZoneWidget *zoneWidget) | |
549 | { |
|
572 | { | |
550 | // Note: the AcceptMimeDataFunction (set on the drop container) ensure there is a single and |
|
573 | // Note: the AcceptMimeDataFunction (set on the drop container) ensure there is a single and | |
551 | // compatible variable here |
|
574 | // compatible variable here | |
552 | if (variables.count() > 1) { |
|
575 | if (variables.count() > 1) { | |
553 | qCWarning(LOG_VisualizationZoneWidget()) |
|
576 | qCWarning(LOG_VisualizationZoneWidget()) | |
554 | << tr("VisualizationZoneWidget::dropVariables, dropping multiple variables, operation " |
|
577 | << tr("VisualizationZoneWidget::dropVariables, dropping multiple variables, operation " | |
555 | "aborted."); |
|
578 | "aborted."); | |
556 | return; |
|
579 | return; | |
557 | } |
|
580 | } | |
558 |
|
581 | |||
559 | zoneWidget->createGraph(variables, index); |
|
582 | zoneWidget->createGraph(variables, index); | |
560 | } |
|
583 | } |
@@ -1,9 +1,22 | |||||
1 | \.h:\d+:.IPSIS_S04.*found: ui |
|
1 | \.h:\d+:.IPSIS_S04.*found: ui | |
2 | qcustomplot\.h:\d+:.IPSIS |
|
2 | qcustomplot\.h:\d+:.IPSIS | |
3 | qcustomplot\.cpp:\d+:.IPSIS |
|
3 | qcustomplot\.cpp:\d+:.IPSIS | |
4 |
|
4 | |||
5 | # Ignore false positive relative to App macro |
|
5 | # Ignore false positive relative to App macro | |
6 | SqpApplication\.h:\d+:.IPSIS_S03.*found: sqpApp |
|
6 | SqpApplication\.h:\d+:.IPSIS_S03.*found: sqpApp | |
7 | SqpApplication\.h:\d+:.IPSIS_S04_VARIABLE.*found: sqpApp |
|
7 | SqpApplication\.h:\d+:.IPSIS_S04_VARIABLE.*found: sqpApp | |
8 |
|
8 | |||
|
9 | # Ignore false positive relative to iterators | |||
|
10 | QCPColorMapIterator\.h:\d+:.*IPSIS_S04_VARIABLE.*found: (forward_iterator_tag) | |||
|
11 | QCPColorMapIterator\.h:\d+:.*IPSIS_S04_VARIABLE.*found: (ptrdiff_t) | |||
|
12 | QCPColorMapIterator\.h:\d+:.*IPSIS_S04_VARIABLE.*found: (value_type) | |||
|
13 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (iterator_category) | |||
|
14 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (forward_iterator_tag) | |||
|
15 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (value_type) | |||
|
16 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (difference_type) | |||
|
17 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (ptrdiff_t) | |||
|
18 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (pointer) | |||
|
19 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (reference) | |||
|
20 | QCPColorMapIterator\.h:\d+:.*IPSIS_S06.*found: (value_type) | |||
|
21 | ||||
9 |
|
22 |
General Comments 0
You need to be logged in to leave comments.
Login now