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
|
// 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 <Units_UnitsDictionary.hxx>
#include <Units_Quantity.hxx>
#include <Units_Lexicon.hxx>
#include <Units_Dimensions.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 <Units_UnitsSystem.hxx>
#include <Units_UnitsDictionary.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 <Units_Token.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 <Units_Lexicon.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 <Units_Quantity.hxx>
#include <Units_Token.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 <Units_Quantity.hxx>
#include <Units_Token.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>
// module includes
#include <Units.hxx>
#include <Units_Dimensions.hxx>
#include <Units_Explorer.hxx>
#include <Units_Lexicon.hxx>
#include <Units_MathSentence.hxx>
#include <Units_Measurement.hxx>
#include <Units_NoSuchType.hxx>
#include <Units_NoSuchUnit.hxx>
#include <Units_Operators.hxx>
#include <Units_QtsSequence.hxx>
#include <Units_QuantitiesSequence.hxx>
#include <Units_Quantity.hxx>
#include <Units_Sentence.hxx>
#include <Units_ShiftedToken.hxx>
#include <Units_ShiftedUnit.hxx>
#include <Units_TksSequence.hxx>
#include <Units_Token.hxx>
#include <Units_TokensSequence.hxx>
#include <Units_Unit.hxx>
#include <Units_UnitsDictionary.hxx>
#include <Units_UnitSentence.hxx>
#include <Units_UnitsLexicon.hxx>
#include <Units_UnitsSequence.hxx>
#include <Units_UnitsSystem.hxx>
#include <Units_UtsSequence.hxx>
// template related includes
// ./opencascade/Units_QtsSequence.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Units_TksSequence.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Units_UtsSequence.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_Units(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("Units"));
py::object klass;
//Python trampoline classes
// classes
// Class Units from ./opencascade/Units.hxx
klass = m.attr("Units");
// default constructor
register_default_constructor<Units , shared_ptr<Units>>(m,"Units");
// nested enums
static_cast<py::class_<Units , shared_ptr<Units> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("UnitsFile_s",
(void (*)( const Standard_CString ) ) static_cast<void (*)( const Standard_CString ) >(&Units::UnitsFile),
R"#(Defines the location of the file containing all the information useful in creating the dictionary of all the units known to the system.)#" , py::arg("afile")
)
.def_static("LexiconFile_s",
(void (*)( const Standard_CString ) ) static_cast<void (*)( const Standard_CString ) >(&Units::LexiconFile),
R"#(Defines the location of the file containing the lexicon useful in manipulating composite units.)#" , py::arg("afile")
)
.def_static("DictionaryOfUnits_s",
(handle<Units_UnitsDictionary> (*)( const Standard_Boolean ) ) static_cast<handle<Units_UnitsDictionary> (*)( const Standard_Boolean ) >(&Units::DictionaryOfUnits),
R"#(Returns a unique instance of the dictionary of units. If <amode> is True, then it forces the recomputation of the dictionary of units.)#" , py::arg("amode")=static_cast< const Standard_Boolean>(Standard_False)
)
.def_static("Quantity_s",
(handle<Units_Quantity> (*)( const Standard_CString ) ) static_cast<handle<Units_Quantity> (*)( const Standard_CString ) >(&Units::Quantity),
R"#(Returns a unique quantity instance corresponding to <aquantity>.)#" , py::arg("aquantity")
)
.def_static("FirstQuantity_s",
(Standard_CString (*)( const Standard_CString ) ) static_cast<Standard_CString (*)( const Standard_CString ) >(&Units::FirstQuantity),
R"#(Returns the first quantity string founded from the unit <aUnit>.)#" , py::arg("aunit")
)
.def_static("LexiconUnits_s",
(handle<Units_Lexicon> (*)( const Standard_Boolean ) ) static_cast<handle<Units_Lexicon> (*)( const Standard_Boolean ) >(&Units::LexiconUnits),
R"#(Returns a unique instance of the Units_Lexicon. If <amode> is True, it forces the recomputation of the dictionary of units, and by consequence the completion of the Units_Lexicon.)#" , py::arg("amode")=static_cast< const Standard_Boolean>(Standard_True)
)
.def_static("LexiconFormula_s",
(handle<Units_Lexicon> (*)() ) static_cast<handle<Units_Lexicon> (*)() >(&Units::LexiconFormula),
R"#(Return a unique instance of LexiconFormula.)#"
)
.def_static("NullDimensions_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units::NullDimensions),
R"#(Returns always the same instance of Dimensions.)#"
)
.def_static("Convert_s",
(Standard_Real (*)( const Standard_Real , const Standard_CString , const Standard_CString ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_CString , const Standard_CString ) >(&Units::Convert),
R"#(Converts <avalue> expressed in <afirstunit> into the <asecondunit>.)#" , py::arg("avalue"), py::arg("afirstunit"), py::arg("asecondunit")
)
.def_static("ToSI_s",
(Standard_Real (*)( const Standard_Real , const Standard_CString ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_CString ) >(&Units::ToSI),
R"#()#" , py::arg("aData"), py::arg("aUnit")
)
.def_static("ToSI_s",
(Standard_Real (*)( const Standard_Real , const Standard_CString , handle<Units_Dimensions> & ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_CString , handle<Units_Dimensions> & ) >(&Units::ToSI),
R"#()#" , py::arg("aData"), py::arg("aUnit"), py::arg("aDim")
)
.def_static("FromSI_s",
(Standard_Real (*)( const Standard_Real , const Standard_CString ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_CString ) >(&Units::FromSI),
R"#()#" , py::arg("aData"), py::arg("aUnit")
)
.def_static("FromSI_s",
(Standard_Real (*)( const Standard_Real , const Standard_CString , handle<Units_Dimensions> & ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_CString , handle<Units_Dimensions> & ) >(&Units::FromSI),
R"#()#" , py::arg("aData"), py::arg("aUnit"), py::arg("aDim")
)
.def_static("Dimensions_s",
(handle<Units_Dimensions> (*)( const Standard_CString ) ) static_cast<handle<Units_Dimensions> (*)( const Standard_CString ) >(&Units::Dimensions),
R"#(return the dimension associated to the Type)#" , py::arg("aType")
)
// 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 Units_Dimensions from ./opencascade/Units_Dimensions.hxx
klass = m.attr("Units_Dimensions");
// nested enums
static_cast<py::class_<Units_Dimensions ,opencascade::handle<Units_Dimensions> , Standard_Transient >>(klass)
// constructors
.def(py::init< const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real >() , py::arg("amass"), py::arg("alength"), py::arg("atime"), py::arg("anelectriccurrent"), py::arg("athermodynamictemperature"), py::arg("anamountofsubstance"), py::arg("aluminousintensity"), py::arg("aplaneangle"), py::arg("asolidangle") )
// custom constructors
// methods
.def("Mass",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::Mass),
R"#(Returns the power of mass stored in the dimensions.)#"
)
.def("Length",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::Length),
R"#(Returns the power of length stored in the dimensions.)#"
)
.def("Time",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::Time),
R"#(Returns the power of time stored in the dimensions.)#"
)
.def("ElectricCurrent",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::ElectricCurrent),
R"#(Returns the power of electrical intensity (current) stored in the dimensions.)#"
)
.def("ThermodynamicTemperature",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::ThermodynamicTemperature),
R"#(Returns the power of temperature stored in the dimensions.)#"
)
.def("AmountOfSubstance",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::AmountOfSubstance),
R"#(Returns the power of quantity of material (mole) stored in the dimensions.)#"
)
.def("LuminousIntensity",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::LuminousIntensity),
R"#(Returns the power of light intensity stored in the dimensions.)#"
)
.def("PlaneAngle",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::PlaneAngle),
R"#(Returns the power of plane angle stored in the dimensions.)#"
)
.def("SolidAngle",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::SolidAngle),
R"#(Returns the power of solid angle stored in the dimensions.)#"
)
.def("Quantity",
(Standard_CString (Units_Dimensions::*)() const) static_cast<Standard_CString (Units_Dimensions::*)() const>(&Units_Dimensions::Quantity),
R"#(Returns the quantity string of the dimension)#"
)
.def("Multiply",
(handle<Units_Dimensions> (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const) static_cast<handle<Units_Dimensions> (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const>(&Units_Dimensions::Multiply),
R"#(Creates and returns a new Dimensions object which is the result of the multiplication of <me> and <adimensions>.)#" , py::arg("adimensions")
)
.def("Divide",
(handle<Units_Dimensions> (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const) static_cast<handle<Units_Dimensions> (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const>(&Units_Dimensions::Divide),
R"#(Creates and returns a new Dimensions object which is the result of the division of <me> by <adimensions>.)#" , py::arg("adimensions")
)
.def("Power",
(handle<Units_Dimensions> (Units_Dimensions::*)( const Standard_Real ) const) static_cast<handle<Units_Dimensions> (Units_Dimensions::*)( const Standard_Real ) const>(&Units_Dimensions::Power),
R"#(Creates and returns a new Dimensions object which is the result of the power of <me> and <anexponent>.)#" , py::arg("anexponent")
)
.def("IsEqual",
(Standard_Boolean (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const) static_cast<Standard_Boolean (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const>(&Units_Dimensions::IsEqual),
R"#(Returns true if <me> and <adimensions> have the same dimensions, false otherwise.)#" , py::arg("adimensions")
)
.def("IsNotEqual",
(Standard_Boolean (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const) static_cast<Standard_Boolean (Units_Dimensions::*)( const handle<Units_Dimensions> & ) const>(&Units_Dimensions::IsNotEqual),
R"#(Returns false if <me> and <adimensions> have the same dimensions, true otherwise.)#" , py::arg("adimensions")
)
.def("Dump",
(void (Units_Dimensions::*)( const Standard_Integer ) const) static_cast<void (Units_Dimensions::*)( const Standard_Integer ) const>(&Units_Dimensions::Dump),
R"#(Useful for degugging.)#" , py::arg("ashift")
)
.def("Mass",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::Mass),
R"#(Returns the power of mass stored in the dimensions.)#"
)
.def("Length",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::Length),
R"#(Returns the power of length stored in the dimensions.)#"
)
.def("Time",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::Time),
R"#(Returns the power of time stored in the dimensions.)#"
)
.def("ElectricCurrent",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::ElectricCurrent),
R"#(Returns the power of electrical intensity (current) stored in the dimensions.)#"
)
.def("ThermodynamicTemperature",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::ThermodynamicTemperature),
R"#(Returns the power of temperature stored in the dimensions.)#"
)
.def("AmountOfSubstance",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::AmountOfSubstance),
R"#(Returns the power of quantity of material (mole) stored in the dimensions.)#"
)
.def("LuminousIntensity",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::LuminousIntensity),
R"#(Returns the power of light intensity stored in the dimensions.)#"
)
.def("PlaneAngle",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::PlaneAngle),
R"#(Returns the power of plane angle stored in the dimensions.)#"
)
.def("SolidAngle",
(Standard_Real (Units_Dimensions::*)() const) static_cast<Standard_Real (Units_Dimensions::*)() const>(&Units_Dimensions::SolidAngle),
R"#(Returns the power of solid angle stored in the dimensions.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("ALess_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::ALess),
R"#()#"
)
.def_static("AMass_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::AMass),
R"#()#"
)
.def_static("ALength_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::ALength),
R"#()#"
)
.def_static("ATime_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::ATime),
R"#()#"
)
.def_static("AElectricCurrent_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::AElectricCurrent),
R"#()#"
)
.def_static("AThermodynamicTemperature_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::AThermodynamicTemperature),
R"#()#"
)
.def_static("AAmountOfSubstance_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::AAmountOfSubstance),
R"#()#"
)
.def_static("ALuminousIntensity_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::ALuminousIntensity),
R"#()#"
)
.def_static("APlaneAngle_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::APlaneAngle),
R"#()#"
)
.def_static("ASolidAngle_s",
(handle<Units_Dimensions> (*)() ) static_cast<handle<Units_Dimensions> (*)() >(&Units_Dimensions::ASolidAngle),
R"#(Returns the basic dimensions.)#"
)
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_Dimensions::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_Dimensions::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_Dimensions::*)() const) static_cast< const handle<Standard_Type> & (Units_Dimensions::*)() const>(&Units_Dimensions::DynamicType),
R"#()#"
)
;
// Class Units_Explorer from ./opencascade/Units_Explorer.hxx
klass = m.attr("Units_Explorer");
// nested enums
static_cast<py::class_<Units_Explorer , shared_ptr<Units_Explorer> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const handle<Units_UnitsSystem> & >() , py::arg("aunitssystem") )
.def(py::init< const handle<Units_UnitsDictionary> & >() , py::arg("aunitsdictionary") )
.def(py::init< const handle<Units_UnitsSystem> &, const Standard_CString >() , py::arg("aunitssystem"), py::arg("aquantity") )
.def(py::init< const handle<Units_UnitsDictionary> &, const Standard_CString >() , py::arg("aunitsdictionary"), py::arg("aquantity") )
// custom constructors
// methods
.def("Init",
(void (Units_Explorer::*)( const handle<Units_UnitsSystem> & ) ) static_cast<void (Units_Explorer::*)( const handle<Units_UnitsSystem> & ) >(&Units_Explorer::Init),
R"#(Initializes the instance of the class with the UnitsSystem <aunitssystem>.)#" , py::arg("aunitssystem")
)
.def("Init",
(void (Units_Explorer::*)( const handle<Units_UnitsDictionary> & ) ) static_cast<void (Units_Explorer::*)( const handle<Units_UnitsDictionary> & ) >(&Units_Explorer::Init),
R"#(Initializes the instance of the class with the UnitsDictionary <aunitsdictionary>.)#" , py::arg("aunitsdictionary")
)
.def("Init",
(void (Units_Explorer::*)( const handle<Units_UnitsSystem> & , const Standard_CString ) ) static_cast<void (Units_Explorer::*)( const handle<Units_UnitsSystem> & , const Standard_CString ) >(&Units_Explorer::Init),
R"#(Initializes the instance of the class with the UnitsSystem <aunitssystem> and positioned at the quantity <aquantity>.)#" , py::arg("aunitssystem"), py::arg("aquantity")
)
.def("Init",
(void (Units_Explorer::*)( const handle<Units_UnitsDictionary> & , const Standard_CString ) ) static_cast<void (Units_Explorer::*)( const handle<Units_UnitsDictionary> & , const Standard_CString ) >(&Units_Explorer::Init),
R"#(Initializes the instance of the class with the UnitsDictionary <aunitsdictionary> and positioned at the quantity <aquantity>.)#" , py::arg("aunitsdictionary"), py::arg("aquantity")
)
.def("MoreQuantity",
(Standard_Boolean (Units_Explorer::*)() const) static_cast<Standard_Boolean (Units_Explorer::*)() const>(&Units_Explorer::MoreQuantity),
R"#(Returns True if there is another Quantity to explore, False otherwise.)#"
)
.def("NextQuantity",
(void (Units_Explorer::*)() ) static_cast<void (Units_Explorer::*)() >(&Units_Explorer::NextQuantity),
R"#(Sets the next Quantity current.)#"
)
.def("Quantity",
(TCollection_AsciiString (Units_Explorer::*)() const) static_cast<TCollection_AsciiString (Units_Explorer::*)() const>(&Units_Explorer::Quantity),
R"#(Returns the name of the current Quantity.)#"
)
.def("MoreUnit",
(Standard_Boolean (Units_Explorer::*)() const) static_cast<Standard_Boolean (Units_Explorer::*)() const>(&Units_Explorer::MoreUnit),
R"#(Returns True if there is another Unit to explore, False otherwise.)#"
)
.def("NextUnit",
(void (Units_Explorer::*)() ) static_cast<void (Units_Explorer::*)() >(&Units_Explorer::NextUnit),
R"#(Sets the next Unit current.)#"
)
.def("Unit",
(TCollection_AsciiString (Units_Explorer::*)() const) static_cast<TCollection_AsciiString (Units_Explorer::*)() const>(&Units_Explorer::Unit),
R"#(Returns the name of the current unit.)#"
)
.def("IsActive",
(Standard_Boolean (Units_Explorer::*)() const) static_cast<Standard_Boolean (Units_Explorer::*)() const>(&Units_Explorer::IsActive),
R"#(If the units system to explore is a user system, returns True if the current unit is active, False otherwise.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class Units_Lexicon from ./opencascade/Units_Lexicon.hxx
klass = m.attr("Units_Lexicon");
// nested enums
static_cast<py::class_<Units_Lexicon ,opencascade::handle<Units_Lexicon> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Creates",
(void (Units_Lexicon::*)() ) static_cast<void (Units_Lexicon::*)() >(&Units_Lexicon::Creates),
R"#(Reads the file <afilename> to create a sequence of tokens stored in <thesequenceoftokens>.)#"
)
.def("Sequence",
(handle<Units_TokensSequence> (Units_Lexicon::*)() const) static_cast<handle<Units_TokensSequence> (Units_Lexicon::*)() const>(&Units_Lexicon::Sequence),
R"#(Returns the first item of the sequence of tokens.)#"
)
.def("AddToken",
(void (Units_Lexicon::*)( const Standard_CString , const Standard_CString , const Standard_Real ) ) static_cast<void (Units_Lexicon::*)( const Standard_CString , const Standard_CString , const Standard_Real ) >(&Units_Lexicon::AddToken),
R"#(Adds to the lexicon a new token with <aword>, <amean>, <avalue> as arguments. If there is already a token with the field <theword> equal to <aword>, the existing token is updated.)#" , py::arg("aword"), py::arg("amean"), py::arg("avalue")
)
.def("Dump",
(void (Units_Lexicon::*)() const) static_cast<void (Units_Lexicon::*)() const>(&Units_Lexicon::Dump),
R"#(Useful for debugging.)#"
)
.def("Sequence",
(handle<Units_TokensSequence> (Units_Lexicon::*)() const) static_cast<handle<Units_TokensSequence> (Units_Lexicon::*)() const>(&Units_Lexicon::Sequence),
R"#(Returns the first item of the sequence of tokens.)#"
)
.def("Dump",
(void (Units_Lexicon::*)() const) static_cast<void (Units_Lexicon::*)() const>(&Units_Lexicon::Dump),
R"#(Useful for debugging.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_Lexicon::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_Lexicon::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_Lexicon::*)() const) static_cast< const handle<Standard_Type> & (Units_Lexicon::*)() const>(&Units_Lexicon::DynamicType),
R"#()#"
)
;
// Class Units_Measurement from ./opencascade/Units_Measurement.hxx
klass = m.attr("Units_Measurement");
// nested enums
static_cast<py::class_<Units_Measurement , shared_ptr<Units_Measurement> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Real, const handle<Units_Token> & >() , py::arg("avalue"), py::arg("atoken") )
.def(py::init< const Standard_Real, const Standard_CString >() , py::arg("avalue"), py::arg("aunit") )
// custom constructors
// methods
.def("Convert",
(void (Units_Measurement::*)( const Standard_CString ) ) static_cast<void (Units_Measurement::*)( const Standard_CString ) >(&Units_Measurement::Convert),
R"#(Converts (if possible) the measurement object into another unit. <aunit> must have the same dimensionality as the unit contained in the token <thetoken>.)#" , py::arg("aunit")
)
.def("Integer",
(Units_Measurement (Units_Measurement::*)() const) static_cast<Units_Measurement (Units_Measurement::*)() const>(&Units_Measurement::Integer),
R"#(Returns a Measurement object with the integer value of the measurement contained in <me>.)#"
)
.def("Fractional",
(Units_Measurement (Units_Measurement::*)() const) static_cast<Units_Measurement (Units_Measurement::*)() const>(&Units_Measurement::Fractional),
R"#(Returns a Measurement object with the fractional value of the measurement contained in <me>.)#"
)
.def("Measurement",
(Standard_Real (Units_Measurement::*)() const) static_cast<Standard_Real (Units_Measurement::*)() const>(&Units_Measurement::Measurement),
R"#(Returns the value of the measurement.)#"
)
.def("Token",
(handle<Units_Token> (Units_Measurement::*)() const) static_cast<handle<Units_Token> (Units_Measurement::*)() const>(&Units_Measurement::Token),
R"#(Returns the token contained in <me>.)#"
)
.def("Add",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::Add),
R"#(Returns (if it is possible) a measurement which is the addition of <me> and <ameasurement>. The chosen returned unit is the unit of <me>.)#" , py::arg("ameasurement")
)
.def("Subtract",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::Subtract),
R"#(Returns (if it is possible) a measurement which is the subtraction of <me> and <ameasurement>. The chosen returned unit is the unit of <me>.)#" , py::arg("ameasurement")
)
.def("Multiply",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::Multiply),
R"#(Returns a measurement which is the multiplication of <me> and <ameasurement>.)#" , py::arg("ameasurement")
)
.def("Multiply",
(Units_Measurement (Units_Measurement::*)( const Standard_Real ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Standard_Real ) const>(&Units_Measurement::Multiply),
R"#(Returns a measurement which is the multiplication of <me> with the value <avalue>.)#" , py::arg("avalue")
)
.def("Divide",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::Divide),
R"#(Returns a measurement which is the division of <me> by <ameasurement>.)#" , py::arg("ameasurement")
)
.def("Divide",
(Units_Measurement (Units_Measurement::*)( const Standard_Real ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Standard_Real ) const>(&Units_Measurement::Divide),
R"#(Returns a measurement which is the division of <me> by the constant <avalue>.)#" , py::arg("avalue")
)
.def("Power",
(Units_Measurement (Units_Measurement::*)( const Standard_Real ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Standard_Real ) const>(&Units_Measurement::Power),
R"#(Returns a measurement which is <me> powered <anexponent>.)#" , py::arg("anexponent")
)
.def("HasToken",
(Standard_Boolean (Units_Measurement::*)() const) static_cast<Standard_Boolean (Units_Measurement::*)() const>(&Units_Measurement::HasToken),
R"#()#"
)
.def("Dump",
(void (Units_Measurement::*)() const) static_cast<void (Units_Measurement::*)() const>(&Units_Measurement::Dump),
R"#(Useful for debugging.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
.def("__add__",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::operator+),
py::is_operator(),
R"#()#" , py::arg("ameasurement")
)
.def("__sub__",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::operator-),
py::is_operator(),
R"#()#" , py::arg("ameasurement")
)
.def("__mul__",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::operator*),
py::is_operator(),
R"#()#" , py::arg("ameasurement")
)
.def("__rmul__",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::operator*),
py::is_operator(),
R"#()#" , py::arg("ameasurement")
)
.def("__mul__",
(Units_Measurement (Units_Measurement::*)( const Standard_Real ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Standard_Real ) const>(&Units_Measurement::operator*),
py::is_operator(),
R"#()#" , py::arg("avalue")
)
.def("__rmul__",
(Units_Measurement (Units_Measurement::*)( const Standard_Real ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Standard_Real ) const>(&Units_Measurement::operator*),
py::is_operator(),
R"#()#" , py::arg("avalue")
)
.def("__truediv__",
(Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Units_Measurement & ) const>(&Units_Measurement::operator/),
py::is_operator(),
R"#()#" , py::arg("ameasurement")
)
.def("__truediv__",
(Units_Measurement (Units_Measurement::*)( const Standard_Real ) const) static_cast<Units_Measurement (Units_Measurement::*)( const Standard_Real ) const>(&Units_Measurement::operator/),
py::is_operator(),
R"#()#" , py::arg("avalue")
)
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class Units_QuantitiesSequence from ./opencascade/Units_QuantitiesSequence.hxx
klass = m.attr("Units_QuantitiesSequence");
// nested enums
static_cast<py::class_<Units_QuantitiesSequence ,opencascade::handle<Units_QuantitiesSequence> , Units_QtsSequence , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Units_QtsSequence & >() , py::arg("theOther") )
// custom constructors
// methods
.def("Append",
(void (Units_QuantitiesSequence::*)( const typename NCollection_Sequence<opencascade::handle<Units_Quantity>>::value_type & ) ) static_cast<void (Units_QuantitiesSequence::*)( const typename NCollection_Sequence<opencascade::handle<Units_Quantity>>::value_type & ) >(&Units_QuantitiesSequence::Append),
R"#()#" , py::arg("theItem")
)
.def("Append",
(void (Units_QuantitiesSequence::*)( Units_QtsSequence & ) ) static_cast<void (Units_QuantitiesSequence::*)( Units_QtsSequence & ) >(&Units_QuantitiesSequence::Append),
R"#()#" , 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 * (*)() >(&Units_QuantitiesSequence::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_QuantitiesSequence::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Sequence",
( const Units_QtsSequence & (Units_QuantitiesSequence::*)() const) static_cast< const Units_QtsSequence & (Units_QuantitiesSequence::*)() const>(&Units_QuantitiesSequence::Sequence),
R"#()#"
)
.def("ChangeSequence",
(Units_QtsSequence & (Units_QuantitiesSequence::*)() ) static_cast<Units_QtsSequence & (Units_QuantitiesSequence::*)() >(&Units_QuantitiesSequence::ChangeSequence),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
( const handle<Standard_Type> & (Units_QuantitiesSequence::*)() const) static_cast< const handle<Standard_Type> & (Units_QuantitiesSequence::*)() const>(&Units_QuantitiesSequence::DynamicType),
R"#()#"
)
;
// Class Units_Quantity from ./opencascade/Units_Quantity.hxx
klass = m.attr("Units_Quantity");
// nested enums
static_cast<py::class_<Units_Quantity ,opencascade::handle<Units_Quantity> , Standard_Transient >>(klass)
// constructors
.def(py::init< const Standard_CString, const handle<Units_Dimensions> &, const handle<Units_UnitsSequence> & >() , py::arg("aname"), py::arg("adimensions"), py::arg("aunitssequence") )
// custom constructors
// methods
.def("Name",
(TCollection_AsciiString (Units_Quantity::*)() const) static_cast<TCollection_AsciiString (Units_Quantity::*)() const>(&Units_Quantity::Name),
R"#(Returns in a AsciiString from TCollection the name of the quantity.)#"
)
.def("Dimensions",
(handle<Units_Dimensions> (Units_Quantity::*)() const) static_cast<handle<Units_Dimensions> (Units_Quantity::*)() const>(&Units_Quantity::Dimensions),
R"#(Returns the physical dimensions of the quantity.)#"
)
.def("Sequence",
(handle<Units_UnitsSequence> (Units_Quantity::*)() const) static_cast<handle<Units_UnitsSequence> (Units_Quantity::*)() const>(&Units_Quantity::Sequence),
R"#(Returns <theunitssequence>, which is the sequence of all the units stored for this physical quantity.)#"
)
.def("IsEqual",
(Standard_Boolean (Units_Quantity::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Quantity::*)( const Standard_CString ) const>(&Units_Quantity::IsEqual),
R"#(Returns True if the name of the Quantity <me> is equal to <astring>, False otherwise.)#" , py::arg("astring")
)
.def("Dump",
(void (Units_Quantity::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (Units_Quantity::*)( const Standard_Integer , const Standard_Integer ) const>(&Units_Quantity::Dump),
R"#(Useful for debugging.)#" , py::arg("ashift"), py::arg("alevel")
)
.def("Name",
(TCollection_AsciiString (Units_Quantity::*)() const) static_cast<TCollection_AsciiString (Units_Quantity::*)() const>(&Units_Quantity::Name),
R"#(Returns in a AsciiString from TCollection the name of the quantity.)#"
)
.def("Dimensions",
(handle<Units_Dimensions> (Units_Quantity::*)() const) static_cast<handle<Units_Dimensions> (Units_Quantity::*)() const>(&Units_Quantity::Dimensions),
R"#(Returns the physical dimensions of the quantity.)#"
)
.def("Sequence",
(handle<Units_UnitsSequence> (Units_Quantity::*)() const) static_cast<handle<Units_UnitsSequence> (Units_Quantity::*)() const>(&Units_Quantity::Sequence),
R"#(Returns <theunitssequence>, which is the sequence of all the units stored for this physical quantity.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_Quantity::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_Quantity::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_Quantity::*)() const) static_cast< const handle<Standard_Type> & (Units_Quantity::*)() const>(&Units_Quantity::DynamicType),
R"#()#"
)
;
// Class Units_Sentence from ./opencascade/Units_Sentence.hxx
klass = m.attr("Units_Sentence");
// nested enums
static_cast<py::class_<Units_Sentence , shared_ptr<Units_Sentence> >>(klass)
// constructors
.def(py::init< const handle<Units_Lexicon> &, const Standard_CString >() , py::arg("alexicon"), py::arg("astring") )
// custom constructors
// methods
.def("SetConstants",
(void (Units_Sentence::*)() ) static_cast<void (Units_Sentence::*)() >(&Units_Sentence::SetConstants),
R"#(For each constant encountered, sets the value.)#"
)
.def("Sequence",
(handle<Units_TokensSequence> (Units_Sentence::*)() const) static_cast<handle<Units_TokensSequence> (Units_Sentence::*)() const>(&Units_Sentence::Sequence),
R"#(Returns <thesequenceoftokens>.)#"
)
.def("Sequence",
(void (Units_Sentence::*)( const handle<Units_TokensSequence> & ) ) static_cast<void (Units_Sentence::*)( const handle<Units_TokensSequence> & ) >(&Units_Sentence::Sequence),
R"#(Sets the field <thesequenceoftokens> to <asequenceoftokens>.)#" , py::arg("asequenceoftokens")
)
.def("Evaluate",
(handle<Units_Token> (Units_Sentence::*)() ) static_cast<handle<Units_Token> (Units_Sentence::*)() >(&Units_Sentence::Evaluate),
R"#(Computes and returns in a token the result of the expression.)#"
)
.def("IsDone",
(Standard_Boolean (Units_Sentence::*)() const) static_cast<Standard_Boolean (Units_Sentence::*)() const>(&Units_Sentence::IsDone),
R"#(Return True if number of created tokens > 0 (i.e creation of sentence is successful))#"
)
.def("Dump",
(void (Units_Sentence::*)() const) static_cast<void (Units_Sentence::*)() const>(&Units_Sentence::Dump),
R"#(Useful for debugging.)#"
)
.def("Sequence",
(handle<Units_TokensSequence> (Units_Sentence::*)() const) static_cast<handle<Units_TokensSequence> (Units_Sentence::*)() const>(&Units_Sentence::Sequence),
R"#(Returns <thesequenceoftokens>.)#"
)
.def("Sequence",
(void (Units_Sentence::*)( const handle<Units_TokensSequence> & ) ) static_cast<void (Units_Sentence::*)( const handle<Units_TokensSequence> & ) >(&Units_Sentence::Sequence),
R"#(Sets the field <thesequenceoftokens> to <asequenceoftokens>.)#" , py::arg("asequenceoftokens")
)
.def("IsDone",
(Standard_Boolean (Units_Sentence::*)() const) static_cast<Standard_Boolean (Units_Sentence::*)() const>(&Units_Sentence::IsDone),
R"#(Return True if number of created tokens > 0 (i.e creation of sentence is successful))#"
)
.def("Dump",
(void (Units_Sentence::*)() const) static_cast<void (Units_Sentence::*)() const>(&Units_Sentence::Dump),
R"#(Useful for debugging.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class Units_Token from ./opencascade/Units_Token.hxx
klass = m.attr("Units_Token");
// nested enums
static_cast<py::class_<Units_Token ,opencascade::handle<Units_Token> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_CString >() , py::arg("aword") )
.def(py::init< const handle<Units_Token> & >() , py::arg("atoken") )
.def(py::init< const Standard_CString, const Standard_CString >() , py::arg("aword"), py::arg("amean") )
.def(py::init< const Standard_CString, const Standard_CString, const Standard_Real >() , py::arg("aword"), py::arg("amean"), py::arg("avalue") )
.def(py::init< const Standard_CString, const Standard_CString, const Standard_Real, const handle<Units_Dimensions> & >() , py::arg("aword"), py::arg("amean"), py::arg("avalue"), py::arg("adimension") )
// custom constructors
// methods
.def("Creates",
(handle<Units_Token> (Units_Token::*)() const) static_cast<handle<Units_Token> (Units_Token::*)() const>(&Units_Token::Creates),
R"#(Creates and returns a token, which is a ShiftedToken.)#"
)
.def("Length",
(Standard_Integer (Units_Token::*)() const) static_cast<Standard_Integer (Units_Token::*)() const>(&Units_Token::Length),
R"#(Returns the length of the word.)#"
)
.def("Word",
(TCollection_AsciiString (Units_Token::*)() const) static_cast<TCollection_AsciiString (Units_Token::*)() const>(&Units_Token::Word),
R"#(Returns the string <theword>)#"
)
.def("Word",
(void (Units_Token::*)( const Standard_CString ) ) static_cast<void (Units_Token::*)( const Standard_CString ) >(&Units_Token::Word),
R"#(Sets the field <theword> to <aword>.)#" , py::arg("aword")
)
.def("Mean",
(TCollection_AsciiString (Units_Token::*)() const) static_cast<TCollection_AsciiString (Units_Token::*)() const>(&Units_Token::Mean),
R"#(Returns the significance of the word <theword>, which is in the field <themean>.)#"
)
.def("Mean",
(void (Units_Token::*)( const Standard_CString ) ) static_cast<void (Units_Token::*)( const Standard_CString ) >(&Units_Token::Mean),
R"#(Sets the field <themean> to <amean>.)#" , py::arg("amean")
)
.def("Value",
(Standard_Real (Units_Token::*)() const) static_cast<Standard_Real (Units_Token::*)() const>(&Units_Token::Value),
R"#(Returns the value stored in the field <thevalue>.)#"
)
.def("Value",
(void (Units_Token::*)( const Standard_Real ) ) static_cast<void (Units_Token::*)( const Standard_Real ) >(&Units_Token::Value),
R"#(Sets the field <thevalue> to <avalue>.)#" , py::arg("avalue")
)
.def("Dimensions",
(handle<Units_Dimensions> (Units_Token::*)() const) static_cast<handle<Units_Dimensions> (Units_Token::*)() const>(&Units_Token::Dimensions),
R"#(Returns the dimensions of the token <thedimensions>.)#"
)
.def("Dimensions",
(void (Units_Token::*)( const handle<Units_Dimensions> & ) ) static_cast<void (Units_Token::*)( const handle<Units_Dimensions> & ) >(&Units_Token::Dimensions),
R"#(Sets the field <thedimensions> to <adimensions>.)#" , py::arg("adimensions")
)
.def("Update",
(void (Units_Token::*)( const Standard_CString ) ) static_cast<void (Units_Token::*)( const Standard_CString ) >(&Units_Token::Update),
R"#(Updates the token <me> with the additional signification <amean> by concatenation of the two strings <themean> and <amean>. If the two significations are the same , an information message is written in the output device.)#" , py::arg("amean")
)
.def("Add",
(handle<Units_Token> (Units_Token::*)( const Standard_Integer ) const) static_cast<handle<Units_Token> (Units_Token::*)( const Standard_Integer ) const>(&Units_Token::Add),
R"#()#" , py::arg("aninteger")
)
.def("Add",
(handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::Add),
R"#(Returns a token which is the addition of <me> and another token <atoken>. The addition is possible if and only if the dimensions are the same.)#" , py::arg("atoken")
)
.def("Subtract",
(handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::Subtract),
R"#(Returns a token which is the subtraction of <me> and another token <atoken>. The subtraction is possible if and only if the dimensions are the same.)#" , py::arg("atoken")
)
.def("Multiply",
(handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::Multiply),
R"#(Returns a token which is the product of <me> and another token <atoken>.)#" , py::arg("atoken")
)
.def("Multiplied",
(Standard_Real (Units_Token::*)( const Standard_Real ) const) static_cast<Standard_Real (Units_Token::*)( const Standard_Real ) const>(&Units_Token::Multiplied),
R"#(This virtual method is called by the Measurement methods, to compute the measurement during a conversion.)#" , py::arg("avalue")
)
.def("Divide",
(handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::Divide),
R"#(Returns a token which is the division of <me> by another token <atoken>.)#" , py::arg("atoken")
)
.def("Divided",
(Standard_Real (Units_Token::*)( const Standard_Real ) const) static_cast<Standard_Real (Units_Token::*)( const Standard_Real ) const>(&Units_Token::Divided),
R"#(This virtual method is called by the Measurement methods, to compute the measurement during a conversion.)#" , py::arg("avalue")
)
.def("Power",
(handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<handle<Units_Token> (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::Power),
R"#(Returns a token which is <me> to the power of another token <atoken>. The computation is possible only if <atoken> is a dimensionless constant.)#" , py::arg("atoken")
)
.def("Power",
(handle<Units_Token> (Units_Token::*)( const Standard_Real ) const) static_cast<handle<Units_Token> (Units_Token::*)( const Standard_Real ) const>(&Units_Token::Power),
R"#(Returns a token which is <me> to the power of <anexponent>.)#" , py::arg("anexponent")
)
.def("IsEqual",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsEqual),
R"#(Returns true if the field <theword> and the string <astring> are the same, false otherwise.)#" , py::arg("astring")
)
.def("IsEqual",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsEqual),
R"#(Returns true if the field <theword> and the string <theword> contained in the token <atoken> are the same, false otherwise.)#" , py::arg("atoken")
)
.def("IsNotEqual",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsNotEqual),
R"#(Returns false if the field <theword> and the string <astring> are the same, true otherwise.)#" , py::arg("astring")
)
.def("IsNotEqual",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsNotEqual),
R"#(Returns false if the field <theword> and the string <theword> contained in the token <atoken> are the same, true otherwise.)#" , py::arg("atoken")
)
.def("IsLessOrEqual",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsLessOrEqual),
R"#(Returns true if the field <theword> is strictly contained at the beginning of the string <astring>, false otherwise.)#" , py::arg("astring")
)
.def("IsGreater",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsGreater),
R"#(Returns false if the field <theword> is strictly contained at the beginning of the string <astring>, true otherwise.)#" , py::arg("astring")
)
.def("IsGreater",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsGreater),
R"#(Returns false if the field <theword> is strictly contained at the beginning of the string <astring>, true otherwise.)#" , py::arg("atoken")
)
.def("IsGreaterOrEqual",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsGreaterOrEqual),
R"#(Returns true if the string <astring> is strictly contained at the beginning of the field <theword> false otherwise.)#" , py::arg("atoken")
)
.def("Dump",
(void (Units_Token::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (Units_Token::*)( const Standard_Integer , const Standard_Integer ) const>(&Units_Token::Dump),
R"#(Useful for debugging)#" , py::arg("ashift"), py::arg("alevel")
)
.def("Word",
(TCollection_AsciiString (Units_Token::*)() const) static_cast<TCollection_AsciiString (Units_Token::*)() const>(&Units_Token::Word),
R"#(Returns the string <theword>)#"
)
.def("Mean",
(TCollection_AsciiString (Units_Token::*)() const) static_cast<TCollection_AsciiString (Units_Token::*)() const>(&Units_Token::Mean),
R"#(Returns the significance of the word <theword>, which is in the field <themean>.)#"
)
.def("Value",
(Standard_Real (Units_Token::*)() const) static_cast<Standard_Real (Units_Token::*)() const>(&Units_Token::Value),
R"#(Returns the value stored in the field <thevalue>.)#"
)
.def("Dimensions",
(handle<Units_Dimensions> (Units_Token::*)() const) static_cast<handle<Units_Dimensions> (Units_Token::*)() const>(&Units_Token::Dimensions),
R"#(Returns the dimensions of the token <thedimensions>.)#"
)
.def("Word",
(void (Units_Token::*)( const Standard_CString ) ) static_cast<void (Units_Token::*)( const Standard_CString ) >(&Units_Token::Word),
R"#(Sets the field <theword> to <aword>.)#" , py::arg("aword")
)
.def("Mean",
(void (Units_Token::*)( const Standard_CString ) ) static_cast<void (Units_Token::*)( const Standard_CString ) >(&Units_Token::Mean),
R"#(Sets the field <themean> to <amean>.)#" , py::arg("amean")
)
.def("Value",
(void (Units_Token::*)( const Standard_Real ) ) static_cast<void (Units_Token::*)( const Standard_Real ) >(&Units_Token::Value),
R"#(Sets the field <thevalue> to <avalue>.)#" , py::arg("avalue")
)
.def("IsNotEqual",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsNotEqual),
R"#(Returns false if the field <theword> and the string <astring> are the same, true otherwise.)#" , py::arg("astring")
)
.def("IsNotEqual",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsNotEqual),
R"#(Returns false if the field <theword> and the string <theword> contained in the token <atoken> are the same, true otherwise.)#" , py::arg("atoken")
)
.def("IsLessOrEqual",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsLessOrEqual),
R"#(Returns true if the field <theword> is strictly contained at the beginning of the string <astring>, false otherwise.)#" , py::arg("astring")
)
.def("IsGreater",
(Standard_Boolean (Units_Token::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Token::*)( const Standard_CString ) const>(&Units_Token::IsGreater),
R"#(Returns false if the field <theword> is strictly contained at the beginning of the string <astring>, true otherwise.)#" , py::arg("astring")
)
.def("IsGreater",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsGreater),
R"#(Returns false if the field <theword> is strictly contained at the beginning of the string <astring>, true otherwise.)#" , py::arg("atoken")
)
.def("IsGreaterOrEqual",
(Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const) static_cast<Standard_Boolean (Units_Token::*)( const handle<Units_Token> & ) const>(&Units_Token::IsGreaterOrEqual),
R"#(Returns true if the string <astring> is strictly contained at the beginning of the field <theword> false otherwise.)#" , py::arg("atoken")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_Token::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_Token::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_Token::*)() const) static_cast< const handle<Standard_Type> & (Units_Token::*)() const>(&Units_Token::DynamicType),
R"#()#"
)
;
// Class Units_TokensSequence from ./opencascade/Units_TokensSequence.hxx
klass = m.attr("Units_TokensSequence");
// nested enums
static_cast<py::class_<Units_TokensSequence ,opencascade::handle<Units_TokensSequence> , Units_TksSequence , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Units_TksSequence & >() , py::arg("theOther") )
// custom constructors
// methods
.def("Append",
(void (Units_TokensSequence::*)( const typename NCollection_Sequence<opencascade::handle<Units_Token>>::value_type & ) ) static_cast<void (Units_TokensSequence::*)( const typename NCollection_Sequence<opencascade::handle<Units_Token>>::value_type & ) >(&Units_TokensSequence::Append),
R"#()#" , py::arg("theItem")
)
.def("Append",
(void (Units_TokensSequence::*)( Units_TksSequence & ) ) static_cast<void (Units_TokensSequence::*)( Units_TksSequence & ) >(&Units_TokensSequence::Append),
R"#()#" , 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 * (*)() >(&Units_TokensSequence::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_TokensSequence::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Sequence",
( const Units_TksSequence & (Units_TokensSequence::*)() const) static_cast< const Units_TksSequence & (Units_TokensSequence::*)() const>(&Units_TokensSequence::Sequence),
R"#()#"
)
.def("ChangeSequence",
(Units_TksSequence & (Units_TokensSequence::*)() ) static_cast<Units_TksSequence & (Units_TokensSequence::*)() >(&Units_TokensSequence::ChangeSequence),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
( const handle<Standard_Type> & (Units_TokensSequence::*)() const) static_cast< const handle<Standard_Type> & (Units_TokensSequence::*)() const>(&Units_TokensSequence::DynamicType),
R"#()#"
)
;
// Class Units_Unit from ./opencascade/Units_Unit.hxx
klass = m.attr("Units_Unit");
// nested enums
static_cast<py::class_<Units_Unit ,opencascade::handle<Units_Unit> , Standard_Transient >>(klass)
// constructors
.def(py::init< const Standard_CString, const Standard_CString, const Standard_Real, const handle<Units_Quantity> & >() , py::arg("aname"), py::arg("asymbol"), py::arg("avalue"), py::arg("aquantity") )
.def(py::init< const Standard_CString, const Standard_CString >() , py::arg("aname"), py::arg("asymbol") )
.def(py::init< const Standard_CString >() , py::arg("aname") )
// custom constructors
// methods
.def("Name",
(TCollection_AsciiString (Units_Unit::*)() const) static_cast<TCollection_AsciiString (Units_Unit::*)() const>(&Units_Unit::Name),
R"#(Returns the name of the unit <thename>)#"
)
.def("Symbol",
(void (Units_Unit::*)( const Standard_CString ) ) static_cast<void (Units_Unit::*)( const Standard_CString ) >(&Units_Unit::Symbol),
R"#(Adds a new symbol <asymbol> attached to <me>.)#" , py::arg("asymbol")
)
.def("Value",
(Standard_Real (Units_Unit::*)() const) static_cast<Standard_Real (Units_Unit::*)() const>(&Units_Unit::Value),
R"#(Returns the value in relation with the International System of Units.)#"
)
.def("Quantity",
(handle<Units_Quantity> (Units_Unit::*)() const) static_cast<handle<Units_Quantity> (Units_Unit::*)() const>(&Units_Unit::Quantity),
R"#(Returns <thequantity> contained in <me>.)#"
)
.def("SymbolsSequence",
(handle<TColStd_HSequenceOfHAsciiString> (Units_Unit::*)() const) static_cast<handle<TColStd_HSequenceOfHAsciiString> (Units_Unit::*)() const>(&Units_Unit::SymbolsSequence),
R"#(Returns the sequence of symbols <thesymbolssequence>)#"
)
.def("Value",
(void (Units_Unit::*)( const Standard_Real ) ) static_cast<void (Units_Unit::*)( const Standard_Real ) >(&Units_Unit::Value),
R"#(Sets the value <avalue> to <me>.)#" , py::arg("avalue")
)
.def("Quantity",
(void (Units_Unit::*)( const handle<Units_Quantity> & ) ) static_cast<void (Units_Unit::*)( const handle<Units_Quantity> & ) >(&Units_Unit::Quantity),
R"#(Sets the physical Quantity <aquantity> to <me>.)#" , py::arg("aquantity")
)
.def("Token",
(handle<Units_Token> (Units_Unit::*)() const) static_cast<handle<Units_Token> (Units_Unit::*)() const>(&Units_Unit::Token),
R"#(Starting with <me>, returns a new Token object.)#"
)
.def("IsEqual",
(Standard_Boolean (Units_Unit::*)( const Standard_CString ) const) static_cast<Standard_Boolean (Units_Unit::*)( const Standard_CString ) const>(&Units_Unit::IsEqual),
R"#(Compares all the symbols linked within <me> with the name of <atoken>, and returns True if there is one symbol equal to the name, False otherwise.)#" , py::arg("astring")
)
.def("Dump",
(void (Units_Unit::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (Units_Unit::*)( const Standard_Integer , const Standard_Integer ) const>(&Units_Unit::Dump),
R"#(Useful for debugging)#" , py::arg("ashift"), py::arg("alevel")
)
.def("Name",
(TCollection_AsciiString (Units_Unit::*)() const) static_cast<TCollection_AsciiString (Units_Unit::*)() const>(&Units_Unit::Name),
R"#(Returns the name of the unit <thename>)#"
)
.def("Value",
(Standard_Real (Units_Unit::*)() const) static_cast<Standard_Real (Units_Unit::*)() const>(&Units_Unit::Value),
R"#(Returns the value in relation with the International System of Units.)#"
)
.def("Quantity",
(handle<Units_Quantity> (Units_Unit::*)() const) static_cast<handle<Units_Quantity> (Units_Unit::*)() const>(&Units_Unit::Quantity),
R"#(Returns <thequantity> contained in <me>.)#"
)
.def("SymbolsSequence",
(handle<TColStd_HSequenceOfHAsciiString> (Units_Unit::*)() const) static_cast<handle<TColStd_HSequenceOfHAsciiString> (Units_Unit::*)() const>(&Units_Unit::SymbolsSequence),
R"#(Returns the sequence of symbols <thesymbolssequence>)#"
)
.def("Value",
(void (Units_Unit::*)( const Standard_Real ) ) static_cast<void (Units_Unit::*)( const Standard_Real ) >(&Units_Unit::Value),
R"#(Sets the value <avalue> to <me>.)#" , py::arg("avalue")
)
.def("Quantity",
(void (Units_Unit::*)( const handle<Units_Quantity> & ) ) static_cast<void (Units_Unit::*)( const handle<Units_Quantity> & ) >(&Units_Unit::Quantity),
R"#(Sets the physical Quantity <aquantity> to <me>.)#" , py::arg("aquantity")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_Unit::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_Unit::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_Unit::*)() const) static_cast< const handle<Standard_Type> & (Units_Unit::*)() const>(&Units_Unit::DynamicType),
R"#()#"
)
;
// Class Units_UnitsDictionary from ./opencascade/Units_UnitsDictionary.hxx
klass = m.attr("Units_UnitsDictionary");
// nested enums
static_cast<py::class_<Units_UnitsDictionary ,opencascade::handle<Units_UnitsDictionary> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Creates",
(void (Units_UnitsDictionary::*)() ) static_cast<void (Units_UnitsDictionary::*)() >(&Units_UnitsDictionary::Creates),
R"#(Returns a UnitsDictionary object which contains the sequence of all the units you want to consider, physical quantity by physical quantity.)#"
)
.def("Sequence",
(handle<Units_QuantitiesSequence> (Units_UnitsDictionary::*)() const) static_cast<handle<Units_QuantitiesSequence> (Units_UnitsDictionary::*)() const>(&Units_UnitsDictionary::Sequence),
R"#(Returns the head of the sequence of physical quantities.)#"
)
.def("ActiveUnit",
(TCollection_AsciiString (Units_UnitsDictionary::*)( const Standard_CString ) const) static_cast<TCollection_AsciiString (Units_UnitsDictionary::*)( const Standard_CString ) const>(&Units_UnitsDictionary::ActiveUnit),
R"#(Returns for <aquantity> the active unit.)#" , py::arg("aquantity")
)
.def("Dump",
(void (Units_UnitsDictionary::*)( const Standard_Integer ) const) static_cast<void (Units_UnitsDictionary::*)( const Standard_Integer ) const>(&Units_UnitsDictionary::Dump),
R"#(Dumps only the sequence of quantities without the units if <alevel> is equal to zero, and for each quantity all the units stored if <alevel> is equal to one.)#" , py::arg("alevel")
)
.def("Dump",
(void (Units_UnitsDictionary::*)( const handle<Units_Dimensions> & ) const) static_cast<void (Units_UnitsDictionary::*)( const handle<Units_Dimensions> & ) const>(&Units_UnitsDictionary::Dump),
R"#(Dumps for a designated physical dimensions <adimensions> all the previously stored units.)#" , py::arg("adimensions")
)
.def("Sequence",
(handle<Units_QuantitiesSequence> (Units_UnitsDictionary::*)() const) static_cast<handle<Units_QuantitiesSequence> (Units_UnitsDictionary::*)() const>(&Units_UnitsDictionary::Sequence),
R"#(Returns the head of the sequence of physical quantities.)#"
)
.def("Dump",
(void (Units_UnitsDictionary::*)( const Standard_Integer ) const) static_cast<void (Units_UnitsDictionary::*)( const Standard_Integer ) const>(&Units_UnitsDictionary::Dump),
R"#(Dumps only the sequence of quantities without the units if <alevel> is equal to zero, and for each quantity all the units stored if <alevel> is equal to one.)#" , py::arg("alevel")
)
.def("Dump",
(void (Units_UnitsDictionary::*)( const handle<Units_Dimensions> & ) const) static_cast<void (Units_UnitsDictionary::*)( const handle<Units_Dimensions> & ) const>(&Units_UnitsDictionary::Dump),
R"#(Dumps for a designated physical dimensions <adimensions> all the previously stored units.)#" , py::arg("adimensions")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_UnitsDictionary::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_UnitsDictionary::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_UnitsDictionary::*)() const) static_cast< const handle<Standard_Type> & (Units_UnitsDictionary::*)() const>(&Units_UnitsDictionary::DynamicType),
R"#()#"
)
;
// Class Units_UnitsSequence from ./opencascade/Units_UnitsSequence.hxx
klass = m.attr("Units_UnitsSequence");
// nested enums
static_cast<py::class_<Units_UnitsSequence ,opencascade::handle<Units_UnitsSequence> , Units_UtsSequence , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Units_UtsSequence & >() , py::arg("theOther") )
// custom constructors
// methods
.def("Append",
(void (Units_UnitsSequence::*)( const typename NCollection_Sequence<opencascade::handle<Units_Unit>>::value_type & ) ) static_cast<void (Units_UnitsSequence::*)( const typename NCollection_Sequence<opencascade::handle<Units_Unit>>::value_type & ) >(&Units_UnitsSequence::Append),
R"#()#" , py::arg("theItem")
)
.def("Append",
(void (Units_UnitsSequence::*)( Units_UtsSequence & ) ) static_cast<void (Units_UnitsSequence::*)( Units_UtsSequence & ) >(&Units_UnitsSequence::Append),
R"#()#" , 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 * (*)() >(&Units_UnitsSequence::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_UnitsSequence::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Sequence",
( const Units_UtsSequence & (Units_UnitsSequence::*)() const) static_cast< const Units_UtsSequence & (Units_UnitsSequence::*)() const>(&Units_UnitsSequence::Sequence),
R"#()#"
)
.def("ChangeSequence",
(Units_UtsSequence & (Units_UnitsSequence::*)() ) static_cast<Units_UtsSequence & (Units_UnitsSequence::*)() >(&Units_UnitsSequence::ChangeSequence),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
( const handle<Standard_Type> & (Units_UnitsSequence::*)() const) static_cast< const handle<Standard_Type> & (Units_UnitsSequence::*)() const>(&Units_UnitsSequence::DynamicType),
R"#()#"
)
;
// Class Units_UnitsSystem from ./opencascade/Units_UnitsSystem.hxx
klass = m.attr("Units_UnitsSystem");
// nested enums
static_cast<py::class_<Units_UnitsSystem ,opencascade::handle<Units_UnitsSystem> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_CString, const Standard_Boolean >() , py::arg("aName"), py::arg("Verbose")=static_cast< const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("QuantitiesSequence",
(handle<Units_QuantitiesSequence> (Units_UnitsSystem::*)() const) static_cast<handle<Units_QuantitiesSequence> (Units_UnitsSystem::*)() const>(&Units_UnitsSystem::QuantitiesSequence),
R"#(Returns the sequence of refined quantities.)#"
)
.def("ActiveUnitsSequence",
(handle<TColStd_HSequenceOfInteger> (Units_UnitsSystem::*)() const) static_cast<handle<TColStd_HSequenceOfInteger> (Units_UnitsSystem::*)() const>(&Units_UnitsSystem::ActiveUnitsSequence),
R"#(Returns a sequence of integer in correspondence with the sequence of quantities, which indicates, for each redefined quantity, the index into the sequence of units, of the active unit.)#"
)
.def("Specify",
(void (Units_UnitsSystem::*)( const Standard_CString , const Standard_CString ) ) static_cast<void (Units_UnitsSystem::*)( const Standard_CString , const Standard_CString ) >(&Units_UnitsSystem::Specify),
R"#(Specifies for <aquantity> the unit <aunit> used.)#" , py::arg("aquantity"), py::arg("aunit")
)
.def("Remove",
(void (Units_UnitsSystem::*)( const Standard_CString , const Standard_CString ) ) static_cast<void (Units_UnitsSystem::*)( const Standard_CString , const Standard_CString ) >(&Units_UnitsSystem::Remove),
R"#(Removes for <aquantity> the unit <aunit> used.)#" , py::arg("aquantity"), py::arg("aunit")
)
.def("Activate",
(void (Units_UnitsSystem::*)( const Standard_CString , const Standard_CString ) ) static_cast<void (Units_UnitsSystem::*)( const Standard_CString , const Standard_CString ) >(&Units_UnitsSystem::Activate),
R"#(Specifies for <aquantity> the unit <aunit> used.)#" , py::arg("aquantity"), py::arg("aunit")
)
.def("Activates",
(void (Units_UnitsSystem::*)() ) static_cast<void (Units_UnitsSystem::*)() >(&Units_UnitsSystem::Activates),
R"#(Activates the first unit of all defined system quantities)#"
)
.def("ActiveUnit",
(TCollection_AsciiString (Units_UnitsSystem::*)( const Standard_CString ) const) static_cast<TCollection_AsciiString (Units_UnitsSystem::*)( const Standard_CString ) const>(&Units_UnitsSystem::ActiveUnit),
R"#(Returns for <aquantity> the active unit.)#" , py::arg("aquantity")
)
.def("ConvertValueToUserSystem",
(Standard_Real (Units_UnitsSystem::*)( const Standard_CString , const Standard_Real , const Standard_CString ) const) static_cast<Standard_Real (Units_UnitsSystem::*)( const Standard_CString , const Standard_Real , const Standard_CString ) const>(&Units_UnitsSystem::ConvertValueToUserSystem),
R"#(Converts a real value <avalue> from the unit <aunit> belonging to the physical dimensions <aquantity> to the corresponding unit of the user system.)#" , py::arg("aquantity"), py::arg("avalue"), py::arg("aunit")
)
.def("ConvertSIValueToUserSystem",
(Standard_Real (Units_UnitsSystem::*)( const Standard_CString , const Standard_Real ) const) static_cast<Standard_Real (Units_UnitsSystem::*)( const Standard_CString , const Standard_Real ) const>(&Units_UnitsSystem::ConvertSIValueToUserSystem),
R"#(Converts the real value <avalue> from the S.I. system of units to the user system of units. <aquantity> is the physical dimensions of the measurement.)#" , py::arg("aquantity"), py::arg("avalue")
)
.def("ConvertUserSystemValueToSI",
(Standard_Real (Units_UnitsSystem::*)( const Standard_CString , const Standard_Real ) const) static_cast<Standard_Real (Units_UnitsSystem::*)( const Standard_CString , const Standard_Real ) const>(&Units_UnitsSystem::ConvertUserSystemValueToSI),
R"#(Converts the real value <avalue> from the user system of units to the S.I. system of units. <aquantity> is the physical dimensions of the measurement.)#" , py::arg("aquantity"), py::arg("avalue")
)
.def("Dump",
(void (Units_UnitsSystem::*)() const) static_cast<void (Units_UnitsSystem::*)() const>(&Units_UnitsSystem::Dump),
R"#()#"
)
.def("IsEmpty",
(Standard_Boolean (Units_UnitsSystem::*)() const) static_cast<Standard_Boolean (Units_UnitsSystem::*)() const>(&Units_UnitsSystem::IsEmpty),
R"#(Returns TRUE if no units has been defined in the system.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_UnitsSystem::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_UnitsSystem::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_UnitsSystem::*)() const) static_cast< const handle<Standard_Type> & (Units_UnitsSystem::*)() const>(&Units_UnitsSystem::DynamicType),
R"#()#"
)
;
// Class Units_MathSentence from ./opencascade/Units_MathSentence.hxx
klass = m.attr("Units_MathSentence");
// nested enums
static_cast<py::class_<Units_MathSentence , shared_ptr<Units_MathSentence> , Units_Sentence >>(klass)
// constructors
.def(py::init< const Standard_CString >() , py::arg("astring") )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class Units_ShiftedToken from ./opencascade/Units_ShiftedToken.hxx
klass = m.attr("Units_ShiftedToken");
// nested enums
static_cast<py::class_<Units_ShiftedToken ,opencascade::handle<Units_ShiftedToken> , Units_Token >>(klass)
// constructors
.def(py::init< const Standard_CString, const Standard_CString, const Standard_Real, const Standard_Real, const handle<Units_Dimensions> & >() , py::arg("aword"), py::arg("amean"), py::arg("avalue"), py::arg("amove"), py::arg("adimensions") )
// custom constructors
// methods
.def("Creates",
(handle<Units_Token> (Units_ShiftedToken::*)() const) static_cast<handle<Units_Token> (Units_ShiftedToken::*)() const>(&Units_ShiftedToken::Creates),
R"#(Creates and returns a token, which is a ShiftedToken.)#"
)
.def("Move",
(Standard_Real (Units_ShiftedToken::*)() const) static_cast<Standard_Real (Units_ShiftedToken::*)() const>(&Units_ShiftedToken::Move),
R"#(Returns the gap <themove>)#"
)
.def("Multiplied",
(Standard_Real (Units_ShiftedToken::*)( const Standard_Real ) const) static_cast<Standard_Real (Units_ShiftedToken::*)( const Standard_Real ) const>(&Units_ShiftedToken::Multiplied),
R"#(This virtual method is called by the Measurement methods, to compute the measurement during a conversion.)#" , py::arg("avalue")
)
.def("Divided",
(Standard_Real (Units_ShiftedToken::*)( const Standard_Real ) const) static_cast<Standard_Real (Units_ShiftedToken::*)( const Standard_Real ) const>(&Units_ShiftedToken::Divided),
R"#(This virtual method is called by the Measurement methods, to compute the measurement during a conversion.)#" , py::arg("avalue")
)
.def("Dump",
(void (Units_ShiftedToken::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (Units_ShiftedToken::*)( const Standard_Integer , const Standard_Integer ) const>(&Units_ShiftedToken::Dump),
R"#()#" , py::arg("ashift"), py::arg("alevel")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_ShiftedToken::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_ShiftedToken::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_ShiftedToken::*)() const) static_cast< const handle<Standard_Type> & (Units_ShiftedToken::*)() const>(&Units_ShiftedToken::DynamicType),
R"#()#"
)
;
// Class Units_ShiftedUnit from ./opencascade/Units_ShiftedUnit.hxx
klass = m.attr("Units_ShiftedUnit");
// nested enums
static_cast<py::class_<Units_ShiftedUnit ,opencascade::handle<Units_ShiftedUnit> , Units_Unit >>(klass)
// constructors
.def(py::init< const Standard_CString, const Standard_CString, const Standard_Real, const Standard_Real, const handle<Units_Quantity> & >() , py::arg("aname"), py::arg("asymbol"), py::arg("avalue"), py::arg("amove"), py::arg("aquantity") )
.def(py::init< const Standard_CString, const Standard_CString >() , py::arg("aname"), py::arg("asymbol") )
.def(py::init< const Standard_CString >() , py::arg("aname") )
// custom constructors
// methods
.def("Move",
(void (Units_ShiftedUnit::*)( const Standard_Real ) ) static_cast<void (Units_ShiftedUnit::*)( const Standard_Real ) >(&Units_ShiftedUnit::Move),
R"#(Sets the field <themove> to <amove>)#" , py::arg("amove")
)
.def("Move",
(Standard_Real (Units_ShiftedUnit::*)() const) static_cast<Standard_Real (Units_ShiftedUnit::*)() const>(&Units_ShiftedUnit::Move),
R"#(Returns the shifted value <themove>.)#"
)
.def("Token",
(handle<Units_Token> (Units_ShiftedUnit::*)() const) static_cast<handle<Units_Token> (Units_ShiftedUnit::*)() const>(&Units_ShiftedUnit::Token),
R"#(This redefined method returns a ShiftedToken object.)#"
)
.def("Dump",
(void (Units_ShiftedUnit::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (Units_ShiftedUnit::*)( const Standard_Integer , const Standard_Integer ) const>(&Units_ShiftedUnit::Dump),
R"#()#" , py::arg("ashift"), py::arg("alevel")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_ShiftedUnit::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_ShiftedUnit::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_ShiftedUnit::*)() const) static_cast< const handle<Standard_Type> & (Units_ShiftedUnit::*)() const>(&Units_ShiftedUnit::DynamicType),
R"#()#"
)
;
// Class Units_UnitSentence from ./opencascade/Units_UnitSentence.hxx
klass = m.attr("Units_UnitSentence");
// nested enums
static_cast<py::class_<Units_UnitSentence , shared_ptr<Units_UnitSentence> , Units_Sentence >>(klass)
// constructors
.def(py::init< const Standard_CString >() , py::arg("astring") )
.def(py::init< const Standard_CString, const handle<Units_QuantitiesSequence> & >() , py::arg("astring"), py::arg("aquantitiessequence") )
// custom constructors
// methods
.def("Analyse",
(void (Units_UnitSentence::*)() ) static_cast<void (Units_UnitSentence::*)() >(&Units_UnitSentence::Analyse),
R"#(Analyzes the sequence of tokens created by the constructor to find the true significance of each token.)#"
)
.def("SetUnits",
(void (Units_UnitSentence::*)( const handle<Units_QuantitiesSequence> & ) ) static_cast<void (Units_UnitSentence::*)( const handle<Units_QuantitiesSequence> & ) >(&Units_UnitSentence::SetUnits),
R"#(For each token which represents a unit, finds in the sequence of physical quantities all the characteristics of the unit found.)#" , py::arg("aquantitiessequence")
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class Units_UnitsLexicon from ./opencascade/Units_UnitsLexicon.hxx
klass = m.attr("Units_UnitsLexicon");
// nested enums
static_cast<py::class_<Units_UnitsLexicon ,opencascade::handle<Units_UnitsLexicon> , Units_Lexicon >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Creates",
(void (Units_UnitsLexicon::*)( const Standard_Boolean ) ) static_cast<void (Units_UnitsLexicon::*)( const Standard_Boolean ) >(&Units_UnitsLexicon::Creates),
R"#(Reads the files <afilename1> and <afilename2> to create a sequence of tokens stored in <thesequenceoftokens>.)#" , py::arg("amode")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Dump",
(void (Units_UnitsLexicon::*)() const) static_cast<void (Units_UnitsLexicon::*)() const>(&Units_UnitsLexicon::Dump),
R"#(Useful for debugging.)#"
)
.def("Dump",
(void (Units_UnitsLexicon::*)() const) static_cast<void (Units_UnitsLexicon::*)() const>(&Units_UnitsLexicon::Dump),
R"#(Useful for debugging.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Units_UnitsLexicon::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Units_UnitsLexicon::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
( const handle<Standard_Type> & (Units_UnitsLexicon::*)() const) static_cast< const handle<Standard_Type> & (Units_UnitsLexicon::*)() const>(&Units_UnitsLexicon::DynamicType),
R"#()#"
)
;
// functions
// ./opencascade/Units.hxx
// ./opencascade/Units_Dimensions.hxx
// ./opencascade/Units_Explorer.hxx
// ./opencascade/Units_Lexicon.hxx
// ./opencascade/Units_MathSentence.hxx
// ./opencascade/Units_Measurement.hxx
// ./opencascade/Units_NoSuchType.hxx
// ./opencascade/Units_NoSuchUnit.hxx
// ./opencascade/Units_Operators.hxx
m.def("pow",
(handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const Standard_Real )) static_cast<handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const Standard_Real )>(&pow),
R"#()#" , py::arg("arg0"), py::arg("arg1")
);
m.def("pow",
(handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )>(&pow),
R"#()#" , py::arg("arg0"), py::arg("arg1")
);
m.def("pow",
(handle<Units_Token> (*)( const handle<Units_Token> & , const Standard_Real )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const Standard_Real )>(&pow),
R"#()#" , py::arg("arg0"), py::arg("arg1")
);
// ./opencascade/Units_QtsSequence.hxx
// ./opencascade/Units_QuantitiesSequence.hxx
// ./opencascade/Units_Quantity.hxx
// ./opencascade/Units_Sentence.hxx
// ./opencascade/Units_ShiftedToken.hxx
// ./opencascade/Units_ShiftedUnit.hxx
// ./opencascade/Units_TksSequence.hxx
// ./opencascade/Units_Token.hxx
// ./opencascade/Units_TokensSequence.hxx
// ./opencascade/Units_Unit.hxx
// ./opencascade/Units_UnitSentence.hxx
// ./opencascade/Units_UnitsDictionary.hxx
// ./opencascade/Units_UnitsLexicon.hxx
// ./opencascade/Units_UnitsSequence.hxx
// ./opencascade/Units_UnitsSystem.hxx
// ./opencascade/Units_UtsSequence.hxx
// Additional functions
// operators
m.def("__mul__",
(handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const handle<Units_Dimensions> & )) static_cast<handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const handle<Units_Dimensions> & )>(&operator*),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__rmul__",
(handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const handle<Units_Dimensions> & )) static_cast<handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const handle<Units_Dimensions> & )>(&operator*),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__truediv__",
(handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const handle<Units_Dimensions> & )) static_cast<handle<Units_Dimensions> (*)( const handle<Units_Dimensions> & , const handle<Units_Dimensions> & )>(&operator/),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__add__",
(handle<Units_Token> (*)( const handle<Units_Token> & , const Standard_Integer )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const Standard_Integer )>(&operator+),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__add__",
(handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )>(&operator+),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__sub__",
(handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )>(&operator-),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__mul__",
(handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )>(&operator*),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__rmul__",
(handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )>(&operator*),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
m.def("__truediv__",
(handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )) static_cast<handle<Units_Token> (*)( const handle<Units_Token> & , const handle<Units_Token> & )>(&operator/),
py::is_operator(),
R"#()#" , py::arg("arg0"), py::arg("arg1"));
// register typdefs
register_template_NCollection_Sequence<opencascade::handle<Units_Quantity>>(m,"Units_QtsSequence");
register_template_NCollection_Sequence<opencascade::handle<Units_Token>>(m,"Units_TksSequence");
register_template_NCollection_Sequence<opencascade::handle<Units_Unit>>(m,"Units_UtsSequence");
// exceptions
register_occ_exception<Units_NoSuchType>(m, "Units_NoSuchType");
register_occ_exception<Units_NoSuchUnit>(m, "Units_NoSuchUnit");
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|