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
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Graphic3d_Group.hxx>
#include <V3d_View.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Graphic3d_Structure.hxx>
#include <Graphic3d_Group.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <V3d_View.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Graphic3d_Structure.hxx>
#include <Graphic3d_Group.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <V3d_View.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Aspect_Grid.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Aspect_Grid.hxx>
#include <Graphic3d_AspectMarker3d.hxx>
#include <Graphic3d_GraphicDriver.hxx>
#include <V3d_CircularGrid.hxx>
#include <V3d_RectangularGrid.hxx>
#include <V3d_View.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <V3d_Viewer.hxx>
// module includes
#include <V3d.hxx>
#include <V3d_AmbientLight.hxx>
#include <V3d_BadValue.hxx>
#include <V3d_CircularGrid.hxx>
#include <V3d_DirectionalLight.hxx>
#include <V3d_ImageDumpOptions.hxx>
#include <V3d_Light.hxx>
#include <V3d_ListOfLight.hxx>
#include <V3d_ListOfView.hxx>
#include <V3d_Plane.hxx>
#include <V3d_PositionalLight.hxx>
#include <V3d_PositionLight.hxx>
#include <V3d_RectangularGrid.hxx>
#include <V3d_SpotLight.hxx>
#include <V3d_StereoDumpOptions.hxx>
#include <V3d_Trihedron.hxx>
#include <V3d_TypeOfAxe.hxx>
#include <V3d_TypeOfBackfacingModel.hxx>
#include <V3d_TypeOfLight.hxx>
#include <V3d_TypeOfOrientation.hxx>
#include <V3d_TypeOfShadingModel.hxx>
#include <V3d_TypeOfView.hxx>
#include <V3d_TypeOfVisualization.hxx>
#include <V3d_UnMapped.hxx>
#include <V3d_View.hxx>
#include <V3d_Viewer.hxx>
#include <V3d_ViewerPointer.hxx>
// template related includes
// ./opencascade/V3d_ListOfLight.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/V3d_ListOfView.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
struct NSOpenGLContext {}; //OSX related
// Module definiiton
void register_V3d(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("V3d"));
py::object klass;
//Python trampoline classes
// classes
// Class V3d from ./opencascade/V3d.hxx
klass = m.attr("V3d");
// default constructor
register_default_constructor<V3d , shared_ptr<V3d>>(m,"V3d");
// nested enums
static_cast<py::class_<V3d , shared_ptr<V3d> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("GetProjAxis_s",
(gp_Dir (*)( const V3d_TypeOfOrientation ) ) static_cast<gp_Dir (*)( const V3d_TypeOfOrientation ) >(&V3d::GetProjAxis),
R"#(Determines the orientation vector corresponding to the predefined orientation type.)#" , py::arg("theOrientation")
)
.def_static("ArrowOfRadius_s",
(void (*)( const handle<Graphic3d_Group> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (*)( const handle<Graphic3d_Group> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d::ArrowOfRadius),
R"#(Compute the graphic structure of arrow. X0,Y0,Z0 : coordinate of the arrow. DX,DY,DZ : Direction of the arrow. Alpha : Angle of arrow. Lng : Length of arrow.)#" , py::arg("garrow"), py::arg("X0"), py::arg("Y0"), py::arg("Z0"), py::arg("DX"), py::arg("DY"), py::arg("DZ"), py::arg("Alpha"), py::arg("Lng")
)
.def_static("CircleInPlane_s",
(void (*)( const handle<Graphic3d_Group> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (*)( const handle<Graphic3d_Group> & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d::CircleInPlane),
R"#(Compute the graphic structure of circle. X0,Y0,Z0 : Center of circle. VX,VY,VZ : Axis of circle. Radius : Radius of circle.)#" , py::arg("gcircle"), py::arg("X0"), py::arg("Y0"), py::arg("Z0"), py::arg("VX"), py::arg("VY"), py::arg("VZ"), py::arg("Radius")
)
.def_static("SwitchViewsinWindow_s",
(void (*)( const handle<V3d_View> & , const handle<V3d_View> & ) ) static_cast<void (*)( const handle<V3d_View> & , const handle<V3d_View> & ) >(&V3d::SwitchViewsinWindow),
R"#()#" , py::arg("aPreviousView"), py::arg("aNextView")
)
.def_static("TypeOfOrientationToString_s",
(Standard_CString (*)( V3d_TypeOfOrientation ) ) static_cast<Standard_CString (*)( V3d_TypeOfOrientation ) >(&V3d::TypeOfOrientationToString),
R"#(Returns the string name for a given orientation type.)#" , py::arg("theType")
)
.def_static("TypeOfOrientationFromString_s",
(V3d_TypeOfOrientation (*)( Standard_CString ) ) static_cast<V3d_TypeOfOrientation (*)( Standard_CString ) >(&V3d::TypeOfOrientationFromString),
R"#(Returns the orientation type from the given string identifier (using case-insensitive comparison).)#" , py::arg("theTypeString")
)
.def_static("TypeOfOrientationFromString_s",
(Standard_Boolean (*)( const Standard_CString , V3d_TypeOfOrientation & ) ) static_cast<Standard_Boolean (*)( const Standard_CString , V3d_TypeOfOrientation & ) >(&V3d::TypeOfOrientationFromString),
R"#(Determines the shape type from the given string identifier (using case-insensitive comparison).)#" , py::arg("theTypeString"), py::arg("theType")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class V3d_AmbientLight from ./opencascade/V3d_AmbientLight.hxx
klass = m.attr("V3d_AmbientLight");
// nested enums
static_cast<py::class_<V3d_AmbientLight ,opencascade::handle<V3d_AmbientLight> , Graphic3d_CLight >>(klass)
// constructors
.def(py::init< const Quantity_Color & >() , py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE) )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_AmbientLight::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_AmbientLight::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_AmbientLight::*)() const) static_cast< const handle<Standard_Type> & (V3d_AmbientLight::*)() const>(&V3d_AmbientLight::DynamicType),
R"#()#"
)
;
// Class V3d_CircularGrid from ./opencascade/V3d_CircularGrid.hxx
klass = m.attr("V3d_CircularGrid");
// nested enums
static_cast<py::class_<V3d_CircularGrid ,opencascade::handle<V3d_CircularGrid> , Aspect_CircularGrid >>(klass)
// constructors
// custom constructors
// methods
.def("SetColors",
(void (V3d_CircularGrid::*)( const Quantity_Color & , const Quantity_Color & ) ) static_cast<void (V3d_CircularGrid::*)( const Quantity_Color & , const Quantity_Color & ) >(&V3d_CircularGrid::SetColors),
R"#()#" , py::arg("aColor"), py::arg("aTenthColor")
)
.def("Display",
(void (V3d_CircularGrid::*)() ) static_cast<void (V3d_CircularGrid::*)() >(&V3d_CircularGrid::Display),
R"#()#"
)
.def("Erase",
(void (V3d_CircularGrid::*)() const) static_cast<void (V3d_CircularGrid::*)() const>(&V3d_CircularGrid::Erase),
R"#()#"
)
.def("IsDisplayed",
(Standard_Boolean (V3d_CircularGrid::*)() const) static_cast<Standard_Boolean (V3d_CircularGrid::*)() const>(&V3d_CircularGrid::IsDisplayed),
R"#()#"
)
.def("SetGraphicValues",
(void (V3d_CircularGrid::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_CircularGrid::*)( const Standard_Real , const Standard_Real ) >(&V3d_CircularGrid::SetGraphicValues),
R"#()#" , py::arg("Radius"), py::arg("OffSet")
)
.def("DumpJson",
(void (V3d_CircularGrid::*)( Standard_OStream & , Standard_Integer ) const) static_cast<void (V3d_CircularGrid::*)( Standard_OStream & , Standard_Integer ) const>(&V3d_CircularGrid::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
.def("GraphicValues",
[]( V3d_CircularGrid &self ){
Standard_Real Radius;
Standard_Real OffSet;
self.GraphicValues(Radius,OffSet);
return std::make_tuple(Radius,OffSet); },
R"#()#"
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_CircularGrid::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_CircularGrid::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_CircularGrid::*)() const) static_cast< const handle<Standard_Type> & (V3d_CircularGrid::*)() const>(&V3d_CircularGrid::DynamicType),
R"#()#"
)
;
// Class V3d_ImageDumpOptions from ./opencascade/V3d_ImageDumpOptions.hxx
klass = m.attr("V3d_ImageDumpOptions");
// nested enums
static_cast<py::class_<V3d_ImageDumpOptions , shared_ptr<V3d_ImageDumpOptions> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
.def_readwrite("Width", &V3d_ImageDumpOptions::Width)
.def_readwrite("Height", &V3d_ImageDumpOptions::Height)
.def_readwrite("BufferType", &V3d_ImageDumpOptions::BufferType)
.def_readwrite("StereoOptions", &V3d_ImageDumpOptions::StereoOptions)
.def_readwrite("TileSize", &V3d_ImageDumpOptions::TileSize)
.def_readwrite("ToAdjustAspect", &V3d_ImageDumpOptions::ToAdjustAspect)
.def_readwrite("TargetZLayerId", &V3d_ImageDumpOptions::TargetZLayerId)
.def_readwrite("IsSingleLayer", &V3d_ImageDumpOptions::IsSingleLayer)
.def_readwrite("LightName", &V3d_ImageDumpOptions::LightName)
// methods returning by ref wrapped as properties
;
// Class V3d_Plane from ./opencascade/V3d_Plane.hxx
klass = m.attr("V3d_Plane");
// nested enums
static_cast<py::class_<V3d_Plane ,opencascade::handle<V3d_Plane> , Standard_Transient >>(klass)
// constructors
.def(py::init< const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real >() , py::arg("theA")=static_cast< const Standard_Real>(0.0), py::arg("theB")=static_cast< const Standard_Real>(0.0), py::arg("theC")=static_cast< const Standard_Real>(1.0), py::arg("theD")=static_cast< const Standard_Real>(0.0) )
// custom constructors
// methods
.def("SetPlane",
(void (V3d_Plane::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_Plane::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_Plane::SetPlane),
R"#(Change plane equation.)#" , py::arg("theA"), py::arg("theB"), py::arg("theC"), py::arg("theD")
)
.def("Display",
(void (V3d_Plane::*)( const handle<V3d_View> & , const Quantity_Color & ) ) static_cast<void (V3d_Plane::*)( const handle<V3d_View> & , const Quantity_Color & ) >(&V3d_Plane::Display),
R"#(Display the plane representation in the chosen view.)#" , py::arg("theView"), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_GRAY)
)
.def("Erase",
(void (V3d_Plane::*)() ) static_cast<void (V3d_Plane::*)() >(&V3d_Plane::Erase),
R"#(Erase the plane representation.)#"
)
.def("IsDisplayed",
(Standard_Boolean (V3d_Plane::*)() const) static_cast<Standard_Boolean (V3d_Plane::*)() const>(&V3d_Plane::IsDisplayed),
R"#(Returns TRUE when the plane representation is displayed.)#"
)
// methods using call by reference i.s.o. return
.def("Plane",
[]( V3d_Plane &self ){
Standard_Real theA;
Standard_Real theB;
Standard_Real theC;
Standard_Real theD;
self.Plane(theA,theB,theC,theD);
return std::make_tuple(theA,theB,theC,theD); },
R"#(Returns the parameters of the plane.)#"
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_Plane::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_Plane::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("ClipPlane",
( const handle<Graphic3d_ClipPlane> & (V3d_Plane::*)() const) static_cast< const handle<Graphic3d_ClipPlane> & (V3d_Plane::*)() const>(&V3d_Plane::ClipPlane),
R"#(Use this method to pass clipping plane implementation for standard clipping workflow.)#"
)
.def("DynamicType",
( const handle<Standard_Type> & (V3d_Plane::*)() const) static_cast< const handle<Standard_Type> & (V3d_Plane::*)() const>(&V3d_Plane::DynamicType),
R"#()#"
)
;
// Class V3d_PositionLight from ./opencascade/V3d_PositionLight.hxx
klass = m.attr("V3d_PositionLight");
// nested enums
static_cast<py::class_<V3d_PositionLight ,opencascade::handle<V3d_PositionLight> , Graphic3d_CLight >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_PositionLight::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_PositionLight::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_PositionLight::*)() const) static_cast< const handle<Standard_Type> & (V3d_PositionLight::*)() const>(&V3d_PositionLight::DynamicType),
R"#()#"
)
;
// Class V3d_RectangularGrid from ./opencascade/V3d_RectangularGrid.hxx
klass = m.attr("V3d_RectangularGrid");
// nested enums
static_cast<py::class_<V3d_RectangularGrid ,opencascade::handle<V3d_RectangularGrid> , Aspect_RectangularGrid >>(klass)
// constructors
// custom constructors
// methods
.def("SetColors",
(void (V3d_RectangularGrid::*)( const Quantity_Color & , const Quantity_Color & ) ) static_cast<void (V3d_RectangularGrid::*)( const Quantity_Color & , const Quantity_Color & ) >(&V3d_RectangularGrid::SetColors),
R"#()#" , py::arg("aColor"), py::arg("aTenthColor")
)
.def("Display",
(void (V3d_RectangularGrid::*)() ) static_cast<void (V3d_RectangularGrid::*)() >(&V3d_RectangularGrid::Display),
R"#()#"
)
.def("Erase",
(void (V3d_RectangularGrid::*)() const) static_cast<void (V3d_RectangularGrid::*)() const>(&V3d_RectangularGrid::Erase),
R"#()#"
)
.def("IsDisplayed",
(Standard_Boolean (V3d_RectangularGrid::*)() const) static_cast<Standard_Boolean (V3d_RectangularGrid::*)() const>(&V3d_RectangularGrid::IsDisplayed),
R"#()#"
)
.def("SetGraphicValues",
(void (V3d_RectangularGrid::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_RectangularGrid::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_RectangularGrid::SetGraphicValues),
R"#()#" , py::arg("XSize"), py::arg("YSize"), py::arg("OffSet")
)
.def("DumpJson",
(void (V3d_RectangularGrid::*)( Standard_OStream & , Standard_Integer ) const) static_cast<void (V3d_RectangularGrid::*)( Standard_OStream & , Standard_Integer ) const>(&V3d_RectangularGrid::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
.def("GraphicValues",
[]( V3d_RectangularGrid &self ){
Standard_Real XSize;
Standard_Real YSize;
Standard_Real OffSet;
self.GraphicValues(XSize,YSize,OffSet);
return std::make_tuple(XSize,YSize,OffSet); },
R"#()#"
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_RectangularGrid::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_RectangularGrid::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_RectangularGrid::*)() const) static_cast< const handle<Standard_Type> & (V3d_RectangularGrid::*)() const>(&V3d_RectangularGrid::DynamicType),
R"#()#"
)
;
// Class V3d_Trihedron from ./opencascade/V3d_Trihedron.hxx
klass = m.attr("V3d_Trihedron");
// nested enums
static_cast<py::class_<V3d_Trihedron ,opencascade::handle<V3d_Trihedron> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("IsWireframe",
(bool (V3d_Trihedron::*)() const) static_cast<bool (V3d_Trihedron::*)() const>(&V3d_Trihedron::IsWireframe),
R"#(Return TRUE if wireframe presentation is set; FALSE by default.)#"
)
.def("SetWireframe",
(void (V3d_Trihedron::*)( const Standard_Boolean ) ) static_cast<void (V3d_Trihedron::*)( const Standard_Boolean ) >(&V3d_Trihedron::SetWireframe),
R"#(Switch wireframe / shaded trihedron.)#" , py::arg("theAsWireframe")
)
.def("TransformPersistence",
( const handle<Graphic3d_TransformPers> (V3d_Trihedron::*)() const) static_cast< const handle<Graphic3d_TransformPers> (V3d_Trihedron::*)() const>(&V3d_Trihedron::TransformPersistence),
R"#(Return trihedron position.)#"
)
.def("SetPosition",
(void (V3d_Trihedron::*)( const Aspect_TypeOfTriedronPosition ) ) static_cast<void (V3d_Trihedron::*)( const Aspect_TypeOfTriedronPosition ) >(&V3d_Trihedron::SetPosition),
R"#(Setup the corner to draw the trihedron.)#" , py::arg("thePosition")
)
.def("Scale",
(Standard_Real (V3d_Trihedron::*)() const) static_cast<Standard_Real (V3d_Trihedron::*)() const>(&V3d_Trihedron::Scale),
R"#(Return scale factor.)#"
)
.def("SetScale",
(void (V3d_Trihedron::*)( const Standard_Real ) ) static_cast<void (V3d_Trihedron::*)( const Standard_Real ) >(&V3d_Trihedron::SetScale),
R"#(Setup the scale factor.)#" , py::arg("theScale")
)
.def("SizeRatio",
(Standard_Real (V3d_Trihedron::*)() const) static_cast<Standard_Real (V3d_Trihedron::*)() const>(&V3d_Trihedron::SizeRatio),
R"#(Return size ratio factor.)#"
)
.def("SetSizeRatio",
(void (V3d_Trihedron::*)( const Standard_Real ) ) static_cast<void (V3d_Trihedron::*)( const Standard_Real ) >(&V3d_Trihedron::SetSizeRatio),
R"#(Setup the size ratio factor.)#" , py::arg("theRatio")
)
.def("ArrowDiameter",
(Standard_Real (V3d_Trihedron::*)() const) static_cast<Standard_Real (V3d_Trihedron::*)() const>(&V3d_Trihedron::ArrowDiameter),
R"#(Return arrow diameter.)#"
)
.def("SetArrowDiameter",
(void (V3d_Trihedron::*)( const Standard_Real ) ) static_cast<void (V3d_Trihedron::*)( const Standard_Real ) >(&V3d_Trihedron::SetArrowDiameter),
R"#(Setup the arrow diameter.)#" , py::arg("theDiam")
)
.def("NbFacets",
(Standard_Integer (V3d_Trihedron::*)() const) static_cast<Standard_Integer (V3d_Trihedron::*)() const>(&V3d_Trihedron::NbFacets),
R"#(Return number of facets for tessellation.)#"
)
.def("SetNbFacets",
(void (V3d_Trihedron::*)( const Standard_Integer ) ) static_cast<void (V3d_Trihedron::*)( const Standard_Integer ) >(&V3d_Trihedron::SetNbFacets),
R"#(Setup the number of facets for tessellation.)#" , py::arg("theNbFacets")
)
.def("LabelAspect",
( const handle<Prs3d_TextAspect> & (V3d_Trihedron::*)( V3d_TypeOfAxe ) const) static_cast< const handle<Prs3d_TextAspect> & (V3d_Trihedron::*)( V3d_TypeOfAxe ) const>(&V3d_Trihedron::LabelAspect),
R"#(Return text aspect for specified axis.)#" , py::arg("theAxis")
)
.def("SetLabelsColor",
(void (V3d_Trihedron::*)( const Quantity_Color & , const Quantity_Color & , const Quantity_Color & ) ) static_cast<void (V3d_Trihedron::*)( const Quantity_Color & , const Quantity_Color & , const Quantity_Color & ) >(&V3d_Trihedron::SetLabelsColor),
R"#(Setup per-label color.)#" , py::arg("theXColor"), py::arg("theYColor"), py::arg("theZColor")
)
.def("SetLabelsColor",
(void (V3d_Trihedron::*)( const Quantity_Color & ) ) static_cast<void (V3d_Trihedron::*)( const Quantity_Color & ) >(&V3d_Trihedron::SetLabelsColor),
R"#(Setup color of text labels.)#" , py::arg("theColor")
)
.def("ArrowAspect",
( const handle<Prs3d_ShadingAspect> & (V3d_Trihedron::*)( V3d_TypeOfAxe ) const) static_cast< const handle<Prs3d_ShadingAspect> & (V3d_Trihedron::*)( V3d_TypeOfAxe ) const>(&V3d_Trihedron::ArrowAspect),
R"#(Return shading aspect for specified axis.)#" , py::arg("theAxis")
)
.def("SetArrowsColor",
(void (V3d_Trihedron::*)( const Quantity_Color & , const Quantity_Color & , const Quantity_Color & ) ) static_cast<void (V3d_Trihedron::*)( const Quantity_Color & , const Quantity_Color & , const Quantity_Color & ) >(&V3d_Trihedron::SetArrowsColor),
R"#(Setup colors of arrows.)#" , py::arg("theXColor"), py::arg("theYColor"), py::arg("theZColor")
)
.def("Label",
( const TCollection_AsciiString & (V3d_Trihedron::*)( V3d_TypeOfAxe ) const) static_cast< const TCollection_AsciiString & (V3d_Trihedron::*)( V3d_TypeOfAxe ) const>(&V3d_Trihedron::Label),
R"#(Return axis text.)#" , py::arg("theAxis")
)
.def("SetLabels",
(void (V3d_Trihedron::*)( const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & ) ) static_cast<void (V3d_Trihedron::*)( const TCollection_AsciiString & , const TCollection_AsciiString & , const TCollection_AsciiString & ) >(&V3d_Trihedron::SetLabels),
R"#(Setup per-axis text.)#" , py::arg("theX"), py::arg("theY"), py::arg("theZ")
)
.def("Display",
(void (V3d_Trihedron::*)( const handle<V3d_View> & ) ) static_cast<void (V3d_Trihedron::*)( const handle<V3d_View> & ) >(&V3d_Trihedron::Display),
R"#(Display trihedron.)#" , py::arg("theView")
)
.def("Display",
(void (V3d_Trihedron::*)( const V3d_View & ) ) static_cast<void (V3d_Trihedron::*)( const V3d_View & ) >(&V3d_Trihedron::Display),
R"#(Display trihedron.)#" , py::arg("theView")
)
.def("Erase",
(void (V3d_Trihedron::*)() ) static_cast<void (V3d_Trihedron::*)() >(&V3d_Trihedron::Erase),
R"#(Erase trihedron.)#"
)
.def("DumpJson",
(void (V3d_Trihedron::*)( Standard_OStream & , Standard_Integer ) const) static_cast<void (V3d_Trihedron::*)( Standard_OStream & , Standard_Integer ) const>(&V3d_Trihedron::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_Trihedron::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_Trihedron::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_Trihedron::*)() const) static_cast< const handle<Standard_Type> & (V3d_Trihedron::*)() const>(&V3d_Trihedron::DynamicType),
R"#()#"
)
.def("OriginAspect",
( const handle<Prs3d_ShadingAspect> & (V3d_Trihedron::*)() const) static_cast< const handle<Prs3d_ShadingAspect> & (V3d_Trihedron::*)() const>(&V3d_Trihedron::OriginAspect),
R"#(Return shading aspect of origin sphere.)#"
)
;
// Class V3d_View from ./opencascade/V3d_View.hxx
klass = m.attr("V3d_View");
// nested enums
static_cast<py::class_<V3d_View ,opencascade::handle<V3d_View> , Standard_Transient >>(klass)
// constructors
.def(py::init< const handle<V3d_Viewer> &, const V3d_TypeOfView >() , py::arg("theViewer"), py::arg("theType")=static_cast< const V3d_TypeOfView>(V3d_ORTHOGRAPHIC) )
.def(py::init< const handle<V3d_Viewer> &, const handle<V3d_View> & >() , py::arg("theViewer"), py::arg("theView") )
// custom constructors
// methods
.def("SetWindow",
(void (V3d_View::*)( const handle<Aspect_Window> & , const Aspect_RenderingContext ) ) static_cast<void (V3d_View::*)( const handle<Aspect_Window> & , const Aspect_RenderingContext ) >(&V3d_View::SetWindow),
R"#(Activates the view in the specified Window If <aContext> is not NULL the graphic context is used to draw something in this view. Otherwise an internal graphic context is created. Warning: The view is centered and resized to preserve the height/width ratio of the window.)#" , py::arg("theWindow"), py::arg("theContext")=static_cast< const Aspect_RenderingContext>(NULL)
)
.def("SetWindow",
(void (V3d_View::*)( const handle<V3d_View> & , const Graphic3d_Vec2d & , Aspect_TypeOfTriedronPosition , const Graphic3d_Vec2d & , const Graphic3d_Vec2i & ) ) static_cast<void (V3d_View::*)( const handle<V3d_View> & , const Graphic3d_Vec2d & , Aspect_TypeOfTriedronPosition , const Graphic3d_Vec2d & , const Graphic3d_Vec2i & ) >(&V3d_View::SetWindow),
R"#(Activates the view as subview of another view.)#" , py::arg("theParentView"), py::arg("theSize"), py::arg("theCorner")=static_cast<Aspect_TypeOfTriedronPosition>(Aspect_TOTP_LEFT_UPPER), py::arg("theOffset")=static_cast< const Graphic3d_Vec2d &>(Graphic3d_Vec2d ( )), py::arg("theMargins")=static_cast< const Graphic3d_Vec2i &>(Graphic3d_Vec2i ( ))
)
.def("SetMagnify",
(void (V3d_View::*)( const handle<Aspect_Window> & , const handle<V3d_View> & , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const handle<Aspect_Window> & , const handle<V3d_View> & , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&V3d_View::SetMagnify),
R"#()#" , py::arg("theWindow"), py::arg("thePreviousView"), py::arg("theX1"), py::arg("theY1"), py::arg("theX2"), py::arg("theY2")
)
.def("Remove",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::Remove),
R"#(Destroys the view.)#"
)
.def("Update",
(void (V3d_View::*)() const) static_cast<void (V3d_View::*)() const>(&V3d_View::Update),
R"#(Deprecated, Redraw() should be used instead.)#"
)
.def("Redraw",
(void (V3d_View::*)() const) static_cast<void (V3d_View::*)() const>(&V3d_View::Redraw),
R"#(Redisplays the view even if there has not been any modification. Must be called if the view is shown. (Ex: DeIconification ) .)#"
)
.def("RedrawImmediate",
(void (V3d_View::*)() const) static_cast<void (V3d_View::*)() const>(&V3d_View::RedrawImmediate),
R"#(Updates layer of immediate presentations.)#"
)
.def("Invalidate",
(void (V3d_View::*)() const) static_cast<void (V3d_View::*)() const>(&V3d_View::Invalidate),
R"#(Invalidates view content but does not redraw it.)#"
)
.def("IsInvalidated",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IsInvalidated),
R"#(Returns true if cached view content has been invalidated.)#"
)
.def("IsInvalidatedImmediate",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IsInvalidatedImmediate),
R"#(Returns true if immediate layer content has been invalidated.)#"
)
.def("InvalidateImmediate",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::InvalidateImmediate),
R"#(Invalidates view content within immediate layer but does not redraw it.)#"
)
.def("MustBeResized",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::MustBeResized),
R"#(Must be called when the window supporting the view changes size. if the view is not mapped on a window. Warning: The view is centered and resized to preserve the height/width ratio of the window.)#"
)
.def("DoMapping",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::DoMapping),
R"#(Must be called when the window supporting the view is mapped or unmapped.)#"
)
.def("IsEmpty",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IsEmpty),
R"#(Returns the status of the view regarding the displayed structures inside Returns True is The View is empty)#"
)
.def("UpdateLights",
(void (V3d_View::*)() const) static_cast<void (V3d_View::*)() const>(&V3d_View::UpdateLights),
R"#(Updates the lights of the view.)#"
)
.def("SetAutoZFitMode",
(void (V3d_View::*)( const Standard_Boolean , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Boolean , const Standard_Real ) >(&V3d_View::SetAutoZFitMode),
R"#(Sets the automatic z-fit mode and its parameters. The auto z-fit has extra parameters which can controlled from application level to ensure that the size of viewing volume will be sufficiently large to cover the depth of unmanaged objects, for example, transformation persistent ones.)#" , py::arg("theIsOn"), py::arg("theScaleFactor")=static_cast< const Standard_Real>(1.0)
)
.def("AutoZFitMode",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::AutoZFitMode),
R"#(returns TRUE if automatic z-fit mode is turned on.)#"
)
.def("AutoZFitScaleFactor",
(Standard_Real (V3d_View::*)() const) static_cast<Standard_Real (V3d_View::*)() const>(&V3d_View::AutoZFitScaleFactor),
R"#(returns scale factor parameter of automatic z-fit mode.)#"
)
.def("AutoZFit",
(void (V3d_View::*)() const) static_cast<void (V3d_View::*)() const>(&V3d_View::AutoZFit),
R"#(If automatic z-range fitting is turned on, adjusts Z-min and Z-max projection volume planes with call to ZFitAll.)#"
)
.def("ZFitAll",
(void (V3d_View::*)( const Standard_Real ) const) static_cast<void (V3d_View::*)( const Standard_Real ) const>(&V3d_View::ZFitAll),
R"#(Change Z-min and Z-max planes of projection volume to match the displayed objects.)#" , py::arg("theScaleFactor")=static_cast< const Standard_Real>(1.0)
)
.def("SetBackgroundColor",
(void (V3d_View::*)( const Quantity_TypeOfColor , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Quantity_TypeOfColor , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetBackgroundColor),
R"#(Defines the background color of the view by the color definition type and the three corresponding values.)#" , py::arg("theType"), py::arg("theV1"), py::arg("theV2"), py::arg("theV3")
)
.def("SetBackgroundColor",
(void (V3d_View::*)( const Quantity_Color & ) ) static_cast<void (V3d_View::*)( const Quantity_Color & ) >(&V3d_View::SetBackgroundColor),
R"#(Defines the background color of the view.)#" , py::arg("theColor")
)
.def("SetBgGradientColors",
(void (V3d_View::*)( const Quantity_Color & , const Quantity_Color & , const Aspect_GradientFillMethod , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Quantity_Color & , const Quantity_Color & , const Aspect_GradientFillMethod , const Standard_Boolean ) >(&V3d_View::SetBgGradientColors),
R"#(Defines the gradient background colors of the view by supplying the colors and the fill method (horizontal by default).)#" , py::arg("theColor1"), py::arg("theColor2"), py::arg("theFillStyle")=static_cast< const Aspect_GradientFillMethod>(Aspect_GradientFillMethod_Horizontal), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("SetBgGradientStyle",
(void (V3d_View::*)( const Aspect_GradientFillMethod , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Aspect_GradientFillMethod , const Standard_Boolean ) >(&V3d_View::SetBgGradientStyle),
R"#(Defines the gradient background fill method of the view.)#" , py::arg("theMethod")=static_cast< const Aspect_GradientFillMethod>(Aspect_GradientFillMethod_Horizontal), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("SetBackgroundImage",
(void (V3d_View::*)( const Standard_CString , const Aspect_FillMethod , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_CString , const Aspect_FillMethod , const Standard_Boolean ) >(&V3d_View::SetBackgroundImage),
R"#(Defines the background texture of the view by supplying the texture image file name and fill method (centered by default).)#" , py::arg("theFileName"), py::arg("theFillStyle")=static_cast< const Aspect_FillMethod>(Aspect_FM_CENTERED), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("SetBackgroundImage",
(void (V3d_View::*)( const handle<Graphic3d_Texture2D> & , const Aspect_FillMethod , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_Texture2D> & , const Aspect_FillMethod , const Standard_Boolean ) >(&V3d_View::SetBackgroundImage),
R"#(Defines the background texture of the view by supplying the texture and fill method (centered by default))#" , py::arg("theTexture"), py::arg("theFillStyle")=static_cast< const Aspect_FillMethod>(Aspect_FM_CENTERED), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("SetBgImageStyle",
(void (V3d_View::*)( const Aspect_FillMethod , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Aspect_FillMethod , const Standard_Boolean ) >(&V3d_View::SetBgImageStyle),
R"#(Defines the textured background fill method of the view.)#" , py::arg("theFillStyle"), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("SetBackgroundCubeMap",
(void (V3d_View::*)( const handle<Graphic3d_CubeMap> & , Standard_Boolean , Standard_Boolean ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_CubeMap> & , Standard_Boolean , Standard_Boolean ) >(&V3d_View::SetBackgroundCubeMap),
R"#(Sets environment cubemap as background.)#" , py::arg("theCubeMap"), py::arg("theToUpdatePBREnv")=static_cast<Standard_Boolean>(Standard_True), py::arg("theToUpdate")=static_cast<Standard_Boolean>(Standard_False)
)
.def("SetBackgroundSkydome",
(void (V3d_View::*)( const Aspect_SkydomeBackground & , Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Aspect_SkydomeBackground & , Standard_Boolean ) >(&V3d_View::SetBackgroundSkydome),
R"#(Sets skydome aspect)#" , py::arg("theAspect"), py::arg("theToUpdatePBREnv")=static_cast<Standard_Boolean>(Standard_True)
)
.def("IsImageBasedLighting",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IsImageBasedLighting),
R"#(Returns TRUE if IBL (Image Based Lighting) from background cubemap is enabled.)#"
)
.def("SetImageBasedLighting",
(void (V3d_View::*)( Standard_Boolean , Standard_Boolean ) ) static_cast<void (V3d_View::*)( Standard_Boolean , Standard_Boolean ) >(&V3d_View::SetImageBasedLighting),
R"#(Enables or disables IBL (Image Based Lighting) from background cubemap. Has no effect if PBR is not used.)#" , py::arg("theToEnableIBL"), py::arg("theToUpdate")=static_cast<Standard_Boolean>(Standard_False)
)
.def("GeneratePBREnvironment",
(void (V3d_View::*)( Standard_Boolean ) ) static_cast<void (V3d_View::*)( Standard_Boolean ) >(&V3d_View::GeneratePBREnvironment),
R"#(Activates IBL from background cubemap.)#" , py::arg("theToUpdate")=static_cast<Standard_Boolean>(Standard_False)
)
.def("ClearPBREnvironment",
(void (V3d_View::*)( Standard_Boolean ) ) static_cast<void (V3d_View::*)( Standard_Boolean ) >(&V3d_View::ClearPBREnvironment),
R"#(Disables IBL from background cubemap; fills PBR specular probe and irradiance map with white color.)#" , py::arg("theToUpdate")=static_cast<Standard_Boolean>(Standard_False)
)
.def("SetTextureEnv",
(void (V3d_View::*)( const handle<Graphic3d_TextureEnv> & ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_TextureEnv> & ) >(&V3d_View::SetTextureEnv),
R"#(Sets the environment texture to use. No environment texture by default.)#" , py::arg("theTexture")
)
.def("SetAxis",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetAxis),
R"#(Definition of an axis from its origin and its orientation . This will be the current axis for rotations and movements. Warning! raises BadValue from V3d if the vector normal is NULL. .)#" , py::arg("X"), py::arg("Y"), py::arg("Z"), py::arg("Vx"), py::arg("Vy"), py::arg("Vz")
)
.def("SetVisualization",
(void (V3d_View::*)( const V3d_TypeOfVisualization ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfVisualization ) >(&V3d_View::SetVisualization),
R"#(Defines the visualization type in the view.)#" , py::arg("theType")
)
.def("SetLightOn",
(void (V3d_View::*)( const handle<V3d_Light> & ) ) static_cast<void (V3d_View::*)( const handle<V3d_Light> & ) >(&V3d_View::SetLightOn),
R"#(Activates theLight in the view.)#" , py::arg("theLight")
)
.def("SetLightOn",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::SetLightOn),
R"#(Activates all the lights defined in this view.)#"
)
.def("SetLightOff",
(void (V3d_View::*)( const handle<V3d_Light> & ) ) static_cast<void (V3d_View::*)( const handle<V3d_Light> & ) >(&V3d_View::SetLightOff),
R"#(Deactivate theLight in this view.)#" , py::arg("theLight")
)
.def("SetLightOff",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::SetLightOff),
R"#(Deactivate all the Lights defined in this view.)#"
)
.def("IsActiveLight",
(Standard_Boolean (V3d_View::*)( const handle<V3d_Light> & ) const) static_cast<Standard_Boolean (V3d_View::*)( const handle<V3d_Light> & ) const>(&V3d_View::IsActiveLight),
R"#(Returns TRUE when the light is active in this view.)#" , py::arg("theLight")
)
.def("SetImmediateUpdate",
(Standard_Boolean (V3d_View::*)( const Standard_Boolean ) ) static_cast<Standard_Boolean (V3d_View::*)( const Standard_Boolean ) >(&V3d_View::SetImmediateUpdate),
R"#(sets the immediate update mode and returns the previous one.)#" , py::arg("theImmediateUpdate")
)
.def("Trihedron",
( const handle<V3d_Trihedron> & (V3d_View::*)( bool ) ) static_cast< const handle<V3d_Trihedron> & (V3d_View::*)( bool ) >(&V3d_View::Trihedron),
R"#(Returns trihedron object.)#" , py::arg("theToCreate")=static_cast<bool>(true)
)
.def("ZBufferTriedronSetup",
(void (V3d_View::*)( const Quantity_Color & , const Quantity_Color & , const Quantity_Color & , const Standard_Real , const Standard_Real , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Quantity_Color & , const Quantity_Color & , const Quantity_Color & , const Standard_Real , const Standard_Real , const Standard_Integer ) >(&V3d_View::ZBufferTriedronSetup),
R"#(Customization of the ZBUFFER Triedron. XColor,YColor,ZColor - colors of axis SizeRatio - ratio of decreasing of the trihedron size when its physical position comes out of the view AxisDiametr - diameter relatively to axis length NbFacettes - number of facets of cylinders and cones)#" , py::arg("theXColor")=static_cast< const Quantity_Color &>(Quantity_NOC_RED), py::arg("theYColor")=static_cast< const Quantity_Color &>(Quantity_NOC_GREEN), py::arg("theZColor")=static_cast< const Quantity_Color &>(Quantity_NOC_BLUE1), py::arg("theSizeRatio")=static_cast< const Standard_Real>(0.8), py::arg("theAxisDiametr")=static_cast< const Standard_Real>(0.05), py::arg("theNbFacettes")=static_cast< const Standard_Integer>(12)
)
.def("TriedronDisplay",
(void (V3d_View::*)( const Aspect_TypeOfTriedronPosition , const Quantity_Color & , const Standard_Real , const V3d_TypeOfVisualization ) ) static_cast<void (V3d_View::*)( const Aspect_TypeOfTriedronPosition , const Quantity_Color & , const Standard_Real , const V3d_TypeOfVisualization ) >(&V3d_View::TriedronDisplay),
R"#(Display of the Triedron. Initialize position, color and length of Triedron axes. The scale is a percent of the window width.)#" , py::arg("thePosition")=static_cast< const Aspect_TypeOfTriedronPosition>(Aspect_TOTP_CENTER), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE), py::arg("theScale")=static_cast< const Standard_Real>(0.02), py::arg("theMode")=static_cast< const V3d_TypeOfVisualization>(V3d_WIREFRAME)
)
.def("TriedronErase",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::TriedronErase),
R"#(Erases the Triedron.)#"
)
.def("GraduatedTrihedronDisplay",
(void (V3d_View::*)( const Graphic3d_GraduatedTrihedron & ) ) static_cast<void (V3d_View::*)( const Graphic3d_GraduatedTrihedron & ) >(&V3d_View::GraduatedTrihedronDisplay),
R"#(Displays a graduated trihedron.)#" , py::arg("theTrihedronData")
)
.def("GraduatedTrihedronErase",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::GraduatedTrihedronErase),
R"#(Erases a graduated trihedron from the view.)#"
)
.def("SetFront",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::SetFront),
R"#(modify the Projection of the view perpendicularly to the privileged plane of the viewer.)#"
)
.def("Rotate",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Rotate),
R"#(Rotates the eye about the coordinate system of reference of the screen for which the origin is the view point of the projection, with a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True Warning! raises BadValue from V3d If the eye, the view point, or the high point are aligned or confused.)#" , py::arg("Ax"), py::arg("Ay"), py::arg("Az"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Rotate",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Rotate),
R"#(Rotates the eye about the coordinate system of reference of the screen for which the origin is Gravity point {X,Y,Z}, with a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True If the eye, the view point, or the high point are aligned or confused.)#" , py::arg("Ax"), py::arg("Ay"), py::arg("Az"), py::arg("X"), py::arg("Y"), py::arg("Z"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Rotate",
(void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Rotate),
R"#(Rotates the eye about one of the coordinate axes of of the view for which the origin is the Gravity point{X,Y,Z} with an relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True)#" , py::arg("Axe"), py::arg("Angle"), py::arg("X"), py::arg("Y"), py::arg("Z"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Rotate",
(void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Rotate),
R"#(Rotates the eye about one of the coordinate axes of of the view for which the origin is the view point of the projection with an relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True)#" , py::arg("Axe"), py::arg("Angle"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Rotate",
(void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) >(&V3d_View::Rotate),
R"#(Rotates the eye around the current axis a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True)#" , py::arg("Angle"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Move",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Move),
R"#(Movement of the eye parallel to the coordinate system of reference of the screen a distance relative to the initial position expressed by Start = Standard_True.)#" , py::arg("Dx"), py::arg("Dy"), py::arg("Dz"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Move",
(void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Move),
R"#(Movement of the eye parallel to one of the axes of the coordinate system of reference of the view a distance relative to the initial position expressed by Start = Standard_True.)#" , py::arg("Axe"), py::arg("Length"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Move",
(void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) >(&V3d_View::Move),
R"#(Movement of the eye parllel to the current axis a distance relative to the initial position expressed by Start = Standard_True)#" , py::arg("Length"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Translate",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Translate),
R"#(Movement of the ye and the view point parallel to the frame of reference of the screen a distance relative to the initial position expressed by Start = Standard_True)#" , py::arg("Dx"), py::arg("Dy"), py::arg("Dz"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Translate",
(void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Translate),
R"#(Movement of the eye and the view point parallel to one of the axes of the fame of reference of the view a distance relative to the initial position expressed by Start = Standard_True)#" , py::arg("Axe"), py::arg("Length"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Translate",
(void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) >(&V3d_View::Translate),
R"#(Movement of the eye and view point parallel to the current axis a distance relative to the initial position expressed by Start = Standard_True)#" , py::arg("Length"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Place",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Real ) >(&V3d_View::Place),
R"#(places the point of the view corresponding at the pixel position x,y at the center of the window and updates the view.)#" , py::arg("theXp"), py::arg("theYp"), py::arg("theZoomFactor")=static_cast< const Standard_Real>(1)
)
.def("Turn",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Turn),
R"#(Rotation of the view point around the frame of reference of the screen for which the origin is the eye of the projection with a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True)#" , py::arg("Ax"), py::arg("Ay"), py::arg("Az"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Turn",
(void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfAxe , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Turn),
R"#(Rotation of the view point around one of the axes of the frame of reference of the view for which the origin is the eye of the projection with an angular value in RADIANS relative to the initial position expressed by Start = Standard_True)#" , py::arg("Axe"), py::arg("Angle"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Turn",
(void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) >(&V3d_View::Turn),
R"#(Rotation of the view point around the current axis an angular value in RADIANS relative to the initial position expressed by Start = Standard_True)#" , py::arg("Angle"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("SetTwist",
(void (V3d_View::*)( const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real ) >(&V3d_View::SetTwist),
R"#(Defines the angular position of the high point of the reference frame of the view with respect to the Y screen axis with an absolute angular value in RADIANS.)#" , py::arg("Angle")
)
.def("SetEye",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetEye),
R"#(Defines the position of the eye..)#" , py::arg("X"), py::arg("Y"), py::arg("Z")
)
.def("SetDepth",
(void (V3d_View::*)( const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real ) >(&V3d_View::SetDepth),
R"#(Defines the Depth of the eye from the view point without update the projection .)#" , py::arg("Depth")
)
.def("SetProj",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetProj),
R"#(Defines the orientation of the projection.)#" , py::arg("Vx"), py::arg("Vy"), py::arg("Vz")
)
.def("SetProj",
(void (V3d_View::*)( const V3d_TypeOfOrientation , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfOrientation , const Standard_Boolean ) >(&V3d_View::SetProj),
R"#(Defines the orientation of the projection .)#" , py::arg("theOrientation"), py::arg("theIsYup")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("SetAt",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetAt),
R"#(Defines the position of the view point.)#" , py::arg("X"), py::arg("Y"), py::arg("Z")
)
.def("SetUp",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetUp),
R"#(Defines the orientation of the high point.)#" , py::arg("Vx"), py::arg("Vy"), py::arg("Vz")
)
.def("SetUp",
(void (V3d_View::*)( const V3d_TypeOfOrientation ) ) static_cast<void (V3d_View::*)( const V3d_TypeOfOrientation ) >(&V3d_View::SetUp),
R"#(Defines the orientation(SO) of the high point.)#" , py::arg("Orientation")
)
.def("SetViewOrientationDefault",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::SetViewOrientationDefault),
R"#(Saves the current state of the orientation of the view which will be the return state at ResetViewOrientation.)#"
)
.def("ResetViewOrientation",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::ResetViewOrientation),
R"#(Resets the orientation of the view. Updates the view)#"
)
.def("Panning",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Panning),
R"#(Translates the center of the view along "x" and "y" axes of view projection. Can be used to perform interactive panning operation. In that case the DXv, DXy parameters specify panning relative to the point where the operation is started.)#" , py::arg("theDXv"), py::arg("theDYv"), py::arg("theZoomFactor")=static_cast< const Standard_Real>(1), py::arg("theToStart")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("SetCenter",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer ) >(&V3d_View::SetCenter),
R"#(Relocates center of screen to the point, determined by {Xp, Yp} pixel coordinates relative to the bottom-left corner of screen. To calculate pixel coordinates for any point from world coordinate space, it can be projected using "Project".)#" , py::arg("theXp"), py::arg("theYp")
)
.def("SetSize",
(void (V3d_View::*)( const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real ) >(&V3d_View::SetSize),
R"#(Defines the view projection size in its maximum dimension, keeping the initial height/width ratio unchanged.)#" , py::arg("theSize")
)
.def("SetZSize",
(void (V3d_View::*)( const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real ) >(&V3d_View::SetZSize),
R"#(Defines the Depth size of the view Front Plane will be set to Size/2. Back Plane will be set to -Size/2. Any Object located Above the Front Plane or behind the Back Plane will be Clipped . NOTE than the XY Size of the View is NOT modified .)#" , py::arg("SetZSize")
)
.def("SetZoom",
(void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) >(&V3d_View::SetZoom),
R"#(Zooms the view by a factor relative to the initial value expressed by Start = Standard_True Updates the view.)#" , py::arg("Coef"), py::arg("Start")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("SetScale",
(void (V3d_View::*)( const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real ) >(&V3d_View::SetScale),
R"#(Zooms the view by a factor relative to the value initialised by SetViewMappingDefault(). Updates the view.)#" , py::arg("Coef")
)
.def("SetAxialScale",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::SetAxialScale),
R"#(Sets anisotropic (axial) scale factors <Sx>, <Sy>, <Sz> for view <me>. Anisotropic scaling operation is performed through multiplying the current view orientation matrix by a scaling matrix: || Sx 0 0 0 || || 0 Sy 0 0 || || 0 0 Sz 0 || || 0 0 0 1 || Updates the view.)#" , py::arg("Sx"), py::arg("Sy"), py::arg("Sz")
)
.def("FitAll",
(void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Boolean ) >(&V3d_View::FitAll),
R"#(Adjust view parameters to fit the displayed scene, respecting height / width ratio. The Z clipping range (depth range) is fitted if AutoZFit flag is TRUE. Throws program error exception if margin coefficient is < 0 or >= 1. Updates the view.)#" , py::arg("theMargin")=static_cast< const Standard_Real>(0.01), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("FitAll",
(void (V3d_View::*)( const Bnd_Box & , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Bnd_Box & , const Standard_Real , const Standard_Boolean ) >(&V3d_View::FitAll),
R"#(Adjust view parameters to fit the displayed scene, respecting height / width ratio according to the custom bounding box given. Throws program error exception if margin coefficient is < 0 or >= 1. Updates the view.)#" , py::arg("theBox"), py::arg("theMargin")=static_cast< const Standard_Real>(0.01), py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("DepthFitAll",
(void (V3d_View::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real ) >(&V3d_View::DepthFitAll),
R"#(Adjusts the viewing volume so as not to clip the displayed objects by front and back and back clipping planes. Also sets depth value automatically depending on the calculated Z size and Aspect parameter. NOTE than the original XY size of the view is NOT modified .)#" , py::arg("Aspect")=static_cast< const Standard_Real>(0.01), py::arg("Margin")=static_cast< const Standard_Real>(0.01)
)
.def("FitAll",
(void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_View::FitAll),
R"#(Centers the defined projection window so that it occupies the maximum space while respecting the initial height/width ratio. NOTE than the original Z size of the view is NOT modified .)#" , py::arg("theMinXv"), py::arg("theMinYv"), py::arg("theMaxXv"), py::arg("theMaxYv")
)
.def("WindowFit",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&V3d_View::WindowFit),
R"#(Centers the defined PIXEL window so that it occupies the maximum space while respecting the initial height/width ratio. NOTE than the original Z size of the view is NOT modified.)#" , py::arg("theMinXp"), py::arg("theMinYp"), py::arg("theMaxXp"), py::arg("theMaxYp")
)
.def("SetViewMappingDefault",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::SetViewMappingDefault),
R"#(Saves the current view mapping. This will be the state returned from ResetViewmapping.)#"
)
.def("ResetViewMapping",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::ResetViewMapping),
R"#(Resets the centering of the view. Updates the view)#"
)
.def("Reset",
(void (V3d_View::*)( const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Boolean ) >(&V3d_View::Reset),
R"#(Resets the centering and the orientation of the view.)#" , py::arg("theToUpdate")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Convert",
(Standard_Real (V3d_View::*)( const Standard_Integer ) const) static_cast<Standard_Real (V3d_View::*)( const Standard_Integer ) const>(&V3d_View::Convert),
R"#(Converts the PIXEL value to a value in the projection plane.)#" , py::arg("Vp")
)
.def("Convert",
(Standard_Integer (V3d_View::*)( const Standard_Real ) const) static_cast<Standard_Integer (V3d_View::*)( const Standard_Real ) const>(&V3d_View::Convert),
R"#(Converts tha value of the projection plane into a PIXEL value.)#" , py::arg("Vv")
)
.def("BackgroundColor",
(Quantity_Color (V3d_View::*)() const) static_cast<Quantity_Color (V3d_View::*)() const>(&V3d_View::BackgroundColor),
R"#(Returns the Background color object of the view.)#"
)
.def("GradientBackgroundColors",
(void (V3d_View::*)( Quantity_Color & , Quantity_Color & ) const) static_cast<void (V3d_View::*)( Quantity_Color & , Quantity_Color & ) const>(&V3d_View::GradientBackgroundColors),
R"#(Returns the gradient background colors of the view.)#" , py::arg("theColor1"), py::arg("theColor2")
)
.def("GradientBackground",
(Aspect_GradientBackground (V3d_View::*)() const) static_cast<Aspect_GradientBackground (V3d_View::*)() const>(&V3d_View::GradientBackground),
R"#(Returns the gradient background of the view.)#"
)
.def("Scale",
(Standard_Real (V3d_View::*)() const) static_cast<Standard_Real (V3d_View::*)() const>(&V3d_View::Scale),
R"#(Returns the current value of the zoom expressed with respect to SetViewMappingDefault().)#"
)
.def("ZSize",
(Standard_Real (V3d_View::*)() const) static_cast<Standard_Real (V3d_View::*)() const>(&V3d_View::ZSize),
R"#(Returns the Depth of the view .)#"
)
.def("Depth",
(Standard_Real (V3d_View::*)() const) static_cast<Standard_Real (V3d_View::*)() const>(&V3d_View::Depth),
R"#(Returns the Distance between the Eye and View Point.)#"
)
.def("Twist",
(Standard_Real (V3d_View::*)() const) static_cast<Standard_Real (V3d_View::*)() const>(&V3d_View::Twist),
R"#(Returns in RADIANS the orientation of the view around the visual axis measured from the Y axis of the screen.)#"
)
.def("ShadingModel",
(Graphic3d_TypeOfShadingModel (V3d_View::*)() const) static_cast<Graphic3d_TypeOfShadingModel (V3d_View::*)() const>(&V3d_View::ShadingModel),
R"#(Returns the current shading model; Graphic3d_TypeOfShadingModel_Phong by default.)#"
)
.def("SetShadingModel",
(void (V3d_View::*)( const Graphic3d_TypeOfShadingModel ) ) static_cast<void (V3d_View::*)( const Graphic3d_TypeOfShadingModel ) >(&V3d_View::SetShadingModel),
R"#(Defines the shading model for the visualization.)#" , py::arg("theShadingModel")
)
.def("TextureEnv",
(handle<Graphic3d_TextureEnv> (V3d_View::*)() const) static_cast<handle<Graphic3d_TextureEnv> (V3d_View::*)() const>(&V3d_View::TextureEnv),
R"#()#"
)
.def("Visualization",
(V3d_TypeOfVisualization (V3d_View::*)() const) static_cast<V3d_TypeOfVisualization (V3d_View::*)() const>(&V3d_View::Visualization),
R"#(Returns the current visualisation mode.)#"
)
.def("ActiveLightIterator",
(V3d_ListOfLightIterator (V3d_View::*)() const) static_cast<V3d_ListOfLightIterator (V3d_View::*)() const>(&V3d_View::ActiveLightIterator),
R"#(Return iterator for defined lights.)#"
)
.def("LightLimit",
(Standard_Integer (V3d_View::*)() const) static_cast<Standard_Integer (V3d_View::*)() const>(&V3d_View::LightLimit),
R"#(Returns the MAX number of light associated to the view.)#"
)
.def("Viewer",
(handle<V3d_Viewer> (V3d_View::*)() const) static_cast<handle<V3d_Viewer> (V3d_View::*)() const>(&V3d_View::Viewer),
R"#(Returns the viewer in which the view has been created.)#"
)
.def("IfWindow",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IfWindow),
R"#(Returns True if MyView is associated with a window .)#"
)
.def("Type",
(V3d_TypeOfView (V3d_View::*)() const) static_cast<V3d_TypeOfView (V3d_View::*)() const>(&V3d_View::Type),
R"#(Returns the Type of the View)#"
)
.def("Pan",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Real , const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Real , const Standard_Boolean ) >(&V3d_View::Pan),
R"#(Translates the center of the view along "x" and "y" axes of view projection. Can be used to perform interactive panning operation. In that case the DXp, DXp parameters specify panning relative to the point where the operation is started.)#" , py::arg("theDXp"), py::arg("theDYp"), py::arg("theZoomFactor")=static_cast< const Standard_Real>(1), py::arg("theToStart")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Zoom",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&V3d_View::Zoom),
R"#(Zoom the view according to a zoom factor computed from the distance between the 2 mouse position.)#" , py::arg("theXp1"), py::arg("theYp1"), py::arg("theXp2"), py::arg("theYp2")
)
.def("StartZoomAtPoint",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer ) >(&V3d_View::StartZoomAtPoint),
R"#(Defines starting point for ZoomAtPoint view operation.)#" , py::arg("theXp"), py::arg("theYp")
)
.def("ZoomAtPoint",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&V3d_View::ZoomAtPoint),
R"#(Zooms the model at a pixel defined by the method StartZoomAtPoint().)#" , py::arg("theMouseStartX"), py::arg("theMouseStartY"), py::arg("theMouseEndX"), py::arg("theMouseEndY")
)
.def("AxialScale",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const V3d_TypeOfAxe ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const V3d_TypeOfAxe ) >(&V3d_View::AxialScale),
R"#(Performs anisotropic scaling of <me> view along the given <Axis>. The scale factor is calculated on a basis of the mouse pointer displacement <Dx,Dy>. The calculated scale factor is then passed to SetAxialScale(Sx, Sy, Sz) method.)#" , py::arg("Dx"), py::arg("Dy"), py::arg("Axis")
)
.def("StartRotation",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Real ) >(&V3d_View::StartRotation),
R"#(Begin the rotation of the view around the screen axis according to the mouse position <X,Y>. Warning: Enable rotation around the Z screen axis when <zRotationThreshold> factor is > 0 soon the distance from the start point and the center of the view is > (medium viewSize * <zRotationThreshold> ). Generally a value of 0.4 is usable to rotate around XY screen axis inside the circular threshold area and to rotate around Z screen axis outside this area.)#" , py::arg("X"), py::arg("Y"), py::arg("zRotationThreshold")=static_cast< const Standard_Real>(0.0)
)
.def("Rotation",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer ) >(&V3d_View::Rotation),
R"#(Continues the rotation of the view with an angle computed from the last and new mouse position <X,Y>.)#" , py::arg("X"), py::arg("Y")
)
.def("SetFocale",
(void (V3d_View::*)( const Standard_Real ) ) static_cast<void (V3d_View::*)( const Standard_Real ) >(&V3d_View::SetFocale),
R"#(Change View Plane Distance for Perspective Views Warning! raises TypeMismatch from Standard if the view is not a perspective view.)#" , py::arg("Focale")
)
.def("Focale",
(Standard_Real (V3d_View::*)() const) static_cast<Standard_Real (V3d_View::*)() const>(&V3d_View::Focale),
R"#(Returns the View Plane Distance for Perspective Views)#"
)
.def("SetComputedMode",
(void (V3d_View::*)( const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Boolean ) >(&V3d_View::SetComputedMode),
R"#(Switches computed HLR mode in the view.)#" , py::arg("theMode")
)
.def("ComputedMode",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::ComputedMode),
R"#(Returns the computed HLR mode state.)#"
)
.def("WindowFitAll",
(void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (V3d_View::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&V3d_View::WindowFitAll),
R"#(idem than WindowFit)#" , py::arg("Xmin"), py::arg("Ymin"), py::arg("Xmax"), py::arg("Ymax")
)
.def("FitMinMax",
(Standard_Boolean (V3d_View::*)( const handle<Graphic3d_Camera> & , const Bnd_Box & , const Standard_Real , const Standard_Real , const Standard_Boolean ) const) static_cast<Standard_Boolean (V3d_View::*)( const handle<Graphic3d_Camera> & , const Bnd_Box & , const Standard_Real , const Standard_Real , const Standard_Boolean ) const>(&V3d_View::FitMinMax),
R"#(Transform camera eye, center and scale to fit in the passed bounding box specified in WCS.)#" , py::arg("theCamera"), py::arg("theBox"), py::arg("theMargin"), py::arg("theResolution")=static_cast< const Standard_Real>(0.0), py::arg("theToEnlargeIfLine")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("SetGrid",
(void (V3d_View::*)( const gp_Ax3 & , const handle<Aspect_Grid> & ) ) static_cast<void (V3d_View::*)( const gp_Ax3 & , const handle<Aspect_Grid> & ) >(&V3d_View::SetGrid),
R"#(Defines or Updates the definition of the grid in <me>)#" , py::arg("aPlane"), py::arg("aGrid")
)
.def("SetGridActivity",
(void (V3d_View::*)( const Standard_Boolean ) ) static_cast<void (V3d_View::*)( const Standard_Boolean ) >(&V3d_View::SetGridActivity),
R"#(Defines or Updates the activity of the grid in <me>)#" , py::arg("aFlag")
)
.def("Dump",
(Standard_Boolean (V3d_View::*)( const Standard_CString , const Graphic3d_BufferType & ) ) static_cast<Standard_Boolean (V3d_View::*)( const Standard_CString , const Graphic3d_BufferType & ) >(&V3d_View::Dump),
R"#(Dumps the full contents of the View into the image file. This is an alias for ToPixMap() with Image_AlienPixMap.)#" , py::arg("theFile"), py::arg("theBufferType")=static_cast< const Graphic3d_BufferType &>(Graphic3d_BT_RGB)
)
.def("ToPixMap",
(Standard_Boolean (V3d_View::*)( Image_PixMap & , const V3d_ImageDumpOptions & ) ) static_cast<Standard_Boolean (V3d_View::*)( Image_PixMap & , const V3d_ImageDumpOptions & ) >(&V3d_View::ToPixMap),
R"#(Dumps the full contents of the view to a pixmap with specified parameters. Internally this method calls Redraw() with an offscreen render buffer of requested target size (theWidth x theHeight), so that there is no need resizing a window control for making a dump of different size.)#" , py::arg("theImage"), py::arg("theParams")
)
.def("ToPixMap",
(Standard_Boolean (V3d_View::*)( Image_PixMap & , const Standard_Integer , const Standard_Integer , const Graphic3d_BufferType & , const Standard_Boolean , const Graphic3d_ZLayerId , const Standard_Integer , const V3d_StereoDumpOptions , const Standard_CString ) ) static_cast<Standard_Boolean (V3d_View::*)( Image_PixMap & , const Standard_Integer , const Standard_Integer , const Graphic3d_BufferType & , const Standard_Boolean , const Graphic3d_ZLayerId , const Standard_Integer , const V3d_StereoDumpOptions , const Standard_CString ) >(&V3d_View::ToPixMap),
R"#(Dumps the full contents of the view to a pixmap. Internally this method calls Redraw() with an offscreen render buffer of requested target size (theWidth x theHeight), so that there is no need resizing a window control for making a dump of different size.)#" , py::arg("theImage"), py::arg("theWidth"), py::arg("theHeight"), py::arg("theBufferType")=static_cast< const Graphic3d_BufferType &>(Graphic3d_BT_RGB), py::arg("theToAdjustAspect")=static_cast< const Standard_Boolean>(Standard_True), py::arg("theTargetZLayerId")=static_cast< const Graphic3d_ZLayerId>(Graphic3d_ZLayerId_BotOSD), py::arg("theIsSingleLayer")=static_cast< const Standard_Integer>(Standard_False), py::arg("theStereoOptions")=static_cast< const V3d_StereoDumpOptions>(V3d_SDO_MONO), py::arg("theLightName")=static_cast< const Standard_CString>("")
)
.def("SetBackFacingModel",
(void (V3d_View::*)( const Graphic3d_TypeOfBackfacingModel ) ) static_cast<void (V3d_View::*)( const Graphic3d_TypeOfBackfacingModel ) >(&V3d_View::SetBackFacingModel),
R"#(Manages display of the back faces)#" , py::arg("theModel")=static_cast< const Graphic3d_TypeOfBackfacingModel>(Graphic3d_TypeOfBackfacingModel_Auto)
)
.def("BackFacingModel",
(Graphic3d_TypeOfBackfacingModel (V3d_View::*)() const) static_cast<Graphic3d_TypeOfBackfacingModel (V3d_View::*)() const>(&V3d_View::BackFacingModel),
R"#(Returns current state of the back faces display; Graphic3d_TypeOfBackfacingModel_Auto by default, which means that backface culling is defined by each presentation.)#"
)
.def("AddClipPlane",
(void (V3d_View::*)( const handle<Graphic3d_ClipPlane> & ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_ClipPlane> & ) >(&V3d_View::AddClipPlane),
R"#(Adds clip plane to the view. The composition of clip planes truncates the rendering space to convex volume. Number of supported clip planes can be consulted by PlaneLimit method of associated Graphic3d_GraphicDriver. Please be aware that the planes which exceed the limit are ignored during rendering.)#" , py::arg("thePlane")
)
.def("RemoveClipPlane",
(void (V3d_View::*)( const handle<Graphic3d_ClipPlane> & ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_ClipPlane> & ) >(&V3d_View::RemoveClipPlane),
R"#(Removes clip plane from the view.)#" , py::arg("thePlane")
)
.def("SetClipPlanes",
(void (V3d_View::*)( const handle<Graphic3d_SequenceOfHClipPlane> & ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_SequenceOfHClipPlane> & ) >(&V3d_View::SetClipPlanes),
R"#(Sets sequence of clip planes to the view. The planes that have been set before are removed from the view. The composition of clip planes truncates the rendering space to convex volume. Number of supported clip planes can be consulted by InquirePlaneLimit method of Graphic3d_GraphicDriver. Please be aware that the planes that exceed the limit are ignored during rendering.)#" , py::arg("thePlanes")
)
.def("PlaneLimit",
(Standard_Integer (V3d_View::*)() const) static_cast<Standard_Integer (V3d_View::*)() const>(&V3d_View::PlaneLimit),
R"#(Returns the MAX number of clipping planes associated to the view.)#"
)
.def("SetCamera",
(void (V3d_View::*)( const handle<Graphic3d_Camera> & ) ) static_cast<void (V3d_View::*)( const handle<Graphic3d_Camera> & ) >(&V3d_View::SetCamera),
R"#(Change camera used by view.)#" , py::arg("theCamera")
)
.def("IsCullingEnabled",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IsCullingEnabled),
R"#(Returns flag value of objects culling mechanism)#"
)
.def("SetFrustumCulling",
(void (V3d_View::*)( Standard_Boolean ) ) static_cast<void (V3d_View::*)( Standard_Boolean ) >(&V3d_View::SetFrustumCulling),
R"#(Turn on/off automatic culling of objects outside frustum (ON by default))#" , py::arg("theMode")
)
.def("DiagnosticInformation",
(void (V3d_View::*)( TColStd_IndexedDataMapOfStringString & , Graphic3d_DiagnosticInfo ) const) static_cast<void (V3d_View::*)( TColStd_IndexedDataMapOfStringString & , Graphic3d_DiagnosticInfo ) const>(&V3d_View::DiagnosticInformation),
R"#(Fill in the dictionary with diagnostic info. Should be called within rendering thread.)#" , py::arg("theDict"), py::arg("theFlags")
)
.def("StatisticInformation",
(TCollection_AsciiString (V3d_View::*)() const) static_cast<TCollection_AsciiString (V3d_View::*)() const>(&V3d_View::StatisticInformation),
R"#(Returns string with statistic performance info.)#"
)
.def("StatisticInformation",
(void (V3d_View::*)( TColStd_IndexedDataMapOfStringString & ) const) static_cast<void (V3d_View::*)( TColStd_IndexedDataMapOfStringString & ) const>(&V3d_View::StatisticInformation),
R"#(Fills in the dictionary with statistic performance info.)#" , py::arg("theDict")
)
.def("GravityPoint",
(gp_Pnt (V3d_View::*)() const) static_cast<gp_Pnt (V3d_View::*)() const>(&V3d_View::GravityPoint),
R"#(Returns the Objects number and the gravity center of ALL viewable points in the view)#"
)
.def("DumpJson",
(void (V3d_View::*)( Standard_OStream & , Standard_Integer ) const) static_cast<void (V3d_View::*)( Standard_OStream & , Standard_Integer ) const>(&V3d_View::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
.def("IsSubview",
(bool (V3d_View::*)() const) static_cast<bool (V3d_View::*)() const>(&V3d_View::IsSubview),
R"#(Return TRUE if this is a subview of another view.)#"
)
.def("ParentView",
(V3d_View * (V3d_View::*)() ) static_cast<V3d_View * (V3d_View::*)() >(&V3d_View::ParentView),
R"#(Return parent View or NULL if this is not a subview.)#"
)
.def("PickSubview",
(handle<V3d_View> (V3d_View::*)( const Graphic3d_Vec2i & ) const) static_cast<handle<V3d_View> (V3d_View::*)( const Graphic3d_Vec2i & ) const>(&V3d_View::PickSubview),
R"#(Pick subview from the given 2D point.)#" , py::arg("thePnt")
)
.def("AddSubview",
(void (V3d_View::*)( const handle<V3d_View> & ) ) static_cast<void (V3d_View::*)( const handle<V3d_View> & ) >(&V3d_View::AddSubview),
R"#(Add subview to the list.)#" , py::arg("theView")
)
.def("RemoveSubview",
(bool (V3d_View::*)( const V3d_View * ) ) static_cast<bool (V3d_View::*)( const V3d_View * ) >(&V3d_View::RemoveSubview),
R"#(Remove subview from the list.)#" , py::arg("theView")
)
.def("IfMoreLights",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::IfMoreLights),
R"#(Returns True if One light more can be activated in this View.)#"
)
.def("InitActiveLights",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::InitActiveLights),
R"#(initializes an iteration on the active Lights.)#"
)
.def("MoreActiveLights",
(Standard_Boolean (V3d_View::*)() const) static_cast<Standard_Boolean (V3d_View::*)() const>(&V3d_View::MoreActiveLights),
R"#(returns true if there are more active Light(s) to return.)#"
)
.def("NextActiveLights",
(void (V3d_View::*)() ) static_cast<void (V3d_View::*)() >(&V3d_View::NextActiveLights),
R"#(Go to the next active Light (if there is not, ActiveLight will raise an exception))#"
)
// methods using call by reference i.s.o. return
.def("Convert",
[]( V3d_View &self , const Standard_Integer Xp, const Standard_Integer Yp ){
Standard_Real Xv;
Standard_Real Yv;
self.Convert(Xp,Yp,Xv,Yv);
return std::make_tuple(Xv,Yv); },
R"#(Converts the point PIXEL into a point projected in the reference frame of the projection plane.)#" , py::arg("Xp"), py::arg("Yp")
)
.def("Convert",
[]( V3d_View &self , const Standard_Real Xv, const Standard_Real Yv ){
Standard_Integer Xp;
Standard_Integer Yp;
self.Convert(Xv,Yv,Xp,Yp);
return std::make_tuple(Xp,Yp); },
R"#(Converts the point defined in the reference frame of the projection plane into a point PIXEL.)#" , py::arg("Xv"), py::arg("Yv")
)
.def("Convert",
[]( V3d_View &self , const Standard_Integer Xp, const Standard_Integer Yp ){
Standard_Real X;
Standard_Real Y;
Standard_Real Z;
self.Convert(Xp,Yp,X,Y,Z);
return std::make_tuple(X,Y,Z); },
R"#(Converts the projected point into a point in the reference frame of the view corresponding to the intersection with the projection plane of the eye/view point vector.)#" , py::arg("Xp"), py::arg("Yp")
)
.def("ConvertWithProj",
[]( V3d_View &self , const Standard_Integer Xp, const Standard_Integer Yp ){
Standard_Real X;
Standard_Real Y;
Standard_Real Z;
Standard_Real Vx;
Standard_Real Vy;
Standard_Real Vz;
self.ConvertWithProj(Xp,Yp,X,Y,Z,Vx,Vy,Vz);
return std::make_tuple(X,Y,Z,Vx,Vy,Vz); },
R"#(Converts the projected point into a point in the reference frame of the view corresponding to the intersection with the projection plane of the eye/view point vector and returns the projection ray for further computations.)#" , py::arg("Xp"), py::arg("Yp")
)
.def("ConvertToGrid",
[]( V3d_View &self , const Standard_Integer Xp, const Standard_Integer Yp ){
Standard_Real Xg;
Standard_Real Yg;
Standard_Real Zg;
self.ConvertToGrid(Xp,Yp,Xg,Yg,Zg);
return std::make_tuple(Xg,Yg,Zg); },
R"#(Converts the projected point into the nearest grid point in the reference frame of the view corresponding to the intersection with the projection plane of the eye/view point vector and display the grid marker. Warning: When the grid is not active the result is identical to the above Convert() method. How to use: 1) Enable the grid echo display myViewer->SetGridEcho(Standard_True); 2) When application receive a move event: 2.1) Check if any object is detected if( myInteractiveContext->MoveTo(x,y) == AIS_SOD_Nothing ) { 2.2) Check if the grid is active if( myViewer->Grid()->IsActive() ) { 2.3) Display the grid echo and gets the grid point myView->ConvertToGrid(x,y,X,Y,Z); myView->Viewer()->ShowGridEcho (myView, Graphic3d_Vertex (X,Y,Z)); myView->RedrawImmediate(); 2.4) Else this is the standard case } else myView->Convert(x,y,X,Y,Z);)#" , py::arg("Xp"), py::arg("Yp")
)
.def("ConvertToGrid",
[]( V3d_View &self , const Standard_Real X, const Standard_Real Y, const Standard_Real Z ){
Standard_Real Xg;
Standard_Real Yg;
Standard_Real Zg;
self.ConvertToGrid(X,Y,Z,Xg,Yg,Zg);
return std::make_tuple(Xg,Yg,Zg); },
R"#(Converts the point into the nearest grid point and display the grid marker.)#" , py::arg("X"), py::arg("Y"), py::arg("Z")
)
.def("Convert",
[]( V3d_View &self , const Standard_Real X, const Standard_Real Y, const Standard_Real Z ){
Standard_Integer Xp;
Standard_Integer Yp;
self.Convert(X,Y,Z,Xp,Yp);
return std::make_tuple(Xp,Yp); },
R"#(Projects the point defined in the reference frame of the view into the projected point in the associated window.)#" , py::arg("X"), py::arg("Y"), py::arg("Z")
)
.def("Project",
[]( V3d_View &self , const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ ){
Standard_Real theXp;
Standard_Real theYp;
self.Project(theX,theY,theZ,theXp,theYp);
return std::make_tuple(theXp,theYp); },
R"#(Converts the point defined in the user space of the view to the projection plane at the depth relative to theZ.)#" , py::arg("theX"), py::arg("theY"), py::arg("theZ")
)
.def("Project",
[]( V3d_View &self , const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ ){
Standard_Real theXp;
Standard_Real theYp;
Standard_Real theZp;
self.Project(theX,theY,theZ,theXp,theYp,theZp);
return std::make_tuple(theXp,theYp,theZp); },
R"#(Converts the point defined in the user space of the view to the projection plane at the depth relative to theZ.)#" , py::arg("theX"), py::arg("theY"), py::arg("theZ")
)
.def("BackgroundColor",
[]( V3d_View &self , const Quantity_TypeOfColor Type ){
Standard_Real V1;
Standard_Real V2;
Standard_Real V3;
self.BackgroundColor(Type,V1,V2,V3);
return std::make_tuple(V1,V2,V3); },
R"#(Returns the Background color values of the view depending of the color Type.)#" , py::arg("Type")
)
.def("AxialScale",
[]( V3d_View &self ){
Standard_Real Sx;
Standard_Real Sy;
Standard_Real Sz;
self.AxialScale(Sx,Sy,Sz);
return std::make_tuple(Sx,Sy,Sz); },
R"#(Returns the current values of the anisotropic (axial) scale factors.)#"
)
.def("Size",
[]( V3d_View &self ){
Standard_Real Width;
Standard_Real Height;
self.Size(Width,Height);
return std::make_tuple(Width,Height); },
R"#(Returns the height and width of the view.)#"
)
.def("Eye",
[]( V3d_View &self ){
Standard_Real X;
Standard_Real Y;
Standard_Real Z;
self.Eye(X,Y,Z);
return std::make_tuple(X,Y,Z); },
R"#(Returns the position of the eye.)#"
)
.def("FocalReferencePoint",
[]( V3d_View &self ){
Standard_Real X;
Standard_Real Y;
Standard_Real Z;
self.FocalReferencePoint(X,Y,Z);
return std::make_tuple(X,Y,Z); },
R"#(Returns the position of point which emanating the projections.)#"
)
.def("ProjReferenceAxe",
[]( V3d_View &self , const Standard_Integer Xpix, const Standard_Integer Ypix ){
Standard_Real XP;
Standard_Real YP;
Standard_Real ZP;
Standard_Real VX;
Standard_Real VY;
Standard_Real VZ;
self.ProjReferenceAxe(Xpix,Ypix,XP,YP,ZP,VX,VY,VZ);
return std::make_tuple(XP,YP,ZP,VX,VY,VZ); },
R"#(Returns the coordinate of the point (Xpix,Ypix) in the view (XP,YP,ZP), and the projection vector of the view passing by the point (for PerspectiveView).)#" , py::arg("Xpix"), py::arg("Ypix")
)
.def("Proj",
[]( V3d_View &self ){
Standard_Real Vx;
Standard_Real Vy;
Standard_Real Vz;
self.Proj(Vx,Vy,Vz);
return std::make_tuple(Vx,Vy,Vz); },
R"#(Returns the projection vector.)#"
)
.def("At",
[]( V3d_View &self ){
Standard_Real X;
Standard_Real Y;
Standard_Real Z;
self.At(X,Y,Z);
return std::make_tuple(X,Y,Z); },
R"#(Returns the position of the view point.)#"
)
.def("Up",
[]( V3d_View &self ){
Standard_Real Vx;
Standard_Real Vy;
Standard_Real Vz;
self.Up(Vx,Vy,Vz);
return std::make_tuple(Vx,Vy,Vz); },
R"#(Returns the vector giving the position of the high point.)#"
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_View::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_View::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_View::*)() const) static_cast< const handle<Standard_Type> & (V3d_View::*)() const>(&V3d_View::DynamicType),
R"#()#"
)
.def("BackgroundSkydome",
( const Aspect_SkydomeBackground & (V3d_View::*)() const) static_cast< const Aspect_SkydomeBackground & (V3d_View::*)() const>(&V3d_View::BackgroundSkydome),
R"#(Returns skydome aspect;)#"
)
.def("GetGraduatedTrihedron",
( const Graphic3d_GraduatedTrihedron & (V3d_View::*)() const) static_cast< const Graphic3d_GraduatedTrihedron & (V3d_View::*)() const>(&V3d_View::GetGraduatedTrihedron),
R"#(Returns data of a graduated trihedron.)#"
)
.def("ActiveLights",
( const V3d_ListOfLight & (V3d_View::*)() const) static_cast< const V3d_ListOfLight & (V3d_View::*)() const>(&V3d_View::ActiveLights),
R"#(Returns a list of active lights.)#"
)
.def("Window",
( const handle<Aspect_Window> & (V3d_View::*)() const) static_cast< const handle<Aspect_Window> & (V3d_View::*)() const>(&V3d_View::Window),
R"#(Returns the Aspect Window associated with the view.)#"
)
.def("View",
( const handle<Graphic3d_CView> & (V3d_View::*)() const) static_cast< const handle<Graphic3d_CView> & (V3d_View::*)() const>(&V3d_View::View),
R"#(Returns the associated Graphic3d view.)#"
)
.def("ClipPlanes",
( const handle<Graphic3d_SequenceOfHClipPlane> & (V3d_View::*)() const) static_cast< const handle<Graphic3d_SequenceOfHClipPlane> & (V3d_View::*)() const>(&V3d_View::ClipPlanes),
R"#(Get clip planes.)#"
)
.def("Camera",
( const handle<Graphic3d_Camera> & (V3d_View::*)() const) static_cast< const handle<Graphic3d_Camera> & (V3d_View::*)() const>(&V3d_View::Camera),
R"#(Returns camera object of the view.)#"
)
.def("DefaultCamera",
( const handle<Graphic3d_Camera> & (V3d_View::*)() const) static_cast< const handle<Graphic3d_Camera> & (V3d_View::*)() const>(&V3d_View::DefaultCamera),
R"#(Return default camera.)#"
)
.def("RenderingParams",
( const Graphic3d_RenderingParams & (V3d_View::*)() const) static_cast< const Graphic3d_RenderingParams & (V3d_View::*)() const>(&V3d_View::RenderingParams),
R"#(Returns current rendering parameters and effect settings. By default it returns default parameters of current viewer. To define view-specific settings use method V3d_View::ChangeRenderingParams().)#"
)
.def("ChangeRenderingParams",
(Graphic3d_RenderingParams & (V3d_View::*)() ) static_cast<Graphic3d_RenderingParams & (V3d_View::*)() >(&V3d_View::ChangeRenderingParams),
R"#(Returns reference to current rendering parameters and effect settings.)#"
, py::return_value_policy::reference_internal
)
.def("Subviews",
( const NCollection_Sequence<handle<V3d_View>> & (V3d_View::*)() const) static_cast< const NCollection_Sequence<handle<V3d_View>> & (V3d_View::*)() const>(&V3d_View::Subviews),
R"#(Return subview list.)#"
)
.def("ActiveLight",
( const handle<V3d_Light> & (V3d_View::*)() const) static_cast< const handle<V3d_Light> & (V3d_View::*)() const>(&V3d_View::ActiveLight),
R"#()#"
)
;
// Class V3d_Viewer from ./opencascade/V3d_Viewer.hxx
klass = m.attr("V3d_Viewer");
// nested enums
static_cast<py::class_<V3d_Viewer ,opencascade::handle<V3d_Viewer> , Standard_Transient >>(klass)
// constructors
.def(py::init< const handle<Graphic3d_GraphicDriver> & >() , py::arg("theDriver") )
// custom constructors
// methods
.def("IfMoreViews",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::IfMoreViews),
R"#(Returns True if One View more can be defined in this Viewer.)#"
)
.def("CreateView",
(handle<V3d_View> (V3d_Viewer::*)() ) static_cast<handle<V3d_View> (V3d_Viewer::*)() >(&V3d_Viewer::CreateView),
R"#(Creates a view in the viewer according to its default parameters.)#"
)
.def("SetViewOn",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::SetViewOn),
R"#(Activates all of the views of a viewer attached to a window.)#"
)
.def("SetViewOn",
(void (V3d_Viewer::*)( const handle<V3d_View> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_View> & ) >(&V3d_Viewer::SetViewOn),
R"#(Activates a particular view in the Viewer. Must be call if the Window attached to the view has been Deiconified.)#" , py::arg("theView")
)
.def("SetViewOff",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::SetViewOff),
R"#(Deactivates all the views of a Viewer attached to a window.)#"
)
.def("SetViewOff",
(void (V3d_Viewer::*)( const handle<V3d_View> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_View> & ) >(&V3d_Viewer::SetViewOff),
R"#(Deactivates a particular view in the Viewer. Must be call if the Window attached to the view has been Iconified .)#" , py::arg("theView")
)
.def("Update",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::Update),
R"#(Deprecated, Redraw() should be used instead.)#"
)
.def("Redraw",
(void (V3d_Viewer::*)() const) static_cast<void (V3d_Viewer::*)() const>(&V3d_Viewer::Redraw),
R"#(Redraws all the views of the Viewer even if no modification has taken place. Must be called if all the views of the Viewer are exposed, as for example in a global DeIconification.)#"
)
.def("RedrawImmediate",
(void (V3d_Viewer::*)() const) static_cast<void (V3d_Viewer::*)() const>(&V3d_Viewer::RedrawImmediate),
R"#(Updates layer of immediate presentations.)#"
)
.def("Invalidate",
(void (V3d_Viewer::*)() const) static_cast<void (V3d_Viewer::*)() const>(&V3d_Viewer::Invalidate),
R"#(Invalidates viewer content but does not redraw it.)#"
)
.def("Remove",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::Remove),
R"#(Suppresses the Viewer.)#"
)
.def("StructureManager",
(handle<Graphic3d_StructureManager> (V3d_Viewer::*)() const) static_cast<handle<Graphic3d_StructureManager> (V3d_Viewer::*)() const>(&V3d_Viewer::StructureManager),
R"#(Returns the structure manager associated to this viewer.)#"
)
.def("SetDefaultRenderingParams",
(void (V3d_Viewer::*)( const Graphic3d_RenderingParams & ) ) static_cast<void (V3d_Viewer::*)( const Graphic3d_RenderingParams & ) >(&V3d_Viewer::SetDefaultRenderingParams),
R"#(Set default Rendering Parameters.)#" , py::arg("theParams")
)
.def("SetDefaultBackgroundColor",
(void (V3d_Viewer::*)( const Quantity_Color & ) ) static_cast<void (V3d_Viewer::*)( const Quantity_Color & ) >(&V3d_Viewer::SetDefaultBackgroundColor),
R"#(Defines the default background colour of views attached to the viewer by supplying the color object)#" , py::arg("theColor")
)
.def("SetDefaultBgGradientColors",
(void (V3d_Viewer::*)( const Quantity_Color & , const Quantity_Color & , const Aspect_GradientFillMethod ) ) static_cast<void (V3d_Viewer::*)( const Quantity_Color & , const Quantity_Color & , const Aspect_GradientFillMethod ) >(&V3d_Viewer::SetDefaultBgGradientColors),
R"#(Defines the default gradient background colours of views attached to the viewer by supplying the colour objects)#" , py::arg("theColor1"), py::arg("theColor2"), py::arg("theFillStyle")=static_cast< const Aspect_GradientFillMethod>(Aspect_GradientFillMethod_Horizontal)
)
.def("DefaultViewSize",
(Standard_Real (V3d_Viewer::*)() const) static_cast<Standard_Real (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultViewSize),
R"#(Returns the default size of the view.)#"
)
.def("SetDefaultViewSize",
(void (V3d_Viewer::*)( const Standard_Real ) ) static_cast<void (V3d_Viewer::*)( const Standard_Real ) >(&V3d_Viewer::SetDefaultViewSize),
R"#(Gives a default size for the creation of views of the viewer.)#" , py::arg("theSize")
)
.def("DefaultViewProj",
(V3d_TypeOfOrientation (V3d_Viewer::*)() const) static_cast<V3d_TypeOfOrientation (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultViewProj),
R"#(Returns the default Projection.)#"
)
.def("SetDefaultViewProj",
(void (V3d_Viewer::*)( const V3d_TypeOfOrientation ) ) static_cast<void (V3d_Viewer::*)( const V3d_TypeOfOrientation ) >(&V3d_Viewer::SetDefaultViewProj),
R"#(Sets the default projection for creating views in the viewer.)#" , py::arg("theOrientation")
)
.def("DefaultVisualization",
(V3d_TypeOfVisualization (V3d_Viewer::*)() const) static_cast<V3d_TypeOfVisualization (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultVisualization),
R"#(Returns the default type of Visualization.)#"
)
.def("SetDefaultVisualization",
(void (V3d_Viewer::*)( const V3d_TypeOfVisualization ) ) static_cast<void (V3d_Viewer::*)( const V3d_TypeOfVisualization ) >(&V3d_Viewer::SetDefaultVisualization),
R"#(Gives the default visualization mode.)#" , py::arg("theType")
)
.def("DefaultShadingModel",
(Graphic3d_TypeOfShadingModel (V3d_Viewer::*)() const) static_cast<Graphic3d_TypeOfShadingModel (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultShadingModel),
R"#(Returns the default type of Shading; Graphic3d_TypeOfShadingModel_Phong by default.)#"
)
.def("SetDefaultShadingModel",
(void (V3d_Viewer::*)( const Graphic3d_TypeOfShadingModel ) ) static_cast<void (V3d_Viewer::*)( const Graphic3d_TypeOfShadingModel ) >(&V3d_Viewer::SetDefaultShadingModel),
R"#(Gives the default type of SHADING.)#" , py::arg("theType")
)
.def("DefaultTypeOfView",
(V3d_TypeOfView (V3d_Viewer::*)() const) static_cast<V3d_TypeOfView (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultTypeOfView),
R"#(Returns the default type of View (orthographic or perspective projection) to be returned by CreateView() method.)#"
)
.def("SetDefaultTypeOfView",
(void (V3d_Viewer::*)( const V3d_TypeOfView ) ) static_cast<void (V3d_Viewer::*)( const V3d_TypeOfView ) >(&V3d_Viewer::SetDefaultTypeOfView),
R"#(Set the default type of View (orthographic or perspective projection) to be returned by CreateView() method.)#" , py::arg("theType")
)
.def("DefaultBackgroundColor",
(Quantity_Color (V3d_Viewer::*)() const) static_cast<Quantity_Color (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultBackgroundColor),
R"#(Returns the default background colour object.)#"
)
.def("DefaultBgGradientColors",
(void (V3d_Viewer::*)( Quantity_Color & , Quantity_Color & ) const) static_cast<void (V3d_Viewer::*)( Quantity_Color & , Quantity_Color & ) const>(&V3d_Viewer::DefaultBgGradientColors),
R"#(Returns the gradient background colour objects of the view.)#" , py::arg("theColor1"), py::arg("theColor2")
)
.def("GetAllZLayers",
(void (V3d_Viewer::*)( TColStd_SequenceOfInteger & ) const) static_cast<void (V3d_Viewer::*)( TColStd_SequenceOfInteger & ) const>(&V3d_Viewer::GetAllZLayers),
R"#(Return all Z layer ids in sequence ordered by overlay level from lowest layer to highest ( foreground ). The first layer ID in sequence is the default layer that can't be removed.)#" , py::arg("theLayerSeq")
)
.def("AddZLayer",
(Standard_Boolean (V3d_Viewer::*)( Graphic3d_ZLayerId & , const Graphic3d_ZLayerSettings & ) ) static_cast<Standard_Boolean (V3d_Viewer::*)( Graphic3d_ZLayerId & , const Graphic3d_ZLayerSettings & ) >(&V3d_Viewer::AddZLayer),
R"#(Add a new top-level Z layer to all managed views and get its ID as <theLayerId> value. The Z layers are controlled entirely by viewer, it is not possible to add a layer to a particular view. Custom layers will be inserted before Graphic3d_ZLayerId_Top (e.g. between Graphic3d_ZLayerId_Default and before Graphic3d_ZLayerId_Top).)#" , py::arg("theLayerId"), py::arg("theSettings")=static_cast< const Graphic3d_ZLayerSettings &>(Graphic3d_ZLayerSettings ( ))
)
.def("InsertLayerBefore",
(Standard_Boolean (V3d_Viewer::*)( Graphic3d_ZLayerId & , const Graphic3d_ZLayerSettings & , const Graphic3d_ZLayerId ) ) static_cast<Standard_Boolean (V3d_Viewer::*)( Graphic3d_ZLayerId & , const Graphic3d_ZLayerSettings & , const Graphic3d_ZLayerId ) >(&V3d_Viewer::InsertLayerBefore),
R"#(Add a new top-level Z layer to all managed views and get its ID as <theLayerId> value. The Z layers are controlled entirely by viewer, it is not possible to add a layer to a particular view. Layer rendering order is defined by its position in list (altered by theLayerAfter) and IsImmediate() flag (all layers with IsImmediate() flag are drawn afterwards);)#" , py::arg("theNewLayerId"), py::arg("theSettings"), py::arg("theLayerAfter")
)
.def("InsertLayerAfter",
(Standard_Boolean (V3d_Viewer::*)( Graphic3d_ZLayerId & , const Graphic3d_ZLayerSettings & , const Graphic3d_ZLayerId ) ) static_cast<Standard_Boolean (V3d_Viewer::*)( Graphic3d_ZLayerId & , const Graphic3d_ZLayerSettings & , const Graphic3d_ZLayerId ) >(&V3d_Viewer::InsertLayerAfter),
R"#(Add a new top-level Z layer to all managed views and get its ID as <theLayerId> value. The Z layers are controlled entirely by viewer, it is not possible to add a layer to a particular view. Layer rendering order is defined by its position in list (altered by theLayerAfter) and IsImmediate() flag (all layers with IsImmediate() flag are drawn afterwards);)#" , py::arg("theNewLayerId"), py::arg("theSettings"), py::arg("theLayerBefore")
)
.def("RemoveZLayer",
(Standard_Boolean (V3d_Viewer::*)( const Graphic3d_ZLayerId ) ) static_cast<Standard_Boolean (V3d_Viewer::*)( const Graphic3d_ZLayerId ) >(&V3d_Viewer::RemoveZLayer),
R"#(Remove Z layer with ID <theLayerId>. Method returns Standard_False if the layer can not be removed or doesn't exists. By default, there are always default bottom-level layer that can't be removed.)#" , py::arg("theLayerId")
)
.def("ZLayerSettings",
( const Graphic3d_ZLayerSettings & (V3d_Viewer::*)( const Graphic3d_ZLayerId ) const) static_cast< const Graphic3d_ZLayerSettings & (V3d_Viewer::*)( const Graphic3d_ZLayerId ) const>(&V3d_Viewer::ZLayerSettings),
R"#(Returns the settings of a single Z layer.)#" , py::arg("theLayerId")
)
.def("SetZLayerSettings",
(void (V3d_Viewer::*)( const Graphic3d_ZLayerId , const Graphic3d_ZLayerSettings & ) ) static_cast<void (V3d_Viewer::*)( const Graphic3d_ZLayerId , const Graphic3d_ZLayerSettings & ) >(&V3d_Viewer::SetZLayerSettings),
R"#(Sets the settings for a single Z layer.)#" , py::arg("theLayerId"), py::arg("theSettings")
)
.def("ActiveViewIterator",
(V3d_ListOfViewIterator (V3d_Viewer::*)() const) static_cast<V3d_ListOfViewIterator (V3d_Viewer::*)() const>(&V3d_Viewer::ActiveViewIterator),
R"#(Return an iterator for active views.)#"
)
.def("LastActiveView",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::LastActiveView),
R"#(returns true if there is only one active view.)#"
)
.def("DefinedViewIterator",
(V3d_ListOfViewIterator (V3d_Viewer::*)() const) static_cast<V3d_ListOfViewIterator (V3d_Viewer::*)() const>(&V3d_Viewer::DefinedViewIterator),
R"#(Return an iterator for defined views.)#"
)
.def("SetDefaultLights",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::SetDefaultLights),
R"#(Defines default lights: positional-light 0.3 0. 0. directional-light V3d_XnegYposZpos directional-light V3d_XnegYneg ambient-light)#"
)
.def("SetLightOn",
(void (V3d_Viewer::*)( const handle<V3d_Light> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_Light> & ) >(&V3d_Viewer::SetLightOn),
R"#(Activates MyLight in the viewer.)#" , py::arg("theLight")
)
.def("SetLightOn",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::SetLightOn),
R"#(Activates all the lights defined in this viewer.)#"
)
.def("SetLightOff",
(void (V3d_Viewer::*)( const handle<V3d_Light> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_Light> & ) >(&V3d_Viewer::SetLightOff),
R"#(Deactivates MyLight in this viewer.)#" , py::arg("theLight")
)
.def("SetLightOff",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::SetLightOff),
R"#(Deactivate all the Lights defined in this viewer.)#"
)
.def("AddLight",
(void (V3d_Viewer::*)( const handle<V3d_Light> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_Light> & ) >(&V3d_Viewer::AddLight),
R"#(Adds Light in Sequence Of Lights.)#" , py::arg("theLight")
)
.def("DelLight",
(void (V3d_Viewer::*)( const handle<V3d_Light> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_Light> & ) >(&V3d_Viewer::DelLight),
R"#(Delete Light in Sequence Of Lights.)#" , py::arg("theLight")
)
.def("UpdateLights",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::UpdateLights),
R"#(Updates the lights of all the views of a viewer.)#"
)
.def("IsGlobalLight",
(Standard_Boolean (V3d_Viewer::*)( const handle<V3d_Light> & ) const) static_cast<Standard_Boolean (V3d_Viewer::*)( const handle<V3d_Light> & ) const>(&V3d_Viewer::IsGlobalLight),
R"#()#" , py::arg("TheLight")
)
.def("ActiveLightIterator",
(V3d_ListOfLightIterator (V3d_Viewer::*)() const) static_cast<V3d_ListOfLightIterator (V3d_Viewer::*)() const>(&V3d_Viewer::ActiveLightIterator),
R"#(Return an iterator for defined lights.)#"
)
.def("DefinedLightIterator",
(V3d_ListOfLightIterator (V3d_Viewer::*)() const) static_cast<V3d_ListOfLightIterator (V3d_Viewer::*)() const>(&V3d_Viewer::DefinedLightIterator),
R"#(Return an iterator for defined lights.)#"
)
.def("Erase",
(void (V3d_Viewer::*)() const) static_cast<void (V3d_Viewer::*)() const>(&V3d_Viewer::Erase),
R"#(Erase all Objects in All the views.)#"
)
.def("UnHighlight",
(void (V3d_Viewer::*)() const) static_cast<void (V3d_Viewer::*)() const>(&V3d_Viewer::UnHighlight),
R"#(UnHighlight all Objects in All the views.)#"
)
.def("ComputedMode",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::ComputedMode),
R"#(returns true if the computed mode can be used.)#"
)
.def("SetComputedMode",
(void (V3d_Viewer::*)( const Standard_Boolean ) ) static_cast<void (V3d_Viewer::*)( const Standard_Boolean ) >(&V3d_Viewer::SetComputedMode),
R"#(Set if the computed mode can be used.)#" , py::arg("theMode")
)
.def("DefaultComputedMode",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultComputedMode),
R"#(returns true if by default the computed mode must be used.)#"
)
.def("SetDefaultComputedMode",
(void (V3d_Viewer::*)( const Standard_Boolean ) ) static_cast<void (V3d_Viewer::*)( const Standard_Boolean ) >(&V3d_Viewer::SetDefaultComputedMode),
R"#(Set if by default the computed mode must be used.)#" , py::arg("theMode")
)
.def("SetPrivilegedPlane",
(void (V3d_Viewer::*)( const gp_Ax3 & ) ) static_cast<void (V3d_Viewer::*)( const gp_Ax3 & ) >(&V3d_Viewer::SetPrivilegedPlane),
R"#()#" , py::arg("thePlane")
)
.def("DisplayPrivilegedPlane",
(void (V3d_Viewer::*)( const Standard_Boolean , const Standard_Real ) ) static_cast<void (V3d_Viewer::*)( const Standard_Boolean , const Standard_Real ) >(&V3d_Viewer::DisplayPrivilegedPlane),
R"#()#" , py::arg("theOnOff"), py::arg("theSize")=static_cast< const Standard_Real>(1)
)
.def("ActivateGrid",
(void (V3d_Viewer::*)( const Aspect_GridType , const Aspect_GridDrawMode ) ) static_cast<void (V3d_Viewer::*)( const Aspect_GridType , const Aspect_GridDrawMode ) >(&V3d_Viewer::ActivateGrid),
R"#(Activates the grid in all views of <me>.)#" , py::arg("aGridType"), py::arg("aGridDrawMode")
)
.def("DeactivateGrid",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::DeactivateGrid),
R"#(Deactivates the grid in all views of <me>.)#"
)
.def("SetGridEcho",
(void (V3d_Viewer::*)( const Standard_Boolean ) ) static_cast<void (V3d_Viewer::*)( const Standard_Boolean ) >(&V3d_Viewer::SetGridEcho),
R"#(Show/Don't show grid echo to the hit point. If TRUE,the grid echo will be shown at ConvertToGrid() time.)#" , py::arg("showGrid")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("SetGridEcho",
(void (V3d_Viewer::*)( const handle<Graphic3d_AspectMarker3d> & ) ) static_cast<void (V3d_Viewer::*)( const handle<Graphic3d_AspectMarker3d> & ) >(&V3d_Viewer::SetGridEcho),
R"#(Show grid echo <aMarker> to the hit point. Warning: When the grid echo marker is not set, a default marker is build with the attributes: marker type : Aspect_TOM_STAR marker color : Quantity_NOC_GRAY90 marker size : 3.0)#" , py::arg("aMarker")
)
.def("GridEcho",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::GridEcho),
R"#(Returns TRUE when grid echo must be displayed at hit point.)#"
)
.def("IsGridActive",
(Standard_Boolean (V3d_Viewer::*)() ) static_cast<Standard_Boolean (V3d_Viewer::*)() >(&V3d_Viewer::IsGridActive),
R"#(Returns Standard_True if a grid is activated in <me>.)#"
)
.def("Grid",
(handle<Aspect_Grid> (V3d_Viewer::*)( bool ) ) static_cast<handle<Aspect_Grid> (V3d_Viewer::*)( bool ) >(&V3d_Viewer::Grid),
R"#(Returns the defined grid in <me>.)#" , py::arg("theToCreate")=static_cast<bool>(true)
)
.def("Grid",
(handle<Aspect_Grid> (V3d_Viewer::*)( Aspect_GridType , bool ) ) static_cast<handle<Aspect_Grid> (V3d_Viewer::*)( Aspect_GridType , bool ) >(&V3d_Viewer::Grid),
R"#(Returns the defined grid in <me>.)#" , py::arg("theGridType"), py::arg("theToCreate")=static_cast<bool>(true)
)
.def("GridType",
(Aspect_GridType (V3d_Viewer::*)() const) static_cast<Aspect_GridType (V3d_Viewer::*)() const>(&V3d_Viewer::GridType),
R"#(Returns the current grid type defined in <me>.)#"
)
.def("GridDrawMode",
(Aspect_GridDrawMode (V3d_Viewer::*)() ) static_cast<Aspect_GridDrawMode (V3d_Viewer::*)() >(&V3d_Viewer::GridDrawMode),
R"#(Returns the current grid draw mode defined in <me>.)#"
)
.def("SetRectangularGridValues",
(void (V3d_Viewer::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_Viewer::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_Viewer::SetRectangularGridValues),
R"#(Sets the definition of the rectangular grid. <XOrigin>, <YOrigin> defines the origin of the grid. <XStep> defines the interval between 2 vertical lines. <YStep> defines the interval between 2 horizontal lines. <RotationAngle> defines the rotation angle of the grid.)#" , py::arg("XOrigin"), py::arg("YOrigin"), py::arg("XStep"), py::arg("YStep"), py::arg("RotationAngle")
)
.def("SetCircularGridValues",
(void (V3d_Viewer::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Real ) ) static_cast<void (V3d_Viewer::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Real ) >(&V3d_Viewer::SetCircularGridValues),
R"#(Sets the definition of the circular grid. <XOrigin>, <YOrigin> defines the origin of the grid. <RadiusStep> defines the interval between 2 circles. <DivisionNumber> defines the section number of one half circle. <RotationAngle> defines the rotation angle of the grid.)#" , py::arg("XOrigin"), py::arg("YOrigin"), py::arg("RadiusStep"), py::arg("DivisionNumber"), py::arg("RotationAngle")
)
.def("SetCircularGridGraphicValues",
(void (V3d_Viewer::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_Viewer::*)( const Standard_Real , const Standard_Real ) >(&V3d_Viewer::SetCircularGridGraphicValues),
R"#(Sets the location and the size of the grid. <XSize> defines the width of the grid. <YSize> defines the height of the grid. <OffSet> defines the displacement along the plane normal.)#" , py::arg("Radius"), py::arg("OffSet")
)
.def("SetRectangularGridGraphicValues",
(void (V3d_Viewer::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (V3d_Viewer::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&V3d_Viewer::SetRectangularGridGraphicValues),
R"#(Sets the location and the size of the grid. <XSize> defines the width of the grid. <YSize> defines the height of the grid. <OffSet> defines the displacement along the plane normal.)#" , py::arg("XSize"), py::arg("YSize"), py::arg("OffSet")
)
.def("ShowGridEcho",
(void (V3d_Viewer::*)( const handle<V3d_View> & , const Graphic3d_Vertex & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_View> & , const Graphic3d_Vertex & ) >(&V3d_Viewer::ShowGridEcho),
R"#(Display grid echo at requested point in the view.)#" , py::arg("theView"), py::arg("thePoint")
)
.def("HideGridEcho",
(void (V3d_Viewer::*)( const handle<V3d_View> & ) ) static_cast<void (V3d_Viewer::*)( const handle<V3d_View> & ) >(&V3d_Viewer::HideGridEcho),
R"#(Temporarily hide grid echo.)#" , py::arg("theView")
)
.def("IsActive",
(Standard_Boolean (V3d_Viewer::*)() ) static_cast<Standard_Boolean (V3d_Viewer::*)() >(&V3d_Viewer::IsActive),
R"#(Returns Standard_True if a grid is activated in <me>.)#"
)
.def("InitActiveViews",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::InitActiveViews),
R"#(Initializes an internal iterator on the active views.)#"
)
.def("MoreActiveViews",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::MoreActiveViews),
R"#(Returns true if there are more active view(s) to return.)#"
)
.def("NextActiveViews",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::NextActiveViews),
R"#(Go to the next active view (if there is not, ActiveView will raise an exception))#"
)
.def("InitDefinedViews",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::InitDefinedViews),
R"#(Initializes an internal iterator on the Defined views.)#"
)
.def("MoreDefinedViews",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::MoreDefinedViews),
R"#(returns true if there are more Defined view(s) to return.)#"
)
.def("NextDefinedViews",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::NextDefinedViews),
R"#(Go to the next Defined view (if there is not, DefinedView will raise an exception))#"
)
.def("InitActiveLights",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::InitActiveLights),
R"#(Initializes an internal iteratator on the active Lights.)#"
)
.def("MoreActiveLights",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::MoreActiveLights),
R"#(returns true if there are more active Light(s) to return.)#"
)
.def("NextActiveLights",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::NextActiveLights),
R"#(Go to the next active Light (if there is not, ActiveLight() will raise an exception))#"
)
.def("InitDefinedLights",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::InitDefinedLights),
R"#(Initializes an internal iterattor on the Defined Lights.)#"
)
.def("MoreDefinedLights",
(Standard_Boolean (V3d_Viewer::*)() const) static_cast<Standard_Boolean (V3d_Viewer::*)() const>(&V3d_Viewer::MoreDefinedLights),
R"#(Returns true if there are more Defined Light(s) to return.)#"
)
.def("NextDefinedLights",
(void (V3d_Viewer::*)() ) static_cast<void (V3d_Viewer::*)() >(&V3d_Viewer::NextDefinedLights),
R"#(Go to the next Defined Light (if there is not, DefinedLight() will raise an exception))#"
)
.def("DumpJson",
(void (V3d_Viewer::*)( Standard_OStream & , Standard_Integer ) const) static_cast<void (V3d_Viewer::*)( Standard_OStream & , Standard_Integer ) const>(&V3d_Viewer::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
.def("RectangularGridValues",
[]( V3d_Viewer &self ){
Standard_Real theXOrigin;
Standard_Real theYOrigin;
Standard_Real theXStep;
Standard_Real theYStep;
Standard_Real theRotationAngle;
self.RectangularGridValues(theXOrigin,theYOrigin,theXStep,theYStep,theRotationAngle);
return std::make_tuple(theXOrigin,theYOrigin,theXStep,theYStep,theRotationAngle); },
R"#(Returns the definition of the rectangular grid.)#"
)
.def("CircularGridValues",
[]( V3d_Viewer &self ){
Standard_Real theXOrigin;
Standard_Real theYOrigin;
Standard_Real theRadiusStep;
Standard_Integer theDivisionNumber;
Standard_Real theRotationAngle;
self.CircularGridValues(theXOrigin,theYOrigin,theRadiusStep,theDivisionNumber,theRotationAngle);
return std::make_tuple(theXOrigin,theYOrigin,theRadiusStep,theDivisionNumber,theRotationAngle); },
R"#(Returns the definition of the circular grid.)#"
)
.def("CircularGridGraphicValues",
[]( V3d_Viewer &self ){
Standard_Real theRadius;
Standard_Real theOffSet;
self.CircularGridGraphicValues(theRadius,theOffSet);
return std::make_tuple(theRadius,theOffSet); },
R"#(Returns the location and the size of the grid.)#"
)
.def("RectangularGridGraphicValues",
[]( V3d_Viewer &self ){
Standard_Real theXSize;
Standard_Real theYSize;
Standard_Real theOffSet;
self.RectangularGridGraphicValues(theXSize,theYSize,theOffSet);
return std::make_tuple(theXSize,theYSize,theOffSet); },
R"#(Returns the location and the size of the grid.)#"
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_Viewer::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_Viewer::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_Viewer::*)() const) static_cast< const handle<Standard_Type> & (V3d_Viewer::*)() const>(&V3d_Viewer::DynamicType),
R"#()#"
)
.def("Driver",
( const handle<Graphic3d_GraphicDriver> & (V3d_Viewer::*)() const) static_cast< const handle<Graphic3d_GraphicDriver> & (V3d_Viewer::*)() const>(&V3d_Viewer::Driver),
R"#(Return Graphic Driver instance.)#"
)
.def("DefaultRenderingParams",
( const Graphic3d_RenderingParams & (V3d_Viewer::*)() const) static_cast< const Graphic3d_RenderingParams & (V3d_Viewer::*)() const>(&V3d_Viewer::DefaultRenderingParams),
R"#(Return default Rendering Parameters. By default these parameters are set in a new V3d_View.)#"
)
.def("GetGradientBackground",
( const Aspect_GradientBackground & (V3d_Viewer::*)() const) static_cast< const Aspect_GradientBackground & (V3d_Viewer::*)() const>(&V3d_Viewer::GetGradientBackground),
R"#(Returns the gradient background of the view.)#"
)
.def("ActiveViews",
( const V3d_ListOfView & (V3d_Viewer::*)() const) static_cast< const V3d_ListOfView & (V3d_Viewer::*)() const>(&V3d_Viewer::ActiveViews),
R"#(Return a list of active views.)#"
)
.def("DefinedViews",
( const V3d_ListOfView & (V3d_Viewer::*)() const) static_cast< const V3d_ListOfView & (V3d_Viewer::*)() const>(&V3d_Viewer::DefinedViews),
R"#(Return a list of defined views.)#"
)
.def("ActiveLights",
( const V3d_ListOfLight & (V3d_Viewer::*)() const) static_cast< const V3d_ListOfLight & (V3d_Viewer::*)() const>(&V3d_Viewer::ActiveLights),
R"#(Return a list of active lights.)#"
)
.def("DefinedLights",
( const V3d_ListOfLight & (V3d_Viewer::*)() const) static_cast< const V3d_ListOfLight & (V3d_Viewer::*)() const>(&V3d_Viewer::DefinedLights),
R"#(Return a list of defined lights.)#"
)
.def("PrivilegedPlane",
( const gp_Ax3 & (V3d_Viewer::*)() const) static_cast< const gp_Ax3 & (V3d_Viewer::*)() const>(&V3d_Viewer::PrivilegedPlane),
R"#()#"
)
.def("ActiveView",
( const handle<V3d_View> & (V3d_Viewer::*)() const) static_cast< const handle<V3d_View> & (V3d_Viewer::*)() const>(&V3d_Viewer::ActiveView),
R"#()#"
)
.def("DefinedView",
( const handle<V3d_View> & (V3d_Viewer::*)() const) static_cast< const handle<V3d_View> & (V3d_Viewer::*)() const>(&V3d_Viewer::DefinedView),
R"#()#"
)
.def("ActiveLight",
( const handle<V3d_Light> & (V3d_Viewer::*)() const) static_cast< const handle<V3d_Light> & (V3d_Viewer::*)() const>(&V3d_Viewer::ActiveLight),
R"#()#"
)
.def("DefinedLight",
( const handle<V3d_Light> & (V3d_Viewer::*)() const) static_cast< const handle<V3d_Light> & (V3d_Viewer::*)() const>(&V3d_Viewer::DefinedLight),
R"#()#"
)
;
// Class V3d_DirectionalLight from ./opencascade/V3d_DirectionalLight.hxx
klass = m.attr("V3d_DirectionalLight");
// nested enums
static_cast<py::class_<V3d_DirectionalLight ,opencascade::handle<V3d_DirectionalLight> , V3d_PositionLight >>(klass)
// constructors
.def(py::init< const V3d_TypeOfOrientation, const Quantity_Color &, const Standard_Boolean >() , py::arg("theDirection")=static_cast< const V3d_TypeOfOrientation>(V3d_XposYposZpos), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE), py::arg("theIsHeadlight")=static_cast< const Standard_Boolean>(Standard_False) )
.def(py::init< const gp_Dir &, const Quantity_Color &, const Standard_Boolean >() , py::arg("theDirection"), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE), py::arg("theIsHeadlight")=static_cast< const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("SetDirection",
(void (V3d_DirectionalLight::*)( V3d_TypeOfOrientation ) ) static_cast<void (V3d_DirectionalLight::*)( V3d_TypeOfOrientation ) >(&V3d_DirectionalLight::SetDirection),
R"#(Defines the direction of the light source by a predefined orientation.)#" , py::arg("theDirection")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_DirectionalLight::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_DirectionalLight::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_DirectionalLight::*)() const) static_cast< const handle<Standard_Type> & (V3d_DirectionalLight::*)() const>(&V3d_DirectionalLight::DynamicType),
R"#()#"
)
;
// Class V3d_PositionalLight from ./opencascade/V3d_PositionalLight.hxx
klass = m.attr("V3d_PositionalLight");
// nested enums
static_cast<py::class_<V3d_PositionalLight ,opencascade::handle<V3d_PositionalLight> , V3d_PositionLight >>(klass)
// constructors
.def(py::init< const gp_Pnt &, const Quantity_Color & >() , py::arg("thePos"), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE) )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_PositionalLight::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_PositionalLight::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_PositionalLight::*)() const) static_cast< const handle<Standard_Type> & (V3d_PositionalLight::*)() const>(&V3d_PositionalLight::DynamicType),
R"#()#"
)
;
// Class V3d_SpotLight from ./opencascade/V3d_SpotLight.hxx
klass = m.attr("V3d_SpotLight");
// nested enums
static_cast<py::class_<V3d_SpotLight ,opencascade::handle<V3d_SpotLight> , V3d_PositionLight >>(klass)
// constructors
.def(py::init< const gp_Pnt &, const V3d_TypeOfOrientation, const Quantity_Color & >() , py::arg("thePos"), py::arg("theDirection")=static_cast< const V3d_TypeOfOrientation>(V3d_XnegYnegZpos), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE) )
.def(py::init< const gp_Pnt &, const gp_Dir &, const Quantity_Color & >() , py::arg("thePos"), py::arg("theDirection"), py::arg("theColor")=static_cast< const Quantity_Color &>(Quantity_NOC_WHITE) )
// custom constructors
// methods
.def("SetDirection",
(void (V3d_SpotLight::*)( V3d_TypeOfOrientation ) ) static_cast<void (V3d_SpotLight::*)( V3d_TypeOfOrientation ) >(&V3d_SpotLight::SetDirection),
R"#(Defines the direction of the light source according to a predefined directional vector.)#" , py::arg("theOrientation")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&V3d_SpotLight::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&V3d_SpotLight::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (V3d_SpotLight::*)() const) static_cast< const handle<Standard_Type> & (V3d_SpotLight::*)() const>(&V3d_SpotLight::DynamicType),
R"#()#"
)
;
// functions
// ./opencascade/V3d.hxx
// ./opencascade/V3d_AmbientLight.hxx
// ./opencascade/V3d_BadValue.hxx
// ./opencascade/V3d_CircularGrid.hxx
// ./opencascade/V3d_DirectionalLight.hxx
// ./opencascade/V3d_ImageDumpOptions.hxx
// ./opencascade/V3d_Light.hxx
// ./opencascade/V3d_ListOfLight.hxx
// ./opencascade/V3d_ListOfView.hxx
// ./opencascade/V3d_Plane.hxx
// ./opencascade/V3d_PositionLight.hxx
// ./opencascade/V3d_PositionalLight.hxx
// ./opencascade/V3d_RectangularGrid.hxx
// ./opencascade/V3d_SpotLight.hxx
// ./opencascade/V3d_StereoDumpOptions.hxx
// ./opencascade/V3d_Trihedron.hxx
// ./opencascade/V3d_TypeOfAxe.hxx
// ./opencascade/V3d_TypeOfBackfacingModel.hxx
// ./opencascade/V3d_TypeOfLight.hxx
// ./opencascade/V3d_TypeOfOrientation.hxx
// ./opencascade/V3d_TypeOfShadingModel.hxx
// ./opencascade/V3d_TypeOfView.hxx
// ./opencascade/V3d_TypeOfVisualization.hxx
// ./opencascade/V3d_UnMapped.hxx
// ./opencascade/V3d_View.hxx
// ./opencascade/V3d_Viewer.hxx
// ./opencascade/V3d_ViewerPointer.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_List<opencascade::handle<Graphic3d_CLight>>(m,"V3d_ListOfLight");
register_template_NCollection_List<opencascade::handle<V3d_View>>(m,"V3d_ListOfView");
// exceptions
register_occ_exception<V3d_BadValue>(m, "V3d_BadValue");
register_occ_exception<V3d_UnMapped>(m, "V3d_UnMapped");
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|