1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891
|
import OCP.SelectMgr
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.TopLoc
import OCP.NCollection
import OCP.TopAbs
import OCP.TColgp
import OCP.V3d
import OCP.PrsMgr
import OCP.Prs3d
import OCP.TCollection
import OCP.Quantity
import OCP.AIS
import OCP.Select3D
import SelectMgr_SelectableObjectSet
import OCP.StdSelect
import OCP.Aspect
import OCP.gp
import OCP.Standard
import OCP.TColStd
import OCP.Image
import OCP.Graphic3d
import io
import OCP.Bnd
import OCP.SelectBasics
__all__ = [
"SelectMgr",
"SelectMgr_Filter",
"SelectMgr_CompositionFilter",
"SelectMgr_BaseIntersector",
"SelectMgr_BVHThreadPool",
"SelectMgr_BaseFrustum",
"SelectMgr_AxisIntersector",
"SelectMgr_AndFilter",
"SelectMgr_EntityOwner",
"SelectMgr_AndOrFilter",
"SelectMgr_FilterType",
"SelectMgr_FrustumBuilder",
"SelectMgr_IndexedDataMapOfOwnerCriterion",
"SelectMgr_ListOfFilter",
"SelectMgr_MapOfOwners",
"SelectMgr_OrFilter",
"SelectMgr_PickingStrategy",
"SelectMgr_RectangularFrustum",
"SelectMgr_SelectableObject",
"SelectMgr_SelectableObjectSet",
"SelectMgr_SelectingVolumeManager",
"SelectMgr_Selection",
"SelectMgr_SelectionImageFiller",
"SelectMgr_SelectionManager",
"SelectMgr_SelectionType",
"SelectMgr_SensitiveEntity",
"SelectMgr_SensitiveEntitySet",
"SelectMgr_SequenceOfOwner",
"SelectMgr_SequenceOfSelection",
"SelectMgr_SortCriterion",
"SelectMgr_StateOfSelection",
"SelectMgr_ToleranceMap",
"SelectMgr_TriangFrustums",
"SelectMgr_TriangularFrustum",
"SelectMgr_TriangularFrustumSet",
"SelectMgr_TypeOfBVHUpdate",
"SelectMgr_TypeOfDepthTolerance",
"SelectMgr_TypeOfUpdate",
"SelectMgr_Vec3",
"SelectMgr_ViewClipRange",
"SelectMgr_ViewerSelector",
"SelectMgr_FilterType_AND",
"SelectMgr_FilterType_OR",
"SelectMgr_PickingStrategy_FirstAcceptable",
"SelectMgr_PickingStrategy_OnlyTopmost",
"SelectMgr_SOS_Activated",
"SelectMgr_SOS_Any",
"SelectMgr_SOS_Deactivated",
"SelectMgr_SOS_Unknown",
"SelectMgr_SelectionType_Box",
"SelectMgr_SelectionType_Point",
"SelectMgr_SelectionType_Polyline",
"SelectMgr_SelectionType_Unknown",
"SelectMgr_TBU_Add",
"SelectMgr_TBU_Invalidate",
"SelectMgr_TBU_None",
"SelectMgr_TBU_Remove",
"SelectMgr_TBU_Renew",
"SelectMgr_TOU_Full",
"SelectMgr_TOU_None",
"SelectMgr_TOU_Partial",
"SelectMgr_TypeOfDepthTolerance_SensitivityFactor",
"SelectMgr_TypeOfDepthTolerance_Uniform",
"SelectMgr_TypeOfDepthTolerance_UniformPixels"
]
class SelectMgr():
"""
Auxiliary tools for SelectMgr package.
"""
@staticmethod
def ComputeSensitivePrs_s(theStructure : OCP.Graphic3d.Graphic3d_Structure,theSel : SelectMgr_Selection,theLoc : OCP.gp.gp_Trsf,theTrsfPers : OCP.Graphic3d.Graphic3d_TransformPers) -> None:
"""
Compute debug presentation for sensitive objects.
"""
def __init__(self) -> None: ...
pass
class SelectMgr_Filter(OCP.Standard.Standard_Transient):
"""
The root class to define filter objects for selection. Advance handling of objects requires the services of filters. These only allow dynamic detection and selection of objects which correspond to the criteria defined in each. Eight standard filters inheriting SelectMgr_Filter are defined in Open CASCADE. You can create your own filters by defining new filter classes inheriting this framework. You use these filters by loading them into an AIS interactive context.The root class to define filter objects for selection. Advance handling of objects requires the services of filters. These only allow dynamic detection and selection of objects which correspond to the criteria defined in each. Eight standard filters inheriting SelectMgr_Filter are defined in Open CASCADE. You can create your own filters by defining new filter classes inheriting this framework. You use these filters by loading them into an AIS interactive context.The root class to define filter objects for selection. Advance handling of objects requires the services of filters. These only allow dynamic detection and selection of objects which correspond to the criteria defined in each. Eight standard filters inheriting SelectMgr_Filter are defined in Open CASCADE. You can create your own filters by defining new filter classes inheriting this framework. You use these filters by loading them into an AIS interactive context.
"""
def ActsOn(self,aStandardMode : OCP.TopAbs.TopAbs_ShapeEnum) -> bool:
"""
Returns true in an AIS local context, if this filter operates on a type of subshape defined in a filter class inheriting this framework. This function completes IsOk in an AIS local context.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsOk(self,anObj : SelectMgr_EntityOwner) -> bool:
"""
Indicates that the selected Interactive Object passes the filter. The owner, anObj, can be either direct or user. A direct owner is the corresponding construction element, whereas a user is the compound shape of which the entity forms a part. When an object is detected by the mouse - in AIS, this is done through a context selector - its owner is passed to the filter as an argument. If the object returns Standard_True, it is kept; if not, it is rejected. If you are creating a filter class inheriting this framework, and the daughter class is to be used in an AIS local context, you will need to implement the virtual function ActsOn.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_CompositionFilter(SelectMgr_Filter, OCP.Standard.Standard_Transient):
"""
A framework to define a compound filter composed of two or more simple filters.A framework to define a compound filter composed of two or more simple filters.
"""
def ActsOn(self,aStandardMode : OCP.TopAbs.TopAbs_ShapeEnum) -> bool:
"""
None
"""
def Add(self,afilter : SelectMgr_Filter) -> None:
"""
Adds the filter afilter to a filter object created by a filter class inheriting this framework.
"""
def Clear(self) -> None:
"""
Clears the filters used in this framework.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsEmpty(self) -> bool:
"""
Returns true if this framework is empty.
"""
def IsIn(self,aFilter : SelectMgr_Filter) -> bool:
"""
Returns true if the filter aFilter is in this framework.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsOk(self,anObj : SelectMgr_EntityOwner) -> bool:
"""
Indicates that the selected Interactive Object passes the filter. The owner, anObj, can be either direct or user. A direct owner is the corresponding construction element, whereas a user is the compound shape of which the entity forms a part. When an object is detected by the mouse - in AIS, this is done through a context selector - its owner is passed to the filter as an argument. If the object returns Standard_True, it is kept; if not, it is rejected. If you are creating a filter class inheriting this framework, and the daughter class is to be used in an AIS local context, you will need to implement the virtual function ActsOn.
"""
def Remove(self,aFilter : SelectMgr_Filter) -> None:
"""
Removes the filter aFilter from this framework.
"""
def StoredFilters(self) -> SelectMgr_ListOfFilter:
"""
Returns the list of stored filters from this framework.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_BaseIntersector(OCP.Standard.Standard_Transient):
"""
This class is an interface for different types of selecting intersector, defining different selection types, like point, box or polyline selection. It contains signatures of functions for detection of overlap by sensitive entity and initializes some data for building the selecting intersector
"""
def Build(self) -> None:
"""
Builds intersector according to internal parameters
"""
def Camera(self) -> OCP.Graphic3d.Graphic3d_Camera:
"""
Return camera definition.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DetectedPoint(self,theDepth : float) -> OCP.gp.gp_Pnt:
"""
Calculates the point on a view ray that was detected during the run of selection algo by given depth. It makes sense only for intersectors built on a single point. This method returns infinite point for the base class.
"""
def DistToGeometryCenter(self,theCOG : OCP.gp.gp_Pnt) -> float:
"""
Measures distance between 3d projection of user-picked screen point and given point theCOG. It makes sense only for intersectors built on a single point. This method returns infinite value for the base class.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetFarPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns far point of intersector. This method returns zero point for the base class.
"""
def GetMousePosition(self) -> OCP.gp.gp_Pnt2d:
"""
Returns current mouse coordinates. This method returns infinite point for the base class.
"""
def GetNearPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns near point of intersector. This method returns zero point for the base class.
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector. This method only clears input vector for the base class.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSelectionType(self) -> SelectMgr_SelectionType:
"""
Returns selection type of this intersector
"""
def GetViewRayDirection(self) -> OCP.gp.gp_Dir:
"""
Returns direction ray of intersector. This method returns zero direction for the base class.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsScalable(self) -> bool:
"""
Checks if it is possible to scale this intersector.
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given axis-aligned box
Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theInside : bool=None) -> bool: ...
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
"""
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt) -> bool:
"""
Intersection test between defined volume and given point
Intersection test between defined volume and given point Does not perform depth calculation, so this method is defined as helper function for inclusion test. Therefore, its implementation makes sense only for rectangular frustum with box selection mode activated.
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsPolygon(self,theArrayOfPnts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Checks if line segment overlaps selecting frustum
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool=None) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type
"""
def RayCircleIntersection(self,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsFilled : bool,theTime : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the circle
"""
def RayCylinderIntersection(self,theBottomRadius : float,theTopRadius : float,theHeight : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsHollow : bool,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the hollow cylinder (or cone)
"""
def RaySphereIntersection(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the sphere with center at theCenter and radius TheRadius
"""
def ScaleAndTransform(self,theScaleFactor : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector:
"""
Note that this method does not perform any checks on type of the frustum.
"""
def SetCamera(self,theCamera : OCP.Graphic3d.Graphic3d_Camera) -> None:
"""
Saves camera definition.
"""
def SetPixelTolerance(self,theTol : int) -> None:
"""
Sets pixel tolerance. It makes sense only for scalable intersectors (built on a single point). This method does nothing for the base class.
"""
def SetViewport(self,theX : float,theY : float,theWidth : float,theHeight : float) -> None:
"""
Sets viewport parameters. This method does nothing for the base class.
"""
def SetWindowSize(self,theWidth : int,theHeight : int) -> None:
"""
Sets current window size. This method does nothing for the base class.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def WindowSize(self) -> tuple[int, int]:
"""
Returns current window size. This method doesn't set any output values for the base class.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_BVHThreadPool(OCP.Standard.Standard_Transient):
"""
Class defining a thread pool for building BVH for the list of Select3D_SensitiveEntity within background thread(s).
"""
def AddEntity(self,theEntity : OCP.Select3D.Select3D_SensitiveEntity) -> None:
"""
Queue a sensitive entity to build its BVH
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def StopThreads(self) -> None:
"""
Stops threads
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Threads(self) -> Any:
"""
Returns array of threads
"""
def WaitThreads(self) -> None:
"""
Waits for all threads finish their jobs
"""
def __init__(self,theNbThreads : int) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_BaseFrustum(SelectMgr_BaseIntersector, OCP.Standard.Standard_Transient):
"""
This class is an interface for different types of selecting frustums, defining different selection types, like point, box or polyline selection. It contains signatures of functions for detection of overlap by sensitive entity and initializes some data for building the selecting frustum
"""
def Build(self) -> None:
"""
Builds intersector according to internal parameters
"""
def Camera(self) -> OCP.Graphic3d.Graphic3d_Camera:
"""
Return camera definition.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DetectedPoint(self,theDepth : float) -> OCP.gp.gp_Pnt:
"""
Calculates the point on a view ray that was detected during the run of selection algo by given depth. It makes sense only for intersectors built on a single point. This method returns infinite point for the base class.
"""
def DistToGeometryCenter(self,theCOG : OCP.gp.gp_Pnt) -> float:
"""
Measures distance between 3d projection of user-picked screen point and given point theCOG. It makes sense only for intersectors built on a single point. This method returns infinite value for the base class.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetFarPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns far point of intersector. This method returns zero point for the base class.
"""
def GetMousePosition(self) -> OCP.gp.gp_Pnt2d:
"""
Returns current mouse coordinates. This method returns infinite point for the base class.
"""
def GetNearPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns near point of intersector. This method returns zero point for the base class.
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector. This method only clears input vector for the base class.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSelectionType(self) -> SelectMgr_SelectionType:
"""
Returns selection type of this intersector
"""
def GetViewRayDirection(self) -> OCP.gp.gp_Dir:
"""
Returns direction ray of intersector. This method returns zero direction for the base class.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsBoundaryIntersectSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,thePlaneNormal : OCP.gp.gp_Dir,theBoundaries : OCP.TColgp.TColgp_Array1OfPnt,theBoundaryInside : bool) -> bool:
"""
Checks whether the boundary of the current volume selection intersects with a sphere or are there it's boundaries lying inside the sphere
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsScalable(self) -> bool:
"""
Checks if it is possible to scale this intersector.
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given axis-aligned box
Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theInside : bool=None) -> bool: ...
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
"""
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt) -> bool:
"""
Intersection test between defined volume and given point
Intersection test between defined volume and given point Does not perform depth calculation, so this method is defined as helper function for inclusion test. Therefore, its implementation makes sense only for rectangular frustum with box selection mode activated.
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsPolygon(self,theArrayOfPnts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Checks if line segment overlaps selecting frustum
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool=None) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type
"""
def RayCircleIntersection(self,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsFilled : bool,theTime : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the circle
"""
def RayCylinderIntersection(self,theBottomRadius : float,theTopRadius : float,theHeight : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsHollow : bool,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the hollow cylinder (or cone)
"""
def RaySphereIntersection(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the sphere with center at theCenter and radius TheRadius
"""
def ScaleAndTransform(self,theScaleFactor : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector:
"""
Note that this method does not perform any checks on type of the frustum.
"""
def SetBuilder(self,theBuilder : SelectMgr_FrustumBuilder) -> None:
"""
Nullifies the builder created in the constructor and copies the pointer given
"""
def SetCamera(self,theCamera : OCP.Graphic3d.Graphic3d_Camera) -> None:
"""
Saves camera definition and passes it to builder
"""
def SetPixelTolerance(self,theTol : int) -> None:
"""
None
"""
def SetViewport(self,theX : float,theY : float,theWidth : float,theHeight : float) -> None:
"""
Passes viewport parameters to builder
"""
def SetWindowSize(self,theWidth : int,theHeight : int) -> None:
"""
None
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def WindowSize(self) -> tuple[int, int]:
"""
None
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_AxisIntersector(SelectMgr_BaseIntersector, OCP.Standard.Standard_Transient):
"""
This class contains representation of selecting axis, created in case of point selection and algorithms for overlap detection between this axis and sensitive entities.
"""
def Build(self) -> None:
"""
Builds axis according to internal parameters. NOTE: it should be called after Init() method
"""
def Camera(self) -> OCP.Graphic3d.Graphic3d_Camera:
"""
Return camera definition.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DetectedPoint(self,theDepth : float) -> OCP.gp.gp_Pnt:
"""
Calculates the point on a axis ray that was detected during the run of selection algo by given depth
"""
def DistToGeometryCenter(self,theCOG : OCP.gp.gp_Pnt) -> float:
"""
Measures distance between start axis point and given point theCOG.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetFarPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns far point along axis (infinite).
"""
def GetMousePosition(self) -> OCP.gp.gp_Pnt2d:
"""
Returns current mouse coordinates. This method returns infinite point for the base class.
"""
def GetNearPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns near point along axis.
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector. This method only clears input vector for the base class.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSelectionType(self) -> SelectMgr_SelectionType:
"""
Returns selection type of this intersector
"""
def GetViewRayDirection(self) -> OCP.gp.gp_Dir:
"""
Returns axis direction.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def Init(self,theAxis : OCP.gp.gp_Ax1) -> None:
"""
Initializes selecting axis according to the input one
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsScalable(self) -> bool:
"""
Returns FALSE (not applicable to this volume).
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theInside : bool) -> bool:
"""
Intersection test between defined axis and given axis-aligned box
Returns true if selecting axis intersects axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsCircle(self,theRadius : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
"""
@overload
def OverlapsCircle(self,theRadius : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Intersection test between defined axis and given point
Intersection test between defined axis and given point
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt) -> bool: ...
def OverlapsPolygon(self,theArrayOfPnts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Intersection test between defined axis and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Checks if selecting axis intersects line segment
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool=None) -> bool:
"""
Intersection test between defined axis and given sphere with center theCenter and radius theRadius
Intersection test between defined axis and given sphere with center theCenter and radius theRadius
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Intersection test between defined axis and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type
"""
def RayCircleIntersection(self,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsFilled : bool,theTime : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the circle
"""
def RayCylinderIntersection(self,theBottomRadius : float,theTopRadius : float,theHeight : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsHollow : bool,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the hollow cylinder (or cone)
"""
def RaySphereIntersection(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the sphere with center at theCenter and radius TheRadius
"""
def ScaleAndTransform(self,theScaleFactor : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector:
"""
IMPORTANT: Scaling doesn't make sense for this intersector. Returns a copy of the intersector transformed using the matrix given. Builder is an optional argument that represents corresponding settings for re-constructing transformed frustum from scratch. Can be null if reconstruction is not expected furthermore.
"""
def SetCamera(self,theCamera : OCP.Graphic3d.Graphic3d_Camera) -> None:
"""
Saves camera definition. Do nothing for axis intersector (not applicable to this volume).
"""
def SetPixelTolerance(self,theTol : int) -> None:
"""
Sets pixel tolerance. It makes sense only for scalable intersectors (built on a single point). This method does nothing for the base class.
"""
def SetViewport(self,theX : float,theY : float,theWidth : float,theHeight : float) -> None:
"""
Sets viewport parameters. This method does nothing for the base class.
"""
def SetWindowSize(self,theWidth : int,theHeight : int) -> None:
"""
Sets current window size. This method does nothing for the base class.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def WindowSize(self) -> tuple[int, int]:
"""
Returns current window size. This method doesn't set any output values for the base class.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_AndFilter(SelectMgr_CompositionFilter, SelectMgr_Filter, OCP.Standard.Standard_Transient):
"""
A framework to define a selection filter for two or more types of entity.A framework to define a selection filter for two or more types of entity.A framework to define a selection filter for two or more types of entity.
"""
def ActsOn(self,aStandardMode : OCP.TopAbs.TopAbs_ShapeEnum) -> bool:
"""
None
"""
def Add(self,afilter : SelectMgr_Filter) -> None:
"""
Adds the filter afilter to a filter object created by a filter class inheriting this framework.
"""
def Clear(self) -> None:
"""
Clears the filters used in this framework.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsEmpty(self) -> bool:
"""
Returns true if this framework is empty.
"""
def IsIn(self,aFilter : SelectMgr_Filter) -> bool:
"""
Returns true if the filter aFilter is in this framework.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsOk(self,anobj : SelectMgr_EntityOwner) -> bool:
"""
None
"""
def Remove(self,aFilter : SelectMgr_Filter) -> None:
"""
Removes the filter aFilter from this framework.
"""
def StoredFilters(self) -> SelectMgr_ListOfFilter:
"""
Returns the list of stored filters from this framework.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_EntityOwner(OCP.Standard.Standard_Transient):
"""
A framework to define classes of owners of sensitive primitives. The owner is the link between application and selection data structures. For the application to make its own objects selectable, it must define owner classes inheriting this framework.A framework to define classes of owners of sensitive primitives. The owner is the link between application and selection data structures. For the application to make its own objects selectable, it must define owner classes inheriting this framework.
"""
def Clear(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager,theMode : int=0) -> None:
"""
Clears the owners matching the value of the selection mode aMode from the presentation manager object aPM.
"""
def ComesFromDecomposition(self) -> bool:
"""
Returns TRUE if this owner points to a part of object and FALSE for entire object.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def HandleMouseClick(self,thePoint : OCP.Graphic3d.Graphic3d_Vec2i,theButton : int,theModifiers : int,theIsDoubleClick : bool) -> bool:
"""
Handle mouse button click event. Does nothing by default and returns FALSE.
"""
def HasLocation(self) -> bool:
"""
Returns TRUE if selectable has transformation.
"""
def HasSelectable(self) -> bool:
"""
Returns true if there is a selectable object to serve as an owner.
"""
def HilightWithColor(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager,theStyle : OCP.Prs3d.Prs3d_Drawer,theMode : int=0) -> None:
"""
Highlights selectable object's presentation with display mode in presentation manager with given highlight style. Also a check for auto-highlight is performed - if selectable object manages highlighting on its own, execution will be passed to SelectMgr_SelectableObject::HilightOwnerWithColor method.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsAutoHilight(self) -> bool:
"""
if owner is not auto hilighted, for group contains many such owners will be called one method HilightSelected of SelectableObject
"""
def IsForcedHilight(self) -> bool:
"""
if this method returns TRUE the owner will always call method Hilight for SelectableObject when the owner is detected. By default it always return FALSE.
"""
def IsHilighted(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager,theMode : int=0) -> bool:
"""
Returns true if the presentation manager highlights selections corresponding to the selection mode.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsSameSelectable(self,theOther : SelectMgr_SelectableObject) -> bool:
"""
Returns true if pointer to selectable object of this owner is equal to the given one
"""
def IsSelected(self) -> bool:
"""
Returns Standard_True if the owner is selected.
"""
def Location(self) -> OCP.TopLoc.TopLoc_Location:
"""
Returns transformation of selectable.
"""
def Priority(self) -> int:
"""
Return selection priority (within range [0-9]) for results with the same depth; 0 by default. Example - selection of shapes: the owners are selectable objects (presentations) a user can give vertex priority [3], edges [2] faces [1] shape [0], so that if during selection one vertex one edge and one face are simultaneously detected, the vertex will only be hilighted.
"""
def Select(self,theSelScheme : OCP.AIS.AIS_SelectionScheme,theIsDetected : bool) -> bool:
"""
If the object needs to be selected, it returns true.
"""
def Selectable(self) -> SelectMgr_SelectableObject:
"""
Returns a selectable object detected in the working context.
"""
@overload
def Set(self,thePriority : int) -> None:
"""
Sets the selectable object.
sets the selectable priority of the owner
"""
@overload
def Set(self,theSelObj : SelectMgr_SelectableObject) -> None: ...
def SetComesFromDecomposition(self,theIsFromDecomposition : bool) -> None:
"""
Sets flag indicating this owner points to a part of object (TRUE) or to entire object (FALSE).
"""
def SetLocation(self,theLocation : OCP.TopLoc.TopLoc_Location) -> None:
"""
Change owner location (callback for handling change of location of selectable object).
"""
def SetPriority(self,thePriority : int) -> None:
"""
Sets the selectable priority of the owner within range [0-9].
"""
def SetSelectable(self,theSelObj : SelectMgr_SelectableObject) -> None:
"""
Sets the selectable object.
"""
def SetSelected(self,theIsSelected : bool) -> None:
"""
Set the state of the owner.
"""
def SetZLayer(self,theLayerId : int) -> None:
"""
Set Z layer ID and update all presentations.
"""
@overload
def State(self,theStatus : int) -> None:
"""
Returns selection state.
Set the state of the owner. The method is deprecated. Use SetSelected() instead.
"""
@overload
def State(self) -> int: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Unhilight(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager,theMode : int=0) -> None:
"""
Removes highlighting from the owner of a detected selectable object in the presentation manager. This object could be the owner of a sensitive primitive.
"""
def UpdateHighlightTrsf(self,theViewer : OCP.V3d.V3d_Viewer,theManager : OCP.PrsMgr.PrsMgr_PresentationManager,theDispMode : int) -> None:
"""
Implements immediate application of location transformation of parent object to dynamic highlight structure
"""
@overload
def __init__(self,theOwner : SelectMgr_EntityOwner,aPriority : int=0) -> None: ...
@overload
def __init__(self,aPriority : int=0) -> None: ...
@overload
def __init__(self,aSO : SelectMgr_SelectableObject,aPriority : int=0) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_AndOrFilter(SelectMgr_CompositionFilter, SelectMgr_Filter, OCP.Standard.Standard_Transient):
"""
A framework to define an OR or AND selection filter. To use an AND selection filter call SetUseOrFilter with False parameter. By default the OR selection filter is used.A framework to define an OR or AND selection filter. To use an AND selection filter call SetUseOrFilter with False parameter. By default the OR selection filter is used.
"""
def ActsOn(self,aStandardMode : OCP.TopAbs.TopAbs_ShapeEnum) -> bool:
"""
None
"""
def Add(self,afilter : SelectMgr_Filter) -> None:
"""
Adds the filter afilter to a filter object created by a filter class inheriting this framework.
"""
def Clear(self) -> None:
"""
Clears the filters used in this framework.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def FilterType(self) -> SelectMgr_FilterType:
"""
Returns a selection filter type ( SelectMgr_FilterType).
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsEmpty(self) -> bool:
"""
Returns true if this framework is empty.
"""
def IsIn(self,aFilter : SelectMgr_Filter) -> bool:
"""
Returns true if the filter aFilter is in this framework.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsOk(self,theObj : SelectMgr_EntityOwner) -> bool:
"""
Indicates that the selected Interactive Object passes the filter.
"""
def Remove(self,aFilter : SelectMgr_Filter) -> None:
"""
Removes the filter aFilter from this framework.
"""
def SetDisabledObjects(self,theObjects : Any) -> None:
"""
Disable selection of specified objects.
"""
def SetFilterType(self,theFilterType : SelectMgr_FilterType) -> None:
"""
Sets a selection filter type. SelectMgr_FilterType_OR selection filter is used be default.
"""
def StoredFilters(self) -> SelectMgr_ListOfFilter:
"""
Returns the list of stored filters from this framework.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,theFilterType : SelectMgr_FilterType) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_FilterType():
"""
Enumeration defines the filter type.
Members:
SelectMgr_FilterType_AND
SelectMgr_FilterType_OR
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_FilterType_AND: OCP.SelectMgr.SelectMgr_FilterType # value = <SelectMgr_FilterType.SelectMgr_FilterType_AND: 0>
SelectMgr_FilterType_OR: OCP.SelectMgr.SelectMgr_FilterType # value = <SelectMgr_FilterType.SelectMgr_FilterType_OR: 1>
__entries: dict # value = {'SelectMgr_FilterType_AND': (<SelectMgr_FilterType.SelectMgr_FilterType_AND: 0>, None), 'SelectMgr_FilterType_OR': (<SelectMgr_FilterType.SelectMgr_FilterType_OR: 1>, None)}
__members__: dict # value = {'SelectMgr_FilterType_AND': <SelectMgr_FilterType.SelectMgr_FilterType_AND: 0>, 'SelectMgr_FilterType_OR': <SelectMgr_FilterType.SelectMgr_FilterType_OR: 1>}
pass
class SelectMgr_FrustumBuilder(OCP.Standard.Standard_Transient):
"""
The purpose of this class is to provide unified interface for building selecting frustum depending on current camera projection and orientation matrices, window size and viewport parameters.The purpose of this class is to provide unified interface for building selecting frustum depending on current camera projection and orientation matrices, window size and viewport parameters.
"""
def Camera(self) -> OCP.Graphic3d.Graphic3d_Camera:
"""
Returns current camera
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def InvalidateViewport(self) -> None:
"""
None
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def ProjectPntOnViewPlane(self,theX : float,theY : float,theZ : float) -> OCP.gp.gp_Pnt:
"""
Projects 2d screen point onto view frustum plane: theZ = 0 - near plane, theZ = 1 - far plane
"""
def SetCamera(self,theCamera : OCP.Graphic3d.Graphic3d_Camera) -> None:
"""
Stores current camera
"""
def SetViewport(self,theX : float,theY : float,theWidth : float,theHeight : float) -> None:
"""
Stores current viewport coordinates
"""
def SetWindowSize(self,theWidth : int,theHeight : int) -> None:
"""
Stores current window width and height
"""
def SignedPlanePntDist(self,theEq : SelectMgr_Vec3,thePnt : SelectMgr_Vec3) -> float:
"""
Calculates signed distance between plane with equation theEq and point thePnt
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def WindowSize(self) -> tuple[int, int]:
"""
None
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_IndexedDataMapOfOwnerCriterion(OCP.NCollection.NCollection_BaseMap):
"""
Purpose: An indexed map is used to store keys and to bind an index to them. Each new key stored in the map gets an index. Index are incremented as keys are stored in the map. A key can be found by the index and an index by the key. No key but the last can be removed so the indices are in the range 1.. Extent. An Item is stored with each key.
"""
def Add(self,theKey1 : SelectMgr_EntityOwner,theItem : SelectMgr_SortCriterion) -> int:
"""
Returns the Index of already bound Key or appends new Key with specified Item value.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
def Assign(self,theOther : SelectMgr_IndexedDataMapOfOwnerCriterion) -> SelectMgr_IndexedDataMapOfOwnerCriterion:
"""
Assignment. This method does not change the internal allocator.
"""
def ChangeFromIndex(self,theIndex : int) -> SelectMgr_SortCriterion:
"""
ChangeFromIndex
"""
def ChangeFromKey(self,theKey1 : SelectMgr_EntityOwner) -> SelectMgr_SortCriterion:
"""
ChangeFromKey
"""
def ChangeSeek(self,theKey1 : SelectMgr_EntityOwner) -> SelectMgr_SortCriterion:
"""
ChangeSeek returns modifiable pointer to Item by Key. Returns NULL if Key was not found.
"""
@overload
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
Clear data and reset allocator
"""
@overload
def Clear(self,doReleaseMemory : bool=False) -> None: ...
def Contains(self,theKey1 : SelectMgr_EntityOwner) -> bool:
"""
Contains
"""
def Exchange(self,theOther : SelectMgr_IndexedDataMapOfOwnerCriterion) -> None:
"""
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
"""
def Extent(self) -> int:
"""
Extent
"""
def FindFromIndex(self,theIndex : int) -> SelectMgr_SortCriterion:
"""
FindFromIndex
"""
@overload
def FindFromKey(self,theKey1 : SelectMgr_EntityOwner,theValue : SelectMgr_SortCriterion) -> bool:
"""
FindFromKey
Find value for key with copying.
"""
@overload
def FindFromKey(self,theKey1 : SelectMgr_EntityOwner) -> SelectMgr_SortCriterion: ...
def FindIndex(self,theKey1 : SelectMgr_EntityOwner) -> int:
"""
FindIndex
"""
def FindKey(self,theIndex : int) -> SelectMgr_EntityOwner:
"""
FindKey
"""
def IsEmpty(self) -> bool:
"""
IsEmpty
"""
def NbBuckets(self) -> int:
"""
NbBuckets
"""
def ReSize(self,N : int) -> None:
"""
ReSize
"""
def RemoveFromIndex(self,theIndex : int) -> None:
"""
Remove the key of the given index. Caution! The index of the last key can be changed.
"""
def RemoveKey(self,theKey1 : SelectMgr_EntityOwner) -> None:
"""
Remove the given key. Caution! The index of the last key can be changed.
"""
def RemoveLast(self) -> None:
"""
RemoveLast
"""
def Seek(self,theKey1 : SelectMgr_EntityOwner) -> SelectMgr_SortCriterion:
"""
Seek returns pointer to Item by Key. Returns NULL if Key was not found.
"""
def Size(self) -> int:
"""
Size
"""
def Statistics(self,S : io.BytesIO) -> None:
"""
Statistics
"""
def Substitute(self,theIndex : int,theKey1 : SelectMgr_EntityOwner,theItem : SelectMgr_SortCriterion) -> None:
"""
Substitute
"""
def Swap(self,theIndex1 : int,theIndex2 : int) -> None:
"""
Swaps two elements with the given indices.
"""
def __call__(self,theIndex : int) -> SelectMgr_SortCriterion: ...
@overload
def __init__(self,theNbBuckets : int,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None: ...
@overload
def __init__(self,theOther : SelectMgr_IndexedDataMapOfOwnerCriterion) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[SelectMgr_SortCriterion]: ...
def __len__(self) -> int: ...
pass
class SelectMgr_ListOfFilter(OCP.NCollection.NCollection_BaseList):
"""
Purpose: Simple list to link items together keeping the first and the last one. Inherits BaseList, adding the data item to each node.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
@overload
def Append(self,theItem : SelectMgr_Filter,theIter : Any) -> None:
"""
Append one item at the end
Append one item at the end and output iterator pointing at the appended item
Append another list at the end. After this operation, theOther list will be cleared.
"""
@overload
def Append(self,theItem : SelectMgr_Filter) -> SelectMgr_Filter: ...
@overload
def Append(self,theOther : SelectMgr_ListOfFilter) -> None: ...
def Assign(self,theOther : SelectMgr_ListOfFilter) -> SelectMgr_ListOfFilter:
"""
Replace this list by the items of another list (theOther parameter). This method does not change the internal allocator.
"""
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clear this list
"""
def Extent(self) -> int:
"""
None
"""
def First(self) -> SelectMgr_Filter:
"""
First item
First item (non-const)
"""
@overload
def InsertAfter(self,theOther : SelectMgr_ListOfFilter,theIter : Any) -> None:
"""
InsertAfter
InsertAfter
"""
@overload
def InsertAfter(self,theItem : SelectMgr_Filter,theIter : Any) -> SelectMgr_Filter: ...
@overload
def InsertBefore(self,theOther : SelectMgr_ListOfFilter,theIter : Any) -> None:
"""
InsertBefore
InsertBefore
"""
@overload
def InsertBefore(self,theItem : SelectMgr_Filter,theIter : Any) -> SelectMgr_Filter: ...
def IsEmpty(self) -> bool:
"""
None
"""
def Last(self) -> SelectMgr_Filter:
"""
Last item
Last item (non-const)
"""
@overload
def Prepend(self,theItem : SelectMgr_Filter) -> SelectMgr_Filter:
"""
Prepend one item at the beginning
Prepend another list at the beginning
"""
@overload
def Prepend(self,theOther : SelectMgr_ListOfFilter) -> None: ...
def Remove(self,theIter : Any) -> None:
"""
Remove item pointed by iterator theIter; theIter is then set to the next item
"""
def RemoveFirst(self) -> None:
"""
RemoveFirst item
"""
def Reverse(self) -> None:
"""
Reverse the list
"""
def Size(self) -> int:
"""
Size - Number of items
"""
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theOther : SelectMgr_ListOfFilter) -> None: ...
def __iter__(self) -> Iterator[SelectMgr_Filter]: ...
def __len__(self) -> int: ...
pass
class SelectMgr_MapOfOwners(OCP.NCollection.NCollection_BaseMap):
"""
Purpose: The DataMap is a Map to store keys with associated Items. See Map from NCollection for a discussion about the number of buckets.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
def Assign(self,theOther : SelectMgr_MapOfOwners) -> SelectMgr_MapOfOwners:
"""
Assignment. This method does not change the internal allocator.
"""
def Bind(self,theKey : SelectMgr_EntityOwner,theItem : int) -> bool:
"""
Bind binds Item to Key in map.
"""
def Bound(self,theKey : SelectMgr_EntityOwner,theItem : int) -> int:
"""
Bound binds Item to Key in map.
"""
def ChangeFind(self,theKey : SelectMgr_EntityOwner) -> int:
"""
ChangeFind returns mofifiable Item by Key. Raises if Key was not bound
"""
def ChangeSeek(self,theKey : SelectMgr_EntityOwner) -> int:
"""
ChangeSeek returns modifiable pointer to Item by Key. Returns NULL is Key was not bound.
"""
@overload
def Clear(self,doReleaseMemory : bool=False) -> None:
"""
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
Clear data and reset allocator
"""
@overload
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
def Exchange(self,theOther : SelectMgr_MapOfOwners) -> None:
"""
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
"""
def Extent(self) -> int:
"""
Extent
"""
@overload
def Find(self,theKey : SelectMgr_EntityOwner,theValue : int) -> bool:
"""
Find returns the Item for Key. Raises if Key was not bound
Find Item for key with copying.
"""
@overload
def Find(self,theKey : SelectMgr_EntityOwner) -> int: ...
def IsBound(self,theKey : SelectMgr_EntityOwner) -> bool:
"""
IsBound
"""
def IsEmpty(self) -> bool:
"""
IsEmpty
"""
def NbBuckets(self) -> int:
"""
NbBuckets
"""
def ReSize(self,N : int) -> None:
"""
ReSize
"""
def Seek(self,theKey : SelectMgr_EntityOwner) -> int:
"""
Seek returns pointer to Item by Key. Returns NULL is Key was not bound.
"""
def Size(self) -> int:
"""
Size
"""
def Statistics(self,S : io.BytesIO) -> None:
"""
Statistics
"""
def UnBind(self,theKey : SelectMgr_EntityOwner) -> bool:
"""
UnBind removes Item Key pair from map
"""
def __call__(self,theKey : SelectMgr_EntityOwner) -> int: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theNbBuckets : int,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None: ...
@overload
def __init__(self,theOther : SelectMgr_MapOfOwners) -> None: ...
def __iter__(self) -> Iterator[int]: ...
def __len__(self) -> int: ...
pass
class SelectMgr_OrFilter(SelectMgr_CompositionFilter, SelectMgr_Filter, OCP.Standard.Standard_Transient):
"""
A framework to define an or selection filter. This selects one or another type of sensitive entity.A framework to define an or selection filter. This selects one or another type of sensitive entity.A framework to define an or selection filter. This selects one or another type of sensitive entity.
"""
def ActsOn(self,aStandardMode : OCP.TopAbs.TopAbs_ShapeEnum) -> bool:
"""
None
"""
def Add(self,afilter : SelectMgr_Filter) -> None:
"""
Adds the filter afilter to a filter object created by a filter class inheriting this framework.
"""
def Clear(self) -> None:
"""
Clears the filters used in this framework.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsEmpty(self) -> bool:
"""
Returns true if this framework is empty.
"""
def IsIn(self,aFilter : SelectMgr_Filter) -> bool:
"""
Returns true if the filter aFilter is in this framework.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsOk(self,anobj : SelectMgr_EntityOwner) -> bool:
"""
None
"""
def Remove(self,aFilter : SelectMgr_Filter) -> None:
"""
Removes the filter aFilter from this framework.
"""
def StoredFilters(self) -> SelectMgr_ListOfFilter:
"""
Returns the list of stored filters from this framework.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_PickingStrategy():
"""
Enumeration defines picking strategy - which entities detected by picking line will be accepted, considering selection filters.
Members:
SelectMgr_PickingStrategy_FirstAcceptable
SelectMgr_PickingStrategy_OnlyTopmost
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_PickingStrategy_FirstAcceptable: OCP.SelectMgr.SelectMgr_PickingStrategy # value = <SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_FirstAcceptable: 0>
SelectMgr_PickingStrategy_OnlyTopmost: OCP.SelectMgr.SelectMgr_PickingStrategy # value = <SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost: 1>
__entries: dict # value = {'SelectMgr_PickingStrategy_FirstAcceptable': (<SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_FirstAcceptable: 0>, None), 'SelectMgr_PickingStrategy_OnlyTopmost': (<SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost: 1>, None)}
__members__: dict # value = {'SelectMgr_PickingStrategy_FirstAcceptable': <SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_FirstAcceptable: 0>, 'SelectMgr_PickingStrategy_OnlyTopmost': <SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost: 1>}
pass
class SelectMgr_RectangularFrustum():
"""
This class contains representation of rectangular selecting frustum, created in case of point and box selection, and algorithms for overlap detection between selecting frustum and sensitive entities. The principle of frustum calculation: - for point selection: on a near view frustum plane rectangular neighborhood of user-picked point is created according to the pixel tolerance given and then this rectangle is projected onto far view frustum plane. This rectangles define the parallel bases of selecting frustum; - for box selection: box points are projected onto near and far view frustum planes. These 2 projected rectangles define parallel bases of selecting frustum. Overlap detection tests are implemented according to the terms of separating axis theorem (SAT).
"""
def Build(self) -> None:
"""
Builds volume according to internal parameters. NOTE: it should be called after Init() method
"""
def DetectedPoint(self,theDepth : float) -> OCP.gp.gp_Pnt:
"""
Calculates the point on a view ray that was detected during the run of selection algo by given depth
"""
def DistToGeometryCenter(self,theCOG : OCP.gp.gp_Pnt) -> float:
"""
Measures distance between 3d projection of user-picked screen point and given point theCOG. It makes sense only for frustums built on a single point.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def GetFarPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto far view frustum plane
"""
def GetMousePosition(self) -> OCP.gp.gp_Pnt2d:
"""
Returns current mouse coordinates.
"""
def GetNearPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto near view frustum plane
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector
"""
def GetVertices(self) -> OCP.gp.gp_Pnt:
"""
A set of helper functions that return rectangular selecting frustum data
"""
def GetViewRayDirection(self) -> OCP.gp.gp_Dir:
"""
Returns view ray direction.
"""
@overload
def Init(self,theMinPnt : OCP.gp.gp_Pnt2d,theMaxPnt : OCP.gp.gp_Pnt2d) -> None:
"""
Initializes volume according to the point and given pixel tolerance
Initializes volume according to the selected rectangle
"""
@overload
def Init(self,thePoint : OCP.gp.gp_Pnt2d) -> None: ...
def IsScalable(self) -> bool:
"""
Checks if it is possible to scale this frustum. It is true for frustum built on a single point.
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given axis-aligned box
Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theInside : bool) -> bool: ...
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
"""
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Intersection test between defined volume and given point
Intersection test between defined volume and given point
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt) -> bool: ...
def OverlapsPolygon(self,theArrayOfPnts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Checks if line segment overlaps selecting frustum
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Intersection test between defined volume and given sphere
Intersection test between defined volume and given sphere
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type
"""
def ScaleAndTransform(self,theScaleFactor : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector:
"""
IMPORTANT: Scaling makes sense only for frustum built on a single point! Note that this method does not perform any checks on type of the frustum. Returns a copy of the frustum resized according to the scale factor given and transforms it using the matrix given. There are no default parameters, but in case if: - transformation only is needed: must be initialized as any negative value; - scale only is needed: must be set to gp_Identity. Builder is an optional argument that represents corresponding settings for re-constructing transformed frustum from scratch. Can be null if reconstruction is not expected furthermore.
"""
def __init__(self) -> None: ...
def isIntersectCircle(self,theRadius : float,theCenter : OCP.gp.gp_Pnt,theTrsf : OCP.gp.gp_Trsf,theVertices : OCP.TColgp.TColgp_Array1OfPnt) -> bool:
"""
Returns True if Frustum (theVertices) intersects the circle.
"""
def isSegmentsIntersect(self,thePnt1Seg1 : OCP.gp.gp_Pnt,thePnt2Seg1 : OCP.gp.gp_Pnt,thePnt1Seg2 : OCP.gp.gp_Pnt,thePnt2Seg2 : OCP.gp.gp_Pnt) -> bool:
"""
Returns True if Seg1 (thePnt1Seg1, thePnt2Seg1) and Seg2 (thePnt1Seg2, thePnt2Seg2) intersect.
"""
pass
class SelectMgr_SelectableObject(OCP.PrsMgr.PrsMgr_PresentableObject, OCP.Standard.Standard_Transient):
"""
A framework to supply the structure of the object to be selected. At the first pick, this structure is created by calling the appropriate algorithm and retaining this framework for further picking. This abstract framework is inherited in Application Interactive Services (AIS), notably in AIS_InteractiveObject. Consequently, 3D selection should be handled by the relevant daughter classes and their member functions in AIS. This is particularly true in the creation of new interactive objects.A framework to supply the structure of the object to be selected. At the first pick, this structure is created by calling the appropriate algorithm and retaining this framework for further picking. This abstract framework is inherited in Application Interactive Services (AIS), notably in AIS_InteractiveObject. Consequently, 3D selection should be handled by the relevant daughter classes and their member functions in AIS. This is particularly true in the creation of new interactive objects.
"""
def AcceptDisplayMode(self,theMode : int) -> bool:
"""
Returns true if the class of objects accepts specified display mode index. The interactive context can have a default mode of representation for the set of Interactive Objects. This mode may not be accepted by a given class of objects. Consequently, this virtual method allowing us to get information about the class in question must be implemented. At least one display mode index should be accepted by this method. Although subclass can leave default implementation, it is highly desired defining exact list of supported modes instead, which is usually an enumeration for one object or objects class sharing similar list of display modes.
"""
def AcceptShapeDecomposition(self) -> bool:
"""
Informs the graphic context that the interactive Object may be decomposed into sub-shapes for dynamic selection. The most used Interactive Object is AIS_Shape.
"""
def AddChild(self,theObject : OCP.PrsMgr.PrsMgr_PresentableObject) -> None:
"""
Makes theObject child of current object in scene hierarchy.
"""
def AddChildWithCurrentTransformation(self,theObject : OCP.PrsMgr.PrsMgr_PresentableObject) -> None:
"""
Makes theObject child of current object in scene hierarchy with keeping the current global transformation So the object keeps the same position/orientation in the global CS.
"""
def AddClipPlane(self,thePlane : OCP.Graphic3d.Graphic3d_ClipPlane) -> None:
"""
Adds clip plane for graphical clipping for all display mode presentations. The composition of clip planes truncates the rendering space to convex volume. Please be aware that number of supported clip plane is limited. The planes which exceed the limit are ignored. Besides of this, some planes can be already set in view where the object is shown: the number of these planes should be subtracted from limit to predict the maximum possible number of object clipping planes.
"""
def AddSelection(self,aSelection : SelectMgr_Selection,aMode : int) -> None:
"""
Adds the selection aSelection with the selection mode index aMode to this framework.
"""
def Attributes(self) -> OCP.Prs3d.Prs3d_Drawer:
"""
Returns the attributes settings.
"""
def BndBoxOfSelected(self,theOwners : Any) -> OCP.Bnd.Bnd_Box:
"""
Returns a bounding box of sensitive entities with the owners given if they are a part of activated selection
"""
def BoundingBox(self,theBndBox : OCP.Bnd.Bnd_Box) -> None:
"""
Returns bounding box of object correspondingly to its current display mode. This method requires presentation to be already computed, since it relies on bounding box of presentation structures, which are supposed to be same/close amongst different display modes of this object.
"""
def Children(self) -> OCP.PrsMgr.PrsMgr_ListOfPresentableObjects:
"""
Returns children of the current object.
"""
def ClearDynamicHighlight(self,theMgr : OCP.PrsMgr.PrsMgr_PresentationManager) -> None:
"""
Method that needs to be implemented when the object manages selection and dynamic highlighting on its own. Clears or invalidates dynamic highlight presentation. By default it clears immediate draw of given presentation manager.
"""
def ClearSelected(self) -> None:
"""
Method which clear all selected owners belonging to this selectable object ( for fast presentation draw )
"""
def ClearSelections(self,update : bool=False) -> None:
"""
Empties all the selections in the SelectableObject <update> parameter defines whether all object's selections should be flagged for further update or not. This improved method can be used to recompute an object's selection (without redisplaying the object completely) when some selection mode is activated not for the first time.
"""
def ClipPlanes(self) -> OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane:
"""
Get clip planes.
"""
def Color(self,theColor : OCP.Quantity.Quantity_Color) -> None:
"""
Returns the color setting of the Interactive Object.
"""
def CombinedParentTransformation(self) -> OCP.TopLoc.TopLoc_Datum3D:
"""
Return combined parent transformation.
"""
def ComputeSelection(self,theSelection : SelectMgr_Selection,theMode : int) -> None:
"""
Computes sensitive primitives for the given selection mode - key interface method of Selectable Object.
"""
def CurrentFacingModel(self) -> OCP.Aspect.Aspect_TypeOfFacingModel:
"""
Returns the current facing model which is in effect.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def DefaultDisplayMode(self) -> int:
"""
Returns the default display mode.
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DisplayMode(self) -> int:
"""
Returns the display mode setting of the Interactive Object. The range of supported display mode indexes should be specified within object definition and filtered by AccepDisplayMode().
"""
def DisplayStatus(self) -> OCP.PrsMgr.PrsMgr_DisplayStatus:
"""
Return presentation display status; PrsMgr_DisplayStatus_None by default.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicHilightAttributes(self) -> OCP.Prs3d.Prs3d_Drawer:
"""
Returns the hilight attributes settings. When not NULL, overrides both Prs3d_TypeOfHighlight_LocalDynamic and Prs3d_TypeOfHighlight_Dynamic defined within AIS_InteractiveContext::HighlightStyle().
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def ErasePresentations(self,theToRemove : bool) -> None:
"""
Removes presentations returned by GetHilightPresentation() and GetSelectPresentation().
"""
def GetAssemblyOwner(self) -> SelectMgr_EntityOwner:
"""
Returns common entity owner if the object is an assembly
"""
def GetHilightPresentation(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager) -> OCP.Graphic3d.Graphic3d_Structure:
"""
Creates or returns existing presentation for highlighting detected object.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSelectPresentation(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager) -> OCP.Graphic3d.Graphic3d_Structure:
"""
Creates or returns existing presentation for highlighting selected object.
"""
def GlobalSelOwner(self) -> SelectMgr_EntityOwner:
"""
Returns the owner of mode for selection of object as a whole
"""
def GlobalSelectionMode(self) -> int:
"""
Returns the mode for selection of object as a whole; 0 by default.
"""
def HasColor(self) -> bool:
"""
Returns true if the Interactive Object has color.
"""
def HasDisplayMode(self) -> bool:
"""
Returns true if the Interactive Object has display mode setting overriding global setting (within Interactive Context).
"""
def HasHilightMode(self) -> bool:
"""
Returns true if the Interactive Object is in highlight mode.
"""
def HasMaterial(self) -> bool:
"""
Returns true if the Interactive Object has a setting for material.
"""
def HasOwnPresentations(self) -> bool:
"""
Returns true if object should have own presentations.
"""
def HasPolygonOffsets(self) -> bool:
"""
Returns Standard_True if <myDrawer> has non-null shading aspect
"""
def HasSelection(self,theMode : int) -> bool:
"""
Returns true if a selection corresponding to the selection mode theMode was computed for this object.
"""
def HasTransformation(self) -> bool:
"""
Returns true if object has a transformation that is different from the identity.
"""
def HasWidth(self) -> bool:
"""
Returns true if the Interactive Object has width.
"""
def HilightAttributes(self) -> OCP.Prs3d.Prs3d_Drawer:
"""
Returns the hilight attributes settings. When not NULL, overrides both Prs3d_TypeOfHighlight_LocalSelected and Prs3d_TypeOfHighlight_Selected defined within AIS_InteractiveContext::HighlightStyle().
"""
def HilightMode(self) -> int:
"""
Returns highlight display mode. This is obsolete method for backward compatibility - use ::HilightAttributes() and ::DynamicHilightAttributes() instead.
"""
def HilightOwnerWithColor(self,thePM : OCP.PrsMgr.PrsMgr_PresentationManager,theStyle : OCP.Prs3d.Prs3d_Drawer,theOwner : SelectMgr_EntityOwner) -> None:
"""
Method which hilight an owner belonging to this selectable object ( for fast presentation draw )
"""
def HilightSelected(self,thePrsMgr : OCP.PrsMgr.PrsMgr_PresentationManager,theSeq : SelectMgr_SequenceOfOwner) -> None:
"""
Method which draws selected owners ( for fast presentation draw )
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def InversedTransformation(self) -> OCP.gp.gp_GTrsf:
"""
Return inversed transformation.
"""
def IsAutoHilight(self) -> bool:
"""
If returns True, the old mechanism for highlighting selected objects is used (HilightSelected Method may be empty). If returns False, the HilightSelected method will be fully responsible for highlighting selected entity owners belonging to this selectable object.
"""
def IsInfinite(self) -> bool:
"""
Returns true if the interactive object is infinite; FALSE by default. This flag affects various operations operating on bounding box of graphic presentations of this object. For instance, infinite objects are not taken in account for View FitAll. This does not necessarily means that object is actually infinite, auxiliary objects might be also marked with this flag to achieve desired behavior.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsMutable(self) -> bool:
"""
Returns true if object has mutable nature (content or location are be changed regularly). Mutable object will be managed in different way than static onces (another optimizations).
"""
def IsTransparent(self) -> bool:
"""
Returns true if there is a transparency setting.
"""
def LocalTransformation(self) -> OCP.gp.gp_Trsf:
"""
Return the local transformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
"""
def LocalTransformationGeom(self) -> OCP.TopLoc.TopLoc_Datum3D:
"""
Return the local transformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
"""
def Material(self) -> OCP.Graphic3d.Graphic3d_NameOfMaterial:
"""
Returns the current material setting as enumeration value.
"""
def Parent(self) -> OCP.PrsMgr.PrsMgr_PresentableObject:
"""
Returns parent of current object in scene hierarchy.
"""
def PolygonOffsets(self,aFactor : float,aUnits : float) -> tuple[int]:
"""
Retrieves current polygon offsets settings from <myDrawer>.
"""
def Presentations(self) -> OCP.PrsMgr.PrsMgr_Presentations:
"""
Return presentations.
"""
@overload
def RecomputePrimitives(self,theMode : int) -> None:
"""
Re-computes the sensitive primitives for all modes. IMPORTANT: Do not use this method to update selection primitives except implementing custom selection manager! This method does not take into account necessary BVH updates, but may invalidate the pointers it refers to. TO UPDATE SELECTION properly from outside classes, use method UpdateSelection.
Re-computes the sensitive primitives which correspond to the <theMode>th selection mode. IMPORTANT: Do not use this method to update selection primitives except implementing custom selection manager! selection manager! This method does not take into account necessary BVH updates, but may invalidate the pointers it refers to. TO UPDATE SELECTION properly from outside classes, use method UpdateSelection.
"""
@overload
def RecomputePrimitives(self) -> None: ...
def RemoveChild(self,theObject : OCP.PrsMgr.PrsMgr_PresentableObject) -> None:
"""
Removes theObject from children of current object in scene hierarchy.
"""
def RemoveChildWithRestoreTransformation(self,theObject : OCP.PrsMgr.PrsMgr_PresentableObject) -> None:
"""
Removes theObject from children of current object in scene hierarchy with keeping the current global transformation. So the object keeps the same position/orientation in the global CS.
"""
def RemoveClipPlane(self,thePlane : OCP.Graphic3d.Graphic3d_ClipPlane) -> None:
"""
Removes previously added clip plane.
"""
def ResetTransformation(self) -> None:
"""
None
"""
def Selection(self,theMode : int) -> SelectMgr_Selection:
"""
Returns the selection having specified selection mode or NULL.
"""
def Selections(self) -> SelectMgr_SequenceOfSelection:
"""
Return the sequence of selections.
"""
def SetAssemblyOwner(self,theOwner : SelectMgr_EntityOwner,theMode : int=-1) -> None:
"""
Sets common entity owner for assembly sensitive object entities
"""
def SetAttributes(self,theDrawer : OCP.Prs3d.Prs3d_Drawer) -> None:
"""
Initializes the drawing tool theDrawer.
"""
def SetAutoHilight(self,theAutoHilight : bool) -> None:
"""
Set AutoHilight property to true or false.
"""
def SetClipPlanes(self,thePlanes : OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane) -> None:
"""
Set clip planes for graphical clipping for all display mode presentations. The composition of clip planes truncates the rendering space to convex volume. Please be aware that number of supported clip plane is limited. The planes which exceed the limit are ignored. Besides of this, some planes can be already set in view where the object is shown: the number of these planes should be subtracted from limit to predict the maximum possible number of object clipping planes.
"""
def SetColor(self,theColor : OCP.Quantity.Quantity_Color) -> None:
"""
Only the interactive object knowns which Drawer attribute is affected by the color, if any (ex: for a wire,it's the wireaspect field of the drawer, but for a vertex, only the point aspect field is affected by the color). WARNING : Do not forget to set the corresponding fields here (hasOwnColor and myDrawer->SetColor())
"""
def SetCurrentFacingModel(self,theModel : OCP.Aspect.Aspect_TypeOfFacingModel=Aspect_TypeOfFacingModel.Aspect_TOFM_BOTH_SIDE) -> None:
"""
change the current facing model apply on polygons for SetColor(), SetTransparency(), SetMaterial() methods default facing model is Aspect_TOFM_TWO_SIDE. This mean that attributes is applying both on the front and back face.
"""
def SetDisplayMode(self,theMode : int) -> None:
"""
Sets the display mode for the interactive object. An object can have its own temporary display mode, which is different from that proposed by the interactive context.
"""
def SetDynamicHilightAttributes(self,theDrawer : OCP.Prs3d.Prs3d_Drawer) -> None:
"""
Initializes the dynamic hilight drawing tool.
"""
def SetHilightAttributes(self,theDrawer : OCP.Prs3d.Prs3d_Drawer) -> None:
"""
Initializes the hilight drawing tool theDrawer.
"""
def SetHilightMode(self,theMode : int) -> None:
"""
Sets highlight display mode. This is obsolete method for backward compatibility - use ::HilightAttributes() and ::DynamicHilightAttributes() instead.
"""
def SetInfiniteState(self,theFlag : bool=True) -> None:
"""
Sets if object should be considered as infinite.
"""
def SetIsoOnTriangulation(self,theIsEnabled : bool) -> None:
"""
Enables or disables on-triangulation build of isolines according to the flag given.
"""
@overload
def SetLocalTransformation(self,theTrsf : OCP.gp.gp_Trsf) -> None:
"""
Sets local transformation to theTransformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
Sets local transformation to theTransformation. Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
"""
@overload
def SetLocalTransformation(self,theTrsf : OCP.TopLoc.TopLoc_Datum3D) -> None: ...
def SetMaterial(self,aName : OCP.Graphic3d.Graphic3d_MaterialAspect) -> None:
"""
Sets the material aMat defining this display attribute for the interactive object. Material aspect determines shading aspect, color and transparency of visible entities.
"""
def SetMutable(self,theIsMutable : bool) -> None:
"""
Sets if the object has mutable nature (content or location will be changed regularly). This method should be called before object displaying to take effect.
"""
def SetPolygonOffsets(self,aMode : int,aFactor : float=1.0,aUnits : float=0.0) -> None:
"""
Sets up polygon offsets for this object.
"""
def SetPropagateVisualState(self,theFlag : bool) -> None:
"""
Change the value of the flag "propagate visual state"
"""
@overload
def SetToUpdate(self) -> None:
"""
Flags presentation to be updated; UpdatePresentations() will recompute these presentations.
flags all the Presentations to be Updated.
"""
@overload
def SetToUpdate(self,theMode : int) -> None: ...
def SetTransformPersistence(self,theTrsfPers : OCP.Graphic3d.Graphic3d_TransformPers) -> None:
"""
Sets up Transform Persistence defining a special Local Coordinate system where this object should be located. Note that management of Transform Persistence object is more expensive than of the normal one, because it requires its position being recomputed basing on camera position within each draw call / traverse.
"""
def SetTransparency(self,aValue : float=0.6) -> None:
"""
Attributes a setting aValue for transparency. The transparency value should be between 0.0 and 1.0. At 0.0 an object will be totally opaque, and at 1.0, fully transparent. Warning At a value of 1.0, there may be nothing visible.
"""
def SetTypeOfPresentation(self,theType : OCP.PrsMgr.PrsMgr_TypeOfPresentation3d) -> None:
"""
Set type of presentation.
"""
def SetWidth(self,theWidth : float) -> None:
"""
Allows you to provide the setting aValue for width. Only the Interactive Object knows which Drawer attribute is affected by the width setting.
"""
def SetZLayer(self,theLayerId : int) -> None:
"""
Set Z layer ID and update all presentations of the selectable object. The layers mechanism allows drawing objects in higher layers in overlay of objects in lower layers.
"""
def SynchronizeAspects(self) -> None:
"""
Synchronize presentation aspects after their modification.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@overload
def ToBeUpdated(self,ListOfMode : OCP.TColStd.TColStd_ListOfInteger) -> None:
"""
Returns TRUE if any active presentation has invalidation flag.
gives the list of modes which are flagged "to be updated".
"""
@overload
def ToBeUpdated(self,theToIncludeHidden : bool=False) -> bool: ...
def ToPropagateVisualState(self) -> bool:
"""
Get value of the flag "propagate visual state" It means that the display/erase/color visual state is propagated automatically to all children; by default, the flag is true
"""
def TransformPersistence(self) -> OCP.Graphic3d.Graphic3d_TransformPers:
"""
Returns Transformation Persistence defining a special Local Coordinate system where this presentable object is located or NULL handle if not defined. Position of the object having Transformation Persistence is mutable and depends on camera position. The same applies to a bounding box of the object.
"""
def Transformation(self) -> OCP.gp.gp_Trsf:
"""
Return the transformation taking into account transformation of parent object(s). Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
"""
def TransformationGeom(self) -> OCP.TopLoc.TopLoc_Datum3D:
"""
Return the transformation taking into account transformation of parent object(s). Note that the local transformation of the object having Transformation Persistence is applied within Local Coordinate system defined by this Persistence.
"""
def Transparency(self) -> float:
"""
Returns the transparency setting. This will be between 0.0 and 1.0. At 0.0 an object will be totally opaque, and at 1.0, fully transparent.
"""
def TypeOfPresentation3d(self) -> OCP.PrsMgr.PrsMgr_TypeOfPresentation3d:
"""
Returns information on whether the object accepts display in HLR mode or not.
"""
def UnsetAttributes(self) -> None:
"""
Clears settings provided by the drawing tool aDrawer.
"""
def UnsetColor(self) -> None:
"""
Removes color settings. Only the Interactive Object knows which Drawer attribute is affected by the color setting. For a wire, for example, wire aspect is the attribute affected. For a vertex, however, only point aspect is affected by the color setting.
"""
def UnsetDisplayMode(self) -> None:
"""
Removes display mode settings from the interactive object.
"""
def UnsetHilightAttributes(self) -> None:
"""
Clears settings provided by the hilight drawing tool theDrawer.
"""
def UnsetHilightMode(self) -> None:
"""
Unsets highlight display mode.
"""
def UnsetMaterial(self) -> None:
"""
Removes the setting for material.
"""
def UnsetTransparency(self) -> None:
"""
Removes the transparency setting. The object is opaque by default.
"""
def UnsetWidth(self) -> None:
"""
Reset width to default value.
"""
def UpdateSelection(self,theMode : int=-1) -> None:
"""
Sets update status FULL to selections of the object. Must be used as the only method of UpdateSelection from outer classes to prevent BVH structures from being outdated.
"""
def UpdateTransformation(self) -> None:
"""
Recomputes the location of the selection aSelection.
"""
def UpdateTransformations(self,aSelection : SelectMgr_Selection) -> None:
"""
Updates locations in all sensitive entities from <aSelection> and in corresponding entity owners.
"""
def ViewAffinity(self) -> OCP.Graphic3d.Graphic3d_ViewAffinity:
"""
Return view affinity mask.
"""
def Width(self) -> float:
"""
Returns the width setting of the Interactive Object.
"""
def ZLayer(self) -> int:
"""
Get ID of Z layer for main presentation.
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_SelectableObjectSet():
"""
The purpose of this class is to organize all selectable objects into data structure, allowing to build set of BVH trees for each transformation persistence subclass of selectable objects. This allow to minify number of updates for BVH trees - for example 2D persistent object subclass depends only on camera's projection and the corresponding BVH tree needs to be updated when camera's projection parameters change, while another tree for non-persistent objects can be left unchanged in this case.
"""
class BVHSubset_e():
"""
This enumeration declares names for subsets of selectable objects. Each subset has independent BVH tree. The class maintains subsets of selectable objects by their persistence flag. This allows to restric rebuilding of the trees for particular subset when the camera change does not implicitly require it: - BVHSubset_3d refers to the subset of normal world-space 3D objects. Associated BVH tree does not depend on the camera's state at all. This subset uses binned BVH builder with 32 bins and 1 element per leaf. - BVHSubset_3dPersistent refers to the subset of 3D persistent selectable objects (rotate, pan, zoom persistence). Associated BVH tree needs to be updated when either the camera's projection and position change. This subset uses linear BVH builder with 32 levels of depth and 1 element per leaf. - BVHSubset_2dPersistent refers to the subset of 2D persistent selectable objects. Associated BVH tree needs to be updated only when camera's projection changes. Bounding volumes for this object subclass is represented directly in eye space coordinates. This subset uses linear BVH builder with 32 levels of depth and 1 element per leaf.
Members:
BVHSubset_3d
BVHSubset_3dPersistent
BVHSubset_2dPersistent
BVHSubsetNb
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
BVHSubsetNb: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubsetNb: 3>
BVHSubset_2dPersistent: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubset_2dPersistent: 2>
BVHSubset_3d: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubset_3d: 0>
BVHSubset_3dPersistent: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubset_3dPersistent: 1>
__entries: dict # value = {'BVHSubset_3d': (<BVHSubset_e.BVHSubset_3d: 0>, None), 'BVHSubset_3dPersistent': (<BVHSubset_e.BVHSubset_3dPersistent: 1>, None), 'BVHSubset_2dPersistent': (<BVHSubset_e.BVHSubset_2dPersistent: 2>, None), 'BVHSubsetNb': (<BVHSubset_e.BVHSubsetNb: 3>, None)}
__members__: dict # value = {'BVHSubset_3d': <BVHSubset_e.BVHSubset_3d: 0>, 'BVHSubset_3dPersistent': <BVHSubset_e.BVHSubset_3dPersistent: 1>, 'BVHSubset_2dPersistent': <BVHSubset_e.BVHSubset_2dPersistent: 2>, 'BVHSubsetNb': <BVHSubset_e.BVHSubsetNb: 3>}
pass
def Append(self,theObject : SelectMgr_SelectableObject) -> bool:
"""
Adds the new selectable object to the set. The selectable object is placed into one of the predefined subsets depending on its persistence type. After adding an object, this method marks the corresponding BVH tree for rebuild.
"""
def BVH(self,theSubset : SelectMgr_SelectableObjectSet.BVHSubset_e) -> Any:
"""
Returns computed BVH for the theSubset given.
"""
def ChangeSubset(self,theObject : SelectMgr_SelectableObject) -> None:
"""
Performs necessary updates when object's persistence types changes. This method should be called right after changing transformation persistence flags of the objects and before updating BVH tree - to provide up-to-date state of the object set.
"""
def Contains(self,theObject : SelectMgr_SelectableObject) -> bool:
"""
Returns true if this objects set contains theObject given.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def GetObjectById(self,theSubset : SelectMgr_SelectableObjectSet.BVHSubset_e,theIndex : int) -> SelectMgr_SelectableObject:
"""
Returns object from subset theSubset by theIndex given. The method allows to get selectable object referred by the index of an element of the subset's BVH tree.
"""
@overload
def IsEmpty(self,theSubset : SelectMgr_SelectableObjectSet.BVHSubset_e) -> bool:
"""
Returns true if the object set does not contain any selectable objects.
Returns true if the specified object subset is empty.
"""
@overload
def IsEmpty(self) -> bool: ...
def MarkDirty(self) -> None:
"""
Marks every BVH subset for update.
"""
def Remove(self,theObject : SelectMgr_SelectableObject) -> bool:
"""
Removes the selectable object from the set. The selectable object is removed from the subset it has been placed into. After removing an object, this method marks the corresponding BVH tree for rebuild.
"""
def UpdateBVH(self,theCam : OCP.Graphic3d.Graphic3d_Camera,theWinSize : OCP.Graphic3d.Graphic3d_Vec2i) -> None:
"""
Updates outdated BVH trees and remembers the last state of the camera view-projection matrices and viewport (window) dimensions.
"""
def __init__(self) -> None: ...
BVHSubsetNb: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubsetNb: 3>
BVHSubset_2dPersistent: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubset_2dPersistent: 2>
BVHSubset_3d: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubset_3d: 0>
BVHSubset_3dPersistent: OCP.SelectMgr.BVHSubset_e # value = <BVHSubset_e.BVHSubset_3dPersistent: 1>
pass
class SelectMgr_SelectingVolumeManager(OCP.SelectBasics.SelectBasics_SelectingVolumeManager):
"""
This class is used to switch between active selecting volumes depending on selection type chosen by the user. The sample of correct selection volume initialization procedure:
"""
def ActiveVolume(self) -> SelectMgr_BaseIntersector:
"""
Returns active selecting volume that was built during last run of OCCT selection mechanism
"""
def AllowOverlapDetection(self,theIsToAllow : bool) -> None:
"""
If theIsToAllow is false, only fully included sensitives will be detected, otherwise the algorithm will mark both included and overlapped entities as matched
"""
@overload
def BuildSelectingVolume(self) -> None:
"""
Builds previously initialized selecting volume.
None
None
None
"""
@overload
def BuildSelectingVolume(self,thePoint : OCP.gp.gp_Pnt2d) -> None: ...
@overload
def BuildSelectingVolume(self,theMinPt : OCP.gp.gp_Pnt2d,theMaxPt : OCP.gp.gp_Pnt2d) -> None: ...
@overload
def BuildSelectingVolume(self,thePoints : OCP.TColgp.TColgp_Array1OfPnt2d) -> None: ...
def Camera(self) -> OCP.Graphic3d.Graphic3d_Camera:
"""
Returns current camera definition.
"""
def DetectedPoint(self,theDepth : float) -> OCP.gp.gp_Pnt:
"""
Calculates the point on a view ray that was detected during the run of selection algo by given depth. Throws exception if active selection type is not Point.
"""
def DistToGeometryCenter(self,theCOG : OCP.gp.gp_Pnt) -> float:
"""
Measures distance between 3d projection of user-picked screen point and given point theCOG
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def GetActiveSelectionType(self) -> int:
"""
None
"""
def GetFarPickedPnt(self) -> OCP.gp.gp_Pnt:
"""
Valid only for point and rectangular selection. Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto far view frustum plane
"""
def GetMousePosition(self) -> OCP.gp.gp_Pnt2d:
"""
Returns mouse coordinates for Point selection mode.
"""
def GetNearPickedPnt(self) -> OCP.gp.gp_Pnt:
"""
Valid only for point and rectangular selection. Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto near view frustum plane
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector
"""
def GetVertices(self) -> OCP.gp.gp_Pnt:
"""
A set of helper functions that return rectangular selecting frustum data
"""
def GetViewRayDirection(self) -> OCP.gp.gp_Dir:
"""
Valid only for point and rectangular selection. Returns view ray direction
"""
def InitAxisSelectingVolume(self,theAxis : OCP.gp.gp_Ax1) -> None:
"""
Creates and activates axis selector for point selection
"""
def InitBoxSelectingVolume(self,theMinPt : OCP.gp.gp_Pnt2d,theMaxPt : OCP.gp.gp_Pnt2d) -> None:
"""
Creates, initializes and activates rectangular selecting frustum for box selection
"""
def InitPointSelectingVolume(self,thePoint : OCP.gp.gp_Pnt2d) -> None:
"""
Creates, initializes and activates rectangular selecting frustum for point selection
"""
def InitPolylineSelectingVolume(self,thePoints : OCP.TColgp.TColgp_Array1OfPnt2d) -> None:
"""
Creates, initializes and activates set of triangular selecting frustums for polyline selection
"""
def InitSelectingVolume(self,theVolume : SelectMgr_BaseIntersector) -> None:
"""
Sets as active the custom selecting volume
"""
def IsOverlapAllowed(self) -> bool:
"""
None
"""
def IsScalableActiveVolume(self) -> bool:
"""
Checks if it is possible to scale current active selecting volume
"""
def ObjectClipping(self) -> OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane:
"""
Return object clipping planes.
"""
@overload
def Overlaps(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theInside : bool=None) -> bool:
"""
None
None
None
None
None
None
None
None
"""
@overload
def Overlaps(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : int,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def Overlaps(self,theArrayOfPts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : int,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def Overlaps(self,thePnt : OCP.gp.gp_Pnt,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def Overlaps(self,thePnt : OCP.gp.gp_Pnt) -> bool: ...
@overload
def Overlaps(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def Overlaps(self,theArrayOfPts : OCP.TColgp.TColgp_HArray1OfPnt,theSensType : int,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def Overlaps(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,theInside : bool=None) -> bool:
"""
SAT intersection test between defined volume and given axis-aligned box
Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt
"""
@overload
def OverlapsBox(self,theBoxMin : SelectMgr_Vec3,theBoxMax : SelectMgr_Vec3,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
"""
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool: ...
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Intersection test between defined volume and given point
Intersection test between defined volume and given point
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt) -> bool: ...
def OverlapsPolygon(self,theArrayOfPts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : int,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Checks if line segment overlaps selecting frustum
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool=None) -> bool:
"""
Intersection test between defined volume and given sphere
Intersection test between defined volume and given sphere
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : int,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type
"""
def ScaleAndTransform(self,theScaleFactor : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_SelectingVolumeManager:
"""
IMPORTANT: Scaling makes sense only for frustum built on a single point! Note that this method does not perform any checks on type of the frustum.
"""
def SetCamera(self,theCamera : OCP.Graphic3d.Graphic3d_Camera) -> None:
"""
Updates camera projection and orientation matrices in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown
"""
def SetPixelTolerance(self,theTolerance : int) -> None:
"""
Updates pixel tolerance in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown
"""
def SetViewClipRanges(self,theRange : SelectMgr_ViewClipRange) -> None:
"""
Set clipping range.
"""
@overload
def SetViewClipping(self,theOther : SelectMgr_SelectingVolumeManager) -> None:
"""
Valid for point selection only! Computes depth range for clipping planes.
Copy clipping planes from another volume manager.
"""
@overload
def SetViewClipping(self,theViewPlanes : OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane,theObjPlanes : OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane,theWorldSelMgr : SelectMgr_SelectingVolumeManager) -> None: ...
def SetViewport(self,theX : float,theY : float,theWidth : float,theHeight : float) -> None:
"""
Updates viewport in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown
"""
def SetWindowSize(self,theWidth : int,theHeight : int) -> None:
"""
Updates window size in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown
"""
def ViewClipRanges(self) -> SelectMgr_ViewClipRange:
"""
Return clipping range.
"""
def ViewClipping(self) -> OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane:
"""
Return view clipping planes.
"""
def WindowSize(self) -> tuple[int, int]:
"""
Returns window size
"""
def __init__(self) -> None: ...
pass
class SelectMgr_Selection(OCP.Standard.Standard_Transient):
"""
Represents the state of a given selection mode for a Selectable Object. Contains all the sensitive entities available for this mode. An interactive object can have an indefinite number of modes of selection, each representing a "decomposition" into sensitive primitives; each primitive has an Owner (SelectMgr_EntityOwner) which allows us to identify the exact entity which has been detected. Each Selection mode is identified by an index. The set of sensitive primitives which correspond to a given mode is stocked in a SelectMgr_Selection object. By Convention, the default selection mode which allows us to grasp the Interactive object in its entirety will be mode 0. AIS_Trihedron : 4 selection modes - mode 0 : selection of a trihedron - mode 1 : selection of the origin of the trihedron - mode 2 : selection of the axes - mode 3 : selection of the planes XOY, YOZ, XOZ when you activate one of modes 1 2 3 4 , you pick AIS objects of type: - AIS_Point - AIS_Axis (and information on the type of axis) - AIS_Plane (and information on the type of plane). AIS_PlaneTrihedron offers 3 selection modes: - mode 0 : selection of the whole trihedron - mode 1 : selection of the origin of the trihedron - mode 2 : selection of the axes - same remarks as for the Trihedron. AIS_Shape : 7 maximum selection modes, depending on the complexity of the shape : - mode 0 : selection of the AIS_Shape - mode 1 : selection of the vertices - mode 2 : selection of the edges - mode 3 : selection of the wires - mode 4 : selection of the faces - mode 5 : selection of the shells - mode 6 : selection of the constituent solids.Represents the state of a given selection mode for a Selectable Object. Contains all the sensitive entities available for this mode. An interactive object can have an indefinite number of modes of selection, each representing a "decomposition" into sensitive primitives; each primitive has an Owner (SelectMgr_EntityOwner) which allows us to identify the exact entity which has been detected. Each Selection mode is identified by an index. The set of sensitive primitives which correspond to a given mode is stocked in a SelectMgr_Selection object. By Convention, the default selection mode which allows us to grasp the Interactive object in its entirety will be mode 0. AIS_Trihedron : 4 selection modes - mode 0 : selection of a trihedron - mode 1 : selection of the origin of the trihedron - mode 2 : selection of the axes - mode 3 : selection of the planes XOY, YOZ, XOZ when you activate one of modes 1 2 3 4 , you pick AIS objects of type: - AIS_Point - AIS_Axis (and information on the type of axis) - AIS_Plane (and information on the type of plane). AIS_PlaneTrihedron offers 3 selection modes: - mode 0 : selection of the whole trihedron - mode 1 : selection of the origin of the trihedron - mode 2 : selection of the axes - same remarks as for the Trihedron. AIS_Shape : 7 maximum selection modes, depending on the complexity of the shape : - mode 0 : selection of the AIS_Shape - mode 1 : selection of the vertices - mode 2 : selection of the edges - mode 3 : selection of the wires - mode 4 : selection of the faces - mode 5 : selection of the shells - mode 6 : selection of the constituent solids.
"""
def Add(self,theSensitive : OCP.Select3D.Select3D_SensitiveEntity) -> None:
"""
Adds the sensitive primitive to the list of stored entities in this object. Raises NullObject if the primitive is a null handle.
"""
def BVHUpdateStatus(self) -> SelectMgr_TypeOfBVHUpdate:
"""
None
"""
def ChangeEntities(self) -> Any:
"""
Return entities.
"""
def Clear(self) -> None:
"""
empties the selection from all the stored entities
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def Destroy(self) -> None:
"""
None
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Entities(self) -> Any:
"""
Return entities.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSelectionState(self) -> SelectMgr_StateOfSelection:
"""
Returns status of selection
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsEmpty(self) -> bool:
"""
returns true if no sensitive entity is stored.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Mode(self) -> int:
"""
returns the selection mode represented by this selection
"""
def Sensitivity(self) -> int:
"""
Returns sensitivity of the selection
"""
def SetSelectionState(self,theState : SelectMgr_StateOfSelection) -> None:
"""
Sets status of selection
"""
def SetSensitivity(self,theNewSens : int) -> None:
"""
Changes sensitivity of the selection and all its entities to the given value. IMPORTANT: This method does not update any outer selection structures, so for proper updates use SelectMgr_SelectionManager::SetSelectionSensitivity method.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def UpdateBVHStatus(self,theStatus : SelectMgr_TypeOfBVHUpdate) -> None:
"""
None
"""
@overload
def UpdateStatus(self,theStatus : SelectMgr_TypeOfUpdate) -> None:
"""
Returns the flag UpdateFlag. This flage gives the update status of this framework in a ViewerSelector object: - full - partial, or - none.
None
"""
@overload
def UpdateStatus(self) -> SelectMgr_TypeOfUpdate: ...
def __init__(self,theModeIdx : int=0) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_SelectionImageFiller(OCP.Standard.Standard_Transient):
"""
Abstract class for filling pixel with color. This is internal tool for SelectMgr_ViewerSelector::ToPixMap().
"""
@staticmethod
def CreateFiller_s(thePixMap : OCP.Image.Image_PixMap,theSelector : SelectMgr_ViewerSelector,theType : OCP.StdSelect.StdSelect_TypeOfSelectionImage) -> SelectMgr_SelectionImageFiller:
"""
Create filler of specified type.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
Returns a type descriptor about this object.
"""
def Fill(self,theCol : int,theRow : int,thePicked : int) -> None:
"""
Fill pixel at specified position.
"""
def Flush(self) -> None:
"""
Flush results into final image.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,thePixMap : OCP.Image.Image_PixMap,theSelector : SelectMgr_ViewerSelector) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
Returns type descriptor of Standard_Transient class
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_SelectionManager(OCP.Standard.Standard_Transient):
"""
A framework to manage selection from the point of view of viewer selectors. These can be added and removed, and selection modes can be activated and deactivated. In addition, objects may be known to all selectors or only to some.A framework to manage selection from the point of view of viewer selectors. These can be added and removed, and selection modes can be activated and deactivated. In addition, objects may be known to all selectors or only to some.
"""
def Activate(self,theObject : SelectMgr_SelectableObject,theMode : int=0) -> None:
"""
Activates the selection mode theMode in the selector theSelector for the selectable object anObject. By default, theMode is equal to 0. If theSelector is set to default (NULL), the selection with the mode theMode will be activated in all the viewers available.
"""
def ClearSelectionStructures(self,theObj : SelectMgr_SelectableObject,theMode : int=-1) -> None:
"""
Removes sensitive entities from all viewer selectors after method Clear() was called to the selection they belonged to or it was recomputed somehow.
"""
def Contains(self,theObject : SelectMgr_SelectableObject) -> bool:
"""
Returns true if the manager contains the selectable object theObject.
"""
def Deactivate(self,theObject : SelectMgr_SelectableObject,theMode : int=-1) -> None:
"""
Deactivates mode theMode of theObject in theSelector. If theMode value is set to default (-1), all active selection modes will be deactivated. Likewise, if theSelector value is set to default (NULL), theMode will be deactivated in all viewer selectors.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsActivated(self,theObject : SelectMgr_SelectableObject,theMode : int=-1) -> bool:
"""
Returns true if the selection with theMode is active for the selectable object theObject and selector theSelector. If all parameters are set to default values, it returns it there is any active selection in any known viewer selector for object theObject.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Load(self,theObject : SelectMgr_SelectableObject,theMode : int=-1) -> None:
"""
Loads and computes selection mode theMode (if it is not equal to -1) in global context and adds selectable object to BVH tree. If the object theObject has an already calculated selection with mode theMode and it was removed, the selection will be recalculated.
"""
def RecomputeSelection(self,theObject : SelectMgr_SelectableObject,theIsForce : bool=False,theMode : int=-1) -> None:
"""
Recomputes activated selections of theObject for all known viewer selectors according to theMode specified. If theMode is set to default (-1), then all activated selections will be recomputed. If theIsForce is set to true, then selection mode theMode for object theObject will be recomputed regardless of its activation status.
"""
def Remove(self,theObject : SelectMgr_SelectableObject) -> None:
"""
Removes selectable object theObject from all viewer selectors it was added to previously, removes it from all contexts and clears all computed selections of theObject.
"""
def RestoreSelectionStructures(self,theObj : SelectMgr_SelectableObject,theMode : int=-1) -> None:
"""
Re-adds newly calculated sensitive entities of recomputed selection defined by mode theMode to all viewer selectors contained that selection.
"""
def Selector(self) -> SelectMgr_ViewerSelector:
"""
Return the Selector.
"""
def SetSelectionSensitivity(self,theObject : SelectMgr_SelectableObject,theMode : int,theNewSens : int) -> None:
"""
Allows to manage sensitivity of a particular selection of interactive object theObject and changes previous sensitivity value of all sensitive entities in selection with theMode to the given theNewSensitivity.
"""
@overload
def SetUpdateMode(self,theObject : SelectMgr_SelectableObject,theMode : int,theType : SelectMgr_TypeOfUpdate) -> None:
"""
Sets type of update of all selections of theObject to the given theType.
Sets type of update of selection with theMode of theObject to the given theType.
"""
@overload
def SetUpdateMode(self,theObject : SelectMgr_SelectableObject,theType : SelectMgr_TypeOfUpdate) -> None: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Update(self,theObject : SelectMgr_SelectableObject,theIsForce : bool=True) -> None:
"""
Updates all selections of theObject in all viewer selectors according to its current update status. If theIsForce is set to true, the call is equal to recomputation.
"""
def UpdateSelection(self,theObj : SelectMgr_SelectableObject) -> None:
"""
Re-adds selectable object in BVHs in all viewer selectors.
"""
def __init__(self,theSelector : SelectMgr_ViewerSelector) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_SelectionType():
"""
Possible selection types
Members:
SelectMgr_SelectionType_Unknown
SelectMgr_SelectionType_Point
SelectMgr_SelectionType_Box
SelectMgr_SelectionType_Polyline
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_SelectionType_Box: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Box: 1>
SelectMgr_SelectionType_Point: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Point: 0>
SelectMgr_SelectionType_Polyline: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Polyline: 2>
SelectMgr_SelectionType_Unknown: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Unknown: -1>
__entries: dict # value = {'SelectMgr_SelectionType_Unknown': (<SelectMgr_SelectionType.SelectMgr_SelectionType_Unknown: -1>, None), 'SelectMgr_SelectionType_Point': (<SelectMgr_SelectionType.SelectMgr_SelectionType_Point: 0>, None), 'SelectMgr_SelectionType_Box': (<SelectMgr_SelectionType.SelectMgr_SelectionType_Box: 1>, None), 'SelectMgr_SelectionType_Polyline': (<SelectMgr_SelectionType.SelectMgr_SelectionType_Polyline: 2>, None)}
__members__: dict # value = {'SelectMgr_SelectionType_Unknown': <SelectMgr_SelectionType.SelectMgr_SelectionType_Unknown: -1>, 'SelectMgr_SelectionType_Point': <SelectMgr_SelectionType.SelectMgr_SelectionType_Point: 0>, 'SelectMgr_SelectionType_Box': <SelectMgr_SelectionType.SelectMgr_SelectionType_Box: 1>, 'SelectMgr_SelectionType_Polyline': <SelectMgr_SelectionType.SelectMgr_SelectionType_Polyline: 2>}
pass
class SelectMgr_SensitiveEntity(OCP.Standard.Standard_Transient):
"""
The purpose of this class is to mark sensitive entities selectable or not depending on current active selection of parent object for proper BVH traverseThe purpose of this class is to mark sensitive entities selectable or not depending on current active selection of parent object for proper BVH traverse
"""
def BaseSensitive(self) -> OCP.Select3D.Select3D_SensitiveEntity:
"""
Returns related instance of SelectBasics class
"""
def Clear(self) -> None:
"""
Clears up all resources and memory
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsActiveForSelection(self) -> bool:
"""
Returns true if this entity belongs to the active selection mode of parent object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def ResetSelectionActiveStatus(self) -> None:
"""
Marks entity as inactive for selection
"""
def SetActiveForSelection(self) -> None:
"""
Marks entity as active for selection
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,theEntity : OCP.Select3D.Select3D_SensitiveEntity) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_SensitiveEntitySet():
"""
This class is used to store all calculated sensitive entities of one selectable object. It provides an interface for building BVH tree which is used to speed-up the performance of searching for overlap among sensitives of one selectable object
"""
@overload
def Append(self,theSelection : SelectMgr_Selection) -> None:
"""
Adds new entity to the set and marks BVH tree for rebuild
Adds every entity of selection theSelection to the set and marks BVH tree for rebuild
"""
@overload
def Append(self,theEntity : SelectMgr_SensitiveEntity) -> None: ...
def Box(self,theIndex : int) -> Any:
"""
Returns bounding box of entity with index theIdx
"""
def Center(self,theIndex : int,theAxis : int) -> float:
"""
Returns geometry center of sensitive entity index theIdx along the given axis theAxis
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetSensitiveById(self,theIndex : int) -> SelectMgr_SensitiveEntity:
"""
Returns the entity with index theIndex in the set
"""
def HasEntityWithPersistence(self) -> bool:
"""
Returns map of entities.
"""
def Owners(self) -> SelectMgr_MapOfOwners:
"""
Returns map of owners.
"""
def Remove(self,theSelection : SelectMgr_Selection) -> None:
"""
Removes every entity of selection theSelection from the set and marks BVH tree for rebuild
"""
def Sensitives(self) -> Any:
"""
Returns map of entities.
"""
def Size(self) -> int:
"""
Returns the amount of entities
"""
def Swap(self,theIndex1 : int,theIndex2 : int) -> None:
"""
Swaps items with indexes theIdx1 and theIdx2
"""
def __init__(self,theBuilder : OCP.Select3D.Select3D_BVHBuilder3d) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_SequenceOfOwner(OCP.NCollection.NCollection_BaseSequence):
"""
Purpose: Definition of a sequence of elements indexed by an Integer in range of 1..n
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
@overload
def Append(self,theItem : SelectMgr_EntityOwner) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theSeq : SelectMgr_SequenceOfOwner) -> None: ...
def Assign(self,theOther : SelectMgr_SequenceOfOwner) -> SelectMgr_SequenceOfOwner:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> SelectMgr_EntityOwner:
"""
First item access
"""
def ChangeLast(self) -> SelectMgr_EntityOwner:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> SelectMgr_EntityOwner:
"""
Variable item access by theIndex
"""
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clear the items out, take a new allocator if non null
"""
def Exchange(self,I : int,J : int) -> None:
"""
Exchange two members
"""
def First(self) -> SelectMgr_EntityOwner:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : SelectMgr_SequenceOfOwner) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theItem : SelectMgr_EntityOwner) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theSeq : SelectMgr_SequenceOfOwner) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theItem : SelectMgr_EntityOwner) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> SelectMgr_EntityOwner:
"""
Last item access
"""
def Length(self) -> int:
"""
Number of items
"""
def Lower(self) -> int:
"""
Method for consistency with other collections.
"""
@overload
def Prepend(self,theItem : SelectMgr_EntityOwner) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : SelectMgr_SequenceOfOwner) -> None: ...
@overload
def Remove(self,theIndex : int) -> None:
"""
Remove one item
Remove range of items
"""
@overload
def Remove(self,theFromIndex : int,theToIndex : int) -> None: ...
def Reverse(self) -> None:
"""
Reverse sequence
"""
def SetValue(self,theIndex : int,theItem : SelectMgr_EntityOwner) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : SelectMgr_SequenceOfOwner) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> SelectMgr_EntityOwner:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> SelectMgr_EntityOwner:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self,theOther : SelectMgr_SequenceOfOwner) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
def __iter__(self) -> Iterator[SelectMgr_EntityOwner]: ...
def __len__(self) -> int: ...
@staticmethod
def delNode_s(theNode : NCollection_SeqNode,theAl : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Static deleter to be passed to BaseSequence
"""
pass
class SelectMgr_SequenceOfSelection(OCP.NCollection.NCollection_BaseSequence):
"""
Purpose: Definition of a sequence of elements indexed by an Integer in range of 1..n
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
@overload
def Append(self,theItem : SelectMgr_Selection) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theSeq : SelectMgr_SequenceOfSelection) -> None: ...
def Assign(self,theOther : SelectMgr_SequenceOfSelection) -> SelectMgr_SequenceOfSelection:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> SelectMgr_Selection:
"""
First item access
"""
def ChangeLast(self) -> SelectMgr_Selection:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> SelectMgr_Selection:
"""
Variable item access by theIndex
"""
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clear the items out, take a new allocator if non null
"""
def Exchange(self,I : int,J : int) -> None:
"""
Exchange two members
"""
def First(self) -> SelectMgr_Selection:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : SelectMgr_SequenceOfSelection) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theItem : SelectMgr_Selection) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theItem : SelectMgr_Selection) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theSeq : SelectMgr_SequenceOfSelection) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> SelectMgr_Selection:
"""
Last item access
"""
def Length(self) -> int:
"""
Number of items
"""
def Lower(self) -> int:
"""
Method for consistency with other collections.
"""
@overload
def Prepend(self,theItem : SelectMgr_Selection) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : SelectMgr_SequenceOfSelection) -> None: ...
@overload
def Remove(self,theIndex : int) -> None:
"""
Remove one item
Remove range of items
"""
@overload
def Remove(self,theFromIndex : int,theToIndex : int) -> None: ...
def Reverse(self) -> None:
"""
Reverse sequence
"""
def SetValue(self,theIndex : int,theItem : SelectMgr_Selection) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : SelectMgr_SequenceOfSelection) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> SelectMgr_Selection:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> SelectMgr_Selection:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self,theOther : SelectMgr_SequenceOfSelection) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[SelectMgr_Selection]: ...
def __len__(self) -> int: ...
@staticmethod
def delNode_s(theNode : NCollection_SeqNode,theAl : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Static deleter to be passed to BaseSequence
"""
pass
class SelectMgr_SortCriterion():
"""
This class provides data and criterion for sorting candidate entities in the process of interactive selection by mouse click
"""
def IsCloserDepth(self,theOther : SelectMgr_SortCriterion) -> bool:
"""
Compare with another item by depth, priority and minDist.
"""
def IsHigherPriority(self,theOther : SelectMgr_SortCriterion) -> bool:
"""
Compare with another item using old logic (OCCT version <= 6.3.1) with priority considered preceding depth.
"""
def __init__(self) -> None: ...
@property
def Depth(self) -> float:
"""
:type: float
"""
@Depth.setter
def Depth(self, arg0: float) -> None:
pass
@property
def MinDist(self) -> float:
"""
:type: float
"""
@MinDist.setter
def MinDist(self, arg0: float) -> None:
pass
@property
def NbOwnerMatches(self) -> int:
"""
:type: int
"""
@NbOwnerMatches.setter
def NbOwnerMatches(self, arg0: int) -> None:
pass
@property
def Normal(self) -> OCP.gp.gp_Vec3f:
"""
:type: OCP.gp.gp_Vec3f
"""
@Normal.setter
def Normal(self, arg0: OCP.gp.gp_Vec3f) -> None:
pass
@property
def Point(self) -> OCP.gp.gp_Pnt:
"""
:type: OCP.gp.gp_Pnt
"""
@Point.setter
def Point(self, arg0: OCP.gp.gp_Pnt) -> None:
pass
@property
def Priority(self) -> int:
"""
:type: int
"""
@Priority.setter
def Priority(self, arg0: int) -> None:
pass
@property
def Tolerance(self) -> float:
"""
:type: float
"""
@Tolerance.setter
def Tolerance(self, arg0: float) -> None:
pass
@property
def ZLayerPosition(self) -> int:
"""
:type: int
"""
@ZLayerPosition.setter
def ZLayerPosition(self, arg0: int) -> None:
pass
pass
class SelectMgr_StateOfSelection():
"""
different state of a Selection in a ViewerSelector...
Members:
SelectMgr_SOS_Any
SelectMgr_SOS_Unknown
SelectMgr_SOS_Deactivated
SelectMgr_SOS_Activated
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_SOS_Activated: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Activated: 1>
SelectMgr_SOS_Any: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Any: -2>
SelectMgr_SOS_Deactivated: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Deactivated: 0>
SelectMgr_SOS_Unknown: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Unknown: -1>
__entries: dict # value = {'SelectMgr_SOS_Any': (<SelectMgr_StateOfSelection.SelectMgr_SOS_Any: -2>, None), 'SelectMgr_SOS_Unknown': (<SelectMgr_StateOfSelection.SelectMgr_SOS_Unknown: -1>, None), 'SelectMgr_SOS_Deactivated': (<SelectMgr_StateOfSelection.SelectMgr_SOS_Deactivated: 0>, None), 'SelectMgr_SOS_Activated': (<SelectMgr_StateOfSelection.SelectMgr_SOS_Activated: 1>, None)}
__members__: dict # value = {'SelectMgr_SOS_Any': <SelectMgr_StateOfSelection.SelectMgr_SOS_Any: -2>, 'SelectMgr_SOS_Unknown': <SelectMgr_StateOfSelection.SelectMgr_SOS_Unknown: -1>, 'SelectMgr_SOS_Deactivated': <SelectMgr_StateOfSelection.SelectMgr_SOS_Deactivated: 0>, 'SelectMgr_SOS_Activated': <SelectMgr_StateOfSelection.SelectMgr_SOS_Activated: 1>}
pass
class SelectMgr_ToleranceMap():
"""
An internal class for calculation of current largest tolerance value which will be applied for creation of selecting frustum by default. Each time the selection set is deactivated, maximum tolerance value will be recalculated. If a user enables custom precision using StdSelect_ViewerSelector3d::SetPixelTolerance, it will be applied to all sensitive entities without any checks.
"""
def Add(self,theTolerance : int) -> None:
"""
Adds the value given to map, checks if the current tolerance value should be replaced by theTolerance
"""
def CustomTolerance(self) -> int:
"""
Returns the value of custom tolerance regardless of it validity
"""
def Decrement(self,theTolerance : int) -> None:
"""
Decrements a counter of the tolerance given, checks if the current tolerance value should be recalculated
"""
def IsCustomTolSet(self) -> bool:
"""
Returns true if custom tolerance value is greater than zero
"""
def ResetDefaults(self) -> None:
"""
Unsets a custom tolerance and enables adaptive checks
"""
def SetCustomTolerance(self,theTolerance : int) -> None:
"""
Sets tolerance to the given one and disables adaptive checks
"""
def Tolerance(self) -> int:
"""
Returns a current tolerance that must be applied
"""
def __init__(self) -> None: ...
pass
class SelectMgr_TriangFrustums(OCP.NCollection.NCollection_BaseList):
"""
Purpose: Simple list to link items together keeping the first and the last one. Inherits BaseList, adding the data item to each node.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
@overload
def Append(self,theOther : SelectMgr_TriangFrustums) -> None:
"""
Append one item at the end
Append one item at the end and output iterator pointing at the appended item
Append another list at the end. After this operation, theOther list will be cleared.
"""
@overload
def Append(self,theItem : SelectMgr_TriangularFrustum,theIter : Any) -> None: ...
@overload
def Append(self,theItem : SelectMgr_TriangularFrustum) -> SelectMgr_TriangularFrustum: ...
def Assign(self,theOther : SelectMgr_TriangFrustums) -> SelectMgr_TriangFrustums:
"""
Replace this list by the items of another list (theOther parameter). This method does not change the internal allocator.
"""
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clear this list
"""
def Extent(self) -> int:
"""
None
"""
def First(self) -> SelectMgr_TriangularFrustum:
"""
First item
First item (non-const)
"""
@overload
def InsertAfter(self,theOther : SelectMgr_TriangFrustums,theIter : Any) -> None:
"""
InsertAfter
InsertAfter
"""
@overload
def InsertAfter(self,theItem : SelectMgr_TriangularFrustum,theIter : Any) -> SelectMgr_TriangularFrustum: ...
@overload
def InsertBefore(self,theItem : SelectMgr_TriangularFrustum,theIter : Any) -> SelectMgr_TriangularFrustum:
"""
InsertBefore
InsertBefore
"""
@overload
def InsertBefore(self,theOther : SelectMgr_TriangFrustums,theIter : Any) -> None: ...
def IsEmpty(self) -> bool:
"""
None
"""
def Last(self) -> SelectMgr_TriangularFrustum:
"""
Last item
Last item (non-const)
"""
@overload
def Prepend(self,theItem : SelectMgr_TriangularFrustum) -> SelectMgr_TriangularFrustum:
"""
Prepend one item at the beginning
Prepend another list at the beginning
"""
@overload
def Prepend(self,theOther : SelectMgr_TriangFrustums) -> None: ...
def Remove(self,theIter : Any) -> None:
"""
Remove item pointed by iterator theIter; theIter is then set to the next item
"""
def RemoveFirst(self) -> None:
"""
RemoveFirst item
"""
def Reverse(self) -> None:
"""
Reverse the list
"""
def Size(self) -> int:
"""
Size - Number of items
"""
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self,theOther : SelectMgr_TriangFrustums) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[SelectMgr_TriangularFrustum]: ...
def __len__(self) -> int: ...
pass
class SelectMgr_TriangularFrustum():
"""
This class contains representation of triangular selecting frustum, created in case of polyline selection, and algorithms for overlap detection between selecting frustum and sensitive entities. Overlap detection tests are implemented according to the terms of separating axis theorem (SAT). NOTE: the object of this class can be created only as part of SelectMgr_TriangularFrustumSet.
"""
def Build(self) -> None:
"""
Creates new triangular frustum with bases of triangles with vertices theP1, theP2 and theP3 projections onto near and far view frustum planes (only for triangular frustums) NOTE: it should be called after Init() method
"""
def Clear(self) -> None:
"""
Nullifies the handle to corresponding builder instance to prevent memory leaks
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector
"""
def Init(self,theP1 : OCP.gp.gp_Pnt2d,theP2 : OCP.gp.gp_Pnt2d,theP3 : OCP.gp.gp_Pnt2d) -> None:
"""
Initializes selection triangle by input points
"""
def IsScalable(self) -> bool:
"""
Returns FALSE (not applicable to this volume).
"""
@overload
def OverlapsBox(self,theMinPnt : SelectMgr_Vec3,theMaxPnt : SelectMgr_Vec3,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given axis-aligned box
Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt
"""
@overload
def OverlapsBox(self,theMinPt : SelectMgr_Vec3,theMaxPt : SelectMgr_Vec3,theInside : bool) -> bool: ...
@overload
def OverlapsCircle(self,theRadius : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
"""
@overload
def OverlapsCircle(self,theRadius : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsPoint(self,arg1 : OCP.gp.gp_Pnt) -> bool:
"""
Intersection test between defined volume and given point
Always returns FALSE (not applicable to this selector).
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsPolygon(self,theArrayOfPnts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
Checks if line segment overlaps selecting frustum
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type
"""
def ScaleAndTransform(self,theScale : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector:
"""
Returns a copy of the frustum transformed according to the matrix given
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_TriangularFrustumSet(SelectMgr_BaseFrustum, SelectMgr_BaseIntersector, OCP.Standard.Standard_Transient):
"""
This class is used to handle polyline selection. The main principle of polyline selection algorithm is to split the polygon defined by polyline onto triangles. Than each of them is considered as a base for triangular frustum building. In other words, each triangle vertex will be projected from 2d screen space to 3d world space onto near and far view frustum planes. Thus, the projected triangles make up the bases of selecting frustum. When the set of such frustums is created, the function determining selection iterates through triangular frustum set and searches for overlap with any frustum.
"""
def Build(self) -> None:
"""
Meshes polygon bounded by polyline. Than organizes a set of triangular frustums, where each triangle's projection onto near and far view frustum planes is considered as a frustum base NOTE: it should be called after Init() method
"""
def Camera(self) -> OCP.Graphic3d.Graphic3d_Camera:
"""
Return camera definition.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DetectedPoint(self,theDepth : float) -> OCP.gp.gp_Pnt:
"""
Calculates the point on a view ray that was detected during the run of selection algo by given depth
"""
def DistToGeometryCenter(self,theCOG : OCP.gp.gp_Pnt) -> float:
"""
Measures distance between 3d projection of user-picked screen point and given point theCOG. It makes sense only for intersectors built on a single point. This method returns infinite value for the base class.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetFarPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns far point of intersector. This method returns zero point for the base class.
"""
def GetMousePosition(self) -> OCP.gp.gp_Pnt2d:
"""
Returns current mouse coordinates. This method returns infinite point for the base class.
"""
def GetNearPnt(self) -> OCP.gp.gp_Pnt:
"""
Returns near point of intersector. This method returns zero point for the base class.
"""
def GetPlanes(self,thePlaneEquations : Any) -> None:
"""
Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSelectionType(self) -> SelectMgr_SelectionType:
"""
Returns selection type of this intersector
"""
def GetViewRayDirection(self) -> OCP.gp.gp_Dir:
"""
Returns direction ray of intersector. This method returns zero direction for the base class.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def Init(self,thePoints : OCP.TColgp.TColgp_Array1OfPnt2d) -> None:
"""
Initializes set of triangular frustums by polyline
"""
def IsBoundaryIntersectSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,thePlaneNormal : OCP.gp.gp_Dir,theBoundaries : OCP.TColgp.TColgp_Array1OfPnt,theBoundaryInside : bool) -> bool:
"""
Checks whether the boundary of the current volume selection intersects with a sphere or are there it's boundaries lying inside the sphere
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsScalable(self) -> bool:
"""
Returns FALSE (not applicable to this volume).
"""
@overload
def OverlapsBox(self,theMinPnt : SelectMgr_Vec3,theMaxPnt : SelectMgr_Vec3,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
None
None
"""
@overload
def OverlapsBox(self,theMinPnt : SelectMgr_Vec3,theMaxPnt : SelectMgr_Vec3,theInside : bool) -> bool: ...
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCircle(self,theBottomRad : float,theTrsf : OCP.gp.gp_Trsf,theIsFilled : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
"""
@overload
def OverlapsCylinder(self,theBottomRad : float,theTopRad : float,theHeight : float,theTrsf : OCP.gp.gp_Trsf,theIsHollow : bool,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
@overload
def OverlapsPoint(self,arg1 : OCP.gp.gp_Pnt) -> bool:
"""
None
Always returns FALSE (not applicable to this selector).
"""
@overload
def OverlapsPoint(self,thePnt : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsPolygon(self,theArrayOfPnts : OCP.TColgp.TColgp_Array1OfPnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
None
"""
def OverlapsSegment(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
None
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theInside : bool=None) -> bool:
"""
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
Returns true if selecting volume is overlapped by sphere with center theCenter and radius theRadius
"""
@overload
def OverlapsSphere(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool: ...
def OverlapsTriangle(self,thePnt1 : OCP.gp.gp_Pnt,thePnt2 : OCP.gp.gp_Pnt,thePnt3 : OCP.gp.gp_Pnt,theSensType : OCP.Select3D.Select3D_TypeOfSensitivity,theClipRange : SelectMgr_ViewClipRange,thePickResult : OCP.SelectBasics.SelectBasics_PickResult) -> bool:
"""
None
"""
def RayCircleIntersection(self,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsFilled : bool,theTime : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the circle
"""
def RayCylinderIntersection(self,theBottomRadius : float,theTopRadius : float,theHeight : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theIsHollow : bool,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the hollow cylinder (or cone)
"""
def RaySphereIntersection(self,theCenter : OCP.gp.gp_Pnt,theRadius : float,theLoc : OCP.gp.gp_Pnt,theRayDir : OCP.gp.gp_Dir,theTimeEnter : float,theTimeLeave : float) -> bool:
"""
Checks whether the ray that starts at the point theLoc and directs with the direction theRayDir intersects with the sphere with center at theCenter and radius TheRadius
"""
def ScaleAndTransform(self,theScale : int,theTrsf : OCP.gp.gp_GTrsf,theBuilder : SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector:
"""
Returns a copy of the frustum with all sub-volumes transformed according to the matrix given
"""
def SetAllowOverlapDetection(self,theIsToAllow : bool) -> None:
"""
If theIsToAllow is false, only fully included sensitives will be detected, otherwise the algorithm will mark both included and overlapped entities as matched
"""
def SetBuilder(self,theBuilder : SelectMgr_FrustumBuilder) -> None:
"""
Nullifies the builder created in the constructor and copies the pointer given
"""
def SetCamera(self,theCamera : OCP.Graphic3d.Graphic3d_Camera) -> None:
"""
Saves camera definition and passes it to builder
"""
def SetPixelTolerance(self,theTol : int) -> None:
"""
None
"""
def SetViewport(self,theX : float,theY : float,theWidth : float,theHeight : float) -> None:
"""
Passes viewport parameters to builder
"""
def SetWindowSize(self,theWidth : int,theHeight : int) -> None:
"""
None
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def WindowSize(self) -> tuple[int, int]:
"""
None
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class SelectMgr_TypeOfBVHUpdate():
"""
Keeps track for BVH update state for each SelectMgr_Selection entity in a following way: - Add : 2nd level BVH does not contain any of the selection's sensitive entities and they must be added; - Remove : all sensitive entities of the selection must be removed from 2nd level BVH; - Renew : 2nd level BVH already contains sensitives of the selection, but the its complete update and removal is required. Therefore, sensitives of the selection with this type of update must be removed from 2nd level BVH and added after recomputation. - Invalidate : the 2nd level BVH needs to be rebuilt; - None : entities of the selection are up to date.
Members:
SelectMgr_TBU_Add
SelectMgr_TBU_Remove
SelectMgr_TBU_Renew
SelectMgr_TBU_Invalidate
SelectMgr_TBU_None
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_TBU_Add: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Add: 0>
SelectMgr_TBU_Invalidate: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Invalidate: 3>
SelectMgr_TBU_None: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_None: 4>
SelectMgr_TBU_Remove: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Remove: 1>
SelectMgr_TBU_Renew: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Renew: 2>
__entries: dict # value = {'SelectMgr_TBU_Add': (<SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Add: 0>, None), 'SelectMgr_TBU_Remove': (<SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Remove: 1>, None), 'SelectMgr_TBU_Renew': (<SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Renew: 2>, None), 'SelectMgr_TBU_Invalidate': (<SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Invalidate: 3>, None), 'SelectMgr_TBU_None': (<SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_None: 4>, None)}
__members__: dict # value = {'SelectMgr_TBU_Add': <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Add: 0>, 'SelectMgr_TBU_Remove': <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Remove: 1>, 'SelectMgr_TBU_Renew': <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Renew: 2>, 'SelectMgr_TBU_Invalidate': <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Invalidate: 3>, 'SelectMgr_TBU_None': <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_None: 4>}
pass
class SelectMgr_TypeOfDepthTolerance():
"""
Define the type of depth tolerance for considering picked entities to lie on the same depth (distance from eye to entity).
Members:
SelectMgr_TypeOfDepthTolerance_Uniform
SelectMgr_TypeOfDepthTolerance_UniformPixels
SelectMgr_TypeOfDepthTolerance_SensitivityFactor
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_TypeOfDepthTolerance_SensitivityFactor: OCP.SelectMgr.SelectMgr_TypeOfDepthTolerance # value = <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_SensitivityFactor: 2>
SelectMgr_TypeOfDepthTolerance_Uniform: OCP.SelectMgr.SelectMgr_TypeOfDepthTolerance # value = <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_Uniform: 0>
SelectMgr_TypeOfDepthTolerance_UniformPixels: OCP.SelectMgr.SelectMgr_TypeOfDepthTolerance # value = <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_UniformPixels: 1>
__entries: dict # value = {'SelectMgr_TypeOfDepthTolerance_Uniform': (<SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_Uniform: 0>, None), 'SelectMgr_TypeOfDepthTolerance_UniformPixels': (<SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_UniformPixels: 1>, None), 'SelectMgr_TypeOfDepthTolerance_SensitivityFactor': (<SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_SensitivityFactor: 2>, None)}
__members__: dict # value = {'SelectMgr_TypeOfDepthTolerance_Uniform': <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_Uniform: 0>, 'SelectMgr_TypeOfDepthTolerance_UniformPixels': <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_UniformPixels: 1>, 'SelectMgr_TypeOfDepthTolerance_SensitivityFactor': <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_SensitivityFactor: 2>}
pass
class SelectMgr_TypeOfUpdate():
"""
Provides values for types of update, including - full - partial - none.
Members:
SelectMgr_TOU_Full
SelectMgr_TOU_Partial
SelectMgr_TOU_None
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
SelectMgr_TOU_Full: OCP.SelectMgr.SelectMgr_TypeOfUpdate # value = <SelectMgr_TypeOfUpdate.SelectMgr_TOU_Full: 0>
SelectMgr_TOU_None: OCP.SelectMgr.SelectMgr_TypeOfUpdate # value = <SelectMgr_TypeOfUpdate.SelectMgr_TOU_None: 2>
SelectMgr_TOU_Partial: OCP.SelectMgr.SelectMgr_TypeOfUpdate # value = <SelectMgr_TypeOfUpdate.SelectMgr_TOU_Partial: 1>
__entries: dict # value = {'SelectMgr_TOU_Full': (<SelectMgr_TypeOfUpdate.SelectMgr_TOU_Full: 0>, None), 'SelectMgr_TOU_Partial': (<SelectMgr_TypeOfUpdate.SelectMgr_TOU_Partial: 1>, None), 'SelectMgr_TOU_None': (<SelectMgr_TypeOfUpdate.SelectMgr_TOU_None: 2>, None)}
__members__: dict # value = {'SelectMgr_TOU_Full': <SelectMgr_TypeOfUpdate.SelectMgr_TOU_Full: 0>, 'SelectMgr_TOU_Partial': <SelectMgr_TypeOfUpdate.SelectMgr_TOU_Partial: 1>, 'SelectMgr_TOU_None': <SelectMgr_TypeOfUpdate.SelectMgr_TOU_None: 2>}
pass
class SelectMgr_Vec3():
"""
Generic 3-components vector. To be used as RGB color pixel or XYZ 3D-point. The main target for this class - to handle raw low-level arrays (from/to graphic driver etc.).
"""
def ChangeData(self) -> float:
"""
None
"""
@staticmethod
def Cross_s(theVec1 : SelectMgr_Vec3,theVec2 : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Computes the cross product.
"""
@staticmethod
def DX_s() -> SelectMgr_Vec3:
"""
Construct DX unit vector.
"""
@staticmethod
def DY_s() -> SelectMgr_Vec3:
"""
Construct DY unit vector.
"""
@staticmethod
def DZ_s() -> SelectMgr_Vec3:
"""
Construct DZ unit vector.
"""
def Dot(self,theOther : SelectMgr_Vec3) -> float:
"""
Computes the dot product.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def GetData(self) -> float:
"""
Raw access to the data (for OpenGL exchange).
"""
@staticmethod
def GetLERP_s(theFrom : SelectMgr_Vec3,theTo : SelectMgr_Vec3,theT : float) -> SelectMgr_Vec3:
"""
Compute linear interpolation between to vectors.
"""
def IsEqual(self,theOther : SelectMgr_Vec3) -> bool:
"""
Check this vector with another vector for equality (without tolerance!).
"""
@staticmethod
def Length_s() -> int:
"""
Returns the number of components.
"""
def Modulus(self) -> float:
"""
Computes the vector modulus (magnitude, length).
"""
def Multiplied(self,theFactor : float) -> SelectMgr_Vec3:
"""
Compute per-component multiplication by scale factor.
"""
def Multiply(self,theFactor : float) -> None:
"""
Compute per-component multiplication by scale factor.
"""
def Normalize(self) -> None:
"""
Normalize the vector.
"""
def Normalized(self) -> SelectMgr_Vec3:
"""
Normalize the vector.
"""
@overload
def SetValues(self,theX : float,theY : float,theZ : float) -> None:
"""
Assign new values to the vector.
Assign new values to the vector.
"""
@overload
def SetValues(self,theVec2 : OCP.Graphic3d.Graphic3d_Vec2d,theZ : float) -> None: ...
def SquareModulus(self) -> float:
"""
Computes the square of vector modulus (magnitude, length). This method may be used for performance tricks.
"""
def __iadd__(self,theAdd : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Compute per-component summary.
"""
@overload
def __imul__(self,theRight : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Compute per-component multiplication.
Compute per-component multiplication by scale factor.
"""
@overload
def __imul__(self,theFactor : float) -> SelectMgr_Vec3: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theVec2 : OCP.Graphic3d.Graphic3d_Vec2d,theZ : float=0.0) -> None: ...
@overload
def __init__(self,theX : float,theY : float,theZ : float) -> None: ...
@overload
def __init__(self,theValue : float) -> None: ...
def __isub__(self,theDec : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Compute per-component subtraction.
"""
@overload
def __itruediv__(self,theRight : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Compute per-component division by scale factor.
Compute per-component division.
"""
@overload
def __itruediv__(self,theInvFactor : float) -> SelectMgr_Vec3: ...
def __mul__(self,theFactor : float) -> SelectMgr_Vec3:
"""
Compute per-component multiplication by scale factor.
"""
def __rmul__(self,theFactor : float) -> SelectMgr_Vec3:
"""
Compute per-component multiplication by scale factor.
"""
def __sub__(self) -> SelectMgr_Vec3:
"""
Unary -.
"""
def __truediv__(self,theInvFactor : float) -> SelectMgr_Vec3:
"""
Compute per-component division by scale factor.
"""
def b(self) -> float:
"""
Alias to 3rd component as BLUE channel in RGB.
Alias to 3rd component as BLUE channel in RGB.
"""
def cwiseAbs(self) -> SelectMgr_Vec3:
"""
Compute component-wise modulus of the vector.
"""
def cwiseMax(self,theVec : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Compute component-wise maximum of two vectors.
"""
def cwiseMin(self,theVec : SelectMgr_Vec3) -> SelectMgr_Vec3:
"""
Compute component-wise minimum of two vectors.
"""
def g(self) -> float:
"""
Alias to 2nd component as GREEN channel in RGB.
Alias to 2nd component as GREEN channel in RGB.
"""
def maxComp(self) -> float:
"""
Compute maximum component of the vector.
"""
def minComp(self) -> float:
"""
Compute minimum component of the vector.
"""
def r(self) -> float:
"""
Alias to 1st component as RED channel in RGB.
Alias to 1st component as RED channel in RGB.
"""
def x(self) -> float:
"""
Alias to 1st component as X coordinate in XYZ.
Alias to 1st component as X coordinate in XYZ.
"""
def xy(self) -> OCP.Graphic3d.Graphic3d_Vec2d:
"""
None
"""
def xyz(self) -> SelectMgr_Vec3:
"""
None
"""
def xz(self) -> OCP.Graphic3d.Graphic3d_Vec2d:
"""
None
"""
def xzy(self) -> SelectMgr_Vec3:
"""
None
"""
def y(self) -> float:
"""
Alias to 2nd component as Y coordinate in XYZ.
Alias to 2nd component as Y coordinate in XYZ.
"""
def yx(self) -> OCP.Graphic3d.Graphic3d_Vec2d:
"""
None
"""
def yxz(self) -> SelectMgr_Vec3:
"""
None
"""
def yz(self) -> OCP.Graphic3d.Graphic3d_Vec2d:
"""
None
"""
def yzx(self) -> SelectMgr_Vec3:
"""
None
"""
def z(self) -> float:
"""
Alias to 3rd component as Z coordinate in XYZ.
Alias to 3rd component as Z coordinate in XYZ.
"""
def zx(self) -> OCP.Graphic3d.Graphic3d_Vec2d:
"""
None
"""
def zxy(self) -> SelectMgr_Vec3:
"""
None
"""
def zy(self) -> OCP.Graphic3d.Graphic3d_Vec2d:
"""
None
"""
def zyx(self) -> SelectMgr_Vec3:
"""
None
"""
pass
class SelectMgr_ViewClipRange():
"""
Class for handling depth clipping range. It is used to perform checks in case if global (for the whole view) clipping planes are defined inside of SelectMgr_RectangularFrustum class methods.
"""
def AddClipSubRange(self,theRange : OCP.Bnd.Bnd_Range) -> None:
"""
Adds a clipping sub-range (for clipping chains).
"""
def AddClippingPlanes(self,thePlanes : OCP.Graphic3d.Graphic3d_SequenceOfHClipPlane,thePickRay : OCP.gp.gp_Ax1) -> None:
"""
Add clipping planes. Planes and picking ray should be defined in the same coordinate system.
"""
def ChangeUnclipRange(self) -> OCP.Bnd.Bnd_Range:
"""
Returns the main unclipped range; [-inf, inf] by default.
"""
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def GetNearestDepth(self,theRange : OCP.Bnd.Bnd_Range,theDepth : float) -> bool:
"""
Calculates the min not clipped value from the range. Returns FALSE if the whole range is clipped.
"""
def IsClipped(self,theDepth : float) -> bool:
"""
Check if the given depth is not within clipping range(s), e.g. TRUE means depth is clipped.
"""
def SetVoid(self) -> None:
"""
Clears clipping range.
"""
def __init__(self) -> None: ...
pass
class SelectMgr_ViewerSelector(OCP.Standard.Standard_Transient):
"""
A framework to define finding, sorting the sensitive primitives in a view. Services are also provided to define the return of the owners of those primitives selected. The primitives are sorted by criteria such as priority of the primitive or its depth in the view relative to that of other primitives. Note that in 3D, the inheriting framework StdSelect_ViewerSelector3d is only to be used if you do not want to use the services provided by AIS. Two tools are available to find and select objects found at a given position in the view. If you want to select the owners of all the objects detected at point x,y,z you use the Init - More - Next - Picked loop. If, on the other hand, you want to select only one object detected at that point, you use the Init - More - OnePicked loop. In this iteration, More is used to see if an object was picked and OnePicked, to get the object closest to the pick position. Viewer selectors are driven by SelectMgr_SelectionManager, and manipulate the SelectMgr_Selection objects given to them by the selection manager.A framework to define finding, sorting the sensitive primitives in a view. Services are also provided to define the return of the owners of those primitives selected. The primitives are sorted by criteria such as priority of the primitive or its depth in the view relative to that of other primitives. Note that in 3D, the inheriting framework StdSelect_ViewerSelector3d is only to be used if you do not want to use the services provided by AIS. Two tools are available to find and select objects found at a given position in the view. If you want to select the owners of all the objects detected at point x,y,z you use the Init - More - Next - Picked loop. If, on the other hand, you want to select only one object detected at that point, you use the Init - More - OnePicked loop. In this iteration, More is used to see if an object was picked and OnePicked, to get the object closest to the pick position. Viewer selectors are driven by SelectMgr_SelectionManager, and manipulate the SelectMgr_Selection objects given to them by the selection manager.
"""
def ActiveOwners(self,theOwners : OCP.AIS.AIS_NListOfEntityOwner) -> None:
"""
Returns the list of active entity owners
"""
def AddSelectableObject(self,theObject : SelectMgr_SelectableObject) -> None:
"""
Adds new object to the map of selectable objects
"""
def AddSelectionToObject(self,theObject : SelectMgr_SelectableObject,theSelection : SelectMgr_Selection) -> None:
"""
Adds new selection to the object and builds its BVH tree
"""
def AllowOverlapDetection(self,theIsToAllow : bool) -> None:
"""
Is used for rectangular selection only If theIsToAllow is false, only fully included sensitives will be detected, otherwise the algorithm will mark both included and overlapped entities as matched
"""
def Clear(self) -> None:
"""
Empties all the tables, removes all selections...
"""
def ClearPicked(self) -> None:
"""
Clears picking results.
"""
def ClearSensitive(self,theView : OCP.V3d.V3d_View) -> None:
"""
None
"""
def Contains(self,theObject : SelectMgr_SelectableObject) -> bool:
"""
None
"""
def CustomPixelTolerance(self) -> int:
"""
Returns custom pixel tolerance value.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DepthTolerance(self) -> float:
"""
Return the tolerance for considering two entities having a similar depth (distance from eye to entity).
"""
def DepthToleranceType(self) -> SelectMgr_TypeOfDepthTolerance:
"""
Return the type of tolerance for considering two entities having a similar depth (distance from eye to entity); SelectMgr_TypeOfDepthTolerance_SensitivityFactor by default.
"""
@overload
def DisplaySensitive(self,theView : OCP.V3d.V3d_View) -> None:
"""
Displays sensitives in view <theView>.
None
"""
@overload
def DisplaySensitive(self,theSel : SelectMgr_Selection,theTrsf : OCP.gp.gp_Trsf,theView : OCP.V3d.V3d_View,theToClearOthers : bool=True) -> None: ...
def DumpJson(self,theOStream : io.BytesIO,theDepth : int=-1) -> None:
"""
Dumps the content of me into the stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def EntitySetBuilder(self) -> OCP.Select3D.Select3D_BVHBuilder3d:
"""
Returns the default builder used to construct BVH of entity set.
"""
def GetManager(self) -> SelectMgr_SelectingVolumeManager:
"""
Returns instance of selecting volume manager of the viewer selector
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsActive(self,theSelectableObject : SelectMgr_SelectableObject,theMode : int) -> bool:
"""
Returns true if the selectable object aSelectableObject having the selection mode aMode is active in this selector.
"""
def IsInside(self,theSelectableObject : SelectMgr_SelectableObject,theMode : int) -> bool:
"""
Returns true if the selectable object aSelectableObject having the selection mode aMode is in this selector.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Modes(self,theSelectableObject : SelectMgr_SelectableObject,theModeList : OCP.TColStd.TColStd_ListOfInteger,theWantedState : SelectMgr_StateOfSelection=SelectMgr_StateOfSelection.SelectMgr_SOS_Any) -> bool:
"""
Returns the list of selection modes ModeList found in this selector for the selectable object aSelectableObject. Returns true if aSelectableObject is referenced inside this selector; returns false if the object is not present in this selector.
"""
def MoveSelectableObject(self,theObject : SelectMgr_SelectableObject) -> None:
"""
Moves existing object from set of not transform persistence objects to set of transform persistence objects (or vice versa).
"""
def NbPicked(self) -> int:
"""
Returns the number of detected owners.
"""
def OnePicked(self) -> SelectMgr_EntityOwner:
"""
Returns the picked element with the highest priority, and which is the closest to the last successful mouse position.
"""
@overload
def Pick(self,theXPMin : int,theYPMin : int,theXPMax : int,theYPMax : int,theView : OCP.V3d.V3d_View) -> None:
"""
Picks the sensitive entity at the pixel coordinates of the mouse <theXPix> and <theYPix>. The selector looks for touched areas and owners.
Picks the sensitive entity according to the minimum and maximum pixel values <theXPMin>, <theYPMin>, <theXPMax> and <theYPMax> defining a 2D area for selection in the 3D view aView.
pick action - input pixel values for polyline selection for selection.
Picks the sensitive entity according to the input axis. This is geometric intersection 3D objects by axis (camera parameters are ignored and objects with transform persistance are skipped).
"""
@overload
def Pick(self,theXPix : int,theYPix : int,theView : OCP.V3d.V3d_View) -> None: ...
@overload
def Pick(self,theAxis : OCP.gp.gp_Ax1,theView : OCP.V3d.V3d_View) -> None: ...
@overload
def Pick(self,thePolyline : OCP.TColgp.TColgp_Array1OfPnt2d,theView : OCP.V3d.V3d_View) -> None: ...
def Picked(self,theRank : int) -> SelectMgr_EntityOwner:
"""
Returns the entity Owner for the object picked at specified position.
"""
def PickedData(self,theRank : int) -> SelectMgr_SortCriterion:
"""
Returns the Entity for the object picked at specified position.
"""
def PickedEntity(self,theRank : int) -> OCP.Select3D.Select3D_SensitiveEntity:
"""
Returns the Entity for the object picked at specified position.
"""
def PickedPoint(self,theRank : int) -> OCP.gp.gp_Pnt:
"""
Returns the 3D point (intersection of picking axis with the object nearest to eye) for the object picked at specified position.
"""
def PixelTolerance(self) -> int:
"""
Returns the largest pixel tolerance.
"""
def QueueBVHBuild(self,theEntity : OCP.Select3D.Select3D_SensitiveEntity) -> None:
"""
Queues a sensitive entity to build its BVH
"""
def RebuildObjectsTree(self,theIsForce : bool=False) -> None:
"""
Marks BVH of selectable objects for rebuild. Parameter theIsForce set as true guarantees that 1st level BVH for the viewer selector will be rebuilt during this call
"""
def RebuildSensitivesTree(self,theObject : SelectMgr_SelectableObject,theIsForce : bool=False) -> None:
"""
Marks BVH of sensitive entities of particular selectable object for rebuild. Parameter theIsForce set as true guarantees that 2nd level BVH for the object given will be rebuilt during this call
"""
def RemovePicked(self,theObject : SelectMgr_SelectableObject) -> bool:
"""
Remove picked entities associated with specified object.
"""
def RemoveSelectableObject(self,theObject : SelectMgr_SelectableObject) -> None:
"""
Removes selectable object from map of selectable ones
"""
def RemoveSelectionOfObject(self,theObject : SelectMgr_SelectableObject,theSelection : SelectMgr_Selection) -> None:
"""
Removes selection of the object and marks its BVH tree for rebuild
"""
def ResetSelectionActivationStatus(self) -> None:
"""
Marks all added sensitive entities of all objects as non-selectable
"""
def SelectableObjects(self) -> SelectMgr_SelectableObjectSet:
"""
Return map of selectable objects.
"""
def Sensitivity(self) -> float:
"""
Returns the largest sensitivity of picking
"""
def SetDepthTolerance(self,theType : SelectMgr_TypeOfDepthTolerance,theTolerance : float) -> None:
"""
Set the tolerance for considering two entities having a similar depth (distance from eye to entity).
"""
def SetEntitySetBuilder(self,theBuilder : OCP.Select3D.Select3D_BVHBuilder3d) -> None:
"""
Sets the default builder used to construct BVH of entity set. The new builder will be also assigned for already defined objects, but computed BVH trees will not be invalidated.
"""
def SetPickClosest(self,theToPreferClosest : bool) -> None:
"""
Set flag determining precedence of picked depth over entity priority in sorted results.
"""
def SetPixelTolerance(self,theTolerance : int) -> None:
"""
Sets the pixel tolerance <theTolerance>.
"""
def SetToPrebuildBVH(self,theToPrebuild : bool,theThreadsNum : int=-1) -> None:
"""
Enables/disables building BVH for sensitives in separate threads
"""
def SortResult(self) -> None:
"""
Sorts the detected entities by priority and distance.
"""
@overload
def Status(self,theSelectableObject : SelectMgr_SelectableObject) -> OCP.TCollection.TCollection_AsciiString:
"""
Returns the selection status Status of the selection aSelection.
None
"""
@overload
def Status(self,theSelection : SelectMgr_Selection) -> SelectMgr_StateOfSelection: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def ToPickClosest(self) -> bool:
"""
Return the flag determining precedence of picked depth (distance from eye to entity) over entity priority in sorted results; TRUE by default. When flag is TRUE, priority will be considered only if entities have the same depth within the tolerance. When flag is FALSE, entities with higher priority will be in front regardless of their depth (like x-ray).
"""
def ToPixMap(self,theImage : OCP.Image.Image_PixMap,theView : OCP.V3d.V3d_View,theType : OCP.StdSelect.StdSelect_TypeOfSelectionImage,thePickedIndex : int=1) -> bool:
"""
Dump of detection results into image. This method performs axis picking for each pixel in the image and generates a color depending on picking results and selection image type.
"""
def ToPrebuildBVH(self) -> bool:
"""
Returns TRUE if building BVH for sensitives in separate threads is enabled
"""
def WaitForBVHBuild(self) -> None:
"""
Waits BVH threads finished building
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
SelectMgr_FilterType_AND: OCP.SelectMgr.SelectMgr_FilterType # value = <SelectMgr_FilterType.SelectMgr_FilterType_AND: 0>
SelectMgr_FilterType_OR: OCP.SelectMgr.SelectMgr_FilterType # value = <SelectMgr_FilterType.SelectMgr_FilterType_OR: 1>
SelectMgr_PickingStrategy_FirstAcceptable: OCP.SelectMgr.SelectMgr_PickingStrategy # value = <SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_FirstAcceptable: 0>
SelectMgr_PickingStrategy_OnlyTopmost: OCP.SelectMgr.SelectMgr_PickingStrategy # value = <SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost: 1>
SelectMgr_SOS_Activated: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Activated: 1>
SelectMgr_SOS_Any: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Any: -2>
SelectMgr_SOS_Deactivated: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Deactivated: 0>
SelectMgr_SOS_Unknown: OCP.SelectMgr.SelectMgr_StateOfSelection # value = <SelectMgr_StateOfSelection.SelectMgr_SOS_Unknown: -1>
SelectMgr_SelectionType_Box: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Box: 1>
SelectMgr_SelectionType_Point: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Point: 0>
SelectMgr_SelectionType_Polyline: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Polyline: 2>
SelectMgr_SelectionType_Unknown: OCP.SelectMgr.SelectMgr_SelectionType # value = <SelectMgr_SelectionType.SelectMgr_SelectionType_Unknown: -1>
SelectMgr_TBU_Add: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Add: 0>
SelectMgr_TBU_Invalidate: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Invalidate: 3>
SelectMgr_TBU_None: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_None: 4>
SelectMgr_TBU_Remove: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Remove: 1>
SelectMgr_TBU_Renew: OCP.SelectMgr.SelectMgr_TypeOfBVHUpdate # value = <SelectMgr_TypeOfBVHUpdate.SelectMgr_TBU_Renew: 2>
SelectMgr_TOU_Full: OCP.SelectMgr.SelectMgr_TypeOfUpdate # value = <SelectMgr_TypeOfUpdate.SelectMgr_TOU_Full: 0>
SelectMgr_TOU_None: OCP.SelectMgr.SelectMgr_TypeOfUpdate # value = <SelectMgr_TypeOfUpdate.SelectMgr_TOU_None: 2>
SelectMgr_TOU_Partial: OCP.SelectMgr.SelectMgr_TypeOfUpdate # value = <SelectMgr_TypeOfUpdate.SelectMgr_TOU_Partial: 1>
SelectMgr_TypeOfDepthTolerance_SensitivityFactor: OCP.SelectMgr.SelectMgr_TypeOfDepthTolerance # value = <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_SensitivityFactor: 2>
SelectMgr_TypeOfDepthTolerance_Uniform: OCP.SelectMgr.SelectMgr_TypeOfDepthTolerance # value = <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_Uniform: 0>
SelectMgr_TypeOfDepthTolerance_UniformPixels: OCP.SelectMgr.SelectMgr_TypeOfDepthTolerance # value = <SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_UniformPixels: 1>
|