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
|
// 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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TObj_Model.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 <TObj_TNameContainer.hxx>
#include <TDocStd_Document.hxx>
#include <TObj_CheckModel.hxx>
#include <TObj_Application.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 <TObj_Model.hxx>
#include <TObj_Persistence.hxx>
#include <TObj_ObjectIterator.hxx>
#include <TObj_TNameContainer.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TObj_Object.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 <TObj_Object.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Standard_GUID.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TObj_Model.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 <Standard_GUID.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TObj_Object.hxx>
#include <Standard_GUID.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Standard_GUID.hxx>
#include <TDF_Label.hxx>
// module includes
#include <TObj_Application.hxx>
#include <TObj_Assistant.hxx>
#include <TObj_CheckModel.hxx>
#include <TObj_Container.hxx>
#include <TObj_DeletingMode.hxx>
#include <TObj_HiddenPartition.hxx>
#include <TObj_LabelIterator.hxx>
#include <TObj_Model.hxx>
#include <TObj_ModelIterator.hxx>
#include <TObj_Object.hxx>
#include <TObj_ObjectIterator.hxx>
#include <TObj_OcafObjectIterator.hxx>
#include <TObj_Partition.hxx>
#include <TObj_Persistence.hxx>
#include <TObj_ReferenceIterator.hxx>
#include <TObj_SequenceIterator.hxx>
#include <TObj_SequenceOfIterator.hxx>
#include <TObj_SequenceOfObject.hxx>
#include <TObj_TIntSparseArray.hxx>
#include <TObj_TModel.hxx>
#include <TObj_TNameContainer.hxx>
#include <TObj_TObject.hxx>
#include <TObj_TReference.hxx>
#include <TObj_TXYZ.hxx>
// template related includes
// ./opencascade/TObj_Container.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/TObj_Container.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/TObj_SequenceOfIterator.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/TObj_SequenceOfObject.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/TObj_TIntSparseArray.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
#include <TDF_RelocationTable.hxx>
#include <TDF_DeltaOnModification.hxx>
// Module definiiton
void register_TObj(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("TObj"));
py::object klass;
//Python trampoline classes
class Py_TObj_Model : public TObj_Model{
public:
using TObj_Model::TObj_Model;
// public pure virtual
opencascade::handle<TObj_Model> NewEmpty() override { PYBIND11_OVERLOAD_PURE(opencascade::handle<TObj_Model>,TObj_Model,NewEmpty,) };
// protected pure virtual
// private pure virtual
};
class Py_TObj_Persistence : public TObj_Persistence{
public:
using TObj_Persistence::TObj_Persistence;
// public pure virtual
// protected pure virtual
opencascade::handle<TObj_Object> New(const TDF_Label & theLabel) const override { PYBIND11_OVERLOAD_PURE(opencascade::handle<TObj_Object>,TObj_Persistence,New,theLabel) };
// private pure virtual
};
class Py_TObj_LabelIterator : public TObj_LabelIterator{
public:
using TObj_LabelIterator::TObj_LabelIterator;
// public pure virtual
// protected pure virtual
void MakeStep() override { PYBIND11_OVERLOAD_PURE(void,TObj_LabelIterator,MakeStep,) };
// private pure virtual
};
// classes
// Class TObj_Application from ./opencascade/TObj_Application.hxx
klass = m.attr("TObj_Application");
// nested enums
static_cast<py::class_<TObj_Application ,opencascade::handle<TObj_Application> , TDocStd_Application >>(klass)
// constructors
// custom constructors
// methods
.def("SaveDocument",
(Standard_Boolean (TObj_Application::*)( const opencascade::handle<TDocStd_Document> & , const TCollection_ExtendedString & ) ) static_cast<Standard_Boolean (TObj_Application::*)( const opencascade::handle<TDocStd_Document> & , const TCollection_ExtendedString & ) >(&TObj_Application::SaveDocument),
R"#(Saving the OCAF document to a file)#" , py::arg("theSourceDoc"), py::arg("theTargetFile")
)
.def("SaveDocument",
(Standard_Boolean (TObj_Application::*)( const opencascade::handle<TDocStd_Document> & , std::ostream & ) ) static_cast<Standard_Boolean (TObj_Application::*)( const opencascade::handle<TDocStd_Document> & , std::ostream & ) >(&TObj_Application::SaveDocument),
R"#(Saving the OCAF document to a stream)#" , py::arg("theSourceDoc"), py::arg("theOStream")
)
.def("LoadDocument",
(Standard_Boolean (TObj_Application::*)( const TCollection_ExtendedString & , opencascade::handle<TDocStd_Document> & ) ) static_cast<Standard_Boolean (TObj_Application::*)( const TCollection_ExtendedString & , opencascade::handle<TDocStd_Document> & ) >(&TObj_Application::LoadDocument),
R"#(Loading the OCAF document from a file)#" , py::arg("theSourceFile"), py::arg("theTargetDoc")
)
.def("LoadDocument",
(Standard_Boolean (TObj_Application::*)( std::istream & , opencascade::handle<TDocStd_Document> & ) ) static_cast<Standard_Boolean (TObj_Application::*)( std::istream & , opencascade::handle<TDocStd_Document> & ) >(&TObj_Application::LoadDocument),
R"#(Loading the OCAF document from a stream)#" , py::arg("theIStream"), py::arg("theTargetDoc")
)
.def("CreateNewDocument",
(Standard_Boolean (TObj_Application::*)( opencascade::handle<TDocStd_Document> & , const TCollection_ExtendedString & ) ) static_cast<Standard_Boolean (TObj_Application::*)( opencascade::handle<TDocStd_Document> & , const TCollection_ExtendedString & ) >(&TObj_Application::CreateNewDocument),
R"#(Create the OCAF document from scratch)#" , py::arg("theDoc"), py::arg("theFormat")
)
.def("ErrorMessage",
(void (TObj_Application::*)( const TCollection_ExtendedString & , const Message_Gravity ) ) static_cast<void (TObj_Application::*)( const TCollection_ExtendedString & , const Message_Gravity ) >(&TObj_Application::ErrorMessage),
R"#(Signal error during Load or Save Default imiplementation is empty)#" , py::arg("theMsg"), py::arg("theLevel")
)
.def("ErrorMessage",
(void (TObj_Application::*)( const TCollection_ExtendedString & ) ) static_cast<void (TObj_Application::*)( const TCollection_ExtendedString & ) >(&TObj_Application::ErrorMessage),
R"#(Signal error during Load or Save Default imiplementation invoke previous declaration with 0)#" , py::arg("theMsg")
)
.def("SetVerbose",
(void (TObj_Application::*)( const Standard_Boolean ) ) static_cast<void (TObj_Application::*)( const Standard_Boolean ) >(&TObj_Application::SetVerbose),
R"#(Sets the verbose flag, meaning that load/save models should show CPU and elapsed times)#" , py::arg("isVerbose")
)
.def("IsVerbose",
(Standard_Boolean (TObj_Application::*)() const) static_cast<Standard_Boolean (TObj_Application::*)() const>(&TObj_Application::IsVerbose),
R"#(Returns the verbose flag)#"
)
.def("DumpJson",
(void (TObj_Application::*)( std::ostream & , Standard_Integer ) const) static_cast<void (TObj_Application::*)( std::ostream & , Standard_Integer ) const>(&TObj_Application::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
.def("ResourcesName",
(Standard_CString (TObj_Application::*)() ) static_cast<Standard_CString (TObj_Application::*)() >(&TObj_Application::ResourcesName),
R"#(Return name of resource (i.e. "TObj"))#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetInstance_s",
(opencascade::handle<TObj_Application> (*)() ) static_cast<opencascade::handle<TObj_Application> (*)() >(&TObj_Application::GetInstance),
R"#(Returns static instance of the application)#"
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_Application::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_Application::get_type_descriptor),
R"#(None)#"
)
// 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("Messenger",
(opencascade::handle<Message_Messenger> & (TObj_Application::*)() ) static_cast<opencascade::handle<Message_Messenger> & (TObj_Application::*)() >(&TObj_Application::Messenger),
R"#(Returns reference to associated messenger handle)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_Application::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_Application::*)() const>(&TObj_Application::DynamicType),
R"#(None)#"
)
;
// Class TObj_Assistant from ./opencascade/TObj_Assistant.hxx
klass = m.attr("TObj_Assistant");
// default constructor
register_default_constructor<TObj_Assistant , shared_ptr<TObj_Assistant>>(m,"TObj_Assistant");
// nested enums
static_cast<py::class_<TObj_Assistant , shared_ptr<TObj_Assistant> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("FindModel_s",
(opencascade::handle<TObj_Model> (*)( const Standard_CString ) ) static_cast<opencascade::handle<TObj_Model> (*)( const Standard_CString ) >(&TObj_Assistant::FindModel),
R"#(Finds model by name)#" , py::arg("theName")
)
.def_static("BindModel_s",
(void (*)( const opencascade::handle<TObj_Model> & ) ) static_cast<void (*)( const opencascade::handle<TObj_Model> & ) >(&TObj_Assistant::BindModel),
R"#(Binds model to the map)#" , py::arg("theModel")
)
.def_static("ClearModelMap_s",
(void (*)() ) static_cast<void (*)() >(&TObj_Assistant::ClearModelMap),
R"#(Clears all records from the model map)#"
)
.def_static("FindType_s",
(opencascade::handle<Standard_Type> (*)( const Standard_Integer ) ) static_cast<opencascade::handle<Standard_Type> (*)( const Standard_Integer ) >(&TObj_Assistant::FindType),
R"#(Finds Standard_Type by index; returns NULL handle if not found)#" , py::arg("theTypeIndex")
)
.def_static("FindTypeIndex_s",
(Standard_Integer (*)( const opencascade::handle<Standard_Type> & ) ) static_cast<Standard_Integer (*)( const opencascade::handle<Standard_Type> & ) >(&TObj_Assistant::FindTypeIndex),
R"#(Rinds index by Standard_Type; returns 0 if not found)#" , py::arg("theType")
)
.def_static("BindType_s",
(Standard_Integer (*)( const opencascade::handle<Standard_Type> & ) ) static_cast<Standard_Integer (*)( const opencascade::handle<Standard_Type> & ) >(&TObj_Assistant::BindType),
R"#(Binds Standard_Type to the map; returns index of bound type)#" , py::arg("theType")
)
.def_static("ClearTypeMap_s",
(void (*)() ) static_cast<void (*)() >(&TObj_Assistant::ClearTypeMap),
R"#(Clears map of types)#"
)
.def_static("SetCurrentModel_s",
(void (*)( const opencascade::handle<TObj_Model> & ) ) static_cast<void (*)( const opencascade::handle<TObj_Model> & ) >(&TObj_Assistant::SetCurrentModel),
R"#(Sets current model)#" , py::arg("theModel")
)
.def_static("GetCurrentModel_s",
(opencascade::handle<TObj_Model> (*)() ) static_cast<opencascade::handle<TObj_Model> (*)() >(&TObj_Assistant::GetCurrentModel),
R"#(Returns current model)#"
)
.def_static("UnSetCurrentModel_s",
(void (*)() ) static_cast<void (*)() >(&TObj_Assistant::UnSetCurrentModel),
R"#(Unsets current model)#"
)
.def_static("GetAppVersion_s",
(Standard_Integer (*)() ) static_cast<Standard_Integer (*)() >(&TObj_Assistant::GetAppVersion),
R"#(Returns the version of application which wrote the currently read document. Returns 0 if it has not been set yet for the current document.)#"
)
// 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 TObj_CheckModel from ./opencascade/TObj_CheckModel.hxx
klass = m.attr("TObj_CheckModel");
// nested enums
static_cast<py::class_<TObj_CheckModel ,opencascade::handle<TObj_CheckModel> , Message_Algorithm >>(klass)
// constructors
.def(py::init< const opencascade::handle<TObj_Model> & >() , py::arg("theModel") )
// custom constructors
// methods
.def("SetToFix",
(void (TObj_CheckModel::*)( const Standard_Boolean ) ) static_cast<void (TObj_CheckModel::*)( const Standard_Boolean ) >(&TObj_CheckModel::SetToFix),
R"#(Sets flag allowing fixing inconsistencies)#" , py::arg("theToFix")
)
.def("IsToFix",
(Standard_Boolean (TObj_CheckModel::*)() const) static_cast<Standard_Boolean (TObj_CheckModel::*)() const>(&TObj_CheckModel::IsToFix),
R"#(Returns true if it is allowed to fix inconsistencies)#"
)
.def("Perform",
(Standard_Boolean (TObj_CheckModel::*)() ) static_cast<Standard_Boolean (TObj_CheckModel::*)() >(&TObj_CheckModel::Perform),
R"#(Performs all checks. Descendants should call parent method before doing own checks. This implementation checks OCAF references and back references between objects of the model. Returns true if no inconsistencies found.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_CheckModel::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_CheckModel::get_type_descriptor),
R"#(None)#"
)
// 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("GetModel",
(const opencascade::handle<TObj_Model> & (TObj_CheckModel::*)() const) static_cast<const opencascade::handle<TObj_Model> & (TObj_CheckModel::*)() const>(&TObj_CheckModel::GetModel),
R"#(Returns the checked model)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_CheckModel::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_CheckModel::*)() const>(&TObj_CheckModel::DynamicType),
R"#(None)#"
)
;
// Class TObj_HSequenceOfObject from ./opencascade/TObj_SequenceOfObject.hxx
klass = m.attr("TObj_HSequenceOfObject");
// nested enums
static_cast<py::class_<TObj_HSequenceOfObject ,opencascade::handle<TObj_HSequenceOfObject> , TObj_SequenceOfObject , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const NCollection_Sequence<opencascade::handle<TObj_Object>> & >() , py::arg("theOther") )
// custom constructors
// methods
.def("Append",
(void (TObj_HSequenceOfObject::*)( const opencascade::handle<TObj_Object> & ) ) static_cast<void (TObj_HSequenceOfObject::*)( const opencascade::handle<TObj_Object> & ) >(&TObj_HSequenceOfObject::Append),
R"#(None)#" , py::arg("theItem")
)
.def("Append",
(void (TObj_HSequenceOfObject::*)( NCollection_Sequence<opencascade::handle<TObj_Object>> & ) ) static_cast<void (TObj_HSequenceOfObject::*)( NCollection_Sequence<opencascade::handle<TObj_Object>> & ) >(&TObj_HSequenceOfObject::Append),
R"#(None)#" , py::arg("theSequence")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_HSequenceOfObject::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_HSequenceOfObject::get_type_descriptor),
R"#(None)#"
)
// 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("Sequence",
(const TObj_SequenceOfObject & (TObj_HSequenceOfObject::*)() const) static_cast<const TObj_SequenceOfObject & (TObj_HSequenceOfObject::*)() const>(&TObj_HSequenceOfObject::Sequence),
R"#(None)#"
)
.def("ChangeSequence",
(TObj_SequenceOfObject & (TObj_HSequenceOfObject::*)() ) static_cast<TObj_SequenceOfObject & (TObj_HSequenceOfObject::*)() >(&TObj_HSequenceOfObject::ChangeSequence),
R"#(None)#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_HSequenceOfObject::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_HSequenceOfObject::*)() const>(&TObj_HSequenceOfObject::DynamicType),
R"#(None)#"
)
;
// Class TObj_Model from ./opencascade/TObj_Model.hxx
klass = m.attr("TObj_Model");
// nested enums
static_cast<py::class_<TObj_Model ,opencascade::handle<TObj_Model> ,Py_TObj_Model , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("SetMessenger",
(void (TObj_Model::*)( const opencascade::handle<Message_Messenger> & ) ) static_cast<void (TObj_Model::*)( const opencascade::handle<Message_Messenger> & ) >(&TObj_Model::SetMessenger),
R"#(Set messenger to use for messages output)#" , py::arg("theMsgr")
)
.def("Messenger",
(opencascade::handle<Message_Messenger> (TObj_Model::*)() const) static_cast<opencascade::handle<Message_Messenger> (TObj_Model::*)() const>(&TObj_Model::Messenger),
R"#(Get messenger used for messages output (by default, the messenger from application is used))#"
)
.def("Load",
(Standard_Boolean (TObj_Model::*)( const TCollection_ExtendedString & ) ) static_cast<Standard_Boolean (TObj_Model::*)( const TCollection_ExtendedString & ) >(&TObj_Model::Load),
R"#(Load the OCAF model from a file. If the filename is empty or file does not exists, it just initializes model by empty data.)#" , py::arg("theFile")
)
.def("Load",
(Standard_Boolean (TObj_Model::*)( std::istream & ) ) static_cast<Standard_Boolean (TObj_Model::*)( std::istream & ) >(&TObj_Model::Load),
R"#(Load the OCAF model from a stream. If case of failure, it initializes the model by empty data.)#" , py::arg("theIStream")
)
.def("SaveAs",
(Standard_Boolean (TObj_Model::*)( const TCollection_ExtendedString & ) ) static_cast<Standard_Boolean (TObj_Model::*)( const TCollection_ExtendedString & ) >(&TObj_Model::SaveAs),
R"#(Save the model to a file)#" , py::arg("theFile")
)
.def("SaveAs",
(Standard_Boolean (TObj_Model::*)( std::ostream & ) ) static_cast<Standard_Boolean (TObj_Model::*)( std::ostream & ) >(&TObj_Model::SaveAs),
R"#(Save the model to a stream)#" , py::arg("theOStream")
)
.def("Save",
(Standard_Boolean (TObj_Model::*)() ) static_cast<Standard_Boolean (TObj_Model::*)() >(&TObj_Model::Save),
R"#(Save the model to the same file)#"
)
.def("Close",
(Standard_Boolean (TObj_Model::*)() ) static_cast<Standard_Boolean (TObj_Model::*)() >(&TObj_Model::Close),
R"#(Close the model)#"
)
.def("CloseDocument",
(void (TObj_Model::*)( const opencascade::handle<TDocStd_Document> & ) ) static_cast<void (TObj_Model::*)( const opencascade::handle<TDocStd_Document> & ) >(&TObj_Model::CloseDocument),
R"#(Close Free OCAF document)#" , py::arg("theDoc")
)
.def("GetFile",
(opencascade::handle<TCollection_HExtendedString> (TObj_Model::*)() const) static_cast<opencascade::handle<TCollection_HExtendedString> (TObj_Model::*)() const>(&TObj_Model::GetFile),
R"#(Returns the full file name this model is to be saved to, or null if the model was not saved yet)#"
)
.def("GetObjects",
(opencascade::handle<TObj_ObjectIterator> (TObj_Model::*)() const) static_cast<opencascade::handle<TObj_ObjectIterator> (TObj_Model::*)() const>(&TObj_Model::GetObjects),
R"#(Returns an Iterator on all objects in the Model)#"
)
.def("GetChildren",
(opencascade::handle<TObj_ObjectIterator> (TObj_Model::*)() const) static_cast<opencascade::handle<TObj_ObjectIterator> (TObj_Model::*)() const>(&TObj_Model::GetChildren),
R"#(Returns an Iterator on objects in the main partition)#"
)
.def("FindObject",
(opencascade::handle<TObj_Object> (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const opencascade::handle<TObj_TNameContainer> & ) const) static_cast<opencascade::handle<TObj_Object> (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const opencascade::handle<TObj_TNameContainer> & ) const>(&TObj_Model::FindObject),
R"#(Returns an Object by given Name (or Null if not found).)#" , py::arg("theName"), py::arg("theDictionary")
)
.def("GetChecker",
(opencascade::handle<TObj_CheckModel> (TObj_Model::*)() const) static_cast<opencascade::handle<TObj_CheckModel> (TObj_Model::*)() const>(&TObj_Model::GetChecker),
R"#(Returns the tool checking model consistency. Descendant may redefine it to return its own tool.)#"
)
.def("GetRoot",
(opencascade::handle<TObj_Object> (TObj_Model::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_Model::*)() const>(&TObj_Model::GetRoot),
R"#(Returns root object of model)#"
)
.def("GetMainPartition",
(opencascade::handle<TObj_Partition> (TObj_Model::*)() const) static_cast<opencascade::handle<TObj_Partition> (TObj_Model::*)() const>(&TObj_Model::GetMainPartition),
R"#(Returns root object of model)#"
)
.def("GetLabel",
(TDF_Label (TObj_Model::*)() const) static_cast<TDF_Label (TObj_Model::*)() const>(&TObj_Model::GetLabel),
R"#(Returns OCAF label on which model data are stored.)#"
)
.def("GetModelName",
(opencascade::handle<TCollection_HExtendedString> (TObj_Model::*)() const) static_cast<opencascade::handle<TCollection_HExtendedString> (TObj_Model::*)() const>(&TObj_Model::GetModelName),
R"#(Returns the name of the model)#"
)
.def("IsRegisteredName",
(Standard_Boolean (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const opencascade::handle<TObj_TNameContainer> & ) const) static_cast<Standard_Boolean (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const opencascade::handle<TObj_TNameContainer> & ) const>(&TObj_Model::IsRegisteredName),
R"#(Returns True is name is registered in the names map The input argument may be NULL handle, then model check in own global container)#" , py::arg("theName"), py::arg("theDictionary")
)
.def("RegisterName",
(void (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const TDF_Label & , const opencascade::handle<TObj_TNameContainer> & ) const) static_cast<void (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const TDF_Label & , const opencascade::handle<TObj_TNameContainer> & ) const>(&TObj_Model::RegisterName),
R"#(Register name in the map The input argument may be NULL handle, then model check in own global container)#" , py::arg("theName"), py::arg("theLabel"), py::arg("theDictionary")
)
.def("UnRegisterName",
(void (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const opencascade::handle<TObj_TNameContainer> & ) const) static_cast<void (TObj_Model::*)( const opencascade::handle<TCollection_HExtendedString> & , const opencascade::handle<TObj_TNameContainer> & ) const>(&TObj_Model::UnRegisterName),
R"#(Unregisters name from the map The input argument may be NULL handle, then model check in own global container)#" , py::arg("theName"), py::arg("theDictionary")
)
.def("HasOpenCommand",
(Standard_Boolean (TObj_Model::*)() const) static_cast<Standard_Boolean (TObj_Model::*)() const>(&TObj_Model::HasOpenCommand),
R"#(Returns True if a Command transaction is open Starting, finishing the transaction)#"
)
.def("OpenCommand",
(void (TObj_Model::*)() const) static_cast<void (TObj_Model::*)() const>(&TObj_Model::OpenCommand),
R"#(Open a new command transaction.)#"
)
.def("CommitCommand",
(void (TObj_Model::*)() const) static_cast<void (TObj_Model::*)() const>(&TObj_Model::CommitCommand),
R"#(Commit the Command transaction. Do nothing If there is no Command transaction open.)#"
)
.def("AbortCommand",
(void (TObj_Model::*)() const) static_cast<void (TObj_Model::*)() const>(&TObj_Model::AbortCommand),
R"#(Abort the Command transaction. Do nothing If there is no Command transaction open.)#"
)
.def("IsModified",
(Standard_Boolean (TObj_Model::*)() const) static_cast<Standard_Boolean (TObj_Model::*)() const>(&TObj_Model::IsModified),
R"#(Modification status)#"
)
.def("SetModified",
(void (TObj_Model::*)( const Standard_Boolean ) ) static_cast<void (TObj_Model::*)( const Standard_Boolean ) >(&TObj_Model::SetModified),
R"#(Sets modification status)#" , py::arg("theModified")
)
.def("GetApplication",
(const opencascade::handle<TObj_Application> (TObj_Model::*)() ) static_cast<const opencascade::handle<TObj_Application> (TObj_Model::*)() >(&TObj_Model::GetApplication),
R"#(Returns handle to static instance of the relevant application class)#"
)
.def("GetFormat",
(TCollection_ExtendedString (TObj_Model::*)() const) static_cast<TCollection_ExtendedString (TObj_Model::*)() const>(&TObj_Model::GetFormat),
R"#(Returns the format for save/restore. This implementation returns "BinOcaf". The method should be redefined for those models that should use another format.)#"
)
.def("GetFormatVersion",
(Standard_Integer (TObj_Model::*)() const) static_cast<Standard_Integer (TObj_Model::*)() const>(&TObj_Model::GetFormatVersion),
R"#(Returns the version of format stored in TObj file)#"
)
.def("Update",
(Standard_Boolean (TObj_Model::*)() ) static_cast<Standard_Boolean (TObj_Model::*)() >(&TObj_Model::Update),
R"#(this method is called before activating this model)#"
)
.def("GetGUID",
(Standard_GUID (TObj_Model::*)() const) static_cast<Standard_GUID (TObj_Model::*)() const>(&TObj_Model::GetGUID),
R"#(Defines interface GUID for TObj_Model)#"
)
.def("GetDictionary",
(opencascade::handle<TObj_TNameContainer> (TObj_Model::*)() const) static_cast<opencascade::handle<TObj_TNameContainer> (TObj_Model::*)() const>(&TObj_Model::GetDictionary),
R"#(Returns the map of names of the objects)#"
)
.def("GetDocument",
(opencascade::handle<TDocStd_Document> (TObj_Model::*)() const) static_cast<opencascade::handle<TDocStd_Document> (TObj_Model::*)() const>(&TObj_Model::GetDocument),
R"#(Returns OCAF document of Model)#"
)
.def("SetLabel",
(void (TObj_Model::*)( const TDF_Label & ) ) static_cast<void (TObj_Model::*)( const TDF_Label & ) >(&TObj_Model::SetLabel),
R"#(Sets OCAF label on which model data are stored. Used by persistence mechanism.)#" , py::arg("theLabel")
)
.def("Paste",
(Standard_Boolean (TObj_Model::*)( opencascade::handle<TObj_Model> , opencascade::handle<TDF_RelocationTable> ) ) static_cast<Standard_Boolean (TObj_Model::*)( opencascade::handle<TObj_Model> , opencascade::handle<TDF_RelocationTable> ) >(&TObj_Model::Paste),
R"#(Pastes me to the new model references will not be copied if theRelocTable is not 0 if theRelocTable is not NULL theRelocTable is filled by objects)#" , py::arg("theModel"), py::arg("theRelocTable")
)
.def("NewEmpty",
(opencascade::handle<TObj_Model> (TObj_Model::*)() ) static_cast<opencascade::handle<TObj_Model> (TObj_Model::*)() >(&TObj_Model::NewEmpty),
R"#(This function have to create a new model with type like me)#"
)
.def("CopyReferences",
(void (TObj_Model::*)( const opencascade::handle<TObj_Model> & , const opencascade::handle<TDF_RelocationTable> & ) ) static_cast<void (TObj_Model::*)( const opencascade::handle<TObj_Model> & , const opencascade::handle<TDF_RelocationTable> & ) >(&TObj_Model::CopyReferences),
R"#(Copy references from me to the other)#" , py::arg("theTarget"), py::arg("theRelocTable")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetDocumentModel_s",
(opencascade::handle<TObj_Model> (*)( const TDF_Label & ) ) static_cast<opencascade::handle<TObj_Model> (*)( const TDF_Label & ) >(&TObj_Model::GetDocumentModel),
R"#(Returns model which contains a document with the label, or NULL handle if label is NULL)#" , py::arg("theLabel")
)
.def_static("SetNewName_s",
(void (*)( const opencascade::handle<TObj_Object> & ) ) static_cast<void (*)( const opencascade::handle<TObj_Object> & ) >(&TObj_Model::SetNewName),
R"#(Sets new unique name for the object)#" , py::arg("theObject")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_Model::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_Model::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_Model::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_Model::*)() const>(&TObj_Model::DynamicType),
R"#(None)#"
)
;
// Class TObj_Object from ./opencascade/TObj_Object.hxx
klass = m.attr("TObj_Object");
// nested enums
py::enum_<TObj_Object::TypeFlags>(klass, "TypeFlags_e", R"#(None)#")
.value("Visible", TObj_Object::TypeFlags::Visible).export_values();
py::enum_<TObj_Object::ObjectState>(klass, "ObjectState_e", R"#(enumeration describing various object state bit flags (see Set/GetFlags()))#")
.value("ObjectState_Hidden", TObj_Object::ObjectState::ObjectState_Hidden)
.value("ObjectState_Saved", TObj_Object::ObjectState::ObjectState_Saved)
.value("ObjectState_Imported", TObj_Object::ObjectState::ObjectState_Imported)
.value("ObjectState_ImportedByFile", TObj_Object::ObjectState::ObjectState_ImportedByFile)
.value("ObjectState_Ordered", TObj_Object::ObjectState::ObjectState_Ordered).export_values();
static_cast<py::class_<TObj_Object ,opencascade::handle<TObj_Object> , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("GetModel",
(opencascade::handle<TObj_Model> (TObj_Object::*)() const) static_cast<opencascade::handle<TObj_Model> (TObj_Object::*)() const>(&TObj_Object::GetModel),
R"#(Returns the model to which the object belongs)#"
)
.def("GetChildren",
(opencascade::handle<TObj_ObjectIterator> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const) static_cast<opencascade::handle<TObj_ObjectIterator> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const>(&TObj_Object::GetChildren),
R"#(Returns iterator for the child objects. This method provides tree-like view of the objects hierarchy. The references to other objects are not considered as children. theType narrows a variety of iterated objects The default implementation search for children on 1 sublavel of the children sub label)#" , py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL)
)
.def("GetChildLabel",
(TDF_Label (TObj_Object::*)() const) static_cast<TDF_Label (TObj_Object::*)() const>(&TObj_Object::GetChildLabel),
R"#(Returns the label under which children are stored)#"
)
.def("getChildLabel",
(TDF_Label (TObj_Object::*)( const Standard_Integer ) const) static_cast<TDF_Label (TObj_Object::*)( const Standard_Integer ) const>(&TObj_Object::getChildLabel),
R"#(Returns the label for child with rank)#" , py::arg("theRank")
)
.def("GetLabel",
(TDF_Label (TObj_Object::*)() const) static_cast<TDF_Label (TObj_Object::*)() const>(&TObj_Object::GetLabel),
R"#(Returns the OCAF label on which object`s data are stored)#"
)
.def("GetDataLabel",
(TDF_Label (TObj_Object::*)() const) static_cast<TDF_Label (TObj_Object::*)() const>(&TObj_Object::GetDataLabel),
R"#(Returns the label which is the root for data OCAF sub-tree)#"
)
.def("GetReferenceLabel",
(TDF_Label (TObj_Object::*)() const) static_cast<TDF_Label (TObj_Object::*)() const>(&TObj_Object::GetReferenceLabel),
R"#(Returns the label which is the root for reference OCAF sub-tree)#"
)
.def("GetDictionary",
(opencascade::handle<TObj_TNameContainer> (TObj_Object::*)() const) static_cast<opencascade::handle<TObj_TNameContainer> (TObj_Object::*)() const>(&TObj_Object::GetDictionary),
R"#(Returns the map of names of the objects Default implementation returns global Dictionary of the model)#"
)
.def("GetName",
(opencascade::handle<TCollection_HExtendedString> (TObj_Object::*)() const) static_cast<opencascade::handle<TCollection_HExtendedString> (TObj_Object::*)() const>(&TObj_Object::GetName),
R"#(Returns the name of the object (empty string if object has no name))#"
)
.def("GetName",
(Standard_Boolean (TObj_Object::*)( TCollection_ExtendedString & ) const) static_cast<Standard_Boolean (TObj_Object::*)( TCollection_ExtendedString & ) const>(&TObj_Object::GetName),
R"#(Returns the Standard_True is object has name and returns name to theName)#" , py::arg("theName")
)
.def("GetName",
(Standard_Boolean (TObj_Object::*)( TCollection_AsciiString & ) const) static_cast<Standard_Boolean (TObj_Object::*)( TCollection_AsciiString & ) const>(&TObj_Object::GetName),
R"#(Returns the Standard_True is object has name and returns name to theName)#" , py::arg("theName")
)
.def("SetName",
(Standard_Boolean (TObj_Object::*)( const opencascade::handle<TCollection_HExtendedString> & ) const) static_cast<Standard_Boolean (TObj_Object::*)( const opencascade::handle<TCollection_HExtendedString> & ) const>(&TObj_Object::SetName),
R"#(Sets name of the object. Returns False if theName is not unique.)#" , py::arg("theName")
)
.def("SetName",
(Standard_Boolean (TObj_Object::*)( const opencascade::handle<TCollection_HAsciiString> & ) const) static_cast<Standard_Boolean (TObj_Object::*)( const opencascade::handle<TCollection_HAsciiString> & ) const>(&TObj_Object::SetName),
R"#(Sets name of the object. Returns False if theName is not unique.)#" , py::arg("theName")
)
.def("SetName",
(Standard_Boolean (TObj_Object::*)( const Standard_CString ) const) static_cast<Standard_Boolean (TObj_Object::*)( const Standard_CString ) const>(&TObj_Object::SetName),
R"#(Sets name of the object. Returns False if theName is not unique.)#" , py::arg("name")
)
.def("GetNameForClone",
(opencascade::handle<TCollection_HExtendedString> (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) const) static_cast<opencascade::handle<TCollection_HExtendedString> (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) const>(&TObj_Object::GetNameForClone),
R"#(Returns name for copy default implementation returns the same name)#" , py::arg("arg")
)
.def("HasReference",
(Standard_Boolean (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) const) static_cast<Standard_Boolean (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) const>(&TObj_Object::HasReference),
R"#(Returns True if object has reference to indicated object)#" , py::arg("theObject")
)
.def("GetReferences",
(opencascade::handle<TObj_ObjectIterator> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const) static_cast<opencascade::handle<TObj_ObjectIterator> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const>(&TObj_Object::GetReferences),
R"#(Returns an Iterator containing objects that compose the this one theType narrows a variety of iterated objects)#" , py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL)
)
.def("RemoveAllReferences",
(void (TObj_Object::*)() ) static_cast<void (TObj_Object::*)() >(&TObj_Object::RemoveAllReferences),
R"#(Remove all references to other objects, by removing all reference attributes)#"
)
.def("GetBackReferences",
(opencascade::handle<TObj_ObjectIterator> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const) static_cast<opencascade::handle<TObj_ObjectIterator> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const>(&TObj_Object::GetBackReferences),
R"#(Returns iterator for the objects which depend on this one. These referring objects may belong to other models. theType narrows a variety of iterated objects)#" , py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL)
)
.def("AddBackReference",
(void (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) ) static_cast<void (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) >(&TObj_Object::AddBackReference),
R"#(Registers another object as being dependent on this one. Stores back references under sublabel 2 (purely transient data, not subject to persistency).)#" , py::arg("theObject")
)
.def("RemoveBackReference",
(void (TObj_Object::*)( const opencascade::handle<TObj_Object> & , const Standard_Boolean ) ) static_cast<void (TObj_Object::*)( const opencascade::handle<TObj_Object> & , const Standard_Boolean ) >(&TObj_Object::RemoveBackReference),
R"#(Removes information on dependent object (back reference). If theSingleOnly is true only the first back reference is removed in the case of duplicate items.)#" , py::arg("theObject"), py::arg("theSingleOnly")=static_cast<const Standard_Boolean>(Standard_True)
)
.def("RemoveBackReferences",
(Standard_Boolean (TObj_Object::*)( const TObj_DeletingMode ) ) static_cast<Standard_Boolean (TObj_Object::*)( const TObj_DeletingMode ) >(&TObj_Object::RemoveBackReferences),
R"#(Removes all back reference by removing references from other to me.)#" , py::arg("theMode")=static_cast<const TObj_DeletingMode>(TObj_FreeOnly)
)
.def("ClearBackReferences",
(void (TObj_Object::*)() ) static_cast<void (TObj_Object::*)() >(&TObj_Object::ClearBackReferences),
R"#(The default implementation just clear the back references container)#"
)
.def("HasBackReferences",
(Standard_Boolean (TObj_Object::*)() const) static_cast<Standard_Boolean (TObj_Object::*)() const>(&TObj_Object::HasBackReferences),
R"#(Returns TRUE if object has 1 or more back references)#"
)
.def("ReplaceReference",
(void (TObj_Object::*)( const opencascade::handle<TObj_Object> & , const opencascade::handle<TObj_Object> & ) ) static_cast<void (TObj_Object::*)( const opencascade::handle<TObj_Object> & , const opencascade::handle<TObj_Object> & ) >(&TObj_Object::ReplaceReference),
R"#(Replace reference from old object to new object. If it is not possible, may raise exception. If new object is null then simple remove reference to old object.)#" , py::arg("theOldObject"), py::arg("theNewObject")
)
.def("GetBadReference",
(Standard_Boolean (TObj_Object::*)( const TDF_Label & , TDF_Label & ) const) static_cast<Standard_Boolean (TObj_Object::*)( const TDF_Label & , TDF_Label & ) const>(&TObj_Object::GetBadReference),
R"#(Return True if this refers to the model theRoot belongs to and a referred label is not a descendant of theRoot. In this case theBadReference returns the currently referred label.)#" , py::arg("theRoot"), py::arg("theBadReference")
)
.def("RelocateReferences",
(Standard_Boolean (TObj_Object::*)( const TDF_Label & , const TDF_Label & , const Standard_Boolean ) ) static_cast<Standard_Boolean (TObj_Object::*)( const TDF_Label & , const TDF_Label & , const Standard_Boolean ) >(&TObj_Object::RelocateReferences),
R"#(Make that each reference pointing to a descendant label of theFromRoot to point to an equivalent label under theToRoot. Return False if a resulting reference does not point to an TObj_Object Example: a referred object label = 0:3:24:7:2:7 theFromRoot = 0:3:24 theToRoot = 0:2 a new referred label = 0:2:7:2:7)#" , py::arg("theFromRoot"), py::arg("theToRoot"), py::arg("theUpdateBackRefs")=static_cast<const Standard_Boolean>(Standard_True)
)
.def("CanRemoveReference",
(Standard_Boolean (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) const) static_cast<Standard_Boolean (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) const>(&TObj_Object::CanRemoveReference),
R"#(Returns True if the referred object theObject can be deleted without deletion of this object. Default implementation does nothing and returns False.)#" , py::arg("theObject")
)
.def("RemoveReference",
(void (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) ) static_cast<void (TObj_Object::*)( const opencascade::handle<TObj_Object> & ) >(&TObj_Object::RemoveReference),
R"#(Removes reference to the object by replace reference to NULL object)#" , py::arg("theObject")
)
.def("BeforeForgetReference",
(void (TObj_Object::*)( const TDF_Label & ) ) static_cast<void (TObj_Object::*)( const TDF_Label & ) >(&TObj_Object::BeforeForgetReference),
R"#(Invokes from TObj_TReference::BeforeForget(). theLabel - label on that reference become removed Default implementation is empty)#" , py::arg("arg")
)
.def("CanDetach",
(Standard_Boolean (TObj_Object::*)( const TObj_DeletingMode ) ) static_cast<Standard_Boolean (TObj_Object::*)( const TObj_DeletingMode ) >(&TObj_Object::CanDetach),
R"#(Checks if object can be detached with specified mode)#" , py::arg("theMode")=static_cast<const TObj_DeletingMode>(TObj_FreeOnly)
)
.def("Detach",
(Standard_Boolean (TObj_Object::*)( const TObj_DeletingMode ) ) static_cast<Standard_Boolean (TObj_Object::*)( const TObj_DeletingMode ) >(&TObj_Object::Detach),
R"#(Deletes the object from the model. The dependent objects are either deleted or modified when possible (see description of TObj_DeletingMode enumeration for more details) Returns True if deletion was successful. Checks if object can be deleted. Should be redefined for each specific kind of object)#" , py::arg("theMode")=static_cast<const TObj_DeletingMode>(TObj_FreeOnly)
)
.def("GetFatherObject",
(opencascade::handle<TObj_Object> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const) static_cast<opencascade::handle<TObj_Object> (TObj_Object::*)( const opencascade::handle<Standard_Type> & ) const>(&TObj_Object::GetFatherObject),
R"#(Returns the father object, which may be NULL theType gives type of father object to search)#" , py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL)
)
.def("IsAlive",
(Standard_Boolean (TObj_Object::*)() const) static_cast<Standard_Boolean (TObj_Object::*)() const>(&TObj_Object::IsAlive),
R"#(Checks that object alive in model Default implementation checks that object has TObject attribute at own label.)#"
)
.def("Clone",
(opencascade::handle<TObj_Object> (TObj_Object::*)( const TDF_Label & , opencascade::handle<TDF_RelocationTable> ) ) static_cast<opencascade::handle<TObj_Object> (TObj_Object::*)( const TDF_Label & , opencascade::handle<TDF_RelocationTable> ) >(&TObj_Object::Clone),
R"#(Copy me to other label theTargetLabel New object will not have all the reference that has me. Coping object with data and childs, but change name by adding string "_copy" As result return handle of new object (null handle is something wrong) NOTE: BackReferences not coping. After cloning all objects it is necessary to call copy references with the same relocation table)#" , py::arg("theTargetLabel"), py::arg("theRelocTable")
)
.def("CopyReferences",
(void (TObj_Object::*)( const opencascade::handle<TObj_Object> & , const opencascade::handle<TDF_RelocationTable> & ) ) static_cast<void (TObj_Object::*)( const opencascade::handle<TObj_Object> & , const opencascade::handle<TDF_RelocationTable> & ) >(&TObj_Object::CopyReferences),
R"#(Coping the references. return Standard_False is Target object is different type)#" , py::arg("theTargetObject"), py::arg("theRelocTable")
)
.def("CopyChildren",
(void (TObj_Object::*)( TDF_Label & , const opencascade::handle<TDF_RelocationTable> & ) ) static_cast<void (TObj_Object::*)( TDF_Label & , const opencascade::handle<TDF_RelocationTable> & ) >(&TObj_Object::CopyChildren),
R"#(Coping the children from source label to the target.)#" , py::arg("theTargetLabel"), py::arg("theRelocTable")
)
.def("GetOrder",
(Standard_Integer (TObj_Object::*)() const) static_cast<Standard_Integer (TObj_Object::*)() const>(&TObj_Object::GetOrder),
R"#(returns order of object (or tag of their label if order is not initialised))#"
)
.def("SetOrder",
(Standard_Boolean (TObj_Object::*)( const Standard_Integer & ) ) static_cast<Standard_Boolean (TObj_Object::*)( const Standard_Integer & ) >(&TObj_Object::SetOrder),
R"#(sets order of object)#" , py::arg("theIndx")
)
.def("HasModifications",
(Standard_Boolean (TObj_Object::*)() const) static_cast<Standard_Boolean (TObj_Object::*)() const>(&TObj_Object::HasModifications),
R"#(Public methods to check modifications of the object since last commit)#"
)
.def("GetTypeFlags",
(Standard_Integer (TObj_Object::*)() const) static_cast<Standard_Integer (TObj_Object::*)() const>(&TObj_Object::GetTypeFlags),
R"#(Returns flags (bitmask) that define properties of objects of that type By default returns flag Visible)#"
)
.def("GetFlags",
(Standard_Integer (TObj_Object::*)() const) static_cast<Standard_Integer (TObj_Object::*)() const>(&TObj_Object::GetFlags),
R"#(Returns mask of seted flags)#"
)
.def("SetFlags",
(void (TObj_Object::*)( const Standard_Integer ) ) static_cast<void (TObj_Object::*)( const Standard_Integer ) >(&TObj_Object::SetFlags),
R"#(Sets flags with defined mask.)#" , py::arg("theMask")
)
.def("TestFlags",
(Standard_Boolean (TObj_Object::*)( const Standard_Integer ) const) static_cast<Standard_Boolean (TObj_Object::*)( const Standard_Integer ) const>(&TObj_Object::TestFlags),
R"#(tests flags by the mask.)#" , py::arg("theMask")
)
.def("ClearFlags",
(void (TObj_Object::*)( const Standard_Integer ) ) static_cast<void (TObj_Object::*)( const Standard_Integer ) >(&TObj_Object::ClearFlags),
R"#(clears flags by the mask.)#" , py::arg("theMask")=static_cast<const Standard_Integer>(~ 0)
)
.def("AfterRetrieval",
(void (TObj_Object::*)() ) static_cast<void (TObj_Object::*)() >(&TObj_Object::AfterRetrieval),
R"#(Performs updating the links and dependances of the object which are not stored in persistence. Should be redefined if necessary.)#"
)
.def("BeforeStoring",
(void (TObj_Object::*)() ) static_cast<void (TObj_Object::*)() >(&TObj_Object::BeforeStoring),
R"#(Performs storing the objects transient fields in OCAF document which were outside transaction mechanism. Default implementation does nothing)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("Detach_s",
(Standard_Boolean (*)( const TDF_Label & , const TObj_DeletingMode ) ) static_cast<Standard_Boolean (*)( const TDF_Label & , const TObj_DeletingMode ) >(&TObj_Object::Detach),
R"#(Deletes the object from the label. Checks if object can be deleted. Finds object on the label and detaches it by calling previous method. Returns true if there is no object on the label after detaching)#" , py::arg("theLabel"), py::arg("theMode")=static_cast<const TObj_DeletingMode>(TObj_FreeOnly)
)
.def_static("GetObj_s",
(Standard_Boolean (*)( const TDF_Label & , opencascade::handle<TObj_Object> & , const Standard_Boolean ) ) static_cast<Standard_Boolean (*)( const TDF_Label & , opencascade::handle<TObj_Object> & , const Standard_Boolean ) >(&TObj_Object::GetObj),
R"#(Returns the Object attached to a given label. Returns False if no object of type TObj_Object is stored on the specified label. If isSuper is true tries to find on the super labels.)#" , py::arg("theLabel"), py::arg("theResult"), py::arg("isSuper")=static_cast<const Standard_Boolean>(Standard_False)
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_Object::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_Object::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_Object::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_Object::*)() const>(&TObj_Object::DynamicType),
R"#(None)#"
)
;
// Class TObj_ObjectIterator from ./opencascade/TObj_ObjectIterator.hxx
klass = m.attr("TObj_ObjectIterator");
// default constructor
register_default_constructor<TObj_ObjectIterator ,opencascade::handle<TObj_ObjectIterator>>(m,"TObj_ObjectIterator");
// nested enums
static_cast<py::class_<TObj_ObjectIterator ,opencascade::handle<TObj_ObjectIterator> , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("More",
(Standard_Boolean (TObj_ObjectIterator::*)() const) static_cast<Standard_Boolean (TObj_ObjectIterator::*)() const>(&TObj_ObjectIterator::More),
R"#(Returns True if iteration is not finished and method Current() will give the object. Default implementation returns False)#"
)
.def("Next",
(void (TObj_ObjectIterator::*)() ) static_cast<void (TObj_ObjectIterator::*)() >(&TObj_ObjectIterator::Next),
R"#(Iterates to the next object Default implementation does nothing)#"
)
.def("Value",
(opencascade::handle<TObj_Object> (TObj_ObjectIterator::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_ObjectIterator::*)() const>(&TObj_ObjectIterator::Value),
R"#(Returns current object (or null if iteration has finished) Default implementation returns null handle)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_ObjectIterator::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_ObjectIterator::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_ObjectIterator::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_ObjectIterator::*)() const>(&TObj_ObjectIterator::DynamicType),
R"#(None)#"
)
;
// Class TObj_Persistence from ./opencascade/TObj_Persistence.hxx
klass = m.attr("TObj_Persistence");
// nested enums
static_cast<py::class_<TObj_Persistence , shared_ptr_nodelete<TObj_Persistence> ,Py_TObj_Persistence >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("CreateNewObject_s",
(opencascade::handle<TObj_Object> (*)( const Standard_CString , const TDF_Label & ) ) static_cast<opencascade::handle<TObj_Object> (*)( const Standard_CString , const TDF_Label & ) >(&TObj_Persistence::CreateNewObject),
R"#(Creates and returns a new object of the registered type If the type is not registered, returns Null handle)#" , py::arg("theType"), py::arg("theLabel")
)
.def_static("DumpTypes_s",
(void (*)( std::ostream & ) ) static_cast<void (*)( std::ostream & ) >(&TObj_Persistence::DumpTypes),
R"#(Dumps names of all the types registered for persistence to the specified stream)#" , py::arg("theOs")
)
// 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 TObj_TIntSparseArray from ./opencascade/TObj_TIntSparseArray.hxx
klass = m.attr("TObj_TIntSparseArray");
// nested enums
static_cast<py::class_<TObj_TIntSparseArray ,opencascade::handle<TObj_TIntSparseArray> , TDF_Attribute >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Size",
(Standard_Size (TObj_TIntSparseArray::*)() const) static_cast<Standard_Size (TObj_TIntSparseArray::*)() const>(&TObj_TIntSparseArray::Size),
R"#(Returns the number of stored values in the set)#"
)
.def("GetIterator",
(TObj_TIntSparseArray::Iterator (TObj_TIntSparseArray::*)() const) static_cast<TObj_TIntSparseArray::Iterator (TObj_TIntSparseArray::*)() const>(&TObj_TIntSparseArray::GetIterator),
R"#(Returns iterator on objects contained in the set)#"
)
.def("HasValue",
(Standard_Boolean (TObj_TIntSparseArray::*)( const Standard_Size ) const) static_cast<Standard_Boolean (TObj_TIntSparseArray::*)( const Standard_Size ) const>(&TObj_TIntSparseArray::HasValue),
R"#(Returns true if the value with the given ID is present.)#" , py::arg("theId")
)
.def("Value",
(Standard_Integer (TObj_TIntSparseArray::*)( const Standard_Size ) const) static_cast<Standard_Integer (TObj_TIntSparseArray::*)( const Standard_Size ) const>(&TObj_TIntSparseArray::Value),
R"#(Returns the value by its ID. Raises an exception if no value is stored with this ID)#" , py::arg("theId")
)
.def("SetValue",
(void (TObj_TIntSparseArray::*)( const Standard_Size , const Standard_Integer ) ) static_cast<void (TObj_TIntSparseArray::*)( const Standard_Size , const Standard_Integer ) >(&TObj_TIntSparseArray::SetValue),
R"#(Sets the value with the given ID. Raises an exception if theId is not positive)#" , py::arg("theId"), py::arg("theValue")
)
.def("UnsetValue",
(void (TObj_TIntSparseArray::*)( const Standard_Size ) ) static_cast<void (TObj_TIntSparseArray::*)( const Standard_Size ) >(&TObj_TIntSparseArray::UnsetValue),
R"#(Unsets the value with the given ID. Raises an exception if theId is not positive)#" , py::arg("theId")
)
.def("Clear",
(void (TObj_TIntSparseArray::*)() ) static_cast<void (TObj_TIntSparseArray::*)() >(&TObj_TIntSparseArray::Clear),
R"#(Clears the set)#"
)
.def("NewEmpty",
(opencascade::handle<TDF_Attribute> (TObj_TIntSparseArray::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TIntSparseArray::*)() const>(&TObj_TIntSparseArray::NewEmpty),
R"#(Returns an new empty TObj_TIntSparseArray attribute. It is used by the copy algorithm.)#"
)
.def("BackupCopy",
(opencascade::handle<TDF_Attribute> (TObj_TIntSparseArray::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TIntSparseArray::*)() const>(&TObj_TIntSparseArray::BackupCopy),
R"#(Moves this delta into a new other attribute.)#"
)
.def("Restore",
(void (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_Attribute> & ) ) static_cast<void (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_Attribute> & ) >(&TObj_TIntSparseArray::Restore),
R"#(Restores the set using info saved in backup attribute theDelta.)#" , py::arg("theDelta")
)
.def("Paste",
(void (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const) static_cast<void (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const>(&TObj_TIntSparseArray::Paste),
R"#(This method is used when copying an attribute from a source structure into a target structure.)#" , py::arg("theInto"), py::arg("theRT")
)
.def("BeforeCommitTransaction",
(void (TObj_TIntSparseArray::*)() ) static_cast<void (TObj_TIntSparseArray::*)() >(&TObj_TIntSparseArray::BeforeCommitTransaction),
R"#(It is called just before Commit or Abort transaction and does Backup() to create a delta)#"
)
.def("DeltaOnModification",
(void (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_DeltaOnModification> & ) ) static_cast<void (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_DeltaOnModification> & ) >(&TObj_TIntSparseArray::DeltaOnModification),
R"#(Applies theDelta to this.)#" , py::arg("theDelta")
)
.def("AfterUndo",
(Standard_Boolean (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) ) static_cast<Standard_Boolean (TObj_TIntSparseArray::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) >(&TObj_TIntSparseArray::AfterUndo),
R"#(Clears my modification delta; called after application of theDelta)#" , py::arg("theDelta"), py::arg("toForce")
)
.def("SetDoBackup",
(void (TObj_TIntSparseArray::*)( const Standard_Boolean ) ) static_cast<void (TObj_TIntSparseArray::*)( const Standard_Boolean ) >(&TObj_TIntSparseArray::SetDoBackup),
R"#(Sets the flag pointing to the necessity to maintain a modification delta. It is called by the retrieval driver)#" , py::arg("toDo")
)
.def("ClearDelta",
(void (TObj_TIntSparseArray::*)() ) static_cast<void (TObj_TIntSparseArray::*)() >(&TObj_TIntSparseArray::ClearDelta),
R"#(None)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetID_s",
(const Standard_GUID & (*)() ) static_cast<const Standard_GUID & (*)() >(&TObj_TIntSparseArray::GetID),
R"#(This method is used in implementation of ID())#"
)
.def_static("Set_s",
(opencascade::handle<TObj_TIntSparseArray> (*)( const TDF_Label & ) ) static_cast<opencascade::handle<TObj_TIntSparseArray> (*)( const TDF_Label & ) >(&TObj_TIntSparseArray::Set),
R"#(Creates TObj_TIntSparseArray attribute on given label.)#" , py::arg("theLabel")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_TIntSparseArray::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_TIntSparseArray::get_type_descriptor),
R"#(None)#"
)
// 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("ID",
(const Standard_GUID & (TObj_TIntSparseArray::*)() const) static_cast<const Standard_GUID & (TObj_TIntSparseArray::*)() const>(&TObj_TIntSparseArray::ID),
R"#(Returns the ID of this attribute.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_TIntSparseArray::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_TIntSparseArray::*)() const>(&TObj_TIntSparseArray::DynamicType),
R"#(None)#"
)
;
// Class TObj_TModel from ./opencascade/TObj_TModel.hxx
klass = m.attr("TObj_TModel");
// nested enums
static_cast<py::class_<TObj_TModel ,opencascade::handle<TObj_TModel> , TDF_Attribute >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Set",
(void (TObj_TModel::*)( const opencascade::handle<TObj_Model> & ) ) static_cast<void (TObj_TModel::*)( const opencascade::handle<TObj_Model> & ) >(&TObj_TModel::Set),
R"#(Sets the Model object)#" , py::arg("theModel")
)
.def("Model",
(opencascade::handle<TObj_Model> (TObj_TModel::*)() const) static_cast<opencascade::handle<TObj_Model> (TObj_TModel::*)() const>(&TObj_TModel::Model),
R"#(Returns the Model object)#"
)
.def("NewEmpty",
(opencascade::handle<TDF_Attribute> (TObj_TModel::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TModel::*)() const>(&TObj_TModel::NewEmpty),
R"#(Returns an new empty TObj_TModel attribute. It is used by the copy algorithm.)#"
)
.def("Restore",
(void (TObj_TModel::*)( const opencascade::handle<TDF_Attribute> & ) ) static_cast<void (TObj_TModel::*)( const opencascade::handle<TDF_Attribute> & ) >(&TObj_TModel::Restore),
R"#(Restores the backuped contents from <theWith> into this one. It is used when aborting a transaction.)#" , py::arg("theWith")
)
.def("Paste",
(void (TObj_TModel::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const) static_cast<void (TObj_TModel::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const>(&TObj_TModel::Paste),
R"#(This method is used when copying an attribute from a source structure into a target structure.)#" , py::arg("theInto"), py::arg("theRT")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetID_s",
(const Standard_GUID & (*)() ) static_cast<const Standard_GUID & (*)() >(&TObj_TModel::GetID),
R"#(This method is used in implementation of ID())#"
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_TModel::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_TModel::get_type_descriptor),
R"#(None)#"
)
// 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("ID",
(const Standard_GUID & (TObj_TModel::*)() const) static_cast<const Standard_GUID & (TObj_TModel::*)() const>(&TObj_TModel::ID),
R"#(Returns the ID of TObj_TModel attribute.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_TModel::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_TModel::*)() const>(&TObj_TModel::DynamicType),
R"#(None)#"
)
;
// Class TObj_TNameContainer from ./opencascade/TObj_TNameContainer.hxx
klass = m.attr("TObj_TNameContainer");
// nested enums
static_cast<py::class_<TObj_TNameContainer ,opencascade::handle<TObj_TNameContainer> , TDF_Attribute >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("RecordName",
(void (TObj_TNameContainer::*)( const opencascade::handle<TCollection_HExtendedString> & , const TDF_Label & ) ) static_cast<void (TObj_TNameContainer::*)( const opencascade::handle<TCollection_HExtendedString> & , const TDF_Label & ) >(&TObj_TNameContainer::RecordName),
R"#(Records name with label attached)#" , py::arg("theName"), py::arg("theLabel")
)
.def("RemoveName",
(void (TObj_TNameContainer::*)( const opencascade::handle<TCollection_HExtendedString> & ) ) static_cast<void (TObj_TNameContainer::*)( const opencascade::handle<TCollection_HExtendedString> & ) >(&TObj_TNameContainer::RemoveName),
R"#(Remove name from the map)#" , py::arg("theName")
)
.def("IsRegistered",
(Standard_Boolean (TObj_TNameContainer::*)( const opencascade::handle<TCollection_HExtendedString> & ) const) static_cast<Standard_Boolean (TObj_TNameContainer::*)( const opencascade::handle<TCollection_HExtendedString> & ) const>(&TObj_TNameContainer::IsRegistered),
R"#(Return True is theName is registered in the Map)#" , py::arg("theName")
)
.def("Clear",
(void (TObj_TNameContainer::*)() ) static_cast<void (TObj_TNameContainer::*)() >(&TObj_TNameContainer::Clear),
R"#(Remove all names registered in container)#"
)
.def("Set",
(void (TObj_TNameContainer::*)( const NCollection_DataMap<opencascade::handle<TCollection_HExtendedString>, TDF_Label> & ) ) static_cast<void (TObj_TNameContainer::*)( const NCollection_DataMap<opencascade::handle<TCollection_HExtendedString>, TDF_Label> & ) >(&TObj_TNameContainer::Set),
R"#(Sets the TObj_DataMapOfNameLabel object)#" , py::arg("theElem")
)
.def("NewEmpty",
(opencascade::handle<TDF_Attribute> (TObj_TNameContainer::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TNameContainer::*)() const>(&TObj_TNameContainer::NewEmpty),
R"#(Returns an new empty TObj_TNameContainer attribute. It is used by the copy algorithm.)#"
)
.def("Restore",
(void (TObj_TNameContainer::*)( const opencascade::handle<TDF_Attribute> & ) ) static_cast<void (TObj_TNameContainer::*)( const opencascade::handle<TDF_Attribute> & ) >(&TObj_TNameContainer::Restore),
R"#(Restores the backuped contents from <theWith> into this one. It is used when aborting a transaction.)#" , py::arg("theWith")
)
.def("Paste",
(void (TObj_TNameContainer::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const) static_cast<void (TObj_TNameContainer::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const>(&TObj_TNameContainer::Paste),
R"#(This method is used when copying an attribute from a source structure into a target structure.)#" , py::arg("theInto"), py::arg("theRT")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetID_s",
(const Standard_GUID & (*)() ) static_cast<const Standard_GUID & (*)() >(&TObj_TNameContainer::GetID),
R"#(This method is used in implementation of ID())#"
)
.def_static("Set_s",
(opencascade::handle<TObj_TNameContainer> (*)( const TDF_Label & ) ) static_cast<opencascade::handle<TObj_TNameContainer> (*)( const TDF_Label & ) >(&TObj_TNameContainer::Set),
R"#(Creates TObj_DataMapOfNameLabel attribute on given label if not exist)#" , py::arg("theLabel")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_TNameContainer::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_TNameContainer::get_type_descriptor),
R"#(None)#"
)
// 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("ID",
(const Standard_GUID & (TObj_TNameContainer::*)() const) static_cast<const Standard_GUID & (TObj_TNameContainer::*)() const>(&TObj_TNameContainer::ID),
R"#(Returns the ID of TObj_TNameContainer attribute.)#"
)
.def("Get",
(const TObj_DataMapOfNameLabel & (TObj_TNameContainer::*)() const) static_cast<const TObj_DataMapOfNameLabel & (TObj_TNameContainer::*)() const>(&TObj_TNameContainer::Get),
R"#(Returns the TObj_DataMapOfNameLabel object)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_TNameContainer::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_TNameContainer::*)() const>(&TObj_TNameContainer::DynamicType),
R"#(None)#"
)
;
// Class TObj_TObject from ./opencascade/TObj_TObject.hxx
klass = m.attr("TObj_TObject");
// nested enums
static_cast<py::class_<TObj_TObject ,opencascade::handle<TObj_TObject> , TDF_Attribute >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Set",
(void (TObj_TObject::*)( const opencascade::handle<TObj_Object> & ) ) static_cast<void (TObj_TObject::*)( const opencascade::handle<TObj_Object> & ) >(&TObj_TObject::Set),
R"#(Sets the TObj_Object object)#" , py::arg("theElem")
)
.def("Get",
(opencascade::handle<TObj_Object> (TObj_TObject::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_TObject::*)() const>(&TObj_TObject::Get),
R"#(Returns the TObj_Object object)#"
)
.def("NewEmpty",
(opencascade::handle<TDF_Attribute> (TObj_TObject::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TObject::*)() const>(&TObj_TObject::NewEmpty),
R"#(Returns an new empty TObj_TObject attribute. It is used by the copy algorithm.)#"
)
.def("Restore",
(void (TObj_TObject::*)( const opencascade::handle<TDF_Attribute> & ) ) static_cast<void (TObj_TObject::*)( const opencascade::handle<TDF_Attribute> & ) >(&TObj_TObject::Restore),
R"#(Restores the backuped contents from <theWith> into this one. It is used when aborting a transaction.)#" , py::arg("theWith")
)
.def("Paste",
(void (TObj_TObject::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const) static_cast<void (TObj_TObject::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const>(&TObj_TObject::Paste),
R"#(This method is used when copying an attribute from a source structure into a target structure.)#" , py::arg("theInto"), py::arg("theRT")
)
.def("BeforeForget",
(void (TObj_TObject::*)() ) static_cast<void (TObj_TObject::*)() >(&TObj_TObject::BeforeForget),
R"#(Tell TObj_Object to die, i.e. (myElem->IsAlive() == false) after that)#"
)
.def("AfterUndo",
(Standard_Boolean (TObj_TObject::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) ) static_cast<Standard_Boolean (TObj_TObject::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) >(&TObj_TObject::AfterUndo),
R"#(Tell TObj_Object to rise from the dead, i.e. (myElem->IsAlive() == true) after that)#" , py::arg("anAttDelta"), py::arg("forceIt")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetID_s",
(const Standard_GUID & (*)() ) static_cast<const Standard_GUID & (*)() >(&TObj_TObject::GetID),
R"#(This method is used in implementation of ID())#"
)
.def_static("Set_s",
(opencascade::handle<TObj_TObject> (*)( const TDF_Label & , const opencascade::handle<TObj_Object> & ) ) static_cast<opencascade::handle<TObj_TObject> (*)( const TDF_Label & , const opencascade::handle<TObj_Object> & ) >(&TObj_TObject::Set),
R"#(Creates TObj_TObject attribute on given label)#" , py::arg("theLabel"), py::arg("theElem")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_TObject::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_TObject::get_type_descriptor),
R"#(None)#"
)
// 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("ID",
(const Standard_GUID & (TObj_TObject::*)() const) static_cast<const Standard_GUID & (TObj_TObject::*)() const>(&TObj_TObject::ID),
R"#(Returns the ID of TObj_TObject attribute.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_TObject::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_TObject::*)() const>(&TObj_TObject::DynamicType),
R"#(None)#"
)
;
// Class TObj_TReference from ./opencascade/TObj_TReference.hxx
klass = m.attr("TObj_TReference");
// nested enums
static_cast<py::class_<TObj_TReference ,opencascade::handle<TObj_TReference> , TDF_Attribute >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Set",
(void (TObj_TReference::*)( const opencascade::handle<TObj_Object> & , const TDF_Label & ) ) static_cast<void (TObj_TReference::*)( const opencascade::handle<TObj_Object> & , const TDF_Label & ) >(&TObj_TReference::Set),
R"#(Sets the reference to the theObject)#" , py::arg("theObject"), py::arg("theMasterLabel")
)
.def("Set",
(void (TObj_TReference::*)( const TDF_Label & , const TDF_Label & ) ) static_cast<void (TObj_TReference::*)( const TDF_Label & , const TDF_Label & ) >(&TObj_TReference::Set),
R"#(Sets the reference to the theObject at indicated Label. It is method for persistent only. Don`t use anywhere else.)#" , py::arg("theLabel"), py::arg("theMasterLabel")
)
.def("Get",
(opencascade::handle<TObj_Object> (TObj_TReference::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_TReference::*)() const>(&TObj_TReference::Get),
R"#(Returns the referenced theObject)#"
)
.def("GetMasterLabel",
(TDF_Label (TObj_TReference::*)() const) static_cast<TDF_Label (TObj_TReference::*)() const>(&TObj_TReference::GetMasterLabel),
R"#(Returns the Label of master object.)#"
)
.def("GetLabel",
(TDF_Label (TObj_TReference::*)() const) static_cast<TDF_Label (TObj_TReference::*)() const>(&TObj_TReference::GetLabel),
R"#(Returns the referred label.)#"
)
.def("NewEmpty",
(opencascade::handle<TDF_Attribute> (TObj_TReference::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TReference::*)() const>(&TObj_TReference::NewEmpty),
R"#(Returns an new empty TObj_TReference attribute. It is used by the copy algorithm.)#"
)
.def("Restore",
(void (TObj_TReference::*)( const opencascade::handle<TDF_Attribute> & ) ) static_cast<void (TObj_TReference::*)( const opencascade::handle<TDF_Attribute> & ) >(&TObj_TReference::Restore),
R"#(Restores the backuped contents from <theWith> into this one. It is used when aborting a transaction.)#" , py::arg("theWith")
)
.def("Paste",
(void (TObj_TReference::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const) static_cast<void (TObj_TReference::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const>(&TObj_TReference::Paste),
R"#(This method is used when copying an attribute from a source structure into a target structure.)#" , py::arg("theInto"), py::arg("theRT")
)
.def("BeforeForget",
(void (TObj_TReference::*)() ) static_cast<void (TObj_TReference::*)() >(&TObj_TReference::BeforeForget),
R"#(Remove back references of it reference if it is in other document.)#"
)
.def("BeforeUndo",
(Standard_Boolean (TObj_TReference::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) ) static_cast<Standard_Boolean (TObj_TReference::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) >(&TObj_TReference::BeforeUndo),
R"#(It is necessary for tranzaction mechanism (Undo/Redo).)#" , py::arg("theDelta"), py::arg("isForced")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("AfterUndo",
(Standard_Boolean (TObj_TReference::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) ) static_cast<Standard_Boolean (TObj_TReference::*)( const opencascade::handle<TDF_AttributeDelta> & , const Standard_Boolean ) >(&TObj_TReference::AfterUndo),
R"#(It is necessary for tranzaction mechanism (Undo/Redo).)#" , py::arg("theDelta"), py::arg("isForced")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("AfterResume",
(void (TObj_TReference::*)() ) static_cast<void (TObj_TReference::*)() >(&TObj_TReference::AfterResume),
R"#(Check if back reference exists for reference.)#"
)
.def("AfterRetrieval",
(Standard_Boolean (TObj_TReference::*)( const Standard_Boolean ) ) static_cast<Standard_Boolean (TObj_TReference::*)( const Standard_Boolean ) >(&TObj_TReference::AfterRetrieval),
R"#(Called after retrieval reference from file.)#" , py::arg("forceIt")=static_cast<const Standard_Boolean>(Standard_False)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetID_s",
(const Standard_GUID & (*)() ) static_cast<const Standard_GUID & (*)() >(&TObj_TReference::GetID),
R"#(This method is used in implementation of ID())#"
)
.def_static("Set_s",
(opencascade::handle<TObj_TReference> (*)( const TDF_Label & , const opencascade::handle<TObj_Object> & , const opencascade::handle<TObj_Object> & ) ) static_cast<opencascade::handle<TObj_TReference> (*)( const TDF_Label & , const opencascade::handle<TObj_Object> & , const opencascade::handle<TObj_Object> & ) >(&TObj_TReference::Set),
R"#(Creates reference on TDF_Label <theLabel> to the object <theObject> and creates backreference from the object <theObject> to <theMaster> one.)#" , py::arg("theLabel"), py::arg("theObject"), py::arg("theMaster")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_TReference::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_TReference::get_type_descriptor),
R"#(None)#"
)
// 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("ID",
(const Standard_GUID & (TObj_TReference::*)() const) static_cast<const Standard_GUID & (TObj_TReference::*)() const>(&TObj_TReference::ID),
R"#(Returns the ID of TObj_TReference attribute.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_TReference::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_TReference::*)() const>(&TObj_TReference::DynamicType),
R"#(None)#"
)
;
// Class TObj_TXYZ from ./opencascade/TObj_TXYZ.hxx
klass = m.attr("TObj_TXYZ");
// nested enums
static_cast<py::class_<TObj_TXYZ ,opencascade::handle<TObj_TXYZ> , TDF_Attribute >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Set",
(void (TObj_TXYZ::*)( const gp_XYZ & ) ) static_cast<void (TObj_TXYZ::*)( const gp_XYZ & ) >(&TObj_TXYZ::Set),
R"#(Sets the XYZ)#" , py::arg("theXYZ")
)
.def("Get",
(gp_XYZ (TObj_TXYZ::*)() const) static_cast<gp_XYZ (TObj_TXYZ::*)() const>(&TObj_TXYZ::Get),
R"#(Returns the XYZ)#"
)
.def("NewEmpty",
(opencascade::handle<TDF_Attribute> (TObj_TXYZ::*)() const) static_cast<opencascade::handle<TDF_Attribute> (TObj_TXYZ::*)() const>(&TObj_TXYZ::NewEmpty),
R"#(Returns an new empty TObj_TXYZ attribute. It is used by the copy algorithm.)#"
)
.def("Restore",
(void (TObj_TXYZ::*)( const opencascade::handle<TDF_Attribute> & ) ) static_cast<void (TObj_TXYZ::*)( const opencascade::handle<TDF_Attribute> & ) >(&TObj_TXYZ::Restore),
R"#(Restores the backuped contents from <theWith> into this one. It is used when aborting a transaction.)#" , py::arg("theWith")
)
.def("Paste",
(void (TObj_TXYZ::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const) static_cast<void (TObj_TXYZ::*)( const opencascade::handle<TDF_Attribute> & , const opencascade::handle<TDF_RelocationTable> & ) const>(&TObj_TXYZ::Paste),
R"#(This method is used when copying an attribute from a source structure into a target structure.)#" , py::arg("theInto"), py::arg("theRT")
)
.def("Dump",
(Standard_OStream & (TObj_TXYZ::*)( std::ostream & ) const) static_cast<Standard_OStream & (TObj_TXYZ::*)( std::ostream & ) const>(&TObj_TXYZ::Dump),
R"#(This method dumps the attribute value into the stream)#" , py::arg("theOS")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("GetID_s",
(const Standard_GUID & (*)() ) static_cast<const Standard_GUID & (*)() >(&TObj_TXYZ::GetID),
R"#(This method is used in implementation of ID())#"
)
.def_static("Set_s",
(opencascade::handle<TObj_TXYZ> (*)( const TDF_Label & , const gp_XYZ & ) ) static_cast<opencascade::handle<TObj_TXYZ> (*)( const TDF_Label & , const gp_XYZ & ) >(&TObj_TXYZ::Set),
R"#(Creates attribute and sets the XYZ)#" , py::arg("theLabel"), py::arg("theXYZ")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_TXYZ::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_TXYZ::get_type_descriptor),
R"#(None)#"
)
// 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("ID",
(const Standard_GUID & (TObj_TXYZ::*)() const) static_cast<const Standard_GUID & (TObj_TXYZ::*)() const>(&TObj_TXYZ::ID),
R"#(Returns the ID of TObj_TXYZ attribute.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_TXYZ::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_TXYZ::*)() const>(&TObj_TXYZ::DynamicType),
R"#(None)#"
)
;
// Class TObj_LabelIterator from ./opencascade/TObj_LabelIterator.hxx
klass = m.attr("TObj_LabelIterator");
// nested enums
static_cast<py::class_<TObj_LabelIterator ,opencascade::handle<TObj_LabelIterator> ,Py_TObj_LabelIterator , TObj_ObjectIterator >>(klass)
// constructors
.def(py::init< const TDF_Label &,const Standard_Boolean >() , py::arg("theLabel"), py::arg("isRecursive")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("More",
(Standard_Boolean (TObj_LabelIterator::*)() const) static_cast<Standard_Boolean (TObj_LabelIterator::*)() const>(&TObj_LabelIterator::More),
R"#(Returns True if there is a current Item in the iteration.)#"
)
.def("Next",
(void (TObj_LabelIterator::*)() ) static_cast<void (TObj_LabelIterator::*)() >(&TObj_LabelIterator::Next),
R"#(Move to the next Item)#"
)
.def("Value",
(opencascade::handle<TObj_Object> (TObj_LabelIterator::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_LabelIterator::*)() const>(&TObj_LabelIterator::Value),
R"#(Returns the current item)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_LabelIterator::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_LabelIterator::get_type_descriptor),
R"#(None)#"
)
// 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("LabelValue",
(const TDF_Label & (TObj_LabelIterator::*)() const) static_cast<const TDF_Label & (TObj_LabelIterator::*)() const>(&TObj_LabelIterator::LabelValue),
R"#(Returns the label of the current item)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (TObj_LabelIterator::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_LabelIterator::*)() const>(&TObj_LabelIterator::DynamicType),
R"#(None)#"
)
;
// Class TObj_ModelIterator from ./opencascade/TObj_ModelIterator.hxx
klass = m.attr("TObj_ModelIterator");
// nested enums
static_cast<py::class_<TObj_ModelIterator ,opencascade::handle<TObj_ModelIterator> , TObj_ObjectIterator >>(klass)
// constructors
.def(py::init< const opencascade::handle<TObj_Model> & >() , py::arg("theModel") )
// custom constructors
// methods
.def("More",
(Standard_Boolean (TObj_ModelIterator::*)() const) static_cast<Standard_Boolean (TObj_ModelIterator::*)() const>(&TObj_ModelIterator::More),
R"#(Returns True if iteration is not finished and method Value() will give the object)#"
)
.def("Next",
(void (TObj_ModelIterator::*)() ) static_cast<void (TObj_ModelIterator::*)() >(&TObj_ModelIterator::Next),
R"#(Iterates to the next object)#"
)
.def("Value",
(opencascade::handle<TObj_Object> (TObj_ModelIterator::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_ModelIterator::*)() const>(&TObj_ModelIterator::Value),
R"#(Returns current object (or MainObj of Model if iteration has finished))#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_ModelIterator::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_ModelIterator::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_ModelIterator::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_ModelIterator::*)() const>(&TObj_ModelIterator::DynamicType),
R"#(None)#"
)
;
// Class TObj_Partition from ./opencascade/TObj_Partition.hxx
klass = m.attr("TObj_Partition");
// nested enums
static_cast<py::class_<TObj_Partition ,opencascade::handle<TObj_Partition> , TObj_Object >>(klass)
// constructors
// custom constructors
// methods
.def("SetName",
(Standard_Boolean (TObj_Partition::*)( const opencascade::handle<TCollection_HExtendedString> & ) const) static_cast<Standard_Boolean (TObj_Partition::*)( const opencascade::handle<TCollection_HExtendedString> & ) const>(&TObj_Partition::SetName),
R"#(Sets name of the object. partition does not check unique of own name)#" , py::arg("theName")
)
.def("AfterRetrieval",
(void (TObj_Partition::*)() ) static_cast<void (TObj_Partition::*)() >(&TObj_Partition::AfterRetrieval),
R"#(Performs updating the links and dependencies of the object which are not stored in persistence. Does not register the partition name)#"
)
.def("NewLabel",
(TDF_Label (TObj_Partition::*)() const) static_cast<TDF_Label (TObj_Partition::*)() const>(&TObj_Partition::NewLabel),
R"#(Creates and Returns label for new object in partition.)#"
)
.def("SetNamePrefix",
(void (TObj_Partition::*)( const opencascade::handle<TCollection_HExtendedString> & ) ) static_cast<void (TObj_Partition::*)( const opencascade::handle<TCollection_HExtendedString> & ) >(&TObj_Partition::SetNamePrefix),
R"#(Sets prefix for names of the objects in partition.)#" , py::arg("thePrefix")
)
.def("GetNamePrefix",
(opencascade::handle<TCollection_HExtendedString> (TObj_Partition::*)() const) static_cast<opencascade::handle<TCollection_HExtendedString> (TObj_Partition::*)() const>(&TObj_Partition::GetNamePrefix),
R"#(Returns prefix for names of the objects in partition.)#"
)
.def("GetNewName",
(opencascade::handle<TCollection_HExtendedString> (TObj_Partition::*)( const Standard_Boolean ) ) static_cast<opencascade::handle<TCollection_HExtendedString> (TObj_Partition::*)( const Standard_Boolean ) >(&TObj_Partition::GetNewName),
R"#(Generates and returns name for new object in partition. if theIsToChangeCount is true partition increase own counter to generate new name next time starting from new counter value)#" , py::arg("theIsToChangeCount")=static_cast<const Standard_Boolean>(Standard_True)
)
.def("GetLastIndex",
(Standard_Integer (TObj_Partition::*)() const) static_cast<Standard_Integer (TObj_Partition::*)() const>(&TObj_Partition::GetLastIndex),
R"#(Return Last index in partition (reserved);)#"
)
.def("SetLastIndex",
(void (TObj_Partition::*)( const Standard_Integer ) ) static_cast<void (TObj_Partition::*)( const Standard_Integer ) >(&TObj_Partition::SetLastIndex),
R"#(Sets Last index in partition (reserved);)#" , py::arg("theIndex")
)
.def("Update",
(Standard_Boolean (TObj_Partition::*)() ) static_cast<Standard_Boolean (TObj_Partition::*)() >(&TObj_Partition::Update),
R"#(Does nothing in the partition.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("Create_s",
(opencascade::handle<TObj_Partition> (*)( const TDF_Label & , const Standard_Boolean ) ) static_cast<opencascade::handle<TObj_Partition> (*)( const TDF_Label & , const Standard_Boolean ) >(&TObj_Partition::Create),
R"#(Creates a new partition on given label.)#" , py::arg("theLabel"), py::arg("theSetName")=static_cast<const Standard_Boolean>(Standard_True)
)
.def_static("GetPartition_s",
(opencascade::handle<TObj_Partition> (*)( const opencascade::handle<TObj_Object> & ) ) static_cast<opencascade::handle<TObj_Partition> (*)( const opencascade::handle<TObj_Object> & ) >(&TObj_Partition::GetPartition),
R"#(Returns the partition in which object is stored. Null partition returned if not found)#" , py::arg("theObject")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_Partition::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_Partition::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_Partition::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_Partition::*)() const>(&TObj_Partition::DynamicType),
R"#(None)#"
)
;
// Class TObj_SequenceIterator from ./opencascade/TObj_SequenceIterator.hxx
klass = m.attr("TObj_SequenceIterator");
// nested enums
static_cast<py::class_<TObj_SequenceIterator ,opencascade::handle<TObj_SequenceIterator> , TObj_ObjectIterator >>(klass)
// constructors
.def(py::init< const opencascade::handle<TObj_HSequenceOfObject> &,const opencascade::handle<Standard_Type> & >() , py::arg("theObjects"), py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL) )
// custom constructors
// methods
.def("More",
(Standard_Boolean (TObj_SequenceIterator::*)() const) static_cast<Standard_Boolean (TObj_SequenceIterator::*)() const>(&TObj_SequenceIterator::More),
R"#(Returns True if there is a current Item in the iteration.)#"
)
.def("Next",
(void (TObj_SequenceIterator::*)() ) static_cast<void (TObj_SequenceIterator::*)() >(&TObj_SequenceIterator::Next),
R"#(Move to the next Item)#"
)
.def("Value",
(opencascade::handle<TObj_Object> (TObj_SequenceIterator::*)() const) static_cast<opencascade::handle<TObj_Object> (TObj_SequenceIterator::*)() const>(&TObj_SequenceIterator::Value),
R"#(Returns the current item)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_SequenceIterator::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_SequenceIterator::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_SequenceIterator::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_SequenceIterator::*)() const>(&TObj_SequenceIterator::DynamicType),
R"#(None)#"
)
;
// Class TObj_HiddenPartition from ./opencascade/TObj_HiddenPartition.hxx
klass = m.attr("TObj_HiddenPartition");
// nested enums
static_cast<py::class_<TObj_HiddenPartition ,opencascade::handle<TObj_HiddenPartition> , TObj_Partition >>(klass)
// constructors
.def(py::init< const TDF_Label & >() , py::arg("theLabel") )
// custom constructors
// methods
.def("GetTypeFlags",
(Standard_Integer (TObj_HiddenPartition::*)() const) static_cast<Standard_Integer (TObj_HiddenPartition::*)() const>(&TObj_HiddenPartition::GetTypeFlags),
R"#(Returns all flags of father except Visible)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&TObj_HiddenPartition::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_HiddenPartition::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_HiddenPartition::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_HiddenPartition::*)() const>(&TObj_HiddenPartition::DynamicType),
R"#(None)#"
)
;
// Class TObj_OcafObjectIterator from ./opencascade/TObj_OcafObjectIterator.hxx
klass = m.attr("TObj_OcafObjectIterator");
// nested enums
static_cast<py::class_<TObj_OcafObjectIterator ,opencascade::handle<TObj_OcafObjectIterator> , TObj_LabelIterator >>(klass)
// constructors
.def(py::init< const TDF_Label &,const opencascade::handle<Standard_Type> &,const Standard_Boolean,const Standard_Boolean >() , py::arg("theLabel"), py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL), py::arg("theRecursive")=static_cast<const Standard_Boolean>(Standard_False), py::arg("theAllSubChildren")=static_cast<const Standard_Boolean>(Standard_False) )
// 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 * (*)() >(&TObj_OcafObjectIterator::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_OcafObjectIterator::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_OcafObjectIterator::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_OcafObjectIterator::*)() const>(&TObj_OcafObjectIterator::DynamicType),
R"#(None)#"
)
;
// Class TObj_ReferenceIterator from ./opencascade/TObj_ReferenceIterator.hxx
klass = m.attr("TObj_ReferenceIterator");
// nested enums
static_cast<py::class_<TObj_ReferenceIterator ,opencascade::handle<TObj_ReferenceIterator> , TObj_LabelIterator >>(klass)
// constructors
.def(py::init< const TDF_Label &,const opencascade::handle<Standard_Type> &,const Standard_Boolean >() , py::arg("theLabel"), py::arg("theType")=static_cast<const opencascade::handle<Standard_Type> &>(NULL), py::arg("theRecursive")=static_cast<const Standard_Boolean>(Standard_True) )
// 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 * (*)() >(&TObj_ReferenceIterator::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&TObj_ReferenceIterator::get_type_descriptor),
R"#(None)#"
)
// 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 opencascade::handle<Standard_Type> & (TObj_ReferenceIterator::*)() const) static_cast<const opencascade::handle<Standard_Type> & (TObj_ReferenceIterator::*)() const>(&TObj_ReferenceIterator::DynamicType),
R"#(None)#"
)
;
// functions
// ./opencascade/TObj_Application.hxx
// ./opencascade/TObj_Assistant.hxx
// ./opencascade/TObj_CheckModel.hxx
// ./opencascade/TObj_Container.hxx
// ./opencascade/TObj_DeletingMode.hxx
// ./opencascade/TObj_HiddenPartition.hxx
// ./opencascade/TObj_LabelIterator.hxx
// ./opencascade/TObj_Model.hxx
// ./opencascade/TObj_ModelIterator.hxx
// ./opencascade/TObj_Object.hxx
// ./opencascade/TObj_ObjectIterator.hxx
// ./opencascade/TObj_OcafObjectIterator.hxx
// ./opencascade/TObj_Partition.hxx
// ./opencascade/TObj_Persistence.hxx
// ./opencascade/TObj_ReferenceIterator.hxx
// ./opencascade/TObj_SequenceIterator.hxx
// ./opencascade/TObj_SequenceOfIterator.hxx
// ./opencascade/TObj_SequenceOfObject.hxx
// ./opencascade/TObj_TIntSparseArray.hxx
// ./opencascade/TObj_TModel.hxx
// ./opencascade/TObj_TNameContainer.hxx
// ./opencascade/TObj_TObject.hxx
// ./opencascade/TObj_TReference.hxx
// ./opencascade/TObj_TXYZ.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_DataMap<opencascade::handle<TCollection_HExtendedString>, TDF_Label>(m,"TObj_DataMapOfNameLabel");
register_template_NCollection_DataMap<TCollection_AsciiString, Standard_Address>(m,"TObj_DataMapOfStringPointer");
register_template_NCollection_Sequence<opencascade::handle<TObj_ObjectIterator>>(m,"TObj_SequenceOfIterator");
register_template_NCollection_Sequence<opencascade::handle<TObj_Object>>(m,"TObj_SequenceOfObject");
register_template_NCollection_SparseArray<Standard_Integer>(m,"TObj_TIntSparseArray_VecOfData");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|