From f596c338c06e2139eac76193f661b586b35bbd8e Mon Sep 17 00:00:00 2001 From: Martin Siggel Date: Thu, 15 Nov 2018 13:56:15 +0100 Subject: [PATCH 1/9] Implemented transparent handle The OCCT handle smart pointer API is a C++ specific detail and should not be exposed to Python. Instead it should be completely invisible. I used the std::shared_ptr swig library as a basis for the implementation. To be compatible with most of the "old" code, GetHandle() and GetObject() methods still exist but do nothing except from a deprecation warning. In general, I tried to make sure that the code is backwards compatible as possible. Closes #539 Updated SWIG files --- CMakeLists.txt | 3 + src/Display/OCCViewer.py | 81 +- src/SWIG_files/common/OccHandle.i | 267 + src/SWIG_files/wrapper/AIS.i | 3017 +------- src/SWIG_files/wrapper/Adaptor2d.i | 217 +- src/SWIG_files/wrapper/Adaptor3d.i | 548 +- src/SWIG_files/wrapper/AdvApp2Var.i | 214 +- src/SWIG_files/wrapper/AdvApprox.i | 23 +- src/SWIG_files/wrapper/AppBlend.i | 19 +- src/SWIG_files/wrapper/AppCont.i | 31 +- src/SWIG_files/wrapper/AppDef.i | 176 +- src/SWIG_files/wrapper/AppParCurves.i | 305 +- src/SWIG_files/wrapper/AppStd.i | 66 +- src/SWIG_files/wrapper/AppStdL.i | 66 +- src/SWIG_files/wrapper/Approx.i | 259 +- src/SWIG_files/wrapper/ApproxInt.i | 19 +- src/SWIG_files/wrapper/Aspect.i | 455 +- src/SWIG_files/wrapper/BOPAlgo.i | 19 +- src/SWIG_files/wrapper/BOPAlgo_headers.i | 533 ++ src/SWIG_files/wrapper/BOPCol.i | 22 +- src/SWIG_files/wrapper/BOPDS.i | 117 +- src/SWIG_files/wrapper/BOPInt.i | 17 +- src/SWIG_files/wrapper/BOPTools.i | 20 +- src/SWIG_files/wrapper/BOPTools_headers.i | 399 + src/SWIG_files/wrapper/BRep.i | 1017 +-- src/SWIG_files/wrapper/BRepAdaptor.i | 268 +- src/SWIG_files/wrapper/BRepAlgo.i | 261 +- src/SWIG_files/wrapper/BRepAlgoAPI.i | 84 +- src/SWIG_files/wrapper/BRepAlgoAPI_headers.i | 650 ++ src/SWIG_files/wrapper/BRepApprox.i | 70 +- src/SWIG_files/wrapper/BRepBlend.i | 348 +- src/SWIG_files/wrapper/BRepBndLib.i | 21 +- src/SWIG_files/wrapper/BRepBndLib_headers.i | 11 + src/SWIG_files/wrapper/BRepBuilderAPI.i | 175 +- src/SWIG_files/wrapper/BRepCheck.i | 491 +- src/SWIG_files/wrapper/BRepClass.i | 22 +- src/SWIG_files/wrapper/BRepClass3d.i | 66 +- src/SWIG_files/wrapper/BRepClass_headers.i | 227 + src/SWIG_files/wrapper/BRepExtrema.i | 21 +- src/SWIG_files/wrapper/BRepExtrema_headers.i | 102 + src/SWIG_files/wrapper/BRepFeat.i | 62 +- src/SWIG_files/wrapper/BRepFeat_headers.i | 826 ++ src/SWIG_files/wrapper/BRepFill.i | 1053 +-- src/SWIG_files/wrapper/BRepFilletAPI.i | 19 +- .../wrapper/BRepFilletAPI_headers.i | 732 ++ src/SWIG_files/wrapper/BRepGProp.i | 31 +- src/SWIG_files/wrapper/BRepGProp_headers.i | 87 + src/SWIG_files/wrapper/BRepIntCurveSurface.i | 26 +- .../wrapper/BRepIntCurveSurface_headers.i | 138 + src/SWIG_files/wrapper/BRepLProp.i | 22 +- src/SWIG_files/wrapper/BRepLProp_headers.i | 141 + src/SWIG_files/wrapper/BRepLib.i | 26 +- src/SWIG_files/wrapper/BRepLib_headers.i | 22 + src/SWIG_files/wrapper/BRepMAT2d.i | 114 +- src/SWIG_files/wrapper/BRepMesh.i | 299 +- src/SWIG_files/wrapper/BRepOffset.i | 208 +- src/SWIG_files/wrapper/BRepOffsetAPI.i | 113 +- src/SWIG_files/wrapper/BRepPrim.i | 39 +- src/SWIG_files/wrapper/BRepPrimAPI.i | 81 +- src/SWIG_files/wrapper/BRepPrimAPI_headers.i | 229 + src/SWIG_files/wrapper/BRepPrim_headers.i | 34 + src/SWIG_files/wrapper/BRepProj.i | 27 +- src/SWIG_files/wrapper/BRepProj_headers.i | 11 + src/SWIG_files/wrapper/BRepSweep.i | 21 +- src/SWIG_files/wrapper/BRepTools.i | 337 +- src/SWIG_files/wrapper/BRepTopAdaptor.i | 177 +- src/SWIG_files/wrapper/BSplCLib.i | 93 +- src/SWIG_files/wrapper/BSplSLib.i | 69 +- src/SWIG_files/wrapper/BiTgte.i | 161 +- src/SWIG_files/wrapper/BinDrivers.i | 113 +- src/SWIG_files/wrapper/BinLDrivers.i | 113 +- src/SWIG_files/wrapper/BinMDF.i | 317 +- src/SWIG_files/wrapper/BinMDataStd.i | 1242 +-- src/SWIG_files/wrapper/BinMDataXtd.i | 396 +- src/SWIG_files/wrapper/BinMDocStd.i | 67 +- src/SWIG_files/wrapper/BinMFunction.i | 161 +- src/SWIG_files/wrapper/BinMNaming.i | 114 +- src/SWIG_files/wrapper/BinMPrsStd.i | 114 +- src/SWIG_files/wrapper/BinMXCAFDoc.i | 724 +- src/SWIG_files/wrapper/BinObjMgt.i | 21 +- src/SWIG_files/wrapper/BinTObjDrivers.i | 346 +- src/SWIG_files/wrapper/BinXCAFDrivers.i | 113 +- src/SWIG_files/wrapper/Bisector.i | 209 +- src/SWIG_files/wrapper/Blend.i | 66 +- src/SWIG_files/wrapper/BlendFunc.i | 23 +- src/SWIG_files/wrapper/BlendFunc_headers.i | 65 + src/SWIG_files/wrapper/Bnd.i | 230 +- src/SWIG_files/wrapper/BndLib.i | 41 +- src/SWIG_files/wrapper/BndLib_headers.i | 43 + src/SWIG_files/wrapper/CDF.i | 348 +- src/SWIG_files/wrapper/CDM.i | 583 +- src/SWIG_files/wrapper/CPnts.i | 25 +- src/SWIG_files/wrapper/CPnts_headers.i | 65 + src/SWIG_files/wrapper/CSLib.i | 24 +- src/SWIG_files/wrapper/ChFi2d.i | 38 +- src/SWIG_files/wrapper/ChFi2d_headers.i | 33 + src/SWIG_files/wrapper/ChFi3d.i | 20 +- src/SWIG_files/wrapper/ChFi3d_headers.i | 182 + src/SWIG_files/wrapper/ChFiDS.i | 678 +- src/SWIG_files/wrapper/ChFiKPart.i | 73 +- src/SWIG_files/wrapper/Contap.i | 349 +- src/SWIG_files/wrapper/Convert.i | 76 +- src/SWIG_files/wrapper/Dico.i | 211 +- src/SWIG_files/wrapper/Draft.i | 207 +- src/SWIG_files/wrapper/DsgPrs.i | 19 +- src/SWIG_files/wrapper/Dynamic.i | 17 +- src/SWIG_files/wrapper/ElCLib.i | 38 +- src/SWIG_files/wrapper/ElSLib.i | 37 +- src/SWIG_files/wrapper/Expr.i | 2379 +----- src/SWIG_files/wrapper/ExprIntrp.i | 445 +- src/SWIG_files/wrapper/Extrema.i | 970 +-- src/SWIG_files/wrapper/FEmTool.i | 491 +- src/SWIG_files/wrapper/FSD.i | 18 +- src/SWIG_files/wrapper/FairCurve.i | 23 +- src/SWIG_files/wrapper/FilletSurf.i | 22 +- src/SWIG_files/wrapper/FilletSurf_headers.i | 731 ++ src/SWIG_files/wrapper/GC.i | 19 +- src/SWIG_files/wrapper/GCE2d.i | 19 +- src/SWIG_files/wrapper/GCPnts.i | 26 +- src/SWIG_files/wrapper/GCPnts_headers.i | 65 + src/SWIG_files/wrapper/GProp.i | 35 +- src/SWIG_files/wrapper/GccAna.i | 22 +- src/SWIG_files/wrapper/GccEnt.i | 36 +- src/SWIG_files/wrapper/GccGeo.i | 17 +- src/SWIG_files/wrapper/GccInt.i | 352 +- src/SWIG_files/wrapper/GccIter.i | 17 +- src/SWIG_files/wrapper/Geom.i | 1873 +---- src/SWIG_files/wrapper/Geom2d.i | 981 +-- src/SWIG_files/wrapper/Geom2dAPI.i | 55 +- src/SWIG_files/wrapper/Geom2dAPI_headers.i | 120 + src/SWIG_files/wrapper/Geom2dAdaptor.i | 116 +- src/SWIG_files/wrapper/Geom2dConvert.i | 40 +- src/SWIG_files/wrapper/Geom2dGcc.i | 33 +- src/SWIG_files/wrapper/Geom2dGcc_headers.i | 51 + src/SWIG_files/wrapper/Geom2dHatch.i | 113 +- src/SWIG_files/wrapper/Geom2dInt.i | 73 +- src/SWIG_files/wrapper/Geom2dLProp.i | 26 +- src/SWIG_files/wrapper/GeomAPI.i | 56 +- src/SWIG_files/wrapper/GeomAPI_headers.i | 44 + src/SWIG_files/wrapper/GeomAbs.i | 41 +- src/SWIG_files/wrapper/GeomAdaptor.i | 209 +- src/SWIG_files/wrapper/GeomConvert.i | 45 +- src/SWIG_files/wrapper/GeomConvert_headers.i | 22 + src/SWIG_files/wrapper/GeomFill.i | 1570 +--- src/SWIG_files/wrapper/GeomInt.i | 69 +- src/SWIG_files/wrapper/GeomLProp.i | 22 +- src/SWIG_files/wrapper/GeomLib.i | 23 +- src/SWIG_files/wrapper/GeomLib_headers.i | 6 + src/SWIG_files/wrapper/GeomPlate.i | 489 +- src/SWIG_files/wrapper/GeomProjLib.i | 20 +- src/SWIG_files/wrapper/GeomToStep.i | 22 +- src/SWIG_files/wrapper/GeomToStep_headers.i | 136 + src/SWIG_files/wrapper/GeomTools.i | 72 +- src/SWIG_files/wrapper/GraphDS.i | 17 +- src/SWIG_files/wrapper/GraphTools.i | 17 +- src/SWIG_files/wrapper/Graphic3d.i | 1967 +---- src/SWIG_files/wrapper/HLRAlgo.i | 650 +- src/SWIG_files/wrapper/HLRAppli.i | 21 +- src/SWIG_files/wrapper/HLRAppli_headers.i | 11 + src/SWIG_files/wrapper/HLRBRep.i | 446 +- src/SWIG_files/wrapper/HLRTopoBRep.i | 212 +- src/SWIG_files/wrapper/Hatch.i | 125 +- src/SWIG_files/wrapper/HatchGen.i | 160 +- src/SWIG_files/wrapper/Hermit.i | 35 +- src/SWIG_files/wrapper/IFSelect.i | 3620 +-------- src/SWIG_files/wrapper/IGESCAFControl.i | 21 +- .../wrapper/IGESCAFControl_headers.i | 499 ++ src/SWIG_files/wrapper/IGESControl.i | 256 +- src/SWIG_files/wrapper/IGESControl_headers.i | 45 + src/SWIG_files/wrapper/IVtk.i | 17 +- src/SWIG_files/wrapper/IVtkOCC.i | 17 +- src/SWIG_files/wrapper/IVtkTools.i | 17 +- src/SWIG_files/wrapper/IVtkVTK.i | 17 +- src/SWIG_files/wrapper/Image.i | 19 +- src/SWIG_files/wrapper/IncludeLibrary.i | 16 +- src/SWIG_files/wrapper/IntAna.i | 86 +- src/SWIG_files/wrapper/IntAna2d.i | 27 +- src/SWIG_files/wrapper/IntCurve.i | 62 +- src/SWIG_files/wrapper/IntCurveSurface.i | 123 +- src/SWIG_files/wrapper/IntCurvesFace.i | 38 +- .../wrapper/IntCurvesFace_headers.i | 100 + src/SWIG_files/wrapper/IntImp.i | 20 +- src/SWIG_files/wrapper/IntImpParGen.i | 27 +- src/SWIG_files/wrapper/IntPatch.i | 593 +- src/SWIG_files/wrapper/IntPoly.i | 17 +- src/SWIG_files/wrapper/IntPolyh.i | 94 +- src/SWIG_files/wrapper/IntRes2d.i | 121 +- src/SWIG_files/wrapper/IntStart.i | 75 +- src/SWIG_files/wrapper/IntSurf.i | 263 +- src/SWIG_files/wrapper/IntTools.i | 725 +- src/SWIG_files/wrapper/IntWalk.i | 30 +- src/SWIG_files/wrapper/IntWalk_headers.i | 65 + src/SWIG_files/wrapper/Interface.i | 1386 +--- src/SWIG_files/wrapper/InterfaceGraphic.i | 17 +- src/SWIG_files/wrapper/Intf.i | 165 +- src/SWIG_files/wrapper/Intrv.i | 66 +- src/SWIG_files/wrapper/LDOM.i | 16 +- src/SWIG_files/wrapper/LProp.i | 93 +- src/SWIG_files/wrapper/LProp3d.i | 22 +- src/SWIG_files/wrapper/LProp3d_headers.i | 65 + src/SWIG_files/wrapper/Law.i | 443 +- src/SWIG_files/wrapper/LocOpe.i | 397 +- src/SWIG_files/wrapper/LocalAnalysis.i | 22 +- src/SWIG_files/wrapper/MAT.i | 818 +- src/SWIG_files/wrapper/MAT2d.i | 585 +- src/SWIG_files/wrapper/MDF.i | 982 +-- src/SWIG_files/wrapper/MDataStd.i | 2706 +------ src/SWIG_files/wrapper/MDataXtd.i | 775 +- src/SWIG_files/wrapper/MDocStd.i | 208 +- src/SWIG_files/wrapper/MFunction.i | 113 +- src/SWIG_files/wrapper/MMgt.i | 69 +- src/SWIG_files/wrapper/MNaming.i | 302 +- src/SWIG_files/wrapper/MPrsStd.i | 258 +- src/SWIG_files/wrapper/Materials.i | 17 +- src/SWIG_files/wrapper/MeshVS.i | 1529 +--- src/SWIG_files/wrapper/Message.i | 398 +- src/SWIG_files/wrapper/NCollection.i | 16 +- src/SWIG_files/wrapper/NETGENPlugin.i | 17 +- src/SWIG_files/wrapper/NIS.i | 395 +- src/SWIG_files/wrapper/NLPlate.i | 489 +- src/SWIG_files/wrapper/OSD.i | 27 +- src/SWIG_files/wrapper/PCDM.i | 488 +- src/SWIG_files/wrapper/PCDM_headers.i | 80 + src/SWIG_files/wrapper/PDF.i | 299 +- src/SWIG_files/wrapper/PDataStd.i | 1817 +---- src/SWIG_files/wrapper/PDataXtd.i | 435 +- src/SWIG_files/wrapper/PDocStd.i | 112 +- src/SWIG_files/wrapper/PFunction.i | 65 +- src/SWIG_files/wrapper/PLib.i | 164 +- src/SWIG_files/wrapper/PNaming.i | 434 +- src/SWIG_files/wrapper/PPrsStd.i | 111 +- src/SWIG_files/wrapper/Plate.i | 207 +- src/SWIG_files/wrapper/Plugin.i | 18 +- src/SWIG_files/wrapper/Poly.i | 264 +- src/SWIG_files/wrapper/Precision.i | 91 +- src/SWIG_files/wrapper/Primitives.i | 17 +- src/SWIG_files/wrapper/ProjLib.i | 245 +- src/SWIG_files/wrapper/Prs3d.i | 757 +- src/SWIG_files/wrapper/PrsMgr.i | 266 +- src/SWIG_files/wrapper/Quantity.i | 95 +- src/SWIG_files/wrapper/RWStepAP203.i | 20 +- src/SWIG_files/wrapper/RWStepAP203_headers.i | 68 + src/SWIG_files/wrapper/RWStepAP214.i | 113 +- src/SWIG_files/wrapper/RWStepBasic.i | 19 +- src/SWIG_files/wrapper/RWStepBasic_headers.i | 22 + src/SWIG_files/wrapper/RWStepDimTol.i | 20 +- src/SWIG_files/wrapper/RWStepDimTol_headers.i | 490 ++ src/SWIG_files/wrapper/RWStepElement.i | 19 +- .../wrapper/RWStepElement_headers.i | 253 + src/SWIG_files/wrapper/RWStepFEA.i | 19 +- src/SWIG_files/wrapper/RWStepFEA_headers.i | 438 ++ src/SWIG_files/wrapper/RWStepGeom.i | 19 +- src/SWIG_files/wrapper/RWStepGeom_headers.i | 90 + src/SWIG_files/wrapper/RWStepRepr.i | 19 +- src/SWIG_files/wrapper/RWStepRepr_headers.i | 22 + src/SWIG_files/wrapper/RWStepShape.i | 19 +- src/SWIG_files/wrapper/RWStepShape_headers.i | 204 + src/SWIG_files/wrapper/RWStepVisual.i | 19 +- src/SWIG_files/wrapper/RWStepVisual_headers.i | 367 + src/SWIG_files/wrapper/RWStl.i | 29 +- src/SWIG_files/wrapper/Resource.i | 162 +- src/SWIG_files/wrapper/SMDS.i | 17 +- src/SWIG_files/wrapper/SMDSAbs.i | 17 +- src/SWIG_files/wrapper/SMESH.i | 20 +- src/SWIG_files/wrapper/SMESHDS.i | 17 +- src/SWIG_files/wrapper/SMESHDS_headers.i | 11 + src/SWIG_files/wrapper/STEPCAFControl.i | 539 +- .../wrapper/STEPCAFControl_headers.i | 44 + src/SWIG_files/wrapper/STEPConstruct.i | 119 +- .../wrapper/STEPConstruct_headers.i | 45 + src/SWIG_files/wrapper/STEPControl.i | 162 +- src/SWIG_files/wrapper/STEPControl_headers.i | 45 + src/SWIG_files/wrapper/STEPEdit.i | 115 +- src/SWIG_files/wrapper/STEPSelections.i | 537 +- .../wrapper/STEPSelections_headers.i | 44 + src/SWIG_files/wrapper/Select3D.i | 677 +- src/SWIG_files/wrapper/SelectBasics.i | 114 +- src/SWIG_files/wrapper/SelectMgr.i | 912 +-- src/SWIG_files/wrapper/SelectMgr_headers.i | 21 + src/SWIG_files/wrapper/ShapeAlgo.i | 67 +- src/SWIG_files/wrapper/ShapeAnalysis.i | 409 +- src/SWIG_files/wrapper/ShapeBuild.i | 68 +- src/SWIG_files/wrapper/ShapeConstruct.i | 73 +- src/SWIG_files/wrapper/ShapeCustom.i | 267 +- src/SWIG_files/wrapper/ShapeExtend.i | 362 +- src/SWIG_files/wrapper/ShapeFix.i | 731 +- src/SWIG_files/wrapper/ShapeProcess.i | 307 +- src/SWIG_files/wrapper/ShapeProcessAPI.i | 21 +- .../wrapper/ShapeProcessAPI_headers.i | 226 + src/SWIG_files/wrapper/ShapeUpgrade.i | 1156 +-- src/SWIG_files/wrapper/SortTools.i | 21 +- src/SWIG_files/wrapper/Standard.i | 214 +- src/SWIG_files/wrapper/StdFail.i | 18 +- src/SWIG_files/wrapper/StdMeshers.i | 17 +- src/SWIG_files/wrapper/StdMeshers_headers.i | 647 ++ src/SWIG_files/wrapper/StdPrs.i | 24 +- src/SWIG_files/wrapper/StdPrs_headers.i | 307 + src/SWIG_files/wrapper/StdSelect.i | 37 +- src/SWIG_files/wrapper/StepAP203.i | 1007 +-- src/SWIG_files/wrapper/StepAP209.i | 20 +- src/SWIG_files/wrapper/StepAP209_headers.i | 678 +- src/SWIG_files/wrapper/StepAP214.i | 2094 +---- src/SWIG_files/wrapper/StepBasic.i | 6738 +---------------- src/SWIG_files/wrapper/StepDimTol.i | 1291 +--- src/SWIG_files/wrapper/StepElement.i | 1903 +---- src/SWIG_files/wrapper/StepFEA.i | 3280 +------- src/SWIG_files/wrapper/StepGeom.i | 4400 +---------- src/SWIG_files/wrapper/StepRepr.i | 2752 +------ src/SWIG_files/wrapper/StepShape.i | 4790 +----------- src/SWIG_files/wrapper/StepToGeom.i | 21 +- src/SWIG_files/wrapper/StepToGeom_headers.i | 136 + src/SWIG_files/wrapper/StepToTopoDS.i | 257 +- src/SWIG_files/wrapper/StepToTopoDS_headers.i | 51 + src/SWIG_files/wrapper/StepVisual.i | 3803 +--------- src/SWIG_files/wrapper/StlAPI.i | 21 +- src/SWIG_files/wrapper/StlAPI_headers.i | 11 + src/SWIG_files/wrapper/StlMesh.i | 304 +- src/SWIG_files/wrapper/StlTransfer.i | 25 +- src/SWIG_files/wrapper/StlTransfer_headers.i | 11 + src/SWIG_files/wrapper/Storage.i | 884 +-- src/SWIG_files/wrapper/Sweep.i | 21 +- src/SWIG_files/wrapper/TColGeom.i | 492 +- src/SWIG_files/wrapper/TColGeom2d.i | 400 +- src/SWIG_files/wrapper/TColQuantity.i | 115 +- src/SWIG_files/wrapper/TColStd.i | 2373 +----- src/SWIG_files/wrapper/TColgp.i | 1809 +---- src/SWIG_files/wrapper/TCollection.i | 209 +- src/SWIG_files/wrapper/TDF.i | 1631 +--- src/SWIG_files/wrapper/TDataStd.i | 2220 +----- src/SWIG_files/wrapper/TDataXtd.i | 549 +- src/SWIG_files/wrapper/TDocStd.i | 613 +- src/SWIG_files/wrapper/TFunction.i | 442 +- src/SWIG_files/wrapper/TNaming.i | 645 +- src/SWIG_files/wrapper/TPrsStd.i | 544 +- src/SWIG_files/wrapper/TShort.i | 207 +- src/SWIG_files/wrapper/TopAbs.i | 37 +- src/SWIG_files/wrapper/TopBas.i | 75 +- src/SWIG_files/wrapper/TopClass.i | 23 +- src/SWIG_files/wrapper/TopClass_headers.i | 138 + src/SWIG_files/wrapper/TopCnx.i | 46 +- src/SWIG_files/wrapper/TopExp.i | 30 +- src/SWIG_files/wrapper/TopLoc.i | 217 +- src/SWIG_files/wrapper/TopOpeBRep.i | 397 +- src/SWIG_files/wrapper/TopOpeBRepBuild.i | 454 +- src/SWIG_files/wrapper/TopOpeBRepDS.i | 1338 +--- src/SWIG_files/wrapper/TopOpeBRepTool.i | 446 +- src/SWIG_files/wrapper/TopTools.i | 1145 +-- src/SWIG_files/wrapper/TopTrans.i | 54 +- src/SWIG_files/wrapper/TopoDS.i | 541 +- src/SWIG_files/wrapper/TopoDSToStep.i | 33 +- src/SWIG_files/wrapper/TopoDSToStep_headers.i | 51 + src/SWIG_files/wrapper/Transfer.i | 1292 +--- src/SWIG_files/wrapper/TransferBRep.i | 398 +- src/SWIG_files/wrapper/UTL.i | 19 +- src/SWIG_files/wrapper/Units.i | 681 +- src/SWIG_files/wrapper/UnitsAPI.i | 44 +- src/SWIG_files/wrapper/V3d.i | 681 +- src/SWIG_files/wrapper/Visual3d.i | 454 +- src/SWIG_files/wrapper/Voxel.i | 67 +- src/SWIG_files/wrapper/Vrml.i | 487 +- src/SWIG_files/wrapper/VrmlAPI.i | 20 +- src/SWIG_files/wrapper/VrmlConverter.i | 317 +- src/SWIG_files/wrapper/VrmlData.i | 910 +-- src/SWIG_files/wrapper/XBRepMesh.i | 17 +- src/SWIG_files/wrapper/XBRepMesh_headers.i | 250 + src/SWIG_files/wrapper/XCAFApp.i | 71 +- src/SWIG_files/wrapper/XCAFDoc.i | 879 +-- src/SWIG_files/wrapper/XCAFPrs.i | 274 +- src/SWIG_files/wrapper/XCAFPrs_headers.i | 120 +- src/SWIG_files/wrapper/XSControl.i | 350 +- src/SWIG_files/wrapper/XSControl_headers.i | 45 + src/SWIG_files/wrapper/XmlDrivers.i | 113 +- src/SWIG_files/wrapper/XmlLDrivers.i | 160 +- src/SWIG_files/wrapper/XmlMDF.i | 317 +- src/SWIG_files/wrapper/XmlMDataStd.i | 1243 +-- src/SWIG_files/wrapper/XmlMDataXtd.i | 397 +- src/SWIG_files/wrapper/XmlMDocStd.i | 67 +- src/SWIG_files/wrapper/XmlMFunction.i | 160 +- src/SWIG_files/wrapper/XmlMNaming.i | 114 +- src/SWIG_files/wrapper/XmlMPrsStd.i | 113 +- src/SWIG_files/wrapper/XmlMXCAFDoc.i | 726 +- src/SWIG_files/wrapper/XmlObjMgt.i | 22 +- src/SWIG_files/wrapper/XmlTObjDrivers.i | 346 +- src/SWIG_files/wrapper/XmlXCAFDrivers.i | 114 +- src/SWIG_files/wrapper/gce.i | 19 +- src/SWIG_files/wrapper/gp.i | 29 +- src/SWIG_files/wrapper/math.i | 19 +- src/Splitter/GEOMAlgo.i | 22 +- src/Splitter/GEOMAlgo_headers.i | 721 ++ src/utils.py | 89 + test/core_geometry_unittest.py | 58 +- test/core_ocaf_unittest.py | 51 +- test/core_wrapper_features_unittest.py | 89 +- test/test_io/box_shape.brep | Bin 3035 -> 2670 bytes 394 files changed, 21280 insertions(+), 118228 deletions(-) create mode 100644 src/SWIG_files/common/OccHandle.i create mode 100644 src/utils.py diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a7a34c5f..da46018b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -478,6 +478,9 @@ install(TARGETS _GEOMAlgo DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) # install Extend install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Extend DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY} ) +# install Utils +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/utils.py DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) + # install deprecated modules file(GLOB DEPRECATED_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/src/SWIG_files/deprecated_modules/*.py) install(FILES ${DEPRECATED_MODULES} DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY} ) diff --git a/src/Display/OCCViewer.py b/src/Display/OCCViewer.py index 4f56afcf2..d29924fc2 100644 --- a/src/Display/OCCViewer.py +++ b/src/Display/OCCViewer.py @@ -36,8 +36,8 @@ BRepBuilderAPI_MakeFace) from OCC.Core.TopAbs import (TopAbs_FACE, TopAbs_EDGE, TopAbs_VERTEX, TopAbs_SHELL, TopAbs_SOLID) -from OCC.Core.Geom import Handle_Geom_Curve, Handle_Geom_Surface -from OCC.Core.Geom2d import Handle_Geom2d_Curve +from OCC.Core.Geom import Geom_Curve, Geom_Surface +from OCC.Core.Geom2d import Geom2d_Curve from OCC.Core.Visualization import Display3d from OCC.Core.V3d import (V3d_ZBUFFER, V3d_PHONG, V3d_Zpos, V3d_Zneg, V3d_Xpos, V3d_Xneg, V3d_Ypos, V3d_Yneg, V3d_XposYnegZpos, V3d_TEX_ALL, @@ -120,14 +120,10 @@ def __init__(self, window_handle): self._window_handle = window_handle self._inited = False self._local_context_opened = False - self.Context_handle = None - self.Viewer_handle = None - self.View_handle = None self.Context = None self.Viewer = None self.View = None self.OverLayer = None - self.OverLayer_handle = None self.selected_shape = None self.default_drawer = None self._struc_mgr = None @@ -145,7 +141,7 @@ def register_overlay_item(self, overlay_item): def GetOverLayer(self): """ returns an handle to the current overlayer """ - return self.OverLayer_handle + return self.OverLayer def register_select_callback(self, callback): """ Adds a callback that will be called each time a shape s selected @@ -164,7 +160,7 @@ def unregister_callback(self, callback): self._select_callbacks.remove(callback) def MoveTo(self, X, Y): - self.Context.MoveTo(X, Y, self.View_handle) + self.Context.MoveTo(X, Y, self.View) def FitAll(self): self.View.ZFitAll() @@ -178,17 +174,14 @@ def Create(self, create_default_lights=True, draw_face_boundaries=True, phong_sh self.Init(self._window_handle) self._is_offscreen = False - self.Context_handle = self.GetContext() - self.Viewer_handle = self.GetViewer() - self.View_handle = self.GetView() - self.Context = self.Context_handle.GetObject() - self.Viewer = self.Viewer_handle.GetObject() + self.Context = self.GetContext() + self.Viewer = self.GetViewer() + self.View = self.GetView() if create_default_lights: self.Viewer.SetDefaultLights() self.Viewer.SetLightOn() - self.View = self.View_handle.GetObject() - self.camera = self.View.Camera().GetObject() - self.default_drawer = self.Context.DefaultDrawer().GetObject() + self.camera = self.View.Camera() + self.default_drawer = self.Context.DefaultDrawer() # draw black contour edges, like other famous CAD packages if draw_face_boundaries: @@ -206,17 +199,16 @@ def Create(self, create_default_lights=True, draw_face_boundaries=True, phong_sh # self.Context.SelectionColor(Quantity_NOC_ORANGE) # necessary for text rendering - self._struc_mgr = self.Context.MainPrsMgr().GetObject().StructureManager() + self._struc_mgr = self.Context.MainPrsMgr().StructureManager() # overlayer - self.OverLayer_handle = self.Viewer.Viewer().GetObject().OverLayer() - if self.OverLayer_handle.IsNull(): - aMgr = V3d_LayerMgr(self.View_handle) - self.OverLayer_handle = aMgr.Overlay() - self.View.SetLayerMgr(aMgr.GetHandle()) - self.OverLayer = self.OverLayer_handle.GetObject() + self.OverLayer = self.Viewer.Viewer().OverLayer() + if self.OverLayer is None: + aMgr = V3d_LayerMgr(self.View) + self.OverLayer = aMgr.Overlay() + self.View.SetLayerMgr(aMgr) print("Layer manager created") - height, width = self.View.Window().GetObject().Size() + height, width = self.View.Window().Size() print("Layer dimensions: %i, %i" % (height, width)) self.OverLayer.SetViewport(height, width) @@ -289,7 +281,7 @@ def EnableTextureEnv(self, name_of_texture=Graphic3d_NOT_ENV_CLOUDS): Graphic3d_NOT_ENV_UNKNOWN """ texture_env = Graphic3d_TextureEnv(name_of_texture) - self.View.SetTextureEnv(texture_env.GetHandle()) + self.View.SetTextureEnv(texture_env) self.View.SetSurfaceDetail(V3d_TEX_ENVIRONMENT) self.View.Redraw() @@ -386,7 +378,7 @@ def DisplayVector(self, vec, pnt, update=False): pnt_start = gp_Pnt(start.X(), start.Y(), start.Z()) Prs3d_Arrow.Draw( - aPresentation.GetHandle(), + aPresentation, pnt_start, gp_Dir(vec), math.radians(20), @@ -414,8 +406,8 @@ def DisplayMessage(self, point, text_to_write, height=None, message_color=None, text_aspect.SetHeight(height) if isinstance(point, gp_Pnt2d): point = gp_Pnt(point.X(), point.Y(), 0) - Prs3d_Text.Draw(aPresentation.GetHandle(), - text_aspect.GetHandle(), + Prs3d_Text.Draw(aPresentation, + text_aspect, to_string(text_to_write), point) aPresentation.Display() @@ -438,26 +430,7 @@ def DisplayShape(self, shapes, material=None, texture=None, color=None, transpar vertex = BRepBuilderAPI_MakeVertex(gp_Pnt(shapes.X(), shapes.Y(), 0)) shapes = [vertex.Shape()] SOLO = True - # if a Geom_Curve is passed - elif callable(getattr(shapes, "GetHandle", None)): - handle = shapes.GetHandle() - if issubclass(handle.__class__, Handle_Geom_Curve): - edge = BRepBuilderAPI_MakeEdge(handle) - shapes = [edge.Shape()] - SOLO = True - elif issubclass(handle.__class__, Handle_Geom2d_Curve): - edge2d = BRepBuilderAPI_MakeEdge2d(handle) - shapes = [edge2d.Shape()] - SOLO = True - elif issubclass(handle.__class__, Handle_Geom_Surface): - bounds = True - toldegen = 1e-6 - face = BRepBuilderAPI_MakeFace() - face.Init(handle, bounds, toldegen) - face.Build() - shapes = [face.Shape()] - SOLO = True - elif isinstance(shapes, Handle_Geom_Surface): + elif isinstance(shapes, Geom_Surface): bounds = True toldegen = 1e-6 face = BRepBuilderAPI_MakeFace() @@ -465,11 +438,11 @@ def DisplayShape(self, shapes, material=None, texture=None, color=None, transpar face.Build() shapes = [face.Shape()] SOLO = True - elif isinstance(shapes, Handle_Geom_Curve): + elif isinstance(shapes, Geom_Curve): edge = BRepBuilderAPI_MakeEdge(shapes) shapes = [edge.Shape()] SOLO = True - elif isinstance(shapes, Handle_Geom2d_Curve): + elif isinstance(shapes, Geom2d_Curve): edge2d = BRepBuilderAPI_MakeEdge2d(shapes) shapes = [edge2d.Shape()] SOLO = True @@ -499,7 +472,7 @@ def DisplayShape(self, shapes, material=None, texture=None, color=None, transpar # to this AIS_Shape instance? shape_to_display = AIS_Shape(shape) - ais_shapes.append(shape_to_display.GetHandle()) + ais_shapes.append(shape_to_display) if not SOLO: # computing graphic properties is expensive @@ -527,12 +500,12 @@ def DisplayShape(self, shapes, material=None, texture=None, color=None, transpar shape_to_display.SetTransparency(transparency) if update: # only update when explicitely told to do so - self.Context.Display(shape_to_display.GetHandle(), False) + self.Context.Display(shape_to_display, False) # especially this call takes up a lot of time... self.FitAll() self.Repaint() else: - self.Context.Display(shape_to_display.GetHandle(), False) + self.Context.Display(shape_to_display, False) if SOLO: return ais_shapes[0] @@ -611,7 +584,7 @@ def GetSelectedShape(self): return self.selected_shape def SelectArea(self, Xmin, Ymin, Xmax, Ymax): - self.Context.Select(Xmin, Ymin, Xmax, Ymax, self.View_handle) + self.Context.Select(Xmin, Ymin, Xmax, Ymax, self.View) self.Context.InitSelected() # reinit the selected_shapes list self.selected_shapes = [] diff --git a/src/SWIG_files/common/OccHandle.i b/src/SWIG_files/common/OccHandle.i new file mode 100644 index 000000000..2504fec65 --- /dev/null +++ b/src/SWIG_files/common/OccHandle.i @@ -0,0 +1,267 @@ +/* + +Copyright 2018 Martin Siggel (martin.siggel@dlr.de) + +This file is part of pythonOCC. + +pythonOCC is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +pythonOCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with pythonOCC. If not, see . + +*/ + +/** + * This file defined the macro wrap_handle() and make_alias() + * + * It should be called on a OpenCASCADE Type that inherits from Standard_Transient + * i.e. a class the also has a Handle_ class. + * + * make_alias is to allow backwards compatibilty and defines a Handle_ alias to + * the non-handle version of the class. + * + * wrap_handle must be called before defining the class. + * make_alias after the class definition. + * + * Example: + * + * %wrap_handle(MyClass) + * + * class MyClass : public Standard_Transient + * { + * .... + * }; + * + * %make_alias(MyClass) + */ + +#if !defined(SHARED_PTR_DISOWN) +#define SHARED_PTR_DISOWN 0 +#endif + +%pythoncode { + from six import with_metaclass + import warnings + from OCC.utils import Proxy, deprecated +} + +%{ +#include + +// The following is an evil hack to edit the reference counter of Standard_Transient +template +struct Rob { + friend typename Tag::type get(Tag) { + return M; + } +}; + +// tag used to access A::count +struct Standard_Transient_f { + typedef volatile Standard_Integer Standard_Transient::*type; + friend type get(Standard_Transient_f); +}; + +template struct Rob; + +void IncRef(Standard_Transient& a) { + a.*get(Standard_Transient_f()) += 1; +} + +%} + +%define WRAP_OCC_TRANSIENT_TYPE(CONST, TYPE) + +%naturalvar TYPE; +%naturalvar Handle_ ## TYPE; + +%feature("unref") TYPE + "(void)arg1; delete smartarg1;" + + +%typemap(out) CONST TYPE { + Handle_ ## TYPE *smartresult = new Handle_ ## TYPE(new $1_ltype(($1_ltype &)$1)); + %set_output(SWIG_NewPointerObj(%as_voidptr(smartresult), $descriptor(Handle_ ## TYPE *), SWIG_POINTER_OWN)); +} + +%typemap(out) CONST TYPE * { + Handle_ ## TYPE *smartresult = $1 ? new Handle_ ## TYPE($1) : 0; + %set_output(SWIG_NewPointerObj(%as_voidptr(smartresult), $descriptor(Handle_ ## TYPE *), $owner | SWIG_POINTER_OWN)); +} + + +// plain pointer +// Note: $disown not implemented by default as it will lead to a memory leak of the shared_ptr instance +%typemap(in) CONST TYPE * (void *argp = 0, int res = 0, Handle_ ## TYPE tempshared, Handle_ ## TYPE *smartarg = 0) { + int newmem = 0; + res = SWIG_ConvertPtrAndOwn($input, &argp, $descriptor(Handle_ ## TYPE *), SHARED_PTR_DISOWN | %convertptr_flags, &newmem); + if (!SWIG_IsOK(res)) { + %argument_fail(res, "$type", $symname, $argnum); + } + if (newmem & SWIG_CAST_NEW_MEMORY) { + tempshared = *%reinterpret_cast(argp, Handle_ ## TYPE *); + delete %reinterpret_cast(argp, Handle_ ## TYPE *); + $1 = %const_cast(tempshared.operator->(), $1_ltype); + } else { + smartarg = %reinterpret_cast(argp, Handle_ ## TYPE *); + $1 = %const_cast((smartarg ? smartarg->operator->() : 0), $1_ltype); + } +} + +// plain reference +%typemap(in) CONST TYPE & (void *argp = 0, int res = 0, Handle_ ## TYPE tempshared) { + int newmem = 0; + res = SWIG_ConvertPtrAndOwn($input, &argp, $descriptor(Handle_ ## TYPE *), %convertptr_flags, &newmem); + if (!SWIG_IsOK(res)) { + %argument_fail(res, "$type", $symname, $argnum); + } + if (!argp) { %argument_nullref("$type", $symname, $argnum); } + if (newmem & SWIG_CAST_NEW_MEMORY) { + tempshared = *%reinterpret_cast(argp, Handle_ ## TYPE *); + delete %reinterpret_cast(argp, Handle_ ## TYPE *); + $1 = %const_cast(tempshared.operator->(), $1_ltype); + } else { + $1 = %const_cast(%reinterpret_cast(argp, Handle_ ## TYPE *)->operator->(), $1_ltype); + } +} + +%typemap(out) Handle_ ## TYPE { + Handle_ ## TYPE *smartresult = !$1.IsNull() ? new Handle_ ## TYPE($1) : 0; + %set_output(SWIG_NewPointerObj(%as_voidptr(smartresult), $descriptor(Handle_ ## TYPE *), SWIG_POINTER_OWN)); +} + +// We return reference to handles as copy to handles as the lifetime +// is different in python than in c++ +%typemap(out) Handle_ ## TYPE & { + Handle_ ## TYPE *smartresult = !$1->IsNull() ? new Handle_ ## TYPE(*$1) : 0; + %set_output(SWIG_NewPointerObj(%as_voidptr(smartresult), $descriptor(Handle_ ## TYPE *), SWIG_POINTER_OWN)); +} + +%typemap(out) CONST TYPE & { + Handle_ ## TYPE *smartresult = new Handle_ ## TYPE($1); + if (!$owner) { + // he handle may not delete the object since it is owned by another class + IncRef(*$1); + } + %set_output(SWIG_NewPointerObj(%as_voidptr(smartresult), $descriptor(Handle_ ## TYPE *), SWIG_POINTER_OWN)); +} + +%typemap(in, numinputs = 0) Handle_ ## TYPE& OUTPUT(Handle_ ## TYPE temp){ + $1 = &temp; +} + +%typemap(argout) Handle_ ## TYPE& OUTPUT{ + Handle_ ## TYPE *smartresult = !$1->IsNull() ? new Handle_ ## TYPE(*$1) : 0; + $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(%as_voidptr(smartresult), $descriptor(Handle_ ## TYPE *), SWIG_POINTER_OWN)); +} + +// Typecheck typemaps +// Note: SWIG_ConvertPtr with void ** parameter set to 0 instead of using SWIG_ConvertPtrAndOwn, so that the casting +// function is not called thereby avoiding a possible smart pointer copy constructor call when casting up the inheritance chain. +%typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER,noblock=1) + TYPE CONST, + TYPE CONST &, + TYPE CONST *, + TYPE *CONST&, + Handle_ ## TYPE, + Handle_ ## TYPE &, + Handle_ ## TYPE *, + Handle_ ## TYPE *& { + int res = SWIG_ConvertPtr($input, 0, $descriptor(Handle_ ## TYPE *), 0); + $1 = SWIG_CheckState(res); +} + + +%enddef + +// This is the main macro used from usercode +// Do not call this on a handle class! +%define %wrap_handle(TYPE) + %nodefaultctor Handle_ ## TYPE; + // The handle class should be invisible/transparent in python + %ignore Handle_ ## TYPE; + + // deactivate warnings + %ignore Handle_ ## TYPE::operator=; + %ignore TYPE::operator=; + + // Tell, that Handle_A is a smart pointer to A + %feature("smartptr", noblock=1) TYPE { Handle_ ## TYPE } + +%inline %{ + Handle_ ## TYPE Handle_ ## TYPE ## _Create() { + return Handle_ ## TYPE(); + } +%} + + #define SWIGEMPTYHACK + WRAP_OCC_TRANSIENT_TYPE(SWIGEMPTYHACK, TYPE) + WRAP_OCC_TRANSIENT_TYPE(const, TYPE) + + // Allow to use e.g. Handle_Geom_Curve_DownCast(curve) + %inline %{ + Handle_ ## TYPE Handle_ ## TYPE ## _DownCast(const Handle_Standard_Transient& t) { + return Handle_ ## TYPE ## ::DownCast(t); + } + + bool Handle_ ## TYPE ## _IsNull(const Handle_ ## TYPE & t) { + return t.IsNull(); + } + %} + + // This two functions are just for backwards compatibilty + %extend TYPE { + %pythoncode { + @deprecated("It is not required anymore.") + def GetHandle(self): + return self + + @deprecated("It is not required anymore.") + def GetObject(self): + return self + + @deprecated("Use is None instead") + def IsNull(self): + return Handle_ ## TYPE ## _IsNull(self); + + @staticmethod + def DownCast(t): + return Handle_ ## TYPE ## _DownCast(t) + } + } + + +%enddef + +%define %make_alias(TYPE) + %pythoncode { + class Meta_ ## TYPE(type): + def __call__(cls, wrap=None): + if wrap is None: + return Handle_ ## TYPE ## _Create() + else: + warnings.warn("class Handle_%s is deprecated. Use %s instead." % ("TYPE", "TYPE"), + category=DeprecationWarning, + stacklevel=2) + warnings.simplefilter('default', DeprecationWarning) + return Proxy(wrap) + + class Handle_ ## TYPE(with_metaclass(Meta_ ## TYPE, TYPE)): + @staticmethod + def DownCast(o): + warnings.warn("Handle_%s.DownCast is deprecated. Use %s.DownCast instead." % ("TYPE", "TYPE"), + category=DeprecationWarning, + stacklevel=2) + warnings.simplefilter('default', DeprecationWarning) + return Handle_## TYPE(Handle_ ## TYPE ## _DownCast(o)) + } +%enddef + diff --git a/src/SWIG_files/wrapper/AIS.i b/src/SWIG_files/wrapper/AIS.i index aedd8edf4..6c404c5a5 100644 --- a/src/SWIG_files/wrapper/AIS.i +++ b/src/SWIG_files/wrapper/AIS.i @@ -18,7 +18,114 @@ along with pythonOCC. If not, see . */ %define AISDOCSTRING -"No docstring provided." +"Application Interactive Services provide the means to +create links between an application GUI viewer and +the packages which are used to manage selection +and presentation. The tools AIS defined in order to +do this include different sorts of entities: both the +selectable viewable objects themselves and the +context and attribute managers to define their +selection and display. +To orient the user as he works in a modeling +environment, views and selections must be +comprehensible. There must be several different sorts +of selectable and viewable object defined. These must +also be interactive, that is, connecting graphic +representation and the underlying reference +geometry. These entities are called Interactive +Objects, and are divided into four types: +- the Datum +- the Relation +- the Object +- None. +The Datum groups together the construction elements +such as lines, circles, points, trihedra, plane trihedra, +planes and axes. +The Relation is made up of constraints on one or +more interactive shapes and the corresponding +reference geometry. For example, you might want to +constrain two edges in a parallel relation. This +contraint is considered as an object in its own right, +and is shown as a sensitive primitive. This takes the +graphic form of a perpendicular arrow marked with +the || symbol and lying between the two edges. +The Object type includes topological shapes, and +connections between shapes. +None, in order not to eliminate the object, tells the +application to look further until it finds an object +definition in its generation which is accepted. +Inside these categories, you have the possibility +of an additional characterization by means of a +signature. The signature provides an index to the +further characterization. By default, the Interactive +Object has a None type and a signature of 0 +(equivalent to None.) If you want to give a particular +type and signature to your interactive object, you must +redefine the two virtual methods: Type and Signature. +In the C++ inheritance structure of the package, each +class representing a specific Interactive Object +inherits AIS_InteractiveObject. Among these +inheriting classes, AIS_Relation functions as the +abstract mother class for tinheriting classes defining +display of specific relational constraints and types of +dimension. Some of these include: +- display of constraints based on relations of +symmetry, tangency, parallelism and concentricity +- display of dimensions for angles, offsets, +diameters, radii and chamfers. +No viewer can show everything at once with any +coherence or clarity. Views must be managed +carefully both sequentially and at any given instant. +Another function of the view is that of a context to +carry out design in. The design changes are applied +to the objects in the view and then extended to the +underlying reference geometry by a solver. To make +sense of this complicated visual data, several display +and selection tools are required. To facilitate +management, each object and each construction +element has a selection priority. There are also +means to modify the default priority. +To define an environment of dynamic detection, you +can use standard filter classes or create your own. A +filter questions the owner of the sensitive primitive in +local context to determine if it has the the desired +qualities. If it answers positively, it is kept. If not, it is rejected. +The standard filters supplied in AIS include: +AIS_AttributeFilter +AIS_SignatureFilter +AIS_TypeFilter. +Only the type filter can be used in the default +operating mode, the neutral point. The others can +only be used in open local contexts. +Neutral point and local context constitute the two +operating modes of the central entity which pilots +visualizations and selections, the Interactive Context. +It is linked to a main viewer and if you like, a trash bin +viewer as well. +The neutral point, which is the default mode, allows +you to easily visualize and select interactive objects +which have been loaded into the context. Opening +local contexts allows you to prepare and use a +temporary selection environment without disturbing +the neutral point. A set of functions allows you to +choose the interactive objects which you want to act +on, the selection modes which you want to activate, +and the temporary visualizations which you will +execute. When the operation is finished, you close the +current local context and return to the state in which +you were before opening it (neutral point or previous +local context). +An interactive object can have a certain number of +graphic attributes which are specific to it, such as +visualization mode, color, and material. By the same +token, the interactive context has a set of graphic +attributes, the Drawer which is valid by default for the +objects it controls. When an interactive object is +visualized, the required graphic attributes are first +taken from the object's own Drawer if one exists, or +from the context drawer for the others. + +" %enddef %module (package="OCC.Core", docstring=AISDOCSTRING) AIS @@ -34,25 +141,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AIS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_List AIS_NListTransient; typedef AIS_NListTransient::Iterator AIS_NListIteratorOfListTransient; @@ -229,6 +322,66 @@ enum AIS_DisplayStatus { /* end public enums declaration */ +%wrap_handle(AIS_AttributeFilter) +%wrap_handle(AIS_BadEdgeFilter) +%wrap_handle(AIS_C0RegularityFilter) +%wrap_handle(AIS_DataMapNodeOfDataMapOfILC) +%wrap_handle(AIS_DataMapNodeOfDataMapOfIOStatus) +%wrap_handle(AIS_DataMapNodeOfDataMapOfSelStat) +%wrap_handle(AIS_DataMapNodeOfDataMapofIntegerListOfinteractive) +%wrap_handle(AIS_DimensionOwner) +%wrap_handle(AIS_ExclusionFilter) +%wrap_handle(AIS_GlobalStatus) +%wrap_handle(AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs) +%wrap_handle(AIS_InteractiveContext) +%wrap_handle(AIS_InteractiveObject) +%wrap_handle(AIS_ListNodeOfListOfInteractive) +%wrap_handle(AIS_LocalContext) +%wrap_handle(AIS_LocalStatus) +%wrap_handle(AIS_Selection) +%wrap_handle(AIS_SequenceNodeOfSequenceOfDimension) +%wrap_handle(AIS_SequenceNodeOfSequenceOfInteractive) +%wrap_handle(AIS_StdMapNodeOfMapOfInteractive) +%wrap_handle(AIS_TypeFilter) +%wrap_handle(AIS_Axis) +%wrap_handle(AIS_Circle) +%wrap_handle(AIS_ConnectedInteractive) +%wrap_handle(AIS_Dimension) +%wrap_handle(AIS_Line) +%wrap_handle(AIS_MultipleConnectedInteractive) +%wrap_handle(AIS_Plane) +%wrap_handle(AIS_PlaneTrihedron) +%wrap_handle(AIS_Point) +%wrap_handle(AIS_PointCloud) +%wrap_handle(AIS_Relation) +%wrap_handle(AIS_Shape) +%wrap_handle(AIS_SignatureFilter) +%wrap_handle(AIS_TextLabel) +%wrap_handle(AIS_Triangulation) +%wrap_handle(AIS_Trihedron) +%wrap_handle(AIS_AngleDimension) +%wrap_handle(AIS_Chamf2dDimension) +%wrap_handle(AIS_Chamf3dDimension) +%wrap_handle(AIS_ColoredShape) +%wrap_handle(AIS_ConcentricRelation) +%wrap_handle(AIS_DiameterDimension) +%wrap_handle(AIS_EllipseRadiusDimension) +%wrap_handle(AIS_EqualDistanceRelation) +%wrap_handle(AIS_EqualRadiusRelation) +%wrap_handle(AIS_FixRelation) +%wrap_handle(AIS_IdenticRelation) +%wrap_handle(AIS_LengthDimension) +%wrap_handle(AIS_MidPointRelation) +%wrap_handle(AIS_OffsetDimension) +%wrap_handle(AIS_ParallelRelation) +%wrap_handle(AIS_PerpendicularRelation) +%wrap_handle(AIS_RadiusDimension) +%wrap_handle(AIS_SymmetricRelation) +%wrap_handle(AIS_TangentRelation) +%wrap_handle(AIS_TexturedShape) +%wrap_handle(AIS_MaxRadiusDimension) +%wrap_handle(AIS_MinRadiusDimension) + %rename(ais) AIS; class AIS { public: @@ -728,51 +881,7 @@ class AIS_AttributeFilter : public SelectMgr_Filter { }; -%extend AIS_AttributeFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_AttributeFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_AttributeFilter::Handle_AIS_AttributeFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_AttributeFilter; -class Handle_AIS_AttributeFilter : public Handle_SelectMgr_Filter { - - public: - // constructors - Handle_AIS_AttributeFilter(); - Handle_AIS_AttributeFilter(const Handle_AIS_AttributeFilter &aHandle); - Handle_AIS_AttributeFilter(const AIS_AttributeFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_AttributeFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_AttributeFilter { - AIS_AttributeFilter* _get_reference() { - return (AIS_AttributeFilter*)$self->Access(); - } -}; - -%extend Handle_AIS_AttributeFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_AttributeFilter) %extend AIS_AttributeFilter { %pythoncode { @@ -829,51 +938,7 @@ class AIS_BadEdgeFilter : public SelectMgr_Filter { }; -%extend AIS_BadEdgeFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_BadEdgeFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_BadEdgeFilter::Handle_AIS_BadEdgeFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_BadEdgeFilter; -class Handle_AIS_BadEdgeFilter : public Handle_SelectMgr_Filter { - - public: - // constructors - Handle_AIS_BadEdgeFilter(); - Handle_AIS_BadEdgeFilter(const Handle_AIS_BadEdgeFilter &aHandle); - Handle_AIS_BadEdgeFilter(const AIS_BadEdgeFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_BadEdgeFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_BadEdgeFilter { - AIS_BadEdgeFilter* _get_reference() { - return (AIS_BadEdgeFilter*)$self->Access(); - } -}; - -%extend Handle_AIS_BadEdgeFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_BadEdgeFilter) %extend AIS_BadEdgeFilter { %pythoncode { @@ -904,167 +969,13 @@ class AIS_C0RegularityFilter : public SelectMgr_Filter { }; -%extend AIS_C0RegularityFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_C0RegularityFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_C0RegularityFilter::Handle_AIS_C0RegularityFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_C0RegularityFilter; -class Handle_AIS_C0RegularityFilter : public Handle_SelectMgr_Filter { - - public: - // constructors - Handle_AIS_C0RegularityFilter(); - Handle_AIS_C0RegularityFilter(const Handle_AIS_C0RegularityFilter &aHandle); - Handle_AIS_C0RegularityFilter(const AIS_C0RegularityFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_C0RegularityFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_C0RegularityFilter { - AIS_C0RegularityFilter* _get_reference() { - return (AIS_C0RegularityFilter*)$self->Access(); - } -}; - -%extend Handle_AIS_C0RegularityFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_C0RegularityFilter) %extend AIS_C0RegularityFilter { %pythoncode { __repr__ = _dumps_object } }; -%nodefaultctor AIS_ColoredDrawer; -class AIS_ColoredDrawer : public Prs3d_Drawer { - public: - bool myIsHidden; - bool myHasOwnColor; - bool myHasOwnWidth; - %feature("compactdefaultargs") AIS_ColoredDrawer; - %feature("autodoc", " :param theLink: - :type theLink: Handle_Prs3d_Drawer & - :rtype: None -") AIS_ColoredDrawer; - AIS_ColoredDrawer (const Handle_Prs3d_Drawer & theLink); - %feature("compactdefaultargs") IsHidden; - %feature("autodoc", " :rtype: bool -") IsHidden; - Standard_Boolean IsHidden (); - %feature("compactdefaultargs") SetHidden; - %feature("autodoc", " :param theToHide: - :type theToHide: bool - :rtype: None -") SetHidden; - void SetHidden (const Standard_Boolean theToHide); - %feature("compactdefaultargs") HasOwnColor; - %feature("autodoc", " :rtype: bool -") HasOwnColor; - Standard_Boolean HasOwnColor (); - %feature("compactdefaultargs") UnsetOwnColor; - %feature("autodoc", " :rtype: None -") UnsetOwnColor; - void UnsetOwnColor (); - %feature("compactdefaultargs") SetOwnColor; - %feature("autodoc", " :param &: - :type &: Quantity_Color - :rtype: None -") SetOwnColor; - void SetOwnColor (const Quantity_Color &); - %feature("compactdefaultargs") HasOwnWidth; - %feature("autodoc", " :rtype: bool -") HasOwnWidth; - Standard_Boolean HasOwnWidth (); - %feature("compactdefaultargs") UnsetOwnWidth; - %feature("autodoc", " :rtype: None -") UnsetOwnWidth; - void UnsetOwnWidth (); - %feature("compactdefaultargs") SetOwnWidth; - %feature("autodoc", " :param Standard_Real: - :type Standard_Real: - :rtype: None -") SetOwnWidth; - void SetOwnWidth (const Standard_Real); - %feature("compactdefaultargs") DEFINE_STANDARD_RTTI; - %feature("autodoc", " :param : - :type : AIS_ColoredDrawer - :rtype: None -") DEFINE_STANDARD_RTTI; - DEFINE_STANDARD_RTTI (AIS_ColoredDrawer ); -}; - - -%extend AIS_ColoredDrawer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ColoredDrawer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ColoredDrawer::Handle_AIS_ColoredDrawer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ColoredDrawer; -class Handle_AIS_ColoredDrawer : public Handle_Prs3d_Drawer { - - public: - // constructors - Handle_AIS_ColoredDrawer(); - Handle_AIS_ColoredDrawer(const Handle_AIS_ColoredDrawer &aHandle); - Handle_AIS_ColoredDrawer(const AIS_ColoredDrawer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ColoredDrawer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ColoredDrawer { - AIS_ColoredDrawer* _get_reference() { - return (AIS_ColoredDrawer*)$self->Access(); - } -}; - -%extend Handle_AIS_ColoredDrawer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend AIS_ColoredDrawer { - %pythoncode { - __repr__ = _dumps_object - } -}; %nodefaultctor AIS_DataMapIteratorOfDataMapOfILC; class AIS_DataMapIteratorOfDataMapOfILC : public TCollection_BasicMapIterator { public: @@ -1238,51 +1149,7 @@ class AIS_DataMapNodeOfDataMapOfILC : public TCollection_MapNode { }; -%extend AIS_DataMapNodeOfDataMapOfILC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_DataMapNodeOfDataMapOfILC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_DataMapNodeOfDataMapOfILC::Handle_AIS_DataMapNodeOfDataMapOfILC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_DataMapNodeOfDataMapOfILC; -class Handle_AIS_DataMapNodeOfDataMapOfILC : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_DataMapNodeOfDataMapOfILC(); - Handle_AIS_DataMapNodeOfDataMapOfILC(const Handle_AIS_DataMapNodeOfDataMapOfILC &aHandle); - Handle_AIS_DataMapNodeOfDataMapOfILC(const AIS_DataMapNodeOfDataMapOfILC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_DataMapNodeOfDataMapOfILC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_DataMapNodeOfDataMapOfILC { - AIS_DataMapNodeOfDataMapOfILC* _get_reference() { - return (AIS_DataMapNodeOfDataMapOfILC*)$self->Access(); - } -}; - -%extend Handle_AIS_DataMapNodeOfDataMapOfILC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_DataMapNodeOfDataMapOfILC) %extend AIS_DataMapNodeOfDataMapOfILC { %pythoncode { @@ -1313,51 +1180,7 @@ class AIS_DataMapNodeOfDataMapOfIOStatus : public TCollection_MapNode { }; -%extend AIS_DataMapNodeOfDataMapOfIOStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_DataMapNodeOfDataMapOfIOStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_DataMapNodeOfDataMapOfIOStatus::Handle_AIS_DataMapNodeOfDataMapOfIOStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_DataMapNodeOfDataMapOfIOStatus; -class Handle_AIS_DataMapNodeOfDataMapOfIOStatus : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_DataMapNodeOfDataMapOfIOStatus(); - Handle_AIS_DataMapNodeOfDataMapOfIOStatus(const Handle_AIS_DataMapNodeOfDataMapOfIOStatus &aHandle); - Handle_AIS_DataMapNodeOfDataMapOfIOStatus(const AIS_DataMapNodeOfDataMapOfIOStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_DataMapNodeOfDataMapOfIOStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_DataMapNodeOfDataMapOfIOStatus { - AIS_DataMapNodeOfDataMapOfIOStatus* _get_reference() { - return (AIS_DataMapNodeOfDataMapOfIOStatus*)$self->Access(); - } -}; - -%extend Handle_AIS_DataMapNodeOfDataMapOfIOStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_DataMapNodeOfDataMapOfIOStatus) %extend AIS_DataMapNodeOfDataMapOfIOStatus { %pythoncode { @@ -1388,51 +1211,7 @@ class AIS_DataMapNodeOfDataMapOfSelStat : public TCollection_MapNode { }; -%extend AIS_DataMapNodeOfDataMapOfSelStat { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_DataMapNodeOfDataMapOfSelStat(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_DataMapNodeOfDataMapOfSelStat::Handle_AIS_DataMapNodeOfDataMapOfSelStat %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_DataMapNodeOfDataMapOfSelStat; -class Handle_AIS_DataMapNodeOfDataMapOfSelStat : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_DataMapNodeOfDataMapOfSelStat(); - Handle_AIS_DataMapNodeOfDataMapOfSelStat(const Handle_AIS_DataMapNodeOfDataMapOfSelStat &aHandle); - Handle_AIS_DataMapNodeOfDataMapOfSelStat(const AIS_DataMapNodeOfDataMapOfSelStat *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_DataMapNodeOfDataMapOfSelStat DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_DataMapNodeOfDataMapOfSelStat { - AIS_DataMapNodeOfDataMapOfSelStat* _get_reference() { - return (AIS_DataMapNodeOfDataMapOfSelStat*)$self->Access(); - } -}; - -%extend Handle_AIS_DataMapNodeOfDataMapOfSelStat { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_DataMapNodeOfDataMapOfSelStat) %extend AIS_DataMapNodeOfDataMapOfSelStat { %pythoncode { @@ -1472,51 +1251,7 @@ class AIS_DataMapNodeOfDataMapofIntegerListOfinteractive : public TCollection_Ma }; -%extend AIS_DataMapNodeOfDataMapofIntegerListOfinteractive { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive::Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive; -class Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive(); - Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive(const Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive &aHandle); - Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive(const AIS_DataMapNodeOfDataMapofIntegerListOfinteractive *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive { - AIS_DataMapNodeOfDataMapofIntegerListOfinteractive* _get_reference() { - return (AIS_DataMapNodeOfDataMapofIntegerListOfinteractive*)$self->Access(); - } -}; - -%extend Handle_AIS_DataMapNodeOfDataMapofIntegerListOfinteractive { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_DataMapNodeOfDataMapofIntegerListOfinteractive) %extend AIS_DataMapNodeOfDataMapofIntegerListOfinteractive { %pythoncode { @@ -1915,51 +1650,7 @@ class AIS_DimensionOwner : public SelectMgr_EntityOwner { }; -%extend AIS_DimensionOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_DimensionOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_DimensionOwner::Handle_AIS_DimensionOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_DimensionOwner; -class Handle_AIS_DimensionOwner : public Handle_SelectMgr_EntityOwner { - - public: - // constructors - Handle_AIS_DimensionOwner(); - Handle_AIS_DimensionOwner(const Handle_AIS_DimensionOwner &aHandle); - Handle_AIS_DimensionOwner(const AIS_DimensionOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_DimensionOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_DimensionOwner { - AIS_DimensionOwner* _get_reference() { - return (AIS_DimensionOwner*)$self->Access(); - } -}; - -%extend Handle_AIS_DimensionOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_DimensionOwner) %extend AIS_DimensionOwner { %pythoncode { @@ -2072,51 +1763,7 @@ class AIS_ExclusionFilter : public SelectMgr_Filter { }; -%extend AIS_ExclusionFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ExclusionFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ExclusionFilter::Handle_AIS_ExclusionFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ExclusionFilter; -class Handle_AIS_ExclusionFilter : public Handle_SelectMgr_Filter { - - public: - // constructors - Handle_AIS_ExclusionFilter(); - Handle_AIS_ExclusionFilter(const Handle_AIS_ExclusionFilter &aHandle); - Handle_AIS_ExclusionFilter(const AIS_ExclusionFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ExclusionFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ExclusionFilter { - AIS_ExclusionFilter* _get_reference() { - return (AIS_ExclusionFilter*)$self->Access(); - } -}; - -%extend Handle_AIS_ExclusionFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_ExclusionFilter) %extend AIS_ExclusionFilter { %pythoncode { @@ -2249,51 +1896,7 @@ class AIS_GlobalStatus : public MMgt_TShared { }; -%extend AIS_GlobalStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_GlobalStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_GlobalStatus::Handle_AIS_GlobalStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_GlobalStatus; -class Handle_AIS_GlobalStatus : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AIS_GlobalStatus(); - Handle_AIS_GlobalStatus(const Handle_AIS_GlobalStatus &aHandle); - Handle_AIS_GlobalStatus(const AIS_GlobalStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_GlobalStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_GlobalStatus { - AIS_GlobalStatus* _get_reference() { - return (AIS_GlobalStatus*)$self->Access(); - } -}; - -%extend Handle_AIS_GlobalStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_GlobalStatus) %extend AIS_GlobalStatus { %pythoncode { @@ -2423,51 +2026,7 @@ class AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs : public TCollection_MapN }; -%extend AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs::Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs; -class Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs(); - Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs(const Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs &aHandle); - Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs(const AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs { - AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs* _get_reference() { - return (AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs*)$self->Access(); - } -}; - -%extend Handle_AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs) %extend AIS_IndexedDataMapNodeOfIndexedDataMapOfOwnerPrs { %pythoncode { @@ -4511,51 +4070,7 @@ class AIS_InteractiveContext : public MMgt_TShared { }; -%extend AIS_InteractiveContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_InteractiveContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_InteractiveContext::Handle_AIS_InteractiveContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_InteractiveContext; -class Handle_AIS_InteractiveContext : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AIS_InteractiveContext(); - Handle_AIS_InteractiveContext(const Handle_AIS_InteractiveContext &aHandle); - Handle_AIS_InteractiveContext(const AIS_InteractiveContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_InteractiveContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_InteractiveContext { - AIS_InteractiveContext* _get_reference() { - return (AIS_InteractiveContext*)$self->Access(); - } -}; - -%extend Handle_AIS_InteractiveContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_InteractiveContext) %extend AIS_InteractiveContext { %pythoncode { @@ -5002,51 +4517,7 @@ class AIS_InteractiveObject : public SelectMgr_SelectableObject { }; -%extend AIS_InteractiveObject { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_InteractiveObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_InteractiveObject::Handle_AIS_InteractiveObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_InteractiveObject; -class Handle_AIS_InteractiveObject : public Handle_SelectMgr_SelectableObject { - - public: - // constructors - Handle_AIS_InteractiveObject(); - Handle_AIS_InteractiveObject(const Handle_AIS_InteractiveObject &aHandle); - Handle_AIS_InteractiveObject(const AIS_InteractiveObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_InteractiveObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_InteractiveObject { - AIS_InteractiveObject* _get_reference() { - return (AIS_InteractiveObject*)$self->Access(); - } -}; - -%extend Handle_AIS_InteractiveObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_InteractiveObject) %extend AIS_InteractiveObject { %pythoncode { @@ -5110,51 +4581,7 @@ class AIS_ListNodeOfListOfInteractive : public TCollection_MapNode { }; -%extend AIS_ListNodeOfListOfInteractive { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ListNodeOfListOfInteractive(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ListNodeOfListOfInteractive::Handle_AIS_ListNodeOfListOfInteractive %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ListNodeOfListOfInteractive; -class Handle_AIS_ListNodeOfListOfInteractive : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_ListNodeOfListOfInteractive(); - Handle_AIS_ListNodeOfListOfInteractive(const Handle_AIS_ListNodeOfListOfInteractive &aHandle); - Handle_AIS_ListNodeOfListOfInteractive(const AIS_ListNodeOfListOfInteractive *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ListNodeOfListOfInteractive DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ListNodeOfListOfInteractive { - AIS_ListNodeOfListOfInteractive* _get_reference() { - return (AIS_ListNodeOfListOfInteractive*)$self->Access(); - } -}; - -%extend Handle_AIS_ListNodeOfListOfInteractive { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_ListNodeOfListOfInteractive) %extend AIS_ListNodeOfListOfInteractive { %pythoncode { @@ -5978,51 +5405,7 @@ class AIS_LocalContext : public MMgt_TShared { }; -%extend AIS_LocalContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_LocalContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_LocalContext::Handle_AIS_LocalContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_LocalContext; -class Handle_AIS_LocalContext : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AIS_LocalContext(); - Handle_AIS_LocalContext(const Handle_AIS_LocalContext &aHandle); - Handle_AIS_LocalContext(const AIS_LocalContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_LocalContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_LocalContext { - AIS_LocalContext* _get_reference() { - return (AIS_LocalContext*)$self->Access(); - } -}; - -%extend Handle_AIS_LocalContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_LocalContext) %extend AIS_LocalContext { %pythoncode { @@ -6167,51 +5550,7 @@ class AIS_LocalStatus : public MMgt_TShared { }; -%extend AIS_LocalStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_LocalStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_LocalStatus::Handle_AIS_LocalStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_LocalStatus; -class Handle_AIS_LocalStatus : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AIS_LocalStatus(); - Handle_AIS_LocalStatus(const Handle_AIS_LocalStatus &aHandle); - Handle_AIS_LocalStatus(const AIS_LocalStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_LocalStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_LocalStatus { - AIS_LocalStatus* _get_reference() { - return (AIS_LocalStatus*)$self->Access(); - } -}; - -%extend Handle_AIS_LocalStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_LocalStatus) %extend AIS_LocalStatus { %pythoncode { @@ -6450,55 +5789,11 @@ class AIS_Selection : public MMgt_TShared { }; +%make_alias(AIS_Selection) + %extend AIS_Selection { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Selection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Selection::Handle_AIS_Selection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Selection; -class Handle_AIS_Selection : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AIS_Selection(); - Handle_AIS_Selection(const Handle_AIS_Selection &aHandle); - Handle_AIS_Selection(const AIS_Selection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Selection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Selection { - AIS_Selection* _get_reference() { - return (AIS_Selection*)$self->Access(); - } -}; - -%extend Handle_AIS_Selection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend AIS_Selection { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor AIS_SequenceNodeOfSequenceOfDimension; @@ -6521,51 +5816,7 @@ class AIS_SequenceNodeOfSequenceOfDimension : public TCollection_SeqNode { }; -%extend AIS_SequenceNodeOfSequenceOfDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_SequenceNodeOfSequenceOfDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_SequenceNodeOfSequenceOfDimension::Handle_AIS_SequenceNodeOfSequenceOfDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_SequenceNodeOfSequenceOfDimension; -class Handle_AIS_SequenceNodeOfSequenceOfDimension : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AIS_SequenceNodeOfSequenceOfDimension(); - Handle_AIS_SequenceNodeOfSequenceOfDimension(const Handle_AIS_SequenceNodeOfSequenceOfDimension &aHandle); - Handle_AIS_SequenceNodeOfSequenceOfDimension(const AIS_SequenceNodeOfSequenceOfDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_SequenceNodeOfSequenceOfDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_SequenceNodeOfSequenceOfDimension { - AIS_SequenceNodeOfSequenceOfDimension* _get_reference() { - return (AIS_SequenceNodeOfSequenceOfDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_SequenceNodeOfSequenceOfDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_SequenceNodeOfSequenceOfDimension) %extend AIS_SequenceNodeOfSequenceOfDimension { %pythoncode { @@ -6592,51 +5843,7 @@ class AIS_SequenceNodeOfSequenceOfInteractive : public TCollection_SeqNode { }; -%extend AIS_SequenceNodeOfSequenceOfInteractive { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_SequenceNodeOfSequenceOfInteractive(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_SequenceNodeOfSequenceOfInteractive::Handle_AIS_SequenceNodeOfSequenceOfInteractive %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_SequenceNodeOfSequenceOfInteractive; -class Handle_AIS_SequenceNodeOfSequenceOfInteractive : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AIS_SequenceNodeOfSequenceOfInteractive(); - Handle_AIS_SequenceNodeOfSequenceOfInteractive(const Handle_AIS_SequenceNodeOfSequenceOfInteractive &aHandle); - Handle_AIS_SequenceNodeOfSequenceOfInteractive(const AIS_SequenceNodeOfSequenceOfInteractive *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_SequenceNodeOfSequenceOfInteractive DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_SequenceNodeOfSequenceOfInteractive { - AIS_SequenceNodeOfSequenceOfInteractive* _get_reference() { - return (AIS_SequenceNodeOfSequenceOfInteractive*)$self->Access(); - } -}; - -%extend Handle_AIS_SequenceNodeOfSequenceOfInteractive { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_SequenceNodeOfSequenceOfInteractive) %extend AIS_SequenceNodeOfSequenceOfInteractive { %pythoncode { @@ -6947,51 +6154,7 @@ class AIS_StdMapNodeOfMapOfInteractive : public TCollection_MapNode { }; -%extend AIS_StdMapNodeOfMapOfInteractive { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_StdMapNodeOfMapOfInteractive(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_StdMapNodeOfMapOfInteractive::Handle_AIS_StdMapNodeOfMapOfInteractive %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_StdMapNodeOfMapOfInteractive; -class Handle_AIS_StdMapNodeOfMapOfInteractive : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_AIS_StdMapNodeOfMapOfInteractive(); - Handle_AIS_StdMapNodeOfMapOfInteractive(const Handle_AIS_StdMapNodeOfMapOfInteractive &aHandle); - Handle_AIS_StdMapNodeOfMapOfInteractive(const AIS_StdMapNodeOfMapOfInteractive *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_StdMapNodeOfMapOfInteractive DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_StdMapNodeOfMapOfInteractive { - AIS_StdMapNodeOfMapOfInteractive* _get_reference() { - return (AIS_StdMapNodeOfMapOfInteractive*)$self->Access(); - } -}; - -%extend Handle_AIS_StdMapNodeOfMapOfInteractive { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_StdMapNodeOfMapOfInteractive) %extend AIS_StdMapNodeOfMapOfInteractive { %pythoncode { @@ -7020,51 +6183,7 @@ class AIS_TypeFilter : public SelectMgr_Filter { }; -%extend AIS_TypeFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_TypeFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_TypeFilter::Handle_AIS_TypeFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_TypeFilter; -class Handle_AIS_TypeFilter : public Handle_SelectMgr_Filter { - - public: - // constructors - Handle_AIS_TypeFilter(); - Handle_AIS_TypeFilter(const Handle_AIS_TypeFilter &aHandle); - Handle_AIS_TypeFilter(const AIS_TypeFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_TypeFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_TypeFilter { - AIS_TypeFilter* _get_reference() { - return (AIS_TypeFilter*)$self->Access(); - } -}; - -%extend Handle_AIS_TypeFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_TypeFilter) %extend AIS_TypeFilter { %pythoncode { @@ -7215,51 +6334,7 @@ class AIS_Axis : public AIS_InteractiveObject { }; -%extend AIS_Axis { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Axis(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Axis::Handle_AIS_Axis %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Axis; -class Handle_AIS_Axis : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Axis(); - Handle_AIS_Axis(const Handle_AIS_Axis &aHandle); - Handle_AIS_Axis(const AIS_Axis *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Axis DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Axis { - AIS_Axis* _get_reference() { - return (AIS_Axis*)$self->Access(); - } -}; - -%extend Handle_AIS_Axis { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Axis) %extend AIS_Axis { %pythoncode { @@ -7406,51 +6481,7 @@ class AIS_Circle : public AIS_InteractiveObject { }; -%extend AIS_Circle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Circle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Circle::Handle_AIS_Circle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Circle; -class Handle_AIS_Circle : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Circle(); - Handle_AIS_Circle(const Handle_AIS_Circle &aHandle); - Handle_AIS_Circle(const AIS_Circle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Circle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Circle { - AIS_Circle* _get_reference() { - return (AIS_Circle*)$self->Access(); - } -}; - -%extend Handle_AIS_Circle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Circle) %extend AIS_Circle { %pythoncode { @@ -7525,51 +6556,7 @@ class AIS_ConnectedInteractive : public AIS_InteractiveObject { }; -%extend AIS_ConnectedInteractive { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ConnectedInteractive(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ConnectedInteractive::Handle_AIS_ConnectedInteractive %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ConnectedInteractive; -class Handle_AIS_ConnectedInteractive : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_ConnectedInteractive(); - Handle_AIS_ConnectedInteractive(const Handle_AIS_ConnectedInteractive &aHandle); - Handle_AIS_ConnectedInteractive(const AIS_ConnectedInteractive *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ConnectedInteractive DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ConnectedInteractive { - AIS_ConnectedInteractive* _get_reference() { - return (AIS_ConnectedInteractive*)$self->Access(); - } -}; - -%extend Handle_AIS_ConnectedInteractive { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_ConnectedInteractive) %extend AIS_ConnectedInteractive { %pythoncode { @@ -7781,51 +6768,7 @@ enum ComputeMode { }; -%extend AIS_Dimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Dimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Dimension::Handle_AIS_Dimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Dimension; -class Handle_AIS_Dimension : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Dimension(); - Handle_AIS_Dimension(const Handle_AIS_Dimension &aHandle); - Handle_AIS_Dimension(const AIS_Dimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Dimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Dimension { - AIS_Dimension* _get_reference() { - return (AIS_Dimension*)$self->Access(); - } -}; - -%extend Handle_AIS_Dimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Dimension) %extend AIS_Dimension { %pythoncode { @@ -7948,51 +6891,7 @@ class AIS_Line : public AIS_InteractiveObject { }; -%extend AIS_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Line::Handle_AIS_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Line; -class Handle_AIS_Line : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Line(); - Handle_AIS_Line(const Handle_AIS_Line &aHandle); - Handle_AIS_Line(const AIS_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Line { - AIS_Line* _get_reference() { - return (AIS_Line*)$self->Access(); - } -}; - -%extend Handle_AIS_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Line) %extend AIS_Line { %pythoncode { @@ -8097,51 +6996,7 @@ class AIS_MultipleConnectedInteractive : public AIS_InteractiveObject { }; -%extend AIS_MultipleConnectedInteractive { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_MultipleConnectedInteractive(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_MultipleConnectedInteractive::Handle_AIS_MultipleConnectedInteractive %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_MultipleConnectedInteractive; -class Handle_AIS_MultipleConnectedInteractive : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_MultipleConnectedInteractive(); - Handle_AIS_MultipleConnectedInteractive(const Handle_AIS_MultipleConnectedInteractive &aHandle); - Handle_AIS_MultipleConnectedInteractive(const AIS_MultipleConnectedInteractive *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_MultipleConnectedInteractive DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_MultipleConnectedInteractive { - AIS_MultipleConnectedInteractive* _get_reference() { - return (AIS_MultipleConnectedInteractive*)$self->Access(); - } -}; - -%extend Handle_AIS_MultipleConnectedInteractive { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_MultipleConnectedInteractive) %extend AIS_MultipleConnectedInteractive { %pythoncode { @@ -8408,51 +7263,7 @@ class AIS_Plane : public AIS_InteractiveObject { }; -%extend AIS_Plane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Plane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Plane::Handle_AIS_Plane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Plane; -class Handle_AIS_Plane : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Plane(); - Handle_AIS_Plane(const Handle_AIS_Plane &aHandle); - Handle_AIS_Plane(const AIS_Plane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Plane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Plane { - AIS_Plane* _get_reference() { - return (AIS_Plane*)$self->Access(); - } -}; - -%extend Handle_AIS_Plane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Plane) %extend AIS_Plane { %pythoncode { @@ -8575,51 +7386,7 @@ class AIS_PlaneTrihedron : public AIS_InteractiveObject { }; -%extend AIS_PlaneTrihedron { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_PlaneTrihedron(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_PlaneTrihedron::Handle_AIS_PlaneTrihedron %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_PlaneTrihedron; -class Handle_AIS_PlaneTrihedron : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_PlaneTrihedron(); - Handle_AIS_PlaneTrihedron(const Handle_AIS_PlaneTrihedron &aHandle); - Handle_AIS_PlaneTrihedron(const AIS_PlaneTrihedron *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_PlaneTrihedron DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_PlaneTrihedron { - AIS_PlaneTrihedron* _get_reference() { - return (AIS_PlaneTrihedron*)$self->Access(); - } -}; - -%extend Handle_AIS_PlaneTrihedron { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_PlaneTrihedron) %extend AIS_PlaneTrihedron { %pythoncode { @@ -8732,51 +7499,7 @@ class AIS_Point : public AIS_InteractiveObject { }; -%extend AIS_Point { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Point(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Point::Handle_AIS_Point %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Point; -class Handle_AIS_Point : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Point(); - Handle_AIS_Point(const Handle_AIS_Point &aHandle); - Handle_AIS_Point(const AIS_Point *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Point DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Point { - AIS_Point* _get_reference() { - return (AIS_Point*)$self->Access(); - } -}; - -%extend Handle_AIS_Point { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Point) %extend AIS_Point { %pythoncode { @@ -8879,51 +7602,7 @@ enum DisplayMode { }; -%extend AIS_PointCloud { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_PointCloud(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_PointCloud::Handle_AIS_PointCloud %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_PointCloud; -class Handle_AIS_PointCloud : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_PointCloud(); - Handle_AIS_PointCloud(const Handle_AIS_PointCloud &aHandle); - Handle_AIS_PointCloud(const AIS_PointCloud *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_PointCloud DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_PointCloud { - AIS_PointCloud* _get_reference() { - return (AIS_PointCloud*)$self->Access(); - } -}; - -%extend Handle_AIS_PointCloud { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_PointCloud) %extend AIS_PointCloud { %pythoncode { @@ -9132,51 +7811,7 @@ class AIS_Relation : public AIS_InteractiveObject { }; -%extend AIS_Relation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Relation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Relation::Handle_AIS_Relation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Relation; -class Handle_AIS_Relation : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Relation(); - Handle_AIS_Relation(const Handle_AIS_Relation &aHandle); - Handle_AIS_Relation(const AIS_Relation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Relation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Relation { - AIS_Relation* _get_reference() { - return (AIS_Relation*)$self->Access(); - } -}; - -%extend Handle_AIS_Relation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Relation) %extend AIS_Relation { %pythoncode { @@ -9477,51 +8112,7 @@ class AIS_Shape : public AIS_InteractiveObject { }; -%extend AIS_Shape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Shape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Shape::Handle_AIS_Shape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Shape; -class Handle_AIS_Shape : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Shape(); - Handle_AIS_Shape(const Handle_AIS_Shape &aHandle); - Handle_AIS_Shape(const AIS_Shape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Shape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Shape { - AIS_Shape* _get_reference() { - return (AIS_Shape*)$self->Access(); - } -}; - -%extend Handle_AIS_Shape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Shape) %extend AIS_Shape { %pythoncode { @@ -9552,51 +8143,7 @@ class AIS_SignatureFilter : public AIS_TypeFilter { }; -%extend AIS_SignatureFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_SignatureFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_SignatureFilter::Handle_AIS_SignatureFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_SignatureFilter; -class Handle_AIS_SignatureFilter : public Handle_AIS_TypeFilter { - - public: - // constructors - Handle_AIS_SignatureFilter(); - Handle_AIS_SignatureFilter(const Handle_AIS_SignatureFilter &aHandle); - Handle_AIS_SignatureFilter(const AIS_SignatureFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_SignatureFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_SignatureFilter { - AIS_SignatureFilter* _get_reference() { - return (AIS_SignatureFilter*)$self->Access(); - } -}; - -%extend Handle_AIS_SignatureFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_SignatureFilter) %extend AIS_SignatureFilter { %pythoncode { @@ -9711,51 +8258,7 @@ class AIS_TextLabel : public AIS_InteractiveObject { }; -%extend AIS_TextLabel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_TextLabel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_TextLabel::Handle_AIS_TextLabel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_TextLabel; -class Handle_AIS_TextLabel : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_TextLabel(); - Handle_AIS_TextLabel(const Handle_AIS_TextLabel &aHandle); - Handle_AIS_TextLabel(const AIS_TextLabel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_TextLabel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_TextLabel { - AIS_TextLabel* _get_reference() { - return (AIS_TextLabel*)$self->Access(); - } -}; - -%extend Handle_AIS_TextLabel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_TextLabel) %extend AIS_TextLabel { %pythoncode { @@ -9802,51 +8305,7 @@ class AIS_Triangulation : public AIS_InteractiveObject { }; -%extend AIS_Triangulation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Triangulation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Triangulation::Handle_AIS_Triangulation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Triangulation; -class Handle_AIS_Triangulation : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Triangulation(); - Handle_AIS_Triangulation(const Handle_AIS_Triangulation &aHandle); - Handle_AIS_Triangulation(const AIS_Triangulation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Triangulation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Triangulation { - AIS_Triangulation* _get_reference() { - return (AIS_Triangulation*)$self->Access(); - } -}; - -%extend Handle_AIS_Triangulation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Triangulation) %extend AIS_Triangulation { %pythoncode { @@ -10055,55 +8514,11 @@ class AIS_Trihedron : public AIS_InteractiveObject { }; +%make_alias(AIS_Trihedron) + %extend AIS_Trihedron { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Trihedron(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Trihedron::Handle_AIS_Trihedron %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Trihedron; -class Handle_AIS_Trihedron : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_AIS_Trihedron(); - Handle_AIS_Trihedron(const Handle_AIS_Trihedron &aHandle); - Handle_AIS_Trihedron(const AIS_Trihedron *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Trihedron DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Trihedron { - AIS_Trihedron* _get_reference() { - return (AIS_Trihedron*)$self->Access(); - } -}; - -%extend Handle_AIS_Trihedron { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend AIS_Trihedron { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor AIS_AngleDimension; @@ -10312,51 +8727,7 @@ class AIS_AngleDimension : public AIS_Dimension { }; -%extend AIS_AngleDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_AngleDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_AngleDimension::Handle_AIS_AngleDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_AngleDimension; -class Handle_AIS_AngleDimension : public Handle_AIS_Dimension { - - public: - // constructors - Handle_AIS_AngleDimension(); - Handle_AIS_AngleDimension(const Handle_AIS_AngleDimension &aHandle); - Handle_AIS_AngleDimension(const AIS_AngleDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_AngleDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_AngleDimension { - AIS_AngleDimension* _get_reference() { - return (AIS_AngleDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_AngleDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_AngleDimension) %extend AIS_AngleDimension { %pythoncode { @@ -10427,51 +8798,7 @@ class AIS_Chamf2dDimension : public AIS_Relation { }; -%extend AIS_Chamf2dDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Chamf2dDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Chamf2dDimension::Handle_AIS_Chamf2dDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Chamf2dDimension; -class Handle_AIS_Chamf2dDimension : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_Chamf2dDimension(); - Handle_AIS_Chamf2dDimension(const Handle_AIS_Chamf2dDimension &aHandle); - Handle_AIS_Chamf2dDimension(const AIS_Chamf2dDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Chamf2dDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Chamf2dDimension { - AIS_Chamf2dDimension* _get_reference() { - return (AIS_Chamf2dDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_Chamf2dDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Chamf2dDimension) %extend AIS_Chamf2dDimension { %pythoncode { @@ -10538,51 +8865,7 @@ class AIS_Chamf3dDimension : public AIS_Relation { }; -%extend AIS_Chamf3dDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_Chamf3dDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_Chamf3dDimension::Handle_AIS_Chamf3dDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_Chamf3dDimension; -class Handle_AIS_Chamf3dDimension : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_Chamf3dDimension(); - Handle_AIS_Chamf3dDimension(const Handle_AIS_Chamf3dDimension &aHandle); - Handle_AIS_Chamf3dDimension(const AIS_Chamf3dDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_Chamf3dDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_Chamf3dDimension { - AIS_Chamf3dDimension* _get_reference() { - return (AIS_Chamf3dDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_Chamf3dDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_Chamf3dDimension) %extend AIS_Chamf3dDimension { %pythoncode { @@ -10693,51 +8976,7 @@ class AIS_ColoredShape : public AIS_Shape { }; -%extend AIS_ColoredShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ColoredShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ColoredShape::Handle_AIS_ColoredShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ColoredShape; -class Handle_AIS_ColoredShape : public Handle_AIS_Shape { - - public: - // constructors - Handle_AIS_ColoredShape(); - Handle_AIS_ColoredShape(const Handle_AIS_ColoredShape &aHandle); - Handle_AIS_ColoredShape(const AIS_ColoredShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ColoredShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ColoredShape { - AIS_ColoredShape* _get_reference() { - return (AIS_ColoredShape*)$self->Access(); - } -}; - -%extend Handle_AIS_ColoredShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_ColoredShape) %extend AIS_ColoredShape { %pythoncode { @@ -10774,51 +9013,7 @@ class AIS_ConcentricRelation : public AIS_Relation { }; -%extend AIS_ConcentricRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ConcentricRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ConcentricRelation::Handle_AIS_ConcentricRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ConcentricRelation; -class Handle_AIS_ConcentricRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_ConcentricRelation(); - Handle_AIS_ConcentricRelation(const Handle_AIS_ConcentricRelation &aHandle); - Handle_AIS_ConcentricRelation(const AIS_ConcentricRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ConcentricRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ConcentricRelation { - AIS_ConcentricRelation* _get_reference() { - return (AIS_ConcentricRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_ConcentricRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_ConcentricRelation) %extend AIS_ConcentricRelation { %pythoncode { @@ -10935,51 +9130,7 @@ class AIS_DiameterDimension : public AIS_Dimension { }; -%extend AIS_DiameterDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_DiameterDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_DiameterDimension::Handle_AIS_DiameterDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_DiameterDimension; -class Handle_AIS_DiameterDimension : public Handle_AIS_Dimension { - - public: - // constructors - Handle_AIS_DiameterDimension(); - Handle_AIS_DiameterDimension(const Handle_AIS_DiameterDimension &aHandle); - Handle_AIS_DiameterDimension(const AIS_DiameterDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_DiameterDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_DiameterDimension { - AIS_DiameterDimension* _get_reference() { - return (AIS_DiameterDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_DiameterDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_DiameterDimension) %extend AIS_DiameterDimension { %pythoncode { @@ -11004,51 +9155,7 @@ class AIS_EllipseRadiusDimension : public AIS_Relation { }; -%extend AIS_EllipseRadiusDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_EllipseRadiusDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_EllipseRadiusDimension::Handle_AIS_EllipseRadiusDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_EllipseRadiusDimension; -class Handle_AIS_EllipseRadiusDimension : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_EllipseRadiusDimension(); - Handle_AIS_EllipseRadiusDimension(const Handle_AIS_EllipseRadiusDimension &aHandle); - Handle_AIS_EllipseRadiusDimension(const AIS_EllipseRadiusDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_EllipseRadiusDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_EllipseRadiusDimension { - AIS_EllipseRadiusDimension* _get_reference() { - return (AIS_EllipseRadiusDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_EllipseRadiusDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_EllipseRadiusDimension) %extend AIS_EllipseRadiusDimension { %pythoncode { @@ -11227,51 +9334,7 @@ class AIS_EqualDistanceRelation : public AIS_Relation { }; -%extend AIS_EqualDistanceRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_EqualDistanceRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_EqualDistanceRelation::Handle_AIS_EqualDistanceRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_EqualDistanceRelation; -class Handle_AIS_EqualDistanceRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_EqualDistanceRelation(); - Handle_AIS_EqualDistanceRelation(const Handle_AIS_EqualDistanceRelation &aHandle); - Handle_AIS_EqualDistanceRelation(const AIS_EqualDistanceRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_EqualDistanceRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_EqualDistanceRelation { - AIS_EqualDistanceRelation* _get_reference() { - return (AIS_EqualDistanceRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_EqualDistanceRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_EqualDistanceRelation) %extend AIS_EqualDistanceRelation { %pythoncode { @@ -11308,51 +9371,7 @@ class AIS_EqualRadiusRelation : public AIS_Relation { }; -%extend AIS_EqualRadiusRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_EqualRadiusRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_EqualRadiusRelation::Handle_AIS_EqualRadiusRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_EqualRadiusRelation; -class Handle_AIS_EqualRadiusRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_EqualRadiusRelation(); - Handle_AIS_EqualRadiusRelation(const Handle_AIS_EqualRadiusRelation &aHandle); - Handle_AIS_EqualRadiusRelation(const AIS_EqualRadiusRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_EqualRadiusRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_EqualRadiusRelation { - AIS_EqualRadiusRelation* _get_reference() { - return (AIS_EqualRadiusRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_EqualRadiusRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_EqualRadiusRelation) %extend AIS_EqualRadiusRelation { %pythoncode { @@ -11449,51 +9468,7 @@ class AIS_FixRelation : public AIS_Relation { }; -%extend AIS_FixRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_FixRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_FixRelation::Handle_AIS_FixRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_FixRelation; -class Handle_AIS_FixRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_FixRelation(); - Handle_AIS_FixRelation(const Handle_AIS_FixRelation &aHandle); - Handle_AIS_FixRelation(const AIS_FixRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_FixRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_FixRelation { - AIS_FixRelation* _get_reference() { - return (AIS_FixRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_FixRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_FixRelation) %extend AIS_FixRelation { %pythoncode { @@ -11536,51 +9511,7 @@ class AIS_IdenticRelation : public AIS_Relation { }; -%extend AIS_IdenticRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_IdenticRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_IdenticRelation::Handle_AIS_IdenticRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_IdenticRelation; -class Handle_AIS_IdenticRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_IdenticRelation(); - Handle_AIS_IdenticRelation(const Handle_AIS_IdenticRelation &aHandle); - Handle_AIS_IdenticRelation(const AIS_IdenticRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_IdenticRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_IdenticRelation { - AIS_IdenticRelation* _get_reference() { - return (AIS_IdenticRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_IdenticRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_IdenticRelation) %extend AIS_IdenticRelation { %pythoncode { @@ -11757,51 +9688,7 @@ class AIS_LengthDimension : public AIS_Dimension { }; -%extend AIS_LengthDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_LengthDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_LengthDimension::Handle_AIS_LengthDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_LengthDimension; -class Handle_AIS_LengthDimension : public Handle_AIS_Dimension { - - public: - // constructors - Handle_AIS_LengthDimension(); - Handle_AIS_LengthDimension(const Handle_AIS_LengthDimension &aHandle); - Handle_AIS_LengthDimension(const AIS_LengthDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_LengthDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_LengthDimension { - AIS_LengthDimension* _get_reference() { - return (AIS_LengthDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_LengthDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_LengthDimension) %extend AIS_LengthDimension { %pythoncode { @@ -11852,51 +9739,7 @@ class AIS_MidPointRelation : public AIS_Relation { }; -%extend AIS_MidPointRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_MidPointRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_MidPointRelation::Handle_AIS_MidPointRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_MidPointRelation; -class Handle_AIS_MidPointRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_MidPointRelation(); - Handle_AIS_MidPointRelation(const Handle_AIS_MidPointRelation &aHandle); - Handle_AIS_MidPointRelation(const AIS_MidPointRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_MidPointRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_MidPointRelation { - AIS_MidPointRelation* _get_reference() { - return (AIS_MidPointRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_MidPointRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_MidPointRelation) %extend AIS_MidPointRelation { %pythoncode { @@ -11955,51 +9798,7 @@ class AIS_OffsetDimension : public AIS_Relation { }; -%extend AIS_OffsetDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_OffsetDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_OffsetDimension::Handle_AIS_OffsetDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_OffsetDimension; -class Handle_AIS_OffsetDimension : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_OffsetDimension(); - Handle_AIS_OffsetDimension(const Handle_AIS_OffsetDimension &aHandle); - Handle_AIS_OffsetDimension(const AIS_OffsetDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_OffsetDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_OffsetDimension { - AIS_OffsetDimension* _get_reference() { - return (AIS_OffsetDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_OffsetDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_OffsetDimension) %extend AIS_OffsetDimension { %pythoncode { @@ -12060,51 +9859,7 @@ class AIS_ParallelRelation : public AIS_Relation { }; -%extend AIS_ParallelRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_ParallelRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_ParallelRelation::Handle_AIS_ParallelRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_ParallelRelation; -class Handle_AIS_ParallelRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_ParallelRelation(); - Handle_AIS_ParallelRelation(const Handle_AIS_ParallelRelation &aHandle); - Handle_AIS_ParallelRelation(const AIS_ParallelRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_ParallelRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_ParallelRelation { - AIS_ParallelRelation* _get_reference() { - return (AIS_ParallelRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_ParallelRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_ParallelRelation) %extend AIS_ParallelRelation { %pythoncode { @@ -12151,51 +9906,7 @@ class AIS_PerpendicularRelation : public AIS_Relation { }; -%extend AIS_PerpendicularRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_PerpendicularRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_PerpendicularRelation::Handle_AIS_PerpendicularRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_PerpendicularRelation; -class Handle_AIS_PerpendicularRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_PerpendicularRelation(); - Handle_AIS_PerpendicularRelation(const Handle_AIS_PerpendicularRelation &aHandle); - Handle_AIS_PerpendicularRelation(const AIS_PerpendicularRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_PerpendicularRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_PerpendicularRelation { - AIS_PerpendicularRelation* _get_reference() { - return (AIS_PerpendicularRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_PerpendicularRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_PerpendicularRelation) %extend AIS_PerpendicularRelation { %pythoncode { @@ -12312,51 +10023,7 @@ class AIS_RadiusDimension : public AIS_Dimension { }; -%extend AIS_RadiusDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_RadiusDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_RadiusDimension::Handle_AIS_RadiusDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_RadiusDimension; -class Handle_AIS_RadiusDimension : public Handle_AIS_Dimension { - - public: - // constructors - Handle_AIS_RadiusDimension(); - Handle_AIS_RadiusDimension(const Handle_AIS_RadiusDimension &aHandle); - Handle_AIS_RadiusDimension(const AIS_RadiusDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_RadiusDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_RadiusDimension { - AIS_RadiusDimension* _get_reference() { - return (AIS_RadiusDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_RadiusDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_RadiusDimension) %extend AIS_RadiusDimension { %pythoncode { @@ -12415,51 +10082,7 @@ class AIS_SymmetricRelation : public AIS_Relation { }; -%extend AIS_SymmetricRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_SymmetricRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_SymmetricRelation::Handle_AIS_SymmetricRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_SymmetricRelation; -class Handle_AIS_SymmetricRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_SymmetricRelation(); - Handle_AIS_SymmetricRelation(const Handle_AIS_SymmetricRelation &aHandle); - Handle_AIS_SymmetricRelation(const AIS_SymmetricRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_SymmetricRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_SymmetricRelation { - AIS_SymmetricRelation* _get_reference() { - return (AIS_SymmetricRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_SymmetricRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_SymmetricRelation) %extend AIS_SymmetricRelation { %pythoncode { @@ -12512,51 +10135,7 @@ class AIS_TangentRelation : public AIS_Relation { }; -%extend AIS_TangentRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_TangentRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_TangentRelation::Handle_AIS_TangentRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_TangentRelation; -class Handle_AIS_TangentRelation : public Handle_AIS_Relation { - - public: - // constructors - Handle_AIS_TangentRelation(); - Handle_AIS_TangentRelation(const Handle_AIS_TangentRelation &aHandle); - Handle_AIS_TangentRelation(const AIS_TangentRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_TangentRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_TangentRelation { - AIS_TangentRelation* _get_reference() { - return (AIS_TangentRelation*)$self->Access(); - } -}; - -%extend Handle_AIS_TangentRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_TangentRelation) %extend AIS_TangentRelation { %pythoncode { @@ -12765,51 +10344,7 @@ class AIS_TexturedShape : public AIS_Shape { }; -%extend AIS_TexturedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_TexturedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_TexturedShape::Handle_AIS_TexturedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_TexturedShape; -class Handle_AIS_TexturedShape : public Handle_AIS_Shape { - - public: - // constructors - Handle_AIS_TexturedShape(); - Handle_AIS_TexturedShape(const Handle_AIS_TexturedShape &aHandle); - Handle_AIS_TexturedShape(const AIS_TexturedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_TexturedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_TexturedShape { - AIS_TexturedShape* _get_reference() { - return (AIS_TexturedShape*)$self->Access(); - } -}; - -%extend Handle_AIS_TexturedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_TexturedShape) %extend AIS_TexturedShape { %pythoncode { @@ -12864,51 +10399,7 @@ class AIS_MaxRadiusDimension : public AIS_EllipseRadiusDimension { }; -%extend AIS_MaxRadiusDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_MaxRadiusDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_MaxRadiusDimension::Handle_AIS_MaxRadiusDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_MaxRadiusDimension; -class Handle_AIS_MaxRadiusDimension : public Handle_AIS_EllipseRadiusDimension { - - public: - // constructors - Handle_AIS_MaxRadiusDimension(); - Handle_AIS_MaxRadiusDimension(const Handle_AIS_MaxRadiusDimension &aHandle); - Handle_AIS_MaxRadiusDimension(const AIS_MaxRadiusDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_MaxRadiusDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_MaxRadiusDimension { - AIS_MaxRadiusDimension* _get_reference() { - return (AIS_MaxRadiusDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_MaxRadiusDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_MaxRadiusDimension) %extend AIS_MaxRadiusDimension { %pythoncode { @@ -12963,51 +10454,7 @@ class AIS_MinRadiusDimension : public AIS_EllipseRadiusDimension { }; -%extend AIS_MinRadiusDimension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AIS_MinRadiusDimension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AIS_MinRadiusDimension::Handle_AIS_MinRadiusDimension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AIS_MinRadiusDimension; -class Handle_AIS_MinRadiusDimension : public Handle_AIS_EllipseRadiusDimension { - - public: - // constructors - Handle_AIS_MinRadiusDimension(); - Handle_AIS_MinRadiusDimension(const Handle_AIS_MinRadiusDimension &aHandle); - Handle_AIS_MinRadiusDimension(const AIS_MinRadiusDimension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AIS_MinRadiusDimension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AIS_MinRadiusDimension { - AIS_MinRadiusDimension* _get_reference() { - return (AIS_MinRadiusDimension*)$self->Access(); - } -}; - -%extend Handle_AIS_MinRadiusDimension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AIS_MinRadiusDimension) %extend AIS_MinRadiusDimension { %pythoncode { diff --git a/src/SWIG_files/wrapper/Adaptor2d.i b/src/SWIG_files/wrapper/Adaptor2d.i index 1744b1972..80c79e2c9 100644 --- a/src/SWIG_files/wrapper/Adaptor2d.i +++ b/src/SWIG_files/wrapper/Adaptor2d.i @@ -18,7 +18,111 @@ along with pythonOCC. If not, see . */ %define ADAPTOR2DDOCSTRING -"No docstring provided." +"The Adaptor2d package is used to help defining +reusable geometric algorithms. i.e. that can be +used on curves and surfaces. + +It defines general services for objects : + +- the 2d curve. Curve2d + +The services are : + +- Usual services found in Geom or Geom2d : + +* parameter range, value and derivatives, etc... + +- Continuity breakout services : + +* Allows to divide a curve or a surfaces in +parts with a given derivation order. + +- Special geometries detection services : + +* Allows to test for special cases that can +be processed more easily : +- Conics, Quadrics, Bezier, BSpline ... + +And to get the correponding data form the +package gp or Geom. The special type +OtherCurve means that no special case has +been detected and the algorithm may use +only the evaluation methods (D0, D1, ...) + + +For each category Curve2d, Curve, Surface we +define three classes, we illustrate now the +principles with the Curve, the same applies to +Curve2d and Surface. + +The class Curve is the abstract root for all +Curves used by algorithms, it is handled by value +and provides as deferred methods the services +described above. + +Some services (breakout) requires to create new +curves, this leads to memory allocation +considerations (who create the curve, who deletes +it ?). To solve this problem elegantly the curve +will return a HCurve, the HCurve is a curve +handled by reference so it will be deallocated +automatically when it is not used. + +A third class GenHCurve is provided, this class is +generic and its utility is to provide automatic +generation of the HCurve class when you have +written the Curve class. + + +* Let us show an example (with 2d curves) : + +Imagine an algorithm to intersect curves, this +algorithms is written to process Curve2d from +Adaptor2d : + +A method may look like : + +Intersect(C1,C2 : Curve2d from Adaptor2d); + +Which will look like in C++ + +Intersect(const Adaptor2d_Curve2d& C1, +const Adaptor2d_Curve2d& C2) +{ +// you can call any method +Standard_Real first1 = C1.FirstParameter(); + +// but avoid to copy in an Adaptor2d_Curve which +// is an Abstract class, use a reference or a pointer + +const Adaptor2d_Curve& C = C1; +const Adaptor2d_Curve *pC = &C1; + +// If you are interseted in Intervals you must +// store them in a HCurve to ensure they are kept +// in memory. Then a referrence may be used. + +Handle(Adaptor2d_HCurve) HCI = C1.Interval(1); + +const Adaptor2d_Curve& CI = HCI->Curve(); +pC = &(HCI->Curve()); + + +* The Adaptor2d provides also Generic classes +implementing algorithmic curves and surfaces. + +- IsoCurve : Isoparametric curve on a surface. +- CurveOnSurface : 2D curve in the parametric +space of a surface. + + +- OffsetCurve2d : 2d offset curve +- ProjectedCurve : 3d curve projected on a plane +- SurfaceOfLinearExtrusion +- SurfaceOfRevolution + +They are instantiated with HCurve, HSurface, HCurved2d +" %enddef %module (package="OCC.Core", docstring=ADAPTOR2DDOCSTRING) Adaptor2d @@ -34,25 +138,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Adaptor2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Adaptor2d_Curve2d * Adaptor2d_Curve2dPtr; /* end typedefs declaration */ @@ -60,6 +150,9 @@ typedef Adaptor2d_Curve2d * Adaptor2d_Curve2dPtr; /* public enums */ /* end public enums declaration */ +%wrap_handle(Adaptor2d_HCurve2d) +%wrap_handle(Adaptor2d_HLine2d) + class Adaptor2d_Curve2d { public: %feature("compactdefaultargs") FirstParameter; @@ -430,51 +523,7 @@ class Adaptor2d_HCurve2d : public MMgt_TShared { }; -%extend Adaptor2d_HCurve2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor2d_HCurve2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor2d_HCurve2d::Handle_Adaptor2d_HCurve2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor2d_HCurve2d; -class Handle_Adaptor2d_HCurve2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Adaptor2d_HCurve2d(); - Handle_Adaptor2d_HCurve2d(const Handle_Adaptor2d_HCurve2d &aHandle); - Handle_Adaptor2d_HCurve2d(const Adaptor2d_HCurve2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor2d_HCurve2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor2d_HCurve2d { - Adaptor2d_HCurve2d* _get_reference() { - return (Adaptor2d_HCurve2d*)$self->Access(); - } -}; - -%extend Handle_Adaptor2d_HCurve2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor2d_HCurve2d) %extend Adaptor2d_HCurve2d { %pythoncode { @@ -511,51 +560,7 @@ class Adaptor2d_HLine2d : public Adaptor2d_HCurve2d { }; -%extend Adaptor2d_HLine2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor2d_HLine2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor2d_HLine2d::Handle_Adaptor2d_HLine2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor2d_HLine2d; -class Handle_Adaptor2d_HLine2d : public Handle_Adaptor2d_HCurve2d { - - public: - // constructors - Handle_Adaptor2d_HLine2d(); - Handle_Adaptor2d_HLine2d(const Handle_Adaptor2d_HLine2d &aHandle); - Handle_Adaptor2d_HLine2d(const Adaptor2d_HLine2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor2d_HLine2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor2d_HLine2d { - Adaptor2d_HLine2d* _get_reference() { - return (Adaptor2d_HLine2d*)$self->Access(); - } -}; - -%extend Handle_Adaptor2d_HLine2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor2d_HLine2d) %extend Adaptor2d_HLine2d { %pythoncode { diff --git a/src/SWIG_files/wrapper/Adaptor3d.i b/src/SWIG_files/wrapper/Adaptor3d.i index 5aba71260..2965d3ddf 100644 --- a/src/SWIG_files/wrapper/Adaptor3d.i +++ b/src/SWIG_files/wrapper/Adaptor3d.i @@ -18,7 +18,113 @@ along with pythonOCC. If not, see . */ %define ADAPTOR3DDOCSTRING -"No docstring provided." +"The Adaptor3d package is used to help defining +reusable geometric algorithms. i.e. that can be +used on curves and surfaces. + +It defines general services for 3 kind of objects : + +- the 2d curve. Curve2d +- the 3d curve. Curve +- the 3d surface. Surface + +The services are : + +- Usual services found in Geom or Geom2d : + +* parameter range, value and derivatives, etc... + +- Continuity breakout services : + +* Allows to divide a curve or a surfaces in +parts with a given derivation order. + +- Special geometries detection services : + +* Allows to test for special cases that can +be processed more easily : +- Conics, Quadrics, Bezier, BSpline ... + +And to get the correponding data form the +package gp or Geom. The special type +OtherCurve means that no special case has +been detected and the algorithm may use +only the evaluation methods (D0, D1, ...) + + +For each category Curve2d, Curve, Surface we +define three classes, we illustrate now the +principles with the Curve, the same applies to +Curve2d and Surface. + +The class Curve is the abstract root for all +Curves used by algorithms, it is handled by value +and provides as deferred methods the services +described above. + +Some services (breakout) requires to create new +curves, this leads to memory allocation +considerations (who create the curve, who deletes +it ?). To solve this problem elegantly the curve +will return a HCurve, the HCurve is a curve +handled by reference so it will be deallocated +automatically when it is not used. + +A third class GenHCurve is provided, this class is +generic and its utility is to provide automatic +generation of the HCurve class when you have +written the Curve class. + + +* Let us show an example (with 2d curves) : + +Imagine an algorithm to intersect curves, this +algorithms is written to process Curve2d from +Adaptor3d : + +A method may look like : + +Intersect(C1,C2 : Curve2d from Adaptor3d); + +Which will look like in C++ + +Intersect(const Adaptor2d_Curve2d& C1, +const Adaptor2d_Curve2d& C2) +{ +// you can call any method +Standard_Real first1 = C1.FirstParameter(); + +// but avoid to copy in an Adaptor3d_Curve which +// is an Abstract class, use a reference or a pointer + +const Adaptor3d_Curve& C = C1; +const Adaptor3d_Curve *pC = &C1; + +// If you are interseted in Intervals you must +// store them in a HCurve to ensure they are kept +// in memory. Then a referrence may be used. + +Handle(Adaptor3d_HCurve) HCI = C1.Interval(1); + +const Adaptor3d_Curve& CI = HCI->Curve(); +pC = &(HCI->Curve()); + + +* The Adaptor3d provides also Generic classes +implementing algorithmic curves and surfaces. + +- IsoCurve : Isoparametric curve on a surface. +- CurveOnSurface : 2D curve in the parametric +space of a surface. + + +- OffsetCurve2d : 2d offset curve +- ProjectedCurve : 3d curve projected on a plane +- SurfaceOfLinearExtrusion +- SurfaceOfRevolution + +They are instantiated with HCurve, HSurface, HCurved2d +" %enddef %module (package="OCC.Core", docstring=ADAPTOR3DDOCSTRING) Adaptor3d @@ -34,25 +140,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Adaptor3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Adaptor3d_Surface * Adaptor3d_SurfacePtr; typedef Adaptor3d_Curve * Adaptor3d_CurvePtr; @@ -62,6 +154,16 @@ typedef Adaptor3d_CurveOnSurface * Adaptor3d_CurveOnSurfacePtr; /* public enums */ /* end public enums declaration */ +%wrap_handle(Adaptor3d_HCurve) +%wrap_handle(Adaptor3d_HOffsetCurve) +%wrap_handle(Adaptor3d_HSurface) +%wrap_handle(Adaptor3d_HVertex) +%wrap_handle(Adaptor3d_TopolTool) +%wrap_handle(Adaptor3d_HCurveOnSurface) +%wrap_handle(Adaptor3d_HIsoCurve) +%wrap_handle(Adaptor3d_HSurfaceOfLinearExtrusion) +%wrap_handle(Adaptor3d_HSurfaceOfRevolution) + class Adaptor3d_Curve { public: %feature("compactdefaultargs") FirstParameter; @@ -436,51 +538,7 @@ class Adaptor3d_HCurve : public MMgt_TShared { }; -%extend Adaptor3d_HCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HCurve::Handle_Adaptor3d_HCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HCurve; -class Handle_Adaptor3d_HCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Adaptor3d_HCurve(); - Handle_Adaptor3d_HCurve(const Handle_Adaptor3d_HCurve &aHandle); - Handle_Adaptor3d_HCurve(const Adaptor3d_HCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HCurve { - Adaptor3d_HCurve* _get_reference() { - return (Adaptor3d_HCurve*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HCurve) %extend Adaptor3d_HCurve { %pythoncode { @@ -517,51 +575,7 @@ class Adaptor3d_HOffsetCurve : public Adaptor2d_HCurve2d { }; -%extend Adaptor3d_HOffsetCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HOffsetCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HOffsetCurve::Handle_Adaptor3d_HOffsetCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HOffsetCurve; -class Handle_Adaptor3d_HOffsetCurve : public Handle_Adaptor2d_HCurve2d { - - public: - // constructors - Handle_Adaptor3d_HOffsetCurve(); - Handle_Adaptor3d_HOffsetCurve(const Handle_Adaptor3d_HOffsetCurve &aHandle); - Handle_Adaptor3d_HOffsetCurve(const Adaptor3d_HOffsetCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HOffsetCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HOffsetCurve { - Adaptor3d_HOffsetCurve* _get_reference() { - return (Adaptor3d_HOffsetCurve*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HOffsetCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HOffsetCurve) %extend Adaptor3d_HOffsetCurve { %pythoncode { @@ -864,51 +878,7 @@ class Adaptor3d_HSurface : public MMgt_TShared { }; -%extend Adaptor3d_HSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HSurface::Handle_Adaptor3d_HSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HSurface; -class Handle_Adaptor3d_HSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Adaptor3d_HSurface(); - Handle_Adaptor3d_HSurface(const Handle_Adaptor3d_HSurface &aHandle); - Handle_Adaptor3d_HSurface(const Adaptor3d_HSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HSurface { - Adaptor3d_HSurface* _get_reference() { - return (Adaptor3d_HSurface*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HSurface) %extend Adaptor3d_HSurface { %pythoncode { @@ -1327,51 +1297,7 @@ class Adaptor3d_HVertex : public MMgt_TShared { }; -%extend Adaptor3d_HVertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HVertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HVertex::Handle_Adaptor3d_HVertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HVertex; -class Handle_Adaptor3d_HVertex : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Adaptor3d_HVertex(); - Handle_Adaptor3d_HVertex(const Handle_Adaptor3d_HVertex &aHandle); - Handle_Adaptor3d_HVertex(const Adaptor3d_HVertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HVertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HVertex { - Adaptor3d_HVertex* _get_reference() { - return (Adaptor3d_HVertex*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HVertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HVertex) %extend Adaptor3d_HVertex { %pythoncode { @@ -2250,51 +2176,7 @@ class Adaptor3d_TopolTool : public MMgt_TShared { }; -%extend Adaptor3d_TopolTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_TopolTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_TopolTool::Handle_Adaptor3d_TopolTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_TopolTool; -class Handle_Adaptor3d_TopolTool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Adaptor3d_TopolTool(); - Handle_Adaptor3d_TopolTool(const Handle_Adaptor3d_TopolTool &aHandle); - Handle_Adaptor3d_TopolTool(const Adaptor3d_TopolTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_TopolTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_TopolTool { - Adaptor3d_TopolTool* _get_reference() { - return (Adaptor3d_TopolTool*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_TopolTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_TopolTool) %extend Adaptor3d_TopolTool { %pythoncode { @@ -2580,51 +2462,7 @@ class Adaptor3d_HCurveOnSurface : public Adaptor3d_HCurve { }; -%extend Adaptor3d_HCurveOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HCurveOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HCurveOnSurface::Handle_Adaptor3d_HCurveOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HCurveOnSurface; -class Handle_Adaptor3d_HCurveOnSurface : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_Adaptor3d_HCurveOnSurface(); - Handle_Adaptor3d_HCurveOnSurface(const Handle_Adaptor3d_HCurveOnSurface &aHandle); - Handle_Adaptor3d_HCurveOnSurface(const Adaptor3d_HCurveOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HCurveOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HCurveOnSurface { - Adaptor3d_HCurveOnSurface* _get_reference() { - return (Adaptor3d_HCurveOnSurface*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HCurveOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HCurveOnSurface) %extend Adaptor3d_HCurveOnSurface { %pythoncode { @@ -2665,51 +2503,7 @@ class Adaptor3d_HIsoCurve : public Adaptor3d_HCurve { }; -%extend Adaptor3d_HIsoCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HIsoCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HIsoCurve::Handle_Adaptor3d_HIsoCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HIsoCurve; -class Handle_Adaptor3d_HIsoCurve : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_Adaptor3d_HIsoCurve(); - Handle_Adaptor3d_HIsoCurve(const Handle_Adaptor3d_HIsoCurve &aHandle); - Handle_Adaptor3d_HIsoCurve(const Adaptor3d_HIsoCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HIsoCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HIsoCurve { - Adaptor3d_HIsoCurve* _get_reference() { - return (Adaptor3d_HIsoCurve*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HIsoCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HIsoCurve) %extend Adaptor3d_HIsoCurve { %pythoncode { @@ -2746,51 +2540,7 @@ class Adaptor3d_HSurfaceOfLinearExtrusion : public Adaptor3d_HSurface { }; -%extend Adaptor3d_HSurfaceOfLinearExtrusion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HSurfaceOfLinearExtrusion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HSurfaceOfLinearExtrusion::Handle_Adaptor3d_HSurfaceOfLinearExtrusion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HSurfaceOfLinearExtrusion; -class Handle_Adaptor3d_HSurfaceOfLinearExtrusion : public Handle_Adaptor3d_HSurface { - - public: - // constructors - Handle_Adaptor3d_HSurfaceOfLinearExtrusion(); - Handle_Adaptor3d_HSurfaceOfLinearExtrusion(const Handle_Adaptor3d_HSurfaceOfLinearExtrusion &aHandle); - Handle_Adaptor3d_HSurfaceOfLinearExtrusion(const Adaptor3d_HSurfaceOfLinearExtrusion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HSurfaceOfLinearExtrusion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HSurfaceOfLinearExtrusion { - Adaptor3d_HSurfaceOfLinearExtrusion* _get_reference() { - return (Adaptor3d_HSurfaceOfLinearExtrusion*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HSurfaceOfLinearExtrusion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HSurfaceOfLinearExtrusion) %extend Adaptor3d_HSurfaceOfLinearExtrusion { %pythoncode { @@ -2827,51 +2577,7 @@ class Adaptor3d_HSurfaceOfRevolution : public Adaptor3d_HSurface { }; -%extend Adaptor3d_HSurfaceOfRevolution { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Adaptor3d_HSurfaceOfRevolution(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Adaptor3d_HSurfaceOfRevolution::Handle_Adaptor3d_HSurfaceOfRevolution %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Adaptor3d_HSurfaceOfRevolution; -class Handle_Adaptor3d_HSurfaceOfRevolution : public Handle_Adaptor3d_HSurface { - - public: - // constructors - Handle_Adaptor3d_HSurfaceOfRevolution(); - Handle_Adaptor3d_HSurfaceOfRevolution(const Handle_Adaptor3d_HSurfaceOfRevolution &aHandle); - Handle_Adaptor3d_HSurfaceOfRevolution(const Adaptor3d_HSurfaceOfRevolution *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Adaptor3d_HSurfaceOfRevolution DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Adaptor3d_HSurfaceOfRevolution { - Adaptor3d_HSurfaceOfRevolution* _get_reference() { - return (Adaptor3d_HSurfaceOfRevolution*)$self->Access(); - } -}; - -%extend Handle_Adaptor3d_HSurfaceOfRevolution { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Adaptor3d_HSurfaceOfRevolution) %extend Adaptor3d_HSurfaceOfRevolution { %pythoncode { diff --git a/src/SWIG_files/wrapper/AdvApp2Var.i b/src/SWIG_files/wrapper/AdvApp2Var.i index 33afe45af..bde5d05a8 100644 --- a/src/SWIG_files/wrapper/AdvApp2Var.i +++ b/src/SWIG_files/wrapper/AdvApp2Var.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define ADVAPP2VARDOCSTRING -"No docstring provided." +"This package provides algorithms to approximate a +function of 2 variables that can be multidimensional; +the result is a BSpline function with the required continuity +Warning: only one 3D BSpline for the moment + + + +" %enddef %module (package="OCC.Core", docstring=ADVAPP2VARDOCSTRING) AdvApp2Var @@ -34,25 +41,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AdvApp2Var_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -69,6 +62,11 @@ enum AdvApp2Var_CriterionType { /* end public enums declaration */ +%wrap_handle(AdvApp2Var_SequenceNodeOfSequenceOfNode) +%wrap_handle(AdvApp2Var_SequenceNodeOfSequenceOfPatch) +%wrap_handle(AdvApp2Var_SequenceNodeOfSequenceOfStrip) +%wrap_handle(AdvApp2Var_SequenceNodeOfStrip) + %nodefaultctor AdvApp2Var_ApproxAFunc2Var; class AdvApp2Var_ApproxAFunc2Var { public: @@ -2109,51 +2107,7 @@ class AdvApp2Var_SequenceNodeOfSequenceOfNode : public TCollection_SeqNode { }; -%extend AdvApp2Var_SequenceNodeOfSequenceOfNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode::Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode; -class Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode(); - Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode(const Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode &aHandle); - Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode(const AdvApp2Var_SequenceNodeOfSequenceOfNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode { - AdvApp2Var_SequenceNodeOfSequenceOfNode* _get_reference() { - return (AdvApp2Var_SequenceNodeOfSequenceOfNode*)$self->Access(); - } -}; - -%extend Handle_AdvApp2Var_SequenceNodeOfSequenceOfNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AdvApp2Var_SequenceNodeOfSequenceOfNode) %extend AdvApp2Var_SequenceNodeOfSequenceOfNode { %pythoncode { @@ -2180,51 +2134,7 @@ class AdvApp2Var_SequenceNodeOfSequenceOfPatch : public TCollection_SeqNode { }; -%extend AdvApp2Var_SequenceNodeOfSequenceOfPatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch::Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch; -class Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch(); - Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch(const Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch &aHandle); - Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch(const AdvApp2Var_SequenceNodeOfSequenceOfPatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch { - AdvApp2Var_SequenceNodeOfSequenceOfPatch* _get_reference() { - return (AdvApp2Var_SequenceNodeOfSequenceOfPatch*)$self->Access(); - } -}; - -%extend Handle_AdvApp2Var_SequenceNodeOfSequenceOfPatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AdvApp2Var_SequenceNodeOfSequenceOfPatch) %extend AdvApp2Var_SequenceNodeOfSequenceOfPatch { %pythoncode { @@ -2251,51 +2161,7 @@ class AdvApp2Var_SequenceNodeOfSequenceOfStrip : public TCollection_SeqNode { }; -%extend AdvApp2Var_SequenceNodeOfSequenceOfStrip { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip::Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip; -class Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip(); - Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip(const Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip &aHandle); - Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip(const AdvApp2Var_SequenceNodeOfSequenceOfStrip *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip { - AdvApp2Var_SequenceNodeOfSequenceOfStrip* _get_reference() { - return (AdvApp2Var_SequenceNodeOfSequenceOfStrip*)$self->Access(); - } -}; - -%extend Handle_AdvApp2Var_SequenceNodeOfSequenceOfStrip { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AdvApp2Var_SequenceNodeOfSequenceOfStrip) %extend AdvApp2Var_SequenceNodeOfSequenceOfStrip { %pythoncode { @@ -2322,51 +2188,7 @@ class AdvApp2Var_SequenceNodeOfStrip : public TCollection_SeqNode { }; -%extend AdvApp2Var_SequenceNodeOfStrip { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AdvApp2Var_SequenceNodeOfStrip(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AdvApp2Var_SequenceNodeOfStrip::Handle_AdvApp2Var_SequenceNodeOfStrip %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AdvApp2Var_SequenceNodeOfStrip; -class Handle_AdvApp2Var_SequenceNodeOfStrip : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AdvApp2Var_SequenceNodeOfStrip(); - Handle_AdvApp2Var_SequenceNodeOfStrip(const Handle_AdvApp2Var_SequenceNodeOfStrip &aHandle); - Handle_AdvApp2Var_SequenceNodeOfStrip(const AdvApp2Var_SequenceNodeOfStrip *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AdvApp2Var_SequenceNodeOfStrip DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AdvApp2Var_SequenceNodeOfStrip { - AdvApp2Var_SequenceNodeOfStrip* _get_reference() { - return (AdvApp2Var_SequenceNodeOfStrip*)$self->Access(); - } -}; - -%extend Handle_AdvApp2Var_SequenceNodeOfStrip { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AdvApp2Var_SequenceNodeOfStrip) %extend AdvApp2Var_SequenceNodeOfStrip { %pythoncode { diff --git a/src/SWIG_files/wrapper/AdvApprox.i b/src/SWIG_files/wrapper/AdvApprox.i index b5e2815a9..f43b3c8ca 100644 --- a/src/SWIG_files/wrapper/AdvApprox.i +++ b/src/SWIG_files/wrapper/AdvApprox.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define ADVAPPROXDOCSTRING -"No docstring provided." +"This package provides algorithms approximating a function +that can be multidimensional creating in the end a +BSpline function with the required continuity + +" %enddef %module (package="OCC.Core", docstring=ADVAPPROXDOCSTRING) AdvApprox @@ -34,31 +38,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AdvApprox_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor AdvApprox_ApproxAFunction; class AdvApprox_ApproxAFunction { public: diff --git a/src/SWIG_files/wrapper/AppBlend.i b/src/SWIG_files/wrapper/AppBlend.i index 7c628fb4b..0e3c9a5b1 100644 --- a/src/SWIG_files/wrapper/AppBlend.i +++ b/src/SWIG_files/wrapper/AppBlend.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define APPBLENDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=APPBLENDDOCSTRING) AppBlend @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AppBlend_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor AppBlend_Approx; class AppBlend_Approx { public: diff --git a/src/SWIG_files/wrapper/AppCont.i b/src/SWIG_files/wrapper/AppCont.i index 374b4919f..d7cdb63e9 100644 --- a/src/SWIG_files/wrapper/AppCont.i +++ b/src/SWIG_files/wrapper/AppCont.i @@ -18,7 +18,19 @@ along with pythonOCC. If not, see . */ %define APPCONTDOCSTRING -"No docstring provided." +"This package provides the least square algorithms +necessary to approximate a set of continous curves +or a continous surface. + + +It also provides an instantiation of these algorithms +for a class Function, a function f(t). +The user will have to inherit class Function to use it. + + +-Level : Advanced. +All methods of all classes will be advanced. +" %enddef %module (package="OCC.Core", docstring=APPCONTDOCSTRING) AppCont @@ -34,31 +46,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AppCont_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor AppCont_Function; class AppCont_Function { public: diff --git a/src/SWIG_files/wrapper/AppDef.i b/src/SWIG_files/wrapper/AppDef.i index 8076c7b64..c79388942 100644 --- a/src/SWIG_files/wrapper/AppDef.i +++ b/src/SWIG_files/wrapper/AppDef.i @@ -18,7 +18,23 @@ along with pythonOCC. If not, see . */ %define APPDEFDOCSTRING -"No docstring provided." +"This package describes all the classes needed to approximate +points in Bezier curves. It is used in the package +AppParCurves. +The points of the same range for the approximation are +organised in MultiPointConstraints. These MultiPointConstraints + +are organized in a MultiLine. +The corresponding result of a MultiLine approximation is +a MultiCurve (set of Bezier curves) which has the same +structure as a MultiLine: The MultiCurve is a set of +MultiPoint. +A point of a MultiLine can have many significations: the approximation curve +can go through this point or not, can have a given tangency, or can +have a given curvature. +Note: a CurvaturePoint is also a PassPoint and a TangencyPoint. +A TangencyPoint is also a PassPoint. +" %enddef %module (package="OCC.Core", docstring=APPDEFDOCSTRING) AppDef @@ -34,31 +50,21 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AppDef_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(AppDef_HArray1OfMultiPointConstraint) +%wrap_handle(AppDef_SmoothCriterion) +%wrap_handle(AppDef_LinearCriteria) + %nodefaultctor AppDef_Array1OfMultiPointConstraint; class AppDef_Array1OfMultiPointConstraint { public: @@ -1074,51 +1080,7 @@ class AppDef_HArray1OfMultiPointConstraint : public MMgt_TShared { }; -%extend AppDef_HArray1OfMultiPointConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppDef_HArray1OfMultiPointConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppDef_HArray1OfMultiPointConstraint::Handle_AppDef_HArray1OfMultiPointConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppDef_HArray1OfMultiPointConstraint; -class Handle_AppDef_HArray1OfMultiPointConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AppDef_HArray1OfMultiPointConstraint(); - Handle_AppDef_HArray1OfMultiPointConstraint(const Handle_AppDef_HArray1OfMultiPointConstraint &aHandle); - Handle_AppDef_HArray1OfMultiPointConstraint(const AppDef_HArray1OfMultiPointConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppDef_HArray1OfMultiPointConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppDef_HArray1OfMultiPointConstraint { - AppDef_HArray1OfMultiPointConstraint* _get_reference() { - return (AppDef_HArray1OfMultiPointConstraint*)$self->Access(); - } -}; - -%extend Handle_AppDef_HArray1OfMultiPointConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppDef_HArray1OfMultiPointConstraint) %extend AppDef_HArray1OfMultiPointConstraint { %pythoncode { @@ -3039,51 +3001,7 @@ class AppDef_SmoothCriterion : public MMgt_TShared { }; -%extend AppDef_SmoothCriterion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppDef_SmoothCriterion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppDef_SmoothCriterion::Handle_AppDef_SmoothCriterion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppDef_SmoothCriterion; -class Handle_AppDef_SmoothCriterion : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AppDef_SmoothCriterion(); - Handle_AppDef_SmoothCriterion(const Handle_AppDef_SmoothCriterion &aHandle); - Handle_AppDef_SmoothCriterion(const AppDef_SmoothCriterion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppDef_SmoothCriterion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppDef_SmoothCriterion { - AppDef_SmoothCriterion* _get_reference() { - return (AppDef_SmoothCriterion*)$self->Access(); - } -}; - -%extend Handle_AppDef_SmoothCriterion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppDef_SmoothCriterion) %extend AppDef_SmoothCriterion { %pythoncode { @@ -3956,51 +3874,7 @@ class AppDef_LinearCriteria : public AppDef_SmoothCriterion { }; -%extend AppDef_LinearCriteria { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppDef_LinearCriteria(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppDef_LinearCriteria::Handle_AppDef_LinearCriteria %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppDef_LinearCriteria; -class Handle_AppDef_LinearCriteria : public Handle_AppDef_SmoothCriterion { - - public: - // constructors - Handle_AppDef_LinearCriteria(); - Handle_AppDef_LinearCriteria(const Handle_AppDef_LinearCriteria &aHandle); - Handle_AppDef_LinearCriteria(const AppDef_LinearCriteria *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppDef_LinearCriteria DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppDef_LinearCriteria { - AppDef_LinearCriteria* _get_reference() { - return (AppDef_LinearCriteria*)$self->Access(); - } -}; - -%extend Handle_AppDef_LinearCriteria { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppDef_LinearCriteria) %extend AppDef_LinearCriteria { %pythoncode { diff --git a/src/SWIG_files/wrapper/AppParCurves.i b/src/SWIG_files/wrapper/AppParCurves.i index 6ad25a380..4a97ca2ab 100644 --- a/src/SWIG_files/wrapper/AppParCurves.i +++ b/src/SWIG_files/wrapper/AppParCurves.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define APPPARCURVESDOCSTRING -"No docstring provided." +"Parallel Approximation in n curves. +This package gives all the algorithms used to approximate a MultiLine +described by the tool MLineTool. +The result of the approximation will be a MultiCurve. +" %enddef %module (package="OCC.Core", docstring=APPPARCURVESDOCSTRING) AppParCurves @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AppParCurves_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,6 +56,13 @@ enum AppParCurves_Constraint { /* end public enums declaration */ +%wrap_handle(AppParCurves_HArray1OfConstraintCouple) +%wrap_handle(AppParCurves_HArray1OfMultiBSpCurve) +%wrap_handle(AppParCurves_HArray1OfMultiCurve) +%wrap_handle(AppParCurves_HArray1OfMultiPoint) +%wrap_handle(AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve) +%wrap_handle(AppParCurves_SequenceNodeOfSequenceOfMultiCurve) + %rename(appparcurves) AppParCurves; class AppParCurves { public: @@ -598,51 +595,7 @@ class AppParCurves_HArray1OfConstraintCouple : public MMgt_TShared { }; -%extend AppParCurves_HArray1OfConstraintCouple { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppParCurves_HArray1OfConstraintCouple(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppParCurves_HArray1OfConstraintCouple::Handle_AppParCurves_HArray1OfConstraintCouple %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppParCurves_HArray1OfConstraintCouple; -class Handle_AppParCurves_HArray1OfConstraintCouple : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AppParCurves_HArray1OfConstraintCouple(); - Handle_AppParCurves_HArray1OfConstraintCouple(const Handle_AppParCurves_HArray1OfConstraintCouple &aHandle); - Handle_AppParCurves_HArray1OfConstraintCouple(const AppParCurves_HArray1OfConstraintCouple *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppParCurves_HArray1OfConstraintCouple DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppParCurves_HArray1OfConstraintCouple { - AppParCurves_HArray1OfConstraintCouple* _get_reference() { - return (AppParCurves_HArray1OfConstraintCouple*)$self->Access(); - } -}; - -%extend Handle_AppParCurves_HArray1OfConstraintCouple { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppParCurves_HArray1OfConstraintCouple) %extend AppParCurves_HArray1OfConstraintCouple { %pythoncode { @@ -719,51 +672,7 @@ class AppParCurves_HArray1OfMultiBSpCurve : public MMgt_TShared { }; -%extend AppParCurves_HArray1OfMultiBSpCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppParCurves_HArray1OfMultiBSpCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppParCurves_HArray1OfMultiBSpCurve::Handle_AppParCurves_HArray1OfMultiBSpCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppParCurves_HArray1OfMultiBSpCurve; -class Handle_AppParCurves_HArray1OfMultiBSpCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AppParCurves_HArray1OfMultiBSpCurve(); - Handle_AppParCurves_HArray1OfMultiBSpCurve(const Handle_AppParCurves_HArray1OfMultiBSpCurve &aHandle); - Handle_AppParCurves_HArray1OfMultiBSpCurve(const AppParCurves_HArray1OfMultiBSpCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppParCurves_HArray1OfMultiBSpCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppParCurves_HArray1OfMultiBSpCurve { - AppParCurves_HArray1OfMultiBSpCurve* _get_reference() { - return (AppParCurves_HArray1OfMultiBSpCurve*)$self->Access(); - } -}; - -%extend Handle_AppParCurves_HArray1OfMultiBSpCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppParCurves_HArray1OfMultiBSpCurve) %extend AppParCurves_HArray1OfMultiBSpCurve { %pythoncode { @@ -840,51 +749,7 @@ class AppParCurves_HArray1OfMultiCurve : public MMgt_TShared { }; -%extend AppParCurves_HArray1OfMultiCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppParCurves_HArray1OfMultiCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppParCurves_HArray1OfMultiCurve::Handle_AppParCurves_HArray1OfMultiCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppParCurves_HArray1OfMultiCurve; -class Handle_AppParCurves_HArray1OfMultiCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AppParCurves_HArray1OfMultiCurve(); - Handle_AppParCurves_HArray1OfMultiCurve(const Handle_AppParCurves_HArray1OfMultiCurve &aHandle); - Handle_AppParCurves_HArray1OfMultiCurve(const AppParCurves_HArray1OfMultiCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppParCurves_HArray1OfMultiCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppParCurves_HArray1OfMultiCurve { - AppParCurves_HArray1OfMultiCurve* _get_reference() { - return (AppParCurves_HArray1OfMultiCurve*)$self->Access(); - } -}; - -%extend Handle_AppParCurves_HArray1OfMultiCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppParCurves_HArray1OfMultiCurve) %extend AppParCurves_HArray1OfMultiCurve { %pythoncode { @@ -961,51 +826,7 @@ class AppParCurves_HArray1OfMultiPoint : public MMgt_TShared { }; -%extend AppParCurves_HArray1OfMultiPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppParCurves_HArray1OfMultiPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppParCurves_HArray1OfMultiPoint::Handle_AppParCurves_HArray1OfMultiPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppParCurves_HArray1OfMultiPoint; -class Handle_AppParCurves_HArray1OfMultiPoint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_AppParCurves_HArray1OfMultiPoint(); - Handle_AppParCurves_HArray1OfMultiPoint(const Handle_AppParCurves_HArray1OfMultiPoint &aHandle); - Handle_AppParCurves_HArray1OfMultiPoint(const AppParCurves_HArray1OfMultiPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppParCurves_HArray1OfMultiPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppParCurves_HArray1OfMultiPoint { - AppParCurves_HArray1OfMultiPoint* _get_reference() { - return (AppParCurves_HArray1OfMultiPoint*)$self->Access(); - } -}; - -%extend Handle_AppParCurves_HArray1OfMultiPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppParCurves_HArray1OfMultiPoint) %extend AppParCurves_HArray1OfMultiPoint { %pythoncode { @@ -1438,51 +1259,7 @@ class AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve : public TCollection_Se }; -%extend AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve::Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve; -class Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve(); - Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve(const Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve &aHandle); - Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve(const AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve { - AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve* _get_reference() { - return (AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve*)$self->Access(); - } -}; - -%extend Handle_AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve) %extend AppParCurves_SequenceNodeOfSequenceOfMultiBSpCurve { %pythoncode { @@ -1509,51 +1286,7 @@ class AppParCurves_SequenceNodeOfSequenceOfMultiCurve : public TCollection_SeqNo }; -%extend AppParCurves_SequenceNodeOfSequenceOfMultiCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve::Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve; -class Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve(); - Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve(const Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve &aHandle); - Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve(const AppParCurves_SequenceNodeOfSequenceOfMultiCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve { - AppParCurves_SequenceNodeOfSequenceOfMultiCurve* _get_reference() { - return (AppParCurves_SequenceNodeOfSequenceOfMultiCurve*)$self->Access(); - } -}; - -%extend Handle_AppParCurves_SequenceNodeOfSequenceOfMultiCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppParCurves_SequenceNodeOfSequenceOfMultiCurve) %extend AppParCurves_SequenceNodeOfSequenceOfMultiCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/AppStd.i b/src/SWIG_files/wrapper/AppStd.i index 2eaf65dd9..a80285bb6 100644 --- a/src/SWIG_files/wrapper/AppStd.i +++ b/src/SWIG_files/wrapper/AppStd.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define APPSTDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=APPSTDDOCSTRING) AppStd @@ -34,31 +34,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AppStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(AppStd_Application) + %nodefaultctor AppStd_Application; class AppStd_Application : public TDocStd_Application { public: @@ -87,51 +75,7 @@ class AppStd_Application : public TDocStd_Application { }; -%extend AppStd_Application { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppStd_Application(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppStd_Application::Handle_AppStd_Application %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppStd_Application; -class Handle_AppStd_Application : public Handle_TDocStd_Application { - - public: - // constructors - Handle_AppStd_Application(); - Handle_AppStd_Application(const Handle_AppStd_Application &aHandle); - Handle_AppStd_Application(const AppStd_Application *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppStd_Application DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppStd_Application { - AppStd_Application* _get_reference() { - return (AppStd_Application*)$self->Access(); - } -}; - -%extend Handle_AppStd_Application { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppStd_Application) %extend AppStd_Application { %pythoncode { diff --git a/src/SWIG_files/wrapper/AppStdL.i b/src/SWIG_files/wrapper/AppStdL.i index d5729b2b5..503d4fa00 100644 --- a/src/SWIG_files/wrapper/AppStdL.i +++ b/src/SWIG_files/wrapper/AppStdL.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define APPSTDLDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=APPSTDLDOCSTRING) AppStdL @@ -34,31 +34,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include AppStdL_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(AppStdL_Application) + %nodefaultctor AppStdL_Application; class AppStdL_Application : public TDocStd_Application { public: @@ -87,51 +75,7 @@ class AppStdL_Application : public TDocStd_Application { }; -%extend AppStdL_Application { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_AppStdL_Application(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_AppStdL_Application::Handle_AppStdL_Application %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_AppStdL_Application; -class Handle_AppStdL_Application : public Handle_TDocStd_Application { - - public: - // constructors - Handle_AppStdL_Application(); - Handle_AppStdL_Application(const Handle_AppStdL_Application &aHandle); - Handle_AppStdL_Application(const AppStdL_Application *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_AppStdL_Application DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_AppStdL_Application { - AppStdL_Application* _get_reference() { - return (AppStdL_Application*)$self->Access(); - } -}; - -%extend Handle_AppStdL_Application { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(AppStdL_Application) %extend AppStdL_Application { %pythoncode { diff --git a/src/SWIG_files/wrapper/Approx.i b/src/SWIG_files/wrapper/Approx.i index d46b40ab7..6d3629859 100644 --- a/src/SWIG_files/wrapper/Approx.i +++ b/src/SWIG_files/wrapper/Approx.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define APPROXDOCSTRING -"No docstring provided." +"Tis package provides algorithms approximating a set of +points or curves with the possibility of dividing into +one or many bezier curves. +It also provides an instantiation for approximating +a continous function f(t) into one or many curves. +" %enddef %module (package="OCC.Core", docstring=APPROXDOCSTRING) Approx @@ -34,25 +39,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Approx_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -71,6 +62,12 @@ enum Approx_ParametrizationType { /* end public enums declaration */ +%wrap_handle(Approx_CurvlinFunc) +%wrap_handle(Approx_HArray1OfAdHSurface) +%wrap_handle(Approx_HArray1OfGTrsf2d) +%wrap_handle(Approx_SequenceNodeOfSequenceOfHArray1OfReal) +%wrap_handle(Approx_SweepFunction) + %nodefaultctor Approx_Array1OfAdHSurface; class Approx_Array1OfAdHSurface { public: @@ -699,51 +696,7 @@ class Approx_CurvlinFunc : public MMgt_TShared { }; -%extend Approx_CurvlinFunc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Approx_CurvlinFunc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Approx_CurvlinFunc::Handle_Approx_CurvlinFunc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Approx_CurvlinFunc; -class Handle_Approx_CurvlinFunc : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Approx_CurvlinFunc(); - Handle_Approx_CurvlinFunc(const Handle_Approx_CurvlinFunc &aHandle); - Handle_Approx_CurvlinFunc(const Approx_CurvlinFunc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Approx_CurvlinFunc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Approx_CurvlinFunc { - Approx_CurvlinFunc* _get_reference() { - return (Approx_CurvlinFunc*)$self->Access(); - } -}; - -%extend Handle_Approx_CurvlinFunc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Approx_CurvlinFunc) %extend Approx_CurvlinFunc { %pythoncode { @@ -1054,51 +1007,7 @@ class Approx_HArray1OfAdHSurface : public MMgt_TShared { }; -%extend Approx_HArray1OfAdHSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Approx_HArray1OfAdHSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Approx_HArray1OfAdHSurface::Handle_Approx_HArray1OfAdHSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Approx_HArray1OfAdHSurface; -class Handle_Approx_HArray1OfAdHSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Approx_HArray1OfAdHSurface(); - Handle_Approx_HArray1OfAdHSurface(const Handle_Approx_HArray1OfAdHSurface &aHandle); - Handle_Approx_HArray1OfAdHSurface(const Approx_HArray1OfAdHSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Approx_HArray1OfAdHSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Approx_HArray1OfAdHSurface { - Approx_HArray1OfAdHSurface* _get_reference() { - return (Approx_HArray1OfAdHSurface*)$self->Access(); - } -}; - -%extend Handle_Approx_HArray1OfAdHSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Approx_HArray1OfAdHSurface) %extend Approx_HArray1OfAdHSurface { %pythoncode { @@ -1175,51 +1084,7 @@ class Approx_HArray1OfGTrsf2d : public MMgt_TShared { }; -%extend Approx_HArray1OfGTrsf2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Approx_HArray1OfGTrsf2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Approx_HArray1OfGTrsf2d::Handle_Approx_HArray1OfGTrsf2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Approx_HArray1OfGTrsf2d; -class Handle_Approx_HArray1OfGTrsf2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Approx_HArray1OfGTrsf2d(); - Handle_Approx_HArray1OfGTrsf2d(const Handle_Approx_HArray1OfGTrsf2d &aHandle); - Handle_Approx_HArray1OfGTrsf2d(const Approx_HArray1OfGTrsf2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Approx_HArray1OfGTrsf2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Approx_HArray1OfGTrsf2d { - Approx_HArray1OfGTrsf2d* _get_reference() { - return (Approx_HArray1OfGTrsf2d*)$self->Access(); - } -}; - -%extend Handle_Approx_HArray1OfGTrsf2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Approx_HArray1OfGTrsf2d) %extend Approx_HArray1OfGTrsf2d { %pythoncode { @@ -1364,51 +1229,7 @@ class Approx_SequenceNodeOfSequenceOfHArray1OfReal : public TCollection_SeqNode }; -%extend Approx_SequenceNodeOfSequenceOfHArray1OfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal::Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal; -class Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal(); - Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal(const Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal &aHandle); - Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal(const Approx_SequenceNodeOfSequenceOfHArray1OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal { - Approx_SequenceNodeOfSequenceOfHArray1OfReal* _get_reference() { - return (Approx_SequenceNodeOfSequenceOfHArray1OfReal*)$self->Access(); - } -}; - -%extend Handle_Approx_SequenceNodeOfSequenceOfHArray1OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Approx_SequenceNodeOfSequenceOfHArray1OfReal) %extend Approx_SequenceNodeOfSequenceOfHArray1OfReal { %pythoncode { @@ -1977,51 +1798,7 @@ class Approx_SweepFunction : public MMgt_TShared { }; -%extend Approx_SweepFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Approx_SweepFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Approx_SweepFunction::Handle_Approx_SweepFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Approx_SweepFunction; -class Handle_Approx_SweepFunction : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Approx_SweepFunction(); - Handle_Approx_SweepFunction(const Handle_Approx_SweepFunction &aHandle); - Handle_Approx_SweepFunction(const Approx_SweepFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Approx_SweepFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Approx_SweepFunction { - Approx_SweepFunction* _get_reference() { - return (Approx_SweepFunction*)$self->Access(); - } -}; - -%extend Handle_Approx_SweepFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Approx_SweepFunction) %extend Approx_SweepFunction { %pythoncode { diff --git a/src/SWIG_files/wrapper/ApproxInt.i b/src/SWIG_files/wrapper/ApproxInt.i index 947313be3..949ac4c62 100644 --- a/src/SWIG_files/wrapper/ApproxInt.i +++ b/src/SWIG_files/wrapper/ApproxInt.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define APPROXINTDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=APPROXINTDOCSTRING) ApproxInt @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ApproxInt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor ApproxInt_SvSurfaces; class ApproxInt_SvSurfaces { public: diff --git a/src/SWIG_files/wrapper/Aspect.i b/src/SWIG_files/wrapper/Aspect.i index 5139542a5..a776f03a4 100644 --- a/src/SWIG_files/wrapper/Aspect.i +++ b/src/SWIG_files/wrapper/Aspect.i @@ -18,7 +18,20 @@ along with pythonOCC. If not, see . */ %define ASPECTDOCSTRING -"No docstring provided." +"-Version: + +This package contains the group of graphic elements common +to different types of visualisers. It allows the description +of a screen background, a window, an edge, and groups of +graphic attributes that can be used in describing 2D +and 3D objects. + +-Keywords: Window, Aspect, FillArea, Line, Marker, Edge +Highlight, Hatch, Background, GradientBackground, Color map, +Type map, Width map, Font map +-Warning: +-References: +" %enddef %module (package="OCC.Core", docstring=ASPECTDOCSTRING) Aspect @@ -34,25 +47,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Aspect_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef void * Aspect_Display; typedef unsigned long Aspect_Drawable; @@ -312,6 +311,16 @@ enum Aspect_InteriorStyle { /* end public enums declaration */ +%wrap_handle(Aspect_AspectFillArea) +%wrap_handle(Aspect_AspectLine) +%wrap_handle(Aspect_AspectMarker) +%wrap_handle(Aspect_ColorScale) +%wrap_handle(Aspect_Grid) +%wrap_handle(Aspect_SequenceNodeOfSequenceOfColor) +%wrap_handle(Aspect_Window) +%wrap_handle(Aspect_CircularGrid) +%wrap_handle(Aspect_RectangularGrid) + %nodefaultctor Aspect_AspectFillArea; class Aspect_AspectFillArea : public MMgt_TShared { public: @@ -412,51 +421,7 @@ class Aspect_AspectFillArea : public MMgt_TShared { }; -%extend Aspect_AspectFillArea { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_AspectFillArea(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_AspectFillArea::Handle_Aspect_AspectFillArea %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_AspectFillArea; -class Handle_Aspect_AspectFillArea : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Aspect_AspectFillArea(); - Handle_Aspect_AspectFillArea(const Handle_Aspect_AspectFillArea &aHandle); - Handle_Aspect_AspectFillArea(const Aspect_AspectFillArea *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_AspectFillArea DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_AspectFillArea { - Aspect_AspectFillArea* _get_reference() { - return (Aspect_AspectFillArea*)$self->Access(); - } -}; - -%extend Handle_Aspect_AspectFillArea { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_AspectFillArea) %extend Aspect_AspectFillArea { %pythoncode { @@ -505,51 +470,7 @@ class Aspect_AspectLine : public MMgt_TShared { }; -%extend Aspect_AspectLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_AspectLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_AspectLine::Handle_Aspect_AspectLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_AspectLine; -class Handle_Aspect_AspectLine : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Aspect_AspectLine(); - Handle_Aspect_AspectLine(const Handle_Aspect_AspectLine &aHandle); - Handle_Aspect_AspectLine(const Aspect_AspectLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_AspectLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_AspectLine { - Aspect_AspectLine* _get_reference() { - return (Aspect_AspectLine*)$self->Access(); - } -}; - -%extend Handle_Aspect_AspectLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_AspectLine) %extend Aspect_AspectLine { %pythoncode { @@ -598,51 +519,7 @@ class Aspect_AspectMarker : public MMgt_TShared { }; -%extend Aspect_AspectMarker { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_AspectMarker(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_AspectMarker::Handle_Aspect_AspectMarker %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_AspectMarker; -class Handle_Aspect_AspectMarker : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Aspect_AspectMarker(); - Handle_Aspect_AspectMarker(const Handle_Aspect_AspectMarker &aHandle); - Handle_Aspect_AspectMarker(const Aspect_AspectMarker *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_AspectMarker DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_AspectMarker { - Aspect_AspectMarker* _get_reference() { - return (Aspect_AspectMarker*)$self->Access(); - } -}; - -%extend Handle_Aspect_AspectMarker { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_AspectMarker) %extend Aspect_AspectMarker { %pythoncode { @@ -1118,51 +995,7 @@ class Aspect_ColorScale : public MMgt_TShared { }; -%extend Aspect_ColorScale { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_ColorScale(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_ColorScale::Handle_Aspect_ColorScale %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_ColorScale; -class Handle_Aspect_ColorScale : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Aspect_ColorScale(); - Handle_Aspect_ColorScale(const Handle_Aspect_ColorScale &aHandle); - Handle_Aspect_ColorScale(const Aspect_ColorScale *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_ColorScale DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_ColorScale { - Aspect_ColorScale* _get_reference() { - return (Aspect_ColorScale*)$self->Access(); - } -}; - -%extend Handle_Aspect_ColorScale { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_ColorScale) %extend Aspect_ColorScale { %pythoncode { @@ -1424,51 +1257,7 @@ class Aspect_Grid : public MMgt_TShared { }; -%extend Aspect_Grid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_Grid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_Grid::Handle_Aspect_Grid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_Grid; -class Handle_Aspect_Grid : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Aspect_Grid(); - Handle_Aspect_Grid(const Handle_Aspect_Grid &aHandle); - Handle_Aspect_Grid(const Aspect_Grid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_Grid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_Grid { - Aspect_Grid* _get_reference() { - return (Aspect_Grid*)$self->Access(); - } -}; - -%extend Handle_Aspect_Grid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_Grid) %extend Aspect_Grid { %pythoncode { @@ -1495,51 +1284,7 @@ class Aspect_SequenceNodeOfSequenceOfColor : public TCollection_SeqNode { }; -%extend Aspect_SequenceNodeOfSequenceOfColor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_SequenceNodeOfSequenceOfColor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_SequenceNodeOfSequenceOfColor::Handle_Aspect_SequenceNodeOfSequenceOfColor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_SequenceNodeOfSequenceOfColor; -class Handle_Aspect_SequenceNodeOfSequenceOfColor : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Aspect_SequenceNodeOfSequenceOfColor(); - Handle_Aspect_SequenceNodeOfSequenceOfColor(const Handle_Aspect_SequenceNodeOfSequenceOfColor &aHandle); - Handle_Aspect_SequenceNodeOfSequenceOfColor(const Aspect_SequenceNodeOfSequenceOfColor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_SequenceNodeOfSequenceOfColor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_SequenceNodeOfSequenceOfColor { - Aspect_SequenceNodeOfSequenceOfColor* _get_reference() { - return (Aspect_SequenceNodeOfSequenceOfColor*)$self->Access(); - } -}; - -%extend Handle_Aspect_SequenceNodeOfSequenceOfColor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_SequenceNodeOfSequenceOfColor) %extend Aspect_SequenceNodeOfSequenceOfColor { %pythoncode { @@ -1837,51 +1582,7 @@ class Aspect_Window : public MMgt_TShared { }; -%extend Aspect_Window { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_Window(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_Window::Handle_Aspect_Window %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_Window; -class Handle_Aspect_Window : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Aspect_Window(); - Handle_Aspect_Window(const Handle_Aspect_Window &aHandle); - Handle_Aspect_Window(const Aspect_Window *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_Window DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_Window { - Aspect_Window* _get_reference() { - return (Aspect_Window*)$self->Access(); - } -}; - -%extend Handle_Aspect_Window { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_Window) %extend Aspect_Window { %pythoncode { @@ -1970,51 +1671,7 @@ class Aspect_CircularGrid : public Aspect_Grid { }; -%extend Aspect_CircularGrid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_CircularGrid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_CircularGrid::Handle_Aspect_CircularGrid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_CircularGrid; -class Handle_Aspect_CircularGrid : public Handle_Aspect_Grid { - - public: - // constructors - Handle_Aspect_CircularGrid(); - Handle_Aspect_CircularGrid(const Handle_Aspect_CircularGrid &aHandle); - Handle_Aspect_CircularGrid(const Aspect_CircularGrid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_CircularGrid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_CircularGrid { - Aspect_CircularGrid* _get_reference() { - return (Aspect_CircularGrid*)$self->Access(); - } -}; - -%extend Handle_Aspect_CircularGrid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_CircularGrid) %extend Aspect_CircularGrid { %pythoncode { @@ -2186,51 +1843,7 @@ class Aspect_RectangularGrid : public Aspect_Grid { }; -%extend Aspect_RectangularGrid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Aspect_RectangularGrid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Aspect_RectangularGrid::Handle_Aspect_RectangularGrid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Aspect_RectangularGrid; -class Handle_Aspect_RectangularGrid : public Handle_Aspect_Grid { - - public: - // constructors - Handle_Aspect_RectangularGrid(); - Handle_Aspect_RectangularGrid(const Handle_Aspect_RectangularGrid &aHandle); - Handle_Aspect_RectangularGrid(const Aspect_RectangularGrid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Aspect_RectangularGrid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Aspect_RectangularGrid { - Aspect_RectangularGrid* _get_reference() { - return (Aspect_RectangularGrid*)$self->Access(); - } -}; - -%extend Handle_Aspect_RectangularGrid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Aspect_RectangularGrid) %extend Aspect_RectangularGrid { %pythoncode { diff --git a/src/SWIG_files/wrapper/BOPAlgo.i b/src/SWIG_files/wrapper/BOPAlgo.i index ca754fc79..bc6967110 100644 --- a/src/SWIG_files/wrapper/BOPAlgo.i +++ b/src/SWIG_files/wrapper/BOPAlgo.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BOPALGODOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BOPALGODOCSTRING) BOPAlgo @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BOPAlgo_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_List BOPAlgo_ListOfCheckResult; typedef BOPAlgo_ListOfCheckResult::Iterator BOPAlgo_ListIteratorOfListOfCheckResult; @@ -91,6 +77,7 @@ enum BOPAlgo_Operation { /* end public enums declaration */ + %nodefaultctor BOPAlgo_Algo; %ignore BOPAlgo_Algo::~BOPAlgo_Algo(); class BOPAlgo_Algo { diff --git a/src/SWIG_files/wrapper/BOPAlgo_headers.i b/src/SWIG_files/wrapper/BOPAlgo_headers.i index d2fa392c1..eacbbdb4e 100644 --- a/src/SWIG_files/wrapper/BOPAlgo_headers.i +++ b/src/SWIG_files/wrapper/BOPAlgo_headers.i @@ -418,6 +418,539 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BOPCol.i b/src/SWIG_files/wrapper/BOPCol.i index 17ab3eb22..ac6496f9b 100644 --- a/src/SWIG_files/wrapper/BOPCol.i +++ b/src/SWIG_files/wrapper/BOPCol.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define BOPCOLDOCSTRING -"No docstring provided." +" +The package contains collection classes +that are used by +partition and boolean operation algorithms" %enddef %module (package="OCC.Core", docstring=BOPCOLDOCSTRING) BOPCol @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BOPCol_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Map BOPCol_MapOfInteger; typedef NCollection_DataMap BOPCol_DataMapOfShapeListOfShape; @@ -111,6 +100,7 @@ typedef NCollection_IndexedMap /* public enums */ /* end public enums declaration */ + %nodefaultctor BOPCol_Box2DBndTreeSelector; class BOPCol_Box2DBndTreeSelector : public BOPCol_Box2DBndTree::Selector { public: diff --git a/src/SWIG_files/wrapper/BOPDS.i b/src/SWIG_files/wrapper/BOPDS.i index 37bfb5e4f..514a40295 100644 --- a/src/SWIG_files/wrapper/BOPDS.i +++ b/src/SWIG_files/wrapper/BOPDS.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define BOPDSDOCSTRING -"No docstring provided." +" +The package contains classes that implements +the data structure for +general fuse and boolean operation algorithms +" %enddef %module (package="OCC.Core", docstring=BOPDSDOCSTRING) BOPDS @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BOPDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Map BOPDS_MapOfPassKey; typedef BOPCol_NCVector BOPDS_VectorOfInterfVZ; @@ -110,6 +100,9 @@ typedef NCollection_List BOPDS_ListOfPassKeyBoolean; /* public enums */ /* end public enums declaration */ +%wrap_handle(BOPDS_CommonBlock) +%wrap_handle(BOPDS_PaveBlock) + %nodefaultctor BOPDS_CommonBlock; class BOPDS_CommonBlock : public MMgt_TShared { public: @@ -238,51 +231,7 @@ class BOPDS_CommonBlock : public MMgt_TShared { }; -%extend BOPDS_CommonBlock { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BOPDS_CommonBlock(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BOPDS_CommonBlock::Handle_BOPDS_CommonBlock %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BOPDS_CommonBlock; -class Handle_BOPDS_CommonBlock : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BOPDS_CommonBlock(); - Handle_BOPDS_CommonBlock(const Handle_BOPDS_CommonBlock &aHandle); - Handle_BOPDS_CommonBlock(const BOPDS_CommonBlock *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BOPDS_CommonBlock DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BOPDS_CommonBlock { - BOPDS_CommonBlock* _get_reference() { - return (BOPDS_CommonBlock*)$self->Access(); - } -}; - -%extend Handle_BOPDS_CommonBlock { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BOPDS_CommonBlock) %extend BOPDS_CommonBlock { %pythoncode { @@ -1855,51 +1804,7 @@ class BOPDS_PaveBlock : public MMgt_TShared { }; -%extend BOPDS_PaveBlock { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BOPDS_PaveBlock(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BOPDS_PaveBlock::Handle_BOPDS_PaveBlock %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BOPDS_PaveBlock; -class Handle_BOPDS_PaveBlock : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BOPDS_PaveBlock(); - Handle_BOPDS_PaveBlock(const Handle_BOPDS_PaveBlock &aHandle); - Handle_BOPDS_PaveBlock(const BOPDS_PaveBlock *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BOPDS_PaveBlock DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BOPDS_PaveBlock { - BOPDS_PaveBlock* _get_reference() { - return (BOPDS_PaveBlock*)$self->Access(); - } -}; - -%extend Handle_BOPDS_PaveBlock { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BOPDS_PaveBlock) %extend BOPDS_PaveBlock { %pythoncode { diff --git a/src/SWIG_files/wrapper/BOPInt.i b/src/SWIG_files/wrapper/BOPInt.i index cb5d8dcb9..4f2b885f1 100644 --- a/src/SWIG_files/wrapper/BOPInt.i +++ b/src/SWIG_files/wrapper/BOPInt.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BOPInt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/BOPTools.i b/src/SWIG_files/wrapper/BOPTools.i index cb2e2c043..abd348ddf 100644 --- a/src/SWIG_files/wrapper/BOPTools.i +++ b/src/SWIG_files/wrapper/BOPTools.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BOPTOOLSDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=BOPTOOLSDOCSTRING) BOPTools @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BOPTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef BOPTools_MapOfSet::Iterator BOPTools_MapIteratorOfMapOfSet; typedef NCollection_List BOPTools_ListOfCoupleOfShape; @@ -69,6 +56,7 @@ typedef NCollection_Map BOPTools_MapOfSet /* public enums */ /* end public enums declaration */ + %rename(boptools) BOPTools; class BOPTools { public: diff --git a/src/SWIG_files/wrapper/BOPTools_headers.i b/src/SWIG_files/wrapper/BOPTools_headers.i index f7b55d532..6f7ebbf7f 100644 --- a/src/SWIG_files/wrapper/BOPTools_headers.i +++ b/src/SWIG_files/wrapper/BOPTools_headers.i @@ -434,6 +434,405 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRep.i b/src/SWIG_files/wrapper/BRep.i index 69a62d9ac..cbf2acf1b 100644 --- a/src/SWIG_files/wrapper/BRep.i +++ b/src/SWIG_files/wrapper/BRep.i @@ -18,7 +18,18 @@ along with pythonOCC. If not, see . */ %define BREPDOCSTRING -"No docstring provided." +"This package describes a Boundary Representation +Data Structure inherited from the abstract +Topology defined in the TopoDS package. The +geometric data are provided by the Geom and Geom2d +packages. + +The TVertex, TEdge, and TFace are redefined in +this package to add geometric information. + +-Level : Public +All methods of all classes will be public. +" %enddef %module (package="OCC.Core", docstring=BREPDOCSTRING) BRep @@ -34,31 +45,39 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BRep_CurveRepresentation) +%wrap_handle(BRep_ListNodeOfListOfCurveRepresentation) +%wrap_handle(BRep_ListNodeOfListOfPointRepresentation) +%wrap_handle(BRep_PointRepresentation) +%wrap_handle(BRep_TEdge) +%wrap_handle(BRep_TFace) +%wrap_handle(BRep_TVertex) +%wrap_handle(BRep_CurveOn2Surfaces) +%wrap_handle(BRep_GCurve) +%wrap_handle(BRep_PointOnCurve) +%wrap_handle(BRep_PointsOnSurface) +%wrap_handle(BRep_Polygon3D) +%wrap_handle(BRep_PolygonOnSurface) +%wrap_handle(BRep_PolygonOnTriangulation) +%wrap_handle(BRep_Curve3D) +%wrap_handle(BRep_CurveOnSurface) +%wrap_handle(BRep_PointOnCurveOnSurface) +%wrap_handle(BRep_PointOnSurface) +%wrap_handle(BRep_PolygonOnClosedSurface) +%wrap_handle(BRep_PolygonOnClosedTriangulation) +%wrap_handle(BRep_CurveOnClosedSurface) + class BRep_Builder : public TopoDS_Builder { public: %feature("compactdefaultargs") MakeFace; @@ -965,51 +984,7 @@ class BRep_CurveRepresentation : public MMgt_TShared { }; -%extend BRep_CurveRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_CurveRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_CurveRepresentation::Handle_BRep_CurveRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_CurveRepresentation; -class Handle_BRep_CurveRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRep_CurveRepresentation(); - Handle_BRep_CurveRepresentation(const Handle_BRep_CurveRepresentation &aHandle); - Handle_BRep_CurveRepresentation(const BRep_CurveRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_CurveRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_CurveRepresentation { - BRep_CurveRepresentation* _get_reference() { - return (BRep_CurveRepresentation*)$self->Access(); - } -}; - -%extend Handle_BRep_CurveRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_CurveRepresentation) %extend BRep_CurveRepresentation { %pythoncode { @@ -1112,51 +1087,7 @@ class BRep_ListNodeOfListOfCurveRepresentation : public TCollection_MapNode { }; -%extend BRep_ListNodeOfListOfCurveRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_ListNodeOfListOfCurveRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_ListNodeOfListOfCurveRepresentation::Handle_BRep_ListNodeOfListOfCurveRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_ListNodeOfListOfCurveRepresentation; -class Handle_BRep_ListNodeOfListOfCurveRepresentation : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRep_ListNodeOfListOfCurveRepresentation(); - Handle_BRep_ListNodeOfListOfCurveRepresentation(const Handle_BRep_ListNodeOfListOfCurveRepresentation &aHandle); - Handle_BRep_ListNodeOfListOfCurveRepresentation(const BRep_ListNodeOfListOfCurveRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_ListNodeOfListOfCurveRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_ListNodeOfListOfCurveRepresentation { - BRep_ListNodeOfListOfCurveRepresentation* _get_reference() { - return (BRep_ListNodeOfListOfCurveRepresentation*)$self->Access(); - } -}; - -%extend Handle_BRep_ListNodeOfListOfCurveRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_ListNodeOfListOfCurveRepresentation) %extend BRep_ListNodeOfListOfCurveRepresentation { %pythoncode { @@ -1181,51 +1112,7 @@ class BRep_ListNodeOfListOfPointRepresentation : public TCollection_MapNode { }; -%extend BRep_ListNodeOfListOfPointRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_ListNodeOfListOfPointRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_ListNodeOfListOfPointRepresentation::Handle_BRep_ListNodeOfListOfPointRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_ListNodeOfListOfPointRepresentation; -class Handle_BRep_ListNodeOfListOfPointRepresentation : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRep_ListNodeOfListOfPointRepresentation(); - Handle_BRep_ListNodeOfListOfPointRepresentation(const Handle_BRep_ListNodeOfListOfPointRepresentation &aHandle); - Handle_BRep_ListNodeOfListOfPointRepresentation(const BRep_ListNodeOfListOfPointRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_ListNodeOfListOfPointRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_ListNodeOfListOfPointRepresentation { - BRep_ListNodeOfListOfPointRepresentation* _get_reference() { - return (BRep_ListNodeOfListOfPointRepresentation*)$self->Access(); - } -}; - -%extend Handle_BRep_ListNodeOfListOfPointRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_ListNodeOfListOfPointRepresentation) %extend BRep_ListNodeOfListOfPointRepresentation { %pythoncode { @@ -1618,51 +1505,7 @@ class BRep_PointRepresentation : public MMgt_TShared { }; -%extend BRep_PointRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PointRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PointRepresentation::Handle_BRep_PointRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PointRepresentation; -class Handle_BRep_PointRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRep_PointRepresentation(); - Handle_BRep_PointRepresentation(const Handle_BRep_PointRepresentation &aHandle); - Handle_BRep_PointRepresentation(const BRep_PointRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PointRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PointRepresentation { - BRep_PointRepresentation* _get_reference() { - return (BRep_PointRepresentation*)$self->Access(); - } -}; - -%extend Handle_BRep_PointRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PointRepresentation) %extend BRep_PointRepresentation { %pythoncode { @@ -1743,51 +1586,7 @@ class BRep_TEdge : public TopoDS_TEdge { }; -%extend BRep_TEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_TEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_TEdge::Handle_BRep_TEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_TEdge; -class Handle_BRep_TEdge : public Handle_TopoDS_TEdge { - - public: - // constructors - Handle_BRep_TEdge(); - Handle_BRep_TEdge(const Handle_BRep_TEdge &aHandle); - Handle_BRep_TEdge(const BRep_TEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_TEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_TEdge { - BRep_TEdge* _get_reference() { - return (BRep_TEdge*)$self->Access(); - } -}; - -%extend Handle_BRep_TEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_TEdge) %extend BRep_TEdge { %pythoncode { @@ -1862,51 +1661,7 @@ class BRep_TFace : public TopoDS_TFace { }; -%extend BRep_TFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_TFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_TFace::Handle_BRep_TFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_TFace; -class Handle_BRep_TFace : public Handle_TopoDS_TFace { - - public: - // constructors - Handle_BRep_TFace(); - Handle_BRep_TFace(const Handle_BRep_TFace &aHandle); - Handle_BRep_TFace(const BRep_TFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_TFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_TFace { - BRep_TFace* _get_reference() { - return (BRep_TFace*)$self->Access(); - } -}; - -%extend Handle_BRep_TFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_TFace) %extend BRep_TFace { %pythoncode { @@ -1965,51 +1720,7 @@ class BRep_TVertex : public TopoDS_TVertex { }; -%extend BRep_TVertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_TVertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_TVertex::Handle_BRep_TVertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_TVertex; -class Handle_BRep_TVertex : public Handle_TopoDS_TVertex { - - public: - // constructors - Handle_BRep_TVertex(); - Handle_BRep_TVertex(const Handle_BRep_TVertex &aHandle); - Handle_BRep_TVertex(const BRep_TVertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_TVertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_TVertex { - BRep_TVertex* _get_reference() { - return (BRep_TVertex*)$self->Access(); - } -}; - -%extend Handle_BRep_TVertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_TVertex) %extend BRep_TVertex { %pythoncode { @@ -2656,51 +2367,7 @@ class BRep_CurveOn2Surfaces : public BRep_CurveRepresentation { }; -%extend BRep_CurveOn2Surfaces { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_CurveOn2Surfaces(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_CurveOn2Surfaces::Handle_BRep_CurveOn2Surfaces %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_CurveOn2Surfaces; -class Handle_BRep_CurveOn2Surfaces : public Handle_BRep_CurveRepresentation { - - public: - // constructors - Handle_BRep_CurveOn2Surfaces(); - Handle_BRep_CurveOn2Surfaces(const Handle_BRep_CurveOn2Surfaces &aHandle); - Handle_BRep_CurveOn2Surfaces(const BRep_CurveOn2Surfaces *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_CurveOn2Surfaces DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_CurveOn2Surfaces { - BRep_CurveOn2Surfaces* _get_reference() { - return (BRep_CurveOn2Surfaces*)$self->Access(); - } -}; - -%extend Handle_BRep_CurveOn2Surfaces { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_CurveOn2Surfaces) %extend BRep_CurveOn2Surfaces { %pythoncode { @@ -2765,51 +2432,7 @@ class BRep_GCurve : public BRep_CurveRepresentation { }; -%extend BRep_GCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_GCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_GCurve::Handle_BRep_GCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_GCurve; -class Handle_BRep_GCurve : public Handle_BRep_CurveRepresentation { - - public: - // constructors - Handle_BRep_GCurve(); - Handle_BRep_GCurve(const Handle_BRep_GCurve &aHandle); - Handle_BRep_GCurve(const BRep_GCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_GCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_GCurve { - BRep_GCurve* _get_reference() { - return (BRep_GCurve*)$self->Access(); - } -}; - -%extend Handle_BRep_GCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_GCurve) %extend BRep_GCurve { %pythoncode { @@ -2856,51 +2479,7 @@ class BRep_PointOnCurve : public BRep_PointRepresentation { }; -%extend BRep_PointOnCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PointOnCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PointOnCurve::Handle_BRep_PointOnCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PointOnCurve; -class Handle_BRep_PointOnCurve : public Handle_BRep_PointRepresentation { - - public: - // constructors - Handle_BRep_PointOnCurve(); - Handle_BRep_PointOnCurve(const Handle_BRep_PointOnCurve &aHandle); - Handle_BRep_PointOnCurve(const BRep_PointOnCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PointOnCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PointOnCurve { - BRep_PointOnCurve* _get_reference() { - return (BRep_PointOnCurve*)$self->Access(); - } -}; - -%extend Handle_BRep_PointOnCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PointOnCurve) %extend BRep_PointOnCurve { %pythoncode { @@ -2923,51 +2502,7 @@ class BRep_PointsOnSurface : public BRep_PointRepresentation { }; -%extend BRep_PointsOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PointsOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PointsOnSurface::Handle_BRep_PointsOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PointsOnSurface; -class Handle_BRep_PointsOnSurface : public Handle_BRep_PointRepresentation { - - public: - // constructors - Handle_BRep_PointsOnSurface(); - Handle_BRep_PointsOnSurface(const Handle_BRep_PointsOnSurface &aHandle); - Handle_BRep_PointsOnSurface(const BRep_PointsOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PointsOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PointsOnSurface { - BRep_PointsOnSurface* _get_reference() { - return (BRep_PointsOnSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_PointsOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PointsOnSurface) %extend BRep_PointsOnSurface { %pythoncode { @@ -3010,51 +2545,7 @@ class BRep_Polygon3D : public BRep_CurveRepresentation { }; -%extend BRep_Polygon3D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_Polygon3D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_Polygon3D::Handle_BRep_Polygon3D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_Polygon3D; -class Handle_BRep_Polygon3D : public Handle_BRep_CurveRepresentation { - - public: - // constructors - Handle_BRep_Polygon3D(); - Handle_BRep_Polygon3D(const Handle_BRep_Polygon3D &aHandle); - Handle_BRep_Polygon3D(const BRep_Polygon3D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_Polygon3D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_Polygon3D { - BRep_Polygon3D* _get_reference() { - return (BRep_Polygon3D*)$self->Access(); - } -}; - -%extend Handle_BRep_Polygon3D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_Polygon3D) %extend BRep_Polygon3D { %pythoncode { @@ -3113,51 +2604,7 @@ class BRep_PolygonOnSurface : public BRep_CurveRepresentation { }; -%extend BRep_PolygonOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PolygonOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PolygonOnSurface::Handle_BRep_PolygonOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PolygonOnSurface; -class Handle_BRep_PolygonOnSurface : public Handle_BRep_CurveRepresentation { - - public: - // constructors - Handle_BRep_PolygonOnSurface(); - Handle_BRep_PolygonOnSurface(const Handle_BRep_PolygonOnSurface &aHandle); - Handle_BRep_PolygonOnSurface(const BRep_PolygonOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PolygonOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PolygonOnSurface { - BRep_PolygonOnSurface* _get_reference() { - return (BRep_PolygonOnSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_PolygonOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PolygonOnSurface) %extend BRep_PolygonOnSurface { %pythoncode { @@ -3218,51 +2665,7 @@ class BRep_PolygonOnTriangulation : public BRep_CurveRepresentation { }; -%extend BRep_PolygonOnTriangulation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PolygonOnTriangulation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PolygonOnTriangulation::Handle_BRep_PolygonOnTriangulation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PolygonOnTriangulation; -class Handle_BRep_PolygonOnTriangulation : public Handle_BRep_CurveRepresentation { - - public: - // constructors - Handle_BRep_PolygonOnTriangulation(); - Handle_BRep_PolygonOnTriangulation(const Handle_BRep_PolygonOnTriangulation &aHandle); - Handle_BRep_PolygonOnTriangulation(const BRep_PolygonOnTriangulation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PolygonOnTriangulation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PolygonOnTriangulation { - BRep_PolygonOnTriangulation* _get_reference() { - return (BRep_PolygonOnTriangulation*)$self->Access(); - } -}; - -%extend Handle_BRep_PolygonOnTriangulation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PolygonOnTriangulation) %extend BRep_PolygonOnTriangulation { %pythoncode { @@ -3315,51 +2718,7 @@ class BRep_Curve3D : public BRep_GCurve { }; -%extend BRep_Curve3D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_Curve3D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_Curve3D::Handle_BRep_Curve3D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_Curve3D; -class Handle_BRep_Curve3D : public Handle_BRep_GCurve { - - public: - // constructors - Handle_BRep_Curve3D(); - Handle_BRep_Curve3D(const Handle_BRep_Curve3D &aHandle); - Handle_BRep_Curve3D(const BRep_Curve3D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_Curve3D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_Curve3D { - BRep_Curve3D* _get_reference() { - return (BRep_Curve3D*)$self->Access(); - } -}; - -%extend Handle_BRep_Curve3D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_Curve3D) %extend BRep_Curve3D { %pythoncode { @@ -3450,51 +2809,7 @@ class BRep_CurveOnSurface : public BRep_GCurve { }; -%extend BRep_CurveOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_CurveOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_CurveOnSurface::Handle_BRep_CurveOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_CurveOnSurface; -class Handle_BRep_CurveOnSurface : public Handle_BRep_GCurve { - - public: - // constructors - Handle_BRep_CurveOnSurface(); - Handle_BRep_CurveOnSurface(const Handle_BRep_CurveOnSurface &aHandle); - Handle_BRep_CurveOnSurface(const BRep_CurveOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_CurveOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_CurveOnSurface { - BRep_CurveOnSurface* _get_reference() { - return (BRep_CurveOnSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_CurveOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_CurveOnSurface) %extend BRep_CurveOnSurface { %pythoncode { @@ -3545,51 +2860,7 @@ class BRep_PointOnCurveOnSurface : public BRep_PointsOnSurface { }; -%extend BRep_PointOnCurveOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PointOnCurveOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PointOnCurveOnSurface::Handle_BRep_PointOnCurveOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PointOnCurveOnSurface; -class Handle_BRep_PointOnCurveOnSurface : public Handle_BRep_PointsOnSurface { - - public: - // constructors - Handle_BRep_PointOnCurveOnSurface(); - Handle_BRep_PointOnCurveOnSurface(const Handle_BRep_PointOnCurveOnSurface &aHandle); - Handle_BRep_PointOnCurveOnSurface(const BRep_PointOnCurveOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PointOnCurveOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PointOnCurveOnSurface { - BRep_PointOnCurveOnSurface* _get_reference() { - return (BRep_PointOnCurveOnSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_PointOnCurveOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PointOnCurveOnSurface) %extend BRep_PointOnCurveOnSurface { %pythoncode { @@ -3636,51 +2907,7 @@ class BRep_PointOnSurface : public BRep_PointsOnSurface { }; -%extend BRep_PointOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PointOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PointOnSurface::Handle_BRep_PointOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PointOnSurface; -class Handle_BRep_PointOnSurface : public Handle_BRep_PointsOnSurface { - - public: - // constructors - Handle_BRep_PointOnSurface(); - Handle_BRep_PointOnSurface(const Handle_BRep_PointOnSurface &aHandle); - Handle_BRep_PointOnSurface(const BRep_PointOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PointOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PointOnSurface { - BRep_PointOnSurface* _get_reference() { - return (BRep_PointOnSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_PointOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PointOnSurface) %extend BRep_PointOnSurface { %pythoncode { @@ -3727,51 +2954,7 @@ class BRep_PolygonOnClosedSurface : public BRep_PolygonOnSurface { }; -%extend BRep_PolygonOnClosedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PolygonOnClosedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PolygonOnClosedSurface::Handle_BRep_PolygonOnClosedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PolygonOnClosedSurface; -class Handle_BRep_PolygonOnClosedSurface : public Handle_BRep_PolygonOnSurface { - - public: - // constructors - Handle_BRep_PolygonOnClosedSurface(); - Handle_BRep_PolygonOnClosedSurface(const Handle_BRep_PolygonOnClosedSurface &aHandle); - Handle_BRep_PolygonOnClosedSurface(const BRep_PolygonOnClosedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PolygonOnClosedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PolygonOnClosedSurface { - BRep_PolygonOnClosedSurface* _get_reference() { - return (BRep_PolygonOnClosedSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_PolygonOnClosedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PolygonOnClosedSurface) %extend BRep_PolygonOnClosedSurface { %pythoncode { @@ -3818,51 +3001,7 @@ class BRep_PolygonOnClosedTriangulation : public BRep_PolygonOnTriangulation { }; -%extend BRep_PolygonOnClosedTriangulation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_PolygonOnClosedTriangulation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_PolygonOnClosedTriangulation::Handle_BRep_PolygonOnClosedTriangulation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_PolygonOnClosedTriangulation; -class Handle_BRep_PolygonOnClosedTriangulation : public Handle_BRep_PolygonOnTriangulation { - - public: - // constructors - Handle_BRep_PolygonOnClosedTriangulation(); - Handle_BRep_PolygonOnClosedTriangulation(const Handle_BRep_PolygonOnClosedTriangulation &aHandle); - Handle_BRep_PolygonOnClosedTriangulation(const BRep_PolygonOnClosedTriangulation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_PolygonOnClosedTriangulation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_PolygonOnClosedTriangulation { - BRep_PolygonOnClosedTriangulation* _get_reference() { - return (BRep_PolygonOnClosedTriangulation*)$self->Access(); - } -}; - -%extend Handle_BRep_PolygonOnClosedTriangulation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_PolygonOnClosedTriangulation) %extend BRep_PolygonOnClosedTriangulation { %pythoncode { @@ -3975,51 +3114,7 @@ class BRep_CurveOnClosedSurface : public BRep_CurveOnSurface { }; -%extend BRep_CurveOnClosedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRep_CurveOnClosedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRep_CurveOnClosedSurface::Handle_BRep_CurveOnClosedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRep_CurveOnClosedSurface; -class Handle_BRep_CurveOnClosedSurface : public Handle_BRep_CurveOnSurface { - - public: - // constructors - Handle_BRep_CurveOnClosedSurface(); - Handle_BRep_CurveOnClosedSurface(const Handle_BRep_CurveOnClosedSurface &aHandle); - Handle_BRep_CurveOnClosedSurface(const BRep_CurveOnClosedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRep_CurveOnClosedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRep_CurveOnClosedSurface { - BRep_CurveOnClosedSurface* _get_reference() { - return (BRep_CurveOnClosedSurface*)$self->Access(); - } -}; - -%extend Handle_BRep_CurveOnClosedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRep_CurveOnClosedSurface) %extend BRep_CurveOnClosedSurface { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepAdaptor.i b/src/SWIG_files/wrapper/BRepAdaptor.i index 829a307d2..3f980a6a1 100644 --- a/src/SWIG_files/wrapper/BRepAdaptor.i +++ b/src/SWIG_files/wrapper/BRepAdaptor.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define BREPADAPTORDOCSTRING -"No docstring provided." +"The BRepAdaptor package provides classes to access +the geometry of the BRep models. + +OverView of classes + +* Surface : Provides the methods of Surface from +Adpator on a Face. + +* Curve : Provides the methods of Curve from +Adaptor3d on an Edge. + +* Curve2d : Provides the methods of Curve2d from +Adaptor2d on an Edge on a Face. + +" %enddef %module (package="OCC.Core", docstring=BREPADAPTORDOCSTRING) BRepAdaptor @@ -34,31 +48,23 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepAdaptor_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepAdaptor_HArray1OfCurve) +%wrap_handle(BRepAdaptor_HCompCurve) +%wrap_handle(BRepAdaptor_HCurve) +%wrap_handle(BRepAdaptor_HCurve2d) +%wrap_handle(BRepAdaptor_HSurface) + %nodefaultctor BRepAdaptor_Array1OfCurve; class BRepAdaptor_Array1OfCurve { public: @@ -817,51 +823,7 @@ class BRepAdaptor_HArray1OfCurve : public MMgt_TShared { }; -%extend BRepAdaptor_HArray1OfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAdaptor_HArray1OfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAdaptor_HArray1OfCurve::Handle_BRepAdaptor_HArray1OfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAdaptor_HArray1OfCurve; -class Handle_BRepAdaptor_HArray1OfCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepAdaptor_HArray1OfCurve(); - Handle_BRepAdaptor_HArray1OfCurve(const Handle_BRepAdaptor_HArray1OfCurve &aHandle); - Handle_BRepAdaptor_HArray1OfCurve(const BRepAdaptor_HArray1OfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAdaptor_HArray1OfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAdaptor_HArray1OfCurve { - BRepAdaptor_HArray1OfCurve* _get_reference() { - return (BRepAdaptor_HArray1OfCurve*)$self->Access(); - } -}; - -%extend Handle_BRepAdaptor_HArray1OfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAdaptor_HArray1OfCurve) %extend BRepAdaptor_HArray1OfCurve { %pythoncode { @@ -902,51 +864,7 @@ class BRepAdaptor_HCompCurve : public Adaptor3d_HCurve { }; -%extend BRepAdaptor_HCompCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAdaptor_HCompCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAdaptor_HCompCurve::Handle_BRepAdaptor_HCompCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAdaptor_HCompCurve; -class Handle_BRepAdaptor_HCompCurve : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_BRepAdaptor_HCompCurve(); - Handle_BRepAdaptor_HCompCurve(const Handle_BRepAdaptor_HCompCurve &aHandle); - Handle_BRepAdaptor_HCompCurve(const BRepAdaptor_HCompCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAdaptor_HCompCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAdaptor_HCompCurve { - BRepAdaptor_HCompCurve* _get_reference() { - return (BRepAdaptor_HCompCurve*)$self->Access(); - } -}; - -%extend Handle_BRepAdaptor_HCompCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAdaptor_HCompCurve) %extend BRepAdaptor_HCompCurve { %pythoncode { @@ -987,51 +905,7 @@ class BRepAdaptor_HCurve : public Adaptor3d_HCurve { }; -%extend BRepAdaptor_HCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAdaptor_HCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAdaptor_HCurve::Handle_BRepAdaptor_HCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAdaptor_HCurve; -class Handle_BRepAdaptor_HCurve : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_BRepAdaptor_HCurve(); - Handle_BRepAdaptor_HCurve(const Handle_BRepAdaptor_HCurve &aHandle); - Handle_BRepAdaptor_HCurve(const BRepAdaptor_HCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAdaptor_HCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAdaptor_HCurve { - BRepAdaptor_HCurve* _get_reference() { - return (BRepAdaptor_HCurve*)$self->Access(); - } -}; - -%extend Handle_BRepAdaptor_HCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAdaptor_HCurve) %extend BRepAdaptor_HCurve { %pythoncode { @@ -1068,51 +942,7 @@ class BRepAdaptor_HCurve2d : public Adaptor2d_HCurve2d { }; -%extend BRepAdaptor_HCurve2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAdaptor_HCurve2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAdaptor_HCurve2d::Handle_BRepAdaptor_HCurve2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAdaptor_HCurve2d; -class Handle_BRepAdaptor_HCurve2d : public Handle_Adaptor2d_HCurve2d { - - public: - // constructors - Handle_BRepAdaptor_HCurve2d(); - Handle_BRepAdaptor_HCurve2d(const Handle_BRepAdaptor_HCurve2d &aHandle); - Handle_BRepAdaptor_HCurve2d(const BRepAdaptor_HCurve2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAdaptor_HCurve2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAdaptor_HCurve2d { - BRepAdaptor_HCurve2d* _get_reference() { - return (BRepAdaptor_HCurve2d*)$self->Access(); - } -}; - -%extend Handle_BRepAdaptor_HCurve2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAdaptor_HCurve2d) %extend BRepAdaptor_HCurve2d { %pythoncode { @@ -1149,51 +979,7 @@ class BRepAdaptor_HSurface : public Adaptor3d_HSurface { }; -%extend BRepAdaptor_HSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAdaptor_HSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAdaptor_HSurface::Handle_BRepAdaptor_HSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAdaptor_HSurface; -class Handle_BRepAdaptor_HSurface : public Handle_Adaptor3d_HSurface { - - public: - // constructors - Handle_BRepAdaptor_HSurface(); - Handle_BRepAdaptor_HSurface(const Handle_BRepAdaptor_HSurface &aHandle); - Handle_BRepAdaptor_HSurface(const BRepAdaptor_HSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAdaptor_HSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAdaptor_HSurface { - BRepAdaptor_HSurface* _get_reference() { - return (BRepAdaptor_HSurface*)$self->Access(); - } -}; - -%extend Handle_BRepAdaptor_HSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAdaptor_HSurface) %extend BRepAdaptor_HSurface { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepAlgo.i b/src/SWIG_files/wrapper/BRepAlgo.i index 908d07aee..cc1487b34 100644 --- a/src/SWIG_files/wrapper/BRepAlgo.i +++ b/src/SWIG_files/wrapper/BRepAlgo.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define BREPALGODOCSTRING -"No docstring provided." +" +The BRepAlgo package provides a full range of +services to perform Old Boolean Operations in Open CASCADE. +Attention: +The New Boolean Operation has replaced the Old +Boolean Operations algorithm in the BrepAlgoAPI +package in Open CASCADE. +" %enddef %module (package="OCC.Core", docstring=BREPALGODOCSTRING) BRepAlgo @@ -34,25 +41,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepAlgo_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -64,6 +57,12 @@ enum BRepAlgo_CheckStatus { /* end public enums declaration */ +%wrap_handle(BRepAlgo_AsDes) +%wrap_handle(BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean) +%wrap_handle(BRepAlgo_DataMapNodeOfDataMapOfShapeInterference) +%wrap_handle(BRepAlgo_EdgeConnector) +%wrap_handle(BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger) + %rename(brepalgo) BRepAlgo; class BRepAlgo { public: @@ -227,51 +226,7 @@ class BRepAlgo_AsDes : public MMgt_TShared { }; -%extend BRepAlgo_AsDes { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAlgo_AsDes(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAlgo_AsDes::Handle_BRepAlgo_AsDes %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAlgo_AsDes; -class Handle_BRepAlgo_AsDes : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepAlgo_AsDes(); - Handle_BRepAlgo_AsDes(const Handle_BRepAlgo_AsDes &aHandle); - Handle_BRepAlgo_AsDes(const BRepAlgo_AsDes *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAlgo_AsDes DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAlgo_AsDes { - BRepAlgo_AsDes* _get_reference() { - return (BRepAlgo_AsDes*)$self->Access(); - } -}; - -%extend Handle_BRepAlgo_AsDes { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAlgo_AsDes) %extend BRepAlgo_AsDes { %pythoncode { @@ -770,51 +725,7 @@ class BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean : public TCollection_MapNode { }; -%extend BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean::Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean; -class Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean(); - Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean(const Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean &aHandle); - Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean(const BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean { - BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean* _get_reference() { - return (BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean*)$self->Access(); - } -}; - -%extend Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean) %extend BRepAlgo_DataMapNodeOfDataMapOfShapeBoolean { %pythoncode { @@ -845,51 +756,7 @@ class BRepAlgo_DataMapNodeOfDataMapOfShapeInterference : public TCollection_MapN }; -%extend BRepAlgo_DataMapNodeOfDataMapOfShapeInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference::Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference; -class Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference(); - Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference(const Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference &aHandle); - Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference(const BRepAlgo_DataMapNodeOfDataMapOfShapeInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference { - BRepAlgo_DataMapNodeOfDataMapOfShapeInterference* _get_reference() { - return (BRepAlgo_DataMapNodeOfDataMapOfShapeInterference*)$self->Access(); - } -}; - -%extend Handle_BRepAlgo_DataMapNodeOfDataMapOfShapeInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAlgo_DataMapNodeOfDataMapOfShapeInterference) %extend BRepAlgo_DataMapNodeOfDataMapOfShapeInterference { %pythoncode { @@ -1124,51 +991,7 @@ class BRepAlgo_EdgeConnector : public MMgt_TShared { }; -%extend BRepAlgo_EdgeConnector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAlgo_EdgeConnector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAlgo_EdgeConnector::Handle_BRepAlgo_EdgeConnector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAlgo_EdgeConnector; -class Handle_BRepAlgo_EdgeConnector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepAlgo_EdgeConnector(); - Handle_BRepAlgo_EdgeConnector(const Handle_BRepAlgo_EdgeConnector &aHandle); - Handle_BRepAlgo_EdgeConnector(const BRepAlgo_EdgeConnector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAlgo_EdgeConnector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAlgo_EdgeConnector { - BRepAlgo_EdgeConnector* _get_reference() { - return (BRepAlgo_EdgeConnector*)$self->Access(); - } -}; - -%extend Handle_BRepAlgo_EdgeConnector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAlgo_EdgeConnector) %extend BRepAlgo_EdgeConnector { %pythoncode { @@ -1639,51 +1462,7 @@ class BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger : public TCollection_Se }; -%extend BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger::Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger; -class Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger(); - Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger(const Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger &aHandle); - Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger(const BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger { - BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger* _get_reference() { - return (BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger*)$self->Access(); - } -}; - -%extend Handle_BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger) %extend BRepAlgo_SequenceNodeOfSequenceOfSequenceOfInteger { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepAlgoAPI.i b/src/SWIG_files/wrapper/BRepAlgoAPI.i index c858db4ec..71df5945e 100644 --- a/src/SWIG_files/wrapper/BRepAlgoAPI.i +++ b/src/SWIG_files/wrapper/BRepAlgoAPI.i @@ -18,7 +18,72 @@ along with pythonOCC. If not, see . */ %define BREPALGOAPIDOCSTRING -"No docstring provided." +"The BRepAlgoAPI package provides a full range of +services to perform Boolean Operations on arguments (shapes +that are defined in the BRep data structures). The +implemented new algorithm is intended to replace the Old +Boolean Operations algorithm in the BRepAlgoAPI package. +The New algorithm is free of a large number of weak spots +and limitations characteristics of the Old algorithm. +It is more powerful and flexible. +It can process arguments the Old algorithm was not adapted for. +The new algorithm is based on a new approach to operations +with interfered shapes. The advantages of the new algorithm +include an ability to treat arguments that have shared +entities. It can properly process two solids with shared +faces (in terms of TopoDS_Shape::IsSame()), two +faces that have shared edges and so on. Now the New Boolean +Operation algorithm can treat a wide range of shapes while the +Old one fails on them. +A generalization of treatment of same-domain faces +was included into the New algorithm. Two faces that share +the same domain are processed according to the common rule +even if the underlying surfaces are of different types. This +allows to execute Boolean Operations properly for the same +domain faces. It also concerns solids and shells that have the +same domain faces. It is quite frequent when two faces share +the same domain. And the New algorithm successfully copes +with it in contrast to the Old one. +Generalization oftreatment of degenerated edges +gives a possibility to process them properly. Although there +are still some difficulties with processing faces in areas close +to degenerated edges. +Now the processing of arguments having internal sub-shapes gives +a correct result. Internal sub-shape means a sub-shape of a +shape with the orientation TopAbs_INTERNAL and is located +inside the shape boundaries. The New algorithm processes faces +with internal edges properly. The new API of the Boolean +Operations (in addition to the old API) allows to reuse the +already computed interference between arguments in different +types of Boolean Operations. It is possible to use once computed +interference in FUSE, CUT and COMMON operations on given +arguments. So there is no need to re-compute the interference +between the arguments. It allows to reduce time for more than one +operation on given arguments. +The shape type of a Boolean Operation result and types of the arguments: +- For arguments with the same shape type (e.g. SOLID / +SOLID) the type of the resulting shape will be a +COMPOUND, containing shapes of this type; +- For arguments with different shape types (e.g. +SHELL / SOLID) the type of the resulting shape will be a +COMPOUND, containing shapes of the type that is the same as +that of the low type of the argument. Example: For +SHELL/SOLID the result is a COMPOUND of SHELLs. +- For arguments with different shape types some of +Boolean Operations can not be done using the default +implementation, because of a non-manifold type of the +result. Example: the FUSE operation for SHELL and SOLID +can not be done, but the CUT operation can be done, where +SHELL is the object and SOLID is the tool. +It is possible to perform Boolean Operations on arguments +of the COMPOUND shape type. In this case each compound must not +be heterogeneous, i.e. it must contain equidimensional shapes +(EDGEs or/and WIREs, FACEs or/and SHELLs, SOLIDs). SOLIDs +inside the COMPOUND must not contact (intersect or touch) +each other. The same condition is true for SHELLs or FACEs, +WIREs or EDGEs. +It does not support Boolean Operations for COMPSOLID type of shape. +" %enddef %module (package="OCC.Core", docstring=BREPALGOAPIDOCSTRING) BRepAlgoAPI @@ -34,31 +99,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepAlgoAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepAlgoAPI_Algo; %ignore BRepAlgoAPI_Algo::~BRepAlgoAPI_Algo(); class BRepAlgoAPI_Algo : public BRepBuilderAPI_MakeShape { diff --git a/src/SWIG_files/wrapper/BRepAlgoAPI_headers.i b/src/SWIG_files/wrapper/BRepAlgoAPI_headers.i index 64df0beff..5681eec92 100644 --- a/src/SWIG_files/wrapper/BRepAlgoAPI_headers.i +++ b/src/SWIG_files/wrapper/BRepAlgoAPI_headers.i @@ -399,6 +399,656 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepApprox.i b/src/SWIG_files/wrapper/BRepApprox.i index 479c664cd..a0531c8e7 100644 --- a/src/SWIG_files/wrapper/BRepApprox.i +++ b/src/SWIG_files/wrapper/BRepApprox.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define BREPAPPROXDOCSTRING -"No docstring provided." +"This package provides services on intersection curves +dealt by topological operations on BRep objects. +Services are approximation services. + +" %enddef %module (package="OCC.Core", docstring=BREPAPPROXDOCSTRING) BRepApprox @@ -34,31 +38,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepApprox_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepApprox_ApproxLine) + %nodefaultctor BRepApprox_Approx; class BRepApprox_Approx { public: @@ -170,51 +162,7 @@ class BRepApprox_ApproxLine : public MMgt_TShared { }; -%extend BRepApprox_ApproxLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepApprox_ApproxLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepApprox_ApproxLine::Handle_BRepApprox_ApproxLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepApprox_ApproxLine; -class Handle_BRepApprox_ApproxLine : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepApprox_ApproxLine(); - Handle_BRepApprox_ApproxLine(const Handle_BRepApprox_ApproxLine &aHandle); - Handle_BRepApprox_ApproxLine(const BRepApprox_ApproxLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepApprox_ApproxLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepApprox_ApproxLine { - BRepApprox_ApproxLine* _get_reference() { - return (BRepApprox_ApproxLine*)$self->Access(); - } -}; - -%extend Handle_BRepApprox_ApproxLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepApprox_ApproxLine) %extend BRepApprox_ApproxLine { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepBlend.i b/src/SWIG_files/wrapper/BRepBlend.i index c8fa03206..b537efb70 100644 --- a/src/SWIG_files/wrapper/BRepBlend.i +++ b/src/SWIG_files/wrapper/BRepBlend.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BREPBLENDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BREPBLENDDOCSTRING) BRepBlend @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepBlend_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef BlendFunc_Chamfer BRepBlend_Chamfer; typedef BlendFunc_CSConstRad BRepBlend_CSConstRad; @@ -71,6 +57,14 @@ typedef BlendFunc_EvolRadInv BRepBlend_EvolRadInv; /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepBlend_AppFuncRoot) +%wrap_handle(BRepBlend_Line) +%wrap_handle(BRepBlend_SequenceNodeOfSequenceOfLine) +%wrap_handle(BRepBlend_SequenceNodeOfSequenceOfPointOnRst) +%wrap_handle(BRepBlend_AppFunc) +%wrap_handle(BRepBlend_AppFuncRst) +%wrap_handle(BRepBlend_AppFuncRstRst) + %nodefaultctor BRepBlend_AppFuncRoot; class BRepBlend_AppFuncRoot : public Approx_SweepFunction { public: @@ -295,51 +289,7 @@ class BRepBlend_AppFuncRoot : public Approx_SweepFunction { }; -%extend BRepBlend_AppFuncRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_AppFuncRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_AppFuncRoot::Handle_BRepBlend_AppFuncRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_AppFuncRoot; -class Handle_BRepBlend_AppFuncRoot : public Handle_Approx_SweepFunction { - - public: - // constructors - Handle_BRepBlend_AppFuncRoot(); - Handle_BRepBlend_AppFuncRoot(const Handle_BRepBlend_AppFuncRoot &aHandle); - Handle_BRepBlend_AppFuncRoot(const BRepBlend_AppFuncRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_AppFuncRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_AppFuncRoot { - BRepBlend_AppFuncRoot* _get_reference() { - return (BRepBlend_AppFuncRoot*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_AppFuncRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_AppFuncRoot) %extend BRepBlend_AppFuncRoot { %pythoncode { @@ -1409,51 +1359,7 @@ class BRepBlend_Line : public MMgt_TShared { }; -%extend BRepBlend_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_Line::Handle_BRepBlend_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_Line; -class Handle_BRepBlend_Line : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepBlend_Line(); - Handle_BRepBlend_Line(const Handle_BRepBlend_Line &aHandle); - Handle_BRepBlend_Line(const BRepBlend_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_Line { - BRepBlend_Line* _get_reference() { - return (BRepBlend_Line*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_Line) %extend BRepBlend_Line { %pythoncode { @@ -2464,51 +2370,7 @@ class BRepBlend_SequenceNodeOfSequenceOfLine : public TCollection_SeqNode { }; -%extend BRepBlend_SequenceNodeOfSequenceOfLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_SequenceNodeOfSequenceOfLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_SequenceNodeOfSequenceOfLine::Handle_BRepBlend_SequenceNodeOfSequenceOfLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_SequenceNodeOfSequenceOfLine; -class Handle_BRepBlend_SequenceNodeOfSequenceOfLine : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepBlend_SequenceNodeOfSequenceOfLine(); - Handle_BRepBlend_SequenceNodeOfSequenceOfLine(const Handle_BRepBlend_SequenceNodeOfSequenceOfLine &aHandle); - Handle_BRepBlend_SequenceNodeOfSequenceOfLine(const BRepBlend_SequenceNodeOfSequenceOfLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_SequenceNodeOfSequenceOfLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_SequenceNodeOfSequenceOfLine { - BRepBlend_SequenceNodeOfSequenceOfLine* _get_reference() { - return (BRepBlend_SequenceNodeOfSequenceOfLine*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_SequenceNodeOfSequenceOfLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_SequenceNodeOfSequenceOfLine) %extend BRepBlend_SequenceNodeOfSequenceOfLine { %pythoncode { @@ -2535,51 +2397,7 @@ class BRepBlend_SequenceNodeOfSequenceOfPointOnRst : public TCollection_SeqNode }; -%extend BRepBlend_SequenceNodeOfSequenceOfPointOnRst { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst::Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst; -class Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst(); - Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst(const Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst &aHandle); - Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst(const BRepBlend_SequenceNodeOfSequenceOfPointOnRst *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst { - BRepBlend_SequenceNodeOfSequenceOfPointOnRst* _get_reference() { - return (BRepBlend_SequenceNodeOfSequenceOfPointOnRst*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_SequenceNodeOfSequenceOfPointOnRst { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_SequenceNodeOfSequenceOfPointOnRst) %extend BRepBlend_SequenceNodeOfSequenceOfPointOnRst { %pythoncode { @@ -4356,51 +4174,7 @@ class BRepBlend_AppFunc : public BRepBlend_AppFuncRoot { }; -%extend BRepBlend_AppFunc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_AppFunc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_AppFunc::Handle_BRepBlend_AppFunc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_AppFunc; -class Handle_BRepBlend_AppFunc : public Handle_BRepBlend_AppFuncRoot { - - public: - // constructors - Handle_BRepBlend_AppFunc(); - Handle_BRepBlend_AppFunc(const Handle_BRepBlend_AppFunc &aHandle); - Handle_BRepBlend_AppFunc(const BRepBlend_AppFunc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_AppFunc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_AppFunc { - BRepBlend_AppFunc* _get_reference() { - return (BRepBlend_AppFunc*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_AppFunc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_AppFunc) %extend BRepBlend_AppFunc { %pythoncode { @@ -4445,51 +4219,7 @@ class BRepBlend_AppFuncRst : public BRepBlend_AppFuncRoot { }; -%extend BRepBlend_AppFuncRst { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_AppFuncRst(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_AppFuncRst::Handle_BRepBlend_AppFuncRst %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_AppFuncRst; -class Handle_BRepBlend_AppFuncRst : public Handle_BRepBlend_AppFuncRoot { - - public: - // constructors - Handle_BRepBlend_AppFuncRst(); - Handle_BRepBlend_AppFuncRst(const Handle_BRepBlend_AppFuncRst &aHandle); - Handle_BRepBlend_AppFuncRst(const BRepBlend_AppFuncRst *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_AppFuncRst DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_AppFuncRst { - BRepBlend_AppFuncRst* _get_reference() { - return (BRepBlend_AppFuncRst*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_AppFuncRst { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_AppFuncRst) %extend BRepBlend_AppFuncRst { %pythoncode { @@ -4534,51 +4264,7 @@ class BRepBlend_AppFuncRstRst : public BRepBlend_AppFuncRoot { }; -%extend BRepBlend_AppFuncRstRst { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBlend_AppFuncRstRst(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBlend_AppFuncRstRst::Handle_BRepBlend_AppFuncRstRst %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBlend_AppFuncRstRst; -class Handle_BRepBlend_AppFuncRstRst : public Handle_BRepBlend_AppFuncRoot { - - public: - // constructors - Handle_BRepBlend_AppFuncRstRst(); - Handle_BRepBlend_AppFuncRstRst(const Handle_BRepBlend_AppFuncRstRst &aHandle); - Handle_BRepBlend_AppFuncRstRst(const BRepBlend_AppFuncRstRst *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBlend_AppFuncRstRst DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBlend_AppFuncRstRst { - BRepBlend_AppFuncRstRst* _get_reference() { - return (BRepBlend_AppFuncRstRst*)$self->Access(); - } -}; - -%extend Handle_BRepBlend_AppFuncRstRst { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBlend_AppFuncRstRst) %extend BRepBlend_AppFuncRstRst { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepBndLib.i b/src/SWIG_files/wrapper/BRepBndLib.i index f19b6b8d8..94d2490d0 100644 --- a/src/SWIG_files/wrapper/BRepBndLib.i +++ b/src/SWIG_files/wrapper/BRepBndLib.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define BREPBNDLIBDOCSTRING -"No docstring provided." +"This package provides the bounding boxes for curves +and surfaces from BRepAdaptor. +Functions to add a topological shape to a bounding box" %enddef %module (package="OCC.Core", docstring=BREPBNDLIBDOCSTRING) BRepBndLib @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepBndLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(brepbndlib) BRepBndLib; class BRepBndLib { public: diff --git a/src/SWIG_files/wrapper/BRepBndLib_headers.i b/src/SWIG_files/wrapper/BRepBndLib_headers.i index 835a0353a..9486d1ca0 100644 --- a/src/SWIG_files/wrapper/BRepBndLib_headers.i +++ b/src/SWIG_files/wrapper/BRepBndLib_headers.i @@ -144,6 +144,17 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepBuilderAPI.i b/src/SWIG_files/wrapper/BRepBuilderAPI.i index 997b79bc0..281917280 100644 --- a/src/SWIG_files/wrapper/BRepBuilderAPI.i +++ b/src/SWIG_files/wrapper/BRepBuilderAPI.i @@ -18,7 +18,69 @@ along with pythonOCC. If not, see . */ %define BREPBUILDERAPIDOCSTRING -"No docstring provided." +"The BRepBuilderAPI package provides an Application +Programming Interface for the BRep topology data +structure. + +The API is a set of classes aiming to provide : + +* High level and simple calls for the most common +operations. + +* Keeping an access on the low-level +implementation of high-level calls. + +* Examples of programming of high-level operations +from low-level operations. + +* A complete coverage of modelling : + +- Creating vertices ,edges, faces, solids. + +- Sweeping operations. + +- Boolean operations. + +- Global properties computation. + + +The API provides classes to build objects: + +* The constructors of the classes provides the +different constructions methods. + +* The class keeps as fields the different tools +used to build the object. + +* The class provides a casting method to get +automatically the result with a function-like +call. + +For example to make a vertex from a point

+one can writes : + +V = BRepBuilderAPI_MakeVertex(P); + +or + +BRepBuilderAPI_MakeVertex MV(P); +V = MV.Vertex(); + + +For tolerances a default precision is used which +can be changed by the packahe method +BRepBuilderAPI::Precision. + +For error handling the BRepBuilderAPI commands raise only +the NotDone error. When Done is false on a command +the error description can be asked to the command. + +In theory the comands can be called with any +arguments, argument checking is performed by the +command. + + +" %enddef %module (package="OCC.Core", docstring=BREPBUILDERAPIDOCSTRING) BRepBuilderAPI @@ -34,25 +96,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepBuilderAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_CellFilter BRepBuilderAPI_CellFilter; typedef NCollection_Vector VectorOfPoint; @@ -115,6 +163,9 @@ enum BRepBuilderAPI_ShellError { /* end public enums declaration */ +%wrap_handle(BRepBuilderAPI_FastSewing) +%wrap_handle(BRepBuilderAPI_Sewing) + %rename(brepbuilderapi) BRepBuilderAPI; class BRepBuilderAPI { public: @@ -306,51 +357,7 @@ enum FS_Statuses { }; -%extend BRepBuilderAPI_FastSewing { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBuilderAPI_FastSewing(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBuilderAPI_FastSewing::Handle_BRepBuilderAPI_FastSewing %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBuilderAPI_FastSewing; -class Handle_BRepBuilderAPI_FastSewing : public Handle_Standard_Transient { - - public: - // constructors - Handle_BRepBuilderAPI_FastSewing(); - Handle_BRepBuilderAPI_FastSewing(const Handle_BRepBuilderAPI_FastSewing &aHandle); - Handle_BRepBuilderAPI_FastSewing(const BRepBuilderAPI_FastSewing *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBuilderAPI_FastSewing DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBuilderAPI_FastSewing { - BRepBuilderAPI_FastSewing* _get_reference() { - return (BRepBuilderAPI_FastSewing*)$self->Access(); - } -}; - -%extend Handle_BRepBuilderAPI_FastSewing { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBuilderAPI_FastSewing) %extend BRepBuilderAPI_FastSewing { %pythoncode { @@ -750,51 +757,7 @@ class BRepBuilderAPI_Sewing : public MMgt_TShared { }; -%extend BRepBuilderAPI_Sewing { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepBuilderAPI_Sewing(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepBuilderAPI_Sewing::Handle_BRepBuilderAPI_Sewing %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepBuilderAPI_Sewing; -class Handle_BRepBuilderAPI_Sewing : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepBuilderAPI_Sewing(); - Handle_BRepBuilderAPI_Sewing(const Handle_BRepBuilderAPI_Sewing &aHandle); - Handle_BRepBuilderAPI_Sewing(const BRepBuilderAPI_Sewing *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepBuilderAPI_Sewing DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepBuilderAPI_Sewing { - BRepBuilderAPI_Sewing* _get_reference() { - return (BRepBuilderAPI_Sewing*)$self->Access(); - } -}; - -%extend Handle_BRepBuilderAPI_Sewing { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepBuilderAPI_Sewing) %extend BRepBuilderAPI_Sewing { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepCheck.i b/src/SWIG_files/wrapper/BRepCheck.i index 331080a4a..ff0fae53c 100644 --- a/src/SWIG_files/wrapper/BRepCheck.i +++ b/src/SWIG_files/wrapper/BRepCheck.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define BREPCHECKDOCSTRING -"No docstring provided." +"This package provides tools to check the validity +of the BRep. +" %enddef %module (package="OCC.Core", docstring=BREPCHECKDOCSTRING) BRepCheck @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepCheck_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -99,6 +87,17 @@ enum BRepCheck_Status { /* end public enums declaration */ +%wrap_handle(BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus) +%wrap_handle(BRepCheck_DataMapNodeOfDataMapOfShapeResult) +%wrap_handle(BRepCheck_ListNodeOfListOfStatus) +%wrap_handle(BRepCheck_Result) +%wrap_handle(BRepCheck_Edge) +%wrap_handle(BRepCheck_Face) +%wrap_handle(BRepCheck_Shell) +%wrap_handle(BRepCheck_Solid) +%wrap_handle(BRepCheck_Vertex) +%wrap_handle(BRepCheck_Wire) + %rename(brepcheck) BRepCheck; class BRepCheck { public: @@ -283,51 +282,7 @@ class BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus : public TCollection_Map }; -%extend BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus::Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus; -class Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus(); - Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus(const Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus &aHandle); - Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus(const BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus { - BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus* _get_reference() { - return (BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus) %extend BRepCheck_DataMapNodeOfDataMapOfShapeListOfStatus { %pythoncode { @@ -358,51 +313,7 @@ class BRepCheck_DataMapNodeOfDataMapOfShapeResult : public TCollection_MapNode { }; -%extend BRepCheck_DataMapNodeOfDataMapOfShapeResult { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult::Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult; -class Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult(); - Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult(const Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult &aHandle); - Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult(const BRepCheck_DataMapNodeOfDataMapOfShapeResult *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult { - BRepCheck_DataMapNodeOfDataMapOfShapeResult* _get_reference() { - return (BRepCheck_DataMapNodeOfDataMapOfShapeResult*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_DataMapNodeOfDataMapOfShapeResult { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_DataMapNodeOfDataMapOfShapeResult) %extend BRepCheck_DataMapNodeOfDataMapOfShapeResult { %pythoncode { @@ -632,51 +543,7 @@ class BRepCheck_ListNodeOfListOfStatus : public TCollection_MapNode { }; -%extend BRepCheck_ListNodeOfListOfStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_ListNodeOfListOfStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_ListNodeOfListOfStatus::Handle_BRepCheck_ListNodeOfListOfStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_ListNodeOfListOfStatus; -class Handle_BRepCheck_ListNodeOfListOfStatus : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepCheck_ListNodeOfListOfStatus(); - Handle_BRepCheck_ListNodeOfListOfStatus(const Handle_BRepCheck_ListNodeOfListOfStatus &aHandle); - Handle_BRepCheck_ListNodeOfListOfStatus(const BRepCheck_ListNodeOfListOfStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_ListNodeOfListOfStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_ListNodeOfListOfStatus { - BRepCheck_ListNodeOfListOfStatus* _get_reference() { - return (BRepCheck_ListNodeOfListOfStatus*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_ListNodeOfListOfStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_ListNodeOfListOfStatus) %extend BRepCheck_ListNodeOfListOfStatus { %pythoncode { @@ -890,51 +757,7 @@ class BRepCheck_Result : public MMgt_TShared { }; -%extend BRepCheck_Result { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Result(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Result::Handle_BRepCheck_Result %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Result; -class Handle_BRepCheck_Result : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepCheck_Result(); - Handle_BRepCheck_Result(const Handle_BRepCheck_Result &aHandle); - Handle_BRepCheck_Result(const BRepCheck_Result *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Result DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Result { - BRepCheck_Result* _get_reference() { - return (BRepCheck_Result*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Result { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Result) %extend BRepCheck_Result { %pythoncode { @@ -997,51 +820,7 @@ class BRepCheck_Edge : public BRepCheck_Result { }; -%extend BRepCheck_Edge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Edge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Edge::Handle_BRepCheck_Edge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Edge; -class Handle_BRepCheck_Edge : public Handle_BRepCheck_Result { - - public: - // constructors - Handle_BRepCheck_Edge(); - Handle_BRepCheck_Edge(const Handle_BRepCheck_Edge &aHandle); - Handle_BRepCheck_Edge(const BRepCheck_Edge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Edge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Edge { - BRepCheck_Edge* _get_reference() { - return (BRepCheck_Edge*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Edge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Edge) %extend BRepCheck_Edge { %pythoncode { @@ -1118,51 +897,7 @@ class BRepCheck_Face : public BRepCheck_Result { }; -%extend BRepCheck_Face { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Face(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Face::Handle_BRepCheck_Face %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Face; -class Handle_BRepCheck_Face : public Handle_BRepCheck_Result { - - public: - // constructors - Handle_BRepCheck_Face(); - Handle_BRepCheck_Face(const Handle_BRepCheck_Face &aHandle); - Handle_BRepCheck_Face(const BRepCheck_Face *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Face DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Face { - BRepCheck_Face* _get_reference() { - return (BRepCheck_Face*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Face { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Face) %extend BRepCheck_Face { %pythoncode { @@ -1225,51 +960,7 @@ class BRepCheck_Shell : public BRepCheck_Result { }; -%extend BRepCheck_Shell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Shell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Shell::Handle_BRepCheck_Shell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Shell; -class Handle_BRepCheck_Shell : public Handle_BRepCheck_Result { - - public: - // constructors - Handle_BRepCheck_Shell(); - Handle_BRepCheck_Shell(const Handle_BRepCheck_Shell &aHandle); - Handle_BRepCheck_Shell(const BRepCheck_Shell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Shell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Shell { - BRepCheck_Shell* _get_reference() { - return (BRepCheck_Shell*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Shell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Shell) %extend BRepCheck_Shell { %pythoncode { @@ -1310,51 +1001,7 @@ class BRepCheck_Solid : public BRepCheck_Result { }; -%extend BRepCheck_Solid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Solid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Solid::Handle_BRepCheck_Solid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Solid; -class Handle_BRepCheck_Solid : public Handle_BRepCheck_Result { - - public: - // constructors - Handle_BRepCheck_Solid(); - Handle_BRepCheck_Solid(const Handle_BRepCheck_Solid &aHandle); - Handle_BRepCheck_Solid(const BRepCheck_Solid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Solid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Solid { - BRepCheck_Solid* _get_reference() { - return (BRepCheck_Solid*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Solid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Solid) %extend BRepCheck_Solid { %pythoncode { @@ -1391,51 +1038,7 @@ class BRepCheck_Vertex : public BRepCheck_Result { }; -%extend BRepCheck_Vertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Vertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Vertex::Handle_BRepCheck_Vertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Vertex; -class Handle_BRepCheck_Vertex : public Handle_BRepCheck_Result { - - public: - // constructors - Handle_BRepCheck_Vertex(); - Handle_BRepCheck_Vertex(const Handle_BRepCheck_Vertex &aHandle); - Handle_BRepCheck_Vertex(const BRepCheck_Vertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Vertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Vertex { - BRepCheck_Vertex* _get_reference() { - return (BRepCheck_Vertex*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Vertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Vertex) %extend BRepCheck_Vertex { %pythoncode { @@ -1538,51 +1141,7 @@ class BRepCheck_Wire : public BRepCheck_Result { }; -%extend BRepCheck_Wire { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepCheck_Wire(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepCheck_Wire::Handle_BRepCheck_Wire %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepCheck_Wire; -class Handle_BRepCheck_Wire : public Handle_BRepCheck_Result { - - public: - // constructors - Handle_BRepCheck_Wire(); - Handle_BRepCheck_Wire(const Handle_BRepCheck_Wire &aHandle); - Handle_BRepCheck_Wire(const BRepCheck_Wire *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepCheck_Wire DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepCheck_Wire { - BRepCheck_Wire* _get_reference() { - return (BRepCheck_Wire*)$self->Access(); - } -}; - -%extend Handle_BRepCheck_Wire { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepCheck_Wire) %extend BRepCheck_Wire { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepClass.i b/src/SWIG_files/wrapper/BRepClass.i index 30d5360b4..8c258b26d 100644 --- a/src/SWIG_files/wrapper/BRepClass.i +++ b/src/SWIG_files/wrapper/BRepClass.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define BREPCLASSDOCSTRING -"No docstring provided." +"The BRepClass packages provides classification +algorithms for the BRep topology. It instantiates +the algorithms from the package TopClass. +" %enddef %module (package="OCC.Core", docstring=BREPCLASSDOCSTRING) BRepClass @@ -34,31 +37,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepClass_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepClass_Edge; class BRepClass_Edge { public: diff --git a/src/SWIG_files/wrapper/BRepClass3d.i b/src/SWIG_files/wrapper/BRepClass3d.i index 177e20aa7..191df0619 100644 --- a/src/SWIG_files/wrapper/BRepClass3d.i +++ b/src/SWIG_files/wrapper/BRepClass3d.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BREPCLASS3DDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BREPCLASS3DDOCSTRING) BRepClass3d @@ -34,31 +34,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepClass3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepClass3d_DataMapNodeOfMapOfInter) + %rename(brepclass3d) BRepClass3d; class BRepClass3d { public: @@ -137,51 +125,7 @@ class BRepClass3d_DataMapNodeOfMapOfInter : public TCollection_MapNode { }; -%extend BRepClass3d_DataMapNodeOfMapOfInter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepClass3d_DataMapNodeOfMapOfInter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepClass3d_DataMapNodeOfMapOfInter::Handle_BRepClass3d_DataMapNodeOfMapOfInter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepClass3d_DataMapNodeOfMapOfInter; -class Handle_BRepClass3d_DataMapNodeOfMapOfInter : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepClass3d_DataMapNodeOfMapOfInter(); - Handle_BRepClass3d_DataMapNodeOfMapOfInter(const Handle_BRepClass3d_DataMapNodeOfMapOfInter &aHandle); - Handle_BRepClass3d_DataMapNodeOfMapOfInter(const BRepClass3d_DataMapNodeOfMapOfInter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepClass3d_DataMapNodeOfMapOfInter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepClass3d_DataMapNodeOfMapOfInter { - BRepClass3d_DataMapNodeOfMapOfInter* _get_reference() { - return (BRepClass3d_DataMapNodeOfMapOfInter*)$self->Access(); - } -}; - -%extend Handle_BRepClass3d_DataMapNodeOfMapOfInter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepClass3d_DataMapNodeOfMapOfInter) %extend BRepClass3d_DataMapNodeOfMapOfInter { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepClass_headers.i b/src/SWIG_files/wrapper/BRepClass_headers.i index 9af5983a2..e8a62fe74 100644 --- a/src/SWIG_files/wrapper/BRepClass_headers.i +++ b/src/SWIG_files/wrapper/BRepClass_headers.i @@ -206,6 +206,233 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepExtrema.i b/src/SWIG_files/wrapper/BRepExtrema.i index 547cb95d1..d29c336dd 100644 --- a/src/SWIG_files/wrapper/BRepExtrema.i +++ b/src/SWIG_files/wrapper/BRepExtrema.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define BREPEXTREMADOCSTRING -"No docstring provided." +"This package gives tools to compute extrema between +Shapes from BRep. +" %enddef %module (package="OCC.Core", docstring=BREPEXTREMADOCSTRING) BRepExtrema @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepExtrema_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Sequence BRepExtrema_SeqOfSolution; typedef NCollection_DataMap BRepExtrema_MapOfIntegerPackedMapOfInteger; @@ -68,6 +56,7 @@ enum BRepExtrema_SupportType { /* end public enums declaration */ + %nodefaultctor BRepExtrema_DistShapeShape; class BRepExtrema_DistShapeShape { public: diff --git a/src/SWIG_files/wrapper/BRepExtrema_headers.i b/src/SWIG_files/wrapper/BRepExtrema_headers.i index 996e74137..56a951682 100644 --- a/src/SWIG_files/wrapper/BRepExtrema_headers.i +++ b/src/SWIG_files/wrapper/BRepExtrema_headers.i @@ -299,6 +299,108 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepFeat.i b/src/SWIG_files/wrapper/BRepFeat.i index 6d143acf3..e0a921f13 100644 --- a/src/SWIG_files/wrapper/BRepFeat.i +++ b/src/SWIG_files/wrapper/BRepFeat.i @@ -18,7 +18,50 @@ along with pythonOCC. If not, see . */ %define BREPFEATDOCSTRING -"No docstring provided." +"BRepFeat is necessary for the +creation and manipulation of both form and mechanical features in a +Boundary Representation framework. Form features can be depressions or +protrusions and include the following types: +- Cylinder +- Draft Prism +- Prism +- Revolved feature +- Pipe +Depending on whether you wish to make a depression or a protrusion, +you can choose your operation type between the following: +- removing matter (a Boolean cut: Fuse setting 0) +- adding matter (Boolean fusion: Fuse setting 1) +The semantics of form feature creation is based on the +construction of shapes: +- for a certain length in a certain direction +- up to a limiting face +- from a limiting face at a height +- above and/or below a plane +The shape defining the construction of a feature can be either a +supporting edge or a concerned area of a face. +In case of supporting edge, this contour can be attached to a face +of the basis shape by binding. When the contour is bound to this face, +the information that the contour will slide on the face becomes +available to the relevant class methods. In case of the concerned +area of a face, you could, for example, cut it out and move it at +a different height, which will define the limiting face of a +protrusion or depression. Topological definition with local +operations of this sort makes calculations simpler and faster +than a global operation. The latter would entail a second phase of +removing unwanted matter to get the same result. +Mechanical features include ribs - protrusions - and grooves (or +slots) - depressions along planar (linear) surfaces or revolution surfaces. +The semantics of mechanical features is based on giving +thickness to a contour. This thickness can either be unilateral +- on one side of the contour - or bilateral - on both sides. As in +the semantics of form features, the thickness is defined by +construction of shapes in specific contexts. +However, in case of mechanical features, development contexts +differ. Here they include extrusion: +- to a limiting face of the basis shape +- to or from a limiting plane +- to a height. +" %enddef %module (package="OCC.Core", docstring=BREPFEATDOCSTRING) BRepFeat @@ -34,25 +77,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepFeat_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -104,6 +133,7 @@ enum BRepFeat_PerfSelection { /* end public enums declaration */ + %rename(brepfeat) BRepFeat; class BRepFeat { public: diff --git a/src/SWIG_files/wrapper/BRepFeat_headers.i b/src/SWIG_files/wrapper/BRepFeat_headers.i index 07d06026c..8fb06f84f 100644 --- a/src/SWIG_files/wrapper/BRepFeat_headers.i +++ b/src/SWIG_files/wrapper/BRepFeat_headers.i @@ -551,6 +551,832 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepFill.i b/src/SWIG_files/wrapper/BRepFill.i index 4789f3732..4ba77e402 100644 --- a/src/SWIG_files/wrapper/BRepFill.i +++ b/src/SWIG_files/wrapper/BRepFill.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BREPFILLDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BREPFILLDOCSTRING) BRepFill @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepFill_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -71,6 +57,29 @@ enum BRepFill_TransitionStyle { /* end public enums declaration */ +%wrap_handle(BRepFill_CurveConstraint) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfNodeShape) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt) +%wrap_handle(BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal) +%wrap_handle(BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape) +%wrap_handle(BRepFill_ListNodeOfListOfOffsetWire) +%wrap_handle(BRepFill_LocationLaw) +%wrap_handle(BRepFill_PipeShell) +%wrap_handle(BRepFill_SectionLaw) +%wrap_handle(BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder) +%wrap_handle(BRepFill_SequenceNodeOfSequenceOfFaceAndOrder) +%wrap_handle(BRepFill_SequenceNodeOfSequenceOfSection) +%wrap_handle(BRepFill_ACRLaw) +%wrap_handle(BRepFill_Edge3DLaw) +%wrap_handle(BRepFill_EdgeOnSurfLaw) +%wrap_handle(BRepFill_NSections) +%wrap_handle(BRepFill_ShapeLaw) +%wrap_handle(BRepFill_DraftLaw) + %rename(brepfill) BRepFill; class BRepFill { public: @@ -405,51 +414,7 @@ class BRepFill_CurveConstraint : public GeomPlate_CurveConstraint { }; -%extend BRepFill_CurveConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_CurveConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_CurveConstraint::Handle_BRepFill_CurveConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_CurveConstraint; -class Handle_BRepFill_CurveConstraint : public Handle_GeomPlate_CurveConstraint { - - public: - // constructors - Handle_BRepFill_CurveConstraint(); - Handle_BRepFill_CurveConstraint(const Handle_BRepFill_CurveConstraint &aHandle); - Handle_BRepFill_CurveConstraint(const BRepFill_CurveConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_CurveConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_CurveConstraint { - BRepFill_CurveConstraint* _get_reference() { - return (BRepFill_CurveConstraint*)$self->Access(); - } -}; - -%extend Handle_BRepFill_CurveConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_CurveConstraint) %extend BRepFill_CurveConstraint { %pythoncode { @@ -725,51 +690,7 @@ class BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape : public TCollectio }; -%extend BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape::Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape; -class Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape(); - Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape(const Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape(const BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape { - BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape) %extend BRepFill_DataMapNodeOfDataMapOfNodeDataMapOfShapeShape { %pythoncode { @@ -800,51 +721,7 @@ class BRepFill_DataMapNodeOfDataMapOfNodeShape : public TCollection_MapNode { }; -%extend BRepFill_DataMapNodeOfDataMapOfNodeShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape::Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape; -class Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape(); - Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape(const Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape(const BRepFill_DataMapNodeOfDataMapOfNodeShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape { - BRepFill_DataMapNodeOfDataMapOfNodeShape* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfNodeShape*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfNodeShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfNodeShape) %extend BRepFill_DataMapNodeOfDataMapOfNodeShape { %pythoncode { @@ -875,51 +752,7 @@ class BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape : public TCollecti }; -%extend BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape::Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape; -class Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape(); - Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape(const Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape(const BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape { - BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape) %extend BRepFill_DataMapNodeOfDataMapOfOrientedShapeListOfShape { %pythoncode { @@ -950,51 +783,7 @@ class BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape : public TCo }; -%extend BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape::Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape; -class Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape(); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape(const Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape(const BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape { - BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape) %extend BRepFill_DataMapNodeOfDataMapOfShapeDataMapOfShapeListOfShape { %pythoncode { @@ -1025,51 +814,7 @@ class BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape : public TCollection_Ma }; -%extend BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape::Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape; -class Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape(); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape(const Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape(const BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape { - BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape) %extend BRepFill_DataMapNodeOfDataMapOfShapeHArray2OfShape { %pythoncode { @@ -1100,51 +845,7 @@ class BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt : public TCollection_Map }; -%extend BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt::Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt; -class Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt(); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt(const Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt(const BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt { - BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt) %extend BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfPnt { %pythoncode { @@ -1175,51 +876,7 @@ class BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal : public TCollection_Ma }; -%extend BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal::Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal; -class Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal(); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal(const Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal &aHandle); - Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal(const BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal { - BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal* _get_reference() { - return (BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal) %extend BRepFill_DataMapNodeOfDataMapOfShapeSequenceOfReal { %pythoncode { @@ -2334,51 +1991,7 @@ class BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape : pu }; -%extend BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape::Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape; -class Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape(); - Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape(const Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape &aHandle); - Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape(const BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape { - BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape* _get_reference() { - return (BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape) %extend BRepFill_IndexedDataMapNodeOfIndexedDataMapOfOrientedShapeListOfShape { %pythoncode { @@ -2557,51 +2170,7 @@ class BRepFill_ListNodeOfListOfOffsetWire : public TCollection_MapNode { }; -%extend BRepFill_ListNodeOfListOfOffsetWire { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_ListNodeOfListOfOffsetWire(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_ListNodeOfListOfOffsetWire::Handle_BRepFill_ListNodeOfListOfOffsetWire %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_ListNodeOfListOfOffsetWire; -class Handle_BRepFill_ListNodeOfListOfOffsetWire : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepFill_ListNodeOfListOfOffsetWire(); - Handle_BRepFill_ListNodeOfListOfOffsetWire(const Handle_BRepFill_ListNodeOfListOfOffsetWire &aHandle); - Handle_BRepFill_ListNodeOfListOfOffsetWire(const BRepFill_ListNodeOfListOfOffsetWire *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_ListNodeOfListOfOffsetWire DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_ListNodeOfListOfOffsetWire { - BRepFill_ListNodeOfListOfOffsetWire* _get_reference() { - return (BRepFill_ListNodeOfListOfOffsetWire*)$self->Access(); - } -}; - -%extend Handle_BRepFill_ListNodeOfListOfOffsetWire { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_ListNodeOfListOfOffsetWire) %extend BRepFill_ListNodeOfListOfOffsetWire { %pythoncode { @@ -2897,51 +2466,7 @@ class BRepFill_LocationLaw : public MMgt_TShared { }; -%extend BRepFill_LocationLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_LocationLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_LocationLaw::Handle_BRepFill_LocationLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_LocationLaw; -class Handle_BRepFill_LocationLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepFill_LocationLaw(); - Handle_BRepFill_LocationLaw(const Handle_BRepFill_LocationLaw &aHandle); - Handle_BRepFill_LocationLaw(const BRepFill_LocationLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_LocationLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_LocationLaw { - BRepFill_LocationLaw* _get_reference() { - return (BRepFill_LocationLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_LocationLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_LocationLaw) %extend BRepFill_LocationLaw { %pythoncode { @@ -3552,51 +3077,7 @@ class BRepFill_PipeShell : public MMgt_TShared { }; -%extend BRepFill_PipeShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_PipeShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_PipeShell::Handle_BRepFill_PipeShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_PipeShell; -class Handle_BRepFill_PipeShell : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepFill_PipeShell(); - Handle_BRepFill_PipeShell(const Handle_BRepFill_PipeShell &aHandle); - Handle_BRepFill_PipeShell(const BRepFill_PipeShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_PipeShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_PipeShell { - BRepFill_PipeShell* _get_reference() { - return (BRepFill_PipeShell*)$self->Access(); - } -}; - -%extend Handle_BRepFill_PipeShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_PipeShell) %extend BRepFill_PipeShell { %pythoncode { @@ -3736,51 +3217,7 @@ class BRepFill_SectionLaw : public MMgt_TShared { }; -%extend BRepFill_SectionLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_SectionLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_SectionLaw::Handle_BRepFill_SectionLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_SectionLaw; -class Handle_BRepFill_SectionLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepFill_SectionLaw(); - Handle_BRepFill_SectionLaw(const Handle_BRepFill_SectionLaw &aHandle); - Handle_BRepFill_SectionLaw(const BRepFill_SectionLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_SectionLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_SectionLaw { - BRepFill_SectionLaw* _get_reference() { - return (BRepFill_SectionLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_SectionLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_SectionLaw) %extend BRepFill_SectionLaw { %pythoncode { @@ -3856,51 +3293,7 @@ class BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder : public TCollection_Seq }; -%extend BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder::Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder; -class Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder(); - Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder(const Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder &aHandle); - Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder(const BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder { - BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder* _get_reference() { - return (BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder*)$self->Access(); - } -}; - -%extend Handle_BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder) %extend BRepFill_SequenceNodeOfSequenceOfEdgeFaceAndOrder { %pythoncode { @@ -3927,51 +3320,7 @@ class BRepFill_SequenceNodeOfSequenceOfFaceAndOrder : public TCollection_SeqNode }; -%extend BRepFill_SequenceNodeOfSequenceOfFaceAndOrder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder::Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder; -class Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder(); - Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder(const Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder &aHandle); - Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder(const BRepFill_SequenceNodeOfSequenceOfFaceAndOrder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder { - BRepFill_SequenceNodeOfSequenceOfFaceAndOrder* _get_reference() { - return (BRepFill_SequenceNodeOfSequenceOfFaceAndOrder*)$self->Access(); - } -}; - -%extend Handle_BRepFill_SequenceNodeOfSequenceOfFaceAndOrder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_SequenceNodeOfSequenceOfFaceAndOrder) %extend BRepFill_SequenceNodeOfSequenceOfFaceAndOrder { %pythoncode { @@ -3998,51 +3347,7 @@ class BRepFill_SequenceNodeOfSequenceOfSection : public TCollection_SeqNode { }; -%extend BRepFill_SequenceNodeOfSequenceOfSection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_SequenceNodeOfSequenceOfSection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_SequenceNodeOfSequenceOfSection::Handle_BRepFill_SequenceNodeOfSequenceOfSection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_SequenceNodeOfSequenceOfSection; -class Handle_BRepFill_SequenceNodeOfSequenceOfSection : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepFill_SequenceNodeOfSequenceOfSection(); - Handle_BRepFill_SequenceNodeOfSequenceOfSection(const Handle_BRepFill_SequenceNodeOfSequenceOfSection &aHandle); - Handle_BRepFill_SequenceNodeOfSequenceOfSection(const BRepFill_SequenceNodeOfSequenceOfSection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_SequenceNodeOfSequenceOfSection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_SequenceNodeOfSequenceOfSection { - BRepFill_SequenceNodeOfSequenceOfSection* _get_reference() { - return (BRepFill_SequenceNodeOfSequenceOfSection*)$self->Access(); - } -}; - -%extend Handle_BRepFill_SequenceNodeOfSequenceOfSection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_SequenceNodeOfSequenceOfSection) %extend BRepFill_SequenceNodeOfSequenceOfSection { %pythoncode { @@ -4808,51 +4113,7 @@ class BRepFill_ACRLaw : public BRepFill_LocationLaw { }; -%extend BRepFill_ACRLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_ACRLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_ACRLaw::Handle_BRepFill_ACRLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_ACRLaw; -class Handle_BRepFill_ACRLaw : public Handle_BRepFill_LocationLaw { - - public: - // constructors - Handle_BRepFill_ACRLaw(); - Handle_BRepFill_ACRLaw(const Handle_BRepFill_ACRLaw &aHandle); - Handle_BRepFill_ACRLaw(const BRepFill_ACRLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_ACRLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_ACRLaw { - BRepFill_ACRLaw* _get_reference() { - return (BRepFill_ACRLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_ACRLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_ACRLaw) %extend BRepFill_ACRLaw { %pythoncode { @@ -4873,51 +4134,7 @@ class BRepFill_Edge3DLaw : public BRepFill_LocationLaw { }; -%extend BRepFill_Edge3DLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_Edge3DLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_Edge3DLaw::Handle_BRepFill_Edge3DLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_Edge3DLaw; -class Handle_BRepFill_Edge3DLaw : public Handle_BRepFill_LocationLaw { - - public: - // constructors - Handle_BRepFill_Edge3DLaw(); - Handle_BRepFill_Edge3DLaw(const Handle_BRepFill_Edge3DLaw &aHandle); - Handle_BRepFill_Edge3DLaw(const BRepFill_Edge3DLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_Edge3DLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_Edge3DLaw { - BRepFill_Edge3DLaw* _get_reference() { - return (BRepFill_Edge3DLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_Edge3DLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_Edge3DLaw) %extend BRepFill_Edge3DLaw { %pythoncode { @@ -4944,51 +4161,7 @@ class BRepFill_EdgeOnSurfLaw : public BRepFill_LocationLaw { }; -%extend BRepFill_EdgeOnSurfLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_EdgeOnSurfLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_EdgeOnSurfLaw::Handle_BRepFill_EdgeOnSurfLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_EdgeOnSurfLaw; -class Handle_BRepFill_EdgeOnSurfLaw : public Handle_BRepFill_LocationLaw { - - public: - // constructors - Handle_BRepFill_EdgeOnSurfLaw(); - Handle_BRepFill_EdgeOnSurfLaw(const Handle_BRepFill_EdgeOnSurfLaw &aHandle); - Handle_BRepFill_EdgeOnSurfLaw(const BRepFill_EdgeOnSurfLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_EdgeOnSurfLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_EdgeOnSurfLaw { - BRepFill_EdgeOnSurfLaw* _get_reference() { - return (BRepFill_EdgeOnSurfLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_EdgeOnSurfLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_EdgeOnSurfLaw) %extend BRepFill_EdgeOnSurfLaw { %pythoncode { @@ -5079,51 +4252,7 @@ class BRepFill_NSections : public BRepFill_SectionLaw { }; -%extend BRepFill_NSections { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_NSections(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_NSections::Handle_BRepFill_NSections %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_NSections; -class Handle_BRepFill_NSections : public Handle_BRepFill_SectionLaw { - - public: - // constructors - Handle_BRepFill_NSections(); - Handle_BRepFill_NSections(const Handle_BRepFill_NSections &aHandle); - Handle_BRepFill_NSections(const BRepFill_NSections *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_NSections DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_NSections { - BRepFill_NSections* _get_reference() { - return (BRepFill_NSections*)$self->Access(); - } -}; - -%extend Handle_BRepFill_NSections { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_NSections) %extend BRepFill_NSections { %pythoncode { @@ -5224,51 +4353,7 @@ class BRepFill_ShapeLaw : public BRepFill_SectionLaw { }; -%extend BRepFill_ShapeLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_ShapeLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_ShapeLaw::Handle_BRepFill_ShapeLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_ShapeLaw; -class Handle_BRepFill_ShapeLaw : public Handle_BRepFill_SectionLaw { - - public: - // constructors - Handle_BRepFill_ShapeLaw(); - Handle_BRepFill_ShapeLaw(const Handle_BRepFill_ShapeLaw &aHandle); - Handle_BRepFill_ShapeLaw(const BRepFill_ShapeLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_ShapeLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_ShapeLaw { - BRepFill_ShapeLaw* _get_reference() { - return (BRepFill_ShapeLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_ShapeLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_ShapeLaw) %extend BRepFill_ShapeLaw { %pythoncode { @@ -5297,51 +4382,7 @@ class BRepFill_DraftLaw : public BRepFill_Edge3DLaw { }; -%extend BRepFill_DraftLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepFill_DraftLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepFill_DraftLaw::Handle_BRepFill_DraftLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepFill_DraftLaw; -class Handle_BRepFill_DraftLaw : public Handle_BRepFill_Edge3DLaw { - - public: - // constructors - Handle_BRepFill_DraftLaw(); - Handle_BRepFill_DraftLaw(const Handle_BRepFill_DraftLaw &aHandle); - Handle_BRepFill_DraftLaw(const BRepFill_DraftLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepFill_DraftLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepFill_DraftLaw { - BRepFill_DraftLaw* _get_reference() { - return (BRepFill_DraftLaw*)$self->Access(); - } -}; - -%extend Handle_BRepFill_DraftLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepFill_DraftLaw) %extend BRepFill_DraftLaw { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepFilletAPI.i b/src/SWIG_files/wrapper/BRepFilletAPI.i index 188e39b5d..86115f6da 100644 --- a/src/SWIG_files/wrapper/BRepFilletAPI.i +++ b/src/SWIG_files/wrapper/BRepFilletAPI.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BREPFILLETAPIDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BREPFILLETAPIDOCSTRING) BRepFilletAPI @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepFilletAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepFilletAPI_LocalOperation; class BRepFilletAPI_LocalOperation : public BRepBuilderAPI_MakeShape { public: diff --git a/src/SWIG_files/wrapper/BRepFilletAPI_headers.i b/src/SWIG_files/wrapper/BRepFilletAPI_headers.i index 023467dcb..df203312c 100644 --- a/src/SWIG_files/wrapper/BRepFilletAPI_headers.i +++ b/src/SWIG_files/wrapper/BRepFilletAPI_headers.i @@ -468,6 +468,738 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepGProp.i b/src/SWIG_files/wrapper/BRepGProp.i index 036ec1f44..82b170acf 100644 --- a/src/SWIG_files/wrapper/BRepGProp.i +++ b/src/SWIG_files/wrapper/BRepGProp.i @@ -18,7 +18,19 @@ along with pythonOCC. If not, see . */ %define BREPGPROPDOCSTRING -"No docstring provided." +"Provides global functions to compute a shape's global +properties for lines, surfaces or volumes, and bring +them together with the global properties already +computed for a geometric system. +The global properties computed for a system are : +- its mass, +- its center of mass, +- its matrix of inertia, +- its moment about an axis, +- its radius of gyration about an axis, +- and its principal properties of inertia such as +principal axis, principal moments, principal radius of gyration. +" %enddef %module (package="OCC.Core", docstring=BREPGPROPDOCSTRING) BRepGProp @@ -34,31 +46,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepGProp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(brepgprop) BRepGProp; class BRepGProp { public: diff --git a/src/SWIG_files/wrapper/BRepGProp_headers.i b/src/SWIG_files/wrapper/BRepGProp_headers.i index 552109e77..d2fcbe18e 100644 --- a/src/SWIG_files/wrapper/BRepGProp_headers.i +++ b/src/SWIG_files/wrapper/BRepGProp_headers.i @@ -398,6 +398,93 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepIntCurveSurface.i b/src/SWIG_files/wrapper/BRepIntCurveSurface.i index 07a38fc19..36a7051d6 100644 --- a/src/SWIG_files/wrapper/BRepIntCurveSurface.i +++ b/src/SWIG_files/wrapper/BRepIntCurveSurface.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define BREPINTCURVESURFACEDOCSTRING -"No docstring provided." +"Inttantiates IntCurveSurface with Surfaces from BRep +and Curves from Adaptor + +-Level: Public + +All the methods of the classes of this package are public. + +" %enddef %module (package="OCC.Core", docstring=BREPINTCURVESURFACEDOCSTRING) BRepIntCurveSurface @@ -34,31 +41,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepIntCurveSurface_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepIntCurveSurface_Inter; class BRepIntCurveSurface_Inter { public: diff --git a/src/SWIG_files/wrapper/BRepIntCurveSurface_headers.i b/src/SWIG_files/wrapper/BRepIntCurveSurface_headers.i index 943b41097..a8cc1dcec 100644 --- a/src/SWIG_files/wrapper/BRepIntCurveSurface_headers.i +++ b/src/SWIG_files/wrapper/BRepIntCurveSurface_headers.i @@ -198,6 +198,144 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepLProp.i b/src/SWIG_files/wrapper/BRepLProp.i index 4120dff56..f07c96d88 100644 --- a/src/SWIG_files/wrapper/BRepLProp.i +++ b/src/SWIG_files/wrapper/BRepLProp.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define BREPLPROPDOCSTRING -"No docstring provided." +"These global functions compute the degree of +continuity of a curve built by concatenation of two +edges at their junction point. +" %enddef %module (package="OCC.Core", docstring=BREPLPROPDOCSTRING) BRepLProp @@ -34,31 +37,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepLProp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(breplprop) BRepLProp; class BRepLProp { public: diff --git a/src/SWIG_files/wrapper/BRepLProp_headers.i b/src/SWIG_files/wrapper/BRepLProp_headers.i index c87b3aa10..663106c62 100644 --- a/src/SWIG_files/wrapper/BRepLProp_headers.i +++ b/src/SWIG_files/wrapper/BRepLProp_headers.i @@ -163,6 +163,147 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepLib.i b/src/SWIG_files/wrapper/BRepLib.i index 5b19a3668..612c41dd1 100644 --- a/src/SWIG_files/wrapper/BRepLib.i +++ b/src/SWIG_files/wrapper/BRepLib.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define BREPLIBDOCSTRING -"No docstring provided." +"The BRepLib package provides general utilities for +BRep. + +* FindSurface : Class to compute a surface through +a set of edges. + +* Compute missing 3d curve on an edge. +" %enddef %module (package="OCC.Core", docstring=BREPLIBDOCSTRING) BRepLib @@ -34,25 +41,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -99,6 +92,7 @@ enum BRepLib_FaceError { /* end public enums declaration */ + %rename(breplib) BRepLib; class BRepLib { public: diff --git a/src/SWIG_files/wrapper/BRepLib_headers.i b/src/SWIG_files/wrapper/BRepLib_headers.i index b8ab0a182..2ecb7cc95 100644 --- a/src/SWIG_files/wrapper/BRepLib_headers.i +++ b/src/SWIG_files/wrapper/BRepLib_headers.i @@ -336,6 +336,28 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepMAT2d.i b/src/SWIG_files/wrapper/BRepMAT2d.i index 40aa9569a..ff9a5f6d6 100644 --- a/src/SWIG_files/wrapper/BRepMAT2d.i +++ b/src/SWIG_files/wrapper/BRepMAT2d.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BREPMAT2DDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=BREPMAT2DDOCSTRING) BRepMAT2d @@ -34,31 +35,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepMAT2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape) +%wrap_handle(BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt) + %nodefaultctor BRepMAT2d_BisectingLocus; class BRepMAT2d_BisectingLocus { public: @@ -256,51 +246,7 @@ class BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape : public TCollection_MapNode }; -%extend BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape::Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape; -class Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape(); - Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape(const Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape &aHandle); - Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape(const BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape { - BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape* _get_reference() { - return (BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape*)$self->Access(); - } -}; - -%extend Handle_BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape) %extend BRepMAT2d_DataMapNodeOfDataMapOfBasicEltShape { %pythoncode { @@ -331,51 +277,7 @@ class BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt : public TCollecti }; -%extend BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt::Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt; -class Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt(); - Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt(const Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt &aHandle); - Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt(const BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt { - BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt* _get_reference() { - return (BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt*)$self->Access(); - } -}; - -%extend Handle_BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt) %extend BRepMAT2d_DataMapNodeOfDataMapOfShapeSequenceOfBasicElt { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepMesh.i b/src/SWIG_files/wrapper/BRepMesh.i index cd32057c5..90dfa7fd2 100644 --- a/src/SWIG_files/wrapper/BRepMesh.i +++ b/src/SWIG_files/wrapper/BRepMesh.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepMesh_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef BRepMesh::NCollection_DataMap BRepMesh::DMapOfTriangulationBool; typedef BRepMesh::NCollection_Handle BRepMesh::HBndBox2dTree; @@ -132,6 +118,13 @@ enum BRepMesh_DegreeOfFreedom { /* end public enums declaration */ +%wrap_handle(BRepMesh_DataStructureOfDelaun) +%wrap_handle(BRepMesh_DiscretRoot) +%wrap_handle(BRepMesh_FastDiscret) +%wrap_handle(BRepMesh_FastDiscretFace) +%wrap_handle(BRepMesh_IEdgeTool) +%wrap_handle(BRepMesh_IncrementalMesh) + %nodefaultctor BRepMesh_Circle; class BRepMesh_Circle { public: @@ -681,51 +674,7 @@ class BRepMesh_DataStructureOfDelaun : public Standard_Transient { }; -%extend BRepMesh_DataStructureOfDelaun { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMesh_DataStructureOfDelaun(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMesh_DataStructureOfDelaun::Handle_BRepMesh_DataStructureOfDelaun %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMesh_DataStructureOfDelaun; -class Handle_BRepMesh_DataStructureOfDelaun : public Handle_Standard_Transient { - - public: - // constructors - Handle_BRepMesh_DataStructureOfDelaun(); - Handle_BRepMesh_DataStructureOfDelaun(const Handle_BRepMesh_DataStructureOfDelaun &aHandle); - Handle_BRepMesh_DataStructureOfDelaun(const BRepMesh_DataStructureOfDelaun *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMesh_DataStructureOfDelaun DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMesh_DataStructureOfDelaun { - BRepMesh_DataStructureOfDelaun* _get_reference() { - return (BRepMesh_DataStructureOfDelaun*)$self->Access(); - } -}; - -%extend Handle_BRepMesh_DataStructureOfDelaun { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMesh_DataStructureOfDelaun) %extend BRepMesh_DataStructureOfDelaun { %pythoncode { @@ -989,51 +938,7 @@ class BRepMesh_DiscretRoot : public Standard_Transient { }; -%extend BRepMesh_DiscretRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMesh_DiscretRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMesh_DiscretRoot::Handle_BRepMesh_DiscretRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMesh_DiscretRoot; -class Handle_BRepMesh_DiscretRoot : public Handle_Standard_Transient { - - public: - // constructors - Handle_BRepMesh_DiscretRoot(); - Handle_BRepMesh_DiscretRoot(const Handle_BRepMesh_DiscretRoot &aHandle); - Handle_BRepMesh_DiscretRoot(const BRepMesh_DiscretRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMesh_DiscretRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMesh_DiscretRoot { - BRepMesh_DiscretRoot* _get_reference() { - return (BRepMesh_DiscretRoot*)$self->Access(); - } -}; - -%extend Handle_BRepMesh_DiscretRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMesh_DiscretRoot) %extend BRepMesh_DiscretRoot { %pythoncode { @@ -1142,51 +1047,7 @@ class BRepMesh_FastDiscret : public Standard_Transient { }; -%extend BRepMesh_FastDiscret { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMesh_FastDiscret(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMesh_FastDiscret::Handle_BRepMesh_FastDiscret %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMesh_FastDiscret; -class Handle_BRepMesh_FastDiscret : public Handle_Standard_Transient { - - public: - // constructors - Handle_BRepMesh_FastDiscret(); - Handle_BRepMesh_FastDiscret(const Handle_BRepMesh_FastDiscret &aHandle); - Handle_BRepMesh_FastDiscret(const BRepMesh_FastDiscret *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMesh_FastDiscret DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMesh_FastDiscret { - BRepMesh_FastDiscret* _get_reference() { - return (BRepMesh_FastDiscret*)$self->Access(); - } -}; - -%extend Handle_BRepMesh_FastDiscret { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMesh_FastDiscret) %extend BRepMesh_FastDiscret { %pythoncode { @@ -1219,51 +1080,7 @@ class BRepMesh_FastDiscretFace : public Standard_Transient { }; -%extend BRepMesh_FastDiscretFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMesh_FastDiscretFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMesh_FastDiscretFace::Handle_BRepMesh_FastDiscretFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMesh_FastDiscretFace; -class Handle_BRepMesh_FastDiscretFace : public Handle_Standard_Transient { - - public: - // constructors - Handle_BRepMesh_FastDiscretFace(); - Handle_BRepMesh_FastDiscretFace(const Handle_BRepMesh_FastDiscretFace &aHandle); - Handle_BRepMesh_FastDiscretFace(const BRepMesh_FastDiscretFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMesh_FastDiscretFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMesh_FastDiscretFace { - BRepMesh_FastDiscretFace* _get_reference() { - return (BRepMesh_FastDiscretFace*)$self->Access(); - } -}; - -%extend Handle_BRepMesh_FastDiscretFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMesh_FastDiscretFace) %extend BRepMesh_FastDiscretFace { %pythoncode { @@ -1423,51 +1240,7 @@ class BRepMesh_IEdgeTool : public Standard_Transient { }; -%extend BRepMesh_IEdgeTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMesh_IEdgeTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMesh_IEdgeTool::Handle_BRepMesh_IEdgeTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMesh_IEdgeTool; -class Handle_BRepMesh_IEdgeTool : public Handle_Standard_Transient { - - public: - // constructors - Handle_BRepMesh_IEdgeTool(); - Handle_BRepMesh_IEdgeTool(const Handle_BRepMesh_IEdgeTool &aHandle); - Handle_BRepMesh_IEdgeTool(const BRepMesh_IEdgeTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMesh_IEdgeTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMesh_IEdgeTool { - BRepMesh_IEdgeTool* _get_reference() { - return (BRepMesh_IEdgeTool*)$self->Access(); - } -}; - -%extend Handle_BRepMesh_IEdgeTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMesh_IEdgeTool) %extend BRepMesh_IEdgeTool { %pythoncode { @@ -2715,51 +2488,7 @@ class BRepMesh_IncrementalMesh : public BRepMesh_DiscretRoot { }; -%extend BRepMesh_IncrementalMesh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepMesh_IncrementalMesh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepMesh_IncrementalMesh::Handle_BRepMesh_IncrementalMesh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepMesh_IncrementalMesh; -class Handle_BRepMesh_IncrementalMesh : public Handle_BRepMesh_DiscretRoot { - - public: - // constructors - Handle_BRepMesh_IncrementalMesh(); - Handle_BRepMesh_IncrementalMesh(const Handle_BRepMesh_IncrementalMesh &aHandle); - Handle_BRepMesh_IncrementalMesh(const BRepMesh_IncrementalMesh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepMesh_IncrementalMesh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepMesh_IncrementalMesh { - BRepMesh_IncrementalMesh* _get_reference() { - return (BRepMesh_IncrementalMesh*)$self->Access(); - } -}; - -%extend Handle_BRepMesh_IncrementalMesh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepMesh_IncrementalMesh) %extend BRepMesh_IncrementalMesh { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepOffset.i b/src/SWIG_files/wrapper/BRepOffset.i index 82dd7cfa5..c0ae56532 100644 --- a/src/SWIG_files/wrapper/BRepOffset.i +++ b/src/SWIG_files/wrapper/BRepOffset.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BREPOFFSETDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=BREPOFFSETDOCSTRING) BRepOffset @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepOffset_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -93,6 +80,11 @@ enum BRepOffset_Status { /* end public enums declaration */ +%wrap_handle(BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval) +%wrap_handle(BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape) +%wrap_handle(BRepOffset_DataMapNodeOfDataMapOfShapeOffset) +%wrap_handle(BRepOffset_ListNodeOfListOfInterval) + %rename(brepoffset) BRepOffset; class BRepOffset { public: @@ -390,51 +382,7 @@ class BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval : public TCollection_ }; -%extend BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval::Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval; -class Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(); - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(const Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval &aHandle); - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(const BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval { - BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval* _get_reference() { - return (BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval*)$self->Access(); - } -}; - -%extend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval) %extend BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval { %pythoncode { @@ -465,51 +413,7 @@ class BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape : public TCollection_MapN }; -%extend BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape::Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape; -class Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(); - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(const Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape &aHandle); - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(const BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape { - BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape* _get_reference() { - return (BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape*)$self->Access(); - } -}; - -%extend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape) %extend BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape { %pythoncode { @@ -540,51 +444,7 @@ class BRepOffset_DataMapNodeOfDataMapOfShapeOffset : public TCollection_MapNode }; -%extend BRepOffset_DataMapNodeOfDataMapOfShapeOffset { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset::Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset; -class Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset(); - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset(const Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset &aHandle); - Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset(const BRepOffset_DataMapNodeOfDataMapOfShapeOffset *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset { - BRepOffset_DataMapNodeOfDataMapOfShapeOffset* _get_reference() { - return (BRepOffset_DataMapNodeOfDataMapOfShapeOffset*)$self->Access(); - } -}; - -%extend Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepOffset_DataMapNodeOfDataMapOfShapeOffset) %extend BRepOffset_DataMapNodeOfDataMapOfShapeOffset { %pythoncode { @@ -1127,51 +987,7 @@ class BRepOffset_ListNodeOfListOfInterval : public TCollection_MapNode { }; -%extend BRepOffset_ListNodeOfListOfInterval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepOffset_ListNodeOfListOfInterval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepOffset_ListNodeOfListOfInterval::Handle_BRepOffset_ListNodeOfListOfInterval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepOffset_ListNodeOfListOfInterval; -class Handle_BRepOffset_ListNodeOfListOfInterval : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepOffset_ListNodeOfListOfInterval(); - Handle_BRepOffset_ListNodeOfListOfInterval(const Handle_BRepOffset_ListNodeOfListOfInterval &aHandle); - Handle_BRepOffset_ListNodeOfListOfInterval(const BRepOffset_ListNodeOfListOfInterval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepOffset_ListNodeOfListOfInterval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepOffset_ListNodeOfListOfInterval { - BRepOffset_ListNodeOfListOfInterval* _get_reference() { - return (BRepOffset_ListNodeOfListOfInterval*)$self->Access(); - } -}; - -%extend Handle_BRepOffset_ListNodeOfListOfInterval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepOffset_ListNodeOfListOfInterval) %extend BRepOffset_ListNodeOfListOfInterval { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepOffsetAPI.i b/src/SWIG_files/wrapper/BRepOffsetAPI.i index d0f37501e..c6c453718 100644 --- a/src/SWIG_files/wrapper/BRepOffsetAPI.i +++ b/src/SWIG_files/wrapper/BRepOffsetAPI.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BREPOFFSETAPIDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BREPOFFSETAPIDOCSTRING) BRepOffsetAPI @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepOffsetAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef BRepBuilderAPI_Sewing BRepOffsetAPI_Sewing; typedef Handle_BRepBuilderAPI_Sewing Handle_BRepOffsetAPI_Sewing; @@ -61,6 +47,9 @@ typedef Handle_BRepBuilderAPI_Sewing Handle_BRepOffsetAPI_Sewing; /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal) +%wrap_handle(BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape) + %nodefaultctor BRepOffsetAPI_DraftAngle; class BRepOffsetAPI_DraftAngle : public BRepBuilderAPI_ModifyShape { public: @@ -1316,51 +1305,7 @@ class BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal : public TCollection_ }; -%extend BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal::Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal; -class Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal(); - Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal(const Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal &aHandle); - Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal(const BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal { - BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal* _get_reference() { - return (BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal*)$self->Access(); - } -}; - -%extend Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal) %extend BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfReal { %pythoncode { @@ -1387,51 +1332,7 @@ class BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape : public TCollection }; -%extend BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape::Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape; -class Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape(); - Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape(const Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape &aHandle); - Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape(const BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape { - BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape* _get_reference() { - return (BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape*)$self->Access(); - } -}; - -%extend Handle_BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape) %extend BRepOffsetAPI_SequenceNodeOfSequenceOfSequenceOfShape { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepPrim.i b/src/SWIG_files/wrapper/BRepPrim.i index 5b525d665..3fea1d380 100644 --- a/src/SWIG_files/wrapper/BRepPrim.i +++ b/src/SWIG_files/wrapper/BRepPrim.i @@ -18,7 +18,27 @@ along with pythonOCC. If not, see . */ %define BREPPRIMDOCSTRING -"No docstring provided." +"this package implements the primitives of the +Primitives package with the BRep Topology + +Contains : +a Builder implementing the Template from Primitives + +The instantiations of the algorithms : +OneAxis +Wedge + +The rotational primitives inherited from OneAxis + +Revolution +Cylinder +Cone +Sphere +Torus + +The class FaceBuilder is a tool to build a face +from a Geom surface. +" %enddef %module (package="OCC.Core", docstring=BREPPRIMDOCSTRING) BRepPrim @@ -34,25 +54,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepPrim_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -68,6 +74,7 @@ enum BRepPrim_Direction { /* end public enums declaration */ + %nodefaultctor BRepPrim_Builder; class BRepPrim_Builder { public: diff --git a/src/SWIG_files/wrapper/BRepPrimAPI.i b/src/SWIG_files/wrapper/BRepPrimAPI.i index 2fba2eeeb..abb1d7b5c 100644 --- a/src/SWIG_files/wrapper/BRepPrimAPI.i +++ b/src/SWIG_files/wrapper/BRepPrimAPI.i @@ -18,7 +18,69 @@ along with pythonOCC. If not, see . */ %define BREPPRIMAPIDOCSTRING -"No docstring provided." +"The BRepBuilderAPI package provides an Application +Programming Interface for the BRep topology data +structure. + +The API is a set of classes aiming to provide : + +* High level and simple calls for the most common +operations. + +* Keeping an access on the low-level +implementation of high-level calls. + +* Examples of programming of high-level operations +from low-level operations. + +* A complete coverage of modelling : + +- Creating vertices ,edges, faces, solids. + +- Sweeping operations. + +- Boolean operations. + +- Global properties computation. + + +The API provides classes to build objects: + +* The constructors of the classes provides the +different constructions methods. + +* The class keeps as fields the different tools +used to build the object. + +* The class provides a casting method to get +automatically the result with a function-like +call. + +For example to make a vertex from a point

+one can writes : + +V = BRepBuilderAPI_MakeVertex(P); + +or + +BRepBuilderAPI_MakeVertex MV(P); +V = MV.Vertex(); + + +For tolerances a default precision is used which +can be changed by the packahe method +BRepBuilderAPI::Precision. + +For error handling the BRepBuilderAPI commands raise only +the NotDone error. When Done is false on a command +the error description can be asked to the command. + +In theory the comands can be called with any +arguments, argument checking is performed by the +command. + + +" %enddef %module (package="OCC.Core", docstring=BREPPRIMAPIDOCSTRING) BRepPrimAPI @@ -34,31 +96,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepPrimAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepPrimAPI_MakeBox; class BRepPrimAPI_MakeBox : public BRepBuilderAPI_MakeShape { public: diff --git a/src/SWIG_files/wrapper/BRepPrimAPI_headers.i b/src/SWIG_files/wrapper/BRepPrimAPI_headers.i index 958d10b79..991491232 100644 --- a/src/SWIG_files/wrapper/BRepPrimAPI_headers.i +++ b/src/SWIG_files/wrapper/BRepPrimAPI_headers.i @@ -337,6 +337,235 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepPrim_headers.i b/src/SWIG_files/wrapper/BRepPrim_headers.i index f20fb0136..b1a3ccb61 100644 --- a/src/SWIG_files/wrapper/BRepPrim_headers.i +++ b/src/SWIG_files/wrapper/BRepPrim_headers.i @@ -270,6 +270,40 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepProj.i b/src/SWIG_files/wrapper/BRepProj.i index 47ae793c5..577cc9de6 100644 --- a/src/SWIG_files/wrapper/BRepProj.i +++ b/src/SWIG_files/wrapper/BRepProj.i @@ -18,7 +18,15 @@ along with pythonOCC. If not, see . */ %define BREPPROJDOCSTRING -"No docstring provided." +"The BRepProj package provides Projection +Algorithms like Cylindrical and Conical +Projections. Those algorithms have been put in an +independant package instead of BRepAlgo (like +NormalProjection) because of cyclic reference with +BRepFill. So this package is not available for +the moment to BRepFill. + +" %enddef %module (package="OCC.Core", docstring=BREPPROJDOCSTRING) BRepProj @@ -34,31 +42,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepProj_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepProj_Projection; class BRepProj_Projection { public: diff --git a/src/SWIG_files/wrapper/BRepProj_headers.i b/src/SWIG_files/wrapper/BRepProj_headers.i index 9dfbfceea..fd87ab54c 100644 --- a/src/SWIG_files/wrapper/BRepProj_headers.i +++ b/src/SWIG_files/wrapper/BRepProj_headers.i @@ -168,6 +168,17 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/BRepSweep.i b/src/SWIG_files/wrapper/BRepSweep.i index 7d9df729b..9ad369628 100644 --- a/src/SWIG_files/wrapper/BRepSweep.i +++ b/src/SWIG_files/wrapper/BRepSweep.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define BREPSWEEPDOCSTRING -"No docstring provided." +"This package implements the package Sweep for the BRep +structure. +" %enddef %module (package="OCC.Core", docstring=BREPSWEEPDOCSTRING) BRepSweep @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepSweep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor BRepSweep_Builder; class BRepSweep_Builder { public: diff --git a/src/SWIG_files/wrapper/BRepTools.i b/src/SWIG_files/wrapper/BRepTools.i index 06aba5354..53318e0ac 100644 --- a/src/SWIG_files/wrapper/BRepTools.i +++ b/src/SWIG_files/wrapper/BRepTools.i @@ -18,7 +18,43 @@ along with pythonOCC. If not, see . */ %define BREPTOOLSDOCSTRING -"No docstring provided." +"-Level : Public. +All methods of all classes will be public. + +The BRepTools package provides utilities for BRep +data structures. + +* WireExplorer : A tool to explore the topology of +a wire in the order of the edges. + +* ShapeSet : Tools used for dumping, writing and +reading. + +* UVBounds : Methods to compute the limits of the +boundary of a face, a wire or an edge in the +parametric space of a face. + +* Update : Methods to call when a topology has +been created to compute all missing data. + +* UpdateFaceUVPoints : Method to update the UV +points stored with the edges on a face. This +method ensure that connected edges have the same +UV point on their common extremity. + +* Compare : Method to compare two vertices. + +* Compare : Method to compare two edges. + +* OuterWire : A method to find the outer wire of a +face. + +* Map3DEdges : A method to map all the 3D Edges of +a Shape. + +* Dump : A method to dump a BRep object. + +" %enddef %module (package="OCC.Core", docstring=BREPTOOLSDOCSTRING) BRepTools @@ -34,31 +70,24 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepTools_DataMapNodeOfMapOfVertexPnt2d) +%wrap_handle(BRepTools_Modification) +%wrap_handle(BRepTools_ReShape) +%wrap_handle(BRepTools_GTrsfModification) +%wrap_handle(BRepTools_NurbsConvertModification) +%wrap_handle(BRepTools_TrsfModification) + %rename(breptools) BRepTools; class BRepTools { public: @@ -431,51 +460,7 @@ class BRepTools_DataMapNodeOfMapOfVertexPnt2d : public TCollection_MapNode { }; -%extend BRepTools_DataMapNodeOfMapOfVertexPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d::Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d; -class Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d(); - Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d(const Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d &aHandle); - Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d(const BRepTools_DataMapNodeOfMapOfVertexPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d { - BRepTools_DataMapNodeOfMapOfVertexPnt2d* _get_reference() { - return (BRepTools_DataMapNodeOfMapOfVertexPnt2d*)$self->Access(); - } -}; - -%extend Handle_BRepTools_DataMapNodeOfMapOfVertexPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTools_DataMapNodeOfMapOfVertexPnt2d) %extend BRepTools_DataMapNodeOfMapOfVertexPnt2d { %pythoncode { @@ -675,51 +660,7 @@ class BRepTools_Modification : public MMgt_TShared { }; -%extend BRepTools_Modification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTools_Modification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTools_Modification::Handle_BRepTools_Modification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTools_Modification; -class Handle_BRepTools_Modification : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepTools_Modification(); - Handle_BRepTools_Modification(const Handle_BRepTools_Modification &aHandle); - Handle_BRepTools_Modification(const BRepTools_Modification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTools_Modification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTools_Modification { - BRepTools_Modification* _get_reference() { - return (BRepTools_Modification*)$self->Access(); - } -}; - -%extend Handle_BRepTools_Modification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTools_Modification) %extend BRepTools_Modification { %pythoncode { @@ -960,51 +901,7 @@ class BRepTools_ReShape : public MMgt_TShared { }; -%extend BRepTools_ReShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTools_ReShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTools_ReShape::Handle_BRepTools_ReShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTools_ReShape; -class Handle_BRepTools_ReShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BRepTools_ReShape(); - Handle_BRepTools_ReShape(const Handle_BRepTools_ReShape &aHandle); - Handle_BRepTools_ReShape(const BRepTools_ReShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTools_ReShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTools_ReShape { - BRepTools_ReShape* _get_reference() { - return (BRepTools_ReShape*)$self->Access(); - } -}; - -%extend Handle_BRepTools_ReShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTools_ReShape) %extend BRepTools_ReShape { %pythoncode { @@ -1458,51 +1355,7 @@ class BRepTools_GTrsfModification : public BRepTools_Modification { }; -%extend BRepTools_GTrsfModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTools_GTrsfModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTools_GTrsfModification::Handle_BRepTools_GTrsfModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTools_GTrsfModification; -class Handle_BRepTools_GTrsfModification : public Handle_BRepTools_Modification { - - public: - // constructors - Handle_BRepTools_GTrsfModification(); - Handle_BRepTools_GTrsfModification(const Handle_BRepTools_GTrsfModification &aHandle); - Handle_BRepTools_GTrsfModification(const BRepTools_GTrsfModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTools_GTrsfModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTools_GTrsfModification { - BRepTools_GTrsfModification* _get_reference() { - return (BRepTools_GTrsfModification*)$self->Access(); - } -}; - -%extend Handle_BRepTools_GTrsfModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTools_GTrsfModification) %extend BRepTools_GTrsfModification { %pythoncode { @@ -1613,51 +1466,7 @@ class BRepTools_NurbsConvertModification : public BRepTools_Modification { }; -%extend BRepTools_NurbsConvertModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTools_NurbsConvertModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTools_NurbsConvertModification::Handle_BRepTools_NurbsConvertModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTools_NurbsConvertModification; -class Handle_BRepTools_NurbsConvertModification : public Handle_BRepTools_Modification { - - public: - // constructors - Handle_BRepTools_NurbsConvertModification(); - Handle_BRepTools_NurbsConvertModification(const Handle_BRepTools_NurbsConvertModification &aHandle); - Handle_BRepTools_NurbsConvertModification(const BRepTools_NurbsConvertModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTools_NurbsConvertModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTools_NurbsConvertModification { - BRepTools_NurbsConvertModification* _get_reference() { - return (BRepTools_NurbsConvertModification*)$self->Access(); - } -}; - -%extend Handle_BRepTools_NurbsConvertModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTools_NurbsConvertModification) %extend BRepTools_NurbsConvertModification { %pythoncode { @@ -1776,51 +1585,7 @@ class BRepTools_TrsfModification : public BRepTools_Modification { }; -%extend BRepTools_TrsfModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTools_TrsfModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTools_TrsfModification::Handle_BRepTools_TrsfModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTools_TrsfModification; -class Handle_BRepTools_TrsfModification : public Handle_BRepTools_Modification { - - public: - // constructors - Handle_BRepTools_TrsfModification(); - Handle_BRepTools_TrsfModification(const Handle_BRepTools_TrsfModification &aHandle); - Handle_BRepTools_TrsfModification(const BRepTools_TrsfModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTools_TrsfModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTools_TrsfModification { - BRepTools_TrsfModification* _get_reference() { - return (BRepTools_TrsfModification*)$self->Access(); - } -}; - -%extend Handle_BRepTools_TrsfModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTools_TrsfModification) %extend BRepTools_TrsfModification { %pythoncode { diff --git a/src/SWIG_files/wrapper/BRepTopAdaptor.i b/src/SWIG_files/wrapper/BRepTopAdaptor.i index 1e40abd57..ad9748c38 100644 --- a/src/SWIG_files/wrapper/BRepTopAdaptor.i +++ b/src/SWIG_files/wrapper/BRepTopAdaptor.i @@ -18,7 +18,24 @@ along with pythonOCC. If not, see . */ %define BREPTOPADAPTORDOCSTRING -"No docstring provided." +" + + +*** Class2d : Low level algorithm for 2d classification + +*** FClass2d : 2d classification on a Face from TopoDS +A face is first loaded and then every +classification is computed as a rejection. +(call BRepClass algorithms if necessary, +ie, when the rejection is not efficient) + +*** TopolTool : Several tools used by the intersection +algorithm and topology. + + + +-Level: Internal +" %enddef %module (package="OCC.Core", docstring=BREPTOPADAPTORDOCSTRING) BRepTopAdaptor @@ -34,25 +51,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BRepTopAdaptor_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TColStd_SequenceOfAddress BRepTopAdaptor_SeqOfPtr; /* end typedefs declaration */ @@ -60,6 +63,10 @@ typedef TColStd_SequenceOfAddress BRepTopAdaptor_SeqOfPtr; /* public enums */ /* end public enums declaration */ +%wrap_handle(BRepTopAdaptor_DataMapNodeOfMapOfShapeTool) +%wrap_handle(BRepTopAdaptor_HVertex) +%wrap_handle(BRepTopAdaptor_TopolTool) + %nodefaultctor BRepTopAdaptor_DataMapIteratorOfMapOfShapeTool; class BRepTopAdaptor_DataMapIteratorOfMapOfShapeTool : public TCollection_BasicMapIterator { public: @@ -119,51 +126,7 @@ class BRepTopAdaptor_DataMapNodeOfMapOfShapeTool : public TCollection_MapNode { }; -%extend BRepTopAdaptor_DataMapNodeOfMapOfShapeTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool::Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool; -class Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool(); - Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool(const Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool &aHandle); - Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool(const BRepTopAdaptor_DataMapNodeOfMapOfShapeTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool { - BRepTopAdaptor_DataMapNodeOfMapOfShapeTool* _get_reference() { - return (BRepTopAdaptor_DataMapNodeOfMapOfShapeTool*)$self->Access(); - } -}; - -%extend Handle_BRepTopAdaptor_DataMapNodeOfMapOfShapeTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTopAdaptor_DataMapNodeOfMapOfShapeTool) %extend BRepTopAdaptor_DataMapNodeOfMapOfShapeTool { %pythoncode { @@ -279,51 +242,7 @@ class BRepTopAdaptor_HVertex : public Adaptor3d_HVertex { }; -%extend BRepTopAdaptor_HVertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTopAdaptor_HVertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTopAdaptor_HVertex::Handle_BRepTopAdaptor_HVertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTopAdaptor_HVertex; -class Handle_BRepTopAdaptor_HVertex : public Handle_Adaptor3d_HVertex { - - public: - // constructors - Handle_BRepTopAdaptor_HVertex(); - Handle_BRepTopAdaptor_HVertex(const Handle_BRepTopAdaptor_HVertex &aHandle); - Handle_BRepTopAdaptor_HVertex(const BRepTopAdaptor_HVertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTopAdaptor_HVertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTopAdaptor_HVertex { - BRepTopAdaptor_HVertex* _get_reference() { - return (BRepTopAdaptor_HVertex*)$self->Access(); - } -}; - -%extend Handle_BRepTopAdaptor_HVertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTopAdaptor_HVertex) %extend BRepTopAdaptor_HVertex { %pythoncode { @@ -654,51 +573,7 @@ class BRepTopAdaptor_TopolTool : public Adaptor3d_TopolTool { }; -%extend BRepTopAdaptor_TopolTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BRepTopAdaptor_TopolTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BRepTopAdaptor_TopolTool::Handle_BRepTopAdaptor_TopolTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BRepTopAdaptor_TopolTool; -class Handle_BRepTopAdaptor_TopolTool : public Handle_Adaptor3d_TopolTool { - - public: - // constructors - Handle_BRepTopAdaptor_TopolTool(); - Handle_BRepTopAdaptor_TopolTool(const Handle_BRepTopAdaptor_TopolTool &aHandle); - Handle_BRepTopAdaptor_TopolTool(const BRepTopAdaptor_TopolTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BRepTopAdaptor_TopolTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BRepTopAdaptor_TopolTool { - BRepTopAdaptor_TopolTool* _get_reference() { - return (BRepTopAdaptor_TopolTool*)$self->Access(); - } -}; - -%extend Handle_BRepTopAdaptor_TopolTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BRepTopAdaptor_TopolTool) %extend BRepTopAdaptor_TopolTool { %pythoncode { diff --git a/src/SWIG_files/wrapper/BSplCLib.i b/src/SWIG_files/wrapper/BSplCLib.i index f04596280..804d0cf9b 100644 --- a/src/SWIG_files/wrapper/BSplCLib.i +++ b/src/SWIG_files/wrapper/BSplCLib.i @@ -18,7 +18,81 @@ along with pythonOCC. If not, see . */ %define BSPLCLIBDOCSTRING -"No docstring provided." +"BSplCLib B-spline curve Library. + +The BSplCLib package is a basic library for BSplines. It +provides three categories of functions. + +* Management methods to process knots and multiplicities. + +* Multi-Dimensions spline methods. BSpline methods where +poles have an arbitrary number of dimensions. They divides +in two groups : + +- Global methods modifying the whole set of poles. The +poles are described by an array of Reals and a +Dimension. Example : Inserting knots. + +- Local methods computing points and derivatives. The +poles are described by a pointer on a local array of +Reals and a Dimension. The local array is modified. + +* 2D and 3D spline curves methods. + +Methods for 2d and 3d BSplines curves rational or not +rational. + +Those methods have the following structure : + +- They extract the pole informations in a working array. + +- They process the working array with the +multi-dimension methods. (for example a 3d rational +curve is processed as a 4 dimension curve). + +- They get back the result in the original dimension. + +Note that the bspline surface methods found in the +package BSplSLib uses the same structure and rely on +BSplCLib. + +In the following list of methods the 2d and 3d curve +methods will be described with the corresponding +multi-dimension method. + +The 3d or 2d B-spline curve is defined with : + +. its control points : TColgp_Array1OfPnt(2d) Poles +. its weights : TColStd_Array1OfReal Weights +. its knots : TColStd_Array1OfReal Knots +. its multiplicities : TColStd_Array1OfInteger Mults +. its degree : Standard_Integer Degree +. its periodicity : Standard_Boolean Periodic + +Warnings : +The bounds of Poles and Weights should be the same. +The bounds of Knots and Mults should be the same. + +Weights can be a null reference (BSplCLib::NoWeights()) +the curve is non rational. + +Mults can be a null reference (BSplCLib::NoMults()) +the knots are 'flat' knots. + +KeyWords : +B-spline curve, Functions, Library + +References : +. A survey of curves and surfaces methods in CADG Wolfgang +BOHM CAGD 1 (1984) +. On de Boor-like algorithms and blossoming Wolfgang BOEHM +cagd 5 (1988) +. Blossoming and knot insertion algorithms for B-spline curves +Ronald N. GOLDMAN +. Modelisation des surfaces en CAO, Henri GIAUME Peugeot SA +. Curves and Surfaces for Computer Aided Geometric Design, +a practical guide Gerald Farin +" %enddef %module (package="OCC.Core", docstring=BSPLCLIBDOCSTRING) BSplCLib @@ -34,25 +108,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BSplCLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -70,6 +130,7 @@ enum BSplCLib_KnotDistribution { /* end public enums declaration */ + %rename(bsplclib) BSplCLib; class BSplCLib { public: diff --git a/src/SWIG_files/wrapper/BSplSLib.i b/src/SWIG_files/wrapper/BSplSLib.i index 1f656170e..dd2307789 100644 --- a/src/SWIG_files/wrapper/BSplSLib.i +++ b/src/SWIG_files/wrapper/BSplSLib.i @@ -18,7 +18,57 @@ along with pythonOCC. If not, see . */ %define BSPLSLIBDOCSTRING -"No docstring provided." +"- Purpose : BSplSLib B-spline surface Library +This package provides an implementation of geometric +functions for rational and non rational, periodic and non +periodic B-spline surface computation. + +this package uses the multi-dimensions splines methods +provided in the package BSplCLib. + +In this package the B-spline surface is defined with : +. its control points : Array2OfPnt Poles +. its weights : Array2OfReal Weights +. its knots and their multiplicity in the two parametric +direction U and V : Array1OfReal UKnots, VKnots and +Array1OfInteger UMults, VMults. +. the degree of the normalized Spline functions : +UDegree, VDegree + +. the Booleans URational, VRational to know if the weights +are constant in the U or V direction. + +. the Booleans UPeriodic, VRational to know if the the +surface is periodic in the U or V direction. + +Warnings : The bounds of UKnots and UMults should be the +same, the bounds of VKnots and VMults should be the same, +the bounds of Poles and Weights shoud be the same. + +The Control points representation is : +Poles(Uorigin,Vorigin) ...................Poles(Uorigin,Vend) +. . +. . +Poles(Uend, Vorigin) .....................Poles(Uend, Vend) + +For the double array the row indice corresponds to the +parametric U direction and the columns indice corresponds +to the parametric V direction. + +KeyWords : +B-spline surface, Functions, Library + +References : +. A survey of curve and surface methods in CADG Wolfgang BOHM +CAGD 1 (1984) +. On de Boor-like algorithms and blossoming Wolfgang BOEHM +cagd 5 (1988) +. Blossoming and knot insertion algorithms for B-spline curves +Ronald N. GOLDMAN +. Modelisation des surfaces en CAO, Henri GIAUME Peugeot SA +. Curves and Surfaces for Computer Aided Geometric Design, +a practical guide Gerald Farin +" %enddef %module (package="OCC.Core", docstring=BSPLSLIBDOCSTRING) BSplSLib @@ -34,31 +84,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BSplSLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(bsplslib) BSplSLib; class BSplSLib { public: diff --git a/src/SWIG_files/wrapper/BiTgte.i b/src/SWIG_files/wrapper/BiTgte.i index cb2fd1f28..f777fbbec 100644 --- a/src/SWIG_files/wrapper/BiTgte.i +++ b/src/SWIG_files/wrapper/BiTgte.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BITGTEDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=BITGTEDOCSTRING) BiTgte @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BiTgte_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -68,6 +55,10 @@ enum BiTgte_ContactType { /* end public enums declaration */ +%wrap_handle(BiTgte_DataMapNodeOfDataMapOfShapeBox) +%wrap_handle(BiTgte_HCurveOnEdge) +%wrap_handle(BiTgte_HCurveOnVertex) + %nodefaultctor BiTgte_Blend; class BiTgte_Blend { public: @@ -784,51 +775,7 @@ class BiTgte_DataMapNodeOfDataMapOfShapeBox : public TCollection_MapNode { }; -%extend BiTgte_DataMapNodeOfDataMapOfShapeBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox::Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox; -class Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox(); - Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox(const Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox &aHandle); - Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox(const BiTgte_DataMapNodeOfDataMapOfShapeBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox { - BiTgte_DataMapNodeOfDataMapOfShapeBox* _get_reference() { - return (BiTgte_DataMapNodeOfDataMapOfShapeBox*)$self->Access(); - } -}; - -%extend Handle_BiTgte_DataMapNodeOfDataMapOfShapeBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BiTgte_DataMapNodeOfDataMapOfShapeBox) %extend BiTgte_DataMapNodeOfDataMapOfShapeBox { %pythoncode { @@ -952,51 +899,7 @@ class BiTgte_HCurveOnEdge : public Adaptor3d_HCurve { }; -%extend BiTgte_HCurveOnEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BiTgte_HCurveOnEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BiTgte_HCurveOnEdge::Handle_BiTgte_HCurveOnEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BiTgte_HCurveOnEdge; -class Handle_BiTgte_HCurveOnEdge : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_BiTgte_HCurveOnEdge(); - Handle_BiTgte_HCurveOnEdge(const Handle_BiTgte_HCurveOnEdge &aHandle); - Handle_BiTgte_HCurveOnEdge(const BiTgte_HCurveOnEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BiTgte_HCurveOnEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BiTgte_HCurveOnEdge { - BiTgte_HCurveOnEdge* _get_reference() { - return (BiTgte_HCurveOnEdge*)$self->Access(); - } -}; - -%extend Handle_BiTgte_HCurveOnEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BiTgte_HCurveOnEdge) %extend BiTgte_HCurveOnEdge { %pythoncode { @@ -1037,51 +940,7 @@ class BiTgte_HCurveOnVertex : public Adaptor3d_HCurve { }; -%extend BiTgte_HCurveOnVertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BiTgte_HCurveOnVertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BiTgte_HCurveOnVertex::Handle_BiTgte_HCurveOnVertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BiTgte_HCurveOnVertex; -class Handle_BiTgte_HCurveOnVertex : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_BiTgte_HCurveOnVertex(); - Handle_BiTgte_HCurveOnVertex(const Handle_BiTgte_HCurveOnVertex &aHandle); - Handle_BiTgte_HCurveOnVertex(const BiTgte_HCurveOnVertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BiTgte_HCurveOnVertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BiTgte_HCurveOnVertex { - BiTgte_HCurveOnVertex* _get_reference() { - return (BiTgte_HCurveOnVertex*)$self->Access(); - } -}; - -%extend Handle_BiTgte_HCurveOnVertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BiTgte_HCurveOnVertex) %extend BiTgte_HCurveOnVertex { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinDrivers.i b/src/SWIG_files/wrapper/BinDrivers.i index c3c6167a9..6e45dca13 100644 --- a/src/SWIG_files/wrapper/BinDrivers.i +++ b/src/SWIG_files/wrapper/BinDrivers.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BINDRIVERSDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BINDRIVERSDOCSTRING) BinDrivers @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -64,6 +50,9 @@ enum BinDrivers_Marker { /* end public enums declaration */ +%wrap_handle(BinDrivers_DocumentRetrievalDriver) +%wrap_handle(BinDrivers_DocumentStorageDriver) + %rename(bindrivers) BinDrivers; class BinDrivers { public: @@ -137,51 +126,7 @@ class BinDrivers_DocumentRetrievalDriver : public BinLDrivers_DocumentRetrievalD }; -%extend BinDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinDrivers_DocumentRetrievalDriver::Handle_BinDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinDrivers_DocumentRetrievalDriver; -class Handle_BinDrivers_DocumentRetrievalDriver : public Handle_BinLDrivers_DocumentRetrievalDriver { - - public: - // constructors - Handle_BinDrivers_DocumentRetrievalDriver(); - Handle_BinDrivers_DocumentRetrievalDriver(const Handle_BinDrivers_DocumentRetrievalDriver &aHandle); - Handle_BinDrivers_DocumentRetrievalDriver(const BinDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinDrivers_DocumentRetrievalDriver { - BinDrivers_DocumentRetrievalDriver* _get_reference() { - return (BinDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_BinDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinDrivers_DocumentRetrievalDriver) %extend BinDrivers_DocumentRetrievalDriver { %pythoncode { @@ -216,51 +161,7 @@ class BinDrivers_DocumentStorageDriver : public BinLDrivers_DocumentStorageDrive }; -%extend BinDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinDrivers_DocumentStorageDriver::Handle_BinDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinDrivers_DocumentStorageDriver; -class Handle_BinDrivers_DocumentStorageDriver : public Handle_BinLDrivers_DocumentStorageDriver { - - public: - // constructors - Handle_BinDrivers_DocumentStorageDriver(); - Handle_BinDrivers_DocumentStorageDriver(const Handle_BinDrivers_DocumentStorageDriver &aHandle); - Handle_BinDrivers_DocumentStorageDriver(const BinDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinDrivers_DocumentStorageDriver { - BinDrivers_DocumentStorageDriver* _get_reference() { - return (BinDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_BinDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinDrivers_DocumentStorageDriver) %extend BinDrivers_DocumentStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinLDrivers.i b/src/SWIG_files/wrapper/BinLDrivers.i index 549b1a385..448039ae8 100644 --- a/src/SWIG_files/wrapper/BinLDrivers.i +++ b/src/SWIG_files/wrapper/BinLDrivers.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BINLDRIVERSDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BINLDRIVERSDOCSTRING) BinLDrivers @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinLDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Vector BinLDrivers_VectorOfDocumentSection; /* end typedefs declaration */ @@ -65,6 +51,9 @@ enum BinLDrivers_Marker { /* end public enums declaration */ +%wrap_handle(BinLDrivers_DocumentRetrievalDriver) +%wrap_handle(BinLDrivers_DocumentStorageDriver) + %rename(binldrivers) BinLDrivers; class BinLDrivers { public: @@ -148,51 +137,7 @@ class BinLDrivers_DocumentRetrievalDriver : public PCDM_RetrievalDriver { }; -%extend BinLDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinLDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinLDrivers_DocumentRetrievalDriver::Handle_BinLDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinLDrivers_DocumentRetrievalDriver; -class Handle_BinLDrivers_DocumentRetrievalDriver : public Handle_PCDM_RetrievalDriver { - - public: - // constructors - Handle_BinLDrivers_DocumentRetrievalDriver(); - Handle_BinLDrivers_DocumentRetrievalDriver(const Handle_BinLDrivers_DocumentRetrievalDriver &aHandle); - Handle_BinLDrivers_DocumentRetrievalDriver(const BinLDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinLDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinLDrivers_DocumentRetrievalDriver { - BinLDrivers_DocumentRetrievalDriver* _get_reference() { - return (BinLDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_BinLDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinLDrivers_DocumentRetrievalDriver) %extend BinLDrivers_DocumentRetrievalDriver { %pythoncode { @@ -338,51 +283,7 @@ class BinLDrivers_DocumentStorageDriver : public PCDM_StorageDriver { }; -%extend BinLDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinLDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinLDrivers_DocumentStorageDriver::Handle_BinLDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinLDrivers_DocumentStorageDriver; -class Handle_BinLDrivers_DocumentStorageDriver : public Handle_PCDM_StorageDriver { - - public: - // constructors - Handle_BinLDrivers_DocumentStorageDriver(); - Handle_BinLDrivers_DocumentStorageDriver(const Handle_BinLDrivers_DocumentStorageDriver &aHandle); - Handle_BinLDrivers_DocumentStorageDriver(const BinLDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinLDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinLDrivers_DocumentStorageDriver { - BinLDrivers_DocumentStorageDriver* _get_reference() { - return (BinLDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_BinLDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinLDrivers_DocumentStorageDriver) %extend BinLDrivers_DocumentStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMDF.i b/src/SWIG_files/wrapper/BinMDF.i index 4fb12613b..08ca4e65b 100644 --- a/src/SWIG_files/wrapper/BinMDF.i +++ b/src/SWIG_files/wrapper/BinMDF.i @@ -18,7 +18,23 @@ along with pythonOCC. If not, see . */ %define BINMDFDOCSTRING -"No docstring provided." +"This package provides classes and methods to +translate a transient DF into a persistent one and +vice versa. + +Driver + +A driver is a tool used to translate a transient +attribute into a persistent one and vice versa. + +Driver Table + +A driver table is an object building links between +object types and object drivers. In the +translation process, a driver table is asked to +give a translation driver for each current object +to be translated. +" %enddef %module (package="OCC.Core", docstring=BINMDFDOCSTRING) BinMDF @@ -34,25 +50,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMDF_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TColStd_DataMapOfAsciiStringInteger BinMDF_StringIdMap; /* end typedefs declaration */ @@ -60,6 +62,13 @@ typedef TColStd_DataMapOfAsciiStringInteger BinMDF_StringIdMap; /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMDF_ADriver) +%wrap_handle(BinMDF_ADriverTable) +%wrap_handle(BinMDF_DataMapNodeOfTypeADriverMap) +%wrap_handle(BinMDF_DoubleMapNodeOfTypeIdMap) +%wrap_handle(BinMDF_ReferenceDriver) +%wrap_handle(BinMDF_TagSourceDriver) + %rename(binmdf) BinMDF; class BinMDF { public: @@ -137,51 +146,7 @@ class BinMDF_ADriver : public MMgt_TShared { }; -%extend BinMDF_ADriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDF_ADriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDF_ADriver::Handle_BinMDF_ADriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDF_ADriver; -class Handle_BinMDF_ADriver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BinMDF_ADriver(); - Handle_BinMDF_ADriver(const Handle_BinMDF_ADriver &aHandle); - Handle_BinMDF_ADriver(const BinMDF_ADriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDF_ADriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDF_ADriver { - BinMDF_ADriver* _get_reference() { - return (BinMDF_ADriver*)$self->Access(); - } -}; - -%extend Handle_BinMDF_ADriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDF_ADriver) %extend BinMDF_ADriver { %pythoncode { @@ -242,51 +207,7 @@ class BinMDF_ADriverTable : public MMgt_TShared { }; -%extend BinMDF_ADriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDF_ADriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDF_ADriverTable::Handle_BinMDF_ADriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDF_ADriverTable; -class Handle_BinMDF_ADriverTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_BinMDF_ADriverTable(); - Handle_BinMDF_ADriverTable(const Handle_BinMDF_ADriverTable &aHandle); - Handle_BinMDF_ADriverTable(const BinMDF_ADriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDF_ADriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDF_ADriverTable { - BinMDF_ADriverTable* _get_reference() { - return (BinMDF_ADriverTable*)$self->Access(); - } -}; - -%extend Handle_BinMDF_ADriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDF_ADriverTable) %extend BinMDF_ADriverTable { %pythoncode { @@ -352,51 +273,7 @@ class BinMDF_DataMapNodeOfTypeADriverMap : public TCollection_MapNode { }; -%extend BinMDF_DataMapNodeOfTypeADriverMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDF_DataMapNodeOfTypeADriverMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDF_DataMapNodeOfTypeADriverMap::Handle_BinMDF_DataMapNodeOfTypeADriverMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDF_DataMapNodeOfTypeADriverMap; -class Handle_BinMDF_DataMapNodeOfTypeADriverMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BinMDF_DataMapNodeOfTypeADriverMap(); - Handle_BinMDF_DataMapNodeOfTypeADriverMap(const Handle_BinMDF_DataMapNodeOfTypeADriverMap &aHandle); - Handle_BinMDF_DataMapNodeOfTypeADriverMap(const BinMDF_DataMapNodeOfTypeADriverMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDF_DataMapNodeOfTypeADriverMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDF_DataMapNodeOfTypeADriverMap { - BinMDF_DataMapNodeOfTypeADriverMap* _get_reference() { - return (BinMDF_DataMapNodeOfTypeADriverMap*)$self->Access(); - } -}; - -%extend Handle_BinMDF_DataMapNodeOfTypeADriverMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDF_DataMapNodeOfTypeADriverMap) %extend BinMDF_DataMapNodeOfTypeADriverMap { %pythoncode { @@ -477,51 +354,7 @@ class BinMDF_DoubleMapNodeOfTypeIdMap : public TCollection_MapNode { }; -%extend BinMDF_DoubleMapNodeOfTypeIdMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDF_DoubleMapNodeOfTypeIdMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDF_DoubleMapNodeOfTypeIdMap::Handle_BinMDF_DoubleMapNodeOfTypeIdMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDF_DoubleMapNodeOfTypeIdMap; -class Handle_BinMDF_DoubleMapNodeOfTypeIdMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_BinMDF_DoubleMapNodeOfTypeIdMap(); - Handle_BinMDF_DoubleMapNodeOfTypeIdMap(const Handle_BinMDF_DoubleMapNodeOfTypeIdMap &aHandle); - Handle_BinMDF_DoubleMapNodeOfTypeIdMap(const BinMDF_DoubleMapNodeOfTypeIdMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDF_DoubleMapNodeOfTypeIdMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDF_DoubleMapNodeOfTypeIdMap { - BinMDF_DoubleMapNodeOfTypeIdMap* _get_reference() { - return (BinMDF_DoubleMapNodeOfTypeIdMap*)$self->Access(); - } -}; - -%extend Handle_BinMDF_DoubleMapNodeOfTypeIdMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDF_DoubleMapNodeOfTypeIdMap) %extend BinMDF_DoubleMapNodeOfTypeIdMap { %pythoncode { @@ -738,51 +571,7 @@ class BinMDF_ReferenceDriver : public BinMDF_ADriver { }; -%extend BinMDF_ReferenceDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDF_ReferenceDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDF_ReferenceDriver::Handle_BinMDF_ReferenceDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDF_ReferenceDriver; -class Handle_BinMDF_ReferenceDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDF_ReferenceDriver(); - Handle_BinMDF_ReferenceDriver(const Handle_BinMDF_ReferenceDriver &aHandle); - Handle_BinMDF_ReferenceDriver(const BinMDF_ReferenceDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDF_ReferenceDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDF_ReferenceDriver { - BinMDF_ReferenceDriver* _get_reference() { - return (BinMDF_ReferenceDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDF_ReferenceDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDF_ReferenceDriver) %extend BinMDF_ReferenceDriver { %pythoncode { @@ -825,51 +614,7 @@ class BinMDF_TagSourceDriver : public BinMDF_ADriver { }; -%extend BinMDF_TagSourceDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDF_TagSourceDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDF_TagSourceDriver::Handle_BinMDF_TagSourceDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDF_TagSourceDriver; -class Handle_BinMDF_TagSourceDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDF_TagSourceDriver(); - Handle_BinMDF_TagSourceDriver(const Handle_BinMDF_TagSourceDriver &aHandle); - Handle_BinMDF_TagSourceDriver(const BinMDF_TagSourceDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDF_TagSourceDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDF_TagSourceDriver { - BinMDF_TagSourceDriver* _get_reference() { - return (BinMDF_TagSourceDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDF_TagSourceDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDF_TagSourceDriver) %extend BinMDF_TagSourceDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMDataStd.i b/src/SWIG_files/wrapper/BinMDataStd.i index dcdd66c1e..e4a4b8372 100644 --- a/src/SWIG_files/wrapper/BinMDataStd.i +++ b/src/SWIG_files/wrapper/BinMDataStd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BINMDATASTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling attributes. +" %enddef %module (package="OCC.Core", docstring=BINMDATASTDDOCSTRING) BinMDataStd @@ -34,31 +35,44 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMDataStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMDataStd_AsciiStringDriver) +%wrap_handle(BinMDataStd_BooleanArrayDriver) +%wrap_handle(BinMDataStd_BooleanListDriver) +%wrap_handle(BinMDataStd_ByteArrayDriver) +%wrap_handle(BinMDataStd_CommentDriver) +%wrap_handle(BinMDataStd_DirectoryDriver) +%wrap_handle(BinMDataStd_ExpressionDriver) +%wrap_handle(BinMDataStd_ExtStringArrayDriver) +%wrap_handle(BinMDataStd_ExtStringListDriver) +%wrap_handle(BinMDataStd_IntPackedMapDriver) +%wrap_handle(BinMDataStd_IntegerArrayDriver) +%wrap_handle(BinMDataStd_IntegerDriver) +%wrap_handle(BinMDataStd_IntegerListDriver) +%wrap_handle(BinMDataStd_NameDriver) +%wrap_handle(BinMDataStd_NamedDataDriver) +%wrap_handle(BinMDataStd_NoteBookDriver) +%wrap_handle(BinMDataStd_RealArrayDriver) +%wrap_handle(BinMDataStd_RealDriver) +%wrap_handle(BinMDataStd_RealListDriver) +%wrap_handle(BinMDataStd_ReferenceArrayDriver) +%wrap_handle(BinMDataStd_ReferenceListDriver) +%wrap_handle(BinMDataStd_RelationDriver) +%wrap_handle(BinMDataStd_TickDriver) +%wrap_handle(BinMDataStd_TreeNodeDriver) +%wrap_handle(BinMDataStd_UAttributeDriver) +%wrap_handle(BinMDataStd_VariableDriver) + %rename(binmdatastd) BinMDataStd; class BinMDataStd { public: @@ -130,51 +144,7 @@ class BinMDataStd_AsciiStringDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_AsciiStringDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_AsciiStringDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_AsciiStringDriver::Handle_BinMDataStd_AsciiStringDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_AsciiStringDriver; -class Handle_BinMDataStd_AsciiStringDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_AsciiStringDriver(); - Handle_BinMDataStd_AsciiStringDriver(const Handle_BinMDataStd_AsciiStringDriver &aHandle); - Handle_BinMDataStd_AsciiStringDriver(const BinMDataStd_AsciiStringDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_AsciiStringDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_AsciiStringDriver { - BinMDataStd_AsciiStringDriver* _get_reference() { - return (BinMDataStd_AsciiStringDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_AsciiStringDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_AsciiStringDriver) %extend BinMDataStd_AsciiStringDriver { %pythoncode { @@ -217,51 +187,7 @@ class BinMDataStd_BooleanArrayDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_BooleanArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_BooleanArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_BooleanArrayDriver::Handle_BinMDataStd_BooleanArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_BooleanArrayDriver; -class Handle_BinMDataStd_BooleanArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_BooleanArrayDriver(); - Handle_BinMDataStd_BooleanArrayDriver(const Handle_BinMDataStd_BooleanArrayDriver &aHandle); - Handle_BinMDataStd_BooleanArrayDriver(const BinMDataStd_BooleanArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_BooleanArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_BooleanArrayDriver { - BinMDataStd_BooleanArrayDriver* _get_reference() { - return (BinMDataStd_BooleanArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_BooleanArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_BooleanArrayDriver) %extend BinMDataStd_BooleanArrayDriver { %pythoncode { @@ -304,51 +230,7 @@ class BinMDataStd_BooleanListDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_BooleanListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_BooleanListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_BooleanListDriver::Handle_BinMDataStd_BooleanListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_BooleanListDriver; -class Handle_BinMDataStd_BooleanListDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_BooleanListDriver(); - Handle_BinMDataStd_BooleanListDriver(const Handle_BinMDataStd_BooleanListDriver &aHandle); - Handle_BinMDataStd_BooleanListDriver(const BinMDataStd_BooleanListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_BooleanListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_BooleanListDriver { - BinMDataStd_BooleanListDriver* _get_reference() { - return (BinMDataStd_BooleanListDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_BooleanListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_BooleanListDriver) %extend BinMDataStd_BooleanListDriver { %pythoncode { @@ -391,51 +273,7 @@ class BinMDataStd_ByteArrayDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_ByteArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_ByteArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_ByteArrayDriver::Handle_BinMDataStd_ByteArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_ByteArrayDriver; -class Handle_BinMDataStd_ByteArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_ByteArrayDriver(); - Handle_BinMDataStd_ByteArrayDriver(const Handle_BinMDataStd_ByteArrayDriver &aHandle); - Handle_BinMDataStd_ByteArrayDriver(const BinMDataStd_ByteArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_ByteArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_ByteArrayDriver { - BinMDataStd_ByteArrayDriver* _get_reference() { - return (BinMDataStd_ByteArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_ByteArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_ByteArrayDriver) %extend BinMDataStd_ByteArrayDriver { %pythoncode { @@ -478,51 +316,7 @@ class BinMDataStd_CommentDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_CommentDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_CommentDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_CommentDriver::Handle_BinMDataStd_CommentDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_CommentDriver; -class Handle_BinMDataStd_CommentDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_CommentDriver(); - Handle_BinMDataStd_CommentDriver(const Handle_BinMDataStd_CommentDriver &aHandle); - Handle_BinMDataStd_CommentDriver(const BinMDataStd_CommentDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_CommentDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_CommentDriver { - BinMDataStd_CommentDriver* _get_reference() { - return (BinMDataStd_CommentDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_CommentDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_CommentDriver) %extend BinMDataStd_CommentDriver { %pythoncode { @@ -565,51 +359,7 @@ class BinMDataStd_DirectoryDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_DirectoryDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_DirectoryDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_DirectoryDriver::Handle_BinMDataStd_DirectoryDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_DirectoryDriver; -class Handle_BinMDataStd_DirectoryDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_DirectoryDriver(); - Handle_BinMDataStd_DirectoryDriver(const Handle_BinMDataStd_DirectoryDriver &aHandle); - Handle_BinMDataStd_DirectoryDriver(const BinMDataStd_DirectoryDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_DirectoryDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_DirectoryDriver { - BinMDataStd_DirectoryDriver* _get_reference() { - return (BinMDataStd_DirectoryDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_DirectoryDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_DirectoryDriver) %extend BinMDataStd_DirectoryDriver { %pythoncode { @@ -652,51 +402,7 @@ class BinMDataStd_ExpressionDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_ExpressionDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_ExpressionDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_ExpressionDriver::Handle_BinMDataStd_ExpressionDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_ExpressionDriver; -class Handle_BinMDataStd_ExpressionDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_ExpressionDriver(); - Handle_BinMDataStd_ExpressionDriver(const Handle_BinMDataStd_ExpressionDriver &aHandle); - Handle_BinMDataStd_ExpressionDriver(const BinMDataStd_ExpressionDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_ExpressionDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_ExpressionDriver { - BinMDataStd_ExpressionDriver* _get_reference() { - return (BinMDataStd_ExpressionDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_ExpressionDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_ExpressionDriver) %extend BinMDataStd_ExpressionDriver { %pythoncode { @@ -739,51 +445,7 @@ class BinMDataStd_ExtStringArrayDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_ExtStringArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_ExtStringArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_ExtStringArrayDriver::Handle_BinMDataStd_ExtStringArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_ExtStringArrayDriver; -class Handle_BinMDataStd_ExtStringArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_ExtStringArrayDriver(); - Handle_BinMDataStd_ExtStringArrayDriver(const Handle_BinMDataStd_ExtStringArrayDriver &aHandle); - Handle_BinMDataStd_ExtStringArrayDriver(const BinMDataStd_ExtStringArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_ExtStringArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_ExtStringArrayDriver { - BinMDataStd_ExtStringArrayDriver* _get_reference() { - return (BinMDataStd_ExtStringArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_ExtStringArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_ExtStringArrayDriver) %extend BinMDataStd_ExtStringArrayDriver { %pythoncode { @@ -826,51 +488,7 @@ class BinMDataStd_ExtStringListDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_ExtStringListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_ExtStringListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_ExtStringListDriver::Handle_BinMDataStd_ExtStringListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_ExtStringListDriver; -class Handle_BinMDataStd_ExtStringListDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_ExtStringListDriver(); - Handle_BinMDataStd_ExtStringListDriver(const Handle_BinMDataStd_ExtStringListDriver &aHandle); - Handle_BinMDataStd_ExtStringListDriver(const BinMDataStd_ExtStringListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_ExtStringListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_ExtStringListDriver { - BinMDataStd_ExtStringListDriver* _get_reference() { - return (BinMDataStd_ExtStringListDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_ExtStringListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_ExtStringListDriver) %extend BinMDataStd_ExtStringListDriver { %pythoncode { @@ -917,51 +535,7 @@ class BinMDataStd_IntPackedMapDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_IntPackedMapDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_IntPackedMapDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_IntPackedMapDriver::Handle_BinMDataStd_IntPackedMapDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_IntPackedMapDriver; -class Handle_BinMDataStd_IntPackedMapDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_IntPackedMapDriver(); - Handle_BinMDataStd_IntPackedMapDriver(const Handle_BinMDataStd_IntPackedMapDriver &aHandle); - Handle_BinMDataStd_IntPackedMapDriver(const BinMDataStd_IntPackedMapDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_IntPackedMapDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_IntPackedMapDriver { - BinMDataStd_IntPackedMapDriver* _get_reference() { - return (BinMDataStd_IntPackedMapDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_IntPackedMapDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_IntPackedMapDriver) %extend BinMDataStd_IntPackedMapDriver { %pythoncode { @@ -1004,51 +578,7 @@ class BinMDataStd_IntegerArrayDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_IntegerArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_IntegerArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_IntegerArrayDriver::Handle_BinMDataStd_IntegerArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_IntegerArrayDriver; -class Handle_BinMDataStd_IntegerArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_IntegerArrayDriver(); - Handle_BinMDataStd_IntegerArrayDriver(const Handle_BinMDataStd_IntegerArrayDriver &aHandle); - Handle_BinMDataStd_IntegerArrayDriver(const BinMDataStd_IntegerArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_IntegerArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_IntegerArrayDriver { - BinMDataStd_IntegerArrayDriver* _get_reference() { - return (BinMDataStd_IntegerArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_IntegerArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_IntegerArrayDriver) %extend BinMDataStd_IntegerArrayDriver { %pythoncode { @@ -1091,51 +621,7 @@ class BinMDataStd_IntegerDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_IntegerDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_IntegerDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_IntegerDriver::Handle_BinMDataStd_IntegerDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_IntegerDriver; -class Handle_BinMDataStd_IntegerDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_IntegerDriver(); - Handle_BinMDataStd_IntegerDriver(const Handle_BinMDataStd_IntegerDriver &aHandle); - Handle_BinMDataStd_IntegerDriver(const BinMDataStd_IntegerDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_IntegerDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_IntegerDriver { - BinMDataStd_IntegerDriver* _get_reference() { - return (BinMDataStd_IntegerDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_IntegerDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_IntegerDriver) %extend BinMDataStd_IntegerDriver { %pythoncode { @@ -1178,51 +664,7 @@ class BinMDataStd_IntegerListDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_IntegerListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_IntegerListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_IntegerListDriver::Handle_BinMDataStd_IntegerListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_IntegerListDriver; -class Handle_BinMDataStd_IntegerListDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_IntegerListDriver(); - Handle_BinMDataStd_IntegerListDriver(const Handle_BinMDataStd_IntegerListDriver &aHandle); - Handle_BinMDataStd_IntegerListDriver(const BinMDataStd_IntegerListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_IntegerListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_IntegerListDriver { - BinMDataStd_IntegerListDriver* _get_reference() { - return (BinMDataStd_IntegerListDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_IntegerListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_IntegerListDriver) %extend BinMDataStd_IntegerListDriver { %pythoncode { @@ -1269,51 +711,7 @@ class BinMDataStd_NameDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_NameDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_NameDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_NameDriver::Handle_BinMDataStd_NameDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_NameDriver; -class Handle_BinMDataStd_NameDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_NameDriver(); - Handle_BinMDataStd_NameDriver(const Handle_BinMDataStd_NameDriver &aHandle); - Handle_BinMDataStd_NameDriver(const BinMDataStd_NameDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_NameDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_NameDriver { - BinMDataStd_NameDriver* _get_reference() { - return (BinMDataStd_NameDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_NameDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_NameDriver) %extend BinMDataStd_NameDriver { %pythoncode { @@ -1356,51 +754,7 @@ class BinMDataStd_NamedDataDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_NamedDataDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_NamedDataDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_NamedDataDriver::Handle_BinMDataStd_NamedDataDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_NamedDataDriver; -class Handle_BinMDataStd_NamedDataDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_NamedDataDriver(); - Handle_BinMDataStd_NamedDataDriver(const Handle_BinMDataStd_NamedDataDriver &aHandle); - Handle_BinMDataStd_NamedDataDriver(const BinMDataStd_NamedDataDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_NamedDataDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_NamedDataDriver { - BinMDataStd_NamedDataDriver* _get_reference() { - return (BinMDataStd_NamedDataDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_NamedDataDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_NamedDataDriver) %extend BinMDataStd_NamedDataDriver { %pythoncode { @@ -1443,51 +797,7 @@ class BinMDataStd_NoteBookDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_NoteBookDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_NoteBookDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_NoteBookDriver::Handle_BinMDataStd_NoteBookDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_NoteBookDriver; -class Handle_BinMDataStd_NoteBookDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_NoteBookDriver(); - Handle_BinMDataStd_NoteBookDriver(const Handle_BinMDataStd_NoteBookDriver &aHandle); - Handle_BinMDataStd_NoteBookDriver(const BinMDataStd_NoteBookDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_NoteBookDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_NoteBookDriver { - BinMDataStd_NoteBookDriver* _get_reference() { - return (BinMDataStd_NoteBookDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_NoteBookDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_NoteBookDriver) %extend BinMDataStd_NoteBookDriver { %pythoncode { @@ -1530,51 +840,7 @@ class BinMDataStd_RealArrayDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_RealArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_RealArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_RealArrayDriver::Handle_BinMDataStd_RealArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_RealArrayDriver; -class Handle_BinMDataStd_RealArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_RealArrayDriver(); - Handle_BinMDataStd_RealArrayDriver(const Handle_BinMDataStd_RealArrayDriver &aHandle); - Handle_BinMDataStd_RealArrayDriver(const BinMDataStd_RealArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_RealArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_RealArrayDriver { - BinMDataStd_RealArrayDriver* _get_reference() { - return (BinMDataStd_RealArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_RealArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_RealArrayDriver) %extend BinMDataStd_RealArrayDriver { %pythoncode { @@ -1617,51 +883,7 @@ class BinMDataStd_RealDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_RealDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_RealDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_RealDriver::Handle_BinMDataStd_RealDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_RealDriver; -class Handle_BinMDataStd_RealDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_RealDriver(); - Handle_BinMDataStd_RealDriver(const Handle_BinMDataStd_RealDriver &aHandle); - Handle_BinMDataStd_RealDriver(const BinMDataStd_RealDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_RealDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_RealDriver { - BinMDataStd_RealDriver* _get_reference() { - return (BinMDataStd_RealDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_RealDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_RealDriver) %extend BinMDataStd_RealDriver { %pythoncode { @@ -1704,51 +926,7 @@ class BinMDataStd_RealListDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_RealListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_RealListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_RealListDriver::Handle_BinMDataStd_RealListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_RealListDriver; -class Handle_BinMDataStd_RealListDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_RealListDriver(); - Handle_BinMDataStd_RealListDriver(const Handle_BinMDataStd_RealListDriver &aHandle); - Handle_BinMDataStd_RealListDriver(const BinMDataStd_RealListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_RealListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_RealListDriver { - BinMDataStd_RealListDriver* _get_reference() { - return (BinMDataStd_RealListDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_RealListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_RealListDriver) %extend BinMDataStd_RealListDriver { %pythoncode { @@ -1791,51 +969,7 @@ class BinMDataStd_ReferenceArrayDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_ReferenceArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_ReferenceArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_ReferenceArrayDriver::Handle_BinMDataStd_ReferenceArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_ReferenceArrayDriver; -class Handle_BinMDataStd_ReferenceArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_ReferenceArrayDriver(); - Handle_BinMDataStd_ReferenceArrayDriver(const Handle_BinMDataStd_ReferenceArrayDriver &aHandle); - Handle_BinMDataStd_ReferenceArrayDriver(const BinMDataStd_ReferenceArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_ReferenceArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_ReferenceArrayDriver { - BinMDataStd_ReferenceArrayDriver* _get_reference() { - return (BinMDataStd_ReferenceArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_ReferenceArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_ReferenceArrayDriver) %extend BinMDataStd_ReferenceArrayDriver { %pythoncode { @@ -1878,51 +1012,7 @@ class BinMDataStd_ReferenceListDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_ReferenceListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_ReferenceListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_ReferenceListDriver::Handle_BinMDataStd_ReferenceListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_ReferenceListDriver; -class Handle_BinMDataStd_ReferenceListDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_ReferenceListDriver(); - Handle_BinMDataStd_ReferenceListDriver(const Handle_BinMDataStd_ReferenceListDriver &aHandle); - Handle_BinMDataStd_ReferenceListDriver(const BinMDataStd_ReferenceListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_ReferenceListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_ReferenceListDriver { - BinMDataStd_ReferenceListDriver* _get_reference() { - return (BinMDataStd_ReferenceListDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_ReferenceListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_ReferenceListDriver) %extend BinMDataStd_ReferenceListDriver { %pythoncode { @@ -1965,51 +1055,7 @@ class BinMDataStd_RelationDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_RelationDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_RelationDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_RelationDriver::Handle_BinMDataStd_RelationDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_RelationDriver; -class Handle_BinMDataStd_RelationDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_RelationDriver(); - Handle_BinMDataStd_RelationDriver(const Handle_BinMDataStd_RelationDriver &aHandle); - Handle_BinMDataStd_RelationDriver(const BinMDataStd_RelationDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_RelationDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_RelationDriver { - BinMDataStd_RelationDriver* _get_reference() { - return (BinMDataStd_RelationDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_RelationDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_RelationDriver) %extend BinMDataStd_RelationDriver { %pythoncode { @@ -2052,51 +1098,7 @@ class BinMDataStd_TickDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_TickDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_TickDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_TickDriver::Handle_BinMDataStd_TickDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_TickDriver; -class Handle_BinMDataStd_TickDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_TickDriver(); - Handle_BinMDataStd_TickDriver(const Handle_BinMDataStd_TickDriver &aHandle); - Handle_BinMDataStd_TickDriver(const BinMDataStd_TickDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_TickDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_TickDriver { - BinMDataStd_TickDriver* _get_reference() { - return (BinMDataStd_TickDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_TickDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_TickDriver) %extend BinMDataStd_TickDriver { %pythoncode { @@ -2139,51 +1141,7 @@ class BinMDataStd_TreeNodeDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_TreeNodeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_TreeNodeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_TreeNodeDriver::Handle_BinMDataStd_TreeNodeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_TreeNodeDriver; -class Handle_BinMDataStd_TreeNodeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_TreeNodeDriver(); - Handle_BinMDataStd_TreeNodeDriver(const Handle_BinMDataStd_TreeNodeDriver &aHandle); - Handle_BinMDataStd_TreeNodeDriver(const BinMDataStd_TreeNodeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_TreeNodeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_TreeNodeDriver { - BinMDataStd_TreeNodeDriver* _get_reference() { - return (BinMDataStd_TreeNodeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_TreeNodeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_TreeNodeDriver) %extend BinMDataStd_TreeNodeDriver { %pythoncode { @@ -2226,51 +1184,7 @@ class BinMDataStd_UAttributeDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_UAttributeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_UAttributeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_UAttributeDriver::Handle_BinMDataStd_UAttributeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_UAttributeDriver; -class Handle_BinMDataStd_UAttributeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_UAttributeDriver(); - Handle_BinMDataStd_UAttributeDriver(const Handle_BinMDataStd_UAttributeDriver &aHandle); - Handle_BinMDataStd_UAttributeDriver(const BinMDataStd_UAttributeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_UAttributeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_UAttributeDriver { - BinMDataStd_UAttributeDriver* _get_reference() { - return (BinMDataStd_UAttributeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_UAttributeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_UAttributeDriver) %extend BinMDataStd_UAttributeDriver { %pythoncode { @@ -2313,51 +1227,7 @@ class BinMDataStd_VariableDriver : public BinMDF_ADriver { }; -%extend BinMDataStd_VariableDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataStd_VariableDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataStd_VariableDriver::Handle_BinMDataStd_VariableDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataStd_VariableDriver; -class Handle_BinMDataStd_VariableDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataStd_VariableDriver(); - Handle_BinMDataStd_VariableDriver(const Handle_BinMDataStd_VariableDriver &aHandle); - Handle_BinMDataStd_VariableDriver(const BinMDataStd_VariableDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataStd_VariableDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataStd_VariableDriver { - BinMDataStd_VariableDriver* _get_reference() { - return (BinMDataStd_VariableDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataStd_VariableDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataStd_VariableDriver) %extend BinMDataStd_VariableDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMDataXtd.i b/src/SWIG_files/wrapper/BinMDataXtd.i index e108bd59f..4154bfaed 100644 --- a/src/SWIG_files/wrapper/BinMDataXtd.i +++ b/src/SWIG_files/wrapper/BinMDataXtd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BINMDATAXTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling attributes. +" %enddef %module (package="OCC.Core", docstring=BINMDATAXTDDOCSTRING) BinMDataXtd @@ -34,31 +35,26 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMDataXtd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMDataXtd_AxisDriver) +%wrap_handle(BinMDataXtd_ConstraintDriver) +%wrap_handle(BinMDataXtd_GeometryDriver) +%wrap_handle(BinMDataXtd_PatternStdDriver) +%wrap_handle(BinMDataXtd_PlacementDriver) +%wrap_handle(BinMDataXtd_PlaneDriver) +%wrap_handle(BinMDataXtd_PointDriver) +%wrap_handle(BinMDataXtd_ShapeDriver) + %rename(binmdataxtd) BinMDataXtd; class BinMDataXtd { public: @@ -126,51 +122,7 @@ class BinMDataXtd_AxisDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_AxisDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_AxisDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_AxisDriver::Handle_BinMDataXtd_AxisDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_AxisDriver; -class Handle_BinMDataXtd_AxisDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_AxisDriver(); - Handle_BinMDataXtd_AxisDriver(const Handle_BinMDataXtd_AxisDriver &aHandle); - Handle_BinMDataXtd_AxisDriver(const BinMDataXtd_AxisDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_AxisDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_AxisDriver { - BinMDataXtd_AxisDriver* _get_reference() { - return (BinMDataXtd_AxisDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_AxisDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_AxisDriver) %extend BinMDataXtd_AxisDriver { %pythoncode { @@ -213,51 +165,7 @@ class BinMDataXtd_ConstraintDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_ConstraintDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_ConstraintDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_ConstraintDriver::Handle_BinMDataXtd_ConstraintDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_ConstraintDriver; -class Handle_BinMDataXtd_ConstraintDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_ConstraintDriver(); - Handle_BinMDataXtd_ConstraintDriver(const Handle_BinMDataXtd_ConstraintDriver &aHandle); - Handle_BinMDataXtd_ConstraintDriver(const BinMDataXtd_ConstraintDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_ConstraintDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_ConstraintDriver { - BinMDataXtd_ConstraintDriver* _get_reference() { - return (BinMDataXtd_ConstraintDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_ConstraintDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_ConstraintDriver) %extend BinMDataXtd_ConstraintDriver { %pythoncode { @@ -300,51 +208,7 @@ class BinMDataXtd_GeometryDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_GeometryDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_GeometryDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_GeometryDriver::Handle_BinMDataXtd_GeometryDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_GeometryDriver; -class Handle_BinMDataXtd_GeometryDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_GeometryDriver(); - Handle_BinMDataXtd_GeometryDriver(const Handle_BinMDataXtd_GeometryDriver &aHandle); - Handle_BinMDataXtd_GeometryDriver(const BinMDataXtd_GeometryDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_GeometryDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_GeometryDriver { - BinMDataXtd_GeometryDriver* _get_reference() { - return (BinMDataXtd_GeometryDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_GeometryDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_GeometryDriver) %extend BinMDataXtd_GeometryDriver { %pythoncode { @@ -387,51 +251,7 @@ class BinMDataXtd_PatternStdDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_PatternStdDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_PatternStdDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_PatternStdDriver::Handle_BinMDataXtd_PatternStdDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_PatternStdDriver; -class Handle_BinMDataXtd_PatternStdDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_PatternStdDriver(); - Handle_BinMDataXtd_PatternStdDriver(const Handle_BinMDataXtd_PatternStdDriver &aHandle); - Handle_BinMDataXtd_PatternStdDriver(const BinMDataXtd_PatternStdDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_PatternStdDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_PatternStdDriver { - BinMDataXtd_PatternStdDriver* _get_reference() { - return (BinMDataXtd_PatternStdDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_PatternStdDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_PatternStdDriver) %extend BinMDataXtd_PatternStdDriver { %pythoncode { @@ -474,51 +294,7 @@ class BinMDataXtd_PlacementDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_PlacementDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_PlacementDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_PlacementDriver::Handle_BinMDataXtd_PlacementDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_PlacementDriver; -class Handle_BinMDataXtd_PlacementDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_PlacementDriver(); - Handle_BinMDataXtd_PlacementDriver(const Handle_BinMDataXtd_PlacementDriver &aHandle); - Handle_BinMDataXtd_PlacementDriver(const BinMDataXtd_PlacementDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_PlacementDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_PlacementDriver { - BinMDataXtd_PlacementDriver* _get_reference() { - return (BinMDataXtd_PlacementDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_PlacementDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_PlacementDriver) %extend BinMDataXtd_PlacementDriver { %pythoncode { @@ -561,51 +337,7 @@ class BinMDataXtd_PlaneDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_PlaneDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_PlaneDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_PlaneDriver::Handle_BinMDataXtd_PlaneDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_PlaneDriver; -class Handle_BinMDataXtd_PlaneDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_PlaneDriver(); - Handle_BinMDataXtd_PlaneDriver(const Handle_BinMDataXtd_PlaneDriver &aHandle); - Handle_BinMDataXtd_PlaneDriver(const BinMDataXtd_PlaneDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_PlaneDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_PlaneDriver { - BinMDataXtd_PlaneDriver* _get_reference() { - return (BinMDataXtd_PlaneDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_PlaneDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_PlaneDriver) %extend BinMDataXtd_PlaneDriver { %pythoncode { @@ -648,51 +380,7 @@ class BinMDataXtd_PointDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_PointDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_PointDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_PointDriver::Handle_BinMDataXtd_PointDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_PointDriver; -class Handle_BinMDataXtd_PointDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_PointDriver(); - Handle_BinMDataXtd_PointDriver(const Handle_BinMDataXtd_PointDriver &aHandle); - Handle_BinMDataXtd_PointDriver(const BinMDataXtd_PointDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_PointDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_PointDriver { - BinMDataXtd_PointDriver* _get_reference() { - return (BinMDataXtd_PointDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_PointDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_PointDriver) %extend BinMDataXtd_PointDriver { %pythoncode { @@ -735,51 +423,7 @@ class BinMDataXtd_ShapeDriver : public BinMDF_ADriver { }; -%extend BinMDataXtd_ShapeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDataXtd_ShapeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDataXtd_ShapeDriver::Handle_BinMDataXtd_ShapeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDataXtd_ShapeDriver; -class Handle_BinMDataXtd_ShapeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDataXtd_ShapeDriver(); - Handle_BinMDataXtd_ShapeDriver(const Handle_BinMDataXtd_ShapeDriver &aHandle); - Handle_BinMDataXtd_ShapeDriver(const BinMDataXtd_ShapeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDataXtd_ShapeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDataXtd_ShapeDriver { - BinMDataXtd_ShapeDriver* _get_reference() { - return (BinMDataXtd_ShapeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDataXtd_ShapeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDataXtd_ShapeDriver) %extend BinMDataXtd_ShapeDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMDocStd.i b/src/SWIG_files/wrapper/BinMDocStd.i index 1ef68388f..c0bb150bd 100644 --- a/src/SWIG_files/wrapper/BinMDocStd.i +++ b/src/SWIG_files/wrapper/BinMDocStd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BINMDOCSTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for TDocStd modelling attributes. +" %enddef %module (package="OCC.Core", docstring=BINMDOCSTDDOCSTRING) BinMDocStd @@ -34,31 +35,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMDocStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMDocStd_XLinkDriver) + %rename(binmdocstd) BinMDocStd; class BinMDocStd { public: @@ -116,51 +105,7 @@ class BinMDocStd_XLinkDriver : public BinMDF_ADriver { }; -%extend BinMDocStd_XLinkDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMDocStd_XLinkDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMDocStd_XLinkDriver::Handle_BinMDocStd_XLinkDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMDocStd_XLinkDriver; -class Handle_BinMDocStd_XLinkDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMDocStd_XLinkDriver(); - Handle_BinMDocStd_XLinkDriver(const Handle_BinMDocStd_XLinkDriver &aHandle); - Handle_BinMDocStd_XLinkDriver(const BinMDocStd_XLinkDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMDocStd_XLinkDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMDocStd_XLinkDriver { - BinMDocStd_XLinkDriver* _get_reference() { - return (BinMDocStd_XLinkDriver*)$self->Access(); - } -}; - -%extend Handle_BinMDocStd_XLinkDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMDocStd_XLinkDriver) %extend BinMDocStd_XLinkDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMFunction.i b/src/SWIG_files/wrapper/BinMFunction.i index 60a1a18d0..b5ffb994d 100644 --- a/src/SWIG_files/wrapper/BinMFunction.i +++ b/src/SWIG_files/wrapper/BinMFunction.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BINMFUNCTIONDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for TFunction modelling attributes. +" %enddef %module (package="OCC.Core", docstring=BINMFUNCTIONDOCSTRING) BinMFunction @@ -34,31 +35,21 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMFunction_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMFunction_FunctionDriver) +%wrap_handle(BinMFunction_GraphNodeDriver) +%wrap_handle(BinMFunction_ScopeDriver) + %rename(binmfunction) BinMFunction; class BinMFunction { public: @@ -116,51 +107,7 @@ class BinMFunction_FunctionDriver : public BinMDF_ADriver { }; -%extend BinMFunction_FunctionDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMFunction_FunctionDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMFunction_FunctionDriver::Handle_BinMFunction_FunctionDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMFunction_FunctionDriver; -class Handle_BinMFunction_FunctionDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMFunction_FunctionDriver(); - Handle_BinMFunction_FunctionDriver(const Handle_BinMFunction_FunctionDriver &aHandle); - Handle_BinMFunction_FunctionDriver(const BinMFunction_FunctionDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMFunction_FunctionDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMFunction_FunctionDriver { - BinMFunction_FunctionDriver* _get_reference() { - return (BinMFunction_FunctionDriver*)$self->Access(); - } -}; - -%extend Handle_BinMFunction_FunctionDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMFunction_FunctionDriver) %extend BinMFunction_FunctionDriver { %pythoncode { @@ -203,51 +150,7 @@ class BinMFunction_GraphNodeDriver : public BinMDF_ADriver { }; -%extend BinMFunction_GraphNodeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMFunction_GraphNodeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMFunction_GraphNodeDriver::Handle_BinMFunction_GraphNodeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMFunction_GraphNodeDriver; -class Handle_BinMFunction_GraphNodeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMFunction_GraphNodeDriver(); - Handle_BinMFunction_GraphNodeDriver(const Handle_BinMFunction_GraphNodeDriver &aHandle); - Handle_BinMFunction_GraphNodeDriver(const BinMFunction_GraphNodeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMFunction_GraphNodeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMFunction_GraphNodeDriver { - BinMFunction_GraphNodeDriver* _get_reference() { - return (BinMFunction_GraphNodeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMFunction_GraphNodeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMFunction_GraphNodeDriver) %extend BinMFunction_GraphNodeDriver { %pythoncode { @@ -290,51 +193,7 @@ class BinMFunction_ScopeDriver : public BinMDF_ADriver { }; -%extend BinMFunction_ScopeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMFunction_ScopeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMFunction_ScopeDriver::Handle_BinMFunction_ScopeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMFunction_ScopeDriver; -class Handle_BinMFunction_ScopeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMFunction_ScopeDriver(); - Handle_BinMFunction_ScopeDriver(const Handle_BinMFunction_ScopeDriver &aHandle); - Handle_BinMFunction_ScopeDriver(const BinMFunction_ScopeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMFunction_ScopeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMFunction_ScopeDriver { - BinMFunction_ScopeDriver* _get_reference() { - return (BinMFunction_ScopeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMFunction_ScopeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMFunction_ScopeDriver) %extend BinMFunction_ScopeDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMNaming.i b/src/SWIG_files/wrapper/BinMNaming.i index ed615628a..fe0bb7923 100644 --- a/src/SWIG_files/wrapper/BinMNaming.i +++ b/src/SWIG_files/wrapper/BinMNaming.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BINMNAMINGDOCSTRING -"No docstring provided." +"Storage/Retrieval drivers for TNaming attributes +" %enddef %module (package="OCC.Core", docstring=BINMNAMINGDOCSTRING) BinMNaming @@ -34,31 +35,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMNaming_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMNaming_NamedShapeDriver) +%wrap_handle(BinMNaming_NamingDriver) + %rename(binmnaming) BinMNaming; class BinMNaming { public: @@ -175,51 +165,7 @@ class BinMNaming_NamedShapeDriver : public BinMDF_ADriver { }; -%extend BinMNaming_NamedShapeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMNaming_NamedShapeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMNaming_NamedShapeDriver::Handle_BinMNaming_NamedShapeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMNaming_NamedShapeDriver; -class Handle_BinMNaming_NamedShapeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMNaming_NamedShapeDriver(); - Handle_BinMNaming_NamedShapeDriver(const Handle_BinMNaming_NamedShapeDriver &aHandle); - Handle_BinMNaming_NamedShapeDriver(const BinMNaming_NamedShapeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMNaming_NamedShapeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMNaming_NamedShapeDriver { - BinMNaming_NamedShapeDriver* _get_reference() { - return (BinMNaming_NamedShapeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMNaming_NamedShapeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMNaming_NamedShapeDriver) %extend BinMNaming_NamedShapeDriver { %pythoncode { @@ -262,51 +208,7 @@ class BinMNaming_NamingDriver : public BinMDF_ADriver { }; -%extend BinMNaming_NamingDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMNaming_NamingDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMNaming_NamingDriver::Handle_BinMNaming_NamingDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMNaming_NamingDriver; -class Handle_BinMNaming_NamingDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMNaming_NamingDriver(); - Handle_BinMNaming_NamingDriver(const Handle_BinMNaming_NamingDriver &aHandle); - Handle_BinMNaming_NamingDriver(const BinMNaming_NamingDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMNaming_NamingDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMNaming_NamingDriver { - BinMNaming_NamingDriver* _get_reference() { - return (BinMNaming_NamingDriver*)$self->Access(); - } -}; - -%extend Handle_BinMNaming_NamingDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMNaming_NamingDriver) %extend BinMNaming_NamingDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMPrsStd.i b/src/SWIG_files/wrapper/BinMPrsStd.i index 0bafc1253..95bd9f8ea 100644 --- a/src/SWIG_files/wrapper/BinMPrsStd.i +++ b/src/SWIG_files/wrapper/BinMPrsStd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define BINMPRSSTDDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=BINMPRSSTDDOCSTRING) BinMPrsStd @@ -34,31 +35,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMPrsStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMPrsStd_AISPresentationDriver) +%wrap_handle(BinMPrsStd_PositionDriver) + %rename(binmprsstd) BinMPrsStd; class BinMPrsStd { public: @@ -116,51 +106,7 @@ class BinMPrsStd_AISPresentationDriver : public BinMDF_ADriver { }; -%extend BinMPrsStd_AISPresentationDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMPrsStd_AISPresentationDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMPrsStd_AISPresentationDriver::Handle_BinMPrsStd_AISPresentationDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMPrsStd_AISPresentationDriver; -class Handle_BinMPrsStd_AISPresentationDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMPrsStd_AISPresentationDriver(); - Handle_BinMPrsStd_AISPresentationDriver(const Handle_BinMPrsStd_AISPresentationDriver &aHandle); - Handle_BinMPrsStd_AISPresentationDriver(const BinMPrsStd_AISPresentationDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMPrsStd_AISPresentationDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMPrsStd_AISPresentationDriver { - BinMPrsStd_AISPresentationDriver* _get_reference() { - return (BinMPrsStd_AISPresentationDriver*)$self->Access(); - } -}; - -%extend Handle_BinMPrsStd_AISPresentationDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMPrsStd_AISPresentationDriver) %extend BinMPrsStd_AISPresentationDriver { %pythoncode { @@ -203,51 +149,7 @@ class BinMPrsStd_PositionDriver : public BinMDF_ADriver { }; -%extend BinMPrsStd_PositionDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMPrsStd_PositionDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMPrsStd_PositionDriver::Handle_BinMPrsStd_PositionDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMPrsStd_PositionDriver; -class Handle_BinMPrsStd_PositionDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMPrsStd_PositionDriver(); - Handle_BinMPrsStd_PositionDriver(const Handle_BinMPrsStd_PositionDriver &aHandle); - Handle_BinMPrsStd_PositionDriver(const BinMPrsStd_PositionDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMPrsStd_PositionDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMPrsStd_PositionDriver { - BinMPrsStd_PositionDriver* _get_reference() { - return (BinMPrsStd_PositionDriver*)$self->Access(); - } -}; - -%extend Handle_BinMPrsStd_PositionDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMPrsStd_PositionDriver) %extend BinMPrsStd_PositionDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinMXCAFDoc.i b/src/SWIG_files/wrapper/BinMXCAFDoc.i index a168f1a93..5dd42407a 100644 --- a/src/SWIG_files/wrapper/BinMXCAFDoc.i +++ b/src/SWIG_files/wrapper/BinMXCAFDoc.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BINMXCAFDOCDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BINMXCAFDOCDOCSTRING) BinMXCAFDoc @@ -34,31 +34,33 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinMXCAFDoc_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinMXCAFDoc_AreaDriver) +%wrap_handle(BinMXCAFDoc_CentroidDriver) +%wrap_handle(BinMXCAFDoc_ColorDriver) +%wrap_handle(BinMXCAFDoc_ColorToolDriver) +%wrap_handle(BinMXCAFDoc_DatumDriver) +%wrap_handle(BinMXCAFDoc_DimTolDriver) +%wrap_handle(BinMXCAFDoc_DimTolToolDriver) +%wrap_handle(BinMXCAFDoc_DocumentToolDriver) +%wrap_handle(BinMXCAFDoc_GraphNodeDriver) +%wrap_handle(BinMXCAFDoc_LayerToolDriver) +%wrap_handle(BinMXCAFDoc_LocationDriver) +%wrap_handle(BinMXCAFDoc_MaterialDriver) +%wrap_handle(BinMXCAFDoc_MaterialToolDriver) +%wrap_handle(BinMXCAFDoc_ShapeToolDriver) +%wrap_handle(BinMXCAFDoc_VolumeDriver) + %rename(binmxcafdoc) BinMXCAFDoc; class BinMXCAFDoc { public: @@ -116,51 +118,7 @@ class BinMXCAFDoc_AreaDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_AreaDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_AreaDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_AreaDriver::Handle_BinMXCAFDoc_AreaDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_AreaDriver; -class Handle_BinMXCAFDoc_AreaDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_AreaDriver(); - Handle_BinMXCAFDoc_AreaDriver(const Handle_BinMXCAFDoc_AreaDriver &aHandle); - Handle_BinMXCAFDoc_AreaDriver(const BinMXCAFDoc_AreaDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_AreaDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_AreaDriver { - BinMXCAFDoc_AreaDriver* _get_reference() { - return (BinMXCAFDoc_AreaDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_AreaDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_AreaDriver) %extend BinMXCAFDoc_AreaDriver { %pythoncode { @@ -203,51 +161,7 @@ class BinMXCAFDoc_CentroidDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_CentroidDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_CentroidDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_CentroidDriver::Handle_BinMXCAFDoc_CentroidDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_CentroidDriver; -class Handle_BinMXCAFDoc_CentroidDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_CentroidDriver(); - Handle_BinMXCAFDoc_CentroidDriver(const Handle_BinMXCAFDoc_CentroidDriver &aHandle); - Handle_BinMXCAFDoc_CentroidDriver(const BinMXCAFDoc_CentroidDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_CentroidDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_CentroidDriver { - BinMXCAFDoc_CentroidDriver* _get_reference() { - return (BinMXCAFDoc_CentroidDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_CentroidDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_CentroidDriver) %extend BinMXCAFDoc_CentroidDriver { %pythoncode { @@ -290,51 +204,7 @@ class BinMXCAFDoc_ColorDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_ColorDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_ColorDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_ColorDriver::Handle_BinMXCAFDoc_ColorDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_ColorDriver; -class Handle_BinMXCAFDoc_ColorDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_ColorDriver(); - Handle_BinMXCAFDoc_ColorDriver(const Handle_BinMXCAFDoc_ColorDriver &aHandle); - Handle_BinMXCAFDoc_ColorDriver(const BinMXCAFDoc_ColorDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_ColorDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_ColorDriver { - BinMXCAFDoc_ColorDriver* _get_reference() { - return (BinMXCAFDoc_ColorDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_ColorDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_ColorDriver) %extend BinMXCAFDoc_ColorDriver { %pythoncode { @@ -377,51 +247,7 @@ class BinMXCAFDoc_ColorToolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_ColorToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_ColorToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_ColorToolDriver::Handle_BinMXCAFDoc_ColorToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_ColorToolDriver; -class Handle_BinMXCAFDoc_ColorToolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_ColorToolDriver(); - Handle_BinMXCAFDoc_ColorToolDriver(const Handle_BinMXCAFDoc_ColorToolDriver &aHandle); - Handle_BinMXCAFDoc_ColorToolDriver(const BinMXCAFDoc_ColorToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_ColorToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_ColorToolDriver { - BinMXCAFDoc_ColorToolDriver* _get_reference() { - return (BinMXCAFDoc_ColorToolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_ColorToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_ColorToolDriver) %extend BinMXCAFDoc_ColorToolDriver { %pythoncode { @@ -464,51 +290,7 @@ class BinMXCAFDoc_DatumDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_DatumDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_DatumDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_DatumDriver::Handle_BinMXCAFDoc_DatumDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_DatumDriver; -class Handle_BinMXCAFDoc_DatumDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_DatumDriver(); - Handle_BinMXCAFDoc_DatumDriver(const Handle_BinMXCAFDoc_DatumDriver &aHandle); - Handle_BinMXCAFDoc_DatumDriver(const BinMXCAFDoc_DatumDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_DatumDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_DatumDriver { - BinMXCAFDoc_DatumDriver* _get_reference() { - return (BinMXCAFDoc_DatumDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_DatumDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_DatumDriver) %extend BinMXCAFDoc_DatumDriver { %pythoncode { @@ -551,51 +333,7 @@ class BinMXCAFDoc_DimTolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_DimTolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_DimTolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_DimTolDriver::Handle_BinMXCAFDoc_DimTolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_DimTolDriver; -class Handle_BinMXCAFDoc_DimTolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_DimTolDriver(); - Handle_BinMXCAFDoc_DimTolDriver(const Handle_BinMXCAFDoc_DimTolDriver &aHandle); - Handle_BinMXCAFDoc_DimTolDriver(const BinMXCAFDoc_DimTolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_DimTolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_DimTolDriver { - BinMXCAFDoc_DimTolDriver* _get_reference() { - return (BinMXCAFDoc_DimTolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_DimTolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_DimTolDriver) %extend BinMXCAFDoc_DimTolDriver { %pythoncode { @@ -638,51 +376,7 @@ class BinMXCAFDoc_DimTolToolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_DimTolToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_DimTolToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_DimTolToolDriver::Handle_BinMXCAFDoc_DimTolToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_DimTolToolDriver; -class Handle_BinMXCAFDoc_DimTolToolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_DimTolToolDriver(); - Handle_BinMXCAFDoc_DimTolToolDriver(const Handle_BinMXCAFDoc_DimTolToolDriver &aHandle); - Handle_BinMXCAFDoc_DimTolToolDriver(const BinMXCAFDoc_DimTolToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_DimTolToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_DimTolToolDriver { - BinMXCAFDoc_DimTolToolDriver* _get_reference() { - return (BinMXCAFDoc_DimTolToolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_DimTolToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_DimTolToolDriver) %extend BinMXCAFDoc_DimTolToolDriver { %pythoncode { @@ -725,51 +419,7 @@ class BinMXCAFDoc_DocumentToolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_DocumentToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_DocumentToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_DocumentToolDriver::Handle_BinMXCAFDoc_DocumentToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_DocumentToolDriver; -class Handle_BinMXCAFDoc_DocumentToolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_DocumentToolDriver(); - Handle_BinMXCAFDoc_DocumentToolDriver(const Handle_BinMXCAFDoc_DocumentToolDriver &aHandle); - Handle_BinMXCAFDoc_DocumentToolDriver(const BinMXCAFDoc_DocumentToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_DocumentToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_DocumentToolDriver { - BinMXCAFDoc_DocumentToolDriver* _get_reference() { - return (BinMXCAFDoc_DocumentToolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_DocumentToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_DocumentToolDriver) %extend BinMXCAFDoc_DocumentToolDriver { %pythoncode { @@ -812,51 +462,7 @@ class BinMXCAFDoc_GraphNodeDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_GraphNodeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_GraphNodeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_GraphNodeDriver::Handle_BinMXCAFDoc_GraphNodeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_GraphNodeDriver; -class Handle_BinMXCAFDoc_GraphNodeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_GraphNodeDriver(); - Handle_BinMXCAFDoc_GraphNodeDriver(const Handle_BinMXCAFDoc_GraphNodeDriver &aHandle); - Handle_BinMXCAFDoc_GraphNodeDriver(const BinMXCAFDoc_GraphNodeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_GraphNodeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_GraphNodeDriver { - BinMXCAFDoc_GraphNodeDriver* _get_reference() { - return (BinMXCAFDoc_GraphNodeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_GraphNodeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_GraphNodeDriver) %extend BinMXCAFDoc_GraphNodeDriver { %pythoncode { @@ -899,51 +505,7 @@ class BinMXCAFDoc_LayerToolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_LayerToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_LayerToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_LayerToolDriver::Handle_BinMXCAFDoc_LayerToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_LayerToolDriver; -class Handle_BinMXCAFDoc_LayerToolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_LayerToolDriver(); - Handle_BinMXCAFDoc_LayerToolDriver(const Handle_BinMXCAFDoc_LayerToolDriver &aHandle); - Handle_BinMXCAFDoc_LayerToolDriver(const BinMXCAFDoc_LayerToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_LayerToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_LayerToolDriver { - BinMXCAFDoc_LayerToolDriver* _get_reference() { - return (BinMXCAFDoc_LayerToolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_LayerToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_LayerToolDriver) %extend BinMXCAFDoc_LayerToolDriver { %pythoncode { @@ -1014,51 +576,7 @@ class BinMXCAFDoc_LocationDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_LocationDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_LocationDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_LocationDriver::Handle_BinMXCAFDoc_LocationDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_LocationDriver; -class Handle_BinMXCAFDoc_LocationDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_LocationDriver(); - Handle_BinMXCAFDoc_LocationDriver(const Handle_BinMXCAFDoc_LocationDriver &aHandle); - Handle_BinMXCAFDoc_LocationDriver(const BinMXCAFDoc_LocationDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_LocationDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_LocationDriver { - BinMXCAFDoc_LocationDriver* _get_reference() { - return (BinMXCAFDoc_LocationDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_LocationDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_LocationDriver) %extend BinMXCAFDoc_LocationDriver { %pythoncode { @@ -1101,51 +619,7 @@ class BinMXCAFDoc_MaterialDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_MaterialDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_MaterialDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_MaterialDriver::Handle_BinMXCAFDoc_MaterialDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_MaterialDriver; -class Handle_BinMXCAFDoc_MaterialDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_MaterialDriver(); - Handle_BinMXCAFDoc_MaterialDriver(const Handle_BinMXCAFDoc_MaterialDriver &aHandle); - Handle_BinMXCAFDoc_MaterialDriver(const BinMXCAFDoc_MaterialDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_MaterialDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_MaterialDriver { - BinMXCAFDoc_MaterialDriver* _get_reference() { - return (BinMXCAFDoc_MaterialDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_MaterialDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_MaterialDriver) %extend BinMXCAFDoc_MaterialDriver { %pythoncode { @@ -1188,51 +662,7 @@ class BinMXCAFDoc_MaterialToolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_MaterialToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_MaterialToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_MaterialToolDriver::Handle_BinMXCAFDoc_MaterialToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_MaterialToolDriver; -class Handle_BinMXCAFDoc_MaterialToolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_MaterialToolDriver(); - Handle_BinMXCAFDoc_MaterialToolDriver(const Handle_BinMXCAFDoc_MaterialToolDriver &aHandle); - Handle_BinMXCAFDoc_MaterialToolDriver(const BinMXCAFDoc_MaterialToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_MaterialToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_MaterialToolDriver { - BinMXCAFDoc_MaterialToolDriver* _get_reference() { - return (BinMXCAFDoc_MaterialToolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_MaterialToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_MaterialToolDriver) %extend BinMXCAFDoc_MaterialToolDriver { %pythoncode { @@ -1275,51 +705,7 @@ class BinMXCAFDoc_ShapeToolDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_ShapeToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_ShapeToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_ShapeToolDriver::Handle_BinMXCAFDoc_ShapeToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_ShapeToolDriver; -class Handle_BinMXCAFDoc_ShapeToolDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_ShapeToolDriver(); - Handle_BinMXCAFDoc_ShapeToolDriver(const Handle_BinMXCAFDoc_ShapeToolDriver &aHandle); - Handle_BinMXCAFDoc_ShapeToolDriver(const BinMXCAFDoc_ShapeToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_ShapeToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_ShapeToolDriver { - BinMXCAFDoc_ShapeToolDriver* _get_reference() { - return (BinMXCAFDoc_ShapeToolDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_ShapeToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_ShapeToolDriver) %extend BinMXCAFDoc_ShapeToolDriver { %pythoncode { @@ -1362,51 +748,7 @@ class BinMXCAFDoc_VolumeDriver : public BinMDF_ADriver { }; -%extend BinMXCAFDoc_VolumeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinMXCAFDoc_VolumeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinMXCAFDoc_VolumeDriver::Handle_BinMXCAFDoc_VolumeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinMXCAFDoc_VolumeDriver; -class Handle_BinMXCAFDoc_VolumeDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinMXCAFDoc_VolumeDriver(); - Handle_BinMXCAFDoc_VolumeDriver(const Handle_BinMXCAFDoc_VolumeDriver &aHandle); - Handle_BinMXCAFDoc_VolumeDriver(const BinMXCAFDoc_VolumeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinMXCAFDoc_VolumeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinMXCAFDoc_VolumeDriver { - BinMXCAFDoc_VolumeDriver* _get_reference() { - return (BinMXCAFDoc_VolumeDriver*)$self->Access(); - } -}; - -%extend Handle_BinMXCAFDoc_VolumeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinMXCAFDoc_VolumeDriver) %extend BinMXCAFDoc_VolumeDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinObjMgt.i b/src/SWIG_files/wrapper/BinObjMgt.i index 40c3cf6f8..05fbd4443 100644 --- a/src/SWIG_files/wrapper/BinObjMgt.i +++ b/src/SWIG_files/wrapper/BinObjMgt.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define BINOBJMGTDOCSTRING -"No docstring provided." +"This package defines services to manage the storage +grain of data produced by applications. +" %enddef %module (package="OCC.Core", docstring=BINOBJMGTDOCSTRING) BinObjMgt @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinObjMgt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Byte * BinObjMgt_PByte; typedef Standard_ShortReal * BinObjMgt_PShortReal; @@ -67,6 +55,7 @@ typedef Standard_Character * BinObjMgt_PChar; /* public enums */ /* end public enums declaration */ + %nodefaultctor BinObjMgt_Persistent; class BinObjMgt_Persistent { public: diff --git a/src/SWIG_files/wrapper/BinTObjDrivers.i b/src/SWIG_files/wrapper/BinTObjDrivers.i index f42420db8..1b50ac0c3 100644 --- a/src/SWIG_files/wrapper/BinTObjDrivers.i +++ b/src/SWIG_files/wrapper/BinTObjDrivers.i @@ -34,31 +34,25 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinTObjDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinTObjDrivers_DocumentRetrievalDriver) +%wrap_handle(BinTObjDrivers_DocumentStorageDriver) +%wrap_handle(BinTObjDrivers_IntSparseArrayDriver) +%wrap_handle(BinTObjDrivers_ModelDriver) +%wrap_handle(BinTObjDrivers_ObjectDriver) +%wrap_handle(BinTObjDrivers_ReferenceDriver) +%wrap_handle(BinTObjDrivers_XYZDriver) + %rename(bintobjdrivers) BinTObjDrivers; %nodefaultctor BinTObjDrivers; class BinTObjDrivers { @@ -101,51 +95,7 @@ class BinTObjDrivers_DocumentRetrievalDriver : public BinLDrivers_DocumentRetrie }; -%extend BinTObjDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_DocumentRetrievalDriver::Handle_BinTObjDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_DocumentRetrievalDriver; -class Handle_BinTObjDrivers_DocumentRetrievalDriver : public Handle_BinLDrivers_DocumentRetrievalDriver { - - public: - // constructors - Handle_BinTObjDrivers_DocumentRetrievalDriver(); - Handle_BinTObjDrivers_DocumentRetrievalDriver(const Handle_BinTObjDrivers_DocumentRetrievalDriver &aHandle); - Handle_BinTObjDrivers_DocumentRetrievalDriver(const BinTObjDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_DocumentRetrievalDriver { - BinTObjDrivers_DocumentRetrievalDriver* _get_reference() { - return (BinTObjDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_DocumentRetrievalDriver) %extend BinTObjDrivers_DocumentRetrievalDriver { %pythoncode { @@ -168,51 +118,7 @@ class BinTObjDrivers_DocumentStorageDriver : public BinLDrivers_DocumentStorageD }; -%extend BinTObjDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_DocumentStorageDriver::Handle_BinTObjDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_DocumentStorageDriver; -class Handle_BinTObjDrivers_DocumentStorageDriver : public Handle_BinLDrivers_DocumentStorageDriver { - - public: - // constructors - Handle_BinTObjDrivers_DocumentStorageDriver(); - Handle_BinTObjDrivers_DocumentStorageDriver(const Handle_BinTObjDrivers_DocumentStorageDriver &aHandle); - Handle_BinTObjDrivers_DocumentStorageDriver(const BinTObjDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_DocumentStorageDriver { - BinTObjDrivers_DocumentStorageDriver* _get_reference() { - return (BinTObjDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_DocumentStorageDriver) %extend BinTObjDrivers_DocumentStorageDriver { %pythoncode { @@ -255,51 +161,7 @@ class BinTObjDrivers_IntSparseArrayDriver : public BinMDF_ADriver { }; -%extend BinTObjDrivers_IntSparseArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_IntSparseArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_IntSparseArrayDriver::Handle_BinTObjDrivers_IntSparseArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_IntSparseArrayDriver; -class Handle_BinTObjDrivers_IntSparseArrayDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinTObjDrivers_IntSparseArrayDriver(); - Handle_BinTObjDrivers_IntSparseArrayDriver(const Handle_BinTObjDrivers_IntSparseArrayDriver &aHandle); - Handle_BinTObjDrivers_IntSparseArrayDriver(const BinTObjDrivers_IntSparseArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_IntSparseArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_IntSparseArrayDriver { - BinTObjDrivers_IntSparseArrayDriver* _get_reference() { - return (BinTObjDrivers_IntSparseArrayDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_IntSparseArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_IntSparseArrayDriver) %extend BinTObjDrivers_IntSparseArrayDriver { %pythoncode { @@ -342,51 +204,7 @@ class BinTObjDrivers_ModelDriver : public BinMDF_ADriver { }; -%extend BinTObjDrivers_ModelDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_ModelDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_ModelDriver::Handle_BinTObjDrivers_ModelDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_ModelDriver; -class Handle_BinTObjDrivers_ModelDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinTObjDrivers_ModelDriver(); - Handle_BinTObjDrivers_ModelDriver(const Handle_BinTObjDrivers_ModelDriver &aHandle); - Handle_BinTObjDrivers_ModelDriver(const BinTObjDrivers_ModelDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_ModelDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_ModelDriver { - BinTObjDrivers_ModelDriver* _get_reference() { - return (BinTObjDrivers_ModelDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_ModelDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_ModelDriver) %extend BinTObjDrivers_ModelDriver { %pythoncode { @@ -429,51 +247,7 @@ class BinTObjDrivers_ObjectDriver : public BinMDF_ADriver { }; -%extend BinTObjDrivers_ObjectDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_ObjectDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_ObjectDriver::Handle_BinTObjDrivers_ObjectDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_ObjectDriver; -class Handle_BinTObjDrivers_ObjectDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinTObjDrivers_ObjectDriver(); - Handle_BinTObjDrivers_ObjectDriver(const Handle_BinTObjDrivers_ObjectDriver &aHandle); - Handle_BinTObjDrivers_ObjectDriver(const BinTObjDrivers_ObjectDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_ObjectDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_ObjectDriver { - BinTObjDrivers_ObjectDriver* _get_reference() { - return (BinTObjDrivers_ObjectDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_ObjectDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_ObjectDriver) %extend BinTObjDrivers_ObjectDriver { %pythoncode { @@ -516,51 +290,7 @@ class BinTObjDrivers_ReferenceDriver : public BinMDF_ADriver { }; -%extend BinTObjDrivers_ReferenceDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_ReferenceDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_ReferenceDriver::Handle_BinTObjDrivers_ReferenceDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_ReferenceDriver; -class Handle_BinTObjDrivers_ReferenceDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinTObjDrivers_ReferenceDriver(); - Handle_BinTObjDrivers_ReferenceDriver(const Handle_BinTObjDrivers_ReferenceDriver &aHandle); - Handle_BinTObjDrivers_ReferenceDriver(const BinTObjDrivers_ReferenceDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_ReferenceDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_ReferenceDriver { - BinTObjDrivers_ReferenceDriver* _get_reference() { - return (BinTObjDrivers_ReferenceDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_ReferenceDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_ReferenceDriver) %extend BinTObjDrivers_ReferenceDriver { %pythoncode { @@ -603,51 +333,7 @@ class BinTObjDrivers_XYZDriver : public BinMDF_ADriver { }; -%extend BinTObjDrivers_XYZDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinTObjDrivers_XYZDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinTObjDrivers_XYZDriver::Handle_BinTObjDrivers_XYZDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinTObjDrivers_XYZDriver; -class Handle_BinTObjDrivers_XYZDriver : public Handle_BinMDF_ADriver { - - public: - // constructors - Handle_BinTObjDrivers_XYZDriver(); - Handle_BinTObjDrivers_XYZDriver(const Handle_BinTObjDrivers_XYZDriver &aHandle); - Handle_BinTObjDrivers_XYZDriver(const BinTObjDrivers_XYZDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinTObjDrivers_XYZDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinTObjDrivers_XYZDriver { - BinTObjDrivers_XYZDriver* _get_reference() { - return (BinTObjDrivers_XYZDriver*)$self->Access(); - } -}; - -%extend Handle_BinTObjDrivers_XYZDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinTObjDrivers_XYZDriver) %extend BinTObjDrivers_XYZDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/BinXCAFDrivers.i b/src/SWIG_files/wrapper/BinXCAFDrivers.i index 26862b9a4..3f7125fb5 100644 --- a/src/SWIG_files/wrapper/BinXCAFDrivers.i +++ b/src/SWIG_files/wrapper/BinXCAFDrivers.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BINXCAFDRIVERSDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BINXCAFDRIVERSDOCSTRING) BinXCAFDrivers @@ -34,31 +34,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BinXCAFDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(BinXCAFDrivers_DocumentRetrievalDriver) +%wrap_handle(BinXCAFDrivers_DocumentStorageDriver) + %rename(binxcafdrivers) BinXCAFDrivers; class BinXCAFDrivers { public: @@ -102,51 +91,7 @@ class BinXCAFDrivers_DocumentRetrievalDriver : public BinDrivers_DocumentRetriev }; -%extend BinXCAFDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinXCAFDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinXCAFDrivers_DocumentRetrievalDriver::Handle_BinXCAFDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinXCAFDrivers_DocumentRetrievalDriver; -class Handle_BinXCAFDrivers_DocumentRetrievalDriver : public Handle_BinDrivers_DocumentRetrievalDriver { - - public: - // constructors - Handle_BinXCAFDrivers_DocumentRetrievalDriver(); - Handle_BinXCAFDrivers_DocumentRetrievalDriver(const Handle_BinXCAFDrivers_DocumentRetrievalDriver &aHandle); - Handle_BinXCAFDrivers_DocumentRetrievalDriver(const BinXCAFDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinXCAFDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinXCAFDrivers_DocumentRetrievalDriver { - BinXCAFDrivers_DocumentRetrievalDriver* _get_reference() { - return (BinXCAFDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_BinXCAFDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinXCAFDrivers_DocumentRetrievalDriver) %extend BinXCAFDrivers_DocumentRetrievalDriver { %pythoncode { @@ -171,51 +116,7 @@ class BinXCAFDrivers_DocumentStorageDriver : public BinDrivers_DocumentStorageDr }; -%extend BinXCAFDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_BinXCAFDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_BinXCAFDrivers_DocumentStorageDriver::Handle_BinXCAFDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_BinXCAFDrivers_DocumentStorageDriver; -class Handle_BinXCAFDrivers_DocumentStorageDriver : public Handle_BinDrivers_DocumentStorageDriver { - - public: - // constructors - Handle_BinXCAFDrivers_DocumentStorageDriver(); - Handle_BinXCAFDrivers_DocumentStorageDriver(const Handle_BinXCAFDrivers_DocumentStorageDriver &aHandle); - Handle_BinXCAFDrivers_DocumentStorageDriver(const BinXCAFDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_BinXCAFDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_BinXCAFDrivers_DocumentStorageDriver { - BinXCAFDrivers_DocumentStorageDriver* _get_reference() { - return (BinXCAFDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_BinXCAFDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(BinXCAFDrivers_DocumentStorageDriver) %extend BinXCAFDrivers_DocumentStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/Bisector.i b/src/SWIG_files/wrapper/Bisector.i index 5347b9e84..29032e38b 100644 --- a/src/SWIG_files/wrapper/Bisector.i +++ b/src/SWIG_files/wrapper/Bisector.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define BISECTORDOCSTRING -"No docstring provided." +"- Purpose : This package provides the bisecting line between two +geometric elements. +" %enddef %module (package="OCC.Core", docstring=BISECTORDOCSTRING) Bisector @@ -34,31 +36,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Bisector_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Bisector_Curve) +%wrap_handle(Bisector_BisecAna) +%wrap_handle(Bisector_BisecCC) +%wrap_handle(Bisector_BisecPC) + %rename(bisector) Bisector; class Bisector { public: @@ -237,51 +230,7 @@ class Bisector_Curve : public Geom2d_Curve { }; -%extend Bisector_Curve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bisector_Curve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bisector_Curve::Handle_Bisector_Curve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bisector_Curve; -class Handle_Bisector_Curve : public Handle_Geom2d_Curve { - - public: - // constructors - Handle_Bisector_Curve(); - Handle_Bisector_Curve(const Handle_Bisector_Curve &aHandle); - Handle_Bisector_Curve(const Bisector_Curve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bisector_Curve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bisector_Curve { - Bisector_Curve* _get_reference() { - return (Bisector_Curve*)$self->Access(); - } -}; - -%extend Handle_Bisector_Curve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bisector_Curve) %extend Bisector_Curve { %pythoncode { @@ -887,51 +836,7 @@ class Bisector_BisecAna : public Bisector_Curve { }; -%extend Bisector_BisecAna { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bisector_BisecAna(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bisector_BisecAna::Handle_Bisector_BisecAna %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bisector_BisecAna; -class Handle_Bisector_BisecAna : public Handle_Bisector_Curve { - - public: - // constructors - Handle_Bisector_BisecAna(); - Handle_Bisector_BisecAna(const Handle_Bisector_BisecAna &aHandle); - Handle_Bisector_BisecAna(const Bisector_BisecAna *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bisector_BisecAna DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bisector_BisecAna { - Bisector_BisecAna* _get_reference() { - return (Bisector_BisecAna*)$self->Access(); - } -}; - -%extend Handle_Bisector_BisecAna { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bisector_BisecAna) %extend Bisector_BisecAna { %pythoncode { @@ -1198,51 +1103,7 @@ class Bisector_BisecCC : public Bisector_Curve { }; -%extend Bisector_BisecCC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bisector_BisecCC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bisector_BisecCC::Handle_Bisector_BisecCC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bisector_BisecCC; -class Handle_Bisector_BisecCC : public Handle_Bisector_Curve { - - public: - // constructors - Handle_Bisector_BisecCC(); - Handle_Bisector_BisecCC(const Handle_Bisector_BisecCC &aHandle); - Handle_Bisector_BisecCC(const Bisector_BisecCC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bisector_BisecCC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bisector_BisecCC { - Bisector_BisecCC* _get_reference() { - return (Bisector_BisecCC*)$self->Access(); - } -}; - -%extend Handle_Bisector_BisecCC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bisector_BisecCC) %extend Bisector_BisecCC { %pythoncode { @@ -1497,51 +1358,7 @@ class Bisector_BisecPC : public Bisector_Curve { }; -%extend Bisector_BisecPC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bisector_BisecPC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bisector_BisecPC::Handle_Bisector_BisecPC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bisector_BisecPC; -class Handle_Bisector_BisecPC : public Handle_Bisector_Curve { - - public: - // constructors - Handle_Bisector_BisecPC(); - Handle_Bisector_BisecPC(const Handle_Bisector_BisecPC &aHandle); - Handle_Bisector_BisecPC(const Bisector_BisecPC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bisector_BisecPC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bisector_BisecPC { - Bisector_BisecPC* _get_reference() { - return (Bisector_BisecPC*)$self->Access(); - } -}; - -%extend Handle_Bisector_BisecPC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bisector_BisecPC) %extend Bisector_BisecPC { %pythoncode { diff --git a/src/SWIG_files/wrapper/Blend.i b/src/SWIG_files/wrapper/Blend.i index e29438636..84b40ca48 100644 --- a/src/SWIG_files/wrapper/Blend.i +++ b/src/SWIG_files/wrapper/Blend.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define BLENDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=BLENDDOCSTRING) Blend @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Blend_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -77,6 +63,8 @@ enum Blend_DecrochStatus { /* end public enums declaration */ +%wrap_handle(Blend_SequenceNodeOfSequenceOfPoint) + %nodefaultctor Blend_AppFunction; class Blend_AppFunction : public math_FunctionSetWithDerivatives { public: @@ -1103,51 +1091,7 @@ class Blend_SequenceNodeOfSequenceOfPoint : public TCollection_SeqNode { }; -%extend Blend_SequenceNodeOfSequenceOfPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Blend_SequenceNodeOfSequenceOfPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Blend_SequenceNodeOfSequenceOfPoint::Handle_Blend_SequenceNodeOfSequenceOfPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Blend_SequenceNodeOfSequenceOfPoint; -class Handle_Blend_SequenceNodeOfSequenceOfPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Blend_SequenceNodeOfSequenceOfPoint(); - Handle_Blend_SequenceNodeOfSequenceOfPoint(const Handle_Blend_SequenceNodeOfSequenceOfPoint &aHandle); - Handle_Blend_SequenceNodeOfSequenceOfPoint(const Blend_SequenceNodeOfSequenceOfPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Blend_SequenceNodeOfSequenceOfPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Blend_SequenceNodeOfSequenceOfPoint { - Blend_SequenceNodeOfSequenceOfPoint* _get_reference() { - return (Blend_SequenceNodeOfSequenceOfPoint*)$self->Access(); - } -}; - -%extend Handle_Blend_SequenceNodeOfSequenceOfPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Blend_SequenceNodeOfSequenceOfPoint) %extend Blend_SequenceNodeOfSequenceOfPoint { %pythoncode { diff --git a/src/SWIG_files/wrapper/BlendFunc.i b/src/SWIG_files/wrapper/BlendFunc.i index 3ed2d422c..968ef867a 100644 --- a/src/SWIG_files/wrapper/BlendFunc.i +++ b/src/SWIG_files/wrapper/BlendFunc.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define BLENDFUNCDOCSTRING -"No docstring provided." +"This package provides a set of generic functions, that can +instantiated to compute blendings between two surfaces +(Constant radius, Evolutive radius, Ruled surface). + +" %enddef %module (package="OCC.Core", docstring=BLENDFUNCDOCSTRING) BlendFunc @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BlendFunc_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,6 +56,7 @@ enum BlendFunc_SectionShape { /* end public enums declaration */ + %rename(blendfunc) BlendFunc; class BlendFunc { public: diff --git a/src/SWIG_files/wrapper/BlendFunc_headers.i b/src/SWIG_files/wrapper/BlendFunc_headers.i index 0279bfa3c..6624e6923 100644 --- a/src/SWIG_files/wrapper/BlendFunc_headers.i +++ b/src/SWIG_files/wrapper/BlendFunc_headers.i @@ -475,6 +475,71 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Bnd.i b/src/SWIG_files/wrapper/Bnd.i index d692f9455..109e9a899 100644 --- a/src/SWIG_files/wrapper/Bnd.i +++ b/src/SWIG_files/wrapper/Bnd.i @@ -18,7 +18,30 @@ along with pythonOCC. If not, see . */ %define BNDDOCSTRING -"No docstring provided." +"Supports the Boundings Volumes. A Bounding Volume +is used to bound a shape to optimising algorithms. +If a point is outside the Bounding Volume of a +shape it is also outside the shape. The contrary +is not necessarily true. + +Various classes are then implemented to describe +the usual Bounding volumes. Not all classes are +implemented. + +in 3D : +Box Implemented +BoundSortBox Implemented + +in 2D : +Box2d Implemented +BoundSortBox2d Implemented + + + +-Level : Public. +All methods of all classes will be public. + +" %enddef %module (package="OCC.Core", docstring=BNDDOCSTRING) Bnd @@ -34,31 +57,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Bnd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Bnd_HArray1OfBox) +%wrap_handle(Bnd_HArray1OfBox2d) +%wrap_handle(Bnd_HArray1OfSphere) +%wrap_handle(Bnd_SequenceNodeOfSeqOfBox) + %nodefaultctor Bnd_Array1OfBox; class Bnd_Array1OfBox { public: @@ -1764,51 +1778,7 @@ class Bnd_HArray1OfBox : public MMgt_TShared { }; -%extend Bnd_HArray1OfBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bnd_HArray1OfBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bnd_HArray1OfBox::Handle_Bnd_HArray1OfBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bnd_HArray1OfBox; -class Handle_Bnd_HArray1OfBox : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Bnd_HArray1OfBox(); - Handle_Bnd_HArray1OfBox(const Handle_Bnd_HArray1OfBox &aHandle); - Handle_Bnd_HArray1OfBox(const Bnd_HArray1OfBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bnd_HArray1OfBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bnd_HArray1OfBox { - Bnd_HArray1OfBox* _get_reference() { - return (Bnd_HArray1OfBox*)$self->Access(); - } -}; - -%extend Handle_Bnd_HArray1OfBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bnd_HArray1OfBox) %extend Bnd_HArray1OfBox { %pythoncode { @@ -1885,51 +1855,7 @@ class Bnd_HArray1OfBox2d : public MMgt_TShared { }; -%extend Bnd_HArray1OfBox2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bnd_HArray1OfBox2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bnd_HArray1OfBox2d::Handle_Bnd_HArray1OfBox2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bnd_HArray1OfBox2d; -class Handle_Bnd_HArray1OfBox2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Bnd_HArray1OfBox2d(); - Handle_Bnd_HArray1OfBox2d(const Handle_Bnd_HArray1OfBox2d &aHandle); - Handle_Bnd_HArray1OfBox2d(const Bnd_HArray1OfBox2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bnd_HArray1OfBox2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bnd_HArray1OfBox2d { - Bnd_HArray1OfBox2d* _get_reference() { - return (Bnd_HArray1OfBox2d*)$self->Access(); - } -}; - -%extend Handle_Bnd_HArray1OfBox2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bnd_HArray1OfBox2d) %extend Bnd_HArray1OfBox2d { %pythoncode { @@ -2006,51 +1932,7 @@ class Bnd_HArray1OfSphere : public MMgt_TShared { }; -%extend Bnd_HArray1OfSphere { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bnd_HArray1OfSphere(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bnd_HArray1OfSphere::Handle_Bnd_HArray1OfSphere %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bnd_HArray1OfSphere; -class Handle_Bnd_HArray1OfSphere : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Bnd_HArray1OfSphere(); - Handle_Bnd_HArray1OfSphere(const Handle_Bnd_HArray1OfSphere &aHandle); - Handle_Bnd_HArray1OfSphere(const Bnd_HArray1OfSphere *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bnd_HArray1OfSphere DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bnd_HArray1OfSphere { - Bnd_HArray1OfSphere* _get_reference() { - return (Bnd_HArray1OfSphere*)$self->Access(); - } -}; - -%extend Handle_Bnd_HArray1OfSphere { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bnd_HArray1OfSphere) %extend Bnd_HArray1OfSphere { %pythoncode { @@ -2220,51 +2102,7 @@ class Bnd_SequenceNodeOfSeqOfBox : public TCollection_SeqNode { }; -%extend Bnd_SequenceNodeOfSeqOfBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Bnd_SequenceNodeOfSeqOfBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Bnd_SequenceNodeOfSeqOfBox::Handle_Bnd_SequenceNodeOfSeqOfBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Bnd_SequenceNodeOfSeqOfBox; -class Handle_Bnd_SequenceNodeOfSeqOfBox : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Bnd_SequenceNodeOfSeqOfBox(); - Handle_Bnd_SequenceNodeOfSeqOfBox(const Handle_Bnd_SequenceNodeOfSeqOfBox &aHandle); - Handle_Bnd_SequenceNodeOfSeqOfBox(const Bnd_SequenceNodeOfSeqOfBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Bnd_SequenceNodeOfSeqOfBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Bnd_SequenceNodeOfSeqOfBox { - Bnd_SequenceNodeOfSeqOfBox* _get_reference() { - return (Bnd_SequenceNodeOfSeqOfBox*)$self->Access(); - } -}; - -%extend Handle_Bnd_SequenceNodeOfSeqOfBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Bnd_SequenceNodeOfSeqOfBox) %extend Bnd_SequenceNodeOfSeqOfBox { %pythoncode { diff --git a/src/SWIG_files/wrapper/BndLib.i b/src/SWIG_files/wrapper/BndLib.i index 16127822e..c1b678955 100644 --- a/src/SWIG_files/wrapper/BndLib.i +++ b/src/SWIG_files/wrapper/BndLib.i @@ -18,7 +18,29 @@ along with pythonOCC. If not, see . */ %define BNDLIBDOCSTRING -"No docstring provided." +"The BndLib package provides functions to add a geometric primitive to a bounding box. +Note: these functions work with gp objects, optionally +limited by parameter values. If the curves and surfaces +provided by the gp package are not explicitly +parameterized, they still have an implicit parameterization, +similar to that which they infer for the equivalent Geom or Geom2d objects. +Add : Package to compute the bounding boxes for elementary +objects from gp in 2d and 3d . + +AddCurve2d : A class to compute the bounding box for a curve +in 2d dimensions ;the curve is defined by a tool + +AddCurve : A class to compute the bounding box for a curve +in 3d dimensions ;the curve is defined by a tool + +AddSurface : A class to compute the bounding box for a surface. +The surface is defined by a tool for the geometry and another +tool for the topology (only the edges in 2d dimensions) + +-Level : Public. +All methods of all classes will be public. + +" %enddef %module (package="OCC.Core", docstring=BNDLIBDOCSTRING) BndLib @@ -34,31 +56,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include BndLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(bndlib) BndLib; class BndLib { public: diff --git a/src/SWIG_files/wrapper/BndLib_headers.i b/src/SWIG_files/wrapper/BndLib_headers.i index 02cf67e97..33b9bfd60 100644 --- a/src/SWIG_files/wrapper/BndLib_headers.i +++ b/src/SWIG_files/wrapper/BndLib_headers.i @@ -208,6 +208,49 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/CDF.i b/src/SWIG_files/wrapper/CDF.i index 4d3f1badf..f4f64d9df 100644 --- a/src/SWIG_files/wrapper/CDF.i +++ b/src/SWIG_files/wrapper/CDF.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define CDFDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=CDFDOCSTRING) CDF @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include CDF_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -85,6 +71,14 @@ enum CDF_StoreSetNameStatus { /* end public enums declaration */ +%wrap_handle(CDF_Application) +%wrap_handle(CDF_Directory) +%wrap_handle(CDF_MetaDataDriver) +%wrap_handle(CDF_MetaDataDriverFactory) +%wrap_handle(CDF_Session) +%wrap_handle(CDF_StoreList) +%wrap_handle(CDF_FWOSDriver) + %rename(cdf) CDF; class CDF { public: @@ -248,51 +242,7 @@ class CDF_Application : public CDM_Application { }; -%extend CDF_Application { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_Application(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_Application::Handle_CDF_Application %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_Application; -class Handle_CDF_Application : public Handle_CDM_Application { - - public: - // constructors - Handle_CDF_Application(); - Handle_CDF_Application(const Handle_CDF_Application &aHandle); - Handle_CDF_Application(const CDF_Application *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_Application DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_Application { - CDF_Application* _get_reference() { - return (CDF_Application*)$self->Access(); - } -}; - -%extend Handle_CDF_Application { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_Application) %extend CDF_Application { %pythoncode { @@ -353,51 +303,7 @@ class CDF_Directory : public Standard_Transient { }; -%extend CDF_Directory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_Directory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_Directory::Handle_CDF_Directory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_Directory; -class Handle_CDF_Directory : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDF_Directory(); - Handle_CDF_Directory(const Handle_CDF_Directory &aHandle); - Handle_CDF_Directory(const CDF_Directory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_Directory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_Directory { - CDF_Directory* _get_reference() { - return (CDF_Directory*)$self->Access(); - } -}; - -%extend Handle_CDF_Directory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_Directory) %extend CDF_Directory { %pythoncode { @@ -591,51 +497,7 @@ class CDF_MetaDataDriver : public Standard_Transient { }; -%extend CDF_MetaDataDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_MetaDataDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_MetaDataDriver::Handle_CDF_MetaDataDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_MetaDataDriver; -class Handle_CDF_MetaDataDriver : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDF_MetaDataDriver(); - Handle_CDF_MetaDataDriver(const Handle_CDF_MetaDataDriver &aHandle); - Handle_CDF_MetaDataDriver(const CDF_MetaDataDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_MetaDataDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_MetaDataDriver { - CDF_MetaDataDriver* _get_reference() { - return (CDF_MetaDataDriver*)$self->Access(); - } -}; - -%extend Handle_CDF_MetaDataDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_MetaDataDriver) %extend CDF_MetaDataDriver { %pythoncode { @@ -652,51 +514,7 @@ class CDF_MetaDataDriverFactory : public Standard_Transient { }; -%extend CDF_MetaDataDriverFactory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_MetaDataDriverFactory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_MetaDataDriverFactory::Handle_CDF_MetaDataDriverFactory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_MetaDataDriverFactory; -class Handle_CDF_MetaDataDriverFactory : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDF_MetaDataDriverFactory(); - Handle_CDF_MetaDataDriverFactory(const Handle_CDF_MetaDataDriverFactory &aHandle); - Handle_CDF_MetaDataDriverFactory(const CDF_MetaDataDriverFactory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_MetaDataDriverFactory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_MetaDataDriverFactory { - CDF_MetaDataDriverFactory* _get_reference() { - return (CDF_MetaDataDriverFactory*)$self->Access(); - } -}; - -%extend Handle_CDF_MetaDataDriverFactory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_MetaDataDriverFactory) %extend CDF_MetaDataDriverFactory { %pythoncode { @@ -757,51 +575,7 @@ class CDF_Session : public Standard_Transient { }; -%extend CDF_Session { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_Session(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_Session::Handle_CDF_Session %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_Session; -class Handle_CDF_Session : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDF_Session(); - Handle_CDF_Session(const Handle_CDF_Session &aHandle); - Handle_CDF_Session(const CDF_Session *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_Session DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_Session { - CDF_Session* _get_reference() { - return (CDF_Session*)$self->Access(); - } -}; - -%extend Handle_CDF_Session { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_Session) %extend CDF_Session { %pythoncode { @@ -1059,51 +833,7 @@ class CDF_StoreList : public Standard_Transient { }; -%extend CDF_StoreList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_StoreList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_StoreList::Handle_CDF_StoreList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_StoreList; -class Handle_CDF_StoreList : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDF_StoreList(); - Handle_CDF_StoreList(const Handle_CDF_StoreList &aHandle); - Handle_CDF_StoreList(const CDF_StoreList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_StoreList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_StoreList { - CDF_StoreList* _get_reference() { - return (CDF_StoreList*)$self->Access(); - } -}; - -%extend Handle_CDF_StoreList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_StoreList) %extend CDF_StoreList { %pythoncode { @@ -1199,51 +929,7 @@ class CDF_FWOSDriver : public CDF_MetaDataDriver { }; -%extend CDF_FWOSDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDF_FWOSDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDF_FWOSDriver::Handle_CDF_FWOSDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDF_FWOSDriver; -class Handle_CDF_FWOSDriver : public Handle_CDF_MetaDataDriver { - - public: - // constructors - Handle_CDF_FWOSDriver(); - Handle_CDF_FWOSDriver(const Handle_CDF_FWOSDriver &aHandle); - Handle_CDF_FWOSDriver(const CDF_FWOSDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDF_FWOSDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDF_FWOSDriver { - CDF_FWOSDriver* _get_reference() { - return (CDF_FWOSDriver*)$self->Access(); - } -}; - -%extend Handle_CDF_FWOSDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDF_FWOSDriver) %extend CDF_FWOSDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/CDM.i b/src/SWIG_files/wrapper/CDM.i index 366b1d318..270661c5a 100644 --- a/src/SWIG_files/wrapper/CDM.i +++ b/src/SWIG_files/wrapper/CDM.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define CDMDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=CDMDOCSTRING) CDM @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include CDM_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef CDM_Document * CDM_DocumentPointer; typedef TColStd_DataMapOfStringInteger CDM_NamesDirectory; @@ -69,6 +55,19 @@ enum CDM_CanCloseStatus { /* end public enums declaration */ +%wrap_handle(CDM_Application) +%wrap_handle(CDM_DataMapNodeOfMetaDataLookUpTable) +%wrap_handle(CDM_DataMapNodeOfPresentationDirectory) +%wrap_handle(CDM_Document) +%wrap_handle(CDM_ListNodeOfListOfDocument) +%wrap_handle(CDM_ListNodeOfListOfReferences) +%wrap_handle(CDM_MessageDriver) +%wrap_handle(CDM_MetaData) +%wrap_handle(CDM_Reference) +%wrap_handle(CDM_StdMapNodeOfMapOfDocument) +%wrap_handle(CDM_COutMessageDriver) +%wrap_handle(CDM_NullMessageDriver) + %nodefaultctor CDM_Application; class CDM_Application : public Standard_Transient { public: @@ -115,51 +114,7 @@ class CDM_Application : public Standard_Transient { }; -%extend CDM_Application { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_Application(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_Application::Handle_CDM_Application %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_Application; -class Handle_CDM_Application : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDM_Application(); - Handle_CDM_Application(const Handle_CDM_Application &aHandle); - Handle_CDM_Application(const CDM_Application *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_Application DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_Application { - CDM_Application* _get_reference() { - return (CDM_Application*)$self->Access(); - } -}; - -%extend Handle_CDM_Application { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_Application) %extend CDM_Application { %pythoncode { @@ -260,51 +215,7 @@ class CDM_DataMapNodeOfMetaDataLookUpTable : public TCollection_MapNode { }; -%extend CDM_DataMapNodeOfMetaDataLookUpTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_DataMapNodeOfMetaDataLookUpTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_DataMapNodeOfMetaDataLookUpTable::Handle_CDM_DataMapNodeOfMetaDataLookUpTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_DataMapNodeOfMetaDataLookUpTable; -class Handle_CDM_DataMapNodeOfMetaDataLookUpTable : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_CDM_DataMapNodeOfMetaDataLookUpTable(); - Handle_CDM_DataMapNodeOfMetaDataLookUpTable(const Handle_CDM_DataMapNodeOfMetaDataLookUpTable &aHandle); - Handle_CDM_DataMapNodeOfMetaDataLookUpTable(const CDM_DataMapNodeOfMetaDataLookUpTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_DataMapNodeOfMetaDataLookUpTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_DataMapNodeOfMetaDataLookUpTable { - CDM_DataMapNodeOfMetaDataLookUpTable* _get_reference() { - return (CDM_DataMapNodeOfMetaDataLookUpTable*)$self->Access(); - } -}; - -%extend Handle_CDM_DataMapNodeOfMetaDataLookUpTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_DataMapNodeOfMetaDataLookUpTable) %extend CDM_DataMapNodeOfMetaDataLookUpTable { %pythoncode { @@ -335,51 +246,7 @@ class CDM_DataMapNodeOfPresentationDirectory : public TCollection_MapNode { }; -%extend CDM_DataMapNodeOfPresentationDirectory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_DataMapNodeOfPresentationDirectory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_DataMapNodeOfPresentationDirectory::Handle_CDM_DataMapNodeOfPresentationDirectory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_DataMapNodeOfPresentationDirectory; -class Handle_CDM_DataMapNodeOfPresentationDirectory : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_CDM_DataMapNodeOfPresentationDirectory(); - Handle_CDM_DataMapNodeOfPresentationDirectory(const Handle_CDM_DataMapNodeOfPresentationDirectory &aHandle); - Handle_CDM_DataMapNodeOfPresentationDirectory(const CDM_DataMapNodeOfPresentationDirectory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_DataMapNodeOfPresentationDirectory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_DataMapNodeOfPresentationDirectory { - CDM_DataMapNodeOfPresentationDirectory* _get_reference() { - return (CDM_DataMapNodeOfPresentationDirectory*)$self->Access(); - } -}; - -%extend Handle_CDM_DataMapNodeOfPresentationDirectory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_DataMapNodeOfPresentationDirectory) %extend CDM_DataMapNodeOfPresentationDirectory { %pythoncode { @@ -905,51 +772,7 @@ class CDM_Document : public Standard_Transient { }; -%extend CDM_Document { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_Document(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_Document::Handle_CDM_Document %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_Document; -class Handle_CDM_Document : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDM_Document(); - Handle_CDM_Document(const Handle_CDM_Document &aHandle); - Handle_CDM_Document(const CDM_Document *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_Document DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_Document { - CDM_Document* _get_reference() { - return (CDM_Document*)$self->Access(); - } -}; - -%extend Handle_CDM_Document { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_Document) %extend CDM_Document { %pythoncode { @@ -1078,51 +901,7 @@ class CDM_ListNodeOfListOfDocument : public TCollection_MapNode { }; -%extend CDM_ListNodeOfListOfDocument { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_ListNodeOfListOfDocument(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_ListNodeOfListOfDocument::Handle_CDM_ListNodeOfListOfDocument %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_ListNodeOfListOfDocument; -class Handle_CDM_ListNodeOfListOfDocument : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_CDM_ListNodeOfListOfDocument(); - Handle_CDM_ListNodeOfListOfDocument(const Handle_CDM_ListNodeOfListOfDocument &aHandle); - Handle_CDM_ListNodeOfListOfDocument(const CDM_ListNodeOfListOfDocument *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_ListNodeOfListOfDocument DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_ListNodeOfListOfDocument { - CDM_ListNodeOfListOfDocument* _get_reference() { - return (CDM_ListNodeOfListOfDocument*)$self->Access(); - } -}; - -%extend Handle_CDM_ListNodeOfListOfDocument { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_ListNodeOfListOfDocument) %extend CDM_ListNodeOfListOfDocument { %pythoncode { @@ -1147,51 +926,7 @@ class CDM_ListNodeOfListOfReferences : public TCollection_MapNode { }; -%extend CDM_ListNodeOfListOfReferences { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_ListNodeOfListOfReferences(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_ListNodeOfListOfReferences::Handle_CDM_ListNodeOfListOfReferences %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_ListNodeOfListOfReferences; -class Handle_CDM_ListNodeOfListOfReferences : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_CDM_ListNodeOfListOfReferences(); - Handle_CDM_ListNodeOfListOfReferences(const Handle_CDM_ListNodeOfListOfReferences &aHandle); - Handle_CDM_ListNodeOfListOfReferences(const CDM_ListNodeOfListOfReferences *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_ListNodeOfListOfReferences DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_ListNodeOfListOfReferences { - CDM_ListNodeOfListOfReferences* _get_reference() { - return (CDM_ListNodeOfListOfReferences*)$self->Access(); - } -}; - -%extend Handle_CDM_ListNodeOfListOfReferences { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_ListNodeOfListOfReferences) %extend CDM_ListNodeOfListOfReferences { %pythoncode { @@ -1574,51 +1309,7 @@ class CDM_MessageDriver : public Standard_Transient { }; -%extend CDM_MessageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_MessageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_MessageDriver::Handle_CDM_MessageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_MessageDriver; -class Handle_CDM_MessageDriver : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDM_MessageDriver(); - Handle_CDM_MessageDriver(const Handle_CDM_MessageDriver &aHandle); - Handle_CDM_MessageDriver(const CDM_MessageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_MessageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_MessageDriver { - CDM_MessageDriver* _get_reference() { - return (CDM_MessageDriver*)$self->Access(); - } -}; - -%extend Handle_CDM_MessageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_MessageDriver) %extend CDM_MessageDriver { %pythoncode { @@ -1725,51 +1416,7 @@ class CDM_MetaData : public Standard_Transient { }; -%extend CDM_MetaData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_MetaData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_MetaData::Handle_CDM_MetaData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_MetaData; -class Handle_CDM_MetaData : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDM_MetaData(); - Handle_CDM_MetaData(const Handle_CDM_MetaData &aHandle); - Handle_CDM_MetaData(const CDM_MetaData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_MetaData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_MetaData { - CDM_MetaData* _get_reference() { - return (CDM_MetaData*)$self->Access(); - } -}; - -%extend Handle_CDM_MetaData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_MetaData) %extend CDM_MetaData { %pythoncode { @@ -1968,51 +1615,7 @@ class CDM_Reference : public Standard_Transient { }; -%extend CDM_Reference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_Reference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_Reference::Handle_CDM_Reference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_Reference; -class Handle_CDM_Reference : public Handle_Standard_Transient { - - public: - // constructors - Handle_CDM_Reference(); - Handle_CDM_Reference(const Handle_CDM_Reference &aHandle); - Handle_CDM_Reference(const CDM_Reference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_Reference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_Reference { - CDM_Reference* _get_reference() { - return (CDM_Reference*)$self->Access(); - } -}; - -%extend Handle_CDM_Reference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_Reference) %extend CDM_Reference { %pythoncode { @@ -2076,51 +1679,7 @@ class CDM_StdMapNodeOfMapOfDocument : public TCollection_MapNode { }; -%extend CDM_StdMapNodeOfMapOfDocument { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_StdMapNodeOfMapOfDocument(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_StdMapNodeOfMapOfDocument::Handle_CDM_StdMapNodeOfMapOfDocument %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_StdMapNodeOfMapOfDocument; -class Handle_CDM_StdMapNodeOfMapOfDocument : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_CDM_StdMapNodeOfMapOfDocument(); - Handle_CDM_StdMapNodeOfMapOfDocument(const Handle_CDM_StdMapNodeOfMapOfDocument &aHandle); - Handle_CDM_StdMapNodeOfMapOfDocument(const CDM_StdMapNodeOfMapOfDocument *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_StdMapNodeOfMapOfDocument DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_StdMapNodeOfMapOfDocument { - CDM_StdMapNodeOfMapOfDocument* _get_reference() { - return (CDM_StdMapNodeOfMapOfDocument*)$self->Access(); - } -}; - -%extend Handle_CDM_StdMapNodeOfMapOfDocument { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_StdMapNodeOfMapOfDocument) %extend CDM_StdMapNodeOfMapOfDocument { %pythoncode { @@ -2139,51 +1698,7 @@ class CDM_COutMessageDriver : public CDM_MessageDriver { }; -%extend CDM_COutMessageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_COutMessageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_COutMessageDriver::Handle_CDM_COutMessageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_COutMessageDriver; -class Handle_CDM_COutMessageDriver : public Handle_CDM_MessageDriver { - - public: - // constructors - Handle_CDM_COutMessageDriver(); - Handle_CDM_COutMessageDriver(const Handle_CDM_COutMessageDriver &aHandle); - Handle_CDM_COutMessageDriver(const CDM_COutMessageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_COutMessageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_COutMessageDriver { - CDM_COutMessageDriver* _get_reference() { - return (CDM_COutMessageDriver*)$self->Access(); - } -}; - -%extend Handle_CDM_COutMessageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_COutMessageDriver) %extend CDM_COutMessageDriver { %pythoncode { @@ -2206,51 +1721,7 @@ class CDM_NullMessageDriver : public CDM_MessageDriver { }; -%extend CDM_NullMessageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_CDM_NullMessageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_CDM_NullMessageDriver::Handle_CDM_NullMessageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_CDM_NullMessageDriver; -class Handle_CDM_NullMessageDriver : public Handle_CDM_MessageDriver { - - public: - // constructors - Handle_CDM_NullMessageDriver(); - Handle_CDM_NullMessageDriver(const Handle_CDM_NullMessageDriver &aHandle); - Handle_CDM_NullMessageDriver(const CDM_NullMessageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_CDM_NullMessageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_CDM_NullMessageDriver { - CDM_NullMessageDriver* _get_reference() { - return (CDM_NullMessageDriver*)$self->Access(); - } -}; - -%extend Handle_CDM_NullMessageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(CDM_NullMessageDriver) %extend CDM_NullMessageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/CPnts.i b/src/SWIG_files/wrapper/CPnts.i index 0277064cc..73524840b 100644 --- a/src/SWIG_files/wrapper/CPnts.i +++ b/src/SWIG_files/wrapper/CPnts.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define CPNTSDOCSTRING -"No docstring provided." +"- Purpose : +This package contains the definition of the geometric +algorithms used to compute characteristic points on +parametrized curves in 3d or 2d space. +This package defines the external geometric entities, with +their requirements, used in the algorithms. +" %enddef %module (package="OCC.Core", docstring=CPNTSDOCSTRING) CPnts @@ -34,25 +40,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include CPnts_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Real ( * CPnts_RealFunction ) ( const Standard_Real , const Standard_Address ); /* end typedefs declaration */ @@ -60,6 +52,7 @@ typedef Standard_Real ( * CPnts_RealFunction ) ( const Standard_Real , /* public enums */ /* end public enums declaration */ + class CPnts_AbscissaPoint { public: %feature("compactdefaultargs") Length; diff --git a/src/SWIG_files/wrapper/CPnts_headers.i b/src/SWIG_files/wrapper/CPnts_headers.i index 3141c1ceb..eefdc7378 100644 --- a/src/SWIG_files/wrapper/CPnts_headers.i +++ b/src/SWIG_files/wrapper/CPnts_headers.i @@ -227,6 +227,71 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/CSLib.i b/src/SWIG_files/wrapper/CSLib.i index 72687eeb5..c5e24effa 100644 --- a/src/SWIG_files/wrapper/CSLib.i +++ b/src/SWIG_files/wrapper/CSLib.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define CSLIBDOCSTRING -"No docstring provided." +"This package implements functions for basis geometric +computation on curves and surfaces. +The tolerance criterions used in this package are +Resolution from package gp and RealEpsilon from class +Real of package Standard. +" %enddef %module (package="OCC.Core", docstring=CSLIBDOCSTRING) CSLib @@ -34,25 +39,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include CSLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -81,6 +72,7 @@ enum CSLib_DerivativeStatus { /* end public enums declaration */ + %rename(cslib) CSLib; class CSLib { public: diff --git a/src/SWIG_files/wrapper/ChFi2d.i b/src/SWIG_files/wrapper/ChFi2d.i index fd5608211..c7342df60 100644 --- a/src/SWIG_files/wrapper/ChFi2d.i +++ b/src/SWIG_files/wrapper/ChFi2d.i @@ -18,7 +18,26 @@ along with pythonOCC. If not, see . */ %define CHFI2DDOCSTRING -"No docstring provided." +"This package contains the algorithms used to build +fillets or chamfers on planar wire. + +This package provides two algorithms for 2D fillets: +ChFi2d_Builder - it constructs a fillet or chamfer +for linear and circular edges of a face. +ChFi2d_FilletAPI - it encapsulates two algorithms: +ChFi2d_AnaFilletAlgo - analytical constructor of the fillet. +It works only for linear and circular edges, +having a common point. +ChFi2d_FilletAlgo - iteration recursive method constructing +the fillet edge for any type of edges including +ellipses and b-splines. +The edges may even have no common point. +ChFi2d_ChamferAPI - an algoroithm for construction of chamfers +between two linear edges of a plane. + +The algorithms ChFi2d_AnaFilletAlgo and ChFi2d_FilletAlgo may be used directly +or via the interface class ChFi2d_FilletAPI. +" %enddef %module (package="OCC.Core", docstring=CHFI2DDOCSTRING) ChFi2d @@ -34,25 +53,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ChFi2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -75,6 +80,7 @@ enum ChFi2d_ConstructionError { /* end public enums declaration */ + %rename(chfi2d) ChFi2d; %nodefaultctor ChFi2d; class ChFi2d { diff --git a/src/SWIG_files/wrapper/ChFi2d_headers.i b/src/SWIG_files/wrapper/ChFi2d_headers.i index a1f0cd2db..e1e396e00 100644 --- a/src/SWIG_files/wrapper/ChFi2d_headers.i +++ b/src/SWIG_files/wrapper/ChFi2d_headers.i @@ -239,6 +239,39 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/ChFi3d.i b/src/SWIG_files/wrapper/ChFi3d.i index 2d4637df0..d3c1d41d3 100644 --- a/src/SWIG_files/wrapper/ChFi3d.i +++ b/src/SWIG_files/wrapper/ChFi3d.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define CHFI3DDOCSTRING -"No docstring provided." +"creation of spatial fillets on a solid. +" %enddef %module (package="OCC.Core", docstring=CHFI3DDOCSTRING) ChFi3d @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ChFi3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +52,7 @@ enum ChFi3d_FilletShape { /* end public enums declaration */ + %rename(chfi3d) ChFi3d; class ChFi3d { public: diff --git a/src/SWIG_files/wrapper/ChFi3d_headers.i b/src/SWIG_files/wrapper/ChFi3d_headers.i index 9598abf8d..5527c398b 100644 --- a/src/SWIG_files/wrapper/ChFi3d_headers.i +++ b/src/SWIG_files/wrapper/ChFi3d_headers.i @@ -1061,6 +1061,188 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/ChFiDS.i b/src/SWIG_files/wrapper/ChFiDS.i index 0335ab4e3..dcf5b62fb 100644 --- a/src/SWIG_files/wrapper/ChFiDS.i +++ b/src/SWIG_files/wrapper/ChFiDS.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define CHFIDSDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=CHFIDSDOCSTRING) ChFiDS @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ChFiDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -83,6 +70,21 @@ enum ChFiDS_ErrorStatus { /* end public enums declaration */ +%wrap_handle(ChFiDS_HData) +%wrap_handle(ChFiDS_HElSpine) +%wrap_handle(ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe) +%wrap_handle(ChFiDS_ListNodeOfListOfHElSpine) +%wrap_handle(ChFiDS_ListNodeOfListOfStripe) +%wrap_handle(ChFiDS_ListNodeOfRegularities) +%wrap_handle(ChFiDS_SecHArray1) +%wrap_handle(ChFiDS_SequenceNodeOfSequenceOfSpine) +%wrap_handle(ChFiDS_SequenceNodeOfSequenceOfSurfData) +%wrap_handle(ChFiDS_Spine) +%wrap_handle(ChFiDS_Stripe) +%wrap_handle(ChFiDS_SurfData) +%wrap_handle(ChFiDS_ChamfSpine) +%wrap_handle(ChFiDS_FilSpine) + %nodefaultctor ChFiDS_CircSection; class ChFiDS_CircSection { public: @@ -775,51 +777,7 @@ class ChFiDS_HData : public MMgt_TShared { }; -%extend ChFiDS_HData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_HData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_HData::Handle_ChFiDS_HData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_HData; -class Handle_ChFiDS_HData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ChFiDS_HData(); - Handle_ChFiDS_HData(const Handle_ChFiDS_HData &aHandle); - Handle_ChFiDS_HData(const ChFiDS_HData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_HData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_HData { - ChFiDS_HData* _get_reference() { - return (ChFiDS_HData*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_HData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_HData) %extend ChFiDS_HData { %pythoncode { @@ -860,51 +818,7 @@ class ChFiDS_HElSpine : public Adaptor3d_HCurve { }; -%extend ChFiDS_HElSpine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_HElSpine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_HElSpine::Handle_ChFiDS_HElSpine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_HElSpine; -class Handle_ChFiDS_HElSpine : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_ChFiDS_HElSpine(); - Handle_ChFiDS_HElSpine(const Handle_ChFiDS_HElSpine &aHandle); - Handle_ChFiDS_HElSpine(const ChFiDS_HElSpine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_HElSpine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_HElSpine { - ChFiDS_HElSpine* _get_reference() { - return (ChFiDS_HElSpine*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_HElSpine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_HElSpine) %extend ChFiDS_HElSpine { %pythoncode { @@ -956,51 +870,7 @@ class ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe : public TCo }; -%extend ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe::Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe; -class Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe(); - Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe(const Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe &aHandle); - Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe(const ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe { - ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe* _get_reference() { - return (ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe) %extend ChFiDS_IndexedDataMapNodeOfIndexedDataMapOfVertexListOfStripe { %pythoncode { @@ -1257,51 +1127,7 @@ class ChFiDS_ListNodeOfListOfHElSpine : public TCollection_MapNode { }; -%extend ChFiDS_ListNodeOfListOfHElSpine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_ListNodeOfListOfHElSpine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_ListNodeOfListOfHElSpine::Handle_ChFiDS_ListNodeOfListOfHElSpine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_ListNodeOfListOfHElSpine; -class Handle_ChFiDS_ListNodeOfListOfHElSpine : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ChFiDS_ListNodeOfListOfHElSpine(); - Handle_ChFiDS_ListNodeOfListOfHElSpine(const Handle_ChFiDS_ListNodeOfListOfHElSpine &aHandle); - Handle_ChFiDS_ListNodeOfListOfHElSpine(const ChFiDS_ListNodeOfListOfHElSpine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_ListNodeOfListOfHElSpine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_ListNodeOfListOfHElSpine { - ChFiDS_ListNodeOfListOfHElSpine* _get_reference() { - return (ChFiDS_ListNodeOfListOfHElSpine*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_ListNodeOfListOfHElSpine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_ListNodeOfListOfHElSpine) %extend ChFiDS_ListNodeOfListOfHElSpine { %pythoncode { @@ -1326,51 +1152,7 @@ class ChFiDS_ListNodeOfListOfStripe : public TCollection_MapNode { }; -%extend ChFiDS_ListNodeOfListOfStripe { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_ListNodeOfListOfStripe(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_ListNodeOfListOfStripe::Handle_ChFiDS_ListNodeOfListOfStripe %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_ListNodeOfListOfStripe; -class Handle_ChFiDS_ListNodeOfListOfStripe : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ChFiDS_ListNodeOfListOfStripe(); - Handle_ChFiDS_ListNodeOfListOfStripe(const Handle_ChFiDS_ListNodeOfListOfStripe &aHandle); - Handle_ChFiDS_ListNodeOfListOfStripe(const ChFiDS_ListNodeOfListOfStripe *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_ListNodeOfListOfStripe DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_ListNodeOfListOfStripe { - ChFiDS_ListNodeOfListOfStripe* _get_reference() { - return (ChFiDS_ListNodeOfListOfStripe*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_ListNodeOfListOfStripe { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_ListNodeOfListOfStripe) %extend ChFiDS_ListNodeOfListOfStripe { %pythoncode { @@ -1395,51 +1177,7 @@ class ChFiDS_ListNodeOfRegularities : public TCollection_MapNode { }; -%extend ChFiDS_ListNodeOfRegularities { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_ListNodeOfRegularities(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_ListNodeOfRegularities::Handle_ChFiDS_ListNodeOfRegularities %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_ListNodeOfRegularities; -class Handle_ChFiDS_ListNodeOfRegularities : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ChFiDS_ListNodeOfRegularities(); - Handle_ChFiDS_ListNodeOfRegularities(const Handle_ChFiDS_ListNodeOfRegularities &aHandle); - Handle_ChFiDS_ListNodeOfRegularities(const ChFiDS_ListNodeOfRegularities *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_ListNodeOfRegularities DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_ListNodeOfRegularities { - ChFiDS_ListNodeOfRegularities* _get_reference() { - return (ChFiDS_ListNodeOfRegularities*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_ListNodeOfRegularities { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_ListNodeOfRegularities) %extend ChFiDS_ListNodeOfRegularities { %pythoncode { @@ -2112,51 +1850,7 @@ class ChFiDS_SecHArray1 : public MMgt_TShared { }; -%extend ChFiDS_SecHArray1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_SecHArray1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_SecHArray1::Handle_ChFiDS_SecHArray1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_SecHArray1; -class Handle_ChFiDS_SecHArray1 : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ChFiDS_SecHArray1(); - Handle_ChFiDS_SecHArray1(const Handle_ChFiDS_SecHArray1 &aHandle); - Handle_ChFiDS_SecHArray1(const ChFiDS_SecHArray1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_SecHArray1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_SecHArray1 { - ChFiDS_SecHArray1* _get_reference() { - return (ChFiDS_SecHArray1*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_SecHArray1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_SecHArray1) %extend ChFiDS_SecHArray1 { %pythoncode { @@ -2183,51 +1877,7 @@ class ChFiDS_SequenceNodeOfSequenceOfSpine : public TCollection_SeqNode { }; -%extend ChFiDS_SequenceNodeOfSequenceOfSpine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_SequenceNodeOfSequenceOfSpine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_SequenceNodeOfSequenceOfSpine::Handle_ChFiDS_SequenceNodeOfSequenceOfSpine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_SequenceNodeOfSequenceOfSpine; -class Handle_ChFiDS_SequenceNodeOfSequenceOfSpine : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ChFiDS_SequenceNodeOfSequenceOfSpine(); - Handle_ChFiDS_SequenceNodeOfSequenceOfSpine(const Handle_ChFiDS_SequenceNodeOfSequenceOfSpine &aHandle); - Handle_ChFiDS_SequenceNodeOfSequenceOfSpine(const ChFiDS_SequenceNodeOfSequenceOfSpine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_SequenceNodeOfSequenceOfSpine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_SequenceNodeOfSequenceOfSpine { - ChFiDS_SequenceNodeOfSequenceOfSpine* _get_reference() { - return (ChFiDS_SequenceNodeOfSequenceOfSpine*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_SequenceNodeOfSequenceOfSpine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_SequenceNodeOfSequenceOfSpine) %extend ChFiDS_SequenceNodeOfSequenceOfSpine { %pythoncode { @@ -2254,51 +1904,7 @@ class ChFiDS_SequenceNodeOfSequenceOfSurfData : public TCollection_SeqNode { }; -%extend ChFiDS_SequenceNodeOfSequenceOfSurfData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData::Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData; -class Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData(); - Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData(const Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData &aHandle); - Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData(const ChFiDS_SequenceNodeOfSequenceOfSurfData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData { - ChFiDS_SequenceNodeOfSequenceOfSurfData* _get_reference() { - return (ChFiDS_SequenceNodeOfSequenceOfSurfData*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_SequenceNodeOfSequenceOfSurfData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_SequenceNodeOfSequenceOfSurfData) %extend ChFiDS_SequenceNodeOfSequenceOfSurfData { %pythoncode { @@ -2983,51 +2589,7 @@ class ChFiDS_Spine : public MMgt_TShared { }; -%extend ChFiDS_Spine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_Spine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_Spine::Handle_ChFiDS_Spine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_Spine; -class Handle_ChFiDS_Spine : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ChFiDS_Spine(); - Handle_ChFiDS_Spine(const Handle_ChFiDS_Spine &aHandle); - Handle_ChFiDS_Spine(const ChFiDS_Spine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_Spine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_Spine { - ChFiDS_Spine* _get_reference() { - return (ChFiDS_Spine*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_Spine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_Spine) %extend ChFiDS_Spine { %pythoncode { @@ -3344,51 +2906,7 @@ class ChFiDS_Stripe : public MMgt_TShared { }; -%extend ChFiDS_Stripe { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_Stripe(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_Stripe::Handle_ChFiDS_Stripe %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_Stripe; -class Handle_ChFiDS_Stripe : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ChFiDS_Stripe(); - Handle_ChFiDS_Stripe(const Handle_ChFiDS_Stripe &aHandle); - Handle_ChFiDS_Stripe(const ChFiDS_Stripe *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_Stripe DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_Stripe { - ChFiDS_Stripe* _get_reference() { - return (ChFiDS_Stripe*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_Stripe { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_Stripe) %extend ChFiDS_Stripe { %pythoncode { @@ -3817,51 +3335,7 @@ class ChFiDS_SurfData : public MMgt_TShared { }; -%extend ChFiDS_SurfData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_SurfData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_SurfData::Handle_ChFiDS_SurfData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_SurfData; -class Handle_ChFiDS_SurfData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ChFiDS_SurfData(); - Handle_ChFiDS_SurfData(const Handle_ChFiDS_SurfData &aHandle); - Handle_ChFiDS_SurfData(const ChFiDS_SurfData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_SurfData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_SurfData { - ChFiDS_SurfData* _get_reference() { - return (ChFiDS_SurfData*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_SurfData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_SurfData) %extend ChFiDS_SurfData { %pythoncode { @@ -3938,51 +3412,7 @@ class ChFiDS_ChamfSpine : public ChFiDS_Spine { }; -%extend ChFiDS_ChamfSpine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_ChamfSpine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_ChamfSpine::Handle_ChFiDS_ChamfSpine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_ChamfSpine; -class Handle_ChFiDS_ChamfSpine : public Handle_ChFiDS_Spine { - - public: - // constructors - Handle_ChFiDS_ChamfSpine(); - Handle_ChFiDS_ChamfSpine(const Handle_ChFiDS_ChamfSpine &aHandle); - Handle_ChFiDS_ChamfSpine(const ChFiDS_ChamfSpine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_ChamfSpine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_ChamfSpine { - ChFiDS_ChamfSpine* _get_reference() { - return (ChFiDS_ChamfSpine*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_ChamfSpine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_ChamfSpine) %extend ChFiDS_ChamfSpine { %pythoncode { @@ -4137,51 +3567,7 @@ class ChFiDS_FilSpine : public ChFiDS_Spine { }; -%extend ChFiDS_FilSpine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiDS_FilSpine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiDS_FilSpine::Handle_ChFiDS_FilSpine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiDS_FilSpine; -class Handle_ChFiDS_FilSpine : public Handle_ChFiDS_Spine { - - public: - // constructors - Handle_ChFiDS_FilSpine(); - Handle_ChFiDS_FilSpine(const Handle_ChFiDS_FilSpine &aHandle); - Handle_ChFiDS_FilSpine(const ChFiDS_FilSpine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiDS_FilSpine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiDS_FilSpine { - ChFiDS_FilSpine* _get_reference() { - return (ChFiDS_FilSpine*)$self->Access(); - } -}; - -%extend Handle_ChFiDS_FilSpine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiDS_FilSpine) %extend ChFiDS_FilSpine { %pythoncode { diff --git a/src/SWIG_files/wrapper/ChFiKPart.i b/src/SWIG_files/wrapper/ChFiKPart.i index 6ccdd7b4b..adbed2a97 100644 --- a/src/SWIG_files/wrapper/ChFiKPart.i +++ b/src/SWIG_files/wrapper/ChFiKPart.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define CHFIKPARTDOCSTRING -"No docstring provided." +"Fonctions de remplissage pour une SurfData, dans +les cas particulers de conges/chanfreins suivants : +- cylindre/plan entre 2 surfaces planes, +- tore/sphere/cone entre un plan et un cylindre othogonal, +- tore/sphere/cone entre un plan et un cone othogonal, +- tore/sphere/cone entre un plan et un tore othogonal, +- tore/cone entre un plan et une sphere. +" %enddef %module (package="OCC.Core", docstring=CHFIKPARTDOCSTRING) ChFiKPart @@ -34,31 +41,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ChFiKPart_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ChFiKPart_DataMapNodeOfRstMap) + class ChFiKPart_ComputeData { public: %feature("compactdefaultargs") Compute; @@ -249,51 +244,7 @@ class ChFiKPart_DataMapNodeOfRstMap : public TCollection_MapNode { }; -%extend ChFiKPart_DataMapNodeOfRstMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ChFiKPart_DataMapNodeOfRstMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ChFiKPart_DataMapNodeOfRstMap::Handle_ChFiKPart_DataMapNodeOfRstMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ChFiKPart_DataMapNodeOfRstMap; -class Handle_ChFiKPart_DataMapNodeOfRstMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ChFiKPart_DataMapNodeOfRstMap(); - Handle_ChFiKPart_DataMapNodeOfRstMap(const Handle_ChFiKPart_DataMapNodeOfRstMap &aHandle); - Handle_ChFiKPart_DataMapNodeOfRstMap(const ChFiKPart_DataMapNodeOfRstMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ChFiKPart_DataMapNodeOfRstMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ChFiKPart_DataMapNodeOfRstMap { - ChFiKPart_DataMapNodeOfRstMap* _get_reference() { - return (ChFiKPart_DataMapNodeOfRstMap*)$self->Access(); - } -}; - -%extend Handle_ChFiKPart_DataMapNodeOfRstMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ChFiKPart_DataMapNodeOfRstMap) %extend ChFiKPart_DataMapNodeOfRstMap { %pythoncode { diff --git a/src/SWIG_files/wrapper/Contap.i b/src/SWIG_files/wrapper/Contap.i index 41a03240c..d053e029e 100644 --- a/src/SWIG_files/wrapper/Contap.i +++ b/src/SWIG_files/wrapper/Contap.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define CONTAPDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=CONTAPDOCSTRING) Contap @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Contap_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -73,6 +60,14 @@ enum Contap_TFunction { /* end public enums declaration */ +%wrap_handle(Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking) +%wrap_handle(Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch) +%wrap_handle(Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch) +%wrap_handle(Contap_SequenceNodeOfTheSequenceOfLine) +%wrap_handle(Contap_SequenceNodeOfTheSequenceOfPoint) +%wrap_handle(Contap_TheHSequenceOfPoint) +%wrap_handle(Contap_TheIWLineOfTheIWalking) + %nodefaultctor Contap_ArcFunction; class Contap_ArcFunction : public math_FunctionWithDerivative { public: @@ -1162,51 +1157,7 @@ class Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking : public TCollection_Se }; -%extend Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking::Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking; -class Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking(); - Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking(const Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking &aHandle); - Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking(const Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking { - Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking* _get_reference() { - return (Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking*)$self->Access(); - } -}; - -%extend Handle_Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking) %extend Contap_SequenceNodeOfSequenceOfIWLineOfTheIWalking { %pythoncode { @@ -1233,51 +1184,7 @@ class Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch : public TCollection_S }; -%extend Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch::Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch; -class Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch(); - Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch(const Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch &aHandle); - Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch(const Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch { - Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch* _get_reference() { - return (Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch*)$self->Access(); - } -}; - -%extend Handle_Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch) %extend Contap_SequenceNodeOfSequenceOfPathPointOfTheSearch { %pythoncode { @@ -1304,51 +1211,7 @@ class Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch : public TCollection_Seq }; -%extend Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch::Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch; -class Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch(); - Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch(const Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch &aHandle); - Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch(const Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch { - Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch* _get_reference() { - return (Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch*)$self->Access(); - } -}; - -%extend Handle_Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch) %extend Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch { %pythoncode { @@ -1375,51 +1238,7 @@ class Contap_SequenceNodeOfTheSequenceOfLine : public TCollection_SeqNode { }; -%extend Contap_SequenceNodeOfTheSequenceOfLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_SequenceNodeOfTheSequenceOfLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_SequenceNodeOfTheSequenceOfLine::Handle_Contap_SequenceNodeOfTheSequenceOfLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_SequenceNodeOfTheSequenceOfLine; -class Handle_Contap_SequenceNodeOfTheSequenceOfLine : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Contap_SequenceNodeOfTheSequenceOfLine(); - Handle_Contap_SequenceNodeOfTheSequenceOfLine(const Handle_Contap_SequenceNodeOfTheSequenceOfLine &aHandle); - Handle_Contap_SequenceNodeOfTheSequenceOfLine(const Contap_SequenceNodeOfTheSequenceOfLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_SequenceNodeOfTheSequenceOfLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_SequenceNodeOfTheSequenceOfLine { - Contap_SequenceNodeOfTheSequenceOfLine* _get_reference() { - return (Contap_SequenceNodeOfTheSequenceOfLine*)$self->Access(); - } -}; - -%extend Handle_Contap_SequenceNodeOfTheSequenceOfLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_SequenceNodeOfTheSequenceOfLine) %extend Contap_SequenceNodeOfTheSequenceOfLine { %pythoncode { @@ -1446,51 +1265,7 @@ class Contap_SequenceNodeOfTheSequenceOfPoint : public TCollection_SeqNode { }; -%extend Contap_SequenceNodeOfTheSequenceOfPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_SequenceNodeOfTheSequenceOfPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_SequenceNodeOfTheSequenceOfPoint::Handle_Contap_SequenceNodeOfTheSequenceOfPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_SequenceNodeOfTheSequenceOfPoint; -class Handle_Contap_SequenceNodeOfTheSequenceOfPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Contap_SequenceNodeOfTheSequenceOfPoint(); - Handle_Contap_SequenceNodeOfTheSequenceOfPoint(const Handle_Contap_SequenceNodeOfTheSequenceOfPoint &aHandle); - Handle_Contap_SequenceNodeOfTheSequenceOfPoint(const Contap_SequenceNodeOfTheSequenceOfPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_SequenceNodeOfTheSequenceOfPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_SequenceNodeOfTheSequenceOfPoint { - Contap_SequenceNodeOfTheSequenceOfPoint* _get_reference() { - return (Contap_SequenceNodeOfTheSequenceOfPoint*)$self->Access(); - } -}; - -%extend Handle_Contap_SequenceNodeOfTheSequenceOfPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_SequenceNodeOfTheSequenceOfPoint) %extend Contap_SequenceNodeOfTheSequenceOfPoint { %pythoncode { @@ -2277,51 +2052,7 @@ class Contap_TheHSequenceOfPoint : public MMgt_TShared { }; -%extend Contap_TheHSequenceOfPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_TheHSequenceOfPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_TheHSequenceOfPoint::Handle_Contap_TheHSequenceOfPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_TheHSequenceOfPoint; -class Handle_Contap_TheHSequenceOfPoint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Contap_TheHSequenceOfPoint(); - Handle_Contap_TheHSequenceOfPoint(const Handle_Contap_TheHSequenceOfPoint &aHandle); - Handle_Contap_TheHSequenceOfPoint(const Contap_TheHSequenceOfPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_TheHSequenceOfPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_TheHSequenceOfPoint { - Contap_TheHSequenceOfPoint* _get_reference() { - return (Contap_TheHSequenceOfPoint*)$self->Access(); - } -}; - -%extend Handle_Contap_TheHSequenceOfPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_TheHSequenceOfPoint) %extend Contap_TheHSequenceOfPoint { %pythoncode { @@ -2498,51 +2229,7 @@ class Contap_TheIWLineOfTheIWalking : public MMgt_TShared { }; -%extend Contap_TheIWLineOfTheIWalking { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Contap_TheIWLineOfTheIWalking(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Contap_TheIWLineOfTheIWalking::Handle_Contap_TheIWLineOfTheIWalking %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Contap_TheIWLineOfTheIWalking; -class Handle_Contap_TheIWLineOfTheIWalking : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Contap_TheIWLineOfTheIWalking(); - Handle_Contap_TheIWLineOfTheIWalking(const Handle_Contap_TheIWLineOfTheIWalking &aHandle); - Handle_Contap_TheIWLineOfTheIWalking(const Contap_TheIWLineOfTheIWalking *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Contap_TheIWLineOfTheIWalking DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Contap_TheIWLineOfTheIWalking { - Contap_TheIWLineOfTheIWalking* _get_reference() { - return (Contap_TheIWLineOfTheIWalking*)$self->Access(); - } -}; - -%extend Handle_Contap_TheIWLineOfTheIWalking { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Contap_TheIWLineOfTheIWalking) %extend Contap_TheIWLineOfTheIWalking { %pythoncode { diff --git a/src/SWIG_files/wrapper/Convert.i b/src/SWIG_files/wrapper/Convert.i index 4c02ee477..f9cdd5ead 100644 --- a/src/SWIG_files/wrapper/Convert.i +++ b/src/SWIG_files/wrapper/Convert.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define CONVERTDOCSTRING -"No docstring provided." +"- Purpose: +The Convert package provides algorithms to convert the following into a BSpline curve or surface: +- a bounded curve based on an elementary 2D curve (line, circle or conic) from the gp package, +- a bounded surface based on an elementary surface (cylinder, cone, sphere or torus) from the gp package, +- a series of adjacent 2D or 3D Bezier curves defined by their poles. +These algorithms compute the data needed to define the resulting BSpline curve or surface. +This elementary data (degrees, periodic characteristics, poles and weights, knots and +multiplicities) may then be used directly in an algorithm, or can be used to construct the curve +or the surface by calling the appropriate constructor provided by the classes +Geom2d_BSplineCurve, Geom_BSplineCurve or Geom_BSplineSurface. +" %enddef %module (package="OCC.Core", docstring=CONVERTDOCSTRING) Convert @@ -34,25 +44,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Convert_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef void Convert_CosAndSinEvalFunction ( Standard_Real , const Standard_Integer , const TColgp_Array1OfPnt2d & , const TColStd_Array1OfReal & , const TColStd_Array1OfInteger & , Standard_Real Result [ 2 ] ); typedef TColgp_SequenceOfArray1OfPnt2d Convert_SequenceOfArray1OfPoles2d; @@ -72,6 +68,8 @@ enum Convert_ParameterisationType { /* end public enums declaration */ +%wrap_handle(Convert_SequenceNodeOfSequenceOfArray1OfPoles) + %nodefaultctor Convert_CompBezierCurves2dToBSplineCurve2d; class Convert_CompBezierCurves2dToBSplineCurve2d { public: @@ -698,51 +696,7 @@ class Convert_SequenceNodeOfSequenceOfArray1OfPoles : public TCollection_SeqNode }; -%extend Convert_SequenceNodeOfSequenceOfArray1OfPoles { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles::Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles; -class Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles(); - Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles(const Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles &aHandle); - Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles(const Convert_SequenceNodeOfSequenceOfArray1OfPoles *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles { - Convert_SequenceNodeOfSequenceOfArray1OfPoles* _get_reference() { - return (Convert_SequenceNodeOfSequenceOfArray1OfPoles*)$self->Access(); - } -}; - -%extend Handle_Convert_SequenceNodeOfSequenceOfArray1OfPoles { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Convert_SequenceNodeOfSequenceOfArray1OfPoles) %extend Convert_SequenceNodeOfSequenceOfArray1OfPoles { %pythoncode { diff --git a/src/SWIG_files/wrapper/Dico.i b/src/SWIG_files/wrapper/Dico.i index 60210fa65..83c0093d9 100644 --- a/src/SWIG_files/wrapper/Dico.i +++ b/src/SWIG_files/wrapper/Dico.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define DICODOCSTRING -"No docstring provided." +"-Purpose : Defines alphanumeric dictionaries and iterators on them +Those are generic classes (Iterator is nested in Dictionary) +Three default instantiations are offered : +with Integer and Handle Objects (Persistent and Transient) +" %enddef %module (package="OCC.Core", docstring=DICODOCSTRING) Dico @@ -34,31 +38,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Dico_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Dico_DictionaryOfInteger) +%wrap_handle(Dico_DictionaryOfTransient) +%wrap_handle(Dico_StackItemOfDictionaryOfInteger) +%wrap_handle(Dico_StackItemOfDictionaryOfTransient) + %nodefaultctor Dico_DictionaryOfInteger; class Dico_DictionaryOfInteger : public MMgt_TShared { public: @@ -203,51 +198,7 @@ class Dico_DictionaryOfInteger : public MMgt_TShared { }; -%extend Dico_DictionaryOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Dico_DictionaryOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Dico_DictionaryOfInteger::Handle_Dico_DictionaryOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Dico_DictionaryOfInteger; -class Handle_Dico_DictionaryOfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Dico_DictionaryOfInteger(); - Handle_Dico_DictionaryOfInteger(const Handle_Dico_DictionaryOfInteger &aHandle); - Handle_Dico_DictionaryOfInteger(const Dico_DictionaryOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Dico_DictionaryOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Dico_DictionaryOfInteger { - Dico_DictionaryOfInteger* _get_reference() { - return (Dico_DictionaryOfInteger*)$self->Access(); - } -}; - -%extend Handle_Dico_DictionaryOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Dico_DictionaryOfInteger) %extend Dico_DictionaryOfInteger { %pythoncode { @@ -398,51 +349,7 @@ class Dico_DictionaryOfTransient : public MMgt_TShared { }; -%extend Dico_DictionaryOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Dico_DictionaryOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Dico_DictionaryOfTransient::Handle_Dico_DictionaryOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Dico_DictionaryOfTransient; -class Handle_Dico_DictionaryOfTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Dico_DictionaryOfTransient(); - Handle_Dico_DictionaryOfTransient(const Handle_Dico_DictionaryOfTransient &aHandle); - Handle_Dico_DictionaryOfTransient(const Dico_DictionaryOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Dico_DictionaryOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Dico_DictionaryOfTransient { - Dico_DictionaryOfTransient* _get_reference() { - return (Dico_DictionaryOfTransient*)$self->Access(); - } -}; - -%extend Handle_Dico_DictionaryOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Dico_DictionaryOfTransient) %extend Dico_DictionaryOfTransient { %pythoncode { @@ -585,51 +492,7 @@ class Dico_StackItemOfDictionaryOfInteger : public MMgt_TShared { }; -%extend Dico_StackItemOfDictionaryOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Dico_StackItemOfDictionaryOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Dico_StackItemOfDictionaryOfInteger::Handle_Dico_StackItemOfDictionaryOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Dico_StackItemOfDictionaryOfInteger; -class Handle_Dico_StackItemOfDictionaryOfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Dico_StackItemOfDictionaryOfInteger(); - Handle_Dico_StackItemOfDictionaryOfInteger(const Handle_Dico_StackItemOfDictionaryOfInteger &aHandle); - Handle_Dico_StackItemOfDictionaryOfInteger(const Dico_StackItemOfDictionaryOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Dico_StackItemOfDictionaryOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Dico_StackItemOfDictionaryOfInteger { - Dico_StackItemOfDictionaryOfInteger* _get_reference() { - return (Dico_StackItemOfDictionaryOfInteger*)$self->Access(); - } -}; - -%extend Handle_Dico_StackItemOfDictionaryOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Dico_StackItemOfDictionaryOfInteger) %extend Dico_StackItemOfDictionaryOfInteger { %pythoncode { @@ -666,51 +529,7 @@ class Dico_StackItemOfDictionaryOfTransient : public MMgt_TShared { }; -%extend Dico_StackItemOfDictionaryOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Dico_StackItemOfDictionaryOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Dico_StackItemOfDictionaryOfTransient::Handle_Dico_StackItemOfDictionaryOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Dico_StackItemOfDictionaryOfTransient; -class Handle_Dico_StackItemOfDictionaryOfTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Dico_StackItemOfDictionaryOfTransient(); - Handle_Dico_StackItemOfDictionaryOfTransient(const Handle_Dico_StackItemOfDictionaryOfTransient &aHandle); - Handle_Dico_StackItemOfDictionaryOfTransient(const Dico_StackItemOfDictionaryOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Dico_StackItemOfDictionaryOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Dico_StackItemOfDictionaryOfTransient { - Dico_StackItemOfDictionaryOfTransient* _get_reference() { - return (Dico_StackItemOfDictionaryOfTransient*)$self->Access(); - } -}; - -%extend Handle_Dico_StackItemOfDictionaryOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Dico_StackItemOfDictionaryOfTransient) %extend Dico_StackItemOfDictionaryOfTransient { %pythoncode { diff --git a/src/SWIG_files/wrapper/Draft.i b/src/SWIG_files/wrapper/Draft.i index 963a7ac14..0112b097c 100644 --- a/src/SWIG_files/wrapper/Draft.i +++ b/src/SWIG_files/wrapper/Draft.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define DRAFTDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=DRAFTDOCSTRING) Draft @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Draft_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,6 +52,11 @@ enum Draft_ErrorStatus { /* end public enums declaration */ +%wrap_handle(Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo) +%wrap_handle(Draft_DataMapNodeOfDataMapOfFaceFaceInfo) +%wrap_handle(Draft_DataMapNodeOfDataMapOfVertexVertexInfo) +%wrap_handle(Draft_Modification) + %rename(draft) Draft; class Draft { public: @@ -216,51 +207,7 @@ class Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo : public TCollection_MapNode { }; -%extend Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo::Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo; -class Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo(); - Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo(const Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo &aHandle); - Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo(const Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo { - Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo* _get_reference() { - return (Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo*)$self->Access(); - } -}; - -%extend Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo) %extend Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo { %pythoncode { @@ -291,51 +238,7 @@ class Draft_DataMapNodeOfDataMapOfFaceFaceInfo : public TCollection_MapNode { }; -%extend Draft_DataMapNodeOfDataMapOfFaceFaceInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo::Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo; -class Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo(); - Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo(const Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo &aHandle); - Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo(const Draft_DataMapNodeOfDataMapOfFaceFaceInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo { - Draft_DataMapNodeOfDataMapOfFaceFaceInfo* _get_reference() { - return (Draft_DataMapNodeOfDataMapOfFaceFaceInfo*)$self->Access(); - } -}; - -%extend Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Draft_DataMapNodeOfDataMapOfFaceFaceInfo) %extend Draft_DataMapNodeOfDataMapOfFaceFaceInfo { %pythoncode { @@ -366,51 +269,7 @@ class Draft_DataMapNodeOfDataMapOfVertexVertexInfo : public TCollection_MapNode }; -%extend Draft_DataMapNodeOfDataMapOfVertexVertexInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo::Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo; -class Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo(); - Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo(const Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo &aHandle); - Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo(const Draft_DataMapNodeOfDataMapOfVertexVertexInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo { - Draft_DataMapNodeOfDataMapOfVertexVertexInfo* _get_reference() { - return (Draft_DataMapNodeOfDataMapOfVertexVertexInfo*)$self->Access(); - } -}; - -%extend Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Draft_DataMapNodeOfDataMapOfVertexVertexInfo) %extend Draft_DataMapNodeOfDataMapOfVertexVertexInfo { %pythoncode { @@ -1014,51 +873,7 @@ class Draft_Modification : public BRepTools_Modification { }; -%extend Draft_Modification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Draft_Modification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Draft_Modification::Handle_Draft_Modification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Draft_Modification; -class Handle_Draft_Modification : public Handle_BRepTools_Modification { - - public: - // constructors - Handle_Draft_Modification(); - Handle_Draft_Modification(const Handle_Draft_Modification &aHandle); - Handle_Draft_Modification(const Draft_Modification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Draft_Modification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Draft_Modification { - Draft_Modification* _get_reference() { - return (Draft_Modification*)$self->Access(); - } -}; - -%extend Handle_Draft_Modification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Draft_Modification) %extend Draft_Modification { %pythoncode { diff --git a/src/SWIG_files/wrapper/DsgPrs.i b/src/SWIG_files/wrapper/DsgPrs.i index d77ab1551..fcf1ab6a1 100644 --- a/src/SWIG_files/wrapper/DsgPrs.i +++ b/src/SWIG_files/wrapper/DsgPrs.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define DSGPRSDOCSTRING -"No docstring provided." +"Describes Standard Presentations for DsgIHM objects +" %enddef %module (package="OCC.Core", docstring=DSGPRSDOCSTRING) DsgPrs @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include DsgPrs_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/Dynamic.i b/src/SWIG_files/wrapper/Dynamic.i index cc40602b0..b11304db9 100644 --- a/src/SWIG_files/wrapper/Dynamic.i +++ b/src/SWIG_files/wrapper/Dynamic.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Dynamic_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/ElCLib.i b/src/SWIG_files/wrapper/ElCLib.i index e92b73b85..8cd944a1d 100644 --- a/src/SWIG_files/wrapper/ElCLib.i +++ b/src/SWIG_files/wrapper/ElCLib.i @@ -18,7 +18,26 @@ along with pythonOCC. If not, see . */ %define ELCLIBDOCSTRING -"No docstring provided." +"- Purpose: Provides functions for basic geometric computations on +elementary curves such as conics and lines in 2D and 3D space. +This includes: +- calculation of a point or derived vector on a 2D or +3D curve where: +- the curve is provided by the gp package, or +defined in reference form (as in the gp package), +and +- the point is defined by a parameter, +- evaluation of the parameter corresponding to a point +on a 2D or 3D curve from gp, +- various elementary computations which allow you to +position parameterized values within the period of a curve. +Notes: +- ElCLib stands for Elementary Curves Library. +- If the curves provided by the gp package are not +explicitly parameterized, they still have an implicit +parameterization, analogous to that which they infer +for the equivalent Geom or Geom2d curves. +" %enddef %module (package="OCC.Core", docstring=ELCLIBDOCSTRING) ElCLib @@ -34,31 +53,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ElCLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(elclib) ElCLib; class ElCLib { public: diff --git a/src/SWIG_files/wrapper/ElSLib.i b/src/SWIG_files/wrapper/ElSLib.i index ee2f6b14a..ba3409bf4 100644 --- a/src/SWIG_files/wrapper/ElSLib.i +++ b/src/SWIG_files/wrapper/ElSLib.i @@ -18,7 +18,25 @@ along with pythonOCC. If not, see . */ %define ELSLIBDOCSTRING -"No docstring provided." +"- Purpose : Provides functions for basic geometric computation on +elementary surfaces. +This includes: +- calculation of a point or derived vector on a surface +where the surface is provided by the gp package, or +defined in canonical form (as in the gp package), and +the point is defined with a parameter, +- evaluation of the parameters corresponding to a +point on an elementary surface from gp, +- calculation of isoparametric curves on an elementary +surface defined in canonical form (as in the gp package). +Notes: +- ElSLib stands for Elementary Surfaces Library. +- If the surfaces provided by the gp package are not +explicitly parameterized, they still have an implicit +parameterization, similar to that which they infer on +the equivalent Geom surfaces. +Note: ElSLib stands for Elementary Surfaces Library. +" %enddef %module (package="OCC.Core", docstring=ELSLIBDOCSTRING) ElSLib @@ -34,31 +52,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ElSLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(elslib) ElSLib; class ElSLib { public: diff --git a/src/SWIG_files/wrapper/Expr.i b/src/SWIG_files/wrapper/Expr.i index 6cae573e8..c4bb0b532 100644 --- a/src/SWIG_files/wrapper/Expr.i +++ b/src/SWIG_files/wrapper/Expr.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define EXPRDOCSTRING -"No docstring provided." +"This package describes the data structure of any +expression, relation or function used in mathematics. +It also describes the assignment of variables. Standard +mathematical functions are implemented such as +trigonometrics, hyperbolics, and log functions. + +" %enddef %module (package="OCC.Core", docstring=EXPRDOCSTRING) Expr @@ -34,31 +40,68 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Expr_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Expr_GeneralExpression) +%wrap_handle(Expr_GeneralFunction) +%wrap_handle(Expr_GeneralRelation) +%wrap_handle(Expr_IndexedMapNodeOfMapOfNamedUnknown) +%wrap_handle(Expr_SequenceNodeOfSequenceOfGeneralExpression) +%wrap_handle(Expr_SequenceNodeOfSequenceOfGeneralRelation) +%wrap_handle(Expr_BinaryExpression) +%wrap_handle(Expr_FunctionDerivative) +%wrap_handle(Expr_NamedExpression) +%wrap_handle(Expr_NamedFunction) +%wrap_handle(Expr_NumericValue) +%wrap_handle(Expr_PolyExpression) +%wrap_handle(Expr_SingleRelation) +%wrap_handle(Expr_SystemRelation) +%wrap_handle(Expr_UnaryExpression) +%wrap_handle(Expr_Absolute) +%wrap_handle(Expr_ArcCosine) +%wrap_handle(Expr_ArcSine) +%wrap_handle(Expr_ArcTangent) +%wrap_handle(Expr_ArgCosh) +%wrap_handle(Expr_ArgSinh) +%wrap_handle(Expr_ArgTanh) +%wrap_handle(Expr_BinaryFunction) +%wrap_handle(Expr_Cosh) +%wrap_handle(Expr_Cosine) +%wrap_handle(Expr_Difference) +%wrap_handle(Expr_Different) +%wrap_handle(Expr_Division) +%wrap_handle(Expr_Equal) +%wrap_handle(Expr_Exponential) +%wrap_handle(Expr_Exponentiate) +%wrap_handle(Expr_GreaterThan) +%wrap_handle(Expr_GreaterThanOrEqual) +%wrap_handle(Expr_LessThan) +%wrap_handle(Expr_LessThanOrEqual) +%wrap_handle(Expr_LogOf10) +%wrap_handle(Expr_LogOfe) +%wrap_handle(Expr_NamedConstant) +%wrap_handle(Expr_NamedUnknown) +%wrap_handle(Expr_PolyFunction) +%wrap_handle(Expr_Product) +%wrap_handle(Expr_Sine) +%wrap_handle(Expr_Sinh) +%wrap_handle(Expr_Square) +%wrap_handle(Expr_SquareRoot) +%wrap_handle(Expr_Sum) +%wrap_handle(Expr_Tangent) +%wrap_handle(Expr_Tanh) +%wrap_handle(Expr_UnaryFunction) +%wrap_handle(Expr_UnaryMinus) + %rename(expr) Expr; class Expr { public: @@ -477,51 +520,7 @@ class Expr_GeneralExpression : public MMgt_TShared { }; -%extend Expr_GeneralExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_GeneralExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_GeneralExpression::Handle_Expr_GeneralExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_GeneralExpression; -class Handle_Expr_GeneralExpression : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Expr_GeneralExpression(); - Handle_Expr_GeneralExpression(const Handle_Expr_GeneralExpression &aHandle); - Handle_Expr_GeneralExpression(const Expr_GeneralExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_GeneralExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_GeneralExpression { - Expr_GeneralExpression* _get_reference() { - return (Expr_GeneralExpression*)$self->Access(); - } -}; - -%extend Handle_Expr_GeneralExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_GeneralExpression) %extend Expr_GeneralExpression { %pythoncode { @@ -602,51 +601,7 @@ class Expr_GeneralFunction : public MMgt_TShared { }; -%extend Expr_GeneralFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_GeneralFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_GeneralFunction::Handle_Expr_GeneralFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_GeneralFunction; -class Handle_Expr_GeneralFunction : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Expr_GeneralFunction(); - Handle_Expr_GeneralFunction(const Handle_Expr_GeneralFunction &aHandle); - Handle_Expr_GeneralFunction(const Expr_GeneralFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_GeneralFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_GeneralFunction { - Expr_GeneralFunction* _get_reference() { - return (Expr_GeneralFunction*)$self->Access(); - } -}; - -%extend Handle_Expr_GeneralFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_GeneralFunction) %extend Expr_GeneralFunction { %pythoncode { @@ -733,51 +688,7 @@ class Expr_GeneralRelation : public MMgt_TShared { }; -%extend Expr_GeneralRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_GeneralRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_GeneralRelation::Handle_Expr_GeneralRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_GeneralRelation; -class Handle_Expr_GeneralRelation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Expr_GeneralRelation(); - Handle_Expr_GeneralRelation(const Handle_Expr_GeneralRelation &aHandle); - Handle_Expr_GeneralRelation(const Expr_GeneralRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_GeneralRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_GeneralRelation { - Expr_GeneralRelation* _get_reference() { - return (Expr_GeneralRelation*)$self->Access(); - } -}; - -%extend Handle_Expr_GeneralRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_GeneralRelation) %extend Expr_GeneralRelation { %pythoncode { @@ -823,51 +734,7 @@ class Expr_IndexedMapNodeOfMapOfNamedUnknown : public TCollection_MapNode { }; -%extend Expr_IndexedMapNodeOfMapOfNamedUnknown { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown::Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown; -class Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown(); - Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown(const Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown &aHandle); - Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown(const Expr_IndexedMapNodeOfMapOfNamedUnknown *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown { - Expr_IndexedMapNodeOfMapOfNamedUnknown* _get_reference() { - return (Expr_IndexedMapNodeOfMapOfNamedUnknown*)$self->Access(); - } -}; - -%extend Handle_Expr_IndexedMapNodeOfMapOfNamedUnknown { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_IndexedMapNodeOfMapOfNamedUnknown) %extend Expr_IndexedMapNodeOfMapOfNamedUnknown { %pythoncode { @@ -1043,51 +910,7 @@ class Expr_SequenceNodeOfSequenceOfGeneralExpression : public TCollection_SeqNod }; -%extend Expr_SequenceNodeOfSequenceOfGeneralExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression::Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression; -class Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression(); - Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression(const Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression &aHandle); - Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression(const Expr_SequenceNodeOfSequenceOfGeneralExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression { - Expr_SequenceNodeOfSequenceOfGeneralExpression* _get_reference() { - return (Expr_SequenceNodeOfSequenceOfGeneralExpression*)$self->Access(); - } -}; - -%extend Handle_Expr_SequenceNodeOfSequenceOfGeneralExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_SequenceNodeOfSequenceOfGeneralExpression) %extend Expr_SequenceNodeOfSequenceOfGeneralExpression { %pythoncode { @@ -1114,51 +937,7 @@ class Expr_SequenceNodeOfSequenceOfGeneralRelation : public TCollection_SeqNode }; -%extend Expr_SequenceNodeOfSequenceOfGeneralRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation::Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation; -class Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation(); - Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation(const Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation &aHandle); - Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation(const Expr_SequenceNodeOfSequenceOfGeneralRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation { - Expr_SequenceNodeOfSequenceOfGeneralRelation* _get_reference() { - return (Expr_SequenceNodeOfSequenceOfGeneralRelation*)$self->Access(); - } -}; - -%extend Handle_Expr_SequenceNodeOfSequenceOfGeneralRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_SequenceNodeOfSequenceOfGeneralRelation) %extend Expr_SequenceNodeOfSequenceOfGeneralRelation { %pythoncode { @@ -1554,51 +1333,7 @@ class Expr_BinaryExpression : public Expr_GeneralExpression { }; -%extend Expr_BinaryExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_BinaryExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_BinaryExpression::Handle_Expr_BinaryExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_BinaryExpression; -class Handle_Expr_BinaryExpression : public Handle_Expr_GeneralExpression { - - public: - // constructors - Handle_Expr_BinaryExpression(); - Handle_Expr_BinaryExpression(const Handle_Expr_BinaryExpression &aHandle); - Handle_Expr_BinaryExpression(const Expr_BinaryExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_BinaryExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_BinaryExpression { - Expr_BinaryExpression* _get_reference() { - return (Expr_BinaryExpression*)$self->Access(); - } -}; - -%extend Handle_Expr_BinaryExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_BinaryExpression) %extend Expr_BinaryExpression { %pythoncode { @@ -1717,51 +1452,7 @@ class Expr_FunctionDerivative : public Expr_GeneralFunction { }; -%extend Expr_FunctionDerivative { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_FunctionDerivative(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_FunctionDerivative::Handle_Expr_FunctionDerivative %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_FunctionDerivative; -class Handle_Expr_FunctionDerivative : public Handle_Expr_GeneralFunction { - - public: - // constructors - Handle_Expr_FunctionDerivative(); - Handle_Expr_FunctionDerivative(const Handle_Expr_FunctionDerivative &aHandle); - Handle_Expr_FunctionDerivative(const Expr_FunctionDerivative *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_FunctionDerivative DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_FunctionDerivative { - Expr_FunctionDerivative* _get_reference() { - return (Expr_FunctionDerivative*)$self->Access(); - } -}; - -%extend Handle_Expr_FunctionDerivative { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_FunctionDerivative) %extend Expr_FunctionDerivative { %pythoncode { @@ -1804,51 +1495,7 @@ class Expr_NamedExpression : public Expr_GeneralExpression { }; -%extend Expr_NamedExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_NamedExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_NamedExpression::Handle_Expr_NamedExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_NamedExpression; -class Handle_Expr_NamedExpression : public Handle_Expr_GeneralExpression { - - public: - // constructors - Handle_Expr_NamedExpression(); - Handle_Expr_NamedExpression(const Handle_Expr_NamedExpression &aHandle); - Handle_Expr_NamedExpression(const Expr_NamedExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_NamedExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_NamedExpression { - Expr_NamedExpression* _get_reference() { - return (Expr_NamedExpression*)$self->Access(); - } -}; - -%extend Handle_Expr_NamedExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_NamedExpression) %extend Expr_NamedExpression { %pythoncode { @@ -1969,51 +1616,7 @@ class Expr_NamedFunction : public Expr_GeneralFunction { }; -%extend Expr_NamedFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_NamedFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_NamedFunction::Handle_Expr_NamedFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_NamedFunction; -class Handle_Expr_NamedFunction : public Handle_Expr_GeneralFunction { - - public: - // constructors - Handle_Expr_NamedFunction(); - Handle_Expr_NamedFunction(const Handle_Expr_NamedFunction &aHandle); - Handle_Expr_NamedFunction(const Expr_NamedFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_NamedFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_NamedFunction { - Expr_NamedFunction* _get_reference() { - return (Expr_NamedFunction*)$self->Access(); - } -}; - -%extend Handle_Expr_NamedFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_NamedFunction) %extend Expr_NamedFunction { %pythoncode { @@ -2144,51 +1747,7 @@ class Expr_NumericValue : public Expr_GeneralExpression { }; -%extend Expr_NumericValue { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_NumericValue(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_NumericValue::Handle_Expr_NumericValue %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_NumericValue; -class Handle_Expr_NumericValue : public Handle_Expr_GeneralExpression { - - public: - // constructors - Handle_Expr_NumericValue(); - Handle_Expr_NumericValue(const Handle_Expr_NumericValue &aHandle); - Handle_Expr_NumericValue(const Expr_NumericValue *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_NumericValue DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_NumericValue { - Expr_NumericValue* _get_reference() { - return (Expr_NumericValue*)$self->Access(); - } -}; - -%extend Handle_Expr_NumericValue { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_NumericValue) %extend Expr_NumericValue { %pythoncode { @@ -2269,51 +1828,7 @@ class Expr_PolyExpression : public Expr_GeneralExpression { }; -%extend Expr_PolyExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_PolyExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_PolyExpression::Handle_Expr_PolyExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_PolyExpression; -class Handle_Expr_PolyExpression : public Handle_Expr_GeneralExpression { - - public: - // constructors - Handle_Expr_PolyExpression(); - Handle_Expr_PolyExpression(const Handle_Expr_PolyExpression &aHandle); - Handle_Expr_PolyExpression(const Expr_PolyExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_PolyExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_PolyExpression { - Expr_PolyExpression* _get_reference() { - return (Expr_PolyExpression*)$self->Access(); - } -}; - -%extend Handle_Expr_PolyExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_PolyExpression) %extend Expr_PolyExpression { %pythoncode { @@ -2398,51 +1913,7 @@ class Expr_SingleRelation : public Expr_GeneralRelation { }; -%extend Expr_SingleRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_SingleRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_SingleRelation::Handle_Expr_SingleRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_SingleRelation; -class Handle_Expr_SingleRelation : public Handle_Expr_GeneralRelation { - - public: - // constructors - Handle_Expr_SingleRelation(); - Handle_Expr_SingleRelation(const Handle_Expr_SingleRelation &aHandle); - Handle_Expr_SingleRelation(const Expr_SingleRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_SingleRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_SingleRelation { - Expr_SingleRelation* _get_reference() { - return (Expr_SingleRelation*)$self->Access(); - } -}; - -%extend Handle_Expr_SingleRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_SingleRelation) %extend Expr_SingleRelation { %pythoncode { @@ -2549,51 +2020,7 @@ class Expr_SystemRelation : public Expr_GeneralRelation { }; -%extend Expr_SystemRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_SystemRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_SystemRelation::Handle_Expr_SystemRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_SystemRelation; -class Handle_Expr_SystemRelation : public Handle_Expr_GeneralRelation { - - public: - // constructors - Handle_Expr_SystemRelation(); - Handle_Expr_SystemRelation(const Handle_Expr_SystemRelation &aHandle); - Handle_Expr_SystemRelation(const Expr_SystemRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_SystemRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_SystemRelation { - Expr_SystemRelation* _get_reference() { - return (Expr_SystemRelation*)$self->Access(); - } -}; - -%extend Handle_Expr_SystemRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_SystemRelation) %extend Expr_SystemRelation { %pythoncode { @@ -2664,51 +2091,7 @@ class Expr_UnaryExpression : public Expr_GeneralExpression { }; -%extend Expr_UnaryExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_UnaryExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_UnaryExpression::Handle_Expr_UnaryExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_UnaryExpression; -class Handle_Expr_UnaryExpression : public Handle_Expr_GeneralExpression { - - public: - // constructors - Handle_Expr_UnaryExpression(); - Handle_Expr_UnaryExpression(const Handle_Expr_UnaryExpression &aHandle); - Handle_Expr_UnaryExpression(const Expr_UnaryExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_UnaryExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_UnaryExpression { - Expr_UnaryExpression* _get_reference() { - return (Expr_UnaryExpression*)$self->Access(); - } -}; - -%extend Handle_Expr_UnaryExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_UnaryExpression) %extend Expr_UnaryExpression { %pythoncode { @@ -2777,51 +2160,7 @@ class Expr_Absolute : public Expr_UnaryExpression { }; -%extend Expr_Absolute { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Absolute(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Absolute::Handle_Expr_Absolute %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Absolute; -class Handle_Expr_Absolute : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Absolute(); - Handle_Expr_Absolute(const Handle_Expr_Absolute &aHandle); - Handle_Expr_Absolute(const Expr_Absolute *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Absolute DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Absolute { - Expr_Absolute* _get_reference() { - return (Expr_Absolute*)$self->Access(); - } -}; - -%extend Handle_Expr_Absolute { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Absolute) %extend Expr_Absolute { %pythoncode { @@ -2890,51 +2229,7 @@ class Expr_ArcCosine : public Expr_UnaryExpression { }; -%extend Expr_ArcCosine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_ArcCosine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_ArcCosine::Handle_Expr_ArcCosine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_ArcCosine; -class Handle_Expr_ArcCosine : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_ArcCosine(); - Handle_Expr_ArcCosine(const Handle_Expr_ArcCosine &aHandle); - Handle_Expr_ArcCosine(const Expr_ArcCosine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_ArcCosine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_ArcCosine { - Expr_ArcCosine* _get_reference() { - return (Expr_ArcCosine*)$self->Access(); - } -}; - -%extend Handle_Expr_ArcCosine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_ArcCosine) %extend Expr_ArcCosine { %pythoncode { @@ -3003,51 +2298,7 @@ class Expr_ArcSine : public Expr_UnaryExpression { }; -%extend Expr_ArcSine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_ArcSine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_ArcSine::Handle_Expr_ArcSine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_ArcSine; -class Handle_Expr_ArcSine : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_ArcSine(); - Handle_Expr_ArcSine(const Handle_Expr_ArcSine &aHandle); - Handle_Expr_ArcSine(const Expr_ArcSine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_ArcSine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_ArcSine { - Expr_ArcSine* _get_reference() { - return (Expr_ArcSine*)$self->Access(); - } -}; - -%extend Handle_Expr_ArcSine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_ArcSine) %extend Expr_ArcSine { %pythoncode { @@ -3116,51 +2367,7 @@ class Expr_ArcTangent : public Expr_UnaryExpression { }; -%extend Expr_ArcTangent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_ArcTangent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_ArcTangent::Handle_Expr_ArcTangent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_ArcTangent; -class Handle_Expr_ArcTangent : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_ArcTangent(); - Handle_Expr_ArcTangent(const Handle_Expr_ArcTangent &aHandle); - Handle_Expr_ArcTangent(const Expr_ArcTangent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_ArcTangent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_ArcTangent { - Expr_ArcTangent* _get_reference() { - return (Expr_ArcTangent*)$self->Access(); - } -}; - -%extend Handle_Expr_ArcTangent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_ArcTangent) %extend Expr_ArcTangent { %pythoncode { @@ -3229,55 +2436,11 @@ class Expr_ArgCosh : public Expr_UnaryExpression { }; +%make_alias(Expr_ArgCosh) + %extend Expr_ArgCosh { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_ArgCosh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_ArgCosh::Handle_Expr_ArgCosh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_ArgCosh; -class Handle_Expr_ArgCosh : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_ArgCosh(); - Handle_Expr_ArgCosh(const Handle_Expr_ArgCosh &aHandle); - Handle_Expr_ArgCosh(const Expr_ArgCosh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_ArgCosh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_ArgCosh { - Expr_ArgCosh* _get_reference() { - return (Expr_ArgCosh*)$self->Access(); - } -}; - -%extend Handle_Expr_ArgCosh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend Expr_ArgCosh { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor Expr_ArgSinh; @@ -3342,51 +2505,7 @@ class Expr_ArgSinh : public Expr_UnaryExpression { }; -%extend Expr_ArgSinh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_ArgSinh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_ArgSinh::Handle_Expr_ArgSinh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_ArgSinh; -class Handle_Expr_ArgSinh : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_ArgSinh(); - Handle_Expr_ArgSinh(const Handle_Expr_ArgSinh &aHandle); - Handle_Expr_ArgSinh(const Expr_ArgSinh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_ArgSinh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_ArgSinh { - Expr_ArgSinh* _get_reference() { - return (Expr_ArgSinh*)$self->Access(); - } -}; - -%extend Handle_Expr_ArgSinh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_ArgSinh) %extend Expr_ArgSinh { %pythoncode { @@ -3455,51 +2574,7 @@ class Expr_ArgTanh : public Expr_UnaryExpression { }; -%extend Expr_ArgTanh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_ArgTanh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_ArgTanh::Handle_Expr_ArgTanh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_ArgTanh; -class Handle_Expr_ArgTanh : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_ArgTanh(); - Handle_Expr_ArgTanh(const Handle_Expr_ArgTanh &aHandle); - Handle_Expr_ArgTanh(const Expr_ArgTanh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_ArgTanh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_ArgTanh { - Expr_ArgTanh* _get_reference() { - return (Expr_ArgTanh*)$self->Access(); - } -}; - -%extend Handle_Expr_ArgTanh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_ArgTanh) %extend Expr_ArgTanh { %pythoncode { @@ -3578,51 +2653,7 @@ class Expr_BinaryFunction : public Expr_BinaryExpression { }; -%extend Expr_BinaryFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_BinaryFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_BinaryFunction::Handle_Expr_BinaryFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_BinaryFunction; -class Handle_Expr_BinaryFunction : public Handle_Expr_BinaryExpression { - - public: - // constructors - Handle_Expr_BinaryFunction(); - Handle_Expr_BinaryFunction(const Handle_Expr_BinaryFunction &aHandle); - Handle_Expr_BinaryFunction(const Expr_BinaryFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_BinaryFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_BinaryFunction { - Expr_BinaryFunction* _get_reference() { - return (Expr_BinaryFunction*)$self->Access(); - } -}; - -%extend Handle_Expr_BinaryFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_BinaryFunction) %extend Expr_BinaryFunction { %pythoncode { @@ -3691,51 +2722,7 @@ class Expr_Cosh : public Expr_UnaryExpression { }; -%extend Expr_Cosh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Cosh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Cosh::Handle_Expr_Cosh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Cosh; -class Handle_Expr_Cosh : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Cosh(); - Handle_Expr_Cosh(const Handle_Expr_Cosh &aHandle); - Handle_Expr_Cosh(const Expr_Cosh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Cosh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Cosh { - Expr_Cosh* _get_reference() { - return (Expr_Cosh*)$self->Access(); - } -}; - -%extend Handle_Expr_Cosh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Cosh) %extend Expr_Cosh { %pythoncode { @@ -3804,51 +2791,7 @@ class Expr_Cosine : public Expr_UnaryExpression { }; -%extend Expr_Cosine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Cosine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Cosine::Handle_Expr_Cosine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Cosine; -class Handle_Expr_Cosine : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Cosine(); - Handle_Expr_Cosine(const Handle_Expr_Cosine &aHandle); - Handle_Expr_Cosine(const Expr_Cosine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Cosine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Cosine { - Expr_Cosine* _get_reference() { - return (Expr_Cosine*)$self->Access(); - } -}; - -%extend Handle_Expr_Cosine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Cosine) %extend Expr_Cosine { %pythoncode { @@ -3929,51 +2872,7 @@ class Expr_Difference : public Expr_BinaryExpression { }; -%extend Expr_Difference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Difference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Difference::Handle_Expr_Difference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Difference; -class Handle_Expr_Difference : public Handle_Expr_BinaryExpression { - - public: - // constructors - Handle_Expr_Difference(); - Handle_Expr_Difference(const Handle_Expr_Difference &aHandle); - Handle_Expr_Difference(const Expr_Difference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Difference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Difference { - Expr_Difference* _get_reference() { - return (Expr_Difference*)$self->Access(); - } -}; - -%extend Handle_Expr_Difference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Difference) %extend Expr_Difference { %pythoncode { @@ -4024,51 +2923,7 @@ class Expr_Different : public Expr_SingleRelation { }; -%extend Expr_Different { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Different(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Different::Handle_Expr_Different %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Different; -class Handle_Expr_Different : public Handle_Expr_SingleRelation { - - public: - // constructors - Handle_Expr_Different(); - Handle_Expr_Different(const Handle_Expr_Different &aHandle); - Handle_Expr_Different(const Expr_Different *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Different DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Different { - Expr_Different* _get_reference() { - return (Expr_Different*)$self->Access(); - } -}; - -%extend Handle_Expr_Different { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Different) %extend Expr_Different { %pythoncode { @@ -4139,51 +2994,7 @@ class Expr_Division : public Expr_BinaryExpression { }; -%extend Expr_Division { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Division(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Division::Handle_Expr_Division %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Division; -class Handle_Expr_Division : public Handle_Expr_BinaryExpression { - - public: - // constructors - Handle_Expr_Division(); - Handle_Expr_Division(const Handle_Expr_Division &aHandle); - Handle_Expr_Division(const Expr_Division *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Division DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Division { - Expr_Division* _get_reference() { - return (Expr_Division*)$self->Access(); - } -}; - -%extend Handle_Expr_Division { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Division) %extend Expr_Division { %pythoncode { @@ -4234,51 +3045,7 @@ class Expr_Equal : public Expr_SingleRelation { }; -%extend Expr_Equal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Equal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Equal::Handle_Expr_Equal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Equal; -class Handle_Expr_Equal : public Handle_Expr_SingleRelation { - - public: - // constructors - Handle_Expr_Equal(); - Handle_Expr_Equal(const Handle_Expr_Equal &aHandle); - Handle_Expr_Equal(const Expr_Equal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Equal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Equal { - Expr_Equal* _get_reference() { - return (Expr_Equal*)$self->Access(); - } -}; - -%extend Handle_Expr_Equal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Equal) %extend Expr_Equal { %pythoncode { @@ -4347,51 +3114,7 @@ class Expr_Exponential : public Expr_UnaryExpression { }; -%extend Expr_Exponential { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Exponential(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Exponential::Handle_Expr_Exponential %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Exponential; -class Handle_Expr_Exponential : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Exponential(); - Handle_Expr_Exponential(const Handle_Expr_Exponential &aHandle); - Handle_Expr_Exponential(const Expr_Exponential *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Exponential DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Exponential { - Expr_Exponential* _get_reference() { - return (Expr_Exponential*)$self->Access(); - } -}; - -%extend Handle_Expr_Exponential { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Exponential) %extend Expr_Exponential { %pythoncode { @@ -4462,51 +3185,7 @@ class Expr_Exponentiate : public Expr_BinaryExpression { }; -%extend Expr_Exponentiate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Exponentiate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Exponentiate::Handle_Expr_Exponentiate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Exponentiate; -class Handle_Expr_Exponentiate : public Handle_Expr_BinaryExpression { - - public: - // constructors - Handle_Expr_Exponentiate(); - Handle_Expr_Exponentiate(const Handle_Expr_Exponentiate &aHandle); - Handle_Expr_Exponentiate(const Expr_Exponentiate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Exponentiate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Exponentiate { - Expr_Exponentiate* _get_reference() { - return (Expr_Exponentiate*)$self->Access(); - } -}; - -%extend Handle_Expr_Exponentiate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Exponentiate) %extend Expr_Exponentiate { %pythoncode { @@ -4557,51 +3236,7 @@ class Expr_GreaterThan : public Expr_SingleRelation { }; -%extend Expr_GreaterThan { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_GreaterThan(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_GreaterThan::Handle_Expr_GreaterThan %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_GreaterThan; -class Handle_Expr_GreaterThan : public Handle_Expr_SingleRelation { - - public: - // constructors - Handle_Expr_GreaterThan(); - Handle_Expr_GreaterThan(const Handle_Expr_GreaterThan &aHandle); - Handle_Expr_GreaterThan(const Expr_GreaterThan *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_GreaterThan DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_GreaterThan { - Expr_GreaterThan* _get_reference() { - return (Expr_GreaterThan*)$self->Access(); - } -}; - -%extend Handle_Expr_GreaterThan { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_GreaterThan) %extend Expr_GreaterThan { %pythoncode { @@ -4652,51 +3287,7 @@ class Expr_GreaterThanOrEqual : public Expr_SingleRelation { }; -%extend Expr_GreaterThanOrEqual { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_GreaterThanOrEqual(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_GreaterThanOrEqual::Handle_Expr_GreaterThanOrEqual %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_GreaterThanOrEqual; -class Handle_Expr_GreaterThanOrEqual : public Handle_Expr_SingleRelation { - - public: - // constructors - Handle_Expr_GreaterThanOrEqual(); - Handle_Expr_GreaterThanOrEqual(const Handle_Expr_GreaterThanOrEqual &aHandle); - Handle_Expr_GreaterThanOrEqual(const Expr_GreaterThanOrEqual *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_GreaterThanOrEqual DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_GreaterThanOrEqual { - Expr_GreaterThanOrEqual* _get_reference() { - return (Expr_GreaterThanOrEqual*)$self->Access(); - } -}; - -%extend Handle_Expr_GreaterThanOrEqual { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_GreaterThanOrEqual) %extend Expr_GreaterThanOrEqual { %pythoncode { @@ -4747,51 +3338,7 @@ class Expr_LessThan : public Expr_SingleRelation { }; -%extend Expr_LessThan { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_LessThan(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_LessThan::Handle_Expr_LessThan %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_LessThan; -class Handle_Expr_LessThan : public Handle_Expr_SingleRelation { - - public: - // constructors - Handle_Expr_LessThan(); - Handle_Expr_LessThan(const Handle_Expr_LessThan &aHandle); - Handle_Expr_LessThan(const Expr_LessThan *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_LessThan DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_LessThan { - Expr_LessThan* _get_reference() { - return (Expr_LessThan*)$self->Access(); - } -}; - -%extend Handle_Expr_LessThan { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_LessThan) %extend Expr_LessThan { %pythoncode { @@ -4842,51 +3389,7 @@ class Expr_LessThanOrEqual : public Expr_SingleRelation { }; -%extend Expr_LessThanOrEqual { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_LessThanOrEqual(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_LessThanOrEqual::Handle_Expr_LessThanOrEqual %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_LessThanOrEqual; -class Handle_Expr_LessThanOrEqual : public Handle_Expr_SingleRelation { - - public: - // constructors - Handle_Expr_LessThanOrEqual(); - Handle_Expr_LessThanOrEqual(const Handle_Expr_LessThanOrEqual &aHandle); - Handle_Expr_LessThanOrEqual(const Expr_LessThanOrEqual *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_LessThanOrEqual DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_LessThanOrEqual { - Expr_LessThanOrEqual* _get_reference() { - return (Expr_LessThanOrEqual*)$self->Access(); - } -}; - -%extend Handle_Expr_LessThanOrEqual { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_LessThanOrEqual) %extend Expr_LessThanOrEqual { %pythoncode { @@ -4955,51 +3458,7 @@ class Expr_LogOf10 : public Expr_UnaryExpression { }; -%extend Expr_LogOf10 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_LogOf10(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_LogOf10::Handle_Expr_LogOf10 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_LogOf10; -class Handle_Expr_LogOf10 : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_LogOf10(); - Handle_Expr_LogOf10(const Handle_Expr_LogOf10 &aHandle); - Handle_Expr_LogOf10(const Expr_LogOf10 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_LogOf10 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_LogOf10 { - Expr_LogOf10* _get_reference() { - return (Expr_LogOf10*)$self->Access(); - } -}; - -%extend Handle_Expr_LogOf10 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_LogOf10) %extend Expr_LogOf10 { %pythoncode { @@ -5068,51 +3527,7 @@ class Expr_LogOfe : public Expr_UnaryExpression { }; -%extend Expr_LogOfe { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_LogOfe(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_LogOfe::Handle_Expr_LogOfe %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_LogOfe; -class Handle_Expr_LogOfe : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_LogOfe(); - Handle_Expr_LogOfe(const Handle_Expr_LogOfe &aHandle); - Handle_Expr_LogOfe(const Expr_LogOfe *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_LogOfe DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_LogOfe { - Expr_LogOfe* _get_reference() { - return (Expr_LogOfe*)$self->Access(); - } -}; - -%extend Handle_Expr_LogOfe { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_LogOfe) %extend Expr_LogOfe { %pythoncode { @@ -5227,51 +3642,7 @@ class Expr_NamedConstant : public Expr_NamedExpression { }; -%extend Expr_NamedConstant { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_NamedConstant(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_NamedConstant::Handle_Expr_NamedConstant %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_NamedConstant; -class Handle_Expr_NamedConstant : public Handle_Expr_NamedExpression { - - public: - // constructors - Handle_Expr_NamedConstant(); - Handle_Expr_NamedConstant(const Handle_Expr_NamedConstant &aHandle); - Handle_Expr_NamedConstant(const Expr_NamedConstant *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_NamedConstant DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_NamedConstant { - Expr_NamedConstant* _get_reference() { - return (Expr_NamedConstant*)$self->Access(); - } -}; - -%extend Handle_Expr_NamedConstant { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_NamedConstant) %extend Expr_NamedConstant { %pythoncode { @@ -5394,51 +3765,7 @@ class Expr_NamedUnknown : public Expr_NamedExpression { }; -%extend Expr_NamedUnknown { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_NamedUnknown(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_NamedUnknown::Handle_Expr_NamedUnknown %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_NamedUnknown; -class Handle_Expr_NamedUnknown : public Handle_Expr_NamedExpression { - - public: - // constructors - Handle_Expr_NamedUnknown(); - Handle_Expr_NamedUnknown(const Handle_Expr_NamedUnknown &aHandle); - Handle_Expr_NamedUnknown(const Expr_NamedUnknown *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_NamedUnknown DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_NamedUnknown { - Expr_NamedUnknown* _get_reference() { - return (Expr_NamedUnknown*)$self->Access(); - } -}; - -%extend Handle_Expr_NamedUnknown { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_NamedUnknown) %extend Expr_NamedUnknown { %pythoncode { @@ -5515,51 +3842,7 @@ class Expr_PolyFunction : public Expr_PolyExpression { }; -%extend Expr_PolyFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_PolyFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_PolyFunction::Handle_Expr_PolyFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_PolyFunction; -class Handle_Expr_PolyFunction : public Handle_Expr_PolyExpression { - - public: - // constructors - Handle_Expr_PolyFunction(); - Handle_Expr_PolyFunction(const Handle_Expr_PolyFunction &aHandle); - Handle_Expr_PolyFunction(const Expr_PolyFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_PolyFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_PolyFunction { - Expr_PolyFunction* _get_reference() { - return (Expr_PolyFunction*)$self->Access(); - } -}; - -%extend Handle_Expr_PolyFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_PolyFunction) %extend Expr_PolyFunction { %pythoncode { @@ -5638,51 +3921,7 @@ class Expr_Product : public Expr_PolyExpression { }; -%extend Expr_Product { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Product(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Product::Handle_Expr_Product %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Product; -class Handle_Expr_Product : public Handle_Expr_PolyExpression { - - public: - // constructors - Handle_Expr_Product(); - Handle_Expr_Product(const Handle_Expr_Product &aHandle); - Handle_Expr_Product(const Expr_Product *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Product DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Product { - Expr_Product* _get_reference() { - return (Expr_Product*)$self->Access(); - } -}; - -%extend Handle_Expr_Product { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Product) %extend Expr_Product { %pythoncode { @@ -5751,51 +3990,7 @@ class Expr_Sine : public Expr_UnaryExpression { }; -%extend Expr_Sine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Sine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Sine::Handle_Expr_Sine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Sine; -class Handle_Expr_Sine : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Sine(); - Handle_Expr_Sine(const Handle_Expr_Sine &aHandle); - Handle_Expr_Sine(const Expr_Sine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Sine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Sine { - Expr_Sine* _get_reference() { - return (Expr_Sine*)$self->Access(); - } -}; - -%extend Handle_Expr_Sine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Sine) %extend Expr_Sine { %pythoncode { @@ -5864,51 +4059,7 @@ class Expr_Sinh : public Expr_UnaryExpression { }; -%extend Expr_Sinh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Sinh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Sinh::Handle_Expr_Sinh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Sinh; -class Handle_Expr_Sinh : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Sinh(); - Handle_Expr_Sinh(const Handle_Expr_Sinh &aHandle); - Handle_Expr_Sinh(const Expr_Sinh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Sinh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Sinh { - Expr_Sinh* _get_reference() { - return (Expr_Sinh*)$self->Access(); - } -}; - -%extend Handle_Expr_Sinh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Sinh) %extend Expr_Sinh { %pythoncode { @@ -5977,51 +4128,7 @@ class Expr_Square : public Expr_UnaryExpression { }; -%extend Expr_Square { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Square(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Square::Handle_Expr_Square %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Square; -class Handle_Expr_Square : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Square(); - Handle_Expr_Square(const Handle_Expr_Square &aHandle); - Handle_Expr_Square(const Expr_Square *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Square DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Square { - Expr_Square* _get_reference() { - return (Expr_Square*)$self->Access(); - } -}; - -%extend Handle_Expr_Square { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Square) %extend Expr_Square { %pythoncode { @@ -6090,51 +4197,7 @@ class Expr_SquareRoot : public Expr_UnaryExpression { }; -%extend Expr_SquareRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_SquareRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_SquareRoot::Handle_Expr_SquareRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_SquareRoot; -class Handle_Expr_SquareRoot : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_SquareRoot(); - Handle_Expr_SquareRoot(const Handle_Expr_SquareRoot &aHandle); - Handle_Expr_SquareRoot(const Expr_SquareRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_SquareRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_SquareRoot { - Expr_SquareRoot* _get_reference() { - return (Expr_SquareRoot*)$self->Access(); - } -}; - -%extend Handle_Expr_SquareRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_SquareRoot) %extend Expr_SquareRoot { %pythoncode { @@ -6223,51 +4286,7 @@ class Expr_Sum : public Expr_PolyExpression { }; -%extend Expr_Sum { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Sum(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Sum::Handle_Expr_Sum %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Sum; -class Handle_Expr_Sum : public Handle_Expr_PolyExpression { - - public: - // constructors - Handle_Expr_Sum(); - Handle_Expr_Sum(const Handle_Expr_Sum &aHandle); - Handle_Expr_Sum(const Expr_Sum *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Sum DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Sum { - Expr_Sum* _get_reference() { - return (Expr_Sum*)$self->Access(); - } -}; - -%extend Handle_Expr_Sum { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Sum) %extend Expr_Sum { %pythoncode { @@ -6336,51 +4355,7 @@ class Expr_Tangent : public Expr_UnaryExpression { }; -%extend Expr_Tangent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Tangent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Tangent::Handle_Expr_Tangent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Tangent; -class Handle_Expr_Tangent : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Tangent(); - Handle_Expr_Tangent(const Handle_Expr_Tangent &aHandle); - Handle_Expr_Tangent(const Expr_Tangent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Tangent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Tangent { - Expr_Tangent* _get_reference() { - return (Expr_Tangent*)$self->Access(); - } -}; - -%extend Handle_Expr_Tangent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Tangent) %extend Expr_Tangent { %pythoncode { @@ -6449,51 +4424,7 @@ class Expr_Tanh : public Expr_UnaryExpression { }; -%extend Expr_Tanh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_Tanh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_Tanh::Handle_Expr_Tanh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_Tanh; -class Handle_Expr_Tanh : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_Tanh(); - Handle_Expr_Tanh(const Handle_Expr_Tanh &aHandle); - Handle_Expr_Tanh(const Expr_Tanh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_Tanh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_Tanh { - Expr_Tanh* _get_reference() { - return (Expr_Tanh*)$self->Access(); - } -}; - -%extend Handle_Expr_Tanh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_Tanh) %extend Expr_Tanh { %pythoncode { @@ -6570,51 +4501,7 @@ class Expr_UnaryFunction : public Expr_UnaryExpression { }; -%extend Expr_UnaryFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_UnaryFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_UnaryFunction::Handle_Expr_UnaryFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_UnaryFunction; -class Handle_Expr_UnaryFunction : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_UnaryFunction(); - Handle_Expr_UnaryFunction(const Handle_Expr_UnaryFunction &aHandle); - Handle_Expr_UnaryFunction(const Expr_UnaryFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_UnaryFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_UnaryFunction { - Expr_UnaryFunction* _get_reference() { - return (Expr_UnaryFunction*)$self->Access(); - } -}; - -%extend Handle_Expr_UnaryFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_UnaryFunction) %extend Expr_UnaryFunction { %pythoncode { @@ -6693,51 +4580,7 @@ class Expr_UnaryMinus : public Expr_UnaryExpression { }; -%extend Expr_UnaryMinus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Expr_UnaryMinus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Expr_UnaryMinus::Handle_Expr_UnaryMinus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Expr_UnaryMinus; -class Handle_Expr_UnaryMinus : public Handle_Expr_UnaryExpression { - - public: - // constructors - Handle_Expr_UnaryMinus(); - Handle_Expr_UnaryMinus(const Handle_Expr_UnaryMinus &aHandle); - Handle_Expr_UnaryMinus(const Expr_UnaryMinus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Expr_UnaryMinus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Expr_UnaryMinus { - Expr_UnaryMinus* _get_reference() { - return (Expr_UnaryMinus*)$self->Access(); - } -}; - -%extend Handle_Expr_UnaryMinus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Expr_UnaryMinus) %extend Expr_UnaryMinus { %pythoncode { diff --git a/src/SWIG_files/wrapper/ExprIntrp.i b/src/SWIG_files/wrapper/ExprIntrp.i index 6921e8bab..d3f1fbd7e 100644 --- a/src/SWIG_files/wrapper/ExprIntrp.i +++ b/src/SWIG_files/wrapper/ExprIntrp.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define EXPRINTRPDOCSTRING -"No docstring provided." +"Describes an interpreter for GeneralExpressions, +GeneralFunctions, and GeneralRelations defined in +package Expr. +" %enddef %module (package="OCC.Core", docstring=EXPRINTRPDOCSTRING) ExprIntrp @@ -34,31 +37,27 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ExprIntrp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ExprIntrp_Generator) +%wrap_handle(ExprIntrp_ListNodeOfStackOfGeneralExpression) +%wrap_handle(ExprIntrp_ListNodeOfStackOfGeneralFunction) +%wrap_handle(ExprIntrp_ListNodeOfStackOfGeneralRelation) +%wrap_handle(ExprIntrp_SequenceNodeOfSequenceOfNamedExpression) +%wrap_handle(ExprIntrp_SequenceNodeOfSequenceOfNamedFunction) +%wrap_handle(ExprIntrp_GenExp) +%wrap_handle(ExprIntrp_GenFct) +%wrap_handle(ExprIntrp_GenRel) + %rename(exprintrp) ExprIntrp; %nodefaultctor ExprIntrp; class ExprIntrp { @@ -220,51 +219,7 @@ class ExprIntrp_Generator : public MMgt_TShared { }; -%extend ExprIntrp_Generator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_Generator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_Generator::Handle_ExprIntrp_Generator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_Generator; -class Handle_ExprIntrp_Generator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ExprIntrp_Generator(); - Handle_ExprIntrp_Generator(const Handle_ExprIntrp_Generator &aHandle); - Handle_ExprIntrp_Generator(const ExprIntrp_Generator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_Generator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_Generator { - ExprIntrp_Generator* _get_reference() { - return (ExprIntrp_Generator*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_Generator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_Generator) %extend ExprIntrp_Generator { %pythoncode { @@ -406,51 +361,7 @@ class ExprIntrp_ListNodeOfStackOfGeneralExpression : public TCollection_MapNode }; -%extend ExprIntrp_ListNodeOfStackOfGeneralExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression::Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression; -class Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression(); - Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression(const Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression &aHandle); - Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression(const ExprIntrp_ListNodeOfStackOfGeneralExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression { - ExprIntrp_ListNodeOfStackOfGeneralExpression* _get_reference() { - return (ExprIntrp_ListNodeOfStackOfGeneralExpression*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_ListNodeOfStackOfGeneralExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_ListNodeOfStackOfGeneralExpression) %extend ExprIntrp_ListNodeOfStackOfGeneralExpression { %pythoncode { @@ -475,51 +386,7 @@ class ExprIntrp_ListNodeOfStackOfGeneralFunction : public TCollection_MapNode { }; -%extend ExprIntrp_ListNodeOfStackOfGeneralFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction::Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction; -class Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction(); - Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction(const Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction &aHandle); - Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction(const ExprIntrp_ListNodeOfStackOfGeneralFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction { - ExprIntrp_ListNodeOfStackOfGeneralFunction* _get_reference() { - return (ExprIntrp_ListNodeOfStackOfGeneralFunction*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_ListNodeOfStackOfGeneralFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_ListNodeOfStackOfGeneralFunction) %extend ExprIntrp_ListNodeOfStackOfGeneralFunction { %pythoncode { @@ -544,51 +411,7 @@ class ExprIntrp_ListNodeOfStackOfGeneralRelation : public TCollection_MapNode { }; -%extend ExprIntrp_ListNodeOfStackOfGeneralRelation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation::Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation; -class Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation(); - Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation(const Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation &aHandle); - Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation(const ExprIntrp_ListNodeOfStackOfGeneralRelation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation { - ExprIntrp_ListNodeOfStackOfGeneralRelation* _get_reference() { - return (ExprIntrp_ListNodeOfStackOfGeneralRelation*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_ListNodeOfStackOfGeneralRelation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_ListNodeOfStackOfGeneralRelation) %extend ExprIntrp_ListNodeOfStackOfGeneralRelation { %pythoncode { @@ -615,51 +438,7 @@ class ExprIntrp_SequenceNodeOfSequenceOfNamedExpression : public TCollection_Seq }; -%extend ExprIntrp_SequenceNodeOfSequenceOfNamedExpression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression::Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression; -class Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression(); - Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression(const Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression &aHandle); - Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression(const ExprIntrp_SequenceNodeOfSequenceOfNamedExpression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression { - ExprIntrp_SequenceNodeOfSequenceOfNamedExpression* _get_reference() { - return (ExprIntrp_SequenceNodeOfSequenceOfNamedExpression*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedExpression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_SequenceNodeOfSequenceOfNamedExpression) %extend ExprIntrp_SequenceNodeOfSequenceOfNamedExpression { %pythoncode { @@ -686,51 +465,7 @@ class ExprIntrp_SequenceNodeOfSequenceOfNamedFunction : public TCollection_SeqNo }; -%extend ExprIntrp_SequenceNodeOfSequenceOfNamedFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction::Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction; -class Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction(); - Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction(const Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction &aHandle); - Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction(const ExprIntrp_SequenceNodeOfSequenceOfNamedFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction { - ExprIntrp_SequenceNodeOfSequenceOfNamedFunction* _get_reference() { - return (ExprIntrp_SequenceNodeOfSequenceOfNamedFunction*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_SequenceNodeOfSequenceOfNamedFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_SequenceNodeOfSequenceOfNamedFunction) %extend ExprIntrp_SequenceNodeOfSequenceOfNamedFunction { %pythoncode { @@ -1458,51 +1193,7 @@ class ExprIntrp_GenExp : public ExprIntrp_Generator { }; -%extend ExprIntrp_GenExp { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_GenExp(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_GenExp::Handle_ExprIntrp_GenExp %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_GenExp; -class Handle_ExprIntrp_GenExp : public Handle_ExprIntrp_Generator { - - public: - // constructors - Handle_ExprIntrp_GenExp(); - Handle_ExprIntrp_GenExp(const Handle_ExprIntrp_GenExp &aHandle); - Handle_ExprIntrp_GenExp(const ExprIntrp_GenExp *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_GenExp DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_GenExp { - ExprIntrp_GenExp* _get_reference() { - return (ExprIntrp_GenExp*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_GenExp { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_GenExp) %extend ExprIntrp_GenExp { %pythoncode { @@ -1529,51 +1220,7 @@ class ExprIntrp_GenFct : public ExprIntrp_Generator { }; -%extend ExprIntrp_GenFct { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_GenFct(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_GenFct::Handle_ExprIntrp_GenFct %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_GenFct; -class Handle_ExprIntrp_GenFct : public Handle_ExprIntrp_Generator { - - public: - // constructors - Handle_ExprIntrp_GenFct(); - Handle_ExprIntrp_GenFct(const Handle_ExprIntrp_GenFct &aHandle); - Handle_ExprIntrp_GenFct(const ExprIntrp_GenFct *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_GenFct DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_GenFct { - ExprIntrp_GenFct* _get_reference() { - return (ExprIntrp_GenFct*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_GenFct { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_GenFct) %extend ExprIntrp_GenFct { %pythoncode { @@ -1610,51 +1257,7 @@ class ExprIntrp_GenRel : public ExprIntrp_Generator { }; -%extend ExprIntrp_GenRel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ExprIntrp_GenRel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ExprIntrp_GenRel::Handle_ExprIntrp_GenRel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ExprIntrp_GenRel; -class Handle_ExprIntrp_GenRel : public Handle_ExprIntrp_Generator { - - public: - // constructors - Handle_ExprIntrp_GenRel(); - Handle_ExprIntrp_GenRel(const Handle_ExprIntrp_GenRel &aHandle); - Handle_ExprIntrp_GenRel(const ExprIntrp_GenRel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ExprIntrp_GenRel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ExprIntrp_GenRel { - ExprIntrp_GenRel* _get_reference() { - return (ExprIntrp_GenRel*)$self->Access(); - } -}; - -%extend Handle_ExprIntrp_GenRel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ExprIntrp_GenRel) %extend ExprIntrp_GenRel { %pythoncode { diff --git a/src/SWIG_files/wrapper/Extrema.i b/src/SWIG_files/wrapper/Extrema.i index 849660e00..0917e6590 100644 --- a/src/SWIG_files/wrapper/Extrema.i +++ b/src/SWIG_files/wrapper/Extrema.i @@ -18,7 +18,18 @@ along with pythonOCC. If not, see . */ %define EXTREMADOCSTRING -"No docstring provided." +"points, curves and surfaces. +In general case, the algorithm to find the +distances is a minimization algorithm of a function +of variables: F(X). It is stopped when: +for X1=X+Dx, F(X) and F(X1) are the same. +The value of Dx can be calculated for all the +algorithms. + +-Level : Public. +All methods of all classes will be public. + +" %enddef %module (package="OCC.Core", docstring=EXTREMADOCSTRING) Extrema @@ -34,25 +45,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Extrema_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_UBTree Extrema_UBTreeOfSphere; typedef NCollection_UBTreeFiller Extrema_UBTreeFillerOfSphere; @@ -80,6 +77,27 @@ enum Extrema_ElementType { /* end public enums declaration */ +%wrap_handle(Extrema_ExtPExtS) +%wrap_handle(Extrema_ExtPRevS) +%wrap_handle(Extrema_HArray1OfPOnCurv) +%wrap_handle(Extrema_HArray1OfPOnCurv2d) +%wrap_handle(Extrema_HArray1OfPOnSurf) +%wrap_handle(Extrema_HArray2OfPOnCurv) +%wrap_handle(Extrema_HArray2OfPOnCurv2d) +%wrap_handle(Extrema_HArray2OfPOnSurf) +%wrap_handle(Extrema_HArray2OfPOnSurfParams) +%wrap_handle(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC) +%wrap_handle(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d) +%wrap_handle(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC) +%wrap_handle(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d) +%wrap_handle(Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC) +%wrap_handle(Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d) +%wrap_handle(Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC) +%wrap_handle(Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d) +%wrap_handle(Extrema_SequenceNodeOfSequenceOfPOnCurv) +%wrap_handle(Extrema_SequenceNodeOfSequenceOfPOnCurv2d) +%wrap_handle(Extrema_SequenceNodeOfSequenceOfPOnSurf) + %nodefaultctor Extrema_Array1OfPOnCurv; class Extrema_Array1OfPOnCurv { public: @@ -4443,51 +4461,7 @@ class Extrema_ExtPExtS : public Standard_Transient { }; -%extend Extrema_ExtPExtS { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_ExtPExtS(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_ExtPExtS::Handle_Extrema_ExtPExtS %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_ExtPExtS; -class Handle_Extrema_ExtPExtS : public Handle_Standard_Transient { - - public: - // constructors - Handle_Extrema_ExtPExtS(); - Handle_Extrema_ExtPExtS(const Handle_Extrema_ExtPExtS &aHandle); - Handle_Extrema_ExtPExtS(const Extrema_ExtPExtS *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_ExtPExtS DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_ExtPExtS { - Extrema_ExtPExtS* _get_reference() { - return (Extrema_ExtPExtS*)$self->Access(); - } -}; - -%extend Handle_Extrema_ExtPExtS { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_ExtPExtS) %extend Extrema_ExtPExtS { %pythoncode { @@ -4592,51 +4566,7 @@ class Extrema_ExtPRevS : public Standard_Transient { }; -%extend Extrema_ExtPRevS { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_ExtPRevS(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_ExtPRevS::Handle_Extrema_ExtPRevS %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_ExtPRevS; -class Handle_Extrema_ExtPRevS : public Handle_Standard_Transient { - - public: - // constructors - Handle_Extrema_ExtPRevS(); - Handle_Extrema_ExtPRevS(const Handle_Extrema_ExtPRevS &aHandle); - Handle_Extrema_ExtPRevS(const Extrema_ExtPRevS *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_ExtPRevS DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_ExtPRevS { - Extrema_ExtPRevS* _get_reference() { - return (Extrema_ExtPRevS*)$self->Access(); - } -}; - -%extend Handle_Extrema_ExtPRevS { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_ExtPRevS) %extend Extrema_ExtPRevS { %pythoncode { @@ -6234,51 +6164,7 @@ class Extrema_HArray1OfPOnCurv : public MMgt_TShared { }; -%extend Extrema_HArray1OfPOnCurv { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray1OfPOnCurv(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray1OfPOnCurv::Handle_Extrema_HArray1OfPOnCurv %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray1OfPOnCurv; -class Handle_Extrema_HArray1OfPOnCurv : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray1OfPOnCurv(); - Handle_Extrema_HArray1OfPOnCurv(const Handle_Extrema_HArray1OfPOnCurv &aHandle); - Handle_Extrema_HArray1OfPOnCurv(const Extrema_HArray1OfPOnCurv *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray1OfPOnCurv DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray1OfPOnCurv { - Extrema_HArray1OfPOnCurv* _get_reference() { - return (Extrema_HArray1OfPOnCurv*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray1OfPOnCurv { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray1OfPOnCurv) %extend Extrema_HArray1OfPOnCurv { %pythoncode { @@ -6355,51 +6241,7 @@ class Extrema_HArray1OfPOnCurv2d : public MMgt_TShared { }; -%extend Extrema_HArray1OfPOnCurv2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray1OfPOnCurv2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray1OfPOnCurv2d::Handle_Extrema_HArray1OfPOnCurv2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray1OfPOnCurv2d; -class Handle_Extrema_HArray1OfPOnCurv2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray1OfPOnCurv2d(); - Handle_Extrema_HArray1OfPOnCurv2d(const Handle_Extrema_HArray1OfPOnCurv2d &aHandle); - Handle_Extrema_HArray1OfPOnCurv2d(const Extrema_HArray1OfPOnCurv2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray1OfPOnCurv2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray1OfPOnCurv2d { - Extrema_HArray1OfPOnCurv2d* _get_reference() { - return (Extrema_HArray1OfPOnCurv2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray1OfPOnCurv2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray1OfPOnCurv2d) %extend Extrema_HArray1OfPOnCurv2d { %pythoncode { @@ -6476,51 +6318,7 @@ class Extrema_HArray1OfPOnSurf : public MMgt_TShared { }; -%extend Extrema_HArray1OfPOnSurf { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray1OfPOnSurf(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray1OfPOnSurf::Handle_Extrema_HArray1OfPOnSurf %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray1OfPOnSurf; -class Handle_Extrema_HArray1OfPOnSurf : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray1OfPOnSurf(); - Handle_Extrema_HArray1OfPOnSurf(const Handle_Extrema_HArray1OfPOnSurf &aHandle); - Handle_Extrema_HArray1OfPOnSurf(const Extrema_HArray1OfPOnSurf *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray1OfPOnSurf DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray1OfPOnSurf { - Extrema_HArray1OfPOnSurf* _get_reference() { - return (Extrema_HArray1OfPOnSurf*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray1OfPOnSurf { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray1OfPOnSurf) %extend Extrema_HArray1OfPOnSurf { %pythoncode { @@ -6623,51 +6421,7 @@ class Extrema_HArray2OfPOnCurv : public MMgt_TShared { }; -%extend Extrema_HArray2OfPOnCurv { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray2OfPOnCurv(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray2OfPOnCurv::Handle_Extrema_HArray2OfPOnCurv %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray2OfPOnCurv; -class Handle_Extrema_HArray2OfPOnCurv : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray2OfPOnCurv(); - Handle_Extrema_HArray2OfPOnCurv(const Handle_Extrema_HArray2OfPOnCurv &aHandle); - Handle_Extrema_HArray2OfPOnCurv(const Extrema_HArray2OfPOnCurv *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray2OfPOnCurv DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray2OfPOnCurv { - Extrema_HArray2OfPOnCurv* _get_reference() { - return (Extrema_HArray2OfPOnCurv*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray2OfPOnCurv { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray2OfPOnCurv) %extend Extrema_HArray2OfPOnCurv { %pythoncode { @@ -6770,51 +6524,7 @@ class Extrema_HArray2OfPOnCurv2d : public MMgt_TShared { }; -%extend Extrema_HArray2OfPOnCurv2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray2OfPOnCurv2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray2OfPOnCurv2d::Handle_Extrema_HArray2OfPOnCurv2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray2OfPOnCurv2d; -class Handle_Extrema_HArray2OfPOnCurv2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray2OfPOnCurv2d(); - Handle_Extrema_HArray2OfPOnCurv2d(const Handle_Extrema_HArray2OfPOnCurv2d &aHandle); - Handle_Extrema_HArray2OfPOnCurv2d(const Extrema_HArray2OfPOnCurv2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray2OfPOnCurv2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray2OfPOnCurv2d { - Extrema_HArray2OfPOnCurv2d* _get_reference() { - return (Extrema_HArray2OfPOnCurv2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray2OfPOnCurv2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray2OfPOnCurv2d) %extend Extrema_HArray2OfPOnCurv2d { %pythoncode { @@ -6917,51 +6627,7 @@ class Extrema_HArray2OfPOnSurf : public MMgt_TShared { }; -%extend Extrema_HArray2OfPOnSurf { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray2OfPOnSurf(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray2OfPOnSurf::Handle_Extrema_HArray2OfPOnSurf %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray2OfPOnSurf; -class Handle_Extrema_HArray2OfPOnSurf : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray2OfPOnSurf(); - Handle_Extrema_HArray2OfPOnSurf(const Handle_Extrema_HArray2OfPOnSurf &aHandle); - Handle_Extrema_HArray2OfPOnSurf(const Extrema_HArray2OfPOnSurf *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray2OfPOnSurf DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray2OfPOnSurf { - Extrema_HArray2OfPOnSurf* _get_reference() { - return (Extrema_HArray2OfPOnSurf*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray2OfPOnSurf { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray2OfPOnSurf) %extend Extrema_HArray2OfPOnSurf { %pythoncode { @@ -7064,51 +6730,7 @@ class Extrema_HArray2OfPOnSurfParams : public MMgt_TShared { }; -%extend Extrema_HArray2OfPOnSurfParams { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_HArray2OfPOnSurfParams(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_HArray2OfPOnSurfParams::Handle_Extrema_HArray2OfPOnSurfParams %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_HArray2OfPOnSurfParams; -class Handle_Extrema_HArray2OfPOnSurfParams : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Extrema_HArray2OfPOnSurfParams(); - Handle_Extrema_HArray2OfPOnSurfParams(const Handle_Extrema_HArray2OfPOnSurfParams &aHandle); - Handle_Extrema_HArray2OfPOnSurfParams(const Extrema_HArray2OfPOnSurfParams *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_HArray2OfPOnSurfParams DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_HArray2OfPOnSurfParams { - Extrema_HArray2OfPOnSurfParams* _get_reference() { - return (Extrema_HArray2OfPOnSurfParams*)$self->Access(); - } -}; - -%extend Handle_Extrema_HArray2OfPOnSurfParams { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_HArray2OfPOnSurfParams) %extend Extrema_HArray2OfPOnSurfParams { %pythoncode { @@ -9532,51 +9154,7 @@ class Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC : public TCollect }; -%extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC::Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC; -class Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC(); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC(const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC &aHandle); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC(const Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC { - Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC* _get_reference() { - return (Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC) %extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC { %pythoncode { @@ -9603,51 +9181,7 @@ class Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d : public TColle }; -%extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d::Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d; -class Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d(); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d(const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d &aHandle); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d(const Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d { - Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d* _get_reference() { - return (Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d) %extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfELPCOfLocateExtPC2d { %pythoncode { @@ -9674,51 +9208,7 @@ class Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC : public TCollection_SeqNode }; -%extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC::Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC; -class Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC(); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC(const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC &aHandle); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC(const Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC { - Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC* _get_reference() { - return (Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC) %extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC { %pythoncode { @@ -9745,51 +9235,7 @@ class Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d : public TCollection_SeqNod }; -%extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d::Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d; -class Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d(); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d(const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d &aHandle); - Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d(const Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d { - Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d* _get_reference() { - return (Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d) %extend Extrema_SequenceNodeOfSeqPCOfPCFOfEPCOfExtPC2d { %pythoncode { @@ -9816,51 +9262,7 @@ class Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC : public TCollect }; -%extend Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC::Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC; -class Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC(); - Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC(const Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC &aHandle); - Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC(const Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC { - Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC* _get_reference() { - return (Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC) %extend Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC { %pythoncode { @@ -9887,51 +9289,7 @@ class Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d : public TColle }; -%extend Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d::Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d; -class Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d(); - Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d(const Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d &aHandle); - Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d(const Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d { - Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d* _get_reference() { - return (Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d) %extend Extrema_SequenceNodeOfSeqPCOfPCLocFOfLocEPCOfLocateExtPC2d { %pythoncode { @@ -9958,51 +9316,7 @@ class Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC : public TCollection_SeqNode }; -%extend Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC::Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC; -class Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC(); - Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC(const Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC &aHandle); - Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC(const Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC { - Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC* _get_reference() { - return (Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC) %extend Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC { %pythoncode { @@ -10029,51 +9343,7 @@ class Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d : public TCollection_SeqNo }; -%extend Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d::Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d; -class Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d(); - Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d(const Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d &aHandle); - Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d(const Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d { - Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d* _get_reference() { - return (Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d) %extend Extrema_SequenceNodeOfSeqPOnCOfCCLocFOfLocECC2d { %pythoncode { @@ -10100,51 +9370,7 @@ class Extrema_SequenceNodeOfSequenceOfPOnCurv : public TCollection_SeqNode { }; -%extend Extrema_SequenceNodeOfSequenceOfPOnCurv { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv::Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv; -class Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv(); - Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv(const Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv &aHandle); - Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv(const Extrema_SequenceNodeOfSequenceOfPOnCurv *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv { - Extrema_SequenceNodeOfSequenceOfPOnCurv* _get_reference() { - return (Extrema_SequenceNodeOfSequenceOfPOnCurv*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSequenceOfPOnCurv) %extend Extrema_SequenceNodeOfSequenceOfPOnCurv { %pythoncode { @@ -10171,51 +9397,7 @@ class Extrema_SequenceNodeOfSequenceOfPOnCurv2d : public TCollection_SeqNode { }; -%extend Extrema_SequenceNodeOfSequenceOfPOnCurv2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d::Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d; -class Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d(); - Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d(const Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d &aHandle); - Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d(const Extrema_SequenceNodeOfSequenceOfPOnCurv2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d { - Extrema_SequenceNodeOfSequenceOfPOnCurv2d* _get_reference() { - return (Extrema_SequenceNodeOfSequenceOfPOnCurv2d*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSequenceOfPOnCurv2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSequenceOfPOnCurv2d) %extend Extrema_SequenceNodeOfSequenceOfPOnCurv2d { %pythoncode { @@ -10242,51 +9424,7 @@ class Extrema_SequenceNodeOfSequenceOfPOnSurf : public TCollection_SeqNode { }; -%extend Extrema_SequenceNodeOfSequenceOfPOnSurf { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf::Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf; -class Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf(); - Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf(const Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf &aHandle); - Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf(const Extrema_SequenceNodeOfSequenceOfPOnSurf *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf { - Extrema_SequenceNodeOfSequenceOfPOnSurf* _get_reference() { - return (Extrema_SequenceNodeOfSequenceOfPOnSurf*)$self->Access(); - } -}; - -%extend Handle_Extrema_SequenceNodeOfSequenceOfPOnSurf { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Extrema_SequenceNodeOfSequenceOfPOnSurf) %extend Extrema_SequenceNodeOfSequenceOfPOnSurf { %pythoncode { diff --git a/src/SWIG_files/wrapper/FEmTool.i b/src/SWIG_files/wrapper/FEmTool.i index 34344c610..a7eb82be9 100644 --- a/src/SWIG_files/wrapper/FEmTool.i +++ b/src/SWIG_files/wrapper/FEmTool.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define FEMTOOLDOCSTRING -"No docstring provided." +"Tool to Finite Element methods + +-Level: Advanced" %enddef %module (package="OCC.Core", docstring=FEMTOOLDOCSTRING) FEmTool @@ -34,31 +36,28 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include FEmTool_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(FEmTool_Curve) +%wrap_handle(FEmTool_ElementaryCriterion) +%wrap_handle(FEmTool_HAssemblyTable) +%wrap_handle(FEmTool_ListNodeOfListOfVectors) +%wrap_handle(FEmTool_SequenceNodeOfSeqOfLinConstr) +%wrap_handle(FEmTool_SparseMatrix) +%wrap_handle(FEmTool_LinearFlexion) +%wrap_handle(FEmTool_LinearJerk) +%wrap_handle(FEmTool_LinearTension) +%wrap_handle(FEmTool_ProfileMatrix) + %nodefaultctor FEmTool_Assembly; class FEmTool_Assembly { public: @@ -391,51 +390,7 @@ class FEmTool_Curve : public MMgt_TShared { }; -%extend FEmTool_Curve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_Curve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_Curve::Handle_FEmTool_Curve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_Curve; -class Handle_FEmTool_Curve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_FEmTool_Curve(); - Handle_FEmTool_Curve(const Handle_FEmTool_Curve &aHandle); - Handle_FEmTool_Curve(const FEmTool_Curve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_Curve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_Curve { - FEmTool_Curve* _get_reference() { - return (FEmTool_Curve*)$self->Access(); - } -}; - -%extend Handle_FEmTool_Curve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_Curve) %extend FEmTool_Curve { %pythoncode { @@ -500,51 +455,7 @@ class FEmTool_ElementaryCriterion : public MMgt_TShared { }; -%extend FEmTool_ElementaryCriterion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_ElementaryCriterion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_ElementaryCriterion::Handle_FEmTool_ElementaryCriterion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_ElementaryCriterion; -class Handle_FEmTool_ElementaryCriterion : public Handle_MMgt_TShared { - - public: - // constructors - Handle_FEmTool_ElementaryCriterion(); - Handle_FEmTool_ElementaryCriterion(const Handle_FEmTool_ElementaryCriterion &aHandle); - Handle_FEmTool_ElementaryCriterion(const FEmTool_ElementaryCriterion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_ElementaryCriterion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_ElementaryCriterion { - FEmTool_ElementaryCriterion* _get_reference() { - return (FEmTool_ElementaryCriterion*)$self->Access(); - } -}; - -%extend Handle_FEmTool_ElementaryCriterion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_ElementaryCriterion) %extend FEmTool_ElementaryCriterion { %pythoncode { @@ -688,51 +599,7 @@ class FEmTool_HAssemblyTable : public MMgt_TShared { }; -%extend FEmTool_HAssemblyTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_HAssemblyTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_HAssemblyTable::Handle_FEmTool_HAssemblyTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_HAssemblyTable; -class Handle_FEmTool_HAssemblyTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_FEmTool_HAssemblyTable(); - Handle_FEmTool_HAssemblyTable(const Handle_FEmTool_HAssemblyTable &aHandle); - Handle_FEmTool_HAssemblyTable(const FEmTool_HAssemblyTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_HAssemblyTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_HAssemblyTable { - FEmTool_HAssemblyTable* _get_reference() { - return (FEmTool_HAssemblyTable*)$self->Access(); - } -}; - -%extend Handle_FEmTool_HAssemblyTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_HAssemblyTable) %extend FEmTool_HAssemblyTable { %pythoncode { @@ -796,51 +663,7 @@ class FEmTool_ListNodeOfListOfVectors : public TCollection_MapNode { }; -%extend FEmTool_ListNodeOfListOfVectors { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_ListNodeOfListOfVectors(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_ListNodeOfListOfVectors::Handle_FEmTool_ListNodeOfListOfVectors %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_ListNodeOfListOfVectors; -class Handle_FEmTool_ListNodeOfListOfVectors : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_FEmTool_ListNodeOfListOfVectors(); - Handle_FEmTool_ListNodeOfListOfVectors(const Handle_FEmTool_ListNodeOfListOfVectors &aHandle); - Handle_FEmTool_ListNodeOfListOfVectors(const FEmTool_ListNodeOfListOfVectors *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_ListNodeOfListOfVectors DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_ListNodeOfListOfVectors { - FEmTool_ListNodeOfListOfVectors* _get_reference() { - return (FEmTool_ListNodeOfListOfVectors*)$self->Access(); - } -}; - -%extend Handle_FEmTool_ListNodeOfListOfVectors { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_ListNodeOfListOfVectors) %extend FEmTool_ListNodeOfListOfVectors { %pythoncode { @@ -1145,51 +968,7 @@ class FEmTool_SequenceNodeOfSeqOfLinConstr : public TCollection_SeqNode { }; -%extend FEmTool_SequenceNodeOfSeqOfLinConstr { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_SequenceNodeOfSeqOfLinConstr(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_SequenceNodeOfSeqOfLinConstr::Handle_FEmTool_SequenceNodeOfSeqOfLinConstr %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_SequenceNodeOfSeqOfLinConstr; -class Handle_FEmTool_SequenceNodeOfSeqOfLinConstr : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_FEmTool_SequenceNodeOfSeqOfLinConstr(); - Handle_FEmTool_SequenceNodeOfSeqOfLinConstr(const Handle_FEmTool_SequenceNodeOfSeqOfLinConstr &aHandle); - Handle_FEmTool_SequenceNodeOfSeqOfLinConstr(const FEmTool_SequenceNodeOfSeqOfLinConstr *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_SequenceNodeOfSeqOfLinConstr DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_SequenceNodeOfSeqOfLinConstr { - FEmTool_SequenceNodeOfSeqOfLinConstr* _get_reference() { - return (FEmTool_SequenceNodeOfSeqOfLinConstr*)$self->Access(); - } -}; - -%extend Handle_FEmTool_SequenceNodeOfSeqOfLinConstr { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_SequenceNodeOfSeqOfLinConstr) %extend FEmTool_SequenceNodeOfSeqOfLinConstr { %pythoncode { @@ -1278,51 +1057,7 @@ class FEmTool_SparseMatrix : public MMgt_TShared { }; -%extend FEmTool_SparseMatrix { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_SparseMatrix(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_SparseMatrix::Handle_FEmTool_SparseMatrix %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_SparseMatrix; -class Handle_FEmTool_SparseMatrix : public Handle_MMgt_TShared { - - public: - // constructors - Handle_FEmTool_SparseMatrix(); - Handle_FEmTool_SparseMatrix(const Handle_FEmTool_SparseMatrix &aHandle); - Handle_FEmTool_SparseMatrix(const FEmTool_SparseMatrix *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_SparseMatrix DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_SparseMatrix { - FEmTool_SparseMatrix* _get_reference() { - return (FEmTool_SparseMatrix*)$self->Access(); - } -}; - -%extend Handle_FEmTool_SparseMatrix { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_SparseMatrix) %extend FEmTool_SparseMatrix { %pythoncode { @@ -1369,51 +1104,7 @@ class FEmTool_LinearFlexion : public FEmTool_ElementaryCriterion { }; -%extend FEmTool_LinearFlexion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_LinearFlexion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_LinearFlexion::Handle_FEmTool_LinearFlexion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_LinearFlexion; -class Handle_FEmTool_LinearFlexion : public Handle_FEmTool_ElementaryCriterion { - - public: - // constructors - Handle_FEmTool_LinearFlexion(); - Handle_FEmTool_LinearFlexion(const Handle_FEmTool_LinearFlexion &aHandle); - Handle_FEmTool_LinearFlexion(const FEmTool_LinearFlexion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_LinearFlexion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_LinearFlexion { - FEmTool_LinearFlexion* _get_reference() { - return (FEmTool_LinearFlexion*)$self->Access(); - } -}; - -%extend Handle_FEmTool_LinearFlexion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_LinearFlexion) %extend FEmTool_LinearFlexion { %pythoncode { @@ -1460,51 +1151,7 @@ class FEmTool_LinearJerk : public FEmTool_ElementaryCriterion { }; -%extend FEmTool_LinearJerk { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_LinearJerk(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_LinearJerk::Handle_FEmTool_LinearJerk %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_LinearJerk; -class Handle_FEmTool_LinearJerk : public Handle_FEmTool_ElementaryCriterion { - - public: - // constructors - Handle_FEmTool_LinearJerk(); - Handle_FEmTool_LinearJerk(const Handle_FEmTool_LinearJerk &aHandle); - Handle_FEmTool_LinearJerk(const FEmTool_LinearJerk *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_LinearJerk DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_LinearJerk { - FEmTool_LinearJerk* _get_reference() { - return (FEmTool_LinearJerk*)$self->Access(); - } -}; - -%extend Handle_FEmTool_LinearJerk { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_LinearJerk) %extend FEmTool_LinearJerk { %pythoncode { @@ -1551,51 +1198,7 @@ class FEmTool_LinearTension : public FEmTool_ElementaryCriterion { }; -%extend FEmTool_LinearTension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_LinearTension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_LinearTension::Handle_FEmTool_LinearTension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_LinearTension; -class Handle_FEmTool_LinearTension : public Handle_FEmTool_ElementaryCriterion { - - public: - // constructors - Handle_FEmTool_LinearTension(); - Handle_FEmTool_LinearTension(const Handle_FEmTool_LinearTension &aHandle); - Handle_FEmTool_LinearTension(const FEmTool_LinearTension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_LinearTension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_LinearTension { - FEmTool_LinearTension* _get_reference() { - return (FEmTool_LinearTension*)$self->Access(); - } -}; - -%extend Handle_FEmTool_LinearTension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_LinearTension) %extend FEmTool_LinearTension { %pythoncode { @@ -1706,51 +1309,7 @@ class FEmTool_ProfileMatrix : public FEmTool_SparseMatrix { }; -%extend FEmTool_ProfileMatrix { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_FEmTool_ProfileMatrix(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_FEmTool_ProfileMatrix::Handle_FEmTool_ProfileMatrix %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_FEmTool_ProfileMatrix; -class Handle_FEmTool_ProfileMatrix : public Handle_FEmTool_SparseMatrix { - - public: - // constructors - Handle_FEmTool_ProfileMatrix(); - Handle_FEmTool_ProfileMatrix(const Handle_FEmTool_ProfileMatrix &aHandle); - Handle_FEmTool_ProfileMatrix(const FEmTool_ProfileMatrix *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_FEmTool_ProfileMatrix DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_FEmTool_ProfileMatrix { - FEmTool_ProfileMatrix* _get_reference() { - return (FEmTool_ProfileMatrix*)$self->Access(); - } -}; - -%extend Handle_FEmTool_ProfileMatrix { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(FEmTool_ProfileMatrix) %extend FEmTool_ProfileMatrix { %pythoncode { diff --git a/src/SWIG_files/wrapper/FSD.i b/src/SWIG_files/wrapper/FSD.i index d17f2c59a..9098d2fc4 100644 --- a/src/SWIG_files/wrapper/FSD.i +++ b/src/SWIG_files/wrapper/FSD.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define FSDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=FSDDOCSTRING) FSD @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include FSD_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef fstream FSD_FStream; typedef FILE * FSD_BStream; diff --git a/src/SWIG_files/wrapper/FairCurve.i b/src/SWIG_files/wrapper/FairCurve.i index 7f025658d..51a115bee 100644 --- a/src/SWIG_files/wrapper/FairCurve.i +++ b/src/SWIG_files/wrapper/FairCurve.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define FAIRCURVEDOCSTRING -"No docstring provided." +"this package is used to make 'FairCurve' by +no linear optimization. +- Batten +- [Curve with] MinimalVariation [of curvature] or 'MVC'. +" %enddef %module (package="OCC.Core", docstring=FAIRCURVEDOCSTRING) FairCurve @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include FairCurve_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,6 +56,7 @@ enum FairCurve_AnalysisCode { /* end public enums declaration */ + %nodefaultctor FairCurve_Batten; class FairCurve_Batten { public: diff --git a/src/SWIG_files/wrapper/FilletSurf.i b/src/SWIG_files/wrapper/FilletSurf.i index 1a40537ec..21a11860e 100644 --- a/src/SWIG_files/wrapper/FilletSurf.i +++ b/src/SWIG_files/wrapper/FilletSurf.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define FILLETSURFDOCSTRING -"No docstring provided." +"This package contains the API giving +only geometric informations about fillets +for Toyota Project UV4. +" %enddef %module (package="OCC.Core", docstring=FILLETSURFDOCSTRING) FilletSurf @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include FilletSurf_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -80,6 +69,7 @@ enum FilletSurf_ErrorTypeStatus { /* end public enums declaration */ + %nodefaultctor FilletSurf_Builder; class FilletSurf_Builder { public: diff --git a/src/SWIG_files/wrapper/FilletSurf_headers.i b/src/SWIG_files/wrapper/FilletSurf_headers.i index 851c986c4..55e4cb5dc 100644 --- a/src/SWIG_files/wrapper/FilletSurf_headers.i +++ b/src/SWIG_files/wrapper/FilletSurf_headers.i @@ -296,6 +296,737 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/GC.i b/src/SWIG_files/wrapper/GC.i index 9d96f3601..fafedb751 100644 --- a/src/SWIG_files/wrapper/GC.i +++ b/src/SWIG_files/wrapper/GC.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define GCDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=GCDOCSTRING) GC @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GC_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor GC_MakeMirror; class GC_MakeMirror { public: diff --git a/src/SWIG_files/wrapper/GCE2d.i b/src/SWIG_files/wrapper/GCE2d.i index 437fbbb16..02476463a 100644 --- a/src/SWIG_files/wrapper/GCE2d.i +++ b/src/SWIG_files/wrapper/GCE2d.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define GCE2DDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=GCE2DDOCSTRING) GCE2d @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GCE2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor GCE2d_MakeMirror; class GCE2d_MakeMirror { public: diff --git a/src/SWIG_files/wrapper/GCPnts.i b/src/SWIG_files/wrapper/GCPnts.i index 367675a05..b8f29f1cf 100644 --- a/src/SWIG_files/wrapper/GCPnts.i +++ b/src/SWIG_files/wrapper/GCPnts.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define GCPNTSDOCSTRING -"No docstring provided." +"This package contains the geometric algorithmes used to +compute characteristic points on parametrized curves. + +They are high level algorithms based on the low level +algorithms in CPnts. +-Level : Public. +All methods of all classes will be public. +" %enddef %module (package="OCC.Core", docstring=GCPNTSDOCSTRING) GCPnts @@ -34,25 +41,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GCPnts_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -72,6 +65,7 @@ enum GCPnts_AbscissaType { /* end public enums declaration */ + class GCPnts_AbscissaPoint { public: %feature("compactdefaultargs") Length; diff --git a/src/SWIG_files/wrapper/GCPnts_headers.i b/src/SWIG_files/wrapper/GCPnts_headers.i index 1b4dc771e..6495b6c00 100644 --- a/src/SWIG_files/wrapper/GCPnts_headers.i +++ b/src/SWIG_files/wrapper/GCPnts_headers.i @@ -182,6 +182,71 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/GProp.i b/src/SWIG_files/wrapper/GProp.i index dcb49ee52..45b9c2fa1 100644 --- a/src/SWIG_files/wrapper/GProp.i +++ b/src/SWIG_files/wrapper/GProp.i @@ -18,7 +18,23 @@ along with pythonOCC. If not, see . */ %define GPROPDOCSTRING -"No docstring provided." +"- Purpose: +This package defines algorithmes to compute the global properties +of a set of points, a curve, a surface, a solid (non infinite +region of space delimited with geometric entities), a compound +geometric system (heterogeneous composition of the previous +entities). + +Global properties are : +. length, area, volume, +. centre of mass, +. axis of inertia, +. moments of inertia, +. radius of gyration. + +It provides also a class to compile the average point or +line of a set of points. +" %enddef %module (package="OCC.Core", docstring=GPROPDOCSTRING) GProp @@ -34,25 +50,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GProp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -81,6 +83,7 @@ enum GProp_ValueType { /* end public enums declaration */ + %rename(gprop) GProp; class GProp { public: diff --git a/src/SWIG_files/wrapper/GccAna.i b/src/SWIG_files/wrapper/GccAna.i index a2163b21a..02d782625 100644 --- a/src/SWIG_files/wrapper/GccAna.i +++ b/src/SWIG_files/wrapper/GccAna.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define GCCANADOCSTRING -"No docstring provided." +"-Purpose : This package provides an implementation of analytics +algorithms (using only non persistant entities) used +to create 2d lines or circles with geometric constraints. +" %enddef %module (package="OCC.Core", docstring=GCCANADOCSTRING) GccAna @@ -34,31 +37,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GccAna_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor GccAna_Circ2d2TanOn; class GccAna_Circ2d2TanOn { public: diff --git a/src/SWIG_files/wrapper/GccEnt.i b/src/SWIG_files/wrapper/GccEnt.i index c101b7682..382305cea 100644 --- a/src/SWIG_files/wrapper/GccEnt.i +++ b/src/SWIG_files/wrapper/GccEnt.i @@ -18,7 +18,24 @@ along with pythonOCC. If not, see . */ %define GCCENTDOCSTRING -"No docstring provided." +"This package provides an implementation of the qualified +entities useful to create 2d entities with geometric +constraints. The qualifier explains which subfamily of +solutions we want to obtain. It uses the following law: the +matter/the interior side is at the left of the line, if we go +from the beginning to the end. +The qualifiers are: +Enclosing : the solution(s) must enclose the argument. +Enclosed : the solution(s) must be enclosed in the +argument. +Outside : both the solution(s) and the argument must be +outside to each other. +Unqualified : the position is undefined, so give all the +solutions. +The use of a qualifier is always required if such +subfamilies exist. For example, it is not used for a point. +Note: the interior of a curve is defined as the left-hand +side of the curve in relation to its orientation." %enddef %module (package="OCC.Core", docstring=GCCENTDOCSTRING) GccEnt @@ -34,25 +51,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GccEnt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -67,6 +70,7 @@ enum GccEnt_Position { /* end public enums declaration */ + %rename(gccent) GccEnt; class GccEnt { public: diff --git a/src/SWIG_files/wrapper/GccGeo.i b/src/SWIG_files/wrapper/GccGeo.i index c3ed99266..d06e100b0 100644 --- a/src/SWIG_files/wrapper/GccGeo.i +++ b/src/SWIG_files/wrapper/GccGeo.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GccGeo_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/GccInt.i b/src/SWIG_files/wrapper/GccInt.i index 5e8f6fe3c..30bbe3a15 100644 --- a/src/SWIG_files/wrapper/GccInt.i +++ b/src/SWIG_files/wrapper/GccInt.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define GCCINTDOCSTRING -"No docstring provided." +"This package implements the services needed by the +toolkit Gcc to use curves other than lines or circles. +This package is also used for intersections and +bisecting curves. +" %enddef %module (package="OCC.Core", docstring=GCCINTDOCSTRING) GccInt @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GccInt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -68,6 +58,14 @@ enum GccInt_IType { /* end public enums declaration */ +%wrap_handle(GccInt_Bisec) +%wrap_handle(GccInt_BCirc) +%wrap_handle(GccInt_BElips) +%wrap_handle(GccInt_BHyper) +%wrap_handle(GccInt_BLine) +%wrap_handle(GccInt_BParab) +%wrap_handle(GccInt_BPoint) + %nodefaultctor GccInt_Bisec; class GccInt_Bisec : public MMgt_TShared { public: @@ -116,51 +114,7 @@ class GccInt_Bisec : public MMgt_TShared { }; -%extend GccInt_Bisec { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_Bisec(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_Bisec::Handle_GccInt_Bisec %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_Bisec; -class Handle_GccInt_Bisec : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GccInt_Bisec(); - Handle_GccInt_Bisec(const Handle_GccInt_Bisec &aHandle); - Handle_GccInt_Bisec(const GccInt_Bisec *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_Bisec DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_Bisec { - GccInt_Bisec* _get_reference() { - return (GccInt_Bisec*)$self->Access(); - } -}; - -%extend Handle_GccInt_Bisec { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_Bisec) %extend GccInt_Bisec { %pythoncode { @@ -193,51 +147,7 @@ class GccInt_BCirc : public GccInt_Bisec { }; -%extend GccInt_BCirc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_BCirc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_BCirc::Handle_GccInt_BCirc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_BCirc; -class Handle_GccInt_BCirc : public Handle_GccInt_Bisec { - - public: - // constructors - Handle_GccInt_BCirc(); - Handle_GccInt_BCirc(const Handle_GccInt_BCirc &aHandle); - Handle_GccInt_BCirc(const GccInt_BCirc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_BCirc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_BCirc { - GccInt_BCirc* _get_reference() { - return (GccInt_BCirc*)$self->Access(); - } -}; - -%extend Handle_GccInt_BCirc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_BCirc) %extend GccInt_BCirc { %pythoncode { @@ -270,51 +180,7 @@ class GccInt_BElips : public GccInt_Bisec { }; -%extend GccInt_BElips { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_BElips(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_BElips::Handle_GccInt_BElips %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_BElips; -class Handle_GccInt_BElips : public Handle_GccInt_Bisec { - - public: - // constructors - Handle_GccInt_BElips(); - Handle_GccInt_BElips(const Handle_GccInt_BElips &aHandle); - Handle_GccInt_BElips(const GccInt_BElips *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_BElips DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_BElips { - GccInt_BElips* _get_reference() { - return (GccInt_BElips*)$self->Access(); - } -}; - -%extend Handle_GccInt_BElips { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_BElips) %extend GccInt_BElips { %pythoncode { @@ -347,51 +213,7 @@ class GccInt_BHyper : public GccInt_Bisec { }; -%extend GccInt_BHyper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_BHyper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_BHyper::Handle_GccInt_BHyper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_BHyper; -class Handle_GccInt_BHyper : public Handle_GccInt_Bisec { - - public: - // constructors - Handle_GccInt_BHyper(); - Handle_GccInt_BHyper(const Handle_GccInt_BHyper &aHandle); - Handle_GccInt_BHyper(const GccInt_BHyper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_BHyper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_BHyper { - GccInt_BHyper* _get_reference() { - return (GccInt_BHyper*)$self->Access(); - } -}; - -%extend Handle_GccInt_BHyper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_BHyper) %extend GccInt_BHyper { %pythoncode { @@ -424,51 +246,7 @@ class GccInt_BLine : public GccInt_Bisec { }; -%extend GccInt_BLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_BLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_BLine::Handle_GccInt_BLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_BLine; -class Handle_GccInt_BLine : public Handle_GccInt_Bisec { - - public: - // constructors - Handle_GccInt_BLine(); - Handle_GccInt_BLine(const Handle_GccInt_BLine &aHandle); - Handle_GccInt_BLine(const GccInt_BLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_BLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_BLine { - GccInt_BLine* _get_reference() { - return (GccInt_BLine*)$self->Access(); - } -}; - -%extend Handle_GccInt_BLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_BLine) %extend GccInt_BLine { %pythoncode { @@ -501,51 +279,7 @@ class GccInt_BParab : public GccInt_Bisec { }; -%extend GccInt_BParab { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_BParab(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_BParab::Handle_GccInt_BParab %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_BParab; -class Handle_GccInt_BParab : public Handle_GccInt_Bisec { - - public: - // constructors - Handle_GccInt_BParab(); - Handle_GccInt_BParab(const Handle_GccInt_BParab &aHandle); - Handle_GccInt_BParab(const GccInt_BParab *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_BParab DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_BParab { - GccInt_BParab* _get_reference() { - return (GccInt_BParab*)$self->Access(); - } -}; - -%extend Handle_GccInt_BParab { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_BParab) %extend GccInt_BParab { %pythoncode { @@ -578,51 +312,7 @@ class GccInt_BPoint : public GccInt_Bisec { }; -%extend GccInt_BPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GccInt_BPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GccInt_BPoint::Handle_GccInt_BPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GccInt_BPoint; -class Handle_GccInt_BPoint : public Handle_GccInt_Bisec { - - public: - // constructors - Handle_GccInt_BPoint(); - Handle_GccInt_BPoint(const Handle_GccInt_BPoint &aHandle); - Handle_GccInt_BPoint(const GccInt_BPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GccInt_BPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GccInt_BPoint { - GccInt_BPoint* _get_reference() { - return (GccInt_BPoint*)$self->Access(); - } -}; - -%extend Handle_GccInt_BPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GccInt_BPoint) %extend GccInt_BPoint { %pythoncode { diff --git a/src/SWIG_files/wrapper/GccIter.i b/src/SWIG_files/wrapper/GccIter.i index fcfd1bc4d..ef9dacb2e 100644 --- a/src/SWIG_files/wrapper/GccIter.i +++ b/src/SWIG_files/wrapper/GccIter.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GccIter_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/Geom.i b/src/SWIG_files/wrapper/Geom.i index 8350fc125..e58e8b343 100644 --- a/src/SWIG_files/wrapper/Geom.i +++ b/src/SWIG_files/wrapper/Geom.i @@ -18,7 +18,28 @@ along with pythonOCC. If not, see . */ %define GEOMDOCSTRING -"No docstring provided." +"- Purpose : +This package contains the definition of the geometric objects +such as point, vector, axis placement, curves, surfaces and the +description of the geometric transformations available for these +objects. +All these entities are defined in 3D space. +This package gives the possibility : +. to create geometric objects, +. to have information about them, +. to modify these objects. +This package uses the services of the package gp (Geometric +processor) which describes non-persistent objects for algebraic +calculus and basic analytic geometry. The purpose of this package +is to create persistent geometric objects and to read geometric +information about these objects. Complexes geometric algorithmes +are not described in this package. At construction time, +elementary verifications are done to verify that the objects +are coherents, but some verifications which require complex +algorithmes (for example to check that a curve has not null +length or does not self-intersect) must be done before the +construction of the geometric objects. +" %enddef %module (package="OCC.Core", docstring=GEOMDOCSTRING) Geom @@ -34,31 +55,57 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Geom_Geometry) +%wrap_handle(Geom_HSequenceOfBSplineSurface) +%wrap_handle(Geom_SequenceNodeOfSequenceOfBSplineSurface) +%wrap_handle(Geom_Transformation) +%wrap_handle(Geom_AxisPlacement) +%wrap_handle(Geom_Curve) +%wrap_handle(Geom_Point) +%wrap_handle(Geom_Surface) +%wrap_handle(Geom_Vector) +%wrap_handle(Geom_Axis1Placement) +%wrap_handle(Geom_Axis2Placement) +%wrap_handle(Geom_BoundedCurve) +%wrap_handle(Geom_BoundedSurface) +%wrap_handle(Geom_CartesianPoint) +%wrap_handle(Geom_Conic) +%wrap_handle(Geom_Direction) +%wrap_handle(Geom_ElementarySurface) +%wrap_handle(Geom_Line) +%wrap_handle(Geom_OffsetCurve) +%wrap_handle(Geom_OffsetSurface) +%wrap_handle(Geom_SweptSurface) +%wrap_handle(Geom_VectorWithMagnitude) +%wrap_handle(Geom_BSplineCurve) +%wrap_handle(Geom_BSplineSurface) +%wrap_handle(Geom_BezierCurve) +%wrap_handle(Geom_BezierSurface) +%wrap_handle(Geom_Circle) +%wrap_handle(Geom_ConicalSurface) +%wrap_handle(Geom_CylindricalSurface) +%wrap_handle(Geom_Ellipse) +%wrap_handle(Geom_Hyperbola) +%wrap_handle(Geom_Parabola) +%wrap_handle(Geom_Plane) +%wrap_handle(Geom_RectangularTrimmedSurface) +%wrap_handle(Geom_SphericalSurface) +%wrap_handle(Geom_SurfaceOfLinearExtrusion) +%wrap_handle(Geom_SurfaceOfRevolution) +%wrap_handle(Geom_ToroidalSurface) +%wrap_handle(Geom_TrimmedCurve) + %nodefaultctor Geom_Geometry; class Geom_Geometry : public MMgt_TShared { public: @@ -195,51 +242,7 @@ class Geom_Geometry : public MMgt_TShared { }; -%extend Geom_Geometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Geometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Geometry::Handle_Geom_Geometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Geometry; -class Handle_Geom_Geometry : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Geom_Geometry(); - Handle_Geom_Geometry(const Handle_Geom_Geometry &aHandle); - Handle_Geom_Geometry(const Geom_Geometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Geometry DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Geometry { - Geom_Geometry* _get_reference() { - return (Geom_Geometry*)$self->Access(); - } -}; - -%extend Handle_Geom_Geometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Geometry) %extend Geom_Geometry { %pythoncode { @@ -384,51 +387,7 @@ class Geom_HSequenceOfBSplineSurface : public MMgt_TShared { }; -%extend Geom_HSequenceOfBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_HSequenceOfBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_HSequenceOfBSplineSurface::Handle_Geom_HSequenceOfBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_HSequenceOfBSplineSurface; -class Handle_Geom_HSequenceOfBSplineSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Geom_HSequenceOfBSplineSurface(); - Handle_Geom_HSequenceOfBSplineSurface(const Handle_Geom_HSequenceOfBSplineSurface &aHandle); - Handle_Geom_HSequenceOfBSplineSurface(const Geom_HSequenceOfBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_HSequenceOfBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_HSequenceOfBSplineSurface { - Geom_HSequenceOfBSplineSurface* _get_reference() { - return (Geom_HSequenceOfBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_HSequenceOfBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_HSequenceOfBSplineSurface) %extend Geom_HSequenceOfBSplineSurface { %pythoncode { @@ -524,51 +483,7 @@ class Geom_SequenceNodeOfSequenceOfBSplineSurface : public TCollection_SeqNode { }; -%extend Geom_SequenceNodeOfSequenceOfBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface::Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface; -class Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface(); - Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface(const Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface &aHandle); - Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface(const Geom_SequenceNodeOfSequenceOfBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface { - Geom_SequenceNodeOfSequenceOfBSplineSurface* _get_reference() { - return (Geom_SequenceNodeOfSequenceOfBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_SequenceNodeOfSequenceOfBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_SequenceNodeOfSequenceOfBSplineSurface) %extend Geom_SequenceNodeOfSequenceOfBSplineSurface { %pythoncode { @@ -930,51 +845,7 @@ class Geom_Transformation : public MMgt_TShared { }; -%extend Geom_Transformation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Transformation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Transformation::Handle_Geom_Transformation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Transformation; -class Handle_Geom_Transformation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Geom_Transformation(); - Handle_Geom_Transformation(const Handle_Geom_Transformation &aHandle); - Handle_Geom_Transformation(const Geom_Transformation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Transformation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Transformation { - Geom_Transformation* _get_reference() { - return (Geom_Transformation*)$self->Access(); - } -}; - -%extend Handle_Geom_Transformation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Transformation) %extend Geom_Transformation { %pythoncode { @@ -1037,51 +908,7 @@ class Geom_AxisPlacement : public Geom_Geometry { }; -%extend Geom_AxisPlacement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_AxisPlacement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_AxisPlacement::Handle_Geom_AxisPlacement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_AxisPlacement; -class Handle_Geom_AxisPlacement : public Handle_Geom_Geometry { - - public: - // constructors - Handle_Geom_AxisPlacement(); - Handle_Geom_AxisPlacement(const Handle_Geom_AxisPlacement &aHandle); - Handle_Geom_AxisPlacement(const Geom_AxisPlacement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_AxisPlacement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_AxisPlacement { - Geom_AxisPlacement* _get_reference() { - return (Geom_AxisPlacement*)$self->Access(); - } -}; - -%extend Handle_Geom_AxisPlacement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_AxisPlacement) %extend Geom_AxisPlacement { %pythoncode { @@ -1246,51 +1073,7 @@ class Geom_Curve : public Geom_Geometry { }; -%extend Geom_Curve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Curve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Curve::Handle_Geom_Curve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Curve; -class Handle_Geom_Curve : public Handle_Geom_Geometry { - - public: - // constructors - Handle_Geom_Curve(); - Handle_Geom_Curve(const Handle_Geom_Curve &aHandle); - Handle_Geom_Curve(const Geom_Curve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Curve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Curve { - Geom_Curve* _get_reference() { - return (Geom_Curve*)$self->Access(); - } -}; - -%extend Handle_Geom_Curve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Curve) %extend Geom_Curve { %pythoncode { @@ -1355,51 +1138,7 @@ class Geom_Point : public Geom_Geometry { }; -%extend Geom_Point { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Point(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Point::Handle_Geom_Point %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Point; -class Handle_Geom_Point : public Handle_Geom_Geometry { - - public: - // constructors - Handle_Geom_Point(); - Handle_Geom_Point(const Handle_Geom_Point &aHandle); - Handle_Geom_Point(const Geom_Point *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Point DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Point { - Geom_Point* _get_reference() { - return (Geom_Point*)$self->Access(); - } -}; - -%extend Handle_Geom_Point { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Point) %extend Geom_Point { %pythoncode { @@ -1664,51 +1403,7 @@ class Geom_Surface : public Geom_Geometry { }; -%extend Geom_Surface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Surface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Surface::Handle_Geom_Surface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Surface; -class Handle_Geom_Surface : public Handle_Geom_Geometry { - - public: - // constructors - Handle_Geom_Surface(); - Handle_Geom_Surface(const Handle_Geom_Surface &aHandle); - Handle_Geom_Surface(const Geom_Surface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Surface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Surface { - Geom_Surface* _get_reference() { - return (Geom_Surface*)$self->Access(); - } -}; - -%extend Handle_Geom_Surface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Surface) %extend Geom_Surface { %pythoncode { @@ -1853,51 +1548,7 @@ class Geom_Vector : public Geom_Geometry { }; -%extend Geom_Vector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Vector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Vector::Handle_Geom_Vector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Vector; -class Handle_Geom_Vector : public Handle_Geom_Geometry { - - public: - // constructors - Handle_Geom_Vector(); - Handle_Geom_Vector(const Handle_Geom_Vector &aHandle); - Handle_Geom_Vector(const Geom_Vector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Vector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Vector { - Geom_Vector* _get_reference() { - return (Geom_Vector*)$self->Access(); - } -}; - -%extend Handle_Geom_Vector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Vector) %extend Geom_Vector { %pythoncode { @@ -1968,51 +1619,7 @@ class Geom_Axis1Placement : public Geom_AxisPlacement { }; -%extend Geom_Axis1Placement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Axis1Placement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Axis1Placement::Handle_Geom_Axis1Placement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Axis1Placement; -class Handle_Geom_Axis1Placement : public Handle_Geom_AxisPlacement { - - public: - // constructors - Handle_Geom_Axis1Placement(); - Handle_Geom_Axis1Placement(const Handle_Geom_Axis1Placement &aHandle); - Handle_Geom_Axis1Placement(const Geom_Axis1Placement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Axis1Placement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Axis1Placement { - Geom_Axis1Placement* _get_reference() { - return (Geom_Axis1Placement*)$self->Access(); - } -}; - -%extend Handle_Geom_Axis1Placement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Axis1Placement) %extend Geom_Axis1Placement { %pythoncode { @@ -2109,51 +1716,7 @@ class Geom_Axis2Placement : public Geom_AxisPlacement { }; -%extend Geom_Axis2Placement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Axis2Placement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Axis2Placement::Handle_Geom_Axis2Placement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Axis2Placement; -class Handle_Geom_Axis2Placement : public Handle_Geom_AxisPlacement { - - public: - // constructors - Handle_Geom_Axis2Placement(); - Handle_Geom_Axis2Placement(const Handle_Geom_Axis2Placement &aHandle); - Handle_Geom_Axis2Placement(const Geom_Axis2Placement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Axis2Placement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Axis2Placement { - Geom_Axis2Placement* _get_reference() { - return (Geom_Axis2Placement*)$self->Access(); - } -}; - -%extend Handle_Geom_Axis2Placement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Axis2Placement) %extend Geom_Axis2Placement { %pythoncode { @@ -2178,51 +1741,7 @@ class Geom_BoundedCurve : public Geom_Curve { }; -%extend Geom_BoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_BoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_BoundedCurve::Handle_Geom_BoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_BoundedCurve; -class Handle_Geom_BoundedCurve : public Handle_Geom_Curve { - - public: - // constructors - Handle_Geom_BoundedCurve(); - Handle_Geom_BoundedCurve(const Handle_Geom_BoundedCurve &aHandle); - Handle_Geom_BoundedCurve(const Geom_BoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_BoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_BoundedCurve { - Geom_BoundedCurve* _get_reference() { - return (Geom_BoundedCurve*)$self->Access(); - } -}; - -%extend Handle_Geom_BoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_BoundedCurve) %extend Geom_BoundedCurve { %pythoncode { @@ -2235,51 +1754,7 @@ class Geom_BoundedSurface : public Geom_Surface { }; -%extend Geom_BoundedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_BoundedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_BoundedSurface::Handle_Geom_BoundedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_BoundedSurface; -class Handle_Geom_BoundedSurface : public Handle_Geom_Surface { - - public: - // constructors - Handle_Geom_BoundedSurface(); - Handle_Geom_BoundedSurface(const Handle_Geom_BoundedSurface &aHandle); - Handle_Geom_BoundedSurface(const Geom_BoundedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_BoundedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_BoundedSurface { - Geom_BoundedSurface* _get_reference() { - return (Geom_BoundedSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_BoundedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_BoundedSurface) %extend Geom_BoundedSurface { %pythoncode { @@ -2406,51 +1881,7 @@ class Geom_CartesianPoint : public Geom_Point { }; -%extend Geom_CartesianPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_CartesianPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_CartesianPoint::Handle_Geom_CartesianPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_CartesianPoint; -class Handle_Geom_CartesianPoint : public Handle_Geom_Point { - - public: - // constructors - Handle_Geom_CartesianPoint(); - Handle_Geom_CartesianPoint(const Handle_Geom_CartesianPoint &aHandle); - Handle_Geom_CartesianPoint(const Geom_CartesianPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_CartesianPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_CartesianPoint { - Geom_CartesianPoint* _get_reference() { - return (Geom_CartesianPoint*)$self->Access(); - } -}; - -%extend Handle_Geom_CartesianPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_CartesianPoint) %extend Geom_CartesianPoint { %pythoncode { @@ -2551,51 +1982,7 @@ class Geom_Conic : public Geom_Curve { }; -%extend Geom_Conic { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Conic(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Conic::Handle_Geom_Conic %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Conic; -class Handle_Geom_Conic : public Handle_Geom_Curve { - - public: - // constructors - Handle_Geom_Conic(); - Handle_Geom_Conic(const Handle_Geom_Conic &aHandle); - Handle_Geom_Conic(const Geom_Conic *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Conic DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Conic { - Geom_Conic* _get_reference() { - return (Geom_Conic*)$self->Access(); - } -}; - -%extend Handle_Geom_Conic { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Conic) %extend Geom_Conic { %pythoncode { @@ -2740,51 +2127,7 @@ class Geom_Direction : public Geom_Vector { }; -%extend Geom_Direction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Direction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Direction::Handle_Geom_Direction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Direction; -class Handle_Geom_Direction : public Handle_Geom_Vector { - - public: - // constructors - Handle_Geom_Direction(); - Handle_Geom_Direction(const Handle_Geom_Direction &aHandle); - Handle_Geom_Direction(const Geom_Direction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Direction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Direction { - Geom_Direction* _get_reference() { - return (Geom_Direction*)$self->Access(); - } -}; - -%extend Handle_Geom_Direction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Direction) %extend Geom_Direction { %pythoncode { @@ -2889,51 +2232,7 @@ class Geom_ElementarySurface : public Geom_Surface { }; -%extend Geom_ElementarySurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_ElementarySurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_ElementarySurface::Handle_Geom_ElementarySurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_ElementarySurface; -class Handle_Geom_ElementarySurface : public Handle_Geom_Surface { - - public: - // constructors - Handle_Geom_ElementarySurface(); - Handle_Geom_ElementarySurface(const Handle_Geom_ElementarySurface &aHandle); - Handle_Geom_ElementarySurface(const Geom_ElementarySurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_ElementarySurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_ElementarySurface { - Geom_ElementarySurface* _get_reference() { - return (Geom_ElementarySurface*)$self->Access(); - } -}; - -%extend Handle_Geom_ElementarySurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_ElementarySurface) %extend Geom_ElementarySurface { %pythoncode { @@ -3162,51 +2461,7 @@ class Geom_Line : public Geom_Curve { }; -%extend Geom_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Line::Handle_Geom_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Line; -class Handle_Geom_Line : public Handle_Geom_Curve { - - public: - // constructors - Handle_Geom_Line(); - Handle_Geom_Line(const Handle_Geom_Line &aHandle); - Handle_Geom_Line(const Geom_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Line { - Geom_Line* _get_reference() { - return (Geom_Line*)$self->Access(); - } -}; - -%extend Handle_Geom_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Line) %extend Geom_Line { %pythoncode { @@ -3499,51 +2754,7 @@ class Geom_OffsetCurve : public Geom_Curve { }; -%extend Geom_OffsetCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_OffsetCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_OffsetCurve::Handle_Geom_OffsetCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_OffsetCurve; -class Handle_Geom_OffsetCurve : public Handle_Geom_Curve { - - public: - // constructors - Handle_Geom_OffsetCurve(); - Handle_Geom_OffsetCurve(const Handle_Geom_OffsetCurve &aHandle); - Handle_Geom_OffsetCurve(const Geom_OffsetCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_OffsetCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_OffsetCurve { - Geom_OffsetCurve* _get_reference() { - return (Geom_OffsetCurve*)$self->Access(); - } -}; - -%extend Handle_Geom_OffsetCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_OffsetCurve) %extend Geom_OffsetCurve { %pythoncode { @@ -4074,51 +3285,7 @@ class Geom_OffsetSurface : public Geom_Surface { }; -%extend Geom_OffsetSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_OffsetSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_OffsetSurface::Handle_Geom_OffsetSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_OffsetSurface; -class Handle_Geom_OffsetSurface : public Handle_Geom_Surface { - - public: - // constructors - Handle_Geom_OffsetSurface(); - Handle_Geom_OffsetSurface(const Handle_Geom_OffsetSurface &aHandle); - Handle_Geom_OffsetSurface(const Geom_OffsetSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_OffsetSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_OffsetSurface { - Geom_OffsetSurface* _get_reference() { - return (Geom_OffsetSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_OffsetSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_OffsetSurface) %extend Geom_OffsetSurface { %pythoncode { @@ -4149,51 +3316,7 @@ class Geom_SweptSurface : public Geom_Surface { }; -%extend Geom_SweptSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_SweptSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_SweptSurface::Handle_Geom_SweptSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_SweptSurface; -class Handle_Geom_SweptSurface : public Handle_Geom_Surface { - - public: - // constructors - Handle_Geom_SweptSurface(); - Handle_Geom_SweptSurface(const Handle_Geom_SweptSurface &aHandle); - Handle_Geom_SweptSurface(const Geom_SweptSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_SweptSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_SweptSurface { - Geom_SweptSurface* _get_reference() { - return (Geom_SweptSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_SweptSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_SweptSurface) %extend Geom_SweptSurface { %pythoncode { @@ -4418,51 +3541,7 @@ class Geom_VectorWithMagnitude : public Geom_Vector { }; -%extend Geom_VectorWithMagnitude { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_VectorWithMagnitude(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_VectorWithMagnitude::Handle_Geom_VectorWithMagnitude %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_VectorWithMagnitude; -class Handle_Geom_VectorWithMagnitude : public Handle_Geom_Vector { - - public: - // constructors - Handle_Geom_VectorWithMagnitude(); - Handle_Geom_VectorWithMagnitude(const Handle_Geom_VectorWithMagnitude &aHandle); - Handle_Geom_VectorWithMagnitude(const Geom_VectorWithMagnitude *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_VectorWithMagnitude DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_VectorWithMagnitude { - Geom_VectorWithMagnitude* _get_reference() { - return (Geom_VectorWithMagnitude*)$self->Access(); - } -}; - -%extend Handle_Geom_VectorWithMagnitude { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_VectorWithMagnitude) %extend Geom_VectorWithMagnitude { %pythoncode { @@ -5173,51 +4252,7 @@ class Geom_BSplineCurve : public Geom_BoundedCurve { }; -%extend Geom_BSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_BSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_BSplineCurve::Handle_Geom_BSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_BSplineCurve; -class Handle_Geom_BSplineCurve : public Handle_Geom_BoundedCurve { - - public: - // constructors - Handle_Geom_BSplineCurve(); - Handle_Geom_BSplineCurve(const Handle_Geom_BSplineCurve &aHandle); - Handle_Geom_BSplineCurve(const Geom_BSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_BSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_BSplineCurve { - Geom_BSplineCurve* _get_reference() { - return (Geom_BSplineCurve*)$self->Access(); - } -}; - -%extend Handle_Geom_BSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_BSplineCurve) %extend Geom_BSplineCurve { %pythoncode { @@ -6392,51 +5427,7 @@ class Geom_BSplineSurface : public Geom_BoundedSurface { }; -%extend Geom_BSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_BSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_BSplineSurface::Handle_Geom_BSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_BSplineSurface; -class Handle_Geom_BSplineSurface : public Handle_Geom_BoundedSurface { - - public: - // constructors - Handle_Geom_BSplineSurface(); - Handle_Geom_BSplineSurface(const Handle_Geom_BSplineSurface &aHandle); - Handle_Geom_BSplineSurface(const Geom_BSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_BSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_BSplineSurface { - Geom_BSplineSurface* _get_reference() { - return (Geom_BSplineSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_BSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_BSplineSurface) %extend Geom_BSplineSurface { %pythoncode { @@ -6769,51 +5760,7 @@ class Geom_BezierCurve : public Geom_BoundedCurve { }; -%extend Geom_BezierCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_BezierCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_BezierCurve::Handle_Geom_BezierCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_BezierCurve; -class Handle_Geom_BezierCurve : public Handle_Geom_BoundedCurve { - - public: - // constructors - Handle_Geom_BezierCurve(); - Handle_Geom_BezierCurve(const Handle_Geom_BezierCurve &aHandle); - Handle_Geom_BezierCurve(const Geom_BezierCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_BezierCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_BezierCurve { - Geom_BezierCurve* _get_reference() { - return (Geom_BezierCurve*)$self->Access(); - } -}; - -%extend Handle_Geom_BezierCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_BezierCurve) %extend Geom_BezierCurve { %pythoncode { @@ -7376,51 +6323,7 @@ class Geom_BezierSurface : public Geom_BoundedSurface { }; -%extend Geom_BezierSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_BezierSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_BezierSurface::Handle_Geom_BezierSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_BezierSurface; -class Handle_Geom_BezierSurface : public Handle_Geom_BoundedSurface { - - public: - // constructors - Handle_Geom_BezierSurface(); - Handle_Geom_BezierSurface(const Handle_Geom_BezierSurface &aHandle); - Handle_Geom_BezierSurface(const Geom_BezierSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_BezierSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_BezierSurface { - Geom_BezierSurface* _get_reference() { - return (Geom_BezierSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_BezierSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_BezierSurface) %extend Geom_BezierSurface { %pythoncode { @@ -7593,51 +6496,7 @@ class Geom_Circle : public Geom_Conic { }; -%extend Geom_Circle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Circle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Circle::Handle_Geom_Circle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Circle; -class Handle_Geom_Circle : public Handle_Geom_Conic { - - public: - // constructors - Handle_Geom_Circle(); - Handle_Geom_Circle(const Handle_Geom_Circle &aHandle); - Handle_Geom_Circle(const Geom_Circle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Circle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Circle { - Geom_Circle* _get_reference() { - return (Geom_Circle*)$self->Access(); - } -}; - -%extend Handle_Geom_Circle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Circle) %extend Geom_Circle { %pythoncode { @@ -7948,51 +6807,7 @@ class Geom_ConicalSurface : public Geom_ElementarySurface { }; -%extend Geom_ConicalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_ConicalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_ConicalSurface::Handle_Geom_ConicalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_ConicalSurface; -class Handle_Geom_ConicalSurface : public Handle_Geom_ElementarySurface { - - public: - // constructors - Handle_Geom_ConicalSurface(); - Handle_Geom_ConicalSurface(const Handle_Geom_ConicalSurface &aHandle); - Handle_Geom_ConicalSurface(const Geom_ConicalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_ConicalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_ConicalSurface { - Geom_ConicalSurface* _get_reference() { - return (Geom_ConicalSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_ConicalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_ConicalSurface) %extend Geom_ConicalSurface { %pythoncode { @@ -8275,51 +7090,7 @@ class Geom_CylindricalSurface : public Geom_ElementarySurface { }; -%extend Geom_CylindricalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_CylindricalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_CylindricalSurface::Handle_Geom_CylindricalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_CylindricalSurface; -class Handle_Geom_CylindricalSurface : public Handle_Geom_ElementarySurface { - - public: - // constructors - Handle_Geom_CylindricalSurface(); - Handle_Geom_CylindricalSurface(const Handle_Geom_CylindricalSurface &aHandle); - Handle_Geom_CylindricalSurface(const Geom_CylindricalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_CylindricalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_CylindricalSurface { - Geom_CylindricalSurface* _get_reference() { - return (Geom_CylindricalSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_CylindricalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_CylindricalSurface) %extend Geom_CylindricalSurface { %pythoncode { @@ -8542,51 +7313,7 @@ class Geom_Ellipse : public Geom_Conic { }; -%extend Geom_Ellipse { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Ellipse(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Ellipse::Handle_Geom_Ellipse %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Ellipse; -class Handle_Geom_Ellipse : public Handle_Geom_Conic { - - public: - // constructors - Handle_Geom_Ellipse(); - Handle_Geom_Ellipse(const Handle_Geom_Ellipse &aHandle); - Handle_Geom_Ellipse(const Geom_Ellipse *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Ellipse DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Ellipse { - Geom_Ellipse* _get_reference() { - return (Geom_Ellipse*)$self->Access(); - } -}; - -%extend Handle_Geom_Ellipse { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Ellipse) %extend Geom_Ellipse { %pythoncode { @@ -8841,51 +7568,7 @@ class Geom_Hyperbola : public Geom_Conic { }; -%extend Geom_Hyperbola { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Hyperbola(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Hyperbola::Handle_Geom_Hyperbola %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Hyperbola; -class Handle_Geom_Hyperbola : public Handle_Geom_Conic { - - public: - // constructors - Handle_Geom_Hyperbola(); - Handle_Geom_Hyperbola(const Handle_Geom_Hyperbola &aHandle); - Handle_Geom_Hyperbola(const Geom_Hyperbola *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Hyperbola DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Hyperbola { - Geom_Hyperbola* _get_reference() { - return (Geom_Hyperbola*)$self->Access(); - } -}; - -%extend Handle_Geom_Hyperbola { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Hyperbola) %extend Geom_Hyperbola { %pythoncode { @@ -9104,51 +7787,7 @@ class Geom_Parabola : public Geom_Conic { }; -%extend Geom_Parabola { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Parabola(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Parabola::Handle_Geom_Parabola %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Parabola; -class Handle_Geom_Parabola : public Handle_Geom_Conic { - - public: - // constructors - Handle_Geom_Parabola(); - Handle_Geom_Parabola(const Handle_Geom_Parabola &aHandle); - Handle_Geom_Parabola(const Geom_Parabola *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Parabola DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Parabola { - Geom_Parabola* _get_reference() { - return (Geom_Parabola*)$self->Access(); - } -}; - -%extend Handle_Geom_Parabola { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Parabola) %extend Geom_Parabola { %pythoncode { @@ -9439,51 +8078,7 @@ class Geom_Plane : public Geom_ElementarySurface { }; -%extend Geom_Plane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_Plane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_Plane::Handle_Geom_Plane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_Plane; -class Handle_Geom_Plane : public Handle_Geom_ElementarySurface { - - public: - // constructors - Handle_Geom_Plane(); - Handle_Geom_Plane(const Handle_Geom_Plane &aHandle); - Handle_Geom_Plane(const Geom_Plane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_Plane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_Plane { - Geom_Plane* _get_reference() { - return (Geom_Plane*)$self->Access(); - } -}; - -%extend Handle_Geom_Plane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_Plane) %extend Geom_Plane { %pythoncode { @@ -9814,51 +8409,7 @@ class Geom_RectangularTrimmedSurface : public Geom_BoundedSurface { }; -%extend Geom_RectangularTrimmedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_RectangularTrimmedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_RectangularTrimmedSurface::Handle_Geom_RectangularTrimmedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_RectangularTrimmedSurface; -class Handle_Geom_RectangularTrimmedSurface : public Handle_Geom_BoundedSurface { - - public: - // constructors - Handle_Geom_RectangularTrimmedSurface(); - Handle_Geom_RectangularTrimmedSurface(const Handle_Geom_RectangularTrimmedSurface &aHandle); - Handle_Geom_RectangularTrimmedSurface(const Geom_RectangularTrimmedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_RectangularTrimmedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_RectangularTrimmedSurface { - Geom_RectangularTrimmedSurface* _get_reference() { - return (Geom_RectangularTrimmedSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_RectangularTrimmedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_RectangularTrimmedSurface) %extend Geom_RectangularTrimmedSurface { %pythoncode { @@ -10133,51 +8684,7 @@ class Geom_SphericalSurface : public Geom_ElementarySurface { }; -%extend Geom_SphericalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_SphericalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_SphericalSurface::Handle_Geom_SphericalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_SphericalSurface; -class Handle_Geom_SphericalSurface : public Handle_Geom_ElementarySurface { - - public: - // constructors - Handle_Geom_SphericalSurface(); - Handle_Geom_SphericalSurface(const Handle_Geom_SphericalSurface &aHandle); - Handle_Geom_SphericalSurface(const Geom_SphericalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_SphericalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_SphericalSurface { - Geom_SphericalSurface* _get_reference() { - return (Geom_SphericalSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_SphericalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_SphericalSurface) %extend Geom_SphericalSurface { %pythoncode { @@ -10538,51 +9045,7 @@ class Geom_SurfaceOfLinearExtrusion : public Geom_SweptSurface { }; -%extend Geom_SurfaceOfLinearExtrusion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_SurfaceOfLinearExtrusion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_SurfaceOfLinearExtrusion::Handle_Geom_SurfaceOfLinearExtrusion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_SurfaceOfLinearExtrusion; -class Handle_Geom_SurfaceOfLinearExtrusion : public Handle_Geom_SweptSurface { - - public: - // constructors - Handle_Geom_SurfaceOfLinearExtrusion(); - Handle_Geom_SurfaceOfLinearExtrusion(const Handle_Geom_SurfaceOfLinearExtrusion &aHandle); - Handle_Geom_SurfaceOfLinearExtrusion(const Geom_SurfaceOfLinearExtrusion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_SurfaceOfLinearExtrusion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_SurfaceOfLinearExtrusion { - Geom_SurfaceOfLinearExtrusion* _get_reference() { - return (Geom_SurfaceOfLinearExtrusion*)$self->Access(); - } -}; - -%extend Handle_Geom_SurfaceOfLinearExtrusion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_SurfaceOfLinearExtrusion) %extend Geom_SurfaceOfLinearExtrusion { %pythoncode { @@ -10975,51 +9438,7 @@ class Geom_SurfaceOfRevolution : public Geom_SweptSurface { }; -%extend Geom_SurfaceOfRevolution { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_SurfaceOfRevolution(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_SurfaceOfRevolution::Handle_Geom_SurfaceOfRevolution %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_SurfaceOfRevolution; -class Handle_Geom_SurfaceOfRevolution : public Handle_Geom_SweptSurface { - - public: - // constructors - Handle_Geom_SurfaceOfRevolution(); - Handle_Geom_SurfaceOfRevolution(const Handle_Geom_SurfaceOfRevolution &aHandle); - Handle_Geom_SurfaceOfRevolution(const Geom_SurfaceOfRevolution *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_SurfaceOfRevolution DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_SurfaceOfRevolution { - Geom_SurfaceOfRevolution* _get_reference() { - return (Geom_SurfaceOfRevolution*)$self->Access(); - } -}; - -%extend Handle_Geom_SurfaceOfRevolution { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_SurfaceOfRevolution) %extend Geom_SurfaceOfRevolution { %pythoncode { @@ -11292,51 +9711,7 @@ class Geom_ToroidalSurface : public Geom_ElementarySurface { }; -%extend Geom_ToroidalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_ToroidalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_ToroidalSurface::Handle_Geom_ToroidalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_ToroidalSurface; -class Handle_Geom_ToroidalSurface : public Handle_Geom_ElementarySurface { - - public: - // constructors - Handle_Geom_ToroidalSurface(); - Handle_Geom_ToroidalSurface(const Handle_Geom_ToroidalSurface &aHandle); - Handle_Geom_ToroidalSurface(const Geom_ToroidalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_ToroidalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_ToroidalSurface { - Geom_ToroidalSurface* _get_reference() { - return (Geom_ToroidalSurface*)$self->Access(); - } -}; - -%extend Handle_Geom_ToroidalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_ToroidalSurface) %extend Geom_ToroidalSurface { %pythoncode { @@ -11549,51 +9924,7 @@ class Geom_TrimmedCurve : public Geom_BoundedCurve { }; -%extend Geom_TrimmedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom_TrimmedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom_TrimmedCurve::Handle_Geom_TrimmedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom_TrimmedCurve; -class Handle_Geom_TrimmedCurve : public Handle_Geom_BoundedCurve { - - public: - // constructors - Handle_Geom_TrimmedCurve(); - Handle_Geom_TrimmedCurve(const Handle_Geom_TrimmedCurve &aHandle); - Handle_Geom_TrimmedCurve(const Geom_TrimmedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom_TrimmedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom_TrimmedCurve { - Geom_TrimmedCurve* _get_reference() { - return (Geom_TrimmedCurve*)$self->Access(); - } -}; - -%extend Handle_Geom_TrimmedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom_TrimmedCurve) %extend Geom_TrimmedCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/Geom2d.i b/src/SWIG_files/wrapper/Geom2d.i index 41bd8142d..035b31ab0 100644 --- a/src/SWIG_files/wrapper/Geom2d.i +++ b/src/SWIG_files/wrapper/Geom2d.i @@ -18,7 +18,29 @@ along with pythonOCC. If not, see . */ %define GEOM2DDOCSTRING -"No docstring provided." +"- Purpose : +This package contains the definition of the geometric objects +such as point, vector, axis placement, curves and the +description of the geometric transformations available +for these objects. +All these entities are defined in 2D space. +This package gives the possibility : +. to create geometric objects, +. to have information about them, +. to modify these objects. +This package uses the services of the package gp (Geometric +processor) which describes non-persistent objects for algebraic +calculus and basic analytic geometry. The purpose of this package +is to create persistent geometric objects and to read geometric +information about these objects. Complexes geometric algorithmes +are not described in this package. At construction time, +elementary verifications are done to verify that the objects +are coherents, but some verifications which require complex +algorithmes (for example to check that a curve has not null +length or does not self-intersect) must be done before the +construction of the geometric objects. + +" %enddef %module (package="OCC.Core", docstring=GEOM2DDOCSTRING) Geom2d @@ -34,31 +56,38 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Geom2d_Geometry) +%wrap_handle(Geom2d_Transformation) +%wrap_handle(Geom2d_AxisPlacement) +%wrap_handle(Geom2d_Curve) +%wrap_handle(Geom2d_Point) +%wrap_handle(Geom2d_Vector) +%wrap_handle(Geom2d_BoundedCurve) +%wrap_handle(Geom2d_CartesianPoint) +%wrap_handle(Geom2d_Conic) +%wrap_handle(Geom2d_Direction) +%wrap_handle(Geom2d_Line) +%wrap_handle(Geom2d_OffsetCurve) +%wrap_handle(Geom2d_VectorWithMagnitude) +%wrap_handle(Geom2d_BSplineCurve) +%wrap_handle(Geom2d_BezierCurve) +%wrap_handle(Geom2d_Circle) +%wrap_handle(Geom2d_Ellipse) +%wrap_handle(Geom2d_Hyperbola) +%wrap_handle(Geom2d_Parabola) +%wrap_handle(Geom2d_TrimmedCurve) + %nodefaultctor Geom2d_Geometry; class Geom2d_Geometry : public MMgt_TShared { public: @@ -179,51 +208,7 @@ class Geom2d_Geometry : public MMgt_TShared { }; -%extend Geom2d_Geometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Geometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Geometry::Handle_Geom2d_Geometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Geometry; -class Handle_Geom2d_Geometry : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Geom2d_Geometry(); - Handle_Geom2d_Geometry(const Handle_Geom2d_Geometry &aHandle); - Handle_Geom2d_Geometry(const Geom2d_Geometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Geometry DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Geometry { - Geom2d_Geometry* _get_reference() { - return (Geom2d_Geometry*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Geometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Geometry) %extend Geom2d_Geometry { %pythoncode { @@ -444,51 +429,7 @@ class Geom2d_Transformation : public MMgt_TShared { }; -%extend Geom2d_Transformation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Transformation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Transformation::Handle_Geom2d_Transformation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Transformation; -class Handle_Geom2d_Transformation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Geom2d_Transformation(); - Handle_Geom2d_Transformation(const Handle_Geom2d_Transformation &aHandle); - Handle_Geom2d_Transformation(const Geom2d_Transformation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Transformation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Transformation { - Geom2d_Transformation* _get_reference() { - return (Geom2d_Transformation*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Transformation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Transformation) %extend Geom2d_Transformation { %pythoncode { @@ -593,51 +534,7 @@ class Geom2d_AxisPlacement : public Geom2d_Geometry { }; -%extend Geom2d_AxisPlacement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_AxisPlacement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_AxisPlacement::Handle_Geom2d_AxisPlacement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_AxisPlacement; -class Handle_Geom2d_AxisPlacement : public Handle_Geom2d_Geometry { - - public: - // constructors - Handle_Geom2d_AxisPlacement(); - Handle_Geom2d_AxisPlacement(const Handle_Geom2d_AxisPlacement &aHandle); - Handle_Geom2d_AxisPlacement(const Geom2d_AxisPlacement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_AxisPlacement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_AxisPlacement { - Geom2d_AxisPlacement* _get_reference() { - return (Geom2d_AxisPlacement*)$self->Access(); - } -}; - -%extend Handle_Geom2d_AxisPlacement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_AxisPlacement) %extend Geom2d_AxisPlacement { %pythoncode { @@ -802,51 +699,7 @@ class Geom2d_Curve : public Geom2d_Geometry { }; -%extend Geom2d_Curve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Curve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Curve::Handle_Geom2d_Curve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Curve; -class Handle_Geom2d_Curve : public Handle_Geom2d_Geometry { - - public: - // constructors - Handle_Geom2d_Curve(); - Handle_Geom2d_Curve(const Handle_Geom2d_Curve &aHandle); - Handle_Geom2d_Curve(const Geom2d_Curve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Curve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Curve { - Geom2d_Curve* _get_reference() { - return (Geom2d_Curve*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Curve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Curve) %extend Geom2d_Curve { %pythoncode { @@ -903,51 +756,7 @@ class Geom2d_Point : public Geom2d_Geometry { }; -%extend Geom2d_Point { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Point(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Point::Handle_Geom2d_Point %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Point; -class Handle_Geom2d_Point : public Handle_Geom2d_Geometry { - - public: - // constructors - Handle_Geom2d_Point(); - Handle_Geom2d_Point(const Handle_Geom2d_Point &aHandle); - Handle_Geom2d_Point(const Geom2d_Point *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Point DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Point { - Geom2d_Point* _get_reference() { - return (Geom2d_Point*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Point { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Point) %extend Geom2d_Point { %pythoncode { @@ -1036,51 +845,7 @@ class Geom2d_Vector : public Geom2d_Geometry { }; -%extend Geom2d_Vector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Vector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Vector::Handle_Geom2d_Vector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Vector; -class Handle_Geom2d_Vector : public Handle_Geom2d_Geometry { - - public: - // constructors - Handle_Geom2d_Vector(); - Handle_Geom2d_Vector(const Handle_Geom2d_Vector &aHandle); - Handle_Geom2d_Vector(const Geom2d_Vector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Vector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Vector { - Geom2d_Vector* _get_reference() { - return (Geom2d_Vector*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Vector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Vector) %extend Geom2d_Vector { %pythoncode { @@ -1105,51 +870,7 @@ class Geom2d_BoundedCurve : public Geom2d_Curve { }; -%extend Geom2d_BoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_BoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_BoundedCurve::Handle_Geom2d_BoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_BoundedCurve; -class Handle_Geom2d_BoundedCurve : public Handle_Geom2d_Curve { - - public: - // constructors - Handle_Geom2d_BoundedCurve(); - Handle_Geom2d_BoundedCurve(const Handle_Geom2d_BoundedCurve &aHandle); - Handle_Geom2d_BoundedCurve(const Geom2d_BoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_BoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_BoundedCurve { - Geom2d_BoundedCurve* _get_reference() { - return (Geom2d_BoundedCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2d_BoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_BoundedCurve) %extend Geom2d_BoundedCurve { %pythoncode { @@ -1250,51 +971,7 @@ class Geom2d_CartesianPoint : public Geom2d_Point { }; -%extend Geom2d_CartesianPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_CartesianPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_CartesianPoint::Handle_Geom2d_CartesianPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_CartesianPoint; -class Handle_Geom2d_CartesianPoint : public Handle_Geom2d_Point { - - public: - // constructors - Handle_Geom2d_CartesianPoint(); - Handle_Geom2d_CartesianPoint(const Handle_Geom2d_CartesianPoint &aHandle); - Handle_Geom2d_CartesianPoint(const Geom2d_CartesianPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_CartesianPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_CartesianPoint { - Geom2d_CartesianPoint* _get_reference() { - return (Geom2d_CartesianPoint*)$self->Access(); - } -}; - -%extend Handle_Geom2d_CartesianPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_CartesianPoint) %extend Geom2d_CartesianPoint { %pythoncode { @@ -1395,51 +1072,7 @@ class Geom2d_Conic : public Geom2d_Curve { }; -%extend Geom2d_Conic { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Conic(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Conic::Handle_Geom2d_Conic %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Conic; -class Handle_Geom2d_Conic : public Handle_Geom2d_Curve { - - public: - // constructors - Handle_Geom2d_Conic(); - Handle_Geom2d_Conic(const Handle_Geom2d_Conic &aHandle); - Handle_Geom2d_Conic(const Geom2d_Conic *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Conic DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Conic { - Geom2d_Conic* _get_reference() { - return (Geom2d_Conic*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Conic { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Conic) %extend Geom2d_Conic { %pythoncode { @@ -1550,51 +1183,7 @@ class Geom2d_Direction : public Geom2d_Vector { }; -%extend Geom2d_Direction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Direction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Direction::Handle_Geom2d_Direction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Direction; -class Handle_Geom2d_Direction : public Handle_Geom2d_Vector { - - public: - // constructors - Handle_Geom2d_Direction(); - Handle_Geom2d_Direction(const Handle_Geom2d_Direction &aHandle); - Handle_Geom2d_Direction(const Geom2d_Direction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Direction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Direction { - Geom2d_Direction* _get_reference() { - return (Geom2d_Direction*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Direction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Direction) %extend Geom2d_Direction { %pythoncode { @@ -1841,51 +1430,7 @@ class Geom2d_Line : public Geom2d_Curve { }; -%extend Geom2d_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Line::Handle_Geom2d_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Line; -class Handle_Geom2d_Line : public Handle_Geom2d_Curve { - - public: - // constructors - Handle_Geom2d_Line(); - Handle_Geom2d_Line(const Handle_Geom2d_Line &aHandle); - Handle_Geom2d_Line(const Geom2d_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Line { - Geom2d_Line* _get_reference() { - return (Geom2d_Line*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Line) %extend Geom2d_Line { %pythoncode { @@ -2150,51 +1695,7 @@ class Geom2d_OffsetCurve : public Geom2d_Curve { }; -%extend Geom2d_OffsetCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_OffsetCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_OffsetCurve::Handle_Geom2d_OffsetCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_OffsetCurve; -class Handle_Geom2d_OffsetCurve : public Handle_Geom2d_Curve { - - public: - // constructors - Handle_Geom2d_OffsetCurve(); - Handle_Geom2d_OffsetCurve(const Handle_Geom2d_OffsetCurve &aHandle); - Handle_Geom2d_OffsetCurve(const Geom2d_OffsetCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_OffsetCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_OffsetCurve { - Geom2d_OffsetCurve* _get_reference() { - return (Geom2d_OffsetCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2d_OffsetCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_OffsetCurve) %extend Geom2d_OffsetCurve { %pythoncode { @@ -2425,51 +1926,7 @@ class Geom2d_VectorWithMagnitude : public Geom2d_Vector { }; -%extend Geom2d_VectorWithMagnitude { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_VectorWithMagnitude(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_VectorWithMagnitude::Handle_Geom2d_VectorWithMagnitude %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_VectorWithMagnitude; -class Handle_Geom2d_VectorWithMagnitude : public Handle_Geom2d_Vector { - - public: - // constructors - Handle_Geom2d_VectorWithMagnitude(); - Handle_Geom2d_VectorWithMagnitude(const Handle_Geom2d_VectorWithMagnitude &aHandle); - Handle_Geom2d_VectorWithMagnitude(const Geom2d_VectorWithMagnitude *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_VectorWithMagnitude DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_VectorWithMagnitude { - Geom2d_VectorWithMagnitude* _get_reference() { - return (Geom2d_VectorWithMagnitude*)$self->Access(); - } -}; - -%extend Handle_Geom2d_VectorWithMagnitude { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_VectorWithMagnitude) %extend Geom2d_VectorWithMagnitude { %pythoncode { @@ -3184,51 +2641,7 @@ class Geom2d_BSplineCurve : public Geom2d_BoundedCurve { }; -%extend Geom2d_BSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_BSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_BSplineCurve::Handle_Geom2d_BSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_BSplineCurve; -class Handle_Geom2d_BSplineCurve : public Handle_Geom2d_BoundedCurve { - - public: - // constructors - Handle_Geom2d_BSplineCurve(); - Handle_Geom2d_BSplineCurve(const Handle_Geom2d_BSplineCurve &aHandle); - Handle_Geom2d_BSplineCurve(const Geom2d_BSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_BSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_BSplineCurve { - Geom2d_BSplineCurve* _get_reference() { - return (Geom2d_BSplineCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2d_BSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_BSplineCurve) %extend Geom2d_BSplineCurve { %pythoncode { @@ -3539,51 +2952,7 @@ class Geom2d_BezierCurve : public Geom2d_BoundedCurve { }; -%extend Geom2d_BezierCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_BezierCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_BezierCurve::Handle_Geom2d_BezierCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_BezierCurve; -class Handle_Geom2d_BezierCurve : public Handle_Geom2d_BoundedCurve { - - public: - // constructors - Handle_Geom2d_BezierCurve(); - Handle_Geom2d_BezierCurve(const Handle_Geom2d_BezierCurve &aHandle); - Handle_Geom2d_BezierCurve(const Geom2d_BezierCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_BezierCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_BezierCurve { - Geom2d_BezierCurve* _get_reference() { - return (Geom2d_BezierCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2d_BezierCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_BezierCurve) %extend Geom2d_BezierCurve { %pythoncode { @@ -3766,51 +3135,7 @@ class Geom2d_Circle : public Geom2d_Conic { }; -%extend Geom2d_Circle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Circle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Circle::Handle_Geom2d_Circle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Circle; -class Handle_Geom2d_Circle : public Handle_Geom2d_Conic { - - public: - // constructors - Handle_Geom2d_Circle(); - Handle_Geom2d_Circle(const Handle_Geom2d_Circle &aHandle); - Handle_Geom2d_Circle(const Geom2d_Circle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Circle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Circle { - Geom2d_Circle* _get_reference() { - return (Geom2d_Circle*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Circle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Circle) %extend Geom2d_Circle { %pythoncode { @@ -4047,51 +3372,7 @@ class Geom2d_Ellipse : public Geom2d_Conic { }; -%extend Geom2d_Ellipse { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Ellipse(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Ellipse::Handle_Geom2d_Ellipse %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Ellipse; -class Handle_Geom2d_Ellipse : public Handle_Geom2d_Conic { - - public: - // constructors - Handle_Geom2d_Ellipse(); - Handle_Geom2d_Ellipse(const Handle_Geom2d_Ellipse &aHandle); - Handle_Geom2d_Ellipse(const Geom2d_Ellipse *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Ellipse DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Ellipse { - Geom2d_Ellipse* _get_reference() { - return (Geom2d_Ellipse*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Ellipse { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Ellipse) %extend Geom2d_Ellipse { %pythoncode { @@ -4360,51 +3641,7 @@ class Geom2d_Hyperbola : public Geom2d_Conic { }; -%extend Geom2d_Hyperbola { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Hyperbola(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Hyperbola::Handle_Geom2d_Hyperbola %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Hyperbola; -class Handle_Geom2d_Hyperbola : public Handle_Geom2d_Conic { - - public: - // constructors - Handle_Geom2d_Hyperbola(); - Handle_Geom2d_Hyperbola(const Handle_Geom2d_Hyperbola &aHandle); - Handle_Geom2d_Hyperbola(const Geom2d_Hyperbola *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Hyperbola DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Hyperbola { - Geom2d_Hyperbola* _get_reference() { - return (Geom2d_Hyperbola*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Hyperbola { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Hyperbola) %extend Geom2d_Hyperbola { %pythoncode { @@ -4635,51 +3872,7 @@ class Geom2d_Parabola : public Geom2d_Conic { }; -%extend Geom2d_Parabola { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_Parabola(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_Parabola::Handle_Geom2d_Parabola %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_Parabola; -class Handle_Geom2d_Parabola : public Handle_Geom2d_Conic { - - public: - // constructors - Handle_Geom2d_Parabola(); - Handle_Geom2d_Parabola(const Handle_Geom2d_Parabola &aHandle); - Handle_Geom2d_Parabola(const Geom2d_Parabola *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_Parabola DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_Parabola { - Geom2d_Parabola* _get_reference() { - return (Geom2d_Parabola*)$self->Access(); - } -}; - -%extend Handle_Geom2d_Parabola { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_Parabola) %extend Geom2d_Parabola { %pythoncode { @@ -4892,51 +4085,7 @@ class Geom2d_TrimmedCurve : public Geom2d_BoundedCurve { }; -%extend Geom2d_TrimmedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2d_TrimmedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2d_TrimmedCurve::Handle_Geom2d_TrimmedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2d_TrimmedCurve; -class Handle_Geom2d_TrimmedCurve : public Handle_Geom2d_BoundedCurve { - - public: - // constructors - Handle_Geom2d_TrimmedCurve(); - Handle_Geom2d_TrimmedCurve(const Handle_Geom2d_TrimmedCurve &aHandle); - Handle_Geom2d_TrimmedCurve(const Geom2d_TrimmedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2d_TrimmedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2d_TrimmedCurve { - Geom2d_TrimmedCurve* _get_reference() { - return (Geom2d_TrimmedCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2d_TrimmedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2d_TrimmedCurve) %extend Geom2d_TrimmedCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/Geom2dAPI.i b/src/SWIG_files/wrapper/Geom2dAPI.i index e1128449c..73a0b1989 100644 --- a/src/SWIG_files/wrapper/Geom2dAPI.i +++ b/src/SWIG_files/wrapper/Geom2dAPI.i @@ -18,7 +18,43 @@ along with pythonOCC. If not, see . */ %define GEOM2DAPIDOCSTRING -"No docstring provided." +"The Geom2dAPI package provides an Application +Programming Interface for the Geometry. + +The API is a set of classes aiming to provide : + +* High level and simple calls for the most common +operations. + +* Keeping an access on the low-level +implementation of high-level calls. + + +The API provides classes to call the algorithmes +of the Geometry + +* The constructors of the classes provides the +different constructions methods. + +* The class keeps as fields the different tools +used by the algorithmes + +* The class provides a casting method to get +automatically the result with a function-like +call. + +For example to evaluate the distance between a +point

and a curve , one can writes : + +D = Geom2dAPI_ProjectPointOnCurve(P,C); + +or + +Geom2dAPI_ProjectPointOnCurve PonC(P,C); +D = PonC.LowerDistance(); + + +" %enddef %module (package="OCC.Core", docstring=GEOM2DAPIDOCSTRING) Geom2dAPI @@ -34,31 +70,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor Geom2dAPI_ExtremaCurveCurve; class Geom2dAPI_ExtremaCurveCurve { public: diff --git a/src/SWIG_files/wrapper/Geom2dAPI_headers.i b/src/SWIG_files/wrapper/Geom2dAPI_headers.i index f4d8149a1..ab0e4011b 100644 --- a/src/SWIG_files/wrapper/Geom2dAPI_headers.i +++ b/src/SWIG_files/wrapper/Geom2dAPI_headers.i @@ -580,6 +580,126 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Geom2dAdaptor.i b/src/SWIG_files/wrapper/Geom2dAdaptor.i index cefb14410..c4f70949a 100644 --- a/src/SWIG_files/wrapper/Geom2dAdaptor.i +++ b/src/SWIG_files/wrapper/Geom2dAdaptor.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define GEOM2DADAPTORDOCSTRING -"No docstring provided." +"this package contains the geometric definition of +2d curves compatible with the Adaptor package +templates. +" %enddef %module (package="OCC.Core", docstring=GEOM2DADAPTORDOCSTRING) Geom2dAdaptor @@ -34,31 +37,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dAdaptor_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Geom2dAdaptor_GHCurve) +%wrap_handle(Geom2dAdaptor_HCurve) + %rename(geom2dadaptor) Geom2dAdaptor; class Geom2dAdaptor { public: @@ -347,51 +339,7 @@ class Geom2dAdaptor_GHCurve : public Adaptor2d_HCurve2d { }; -%extend Geom2dAdaptor_GHCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2dAdaptor_GHCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2dAdaptor_GHCurve::Handle_Geom2dAdaptor_GHCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2dAdaptor_GHCurve; -class Handle_Geom2dAdaptor_GHCurve : public Handle_Adaptor2d_HCurve2d { - - public: - // constructors - Handle_Geom2dAdaptor_GHCurve(); - Handle_Geom2dAdaptor_GHCurve(const Handle_Geom2dAdaptor_GHCurve &aHandle); - Handle_Geom2dAdaptor_GHCurve(const Geom2dAdaptor_GHCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2dAdaptor_GHCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2dAdaptor_GHCurve { - Geom2dAdaptor_GHCurve* _get_reference() { - return (Geom2dAdaptor_GHCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2dAdaptor_GHCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2dAdaptor_GHCurve) %extend Geom2dAdaptor_GHCurve { %pythoncode { @@ -432,51 +380,7 @@ class Geom2dAdaptor_HCurve : public Geom2dAdaptor_GHCurve { }; -%extend Geom2dAdaptor_HCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2dAdaptor_HCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2dAdaptor_HCurve::Handle_Geom2dAdaptor_HCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2dAdaptor_HCurve; -class Handle_Geom2dAdaptor_HCurve : public Handle_Geom2dAdaptor_GHCurve { - - public: - // constructors - Handle_Geom2dAdaptor_HCurve(); - Handle_Geom2dAdaptor_HCurve(const Handle_Geom2dAdaptor_HCurve &aHandle); - Handle_Geom2dAdaptor_HCurve(const Geom2dAdaptor_HCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2dAdaptor_HCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2dAdaptor_HCurve { - Geom2dAdaptor_HCurve* _get_reference() { - return (Geom2dAdaptor_HCurve*)$self->Access(); - } -}; - -%extend Handle_Geom2dAdaptor_HCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2dAdaptor_HCurve) %extend Geom2dAdaptor_HCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/Geom2dConvert.i b/src/SWIG_files/wrapper/Geom2dConvert.i index fafde0036..7082e1342 100644 --- a/src/SWIG_files/wrapper/Geom2dConvert.i +++ b/src/SWIG_files/wrapper/Geom2dConvert.i @@ -18,7 +18,28 @@ along with pythonOCC. If not, see . */ %define GEOM2DCONVERTDOCSTRING -"No docstring provided." +"- Purpose : +This package provides an implementation of algorithmes to do +the conversion between equivalent geometric entities from +package Geom2d. +It gives the possibility : +. to obtain the B-spline representation of bounded curves. +. to split a B-spline curve into several B-spline curves +with some constraints of continuity, +. to convert a B-spline curve into several Bezier curves +or surfaces. +All the geometric entities used in this package are bounded. +References : +. Generating the Bezier Points of B-spline curves and surfaces +(Wolfgang Bohm) CAGD volume 13 number 6 november 1981 +. On NURBS: A Survey (Leslie Piegl) IEEE Computer Graphics and +Application January 1991 +. Curve and surface construction using rational B-splines +(Leslie Piegl and Wayne Tiller) CAD Volume 19 number 9 november +1987 +. A survey of curve and surface methods in CAGD (Wolfgang BOHM) +CAGD 1 1984 +" %enddef %module (package="OCC.Core", docstring=GEOM2DCONVERTDOCSTRING) Geom2dConvert @@ -34,31 +55,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dConvert_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(geom2dconvert) Geom2dConvert; class Geom2dConvert { public: diff --git a/src/SWIG_files/wrapper/Geom2dGcc.i b/src/SWIG_files/wrapper/Geom2dGcc.i index aa6880314..25b71c6f6 100644 --- a/src/SWIG_files/wrapper/Geom2dGcc.i +++ b/src/SWIG_files/wrapper/Geom2dGcc.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define GEOM2DGCCDOCSTRING -"No docstring provided." +"- Purpose: The Geom2dGcc package describes qualified 2D +curves used in the construction of constrained geometric +objects by an algorithm provided by the Geom2dGcc package. +A qualified 2D curve is a curve with a qualifier which +specifies whether the solution of a construction +algorithm using the qualified curve (as an argument): +- encloses the curve, or +- is enclosed by the curve, or +- is built so that both the curve and this solution are external to one another, or +- is undefined (all solutions apply). +These package methods provide simpler functions to construct a qualified curve. +Note: the interior of a curve is defined as the left-hand +side of the curve in relation to its orientation. + +" %enddef %module (package="OCC.Core", docstring=GEOM2DGCCDOCSTRING) Geom2dGcc @@ -34,25 +48,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dGcc_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -88,6 +88,7 @@ enum Geom2dGcc_Type1 { /* end public enums declaration */ + %rename(geom2dgcc) Geom2dGcc; class Geom2dGcc { public: diff --git a/src/SWIG_files/wrapper/Geom2dGcc_headers.i b/src/SWIG_files/wrapper/Geom2dGcc_headers.i index 8fd72eb9c..e4f5677bd 100644 --- a/src/SWIG_files/wrapper/Geom2dGcc_headers.i +++ b/src/SWIG_files/wrapper/Geom2dGcc_headers.i @@ -304,6 +304,57 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Geom2dHatch.i b/src/SWIG_files/wrapper/Geom2dHatch.i index 82027d5fe..5ac99c46c 100644 --- a/src/SWIG_files/wrapper/Geom2dHatch.i +++ b/src/SWIG_files/wrapper/Geom2dHatch.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define GEOM2DHATCHDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=GEOM2DHATCHDOCSTRING) Geom2dHatch @@ -34,31 +34,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dHatch_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Geom2dHatch_DataMapNodeOfHatchings) +%wrap_handle(Geom2dHatch_DataMapNodeOfMapOfElements) + %nodefaultctor Geom2dHatch_Classifier; class Geom2dHatch_Classifier { public: @@ -221,51 +210,7 @@ class Geom2dHatch_DataMapNodeOfHatchings : public TCollection_MapNode { }; -%extend Geom2dHatch_DataMapNodeOfHatchings { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2dHatch_DataMapNodeOfHatchings(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2dHatch_DataMapNodeOfHatchings::Handle_Geom2dHatch_DataMapNodeOfHatchings %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2dHatch_DataMapNodeOfHatchings; -class Handle_Geom2dHatch_DataMapNodeOfHatchings : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Geom2dHatch_DataMapNodeOfHatchings(); - Handle_Geom2dHatch_DataMapNodeOfHatchings(const Handle_Geom2dHatch_DataMapNodeOfHatchings &aHandle); - Handle_Geom2dHatch_DataMapNodeOfHatchings(const Geom2dHatch_DataMapNodeOfHatchings *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2dHatch_DataMapNodeOfHatchings DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2dHatch_DataMapNodeOfHatchings { - Geom2dHatch_DataMapNodeOfHatchings* _get_reference() { - return (Geom2dHatch_DataMapNodeOfHatchings*)$self->Access(); - } -}; - -%extend Handle_Geom2dHatch_DataMapNodeOfHatchings { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2dHatch_DataMapNodeOfHatchings) %extend Geom2dHatch_DataMapNodeOfHatchings { %pythoncode { @@ -305,51 +250,7 @@ class Geom2dHatch_DataMapNodeOfMapOfElements : public TCollection_MapNode { }; -%extend Geom2dHatch_DataMapNodeOfMapOfElements { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2dHatch_DataMapNodeOfMapOfElements(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2dHatch_DataMapNodeOfMapOfElements::Handle_Geom2dHatch_DataMapNodeOfMapOfElements %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2dHatch_DataMapNodeOfMapOfElements; -class Handle_Geom2dHatch_DataMapNodeOfMapOfElements : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Geom2dHatch_DataMapNodeOfMapOfElements(); - Handle_Geom2dHatch_DataMapNodeOfMapOfElements(const Handle_Geom2dHatch_DataMapNodeOfMapOfElements &aHandle); - Handle_Geom2dHatch_DataMapNodeOfMapOfElements(const Geom2dHatch_DataMapNodeOfMapOfElements *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2dHatch_DataMapNodeOfMapOfElements DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2dHatch_DataMapNodeOfMapOfElements { - Geom2dHatch_DataMapNodeOfMapOfElements* _get_reference() { - return (Geom2dHatch_DataMapNodeOfMapOfElements*)$self->Access(); - } -}; - -%extend Handle_Geom2dHatch_DataMapNodeOfMapOfElements { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2dHatch_DataMapNodeOfMapOfElements) %extend Geom2dHatch_DataMapNodeOfMapOfElements { %pythoncode { diff --git a/src/SWIG_files/wrapper/Geom2dInt.i b/src/SWIG_files/wrapper/Geom2dInt.i index a53285871..2cc41d557 100644 --- a/src/SWIG_files/wrapper/Geom2dInt.i +++ b/src/SWIG_files/wrapper/Geom2dInt.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define GEOM2DINTDOCSTRING -"No docstring provided." +"Intersection between two Curves2 from Geom2dAdaptor + +-Level: Public + +All the methods of the classes are public. + + +" %enddef %module (package="OCC.Core", docstring=GEOM2DINTDOCSTRING) Geom2dInt @@ -34,31 +41,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dInt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter) + %nodefaultctor Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter; class Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter { public: @@ -997,51 +992,7 @@ class Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter }; -%extend Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter::Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter; -class Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(); - Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(const Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter &aHandle); - Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(const Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter { - Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter* _get_reference() { - return (Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter*)$self->Access(); - } -}; - -%extend Handle_Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter) %extend Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter { %pythoncode { diff --git a/src/SWIG_files/wrapper/Geom2dLProp.i b/src/SWIG_files/wrapper/Geom2dLProp.i index 8abf38c83..692e5e9fa 100644 --- a/src/SWIG_files/wrapper/Geom2dLProp.i +++ b/src/SWIG_files/wrapper/Geom2dLProp.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define GEOM2DLPROPDOCSTRING -"No docstring provided." +"Handles local properties of curves and surfaces from the +packages Geom and Geom2d. +SeeAlso: Package LProp. + + +-Level : Public. +All methods of all classes will be public. +" %enddef %module (package="OCC.Core", docstring=GEOM2DLPROPDOCSTRING) Geom2dLProp @@ -34,31 +41,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Geom2dLProp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor Geom2dLProp_CLProps2d; class Geom2dLProp_CLProps2d { public: diff --git a/src/SWIG_files/wrapper/GeomAPI.i b/src/SWIG_files/wrapper/GeomAPI.i index ae1c1b473..e96946047 100644 --- a/src/SWIG_files/wrapper/GeomAPI.i +++ b/src/SWIG_files/wrapper/GeomAPI.i @@ -18,7 +18,44 @@ along with pythonOCC. If not, see . */ %define GEOMAPIDOCSTRING -"No docstring provided." +"The GeomAPI package provides an Application +Programming Interface for the Geometry. + +The API is a set of classes and methods aiming to +provide : + +* High level and simple calls for the most common +operations. + +* Keeping an access on the low-level +implementation of high-level calls. + + +The API provides classes to call the algorithmes +of the Geometry + +* The constructors of the classes provides the +different constructions methods. + +* The class keeps as fields the different tools +used by the algorithmes + +* The class provides a casting method to get +automatically the result with a function-like +call. + +For example to evaluate the distance between a +point

and a curve , one can writes : + +D = GeomAPI_ProjectPointOnCurve(P,C); + +or + +GeomAPI_ProjectPointOnCurve PonC(P,C); +D = PonC.LowerDistance(); + + +" %enddef %module (package="OCC.Core", docstring=GEOMAPIDOCSTRING) GeomAPI @@ -34,31 +71,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(geomapi) GeomAPI; class GeomAPI { public: diff --git a/src/SWIG_files/wrapper/GeomAPI_headers.i b/src/SWIG_files/wrapper/GeomAPI_headers.i index 57f4fb381..edd7dcae7 100644 --- a/src/SWIG_files/wrapper/GeomAPI_headers.i +++ b/src/SWIG_files/wrapper/GeomAPI_headers.i @@ -613,6 +613,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/GeomAbs.i b/src/SWIG_files/wrapper/GeomAbs.i index 75e875220..234ddc7f0 100644 --- a/src/SWIG_files/wrapper/GeomAbs.i +++ b/src/SWIG_files/wrapper/GeomAbs.i @@ -18,7 +18,29 @@ along with pythonOCC. If not, see . */ %define GEOMABSDOCSTRING -"No docstring provided." +"This package gives resources for Geometric applications + +it contains : +CurveType enumeration to describe the different type of +curves + +SurfaceType enumeration to describe the different type of +surfaces + +Shape enumeration to describe the continuity of curve +or surface + +CurveForm enumeration to describe the specific form of +curve + +SurfaceForm enumeration to describe the specific form of +surface + +BSplKnotDistribution enumeration to describe the +repartition of set of knots + +UVSense enumeration to describe the orientation of +the parametric surface" %enddef %module (package="OCC.Core", docstring=GEOMABSDOCSTRING) GeomAbs @@ -34,25 +56,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomAbs_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -141,3 +149,4 @@ enum GeomAbs_UVSense { /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/GeomAdaptor.i b/src/SWIG_files/wrapper/GeomAdaptor.i index fb487183a..3d1e1905d 100644 --- a/src/SWIG_files/wrapper/GeomAdaptor.i +++ b/src/SWIG_files/wrapper/GeomAdaptor.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define GEOMADAPTORDOCSTRING -"No docstring provided." +"this package contains the geometric definition of +curve and surface necessary to use algorithmes. +" %enddef %module (package="OCC.Core", docstring=GEOMADAPTORDOCSTRING) GeomAdaptor @@ -34,31 +36,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomAdaptor_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(GeomAdaptor_GHCurve) +%wrap_handle(GeomAdaptor_GHSurface) +%wrap_handle(GeomAdaptor_HCurve) +%wrap_handle(GeomAdaptor_HSurface) + %rename(geomadaptor) GeomAdaptor; class GeomAdaptor { public: @@ -371,51 +364,7 @@ class GeomAdaptor_GHCurve : public Adaptor3d_HCurve { }; -%extend GeomAdaptor_GHCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomAdaptor_GHCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomAdaptor_GHCurve::Handle_GeomAdaptor_GHCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomAdaptor_GHCurve; -class Handle_GeomAdaptor_GHCurve : public Handle_Adaptor3d_HCurve { - - public: - // constructors - Handle_GeomAdaptor_GHCurve(); - Handle_GeomAdaptor_GHCurve(const Handle_GeomAdaptor_GHCurve &aHandle); - Handle_GeomAdaptor_GHCurve(const GeomAdaptor_GHCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomAdaptor_GHCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomAdaptor_GHCurve { - GeomAdaptor_GHCurve* _get_reference() { - return (GeomAdaptor_GHCurve*)$self->Access(); - } -}; - -%extend Handle_GeomAdaptor_GHCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomAdaptor_GHCurve) %extend GeomAdaptor_GHCurve { %pythoncode { @@ -452,51 +401,7 @@ class GeomAdaptor_GHSurface : public Adaptor3d_HSurface { }; -%extend GeomAdaptor_GHSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomAdaptor_GHSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomAdaptor_GHSurface::Handle_GeomAdaptor_GHSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomAdaptor_GHSurface; -class Handle_GeomAdaptor_GHSurface : public Handle_Adaptor3d_HSurface { - - public: - // constructors - Handle_GeomAdaptor_GHSurface(); - Handle_GeomAdaptor_GHSurface(const Handle_GeomAdaptor_GHSurface &aHandle); - Handle_GeomAdaptor_GHSurface(const GeomAdaptor_GHSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomAdaptor_GHSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomAdaptor_GHSurface { - GeomAdaptor_GHSurface* _get_reference() { - return (GeomAdaptor_GHSurface*)$self->Access(); - } -}; - -%extend Handle_GeomAdaptor_GHSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomAdaptor_GHSurface) %extend GeomAdaptor_GHSurface { %pythoncode { @@ -926,51 +831,7 @@ class GeomAdaptor_HCurve : public GeomAdaptor_GHCurve { }; -%extend GeomAdaptor_HCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomAdaptor_HCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomAdaptor_HCurve::Handle_GeomAdaptor_HCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomAdaptor_HCurve; -class Handle_GeomAdaptor_HCurve : public Handle_GeomAdaptor_GHCurve { - - public: - // constructors - Handle_GeomAdaptor_HCurve(); - Handle_GeomAdaptor_HCurve(const Handle_GeomAdaptor_HCurve &aHandle); - Handle_GeomAdaptor_HCurve(const GeomAdaptor_HCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomAdaptor_HCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomAdaptor_HCurve { - GeomAdaptor_HCurve* _get_reference() { - return (GeomAdaptor_HCurve*)$self->Access(); - } -}; - -%extend Handle_GeomAdaptor_HCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomAdaptor_HCurve) %extend GeomAdaptor_HCurve { %pythoncode { @@ -1019,51 +880,7 @@ class GeomAdaptor_HSurface : public GeomAdaptor_GHSurface { }; -%extend GeomAdaptor_HSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomAdaptor_HSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomAdaptor_HSurface::Handle_GeomAdaptor_HSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomAdaptor_HSurface; -class Handle_GeomAdaptor_HSurface : public Handle_GeomAdaptor_GHSurface { - - public: - // constructors - Handle_GeomAdaptor_HSurface(); - Handle_GeomAdaptor_HSurface(const Handle_GeomAdaptor_HSurface &aHandle); - Handle_GeomAdaptor_HSurface(const GeomAdaptor_HSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomAdaptor_HSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomAdaptor_HSurface { - GeomAdaptor_HSurface* _get_reference() { - return (GeomAdaptor_HSurface*)$self->Access(); - } -}; - -%extend Handle_GeomAdaptor_HSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomAdaptor_HSurface) %extend GeomAdaptor_HSurface { %pythoncode { diff --git a/src/SWIG_files/wrapper/GeomConvert.i b/src/SWIG_files/wrapper/GeomConvert.i index c163cdf01..c26e13531 100644 --- a/src/SWIG_files/wrapper/GeomConvert.i +++ b/src/SWIG_files/wrapper/GeomConvert.i @@ -18,7 +18,33 @@ along with pythonOCC. If not, see . */ %define GEOMCONVERTDOCSTRING -"No docstring provided." +"- Purpose : The GeomConvert package provides some global functions as follows +- converting classical Geom curves into BSpline curves, +- segmenting BSpline curves, particularly at knots +values: this function may be used in conjunction with the +GeomConvert_BSplineCurveKnotSplitting +class to segment a BSpline curve into arcs which +comply with required continuity levels, +- converting classical Geom surfaces into BSpline surfaces, and +- segmenting BSpline surfaces, particularly at +knots values: this function may be used in conjunction with the +GeomConvert_BSplineSurfaceKnotSplitting +class to segment a BSpline surface into patches +which comply with required continuity levels. +All geometric entities used in this package are bounded. + +References : +. Generating the Bezier Points of B-spline curves and surfaces +(Wolfgang Bohm) CAGD volume 13 number 6 november 1981 +. On NURBS: A Survey (Leslie Piegl) IEEE Computer Graphics and +Application January 1991 +. Curve and surface construction using rational B-splines +(Leslie Piegl and Wayne Tiller) CAD Volume 19 number 9 november +1987 +. A survey of curve and surface methods in CAGD (Wolfgang BOHM) +CAGD 1 1984 + +" %enddef %module (package="OCC.Core", docstring=GEOMCONVERTDOCSTRING) GeomConvert @@ -34,31 +60,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomConvert_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(geomconvert) GeomConvert; class GeomConvert { public: diff --git a/src/SWIG_files/wrapper/GeomConvert_headers.i b/src/SWIG_files/wrapper/GeomConvert_headers.i index dfce35061..198d661b2 100644 --- a/src/SWIG_files/wrapper/GeomConvert_headers.i +++ b/src/SWIG_files/wrapper/GeomConvert_headers.i @@ -399,6 +399,28 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/GeomFill.i b/src/SWIG_files/wrapper/GeomFill.i index e6f3da36e..c2882f4d4 100644 --- a/src/SWIG_files/wrapper/GeomFill.i +++ b/src/SWIG_files/wrapper/GeomFill.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define GEOMFILLDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=GEOMFILLDOCSTRING) GeomFill @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomFill_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -90,6 +76,40 @@ enum GeomFill_PipeError { /* end public enums declaration */ +%wrap_handle(GeomFill_Boundary) +%wrap_handle(GeomFill_CircularBlendFunc) +%wrap_handle(GeomFill_CoonsAlgPatch) +%wrap_handle(GeomFill_HArray1OfLocationLaw) +%wrap_handle(GeomFill_HArray1OfSectionLaw) +%wrap_handle(GeomFill_HSequenceOfAx2) +%wrap_handle(GeomFill_Line) +%wrap_handle(GeomFill_LocationLaw) +%wrap_handle(GeomFill_SectionLaw) +%wrap_handle(GeomFill_SequenceNodeOfSequenceOfAx2) +%wrap_handle(GeomFill_SequenceNodeOfSequenceOfTrsf) +%wrap_handle(GeomFill_SweepFunction) +%wrap_handle(GeomFill_TgtField) +%wrap_handle(GeomFill_TrihedronLaw) +%wrap_handle(GeomFill_BoundWithSurf) +%wrap_handle(GeomFill_ConstantBiNormal) +%wrap_handle(GeomFill_CorrectedFrenet) +%wrap_handle(GeomFill_CurveAndTrihedron) +%wrap_handle(GeomFill_Darboux) +%wrap_handle(GeomFill_DegeneratedBound) +%wrap_handle(GeomFill_DiscreteTrihedron) +%wrap_handle(GeomFill_DraftTrihedron) +%wrap_handle(GeomFill_EvolvedSection) +%wrap_handle(GeomFill_Fixed) +%wrap_handle(GeomFill_Frenet) +%wrap_handle(GeomFill_LocationDraft) +%wrap_handle(GeomFill_LocationGuide) +%wrap_handle(GeomFill_SimpleBound) +%wrap_handle(GeomFill_TgtOnCoons) +%wrap_handle(GeomFill_TrihedronWithGuide) +%wrap_handle(GeomFill_UniformSection) +%wrap_handle(GeomFill_GuideTrihedronAC) +%wrap_handle(GeomFill_GuideTrihedronPlan) + %rename(geomfill) GeomFill; class GeomFill { public: @@ -1261,51 +1281,7 @@ class GeomFill_Boundary : public MMgt_TShared { }; -%extend GeomFill_Boundary { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_Boundary(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_Boundary::Handle_GeomFill_Boundary %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_Boundary; -class Handle_GeomFill_Boundary : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_Boundary(); - Handle_GeomFill_Boundary(const Handle_GeomFill_Boundary &aHandle); - Handle_GeomFill_Boundary(const GeomFill_Boundary *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_Boundary DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_Boundary { - GeomFill_Boundary* _get_reference() { - return (GeomFill_Boundary*)$self->Access(); - } -}; - -%extend Handle_GeomFill_Boundary { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_Boundary) %extend GeomFill_Boundary { %pythoncode { @@ -1518,51 +1494,7 @@ class GeomFill_CircularBlendFunc : public Approx_SweepFunction { }; -%extend GeomFill_CircularBlendFunc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_CircularBlendFunc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_CircularBlendFunc::Handle_GeomFill_CircularBlendFunc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_CircularBlendFunc; -class Handle_GeomFill_CircularBlendFunc : public Handle_Approx_SweepFunction { - - public: - // constructors - Handle_GeomFill_CircularBlendFunc(); - Handle_GeomFill_CircularBlendFunc(const Handle_GeomFill_CircularBlendFunc &aHandle); - Handle_GeomFill_CircularBlendFunc(const GeomFill_CircularBlendFunc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_CircularBlendFunc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_CircularBlendFunc { - GeomFill_CircularBlendFunc* _get_reference() { - return (GeomFill_CircularBlendFunc*)$self->Access(); - } -}; - -%extend Handle_GeomFill_CircularBlendFunc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_CircularBlendFunc) %extend GeomFill_CircularBlendFunc { %pythoncode { @@ -1790,51 +1722,7 @@ class GeomFill_CoonsAlgPatch : public MMgt_TShared { }; -%extend GeomFill_CoonsAlgPatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_CoonsAlgPatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_CoonsAlgPatch::Handle_GeomFill_CoonsAlgPatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_CoonsAlgPatch; -class Handle_GeomFill_CoonsAlgPatch : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_CoonsAlgPatch(); - Handle_GeomFill_CoonsAlgPatch(const Handle_GeomFill_CoonsAlgPatch &aHandle); - Handle_GeomFill_CoonsAlgPatch(const GeomFill_CoonsAlgPatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_CoonsAlgPatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_CoonsAlgPatch { - GeomFill_CoonsAlgPatch* _get_reference() { - return (GeomFill_CoonsAlgPatch*)$self->Access(); - } -}; - -%extend Handle_GeomFill_CoonsAlgPatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_CoonsAlgPatch) %extend GeomFill_CoonsAlgPatch { %pythoncode { @@ -2227,51 +2115,7 @@ class GeomFill_HArray1OfLocationLaw : public MMgt_TShared { }; -%extend GeomFill_HArray1OfLocationLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_HArray1OfLocationLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_HArray1OfLocationLaw::Handle_GeomFill_HArray1OfLocationLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_HArray1OfLocationLaw; -class Handle_GeomFill_HArray1OfLocationLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_HArray1OfLocationLaw(); - Handle_GeomFill_HArray1OfLocationLaw(const Handle_GeomFill_HArray1OfLocationLaw &aHandle); - Handle_GeomFill_HArray1OfLocationLaw(const GeomFill_HArray1OfLocationLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_HArray1OfLocationLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_HArray1OfLocationLaw { - GeomFill_HArray1OfLocationLaw* _get_reference() { - return (GeomFill_HArray1OfLocationLaw*)$self->Access(); - } -}; - -%extend Handle_GeomFill_HArray1OfLocationLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_HArray1OfLocationLaw) %extend GeomFill_HArray1OfLocationLaw { %pythoncode { @@ -2348,51 +2192,7 @@ class GeomFill_HArray1OfSectionLaw : public MMgt_TShared { }; -%extend GeomFill_HArray1OfSectionLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_HArray1OfSectionLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_HArray1OfSectionLaw::Handle_GeomFill_HArray1OfSectionLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_HArray1OfSectionLaw; -class Handle_GeomFill_HArray1OfSectionLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_HArray1OfSectionLaw(); - Handle_GeomFill_HArray1OfSectionLaw(const Handle_GeomFill_HArray1OfSectionLaw &aHandle); - Handle_GeomFill_HArray1OfSectionLaw(const GeomFill_HArray1OfSectionLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_HArray1OfSectionLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_HArray1OfSectionLaw { - GeomFill_HArray1OfSectionLaw* _get_reference() { - return (GeomFill_HArray1OfSectionLaw*)$self->Access(); - } -}; - -%extend Handle_GeomFill_HArray1OfSectionLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_HArray1OfSectionLaw) %extend GeomFill_HArray1OfSectionLaw { %pythoncode { @@ -2537,51 +2337,7 @@ class GeomFill_HSequenceOfAx2 : public MMgt_TShared { }; -%extend GeomFill_HSequenceOfAx2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_HSequenceOfAx2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_HSequenceOfAx2::Handle_GeomFill_HSequenceOfAx2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_HSequenceOfAx2; -class Handle_GeomFill_HSequenceOfAx2 : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_HSequenceOfAx2(); - Handle_GeomFill_HSequenceOfAx2(const Handle_GeomFill_HSequenceOfAx2 &aHandle); - Handle_GeomFill_HSequenceOfAx2(const GeomFill_HSequenceOfAx2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_HSequenceOfAx2 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_HSequenceOfAx2 { - GeomFill_HSequenceOfAx2* _get_reference() { - return (GeomFill_HSequenceOfAx2*)$self->Access(); - } -}; - -%extend Handle_GeomFill_HSequenceOfAx2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_HSequenceOfAx2) %extend GeomFill_HSequenceOfAx2 { %pythoncode { @@ -2614,51 +2370,7 @@ class GeomFill_Line : public MMgt_TShared { }; -%extend GeomFill_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_Line::Handle_GeomFill_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_Line; -class Handle_GeomFill_Line : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_Line(); - Handle_GeomFill_Line(const Handle_GeomFill_Line &aHandle); - Handle_GeomFill_Line(const GeomFill_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_Line { - GeomFill_Line* _get_reference() { - return (GeomFill_Line*)$self->Access(); - } -}; - -%extend Handle_GeomFill_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_Line) %extend GeomFill_Line { %pythoncode { @@ -2974,51 +2686,7 @@ class GeomFill_LocationLaw : public MMgt_TShared { }; -%extend GeomFill_LocationLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_LocationLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_LocationLaw::Handle_GeomFill_LocationLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_LocationLaw; -class Handle_GeomFill_LocationLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_LocationLaw(); - Handle_GeomFill_LocationLaw(const Handle_GeomFill_LocationLaw &aHandle); - Handle_GeomFill_LocationLaw(const GeomFill_LocationLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_LocationLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_LocationLaw { - GeomFill_LocationLaw* _get_reference() { - return (GeomFill_LocationLaw*)$self->Access(); - } -}; - -%extend Handle_GeomFill_LocationLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_LocationLaw) %extend GeomFill_LocationLaw { %pythoncode { @@ -3914,51 +3582,7 @@ class GeomFill_SectionLaw : public MMgt_TShared { }; -%extend GeomFill_SectionLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_SectionLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_SectionLaw::Handle_GeomFill_SectionLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_SectionLaw; -class Handle_GeomFill_SectionLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_SectionLaw(); - Handle_GeomFill_SectionLaw(const Handle_GeomFill_SectionLaw &aHandle); - Handle_GeomFill_SectionLaw(const GeomFill_SectionLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_SectionLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_SectionLaw { - GeomFill_SectionLaw* _get_reference() { - return (GeomFill_SectionLaw*)$self->Access(); - } -}; - -%extend Handle_GeomFill_SectionLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_SectionLaw) %extend GeomFill_SectionLaw { %pythoncode { @@ -4078,51 +3702,7 @@ class GeomFill_SequenceNodeOfSequenceOfAx2 : public TCollection_SeqNode { }; -%extend GeomFill_SequenceNodeOfSequenceOfAx2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_SequenceNodeOfSequenceOfAx2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_SequenceNodeOfSequenceOfAx2::Handle_GeomFill_SequenceNodeOfSequenceOfAx2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_SequenceNodeOfSequenceOfAx2; -class Handle_GeomFill_SequenceNodeOfSequenceOfAx2 : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_GeomFill_SequenceNodeOfSequenceOfAx2(); - Handle_GeomFill_SequenceNodeOfSequenceOfAx2(const Handle_GeomFill_SequenceNodeOfSequenceOfAx2 &aHandle); - Handle_GeomFill_SequenceNodeOfSequenceOfAx2(const GeomFill_SequenceNodeOfSequenceOfAx2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_SequenceNodeOfSequenceOfAx2 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_SequenceNodeOfSequenceOfAx2 { - GeomFill_SequenceNodeOfSequenceOfAx2* _get_reference() { - return (GeomFill_SequenceNodeOfSequenceOfAx2*)$self->Access(); - } -}; - -%extend Handle_GeomFill_SequenceNodeOfSequenceOfAx2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_SequenceNodeOfSequenceOfAx2) %extend GeomFill_SequenceNodeOfSequenceOfAx2 { %pythoncode { @@ -4149,51 +3729,7 @@ class GeomFill_SequenceNodeOfSequenceOfTrsf : public TCollection_SeqNode { }; -%extend GeomFill_SequenceNodeOfSequenceOfTrsf { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_SequenceNodeOfSequenceOfTrsf(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_SequenceNodeOfSequenceOfTrsf::Handle_GeomFill_SequenceNodeOfSequenceOfTrsf %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_SequenceNodeOfSequenceOfTrsf; -class Handle_GeomFill_SequenceNodeOfSequenceOfTrsf : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_GeomFill_SequenceNodeOfSequenceOfTrsf(); - Handle_GeomFill_SequenceNodeOfSequenceOfTrsf(const Handle_GeomFill_SequenceNodeOfSequenceOfTrsf &aHandle); - Handle_GeomFill_SequenceNodeOfSequenceOfTrsf(const GeomFill_SequenceNodeOfSequenceOfTrsf *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_SequenceNodeOfSequenceOfTrsf DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_SequenceNodeOfSequenceOfTrsf { - GeomFill_SequenceNodeOfSequenceOfTrsf* _get_reference() { - return (GeomFill_SequenceNodeOfSequenceOfTrsf*)$self->Access(); - } -}; - -%extend Handle_GeomFill_SequenceNodeOfSequenceOfTrsf { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_SequenceNodeOfSequenceOfTrsf) %extend GeomFill_SequenceNodeOfSequenceOfTrsf { %pythoncode { @@ -4990,51 +4526,7 @@ class GeomFill_SweepFunction : public Approx_SweepFunction { }; -%extend GeomFill_SweepFunction { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_SweepFunction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_SweepFunction::Handle_GeomFill_SweepFunction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_SweepFunction; -class Handle_GeomFill_SweepFunction : public Handle_Approx_SweepFunction { - - public: - // constructors - Handle_GeomFill_SweepFunction(); - Handle_GeomFill_SweepFunction(const Handle_GeomFill_SweepFunction &aHandle); - Handle_GeomFill_SweepFunction(const GeomFill_SweepFunction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_SweepFunction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_SweepFunction { - GeomFill_SweepFunction* _get_reference() { - return (GeomFill_SweepFunction*)$self->Access(); - } -}; - -%extend Handle_GeomFill_SweepFunction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_SweepFunction) %extend GeomFill_SweepFunction { %pythoncode { @@ -5146,51 +4638,7 @@ class GeomFill_TgtField : public MMgt_TShared { }; -%extend GeomFill_TgtField { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_TgtField(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_TgtField::Handle_GeomFill_TgtField %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_TgtField; -class Handle_GeomFill_TgtField : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_TgtField(); - Handle_GeomFill_TgtField(const Handle_GeomFill_TgtField &aHandle); - Handle_GeomFill_TgtField(const GeomFill_TgtField *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_TgtField DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_TgtField { - GeomFill_TgtField* _get_reference() { - return (GeomFill_TgtField*)$self->Access(); - } -}; - -%extend Handle_GeomFill_TgtField { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_TgtField) %extend GeomFill_TgtField { %pythoncode { @@ -5341,51 +4789,7 @@ class GeomFill_TrihedronLaw : public MMgt_TShared { }; -%extend GeomFill_TrihedronLaw { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_TrihedronLaw(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_TrihedronLaw::Handle_GeomFill_TrihedronLaw %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_TrihedronLaw; -class Handle_GeomFill_TrihedronLaw : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomFill_TrihedronLaw(); - Handle_GeomFill_TrihedronLaw(const Handle_GeomFill_TrihedronLaw &aHandle); - Handle_GeomFill_TrihedronLaw(const GeomFill_TrihedronLaw *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_TrihedronLaw DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_TrihedronLaw { - GeomFill_TrihedronLaw* _get_reference() { - return (GeomFill_TrihedronLaw*)$self->Access(); - } -}; - -%extend Handle_GeomFill_TrihedronLaw { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_TrihedronLaw) %extend GeomFill_TrihedronLaw { %pythoncode { @@ -5476,51 +4880,7 @@ class GeomFill_BoundWithSurf : public GeomFill_Boundary { }; -%extend GeomFill_BoundWithSurf { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_BoundWithSurf(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_BoundWithSurf::Handle_GeomFill_BoundWithSurf %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_BoundWithSurf; -class Handle_GeomFill_BoundWithSurf : public Handle_GeomFill_Boundary { - - public: - // constructors - Handle_GeomFill_BoundWithSurf(); - Handle_GeomFill_BoundWithSurf(const Handle_GeomFill_BoundWithSurf &aHandle); - Handle_GeomFill_BoundWithSurf(const GeomFill_BoundWithSurf *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_BoundWithSurf DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_BoundWithSurf { - GeomFill_BoundWithSurf* _get_reference() { - return (GeomFill_BoundWithSurf*)$self->Access(); - } -}; - -%extend Handle_GeomFill_BoundWithSurf { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_BoundWithSurf) %extend GeomFill_BoundWithSurf { %pythoncode { @@ -5651,51 +5011,7 @@ class GeomFill_ConstantBiNormal : public GeomFill_TrihedronLaw { }; -%extend GeomFill_ConstantBiNormal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_ConstantBiNormal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_ConstantBiNormal::Handle_GeomFill_ConstantBiNormal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_ConstantBiNormal; -class Handle_GeomFill_ConstantBiNormal : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_ConstantBiNormal(); - Handle_GeomFill_ConstantBiNormal(const Handle_GeomFill_ConstantBiNormal &aHandle); - Handle_GeomFill_ConstantBiNormal(const GeomFill_ConstantBiNormal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_ConstantBiNormal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_ConstantBiNormal { - GeomFill_ConstantBiNormal* _get_reference() { - return (GeomFill_ConstantBiNormal*)$self->Access(); - } -}; - -%extend Handle_GeomFill_ConstantBiNormal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_ConstantBiNormal) %extend GeomFill_ConstantBiNormal { %pythoncode { @@ -5923,51 +5239,7 @@ class GeomFill_CorrectedFrenet : public GeomFill_TrihedronLaw { }; -%extend GeomFill_CorrectedFrenet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_CorrectedFrenet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_CorrectedFrenet::Handle_GeomFill_CorrectedFrenet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_CorrectedFrenet; -class Handle_GeomFill_CorrectedFrenet : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_CorrectedFrenet(); - Handle_GeomFill_CorrectedFrenet(const Handle_GeomFill_CorrectedFrenet &aHandle); - Handle_GeomFill_CorrectedFrenet(const GeomFill_CorrectedFrenet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_CorrectedFrenet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_CorrectedFrenet { - GeomFill_CorrectedFrenet* _get_reference() { - return (GeomFill_CorrectedFrenet*)$self->Access(); - } -}; - -%extend Handle_GeomFill_CorrectedFrenet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_CorrectedFrenet) %extend GeomFill_CorrectedFrenet { %pythoncode { @@ -6166,51 +5438,7 @@ class GeomFill_CurveAndTrihedron : public GeomFill_LocationLaw { }; -%extend GeomFill_CurveAndTrihedron { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_CurveAndTrihedron(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_CurveAndTrihedron::Handle_GeomFill_CurveAndTrihedron %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_CurveAndTrihedron; -class Handle_GeomFill_CurveAndTrihedron : public Handle_GeomFill_LocationLaw { - - public: - // constructors - Handle_GeomFill_CurveAndTrihedron(); - Handle_GeomFill_CurveAndTrihedron(const Handle_GeomFill_CurveAndTrihedron &aHandle); - Handle_GeomFill_CurveAndTrihedron(const GeomFill_CurveAndTrihedron *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_CurveAndTrihedron DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_CurveAndTrihedron { - GeomFill_CurveAndTrihedron* _get_reference() { - return (GeomFill_CurveAndTrihedron*)$self->Access(); - } -}; - -%extend Handle_GeomFill_CurveAndTrihedron { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_CurveAndTrihedron) %extend GeomFill_CurveAndTrihedron { %pythoncode { @@ -6504,51 +5732,7 @@ class GeomFill_Darboux : public GeomFill_TrihedronLaw { }; -%extend GeomFill_Darboux { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_Darboux(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_Darboux::Handle_GeomFill_Darboux %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_Darboux; -class Handle_GeomFill_Darboux : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_Darboux(); - Handle_GeomFill_Darboux(const Handle_GeomFill_Darboux &aHandle); - Handle_GeomFill_Darboux(const GeomFill_Darboux *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_Darboux DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_Darboux { - GeomFill_Darboux* _get_reference() { - return (GeomFill_Darboux*)$self->Access(); - } -}; - -%extend Handle_GeomFill_Darboux { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_Darboux) %extend GeomFill_Darboux { %pythoncode { @@ -6621,51 +5805,7 @@ class GeomFill_DegeneratedBound : public GeomFill_Boundary { }; -%extend GeomFill_DegeneratedBound { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_DegeneratedBound(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_DegeneratedBound::Handle_GeomFill_DegeneratedBound %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_DegeneratedBound; -class Handle_GeomFill_DegeneratedBound : public Handle_GeomFill_Boundary { - - public: - // constructors - Handle_GeomFill_DegeneratedBound(); - Handle_GeomFill_DegeneratedBound(const Handle_GeomFill_DegeneratedBound &aHandle); - Handle_GeomFill_DegeneratedBound(const GeomFill_DegeneratedBound *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_DegeneratedBound DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_DegeneratedBound { - GeomFill_DegeneratedBound* _get_reference() { - return (GeomFill_DegeneratedBound*)$self->Access(); - } -}; - -%extend Handle_GeomFill_DegeneratedBound { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_DegeneratedBound) %extend GeomFill_DegeneratedBound { %pythoncode { @@ -6798,51 +5938,7 @@ class GeomFill_DiscreteTrihedron : public GeomFill_TrihedronLaw { }; -%extend GeomFill_DiscreteTrihedron { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_DiscreteTrihedron(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_DiscreteTrihedron::Handle_GeomFill_DiscreteTrihedron %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_DiscreteTrihedron; -class Handle_GeomFill_DiscreteTrihedron : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_DiscreteTrihedron(); - Handle_GeomFill_DiscreteTrihedron(const Handle_GeomFill_DiscreteTrihedron &aHandle); - Handle_GeomFill_DiscreteTrihedron(const GeomFill_DiscreteTrihedron *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_DiscreteTrihedron DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_DiscreteTrihedron { - GeomFill_DiscreteTrihedron* _get_reference() { - return (GeomFill_DiscreteTrihedron*)$self->Access(); - } -}; - -%extend Handle_GeomFill_DiscreteTrihedron { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_DiscreteTrihedron) %extend GeomFill_DiscreteTrihedron { %pythoncode { @@ -6973,51 +6069,7 @@ class GeomFill_DraftTrihedron : public GeomFill_TrihedronLaw { }; -%extend GeomFill_DraftTrihedron { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_DraftTrihedron(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_DraftTrihedron::Handle_GeomFill_DraftTrihedron %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_DraftTrihedron; -class Handle_GeomFill_DraftTrihedron : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_DraftTrihedron(); - Handle_GeomFill_DraftTrihedron(const Handle_GeomFill_DraftTrihedron &aHandle); - Handle_GeomFill_DraftTrihedron(const GeomFill_DraftTrihedron *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_DraftTrihedron DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_DraftTrihedron { - GeomFill_DraftTrihedron* _get_reference() { - return (GeomFill_DraftTrihedron*)$self->Access(); - } -}; - -%extend Handle_GeomFill_DraftTrihedron { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_DraftTrihedron) %extend GeomFill_DraftTrihedron { %pythoncode { @@ -7236,51 +6288,7 @@ class GeomFill_EvolvedSection : public GeomFill_SectionLaw { }; -%extend GeomFill_EvolvedSection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_EvolvedSection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_EvolvedSection::Handle_GeomFill_EvolvedSection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_EvolvedSection; -class Handle_GeomFill_EvolvedSection : public Handle_GeomFill_SectionLaw { - - public: - // constructors - Handle_GeomFill_EvolvedSection(); - Handle_GeomFill_EvolvedSection(const Handle_GeomFill_EvolvedSection &aHandle); - Handle_GeomFill_EvolvedSection(const GeomFill_EvolvedSection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_EvolvedSection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_EvolvedSection { - GeomFill_EvolvedSection* _get_reference() { - return (GeomFill_EvolvedSection*)$self->Access(); - } -}; - -%extend Handle_GeomFill_EvolvedSection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_EvolvedSection) %extend GeomFill_EvolvedSection { %pythoncode { @@ -7401,51 +6409,7 @@ class GeomFill_Fixed : public GeomFill_TrihedronLaw { }; -%extend GeomFill_Fixed { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_Fixed(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_Fixed::Handle_GeomFill_Fixed %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_Fixed; -class Handle_GeomFill_Fixed : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_Fixed(); - Handle_GeomFill_Fixed(const Handle_GeomFill_Fixed &aHandle); - Handle_GeomFill_Fixed(const GeomFill_Fixed *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_Fixed DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_Fixed { - GeomFill_Fixed* _get_reference() { - return (GeomFill_Fixed*)$self->Access(); - } -}; - -%extend Handle_GeomFill_Fixed { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_Fixed) %extend GeomFill_Fixed { %pythoncode { @@ -7578,51 +6542,7 @@ class GeomFill_Frenet : public GeomFill_TrihedronLaw { }; -%extend GeomFill_Frenet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_Frenet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_Frenet::Handle_GeomFill_Frenet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_Frenet; -class Handle_GeomFill_Frenet : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_Frenet(); - Handle_GeomFill_Frenet(const Handle_GeomFill_Frenet &aHandle); - Handle_GeomFill_Frenet(const GeomFill_Frenet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_Frenet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_Frenet { - GeomFill_Frenet* _get_reference() { - return (GeomFill_Frenet*)$self->Access(); - } -}; - -%extend Handle_GeomFill_Frenet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_Frenet) %extend GeomFill_Frenet { %pythoncode { @@ -7902,51 +6822,7 @@ class GeomFill_LocationDraft : public GeomFill_LocationLaw { }; -%extend GeomFill_LocationDraft { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_LocationDraft(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_LocationDraft::Handle_GeomFill_LocationDraft %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_LocationDraft; -class Handle_GeomFill_LocationDraft : public Handle_GeomFill_LocationLaw { - - public: - // constructors - Handle_GeomFill_LocationDraft(); - Handle_GeomFill_LocationDraft(const Handle_GeomFill_LocationDraft &aHandle); - Handle_GeomFill_LocationDraft(const GeomFill_LocationDraft *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_LocationDraft DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_LocationDraft { - GeomFill_LocationDraft* _get_reference() { - return (GeomFill_LocationDraft*)$self->Access(); - } -}; - -%extend Handle_GeomFill_LocationDraft { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_LocationDraft) %extend GeomFill_LocationDraft { %pythoncode { @@ -8233,51 +7109,7 @@ class GeomFill_LocationGuide : public GeomFill_LocationLaw { }; -%extend GeomFill_LocationGuide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_LocationGuide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_LocationGuide::Handle_GeomFill_LocationGuide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_LocationGuide; -class Handle_GeomFill_LocationGuide : public Handle_GeomFill_LocationLaw { - - public: - // constructors - Handle_GeomFill_LocationGuide(); - Handle_GeomFill_LocationGuide(const Handle_GeomFill_LocationGuide &aHandle); - Handle_GeomFill_LocationGuide(const GeomFill_LocationGuide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_LocationGuide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_LocationGuide { - GeomFill_LocationGuide* _get_reference() { - return (GeomFill_LocationGuide*)$self->Access(); - } -}; - -%extend Handle_GeomFill_LocationGuide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_LocationGuide) %extend GeomFill_LocationGuide { %pythoncode { @@ -8433,51 +7265,7 @@ class GeomFill_SimpleBound : public GeomFill_Boundary { }; -%extend GeomFill_SimpleBound { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_SimpleBound(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_SimpleBound::Handle_GeomFill_SimpleBound %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_SimpleBound; -class Handle_GeomFill_SimpleBound : public Handle_GeomFill_Boundary { - - public: - // constructors - Handle_GeomFill_SimpleBound(); - Handle_GeomFill_SimpleBound(const Handle_GeomFill_SimpleBound &aHandle); - Handle_GeomFill_SimpleBound(const GeomFill_SimpleBound *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_SimpleBound DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_SimpleBound { - GeomFill_SimpleBound* _get_reference() { - return (GeomFill_SimpleBound*)$self->Access(); - } -}; - -%extend Handle_GeomFill_SimpleBound { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_SimpleBound) %extend GeomFill_SimpleBound { %pythoncode { @@ -8605,51 +7393,7 @@ class GeomFill_TgtOnCoons : public GeomFill_TgtField { }; -%extend GeomFill_TgtOnCoons { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_TgtOnCoons(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_TgtOnCoons::Handle_GeomFill_TgtOnCoons %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_TgtOnCoons; -class Handle_GeomFill_TgtOnCoons : public Handle_GeomFill_TgtField { - - public: - // constructors - Handle_GeomFill_TgtOnCoons(); - Handle_GeomFill_TgtOnCoons(const Handle_GeomFill_TgtOnCoons &aHandle); - Handle_GeomFill_TgtOnCoons(const GeomFill_TgtOnCoons *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_TgtOnCoons DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_TgtOnCoons { - GeomFill_TgtOnCoons* _get_reference() { - return (GeomFill_TgtOnCoons*)$self->Access(); - } -}; - -%extend Handle_GeomFill_TgtOnCoons { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_TgtOnCoons) %extend GeomFill_TgtOnCoons { %pythoncode { @@ -8680,51 +7424,7 @@ class GeomFill_TrihedronWithGuide : public GeomFill_TrihedronLaw { }; -%extend GeomFill_TrihedronWithGuide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_TrihedronWithGuide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_TrihedronWithGuide::Handle_GeomFill_TrihedronWithGuide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_TrihedronWithGuide; -class Handle_GeomFill_TrihedronWithGuide : public Handle_GeomFill_TrihedronLaw { - - public: - // constructors - Handle_GeomFill_TrihedronWithGuide(); - Handle_GeomFill_TrihedronWithGuide(const Handle_GeomFill_TrihedronWithGuide &aHandle); - Handle_GeomFill_TrihedronWithGuide(const GeomFill_TrihedronWithGuide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_TrihedronWithGuide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_TrihedronWithGuide { - GeomFill_TrihedronWithGuide* _get_reference() { - return (GeomFill_TrihedronWithGuide*)$self->Access(); - } -}; - -%extend Handle_GeomFill_TrihedronWithGuide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_TrihedronWithGuide) %extend GeomFill_TrihedronWithGuide { %pythoncode { @@ -8945,51 +7645,7 @@ class GeomFill_UniformSection : public GeomFill_SectionLaw { }; -%extend GeomFill_UniformSection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_UniformSection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_UniformSection::Handle_GeomFill_UniformSection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_UniformSection; -class Handle_GeomFill_UniformSection : public Handle_GeomFill_SectionLaw { - - public: - // constructors - Handle_GeomFill_UniformSection(); - Handle_GeomFill_UniformSection(const Handle_GeomFill_UniformSection &aHandle); - Handle_GeomFill_UniformSection(const GeomFill_UniformSection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_UniformSection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_UniformSection { - GeomFill_UniformSection* _get_reference() { - return (GeomFill_UniformSection*)$self->Access(); - } -}; - -%extend Handle_GeomFill_UniformSection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_UniformSection) %extend GeomFill_UniformSection { %pythoncode { @@ -9136,51 +7792,7 @@ class GeomFill_GuideTrihedronAC : public GeomFill_TrihedronWithGuide { }; -%extend GeomFill_GuideTrihedronAC { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_GuideTrihedronAC(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_GuideTrihedronAC::Handle_GeomFill_GuideTrihedronAC %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_GuideTrihedronAC; -class Handle_GeomFill_GuideTrihedronAC : public Handle_GeomFill_TrihedronWithGuide { - - public: - // constructors - Handle_GeomFill_GuideTrihedronAC(); - Handle_GeomFill_GuideTrihedronAC(const Handle_GeomFill_GuideTrihedronAC &aHandle); - Handle_GeomFill_GuideTrihedronAC(const GeomFill_GuideTrihedronAC *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_GuideTrihedronAC DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_GuideTrihedronAC { - GeomFill_GuideTrihedronAC* _get_reference() { - return (GeomFill_GuideTrihedronAC*)$self->Access(); - } -}; - -%extend Handle_GeomFill_GuideTrihedronAC { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_GuideTrihedronAC) %extend GeomFill_GuideTrihedronAC { %pythoncode { @@ -9333,51 +7945,7 @@ class GeomFill_GuideTrihedronPlan : public GeomFill_TrihedronWithGuide { }; -%extend GeomFill_GuideTrihedronPlan { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomFill_GuideTrihedronPlan(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomFill_GuideTrihedronPlan::Handle_GeomFill_GuideTrihedronPlan %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomFill_GuideTrihedronPlan; -class Handle_GeomFill_GuideTrihedronPlan : public Handle_GeomFill_TrihedronWithGuide { - - public: - // constructors - Handle_GeomFill_GuideTrihedronPlan(); - Handle_GeomFill_GuideTrihedronPlan(const Handle_GeomFill_GuideTrihedronPlan &aHandle); - Handle_GeomFill_GuideTrihedronPlan(const GeomFill_GuideTrihedronPlan *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomFill_GuideTrihedronPlan DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomFill_GuideTrihedronPlan { - GeomFill_GuideTrihedronPlan* _get_reference() { - return (GeomFill_GuideTrihedronPlan*)$self->Access(); - } -}; - -%extend Handle_GeomFill_GuideTrihedronPlan { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomFill_GuideTrihedronPlan) %extend GeomFill_GuideTrihedronPlan { %pythoncode { diff --git a/src/SWIG_files/wrapper/GeomInt.i b/src/SWIG_files/wrapper/GeomInt.i index 15b796a39..34350ce97 100644 --- a/src/SWIG_files/wrapper/GeomInt.i +++ b/src/SWIG_files/wrapper/GeomInt.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define GEOMINTDOCSTRING -"No docstring provided." +"Provides intersections on between two surfaces of Geom. +The result are curves from Geom. + +" %enddef %module (package="OCC.Core", docstring=GEOMINTDOCSTRING) GeomInt @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomInt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Vector GeomInt_VectorOfReal; /* end typedefs declaration */ @@ -60,6 +49,8 @@ typedef NCollection_Vector GeomInt_VectorOfReal; /* public enums */ /* end public enums declaration */ +%wrap_handle(GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation) + %rename(geomint) GeomInt; class GeomInt { public: @@ -1858,51 +1849,7 @@ class GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation : public TCollecti }; -%extend GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation::Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation; -class Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation(); - Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation(const Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation &aHandle); - Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation(const GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation { - GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation* _get_reference() { - return (GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation*)$self->Access(); - } -}; - -%extend Handle_GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation) %extend GeomInt_SequenceNodeOfSequenceOfParameterAndOrientation { %pythoncode { diff --git a/src/SWIG_files/wrapper/GeomLProp.i b/src/SWIG_files/wrapper/GeomLProp.i index 505420e29..5d039c447 100644 --- a/src/SWIG_files/wrapper/GeomLProp.i +++ b/src/SWIG_files/wrapper/GeomLProp.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define GEOMLPROPDOCSTRING -"No docstring provided." +"These global functions compute the degree of +continuity of a 3D curve built by concatenation of two +other curves (or portions of curves) at their junction point. +" %enddef %module (package="OCC.Core", docstring=GEOMLPROPDOCSTRING) GeomLProp @@ -34,31 +37,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomLProp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(geomlprop) GeomLProp; class GeomLProp { public: diff --git a/src/SWIG_files/wrapper/GeomLib.i b/src/SWIG_files/wrapper/GeomLib.i index 50bfc7b72..61211af57 100644 --- a/src/SWIG_files/wrapper/GeomLib.i +++ b/src/SWIG_files/wrapper/GeomLib.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define GEOMLIBDOCSTRING -"No docstring provided." +"Geom Library. This package provides an +implementation of functions for basic computation +on geometric entity from packages Geom and Geom2d. + +" %enddef %module (package="OCC.Core", docstring=GEOMLIBDOCSTRING) GeomLib @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef GeomLib_DenominatorMultiplier * GeomLib_DenominatorMultiplierPtr; /* end typedefs declaration */ @@ -67,6 +57,7 @@ enum GeomLib_InterpolationErrors { /* end public enums declaration */ + %rename(geomlib) GeomLib; class GeomLib { public: diff --git a/src/SWIG_files/wrapper/GeomLib_headers.i b/src/SWIG_files/wrapper/GeomLib_headers.i index eee627ce9..0af521d57 100644 --- a/src/SWIG_files/wrapper/GeomLib_headers.i +++ b/src/SWIG_files/wrapper/GeomLib_headers.i @@ -491,6 +491,12 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/GeomPlate.i b/src/SWIG_files/wrapper/GeomPlate.i index 28bc3c12e..b49283b82 100644 --- a/src/SWIG_files/wrapper/GeomPlate.i +++ b/src/SWIG_files/wrapper/GeomPlate.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define GEOMPLATEDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=GEOMPLATEDOCSTRING) GeomPlate @@ -34,31 +34,28 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomPlate_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(GeomPlate_CurveConstraint) +%wrap_handle(GeomPlate_HArray1OfHCurveOnSurface) +%wrap_handle(GeomPlate_HArray1OfSequenceOfReal) +%wrap_handle(GeomPlate_HSequenceOfCurveConstraint) +%wrap_handle(GeomPlate_HSequenceOfPointConstraint) +%wrap_handle(GeomPlate_PointConstraint) +%wrap_handle(GeomPlate_SequenceNodeOfSequenceOfAij) +%wrap_handle(GeomPlate_SequenceNodeOfSequenceOfCurveConstraint) +%wrap_handle(GeomPlate_SequenceNodeOfSequenceOfPointConstraint) +%wrap_handle(GeomPlate_Surface) + %nodefaultctor GeomPlate_Aij; class GeomPlate_Aij { public: @@ -792,51 +789,7 @@ class GeomPlate_CurveConstraint : public MMgt_TShared { }; -%extend GeomPlate_CurveConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_CurveConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_CurveConstraint::Handle_GeomPlate_CurveConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_CurveConstraint; -class Handle_GeomPlate_CurveConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomPlate_CurveConstraint(); - Handle_GeomPlate_CurveConstraint(const Handle_GeomPlate_CurveConstraint &aHandle); - Handle_GeomPlate_CurveConstraint(const GeomPlate_CurveConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_CurveConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_CurveConstraint { - GeomPlate_CurveConstraint* _get_reference() { - return (GeomPlate_CurveConstraint*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_CurveConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_CurveConstraint) %extend GeomPlate_CurveConstraint { %pythoncode { @@ -913,51 +866,7 @@ class GeomPlate_HArray1OfHCurveOnSurface : public MMgt_TShared { }; -%extend GeomPlate_HArray1OfHCurveOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_HArray1OfHCurveOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_HArray1OfHCurveOnSurface::Handle_GeomPlate_HArray1OfHCurveOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_HArray1OfHCurveOnSurface; -class Handle_GeomPlate_HArray1OfHCurveOnSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomPlate_HArray1OfHCurveOnSurface(); - Handle_GeomPlate_HArray1OfHCurveOnSurface(const Handle_GeomPlate_HArray1OfHCurveOnSurface &aHandle); - Handle_GeomPlate_HArray1OfHCurveOnSurface(const GeomPlate_HArray1OfHCurveOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_HArray1OfHCurveOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_HArray1OfHCurveOnSurface { - GeomPlate_HArray1OfHCurveOnSurface* _get_reference() { - return (GeomPlate_HArray1OfHCurveOnSurface*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_HArray1OfHCurveOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_HArray1OfHCurveOnSurface) %extend GeomPlate_HArray1OfHCurveOnSurface { %pythoncode { @@ -1034,51 +943,7 @@ class GeomPlate_HArray1OfSequenceOfReal : public MMgt_TShared { }; -%extend GeomPlate_HArray1OfSequenceOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_HArray1OfSequenceOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_HArray1OfSequenceOfReal::Handle_GeomPlate_HArray1OfSequenceOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_HArray1OfSequenceOfReal; -class Handle_GeomPlate_HArray1OfSequenceOfReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomPlate_HArray1OfSequenceOfReal(); - Handle_GeomPlate_HArray1OfSequenceOfReal(const Handle_GeomPlate_HArray1OfSequenceOfReal &aHandle); - Handle_GeomPlate_HArray1OfSequenceOfReal(const GeomPlate_HArray1OfSequenceOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_HArray1OfSequenceOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_HArray1OfSequenceOfReal { - GeomPlate_HArray1OfSequenceOfReal* _get_reference() { - return (GeomPlate_HArray1OfSequenceOfReal*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_HArray1OfSequenceOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_HArray1OfSequenceOfReal) %extend GeomPlate_HArray1OfSequenceOfReal { %pythoncode { @@ -1223,51 +1088,7 @@ class GeomPlate_HSequenceOfCurveConstraint : public MMgt_TShared { }; -%extend GeomPlate_HSequenceOfCurveConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_HSequenceOfCurveConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_HSequenceOfCurveConstraint::Handle_GeomPlate_HSequenceOfCurveConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_HSequenceOfCurveConstraint; -class Handle_GeomPlate_HSequenceOfCurveConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomPlate_HSequenceOfCurveConstraint(); - Handle_GeomPlate_HSequenceOfCurveConstraint(const Handle_GeomPlate_HSequenceOfCurveConstraint &aHandle); - Handle_GeomPlate_HSequenceOfCurveConstraint(const GeomPlate_HSequenceOfCurveConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_HSequenceOfCurveConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_HSequenceOfCurveConstraint { - GeomPlate_HSequenceOfCurveConstraint* _get_reference() { - return (GeomPlate_HSequenceOfCurveConstraint*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_HSequenceOfCurveConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_HSequenceOfCurveConstraint) %extend GeomPlate_HSequenceOfCurveConstraint { %pythoncode { @@ -1412,51 +1233,7 @@ class GeomPlate_HSequenceOfPointConstraint : public MMgt_TShared { }; -%extend GeomPlate_HSequenceOfPointConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_HSequenceOfPointConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_HSequenceOfPointConstraint::Handle_GeomPlate_HSequenceOfPointConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_HSequenceOfPointConstraint; -class Handle_GeomPlate_HSequenceOfPointConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomPlate_HSequenceOfPointConstraint(); - Handle_GeomPlate_HSequenceOfPointConstraint(const Handle_GeomPlate_HSequenceOfPointConstraint &aHandle); - Handle_GeomPlate_HSequenceOfPointConstraint(const GeomPlate_HSequenceOfPointConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_HSequenceOfPointConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_HSequenceOfPointConstraint { - GeomPlate_HSequenceOfPointConstraint* _get_reference() { - return (GeomPlate_HSequenceOfPointConstraint*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_HSequenceOfPointConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_HSequenceOfPointConstraint) %extend GeomPlate_HSequenceOfPointConstraint { %pythoncode { @@ -1754,51 +1531,7 @@ class GeomPlate_PointConstraint : public MMgt_TShared { }; -%extend GeomPlate_PointConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_PointConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_PointConstraint::Handle_GeomPlate_PointConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_PointConstraint; -class Handle_GeomPlate_PointConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomPlate_PointConstraint(); - Handle_GeomPlate_PointConstraint(const Handle_GeomPlate_PointConstraint &aHandle); - Handle_GeomPlate_PointConstraint(const GeomPlate_PointConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_PointConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_PointConstraint { - GeomPlate_PointConstraint* _get_reference() { - return (GeomPlate_PointConstraint*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_PointConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_PointConstraint) %extend GeomPlate_PointConstraint { %pythoncode { @@ -1825,51 +1558,7 @@ class GeomPlate_SequenceNodeOfSequenceOfAij : public TCollection_SeqNode { }; -%extend GeomPlate_SequenceNodeOfSequenceOfAij { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_SequenceNodeOfSequenceOfAij(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_SequenceNodeOfSequenceOfAij::Handle_GeomPlate_SequenceNodeOfSequenceOfAij %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_SequenceNodeOfSequenceOfAij; -class Handle_GeomPlate_SequenceNodeOfSequenceOfAij : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_GeomPlate_SequenceNodeOfSequenceOfAij(); - Handle_GeomPlate_SequenceNodeOfSequenceOfAij(const Handle_GeomPlate_SequenceNodeOfSequenceOfAij &aHandle); - Handle_GeomPlate_SequenceNodeOfSequenceOfAij(const GeomPlate_SequenceNodeOfSequenceOfAij *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_SequenceNodeOfSequenceOfAij DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_SequenceNodeOfSequenceOfAij { - GeomPlate_SequenceNodeOfSequenceOfAij* _get_reference() { - return (GeomPlate_SequenceNodeOfSequenceOfAij*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_SequenceNodeOfSequenceOfAij { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_SequenceNodeOfSequenceOfAij) %extend GeomPlate_SequenceNodeOfSequenceOfAij { %pythoncode { @@ -1896,51 +1585,7 @@ class GeomPlate_SequenceNodeOfSequenceOfCurveConstraint : public TCollection_Seq }; -%extend GeomPlate_SequenceNodeOfSequenceOfCurveConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint::Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint; -class Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint(); - Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint(const Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint &aHandle); - Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint(const GeomPlate_SequenceNodeOfSequenceOfCurveConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint { - GeomPlate_SequenceNodeOfSequenceOfCurveConstraint* _get_reference() { - return (GeomPlate_SequenceNodeOfSequenceOfCurveConstraint*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_SequenceNodeOfSequenceOfCurveConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_SequenceNodeOfSequenceOfCurveConstraint) %extend GeomPlate_SequenceNodeOfSequenceOfCurveConstraint { %pythoncode { @@ -1967,51 +1612,7 @@ class GeomPlate_SequenceNodeOfSequenceOfPointConstraint : public TCollection_Seq }; -%extend GeomPlate_SequenceNodeOfSequenceOfPointConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint::Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint; -class Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint(); - Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint(const Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint &aHandle); - Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint(const GeomPlate_SequenceNodeOfSequenceOfPointConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint { - GeomPlate_SequenceNodeOfSequenceOfPointConstraint* _get_reference() { - return (GeomPlate_SequenceNodeOfSequenceOfPointConstraint*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_SequenceNodeOfSequenceOfPointConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_SequenceNodeOfSequenceOfPointConstraint) %extend GeomPlate_SequenceNodeOfSequenceOfPointConstraint { %pythoncode { @@ -2735,51 +2336,7 @@ class GeomPlate_Surface : public Geom_Surface { }; -%extend GeomPlate_Surface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomPlate_Surface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomPlate_Surface::Handle_GeomPlate_Surface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomPlate_Surface; -class Handle_GeomPlate_Surface : public Handle_Geom_Surface { - - public: - // constructors - Handle_GeomPlate_Surface(); - Handle_GeomPlate_Surface(const Handle_GeomPlate_Surface &aHandle); - Handle_GeomPlate_Surface(const GeomPlate_Surface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomPlate_Surface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomPlate_Surface { - GeomPlate_Surface* _get_reference() { - return (GeomPlate_Surface*)$self->Access(); - } -}; - -%extend Handle_GeomPlate_Surface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomPlate_Surface) %extend GeomPlate_Surface { %pythoncode { diff --git a/src/SWIG_files/wrapper/GeomProjLib.i b/src/SWIG_files/wrapper/GeomProjLib.i index 5d14a22bc..b7f468f7f 100644 --- a/src/SWIG_files/wrapper/GeomProjLib.i +++ b/src/SWIG_files/wrapper/GeomProjLib.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define GEOMPROJLIBDOCSTRING -"No docstring provided." +"Projection of a curve on a surface. +" %enddef %module (package="OCC.Core", docstring=GEOMPROJLIBDOCSTRING) GeomProjLib @@ -34,31 +35,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomProjLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(geomprojlib) GeomProjLib; class GeomProjLib { public: diff --git a/src/SWIG_files/wrapper/GeomToStep.i b/src/SWIG_files/wrapper/GeomToStep.i index 7f246b454..8c1377cbd 100644 --- a/src/SWIG_files/wrapper/GeomToStep.i +++ b/src/SWIG_files/wrapper/GeomToStep.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define GEOMTOSTEPDOCSTRING -"No docstring provided." +"- Purpose: Creation des entites geometriques du schema PmsAp2Demo3d a +partir des entites de Geom ou de gp. +Update : mise a jour pour traiter le schema StepGeom, pour demo de 94 +" %enddef %module (package="OCC.Core", docstring=GEOMTOSTEPDOCSTRING) GeomToStep @@ -34,31 +37,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomToStep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + class GeomToStep_Root { public: %feature("compactdefaultargs") IsDone; diff --git a/src/SWIG_files/wrapper/GeomToStep_headers.i b/src/SWIG_files/wrapper/GeomToStep_headers.i index c30c0f526..3832a723d 100644 --- a/src/SWIG_files/wrapper/GeomToStep_headers.i +++ b/src/SWIG_files/wrapper/GeomToStep_headers.i @@ -603,6 +603,142 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/GeomTools.i b/src/SWIG_files/wrapper/GeomTools.i index d59201216..a3f1ba303 100644 --- a/src/SWIG_files/wrapper/GeomTools.i +++ b/src/SWIG_files/wrapper/GeomTools.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define GEOMTOOLSDOCSTRING -"No docstring provided." +"The GeomTools package provides utilities for Geometry. + +* SurfaceSet, CurveSet, Curve2dSet : Tools used +for dumping, writing and reading. + +* Methods to dump, write, read curves and surfaces. +" %enddef %module (package="OCC.Core", docstring=GEOMTOOLSDOCSTRING) GeomTools @@ -34,31 +40,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GeomTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(GeomTools_UndefinedTypeHandler) + %rename(geomtools) GeomTools; class GeomTools { public: @@ -556,51 +550,7 @@ class GeomTools_UndefinedTypeHandler : public MMgt_TShared { }; -%extend GeomTools_UndefinedTypeHandler { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_GeomTools_UndefinedTypeHandler(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_GeomTools_UndefinedTypeHandler::Handle_GeomTools_UndefinedTypeHandler %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_GeomTools_UndefinedTypeHandler; -class Handle_GeomTools_UndefinedTypeHandler : public Handle_MMgt_TShared { - - public: - // constructors - Handle_GeomTools_UndefinedTypeHandler(); - Handle_GeomTools_UndefinedTypeHandler(const Handle_GeomTools_UndefinedTypeHandler &aHandle); - Handle_GeomTools_UndefinedTypeHandler(const GeomTools_UndefinedTypeHandler *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_GeomTools_UndefinedTypeHandler DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_GeomTools_UndefinedTypeHandler { - GeomTools_UndefinedTypeHandler* _get_reference() { - return (GeomTools_UndefinedTypeHandler*)$self->Access(); - } -}; - -%extend Handle_GeomTools_UndefinedTypeHandler { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(GeomTools_UndefinedTypeHandler) %extend GeomTools_UndefinedTypeHandler { %pythoncode { diff --git a/src/SWIG_files/wrapper/GraphDS.i b/src/SWIG_files/wrapper/GraphDS.i index d8370c1b2..e26313c90 100644 --- a/src/SWIG_files/wrapper/GraphDS.i +++ b/src/SWIG_files/wrapper/GraphDS.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GraphDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/GraphTools.i b/src/SWIG_files/wrapper/GraphTools.i index 0821d9af8..f74062d73 100644 --- a/src/SWIG_files/wrapper/GraphTools.i +++ b/src/SWIG_files/wrapper/GraphTools.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include GraphTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/Graphic3d.i b/src/SWIG_files/wrapper/Graphic3d.i index d427dca20..0d716c164 100644 --- a/src/SWIG_files/wrapper/Graphic3d.i +++ b/src/SWIG_files/wrapper/Graphic3d.i @@ -18,7 +18,24 @@ along with pythonOCC. If not, see . */ %define GRAPHIC3DDOCSTRING -"No docstring provided." +"-Version: + +This package permits the creation of 3d graphic objects +in a visualiser. +These objects, called structures, are composed of groups of +primitives and attributes. +The group is the smallest editable element of a structure. +A structure can be displayed, erased, high-lighted. +A transformation can be applied to it. +Structures can be connected to form a tree of structures, +composed by transformations. +The visualiser permits global manipulation of structures. + +-Keywords: Structure, Group, Primitives, Line, Marker, Text, +FillAreas, Vertex, Vector, Material, Font, Shading +-Warning: +-References: +" %enddef %module (package="OCC.Core", docstring=GRAPHIC3DDOCSTRING) Graphic3d @@ -34,25 +51,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Graphic3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Vec4 Graphic3d_Vec4i; typedef NCollection_Vec2 Graphic3d_Vec2b; @@ -395,6 +398,48 @@ enum Graphic3d_NameOfTextureEnv { /* end public enums declaration */ +%wrap_handle(Graphic3d_ArrayOfPrimitives) +%wrap_handle(Graphic3d_AspectFillArea3d) +%wrap_handle(Graphic3d_AspectLine3d) +%wrap_handle(Graphic3d_AspectMarker3d) +%wrap_handle(Graphic3d_AspectText3d) +%wrap_handle(Graphic3d_BoundBuffer) +%wrap_handle(Graphic3d_CStructure) +%wrap_handle(Graphic3d_Camera) +%wrap_handle(Graphic3d_ClipPlane) +%wrap_handle(Graphic3d_DataStructureManager) +%wrap_handle(Graphic3d_GraphicDriver) +%wrap_handle(Graphic3d_Group) +%wrap_handle(Graphic3d_HSequenceOfStructure) +%wrap_handle(Graphic3d_ListNodeOfListOfShortReal) +%wrap_handle(Graphic3d_MarkerImage) +%wrap_handle(Graphic3d_SequenceNodeOfSequenceOfStructure) +%wrap_handle(Graphic3d_ShaderObject) +%wrap_handle(Graphic3d_ShaderProgram) +%wrap_handle(Graphic3d_ShaderVariable) +%wrap_handle(Graphic3d_Structure) +%wrap_handle(Graphic3d_StructureManager) +%wrap_handle(Graphic3d_TextureParams) +%wrap_handle(Graphic3d_TextureRoot) +%wrap_handle(Graphic3d_ViewAffinity) +%wrap_handle(Graphic3d_ArrayOfPoints) +%wrap_handle(Graphic3d_ArrayOfPolygons) +%wrap_handle(Graphic3d_ArrayOfPolylines) +%wrap_handle(Graphic3d_ArrayOfQuadrangleStrips) +%wrap_handle(Graphic3d_ArrayOfQuadrangles) +%wrap_handle(Graphic3d_ArrayOfSegments) +%wrap_handle(Graphic3d_ArrayOfTriangleFans) +%wrap_handle(Graphic3d_ArrayOfTriangleStrips) +%wrap_handle(Graphic3d_ArrayOfTriangles) +%wrap_handle(Graphic3d_TextureEnv) +%wrap_handle(Graphic3d_TextureMap) +%wrap_handle(Graphic3d_Texture1D) +%wrap_handle(Graphic3d_Texture2D) +%wrap_handle(Graphic3d_Texture1Dmanual) +%wrap_handle(Graphic3d_Texture1Dsegment) +%wrap_handle(Graphic3d_Texture2Dmanual) +%wrap_handle(Graphic3d_Texture2Dplane) + %nodefaultctor Graphic3d_Array1OfVector; class Graphic3d_Array1OfVector { public: @@ -1300,51 +1345,7 @@ class Graphic3d_ArrayOfPrimitives : public MMgt_TShared { }; -%extend Graphic3d_ArrayOfPrimitives { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfPrimitives(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfPrimitives::Handle_Graphic3d_ArrayOfPrimitives %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfPrimitives; -class Handle_Graphic3d_ArrayOfPrimitives : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_ArrayOfPrimitives(); - Handle_Graphic3d_ArrayOfPrimitives(const Handle_Graphic3d_ArrayOfPrimitives &aHandle); - Handle_Graphic3d_ArrayOfPrimitives(const Graphic3d_ArrayOfPrimitives *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfPrimitives DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfPrimitives { - Graphic3d_ArrayOfPrimitives* _get_reference() { - return (Graphic3d_ArrayOfPrimitives*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfPrimitives { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfPrimitives) %extend Graphic3d_ArrayOfPrimitives { %pythoncode { @@ -1523,51 +1524,7 @@ class Graphic3d_AspectFillArea3d : public Aspect_AspectFillArea { }; -%extend Graphic3d_AspectFillArea3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_AspectFillArea3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_AspectFillArea3d::Handle_Graphic3d_AspectFillArea3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_AspectFillArea3d; -class Handle_Graphic3d_AspectFillArea3d : public Handle_Aspect_AspectFillArea { - - public: - // constructors - Handle_Graphic3d_AspectFillArea3d(); - Handle_Graphic3d_AspectFillArea3d(const Handle_Graphic3d_AspectFillArea3d &aHandle); - Handle_Graphic3d_AspectFillArea3d(const Graphic3d_AspectFillArea3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_AspectFillArea3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_AspectFillArea3d { - Graphic3d_AspectFillArea3d* _get_reference() { - return (Graphic3d_AspectFillArea3d*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_AspectFillArea3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_AspectFillArea3d) %extend Graphic3d_AspectFillArea3d { %pythoncode { @@ -1610,51 +1567,7 @@ class Graphic3d_AspectLine3d : public Aspect_AspectLine { }; -%extend Graphic3d_AspectLine3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_AspectLine3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_AspectLine3d::Handle_Graphic3d_AspectLine3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_AspectLine3d; -class Handle_Graphic3d_AspectLine3d : public Handle_Aspect_AspectLine { - - public: - // constructors - Handle_Graphic3d_AspectLine3d(); - Handle_Graphic3d_AspectLine3d(const Handle_Graphic3d_AspectLine3d &aHandle); - Handle_Graphic3d_AspectLine3d(const Graphic3d_AspectLine3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_AspectLine3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_AspectLine3d { - Graphic3d_AspectLine3d* _get_reference() { - return (Graphic3d_AspectLine3d*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_AspectLine3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_AspectLine3d) %extend Graphic3d_AspectLine3d { %pythoncode { @@ -1751,51 +1664,7 @@ class Graphic3d_AspectMarker3d : public Aspect_AspectMarker { }; -%extend Graphic3d_AspectMarker3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_AspectMarker3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_AspectMarker3d::Handle_Graphic3d_AspectMarker3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_AspectMarker3d; -class Handle_Graphic3d_AspectMarker3d : public Handle_Aspect_AspectMarker { - - public: - // constructors - Handle_Graphic3d_AspectMarker3d(); - Handle_Graphic3d_AspectMarker3d(const Handle_Graphic3d_AspectMarker3d &aHandle); - Handle_Graphic3d_AspectMarker3d(const Graphic3d_AspectMarker3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_AspectMarker3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_AspectMarker3d { - Graphic3d_AspectMarker3d* _get_reference() { - return (Graphic3d_AspectMarker3d*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_AspectMarker3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_AspectMarker3d) %extend Graphic3d_AspectMarker3d { %pythoncode { @@ -2026,51 +1895,7 @@ class Graphic3d_AspectText3d : public MMgt_TShared { }; -%extend Graphic3d_AspectText3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_AspectText3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_AspectText3d::Handle_Graphic3d_AspectText3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_AspectText3d; -class Handle_Graphic3d_AspectText3d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_AspectText3d(); - Handle_Graphic3d_AspectText3d(const Handle_Graphic3d_AspectText3d &aHandle); - Handle_Graphic3d_AspectText3d(const Graphic3d_AspectText3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_AspectText3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_AspectText3d { - Graphic3d_AspectText3d* _get_reference() { - return (Graphic3d_AspectText3d*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_AspectText3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_AspectText3d) %extend Graphic3d_AspectText3d { %pythoncode { @@ -2270,51 +2095,7 @@ class Graphic3d_BoundBuffer : public NCollection_Buffer { }; -%extend Graphic3d_BoundBuffer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_BoundBuffer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_BoundBuffer::Handle_Graphic3d_BoundBuffer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_BoundBuffer; -class Handle_Graphic3d_BoundBuffer : public Handle_NCollection_Buffer { - - public: - // constructors - Handle_Graphic3d_BoundBuffer(); - Handle_Graphic3d_BoundBuffer(const Handle_Graphic3d_BoundBuffer &aHandle); - Handle_Graphic3d_BoundBuffer(const Graphic3d_BoundBuffer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_BoundBuffer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_BoundBuffer { - Graphic3d_BoundBuffer* _get_reference() { - return (Graphic3d_BoundBuffer*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_BoundBuffer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_BoundBuffer) %extend Graphic3d_BoundBuffer { %pythoncode { @@ -2752,51 +2533,7 @@ class Graphic3d_CStructure : public Standard_Transient { }; -%extend Graphic3d_CStructure { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_CStructure(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_CStructure::Handle_Graphic3d_CStructure %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_CStructure; -class Handle_Graphic3d_CStructure : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_CStructure(); - Handle_Graphic3d_CStructure(const Handle_Graphic3d_CStructure &aHandle); - Handle_Graphic3d_CStructure(const Graphic3d_CStructure *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_CStructure DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_CStructure { - Graphic3d_CStructure* _get_reference() { - return (Graphic3d_CStructure*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_CStructure { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_CStructure) %extend Graphic3d_CStructure { %pythoncode { @@ -3317,51 +3054,7 @@ enum IODType { }; -%extend Graphic3d_Camera { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Camera(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Camera::Handle_Graphic3d_Camera %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Camera; -class Handle_Graphic3d_Camera : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_Camera(); - Handle_Graphic3d_Camera(const Handle_Graphic3d_Camera &aHandle); - Handle_Graphic3d_Camera(const Graphic3d_Camera *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Camera DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Camera { - Graphic3d_Camera* _get_reference() { - return (Graphic3d_Camera*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Camera { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Camera) %extend Graphic3d_Camera { %pythoncode { @@ -3559,51 +3252,7 @@ typedef NCollection_Vec4 Equation; }; -%extend Graphic3d_ClipPlane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ClipPlane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ClipPlane::Handle_Graphic3d_ClipPlane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ClipPlane; -class Handle_Graphic3d_ClipPlane : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_ClipPlane(); - Handle_Graphic3d_ClipPlane(const Handle_Graphic3d_ClipPlane &aHandle); - Handle_Graphic3d_ClipPlane(const Graphic3d_ClipPlane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ClipPlane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ClipPlane { - Graphic3d_ClipPlane* _get_reference() { - return (Graphic3d_ClipPlane*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ClipPlane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ClipPlane) %extend Graphic3d_ClipPlane { %pythoncode { @@ -3622,51 +3271,7 @@ class Graphic3d_DataStructureManager : public MMgt_TShared { }; -%extend Graphic3d_DataStructureManager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_DataStructureManager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_DataStructureManager::Handle_Graphic3d_DataStructureManager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_DataStructureManager; -class Handle_Graphic3d_DataStructureManager : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_DataStructureManager(); - Handle_Graphic3d_DataStructureManager(const Handle_Graphic3d_DataStructureManager &aHandle); - Handle_Graphic3d_DataStructureManager(const Graphic3d_DataStructureManager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_DataStructureManager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_DataStructureManager { - Graphic3d_DataStructureManager* _get_reference() { - return (Graphic3d_DataStructureManager*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_DataStructureManager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_DataStructureManager) %extend Graphic3d_DataStructureManager { %pythoncode { @@ -4761,51 +4366,7 @@ class Graphic3d_GraphicDriver : public MMgt_TShared { }; -%extend Graphic3d_GraphicDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_GraphicDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_GraphicDriver::Handle_Graphic3d_GraphicDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_GraphicDriver; -class Handle_Graphic3d_GraphicDriver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_GraphicDriver(); - Handle_Graphic3d_GraphicDriver(const Handle_Graphic3d_GraphicDriver &aHandle); - Handle_Graphic3d_GraphicDriver(const Graphic3d_GraphicDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_GraphicDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_GraphicDriver { - Graphic3d_GraphicDriver* _get_reference() { - return (Graphic3d_GraphicDriver*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_GraphicDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_GraphicDriver) %extend Graphic3d_GraphicDriver { %pythoncode { @@ -5126,51 +4687,7 @@ class Graphic3d_Group : public MMgt_TShared { }; -%extend Graphic3d_Group { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Group(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Group::Handle_Graphic3d_Group %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Group; -class Handle_Graphic3d_Group : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_Group(); - Handle_Graphic3d_Group(const Handle_Graphic3d_Group &aHandle); - Handle_Graphic3d_Group(const Graphic3d_Group *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Group DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Group { - Graphic3d_Group* _get_reference() { - return (Graphic3d_Group*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Group { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Group) %extend Graphic3d_Group { %pythoncode { @@ -5315,51 +4832,7 @@ class Graphic3d_HSequenceOfStructure : public MMgt_TShared { }; -%extend Graphic3d_HSequenceOfStructure { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_HSequenceOfStructure(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_HSequenceOfStructure::Handle_Graphic3d_HSequenceOfStructure %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_HSequenceOfStructure; -class Handle_Graphic3d_HSequenceOfStructure : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_HSequenceOfStructure(); - Handle_Graphic3d_HSequenceOfStructure(const Handle_Graphic3d_HSequenceOfStructure &aHandle); - Handle_Graphic3d_HSequenceOfStructure(const Graphic3d_HSequenceOfStructure *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_HSequenceOfStructure DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_HSequenceOfStructure { - Graphic3d_HSequenceOfStructure* _get_reference() { - return (Graphic3d_HSequenceOfStructure*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_HSequenceOfStructure { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_HSequenceOfStructure) %extend Graphic3d_HSequenceOfStructure { %pythoncode { @@ -5423,51 +4896,7 @@ class Graphic3d_ListNodeOfListOfShortReal : public TCollection_MapNode { }; -%extend Graphic3d_ListNodeOfListOfShortReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ListNodeOfListOfShortReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ListNodeOfListOfShortReal::Handle_Graphic3d_ListNodeOfListOfShortReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ListNodeOfListOfShortReal; -class Handle_Graphic3d_ListNodeOfListOfShortReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Graphic3d_ListNodeOfListOfShortReal(); - Handle_Graphic3d_ListNodeOfListOfShortReal(const Handle_Graphic3d_ListNodeOfListOfShortReal &aHandle); - Handle_Graphic3d_ListNodeOfListOfShortReal(const Graphic3d_ListNodeOfListOfShortReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ListNodeOfListOfShortReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ListNodeOfListOfShortReal { - Graphic3d_ListNodeOfListOfShortReal* _get_reference() { - return (Graphic3d_ListNodeOfListOfShortReal*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ListNodeOfListOfShortReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ListNodeOfListOfShortReal) %extend Graphic3d_ListNodeOfListOfShortReal { %pythoncode { @@ -5677,51 +5106,7 @@ class Graphic3d_MarkerImage : public Standard_Transient { }; -%extend Graphic3d_MarkerImage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_MarkerImage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_MarkerImage::Handle_Graphic3d_MarkerImage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_MarkerImage; -class Handle_Graphic3d_MarkerImage : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_MarkerImage(); - Handle_Graphic3d_MarkerImage(const Handle_Graphic3d_MarkerImage &aHandle); - Handle_Graphic3d_MarkerImage(const Graphic3d_MarkerImage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_MarkerImage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_MarkerImage { - Graphic3d_MarkerImage* _get_reference() { - return (Graphic3d_MarkerImage*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_MarkerImage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_MarkerImage) %extend Graphic3d_MarkerImage { %pythoncode { @@ -6139,51 +5524,7 @@ class Graphic3d_SequenceNodeOfSequenceOfStructure : public TCollection_SeqNode { }; -%extend Graphic3d_SequenceNodeOfSequenceOfStructure { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_SequenceNodeOfSequenceOfStructure(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_SequenceNodeOfSequenceOfStructure::Handle_Graphic3d_SequenceNodeOfSequenceOfStructure %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_SequenceNodeOfSequenceOfStructure; -class Handle_Graphic3d_SequenceNodeOfSequenceOfStructure : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Graphic3d_SequenceNodeOfSequenceOfStructure(); - Handle_Graphic3d_SequenceNodeOfSequenceOfStructure(const Handle_Graphic3d_SequenceNodeOfSequenceOfStructure &aHandle); - Handle_Graphic3d_SequenceNodeOfSequenceOfStructure(const Graphic3d_SequenceNodeOfSequenceOfStructure *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_SequenceNodeOfSequenceOfStructure DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_SequenceNodeOfSequenceOfStructure { - Graphic3d_SequenceNodeOfSequenceOfStructure* _get_reference() { - return (Graphic3d_SequenceNodeOfSequenceOfStructure*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_SequenceNodeOfSequenceOfStructure { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_SequenceNodeOfSequenceOfStructure) %extend Graphic3d_SequenceNodeOfSequenceOfStructure { %pythoncode { @@ -6389,51 +5730,7 @@ class Graphic3d_ShaderObject : public Standard_Transient { }; -%extend Graphic3d_ShaderObject { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ShaderObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ShaderObject::Handle_Graphic3d_ShaderObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ShaderObject; -class Handle_Graphic3d_ShaderObject : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_ShaderObject(); - Handle_Graphic3d_ShaderObject(const Handle_Graphic3d_ShaderObject &aHandle); - Handle_Graphic3d_ShaderObject(const Graphic3d_ShaderObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ShaderObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ShaderObject { - Graphic3d_ShaderObject* _get_reference() { - return (Graphic3d_ShaderObject*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ShaderObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ShaderObject) %extend Graphic3d_ShaderObject { %pythoncode { @@ -6540,51 +5837,7 @@ enum ShaderName { }; -%extend Graphic3d_ShaderProgram { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ShaderProgram(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ShaderProgram::Handle_Graphic3d_ShaderProgram %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ShaderProgram; -class Handle_Graphic3d_ShaderProgram : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_ShaderProgram(); - Handle_Graphic3d_ShaderProgram(const Handle_Graphic3d_ShaderProgram &aHandle); - Handle_Graphic3d_ShaderProgram(const Graphic3d_ShaderProgram *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ShaderProgram DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ShaderProgram { - Graphic3d_ShaderProgram* _get_reference() { - return (Graphic3d_ShaderProgram*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ShaderProgram { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ShaderProgram) %extend Graphic3d_ShaderProgram { %pythoncode { @@ -6615,51 +5868,7 @@ class Graphic3d_ShaderVariable : public Standard_Transient { }; -%extend Graphic3d_ShaderVariable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ShaderVariable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ShaderVariable::Handle_Graphic3d_ShaderVariable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ShaderVariable; -class Handle_Graphic3d_ShaderVariable : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_ShaderVariable(); - Handle_Graphic3d_ShaderVariable(const Handle_Graphic3d_ShaderVariable &aHandle); - Handle_Graphic3d_ShaderVariable(const Graphic3d_ShaderVariable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ShaderVariable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ShaderVariable { - Graphic3d_ShaderVariable* _get_reference() { - return (Graphic3d_ShaderVariable*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ShaderVariable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ShaderVariable) %extend Graphic3d_ShaderVariable { %pythoncode { @@ -7332,55 +6541,11 @@ class Graphic3d_Structure : public MMgt_TShared { }; +%make_alias(Graphic3d_Structure) + %extend Graphic3d_Structure { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Structure(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Structure::Handle_Graphic3d_Structure %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Structure; -class Handle_Graphic3d_Structure : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_Structure(); - Handle_Graphic3d_Structure(const Handle_Graphic3d_Structure &aHandle); - Handle_Graphic3d_Structure(const Graphic3d_Structure *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Structure DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Structure { - Graphic3d_Structure* _get_reference() { - return (Graphic3d_Structure*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Structure { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend Graphic3d_Structure { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor Graphic3d_StructureManager; @@ -7731,51 +6896,7 @@ class Graphic3d_StructureManager : public MMgt_TShared { }; -%extend Graphic3d_StructureManager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_StructureManager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_StructureManager::Handle_Graphic3d_StructureManager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_StructureManager; -class Handle_Graphic3d_StructureManager : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_StructureManager(); - Handle_Graphic3d_StructureManager(const Handle_Graphic3d_StructureManager &aHandle); - Handle_Graphic3d_StructureManager(const Graphic3d_StructureManager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_StructureManager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_StructureManager { - Graphic3d_StructureManager* _get_reference() { - return (Graphic3d_StructureManager*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_StructureManager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_StructureManager) %extend Graphic3d_StructureManager { %pythoncode { @@ -7926,51 +7047,7 @@ class Graphic3d_TextureParams : public Standard_Transient { }; -%extend Graphic3d_TextureParams { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_TextureParams(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_TextureParams::Handle_Graphic3d_TextureParams %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_TextureParams; -class Handle_Graphic3d_TextureParams : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_TextureParams(); - Handle_Graphic3d_TextureParams(const Handle_Graphic3d_TextureParams &aHandle); - Handle_Graphic3d_TextureParams(const Graphic3d_TextureParams *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_TextureParams DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_TextureParams { - Graphic3d_TextureParams* _get_reference() { - return (Graphic3d_TextureParams*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_TextureParams { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_TextureParams) %extend Graphic3d_TextureParams { %pythoncode { @@ -8029,51 +7106,7 @@ class Graphic3d_TextureRoot : public MMgt_TShared { }; -%extend Graphic3d_TextureRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_TextureRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_TextureRoot::Handle_Graphic3d_TextureRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_TextureRoot; -class Handle_Graphic3d_TextureRoot : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Graphic3d_TextureRoot(); - Handle_Graphic3d_TextureRoot(const Handle_Graphic3d_TextureRoot &aHandle); - Handle_Graphic3d_TextureRoot(const Graphic3d_TextureRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_TextureRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_TextureRoot { - Graphic3d_TextureRoot* _get_reference() { - return (Graphic3d_TextureRoot*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_TextureRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_TextureRoot) %extend Graphic3d_TextureRoot { %pythoncode { @@ -8491,51 +7524,7 @@ class Graphic3d_ViewAffinity : public Standard_Transient { }; -%extend Graphic3d_ViewAffinity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ViewAffinity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ViewAffinity::Handle_Graphic3d_ViewAffinity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ViewAffinity; -class Handle_Graphic3d_ViewAffinity : public Handle_Standard_Transient { - - public: - // constructors - Handle_Graphic3d_ViewAffinity(); - Handle_Graphic3d_ViewAffinity(const Handle_Graphic3d_ViewAffinity &aHandle); - Handle_Graphic3d_ViewAffinity(const Graphic3d_ViewAffinity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ViewAffinity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ViewAffinity { - Graphic3d_ViewAffinity* _get_reference() { - return (Graphic3d_ViewAffinity*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ViewAffinity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ViewAffinity) %extend Graphic3d_ViewAffinity { %pythoncode { @@ -8617,51 +7606,7 @@ class Graphic3d_ArrayOfPoints : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfPoints { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfPoints(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfPoints::Handle_Graphic3d_ArrayOfPoints %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfPoints; -class Handle_Graphic3d_ArrayOfPoints : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfPoints(); - Handle_Graphic3d_ArrayOfPoints(const Handle_Graphic3d_ArrayOfPoints &aHandle); - Handle_Graphic3d_ArrayOfPoints(const Graphic3d_ArrayOfPoints *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfPoints DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfPoints { - Graphic3d_ArrayOfPoints* _get_reference() { - return (Graphic3d_ArrayOfPoints*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfPoints { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfPoints) %extend Graphic3d_ArrayOfPoints { %pythoncode { @@ -8694,51 +7639,7 @@ class Graphic3d_ArrayOfPolygons : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfPolygons { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfPolygons(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfPolygons::Handle_Graphic3d_ArrayOfPolygons %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfPolygons; -class Handle_Graphic3d_ArrayOfPolygons : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfPolygons(); - Handle_Graphic3d_ArrayOfPolygons(const Handle_Graphic3d_ArrayOfPolygons &aHandle); - Handle_Graphic3d_ArrayOfPolygons(const Graphic3d_ArrayOfPolygons *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfPolygons DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfPolygons { - Graphic3d_ArrayOfPolygons* _get_reference() { - return (Graphic3d_ArrayOfPolygons*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfPolygons { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfPolygons) %extend Graphic3d_ArrayOfPolygons { %pythoncode { @@ -8767,51 +7668,7 @@ class Graphic3d_ArrayOfPolylines : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfPolylines { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfPolylines(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfPolylines::Handle_Graphic3d_ArrayOfPolylines %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfPolylines; -class Handle_Graphic3d_ArrayOfPolylines : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfPolylines(); - Handle_Graphic3d_ArrayOfPolylines(const Handle_Graphic3d_ArrayOfPolylines &aHandle); - Handle_Graphic3d_ArrayOfPolylines(const Graphic3d_ArrayOfPolylines *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfPolylines DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfPolylines { - Graphic3d_ArrayOfPolylines* _get_reference() { - return (Graphic3d_ArrayOfPolylines*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfPolylines { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfPolylines) %extend Graphic3d_ArrayOfPolylines { %pythoncode { @@ -8842,51 +7699,7 @@ class Graphic3d_ArrayOfQuadrangleStrips : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfQuadrangleStrips { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfQuadrangleStrips(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfQuadrangleStrips::Handle_Graphic3d_ArrayOfQuadrangleStrips %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfQuadrangleStrips; -class Handle_Graphic3d_ArrayOfQuadrangleStrips : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfQuadrangleStrips(); - Handle_Graphic3d_ArrayOfQuadrangleStrips(const Handle_Graphic3d_ArrayOfQuadrangleStrips &aHandle); - Handle_Graphic3d_ArrayOfQuadrangleStrips(const Graphic3d_ArrayOfQuadrangleStrips *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfQuadrangleStrips DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfQuadrangleStrips { - Graphic3d_ArrayOfQuadrangleStrips* _get_reference() { - return (Graphic3d_ArrayOfQuadrangleStrips*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfQuadrangleStrips { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfQuadrangleStrips) %extend Graphic3d_ArrayOfQuadrangleStrips { %pythoncode { @@ -8915,51 +7728,7 @@ class Graphic3d_ArrayOfQuadrangles : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfQuadrangles { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfQuadrangles(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfQuadrangles::Handle_Graphic3d_ArrayOfQuadrangles %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfQuadrangles; -class Handle_Graphic3d_ArrayOfQuadrangles : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfQuadrangles(); - Handle_Graphic3d_ArrayOfQuadrangles(const Handle_Graphic3d_ArrayOfQuadrangles &aHandle); - Handle_Graphic3d_ArrayOfQuadrangles(const Graphic3d_ArrayOfQuadrangles *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfQuadrangles DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfQuadrangles { - Graphic3d_ArrayOfQuadrangles* _get_reference() { - return (Graphic3d_ArrayOfQuadrangles*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfQuadrangles { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfQuadrangles) %extend Graphic3d_ArrayOfQuadrangles { %pythoncode { @@ -8984,51 +7753,7 @@ class Graphic3d_ArrayOfSegments : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfSegments { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfSegments(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfSegments::Handle_Graphic3d_ArrayOfSegments %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfSegments; -class Handle_Graphic3d_ArrayOfSegments : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfSegments(); - Handle_Graphic3d_ArrayOfSegments(const Handle_Graphic3d_ArrayOfSegments &aHandle); - Handle_Graphic3d_ArrayOfSegments(const Graphic3d_ArrayOfSegments *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfSegments DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfSegments { - Graphic3d_ArrayOfSegments* _get_reference() { - return (Graphic3d_ArrayOfSegments*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfSegments { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfSegments) %extend Graphic3d_ArrayOfSegments { %pythoncode { @@ -9059,51 +7784,7 @@ class Graphic3d_ArrayOfTriangleFans : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfTriangleFans { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfTriangleFans(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfTriangleFans::Handle_Graphic3d_ArrayOfTriangleFans %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfTriangleFans; -class Handle_Graphic3d_ArrayOfTriangleFans : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfTriangleFans(); - Handle_Graphic3d_ArrayOfTriangleFans(const Handle_Graphic3d_ArrayOfTriangleFans &aHandle); - Handle_Graphic3d_ArrayOfTriangleFans(const Graphic3d_ArrayOfTriangleFans *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfTriangleFans DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfTriangleFans { - Graphic3d_ArrayOfTriangleFans* _get_reference() { - return (Graphic3d_ArrayOfTriangleFans*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfTriangleFans { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfTriangleFans) %extend Graphic3d_ArrayOfTriangleFans { %pythoncode { @@ -9134,51 +7815,7 @@ class Graphic3d_ArrayOfTriangleStrips : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfTriangleStrips { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfTriangleStrips(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfTriangleStrips::Handle_Graphic3d_ArrayOfTriangleStrips %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfTriangleStrips; -class Handle_Graphic3d_ArrayOfTriangleStrips : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfTriangleStrips(); - Handle_Graphic3d_ArrayOfTriangleStrips(const Handle_Graphic3d_ArrayOfTriangleStrips &aHandle); - Handle_Graphic3d_ArrayOfTriangleStrips(const Graphic3d_ArrayOfTriangleStrips *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfTriangleStrips DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfTriangleStrips { - Graphic3d_ArrayOfTriangleStrips* _get_reference() { - return (Graphic3d_ArrayOfTriangleStrips*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfTriangleStrips { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfTriangleStrips) %extend Graphic3d_ArrayOfTriangleStrips { %pythoncode { @@ -9207,51 +7844,7 @@ class Graphic3d_ArrayOfTriangles : public Graphic3d_ArrayOfPrimitives { }; -%extend Graphic3d_ArrayOfTriangles { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_ArrayOfTriangles(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_ArrayOfTriangles::Handle_Graphic3d_ArrayOfTriangles %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_ArrayOfTriangles; -class Handle_Graphic3d_ArrayOfTriangles : public Handle_Graphic3d_ArrayOfPrimitives { - - public: - // constructors - Handle_Graphic3d_ArrayOfTriangles(); - Handle_Graphic3d_ArrayOfTriangles(const Handle_Graphic3d_ArrayOfTriangles &aHandle); - Handle_Graphic3d_ArrayOfTriangles(const Graphic3d_ArrayOfTriangles *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_ArrayOfTriangles DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_ArrayOfTriangles { - Graphic3d_ArrayOfTriangles* _get_reference() { - return (Graphic3d_ArrayOfTriangles*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_ArrayOfTriangles { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_ArrayOfTriangles) %extend Graphic3d_ArrayOfTriangles { %pythoncode { @@ -9308,51 +7901,7 @@ class Graphic3d_TextureEnv : public Graphic3d_TextureRoot { }; -%extend Graphic3d_TextureEnv { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_TextureEnv(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_TextureEnv::Handle_Graphic3d_TextureEnv %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_TextureEnv; -class Handle_Graphic3d_TextureEnv : public Handle_Graphic3d_TextureRoot { - - public: - // constructors - Handle_Graphic3d_TextureEnv(); - Handle_Graphic3d_TextureEnv(const Handle_Graphic3d_TextureEnv &aHandle); - Handle_Graphic3d_TextureEnv(const Graphic3d_TextureEnv *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_TextureEnv DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_TextureEnv { - Graphic3d_TextureEnv* _get_reference() { - return (Graphic3d_TextureEnv*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_TextureEnv { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_TextureEnv) %extend Graphic3d_TextureEnv { %pythoncode { @@ -9433,51 +7982,7 @@ class Graphic3d_TextureMap : public Graphic3d_TextureRoot { }; -%extend Graphic3d_TextureMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_TextureMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_TextureMap::Handle_Graphic3d_TextureMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_TextureMap; -class Handle_Graphic3d_TextureMap : public Handle_Graphic3d_TextureRoot { - - public: - // constructors - Handle_Graphic3d_TextureMap(); - Handle_Graphic3d_TextureMap(const Handle_Graphic3d_TextureMap &aHandle); - Handle_Graphic3d_TextureMap(const Graphic3d_TextureMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_TextureMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_TextureMap { - Graphic3d_TextureMap* _get_reference() { - return (Graphic3d_TextureMap*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_TextureMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_TextureMap) %extend Graphic3d_TextureMap { %pythoncode { @@ -9510,51 +8015,7 @@ class Graphic3d_Texture1D : public Graphic3d_TextureMap { }; -%extend Graphic3d_Texture1D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Texture1D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Texture1D::Handle_Graphic3d_Texture1D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Texture1D; -class Handle_Graphic3d_Texture1D : public Handle_Graphic3d_TextureMap { - - public: - // constructors - Handle_Graphic3d_Texture1D(); - Handle_Graphic3d_Texture1D(const Handle_Graphic3d_Texture1D &aHandle); - Handle_Graphic3d_Texture1D(const Graphic3d_Texture1D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Texture1D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Texture1D { - Graphic3d_Texture1D* _get_reference() { - return (Graphic3d_Texture1D*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Texture1D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Texture1D) %extend Graphic3d_Texture1D { %pythoncode { @@ -9587,51 +8048,7 @@ class Graphic3d_Texture2D : public Graphic3d_TextureMap { }; -%extend Graphic3d_Texture2D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Texture2D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Texture2D::Handle_Graphic3d_Texture2D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Texture2D; -class Handle_Graphic3d_Texture2D : public Handle_Graphic3d_TextureMap { - - public: - // constructors - Handle_Graphic3d_Texture2D(); - Handle_Graphic3d_Texture2D(const Handle_Graphic3d_Texture2D &aHandle); - Handle_Graphic3d_Texture2D(const Graphic3d_Texture2D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Texture2D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Texture2D { - Graphic3d_Texture2D* _get_reference() { - return (Graphic3d_Texture2D*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Texture2D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Texture2D) %extend Graphic3d_Texture2D { %pythoncode { @@ -9668,51 +8085,7 @@ class Graphic3d_Texture1Dmanual : public Graphic3d_Texture1D { }; -%extend Graphic3d_Texture1Dmanual { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Texture1Dmanual(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Texture1Dmanual::Handle_Graphic3d_Texture1Dmanual %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Texture1Dmanual; -class Handle_Graphic3d_Texture1Dmanual : public Handle_Graphic3d_Texture1D { - - public: - // constructors - Handle_Graphic3d_Texture1Dmanual(); - Handle_Graphic3d_Texture1Dmanual(const Handle_Graphic3d_Texture1Dmanual &aHandle); - Handle_Graphic3d_Texture1Dmanual(const Graphic3d_Texture1Dmanual *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Texture1Dmanual DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Texture1Dmanual { - Graphic3d_Texture1Dmanual* _get_reference() { - return (Graphic3d_Texture1Dmanual*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Texture1Dmanual { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Texture1Dmanual) %extend Graphic3d_Texture1Dmanual { %pythoncode { @@ -9785,51 +8158,7 @@ class Graphic3d_Texture1Dsegment : public Graphic3d_Texture1D { }; -%extend Graphic3d_Texture1Dsegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Texture1Dsegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Texture1Dsegment::Handle_Graphic3d_Texture1Dsegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Texture1Dsegment; -class Handle_Graphic3d_Texture1Dsegment : public Handle_Graphic3d_Texture1D { - - public: - // constructors - Handle_Graphic3d_Texture1Dsegment(); - Handle_Graphic3d_Texture1Dsegment(const Handle_Graphic3d_Texture1Dsegment &aHandle); - Handle_Graphic3d_Texture1Dsegment(const Graphic3d_Texture1Dsegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Texture1Dsegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Texture1Dsegment { - Graphic3d_Texture1Dsegment* _get_reference() { - return (Graphic3d_Texture1Dsegment*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Texture1Dsegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Texture1Dsegment) %extend Graphic3d_Texture1Dsegment { %pythoncode { @@ -9866,51 +8195,7 @@ class Graphic3d_Texture2Dmanual : public Graphic3d_Texture2D { }; -%extend Graphic3d_Texture2Dmanual { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Texture2Dmanual(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Texture2Dmanual::Handle_Graphic3d_Texture2Dmanual %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Texture2Dmanual; -class Handle_Graphic3d_Texture2Dmanual : public Handle_Graphic3d_Texture2D { - - public: - // constructors - Handle_Graphic3d_Texture2Dmanual(); - Handle_Graphic3d_Texture2Dmanual(const Handle_Graphic3d_Texture2Dmanual &aHandle); - Handle_Graphic3d_Texture2Dmanual(const Graphic3d_Texture2Dmanual *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Texture2Dmanual DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Texture2Dmanual { - Graphic3d_Texture2Dmanual* _get_reference() { - return (Graphic3d_Texture2Dmanual*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Texture2Dmanual { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Texture2Dmanual) %extend Graphic3d_Texture2Dmanual { %pythoncode { @@ -10097,51 +8382,7 @@ class Graphic3d_Texture2Dplane : public Graphic3d_Texture2D { }; -%extend Graphic3d_Texture2Dplane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Graphic3d_Texture2Dplane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Graphic3d_Texture2Dplane::Handle_Graphic3d_Texture2Dplane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Graphic3d_Texture2Dplane; -class Handle_Graphic3d_Texture2Dplane : public Handle_Graphic3d_Texture2D { - - public: - // constructors - Handle_Graphic3d_Texture2Dplane(); - Handle_Graphic3d_Texture2Dplane(const Handle_Graphic3d_Texture2Dplane &aHandle); - Handle_Graphic3d_Texture2Dplane(const Graphic3d_Texture2Dplane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Graphic3d_Texture2Dplane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Graphic3d_Texture2Dplane { - Graphic3d_Texture2Dplane* _get_reference() { - return (Graphic3d_Texture2Dplane*)$self->Access(); - } -}; - -%extend Handle_Graphic3d_Texture2Dplane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Graphic3d_Texture2Dplane) %extend Graphic3d_Texture2Dplane { %pythoncode { diff --git a/src/SWIG_files/wrapper/HLRAlgo.i b/src/SWIG_files/wrapper/HLRAlgo.i index 020c99bdc..d4adc763c 100644 --- a/src/SWIG_files/wrapper/HLRAlgo.i +++ b/src/SWIG_files/wrapper/HLRAlgo.i @@ -18,7 +18,27 @@ along with pythonOCC. If not, see . */ %define HLRALGODOCSTRING -"No docstring provided." +"industrial design, drawings need to offer the +possibility of removing lines, which are hidden +in a given projection. To do this, the Hidden +Line Removal component provides two +algorithms: HLRBRep_Algo and HLRBRep_PolyAlgo. +These algorithms remove or indicate lines +hidden by surfaces. For a given projection, they +calculate a set of lines characteristic of the +object being represented. They are also used +in conjunction with extraction utilities, which +reconstruct a new, simplified shape from a +selection of calculation results. This new shape +is made up of edges, which represent the lines +of the visualized shape in a plane. This plane is the projection plane. +HLRBRep_Algo takes into account the shape +itself. HLRBRep_PolyAlgo works with a +polyhedral simplification of the shape. When +you use HLRBRep_Algo, you obtain an exact +result, whereas, when you use +HLRBRep_PolyAlgo, you reduce computation +time but obtain polygonal segments." %enddef %module (package="OCC.Core", docstring=HLRALGODOCSTRING) HLRAlgo @@ -34,31 +54,31 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include HLRAlgo_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(HLRAlgo_EdgesBlock) +%wrap_handle(HLRAlgo_HArray1OfPHDat) +%wrap_handle(HLRAlgo_HArray1OfPINod) +%wrap_handle(HLRAlgo_HArray1OfPISeg) +%wrap_handle(HLRAlgo_HArray1OfTData) +%wrap_handle(HLRAlgo_ListNodeOfInterferenceList) +%wrap_handle(HLRAlgo_ListNodeOfListOfBPoint) +%wrap_handle(HLRAlgo_PolyAlgo) +%wrap_handle(HLRAlgo_PolyData) +%wrap_handle(HLRAlgo_PolyInternalData) +%wrap_handle(HLRAlgo_PolyInternalNode) +%wrap_handle(HLRAlgo_PolyShellData) +%wrap_handle(HLRAlgo_WiresBlock) + %rename(hlralgo) HLRAlgo; class HLRAlgo { public: @@ -1180,51 +1200,7 @@ class HLRAlgo_EdgesBlock : public MMgt_TShared { }; -%extend HLRAlgo_EdgesBlock { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_EdgesBlock(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_EdgesBlock::Handle_HLRAlgo_EdgesBlock %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_EdgesBlock; -class Handle_HLRAlgo_EdgesBlock : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_EdgesBlock(); - Handle_HLRAlgo_EdgesBlock(const Handle_HLRAlgo_EdgesBlock &aHandle); - Handle_HLRAlgo_EdgesBlock(const HLRAlgo_EdgesBlock *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_EdgesBlock DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_EdgesBlock { - HLRAlgo_EdgesBlock* _get_reference() { - return (HLRAlgo_EdgesBlock*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_EdgesBlock { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_EdgesBlock) %extend HLRAlgo_EdgesBlock { %pythoncode { @@ -1301,51 +1277,7 @@ class HLRAlgo_HArray1OfPHDat : public MMgt_TShared { }; -%extend HLRAlgo_HArray1OfPHDat { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_HArray1OfPHDat(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_HArray1OfPHDat::Handle_HLRAlgo_HArray1OfPHDat %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_HArray1OfPHDat; -class Handle_HLRAlgo_HArray1OfPHDat : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_HArray1OfPHDat(); - Handle_HLRAlgo_HArray1OfPHDat(const Handle_HLRAlgo_HArray1OfPHDat &aHandle); - Handle_HLRAlgo_HArray1OfPHDat(const HLRAlgo_HArray1OfPHDat *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_HArray1OfPHDat DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_HArray1OfPHDat { - HLRAlgo_HArray1OfPHDat* _get_reference() { - return (HLRAlgo_HArray1OfPHDat*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_HArray1OfPHDat { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_HArray1OfPHDat) %extend HLRAlgo_HArray1OfPHDat { %pythoncode { @@ -1422,51 +1354,7 @@ class HLRAlgo_HArray1OfPINod : public MMgt_TShared { }; -%extend HLRAlgo_HArray1OfPINod { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_HArray1OfPINod(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_HArray1OfPINod::Handle_HLRAlgo_HArray1OfPINod %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_HArray1OfPINod; -class Handle_HLRAlgo_HArray1OfPINod : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_HArray1OfPINod(); - Handle_HLRAlgo_HArray1OfPINod(const Handle_HLRAlgo_HArray1OfPINod &aHandle); - Handle_HLRAlgo_HArray1OfPINod(const HLRAlgo_HArray1OfPINod *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_HArray1OfPINod DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_HArray1OfPINod { - HLRAlgo_HArray1OfPINod* _get_reference() { - return (HLRAlgo_HArray1OfPINod*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_HArray1OfPINod { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_HArray1OfPINod) %extend HLRAlgo_HArray1OfPINod { %pythoncode { @@ -1543,51 +1431,7 @@ class HLRAlgo_HArray1OfPISeg : public MMgt_TShared { }; -%extend HLRAlgo_HArray1OfPISeg { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_HArray1OfPISeg(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_HArray1OfPISeg::Handle_HLRAlgo_HArray1OfPISeg %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_HArray1OfPISeg; -class Handle_HLRAlgo_HArray1OfPISeg : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_HArray1OfPISeg(); - Handle_HLRAlgo_HArray1OfPISeg(const Handle_HLRAlgo_HArray1OfPISeg &aHandle); - Handle_HLRAlgo_HArray1OfPISeg(const HLRAlgo_HArray1OfPISeg *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_HArray1OfPISeg DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_HArray1OfPISeg { - HLRAlgo_HArray1OfPISeg* _get_reference() { - return (HLRAlgo_HArray1OfPISeg*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_HArray1OfPISeg { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_HArray1OfPISeg) %extend HLRAlgo_HArray1OfPISeg { %pythoncode { @@ -1664,51 +1508,7 @@ class HLRAlgo_HArray1OfTData : public MMgt_TShared { }; -%extend HLRAlgo_HArray1OfTData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_HArray1OfTData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_HArray1OfTData::Handle_HLRAlgo_HArray1OfTData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_HArray1OfTData; -class Handle_HLRAlgo_HArray1OfTData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_HArray1OfTData(); - Handle_HLRAlgo_HArray1OfTData(const Handle_HLRAlgo_HArray1OfTData &aHandle); - Handle_HLRAlgo_HArray1OfTData(const HLRAlgo_HArray1OfTData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_HArray1OfTData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_HArray1OfTData { - HLRAlgo_HArray1OfTData* _get_reference() { - return (HLRAlgo_HArray1OfTData*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_HArray1OfTData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_HArray1OfTData) %extend HLRAlgo_HArray1OfTData { %pythoncode { @@ -2136,51 +1936,7 @@ class HLRAlgo_ListNodeOfInterferenceList : public TCollection_MapNode { }; -%extend HLRAlgo_ListNodeOfInterferenceList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_ListNodeOfInterferenceList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_ListNodeOfInterferenceList::Handle_HLRAlgo_ListNodeOfInterferenceList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_ListNodeOfInterferenceList; -class Handle_HLRAlgo_ListNodeOfInterferenceList : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRAlgo_ListNodeOfInterferenceList(); - Handle_HLRAlgo_ListNodeOfInterferenceList(const Handle_HLRAlgo_ListNodeOfInterferenceList &aHandle); - Handle_HLRAlgo_ListNodeOfInterferenceList(const HLRAlgo_ListNodeOfInterferenceList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_ListNodeOfInterferenceList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_ListNodeOfInterferenceList { - HLRAlgo_ListNodeOfInterferenceList* _get_reference() { - return (HLRAlgo_ListNodeOfInterferenceList*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_ListNodeOfInterferenceList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_ListNodeOfInterferenceList) %extend HLRAlgo_ListNodeOfInterferenceList { %pythoncode { @@ -2205,51 +1961,7 @@ class HLRAlgo_ListNodeOfListOfBPoint : public TCollection_MapNode { }; -%extend HLRAlgo_ListNodeOfListOfBPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_ListNodeOfListOfBPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_ListNodeOfListOfBPoint::Handle_HLRAlgo_ListNodeOfListOfBPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_ListNodeOfListOfBPoint; -class Handle_HLRAlgo_ListNodeOfListOfBPoint : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRAlgo_ListNodeOfListOfBPoint(); - Handle_HLRAlgo_ListNodeOfListOfBPoint(const Handle_HLRAlgo_ListNodeOfListOfBPoint &aHandle); - Handle_HLRAlgo_ListNodeOfListOfBPoint(const HLRAlgo_ListNodeOfListOfBPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_ListNodeOfListOfBPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_ListNodeOfListOfBPoint { - HLRAlgo_ListNodeOfListOfBPoint* _get_reference() { - return (HLRAlgo_ListNodeOfListOfBPoint*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_ListNodeOfListOfBPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_ListNodeOfListOfBPoint) %extend HLRAlgo_ListNodeOfListOfBPoint { %pythoncode { @@ -2483,51 +2195,7 @@ class HLRAlgo_PolyAlgo : public MMgt_TShared { }; -%extend HLRAlgo_PolyAlgo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_PolyAlgo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_PolyAlgo::Handle_HLRAlgo_PolyAlgo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_PolyAlgo; -class Handle_HLRAlgo_PolyAlgo : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_PolyAlgo(); - Handle_HLRAlgo_PolyAlgo(const Handle_HLRAlgo_PolyAlgo &aHandle); - Handle_HLRAlgo_PolyAlgo(const HLRAlgo_PolyAlgo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_PolyAlgo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_PolyAlgo { - HLRAlgo_PolyAlgo* _get_reference() { - return (HLRAlgo_PolyAlgo*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_PolyAlgo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_PolyAlgo) %extend HLRAlgo_PolyAlgo { %pythoncode { @@ -2614,51 +2282,7 @@ class HLRAlgo_PolyData : public MMgt_TShared { }; -%extend HLRAlgo_PolyData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_PolyData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_PolyData::Handle_HLRAlgo_PolyData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_PolyData; -class Handle_HLRAlgo_PolyData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_PolyData(); - Handle_HLRAlgo_PolyData(const Handle_HLRAlgo_PolyData &aHandle); - Handle_HLRAlgo_PolyData(const HLRAlgo_PolyData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_PolyData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_PolyData { - HLRAlgo_PolyData* _get_reference() { - return (HLRAlgo_PolyData*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_PolyData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_PolyData) %extend HLRAlgo_PolyData { %pythoncode { @@ -2856,51 +2480,7 @@ class HLRAlgo_PolyInternalData : public MMgt_TShared { }; -%extend HLRAlgo_PolyInternalData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_PolyInternalData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_PolyInternalData::Handle_HLRAlgo_PolyInternalData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_PolyInternalData; -class Handle_HLRAlgo_PolyInternalData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_PolyInternalData(); - Handle_HLRAlgo_PolyInternalData(const Handle_HLRAlgo_PolyInternalData &aHandle); - Handle_HLRAlgo_PolyInternalData(const HLRAlgo_PolyInternalData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_PolyInternalData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_PolyInternalData { - HLRAlgo_PolyInternalData* _get_reference() { - return (HLRAlgo_PolyInternalData*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_PolyInternalData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_PolyInternalData) %extend HLRAlgo_PolyInternalData { %pythoncode { @@ -2925,51 +2505,7 @@ class HLRAlgo_PolyInternalNode : public MMgt_TShared { }; -%extend HLRAlgo_PolyInternalNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_PolyInternalNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_PolyInternalNode::Handle_HLRAlgo_PolyInternalNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_PolyInternalNode; -class Handle_HLRAlgo_PolyInternalNode : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_PolyInternalNode(); - Handle_HLRAlgo_PolyInternalNode(const Handle_HLRAlgo_PolyInternalNode &aHandle); - Handle_HLRAlgo_PolyInternalNode(const HLRAlgo_PolyInternalNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_PolyInternalNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_PolyInternalNode { - HLRAlgo_PolyInternalNode* _get_reference() { - return (HLRAlgo_PolyInternalNode*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_PolyInternalNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_PolyInternalNode) %extend HLRAlgo_PolyInternalNode { %pythoncode { @@ -3039,51 +2575,7 @@ class HLRAlgo_PolyShellData : public MMgt_TShared { }; -%extend HLRAlgo_PolyShellData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_PolyShellData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_PolyShellData::Handle_HLRAlgo_PolyShellData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_PolyShellData; -class Handle_HLRAlgo_PolyShellData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_PolyShellData(); - Handle_HLRAlgo_PolyShellData(const Handle_HLRAlgo_PolyShellData &aHandle); - Handle_HLRAlgo_PolyShellData(const HLRAlgo_PolyShellData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_PolyShellData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_PolyShellData { - HLRAlgo_PolyShellData* _get_reference() { - return (HLRAlgo_PolyShellData*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_PolyShellData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_PolyShellData) %extend HLRAlgo_PolyShellData { %pythoncode { @@ -3332,51 +2824,7 @@ class HLRAlgo_WiresBlock : public MMgt_TShared { }; -%extend HLRAlgo_WiresBlock { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRAlgo_WiresBlock(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRAlgo_WiresBlock::Handle_HLRAlgo_WiresBlock %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRAlgo_WiresBlock; -class Handle_HLRAlgo_WiresBlock : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRAlgo_WiresBlock(); - Handle_HLRAlgo_WiresBlock(const Handle_HLRAlgo_WiresBlock &aHandle); - Handle_HLRAlgo_WiresBlock(const HLRAlgo_WiresBlock *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRAlgo_WiresBlock DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRAlgo_WiresBlock { - HLRAlgo_WiresBlock* _get_reference() { - return (HLRAlgo_WiresBlock*)$self->Access(); - } -}; - -%extend Handle_HLRAlgo_WiresBlock { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRAlgo_WiresBlock) %extend HLRAlgo_WiresBlock { %pythoncode { diff --git a/src/SWIG_files/wrapper/HLRAppli.i b/src/SWIG_files/wrapper/HLRAppli.i index bab1d3d7e..bb8b5c3bc 100644 --- a/src/SWIG_files/wrapper/HLRAppli.i +++ b/src/SWIG_files/wrapper/HLRAppli.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define HLRAPPLIDOCSTRING -"No docstring provided." +"-Purpose : This package represents applications +of Hidden Lines Removal algorithm +" %enddef %module (package="OCC.Core", docstring=HLRAPPLIDOCSTRING) HLRAppli @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include HLRAppli_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor HLRAppli_ReflectLines; class HLRAppli_ReflectLines { public: diff --git a/src/SWIG_files/wrapper/HLRAppli_headers.i b/src/SWIG_files/wrapper/HLRAppli_headers.i index 226911d9a..96dd77407 100644 --- a/src/SWIG_files/wrapper/HLRAppli_headers.i +++ b/src/SWIG_files/wrapper/HLRAppli_headers.i @@ -127,6 +127,17 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/HLRBRep.i b/src/SWIG_files/wrapper/HLRBRep.i index 7dc0246d6..a7a375266 100644 --- a/src/SWIG_files/wrapper/HLRBRep.i +++ b/src/SWIG_files/wrapper/HLRBRep.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define HLRBREPDOCSTRING -"No docstring provided." +"algorithms on the BRep DataStructure. + +The class PolyAlgo is used to remove Hidden lines +on Shapes with Triangulations. +" %enddef %module (package="OCC.Core", docstring=HLRBREPDOCSTRING) HLRBRep @@ -34,31 +38,27 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include HLRBRep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(HLRBRep_AreaLimit) +%wrap_handle(HLRBRep_Data) +%wrap_handle(HLRBRep_InternalAlgo) +%wrap_handle(HLRBRep_ListNodeOfListOfBPnt2D) +%wrap_handle(HLRBRep_ListNodeOfListOfBPoint) +%wrap_handle(HLRBRep_PolyAlgo) +%wrap_handle(HLRBRep_SequenceNodeOfSeqOfShapeBounds) +%wrap_handle(HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter) +%wrap_handle(HLRBRep_Algo) + %rename(hlrbrep) HLRBRep; class HLRBRep { public: @@ -202,51 +202,7 @@ class HLRBRep_AreaLimit : public MMgt_TShared { }; -%extend HLRBRep_AreaLimit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_AreaLimit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_AreaLimit::Handle_HLRBRep_AreaLimit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_AreaLimit; -class Handle_HLRBRep_AreaLimit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRBRep_AreaLimit(); - Handle_HLRBRep_AreaLimit(const Handle_HLRBRep_AreaLimit &aHandle); - Handle_HLRBRep_AreaLimit(const HLRBRep_AreaLimit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_AreaLimit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_AreaLimit { - HLRBRep_AreaLimit* _get_reference() { - return (HLRBRep_AreaLimit*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_AreaLimit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_AreaLimit) %extend HLRBRep_AreaLimit { %pythoncode { @@ -2122,51 +2078,7 @@ class HLRBRep_Data : public MMgt_TShared { }; -%extend HLRBRep_Data { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_Data(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_Data::Handle_HLRBRep_Data %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_Data; -class Handle_HLRBRep_Data : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRBRep_Data(); - Handle_HLRBRep_Data(const Handle_HLRBRep_Data &aHandle); - Handle_HLRBRep_Data(const HLRBRep_Data *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_Data DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_Data { - HLRBRep_Data* _get_reference() { - return (HLRBRep_Data*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_Data { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_Data) %extend HLRBRep_Data { %pythoncode { @@ -3687,51 +3599,7 @@ class HLRBRep_InternalAlgo : public MMgt_TShared { }; -%extend HLRBRep_InternalAlgo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_InternalAlgo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_InternalAlgo::Handle_HLRBRep_InternalAlgo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_InternalAlgo; -class Handle_HLRBRep_InternalAlgo : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRBRep_InternalAlgo(); - Handle_HLRBRep_InternalAlgo(const Handle_HLRBRep_InternalAlgo &aHandle); - Handle_HLRBRep_InternalAlgo(const HLRBRep_InternalAlgo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_InternalAlgo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_InternalAlgo { - HLRBRep_InternalAlgo* _get_reference() { - return (HLRBRep_InternalAlgo*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_InternalAlgo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_InternalAlgo) %extend HLRBRep_InternalAlgo { %pythoncode { @@ -4263,51 +4131,7 @@ class HLRBRep_ListNodeOfListOfBPnt2D : public TCollection_MapNode { }; -%extend HLRBRep_ListNodeOfListOfBPnt2D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_ListNodeOfListOfBPnt2D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_ListNodeOfListOfBPnt2D::Handle_HLRBRep_ListNodeOfListOfBPnt2D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_ListNodeOfListOfBPnt2D; -class Handle_HLRBRep_ListNodeOfListOfBPnt2D : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRBRep_ListNodeOfListOfBPnt2D(); - Handle_HLRBRep_ListNodeOfListOfBPnt2D(const Handle_HLRBRep_ListNodeOfListOfBPnt2D &aHandle); - Handle_HLRBRep_ListNodeOfListOfBPnt2D(const HLRBRep_ListNodeOfListOfBPnt2D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_ListNodeOfListOfBPnt2D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_ListNodeOfListOfBPnt2D { - HLRBRep_ListNodeOfListOfBPnt2D* _get_reference() { - return (HLRBRep_ListNodeOfListOfBPnt2D*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_ListNodeOfListOfBPnt2D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_ListNodeOfListOfBPnt2D) %extend HLRBRep_ListNodeOfListOfBPnt2D { %pythoncode { @@ -4332,51 +4156,7 @@ class HLRBRep_ListNodeOfListOfBPoint : public TCollection_MapNode { }; -%extend HLRBRep_ListNodeOfListOfBPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_ListNodeOfListOfBPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_ListNodeOfListOfBPoint::Handle_HLRBRep_ListNodeOfListOfBPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_ListNodeOfListOfBPoint; -class Handle_HLRBRep_ListNodeOfListOfBPoint : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRBRep_ListNodeOfListOfBPoint(); - Handle_HLRBRep_ListNodeOfListOfBPoint(const Handle_HLRBRep_ListNodeOfListOfBPoint &aHandle); - Handle_HLRBRep_ListNodeOfListOfBPoint(const HLRBRep_ListNodeOfListOfBPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_ListNodeOfListOfBPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_ListNodeOfListOfBPoint { - HLRBRep_ListNodeOfListOfBPoint* _get_reference() { - return (HLRBRep_ListNodeOfListOfBPoint*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_ListNodeOfListOfBPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_ListNodeOfListOfBPoint) %extend HLRBRep_ListNodeOfListOfBPoint { %pythoncode { @@ -4983,51 +4763,7 @@ class HLRBRep_PolyAlgo : public MMgt_TShared { }; -%extend HLRBRep_PolyAlgo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_PolyAlgo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_PolyAlgo::Handle_HLRBRep_PolyAlgo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_PolyAlgo; -class Handle_HLRBRep_PolyAlgo : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRBRep_PolyAlgo(); - Handle_HLRBRep_PolyAlgo(const Handle_HLRBRep_PolyAlgo &aHandle); - Handle_HLRBRep_PolyAlgo(const HLRBRep_PolyAlgo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_PolyAlgo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_PolyAlgo { - HLRBRep_PolyAlgo* _get_reference() { - return (HLRBRep_PolyAlgo*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_PolyAlgo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_PolyAlgo) %extend HLRBRep_PolyAlgo { %pythoncode { @@ -5708,51 +5444,7 @@ class HLRBRep_SequenceNodeOfSeqOfShapeBounds : public TCollection_SeqNode { }; -%extend HLRBRep_SequenceNodeOfSeqOfShapeBounds { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds::Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds; -class Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds(); - Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds(const Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds &aHandle); - Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds(const HLRBRep_SequenceNodeOfSeqOfShapeBounds *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds { - HLRBRep_SequenceNodeOfSeqOfShapeBounds* _get_reference() { - return (HLRBRep_SequenceNodeOfSeqOfShapeBounds*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_SequenceNodeOfSeqOfShapeBounds { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_SequenceNodeOfSeqOfShapeBounds) %extend HLRBRep_SequenceNodeOfSeqOfShapeBounds { %pythoncode { @@ -5779,51 +5471,7 @@ class HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter : }; -%extend HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter::Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter; -class Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(); - Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(const Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter &aHandle); - Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(const HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter { - HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter* _get_reference() { - return (HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter) %extend HLRBRep_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfCInter { %pythoncode { @@ -7704,51 +7352,7 @@ class HLRBRep_Algo : public HLRBRep_InternalAlgo { }; -%extend HLRBRep_Algo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRBRep_Algo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRBRep_Algo::Handle_HLRBRep_Algo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRBRep_Algo; -class Handle_HLRBRep_Algo : public Handle_HLRBRep_InternalAlgo { - - public: - // constructors - Handle_HLRBRep_Algo(); - Handle_HLRBRep_Algo(const Handle_HLRBRep_Algo &aHandle); - Handle_HLRBRep_Algo(const HLRBRep_Algo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRBRep_Algo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRBRep_Algo { - HLRBRep_Algo* _get_reference() { - return (HLRBRep_Algo*)$self->Access(); - } -}; - -%extend Handle_HLRBRep_Algo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRBRep_Algo) %extend HLRBRep_Algo { %pythoncode { diff --git a/src/SWIG_files/wrapper/HLRTopoBRep.i b/src/SWIG_files/wrapper/HLRTopoBRep.i index a750a6a42..77cc58121 100644 --- a/src/SWIG_files/wrapper/HLRTopoBRep.i +++ b/src/SWIG_files/wrapper/HLRTopoBRep.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define HLRTOPOBREPDOCSTRING -"No docstring provided." +"This Package provides some topological +reconstruction services needed by the Hidden Line +Removal Algorithms using OutLine and IsoLine +facilities, applied to an object represented by a +BRep data structure. +" %enddef %module (package="OCC.Core", docstring=HLRTOPOBREPDOCSTRING) HLRTopoBRep @@ -34,31 +39,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include HLRTopoBRep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData) +%wrap_handle(HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData) +%wrap_handle(HLRTopoBRep_ListNodeOfListOfVData) +%wrap_handle(HLRTopoBRep_OutLiner) + class HLRTopoBRep_DSFiller { public: %feature("compactdefaultargs") Insert; @@ -426,51 +422,7 @@ class HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData : public TCollection_MapNo }; -%extend HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData::Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData; -class Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData(); - Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData(const Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData &aHandle); - Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData(const HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData { - HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData* _get_reference() { - return (HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData*)$self->Access(); - } -}; - -%extend Handle_HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData) %extend HLRTopoBRep_DataMapNodeOfDataMapOfShapeFaceData { %pythoncode { @@ -501,51 +453,7 @@ class HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData : public TCollection_MapNod }; -%extend HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData::Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData; -class Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData(); - Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData(const Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData &aHandle); - Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData(const HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData { - HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData* _get_reference() { - return (HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData*)$self->Access(); - } -}; - -%extend Handle_HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData) %extend HLRTopoBRep_DataMapNodeOfMapOfShapeListOfVData { %pythoncode { @@ -787,51 +695,7 @@ class HLRTopoBRep_ListNodeOfListOfVData : public TCollection_MapNode { }; -%extend HLRTopoBRep_ListNodeOfListOfVData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRTopoBRep_ListNodeOfListOfVData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRTopoBRep_ListNodeOfListOfVData::Handle_HLRTopoBRep_ListNodeOfListOfVData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRTopoBRep_ListNodeOfListOfVData; -class Handle_HLRTopoBRep_ListNodeOfListOfVData : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_HLRTopoBRep_ListNodeOfListOfVData(); - Handle_HLRTopoBRep_ListNodeOfListOfVData(const Handle_HLRTopoBRep_ListNodeOfListOfVData &aHandle); - Handle_HLRTopoBRep_ListNodeOfListOfVData(const HLRTopoBRep_ListNodeOfListOfVData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRTopoBRep_ListNodeOfListOfVData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRTopoBRep_ListNodeOfListOfVData { - HLRTopoBRep_ListNodeOfListOfVData* _get_reference() { - return (HLRTopoBRep_ListNodeOfListOfVData*)$self->Access(); - } -}; - -%extend Handle_HLRTopoBRep_ListNodeOfListOfVData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRTopoBRep_ListNodeOfListOfVData) %extend HLRTopoBRep_ListNodeOfListOfVData { %pythoncode { @@ -1114,51 +978,7 @@ class HLRTopoBRep_OutLiner : public MMgt_TShared { }; -%extend HLRTopoBRep_OutLiner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HLRTopoBRep_OutLiner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HLRTopoBRep_OutLiner::Handle_HLRTopoBRep_OutLiner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HLRTopoBRep_OutLiner; -class Handle_HLRTopoBRep_OutLiner : public Handle_MMgt_TShared { - - public: - // constructors - Handle_HLRTopoBRep_OutLiner(); - Handle_HLRTopoBRep_OutLiner(const Handle_HLRTopoBRep_OutLiner &aHandle); - Handle_HLRTopoBRep_OutLiner(const HLRTopoBRep_OutLiner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HLRTopoBRep_OutLiner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HLRTopoBRep_OutLiner { - HLRTopoBRep_OutLiner* _get_reference() { - return (HLRTopoBRep_OutLiner*)$self->Access(); - } -}; - -%extend Handle_HLRTopoBRep_OutLiner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HLRTopoBRep_OutLiner) %extend HLRTopoBRep_OutLiner { %pythoncode { diff --git a/src/SWIG_files/wrapper/Hatch.i b/src/SWIG_files/wrapper/Hatch.i index 09e2a27e4..b628f7db8 100644 --- a/src/SWIG_files/wrapper/Hatch.i +++ b/src/SWIG_files/wrapper/Hatch.i @@ -18,7 +18,19 @@ along with pythonOCC. If not, see . */ %define HATCHDOCSTRING -"No docstring provided." +"The Hatch package provides algorithm to compute +cross-hatchings on a 2D face. + +The Hatcher algorithms stores a set of lines in +the 2D plane. + +The user stores lines in the Hatcher and afterward +trim them with other lines. + +At any moment when trimming the user can ask for +any line if it is intersected and how many +intervals are defined on the line by the trim. +" %enddef %module (package="OCC.Core", docstring=HATCHDOCSTRING) Hatch @@ -34,25 +46,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Hatch_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +63,9 @@ enum Hatch_LineForm { /* end public enums declaration */ +%wrap_handle(Hatch_SequenceNodeOfSequenceOfLine) +%wrap_handle(Hatch_SequenceNodeOfSequenceOfParameter) + %nodefaultctor Hatch_Hatcher; class Hatch_Hatcher { public: @@ -362,51 +363,7 @@ class Hatch_SequenceNodeOfSequenceOfLine : public TCollection_SeqNode { }; -%extend Hatch_SequenceNodeOfSequenceOfLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Hatch_SequenceNodeOfSequenceOfLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Hatch_SequenceNodeOfSequenceOfLine::Handle_Hatch_SequenceNodeOfSequenceOfLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Hatch_SequenceNodeOfSequenceOfLine; -class Handle_Hatch_SequenceNodeOfSequenceOfLine : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Hatch_SequenceNodeOfSequenceOfLine(); - Handle_Hatch_SequenceNodeOfSequenceOfLine(const Handle_Hatch_SequenceNodeOfSequenceOfLine &aHandle); - Handle_Hatch_SequenceNodeOfSequenceOfLine(const Hatch_SequenceNodeOfSequenceOfLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Hatch_SequenceNodeOfSequenceOfLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Hatch_SequenceNodeOfSequenceOfLine { - Hatch_SequenceNodeOfSequenceOfLine* _get_reference() { - return (Hatch_SequenceNodeOfSequenceOfLine*)$self->Access(); - } -}; - -%extend Handle_Hatch_SequenceNodeOfSequenceOfLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Hatch_SequenceNodeOfSequenceOfLine) %extend Hatch_SequenceNodeOfSequenceOfLine { %pythoncode { @@ -433,51 +390,7 @@ class Hatch_SequenceNodeOfSequenceOfParameter : public TCollection_SeqNode { }; -%extend Hatch_SequenceNodeOfSequenceOfParameter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Hatch_SequenceNodeOfSequenceOfParameter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Hatch_SequenceNodeOfSequenceOfParameter::Handle_Hatch_SequenceNodeOfSequenceOfParameter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Hatch_SequenceNodeOfSequenceOfParameter; -class Handle_Hatch_SequenceNodeOfSequenceOfParameter : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Hatch_SequenceNodeOfSequenceOfParameter(); - Handle_Hatch_SequenceNodeOfSequenceOfParameter(const Handle_Hatch_SequenceNodeOfSequenceOfParameter &aHandle); - Handle_Hatch_SequenceNodeOfSequenceOfParameter(const Hatch_SequenceNodeOfSequenceOfParameter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Hatch_SequenceNodeOfSequenceOfParameter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Hatch_SequenceNodeOfSequenceOfParameter { - Hatch_SequenceNodeOfSequenceOfParameter* _get_reference() { - return (Hatch_SequenceNodeOfSequenceOfParameter*)$self->Access(); - } -}; - -%extend Handle_Hatch_SequenceNodeOfSequenceOfParameter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Hatch_SequenceNodeOfSequenceOfParameter) %extend Hatch_SequenceNodeOfSequenceOfParameter { %pythoncode { diff --git a/src/SWIG_files/wrapper/HatchGen.i b/src/SWIG_files/wrapper/HatchGen.i index 98b608ed0..0399f2ae1 100644 --- a/src/SWIG_files/wrapper/HatchGen.i +++ b/src/SWIG_files/wrapper/HatchGen.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define HATCHGENDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=HATCHGENDOCSTRING) HatchGen @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include HatchGen_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -74,6 +60,10 @@ enum HatchGen_IntersectionType { /* end public enums declaration */ +%wrap_handle(HatchGen_SequenceNodeOfDomains) +%wrap_handle(HatchGen_SequenceNodeOfPointsOnElement) +%wrap_handle(HatchGen_SequenceNodeOfPointsOnHatching) + %nodefaultctor HatchGen_Domain; class HatchGen_Domain { public: @@ -753,51 +743,7 @@ class HatchGen_SequenceNodeOfDomains : public TCollection_SeqNode { }; -%extend HatchGen_SequenceNodeOfDomains { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HatchGen_SequenceNodeOfDomains(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HatchGen_SequenceNodeOfDomains::Handle_HatchGen_SequenceNodeOfDomains %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HatchGen_SequenceNodeOfDomains; -class Handle_HatchGen_SequenceNodeOfDomains : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_HatchGen_SequenceNodeOfDomains(); - Handle_HatchGen_SequenceNodeOfDomains(const Handle_HatchGen_SequenceNodeOfDomains &aHandle); - Handle_HatchGen_SequenceNodeOfDomains(const HatchGen_SequenceNodeOfDomains *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HatchGen_SequenceNodeOfDomains DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HatchGen_SequenceNodeOfDomains { - HatchGen_SequenceNodeOfDomains* _get_reference() { - return (HatchGen_SequenceNodeOfDomains*)$self->Access(); - } -}; - -%extend Handle_HatchGen_SequenceNodeOfDomains { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HatchGen_SequenceNodeOfDomains) %extend HatchGen_SequenceNodeOfDomains { %pythoncode { @@ -824,51 +770,7 @@ class HatchGen_SequenceNodeOfPointsOnElement : public TCollection_SeqNode { }; -%extend HatchGen_SequenceNodeOfPointsOnElement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HatchGen_SequenceNodeOfPointsOnElement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HatchGen_SequenceNodeOfPointsOnElement::Handle_HatchGen_SequenceNodeOfPointsOnElement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HatchGen_SequenceNodeOfPointsOnElement; -class Handle_HatchGen_SequenceNodeOfPointsOnElement : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_HatchGen_SequenceNodeOfPointsOnElement(); - Handle_HatchGen_SequenceNodeOfPointsOnElement(const Handle_HatchGen_SequenceNodeOfPointsOnElement &aHandle); - Handle_HatchGen_SequenceNodeOfPointsOnElement(const HatchGen_SequenceNodeOfPointsOnElement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HatchGen_SequenceNodeOfPointsOnElement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HatchGen_SequenceNodeOfPointsOnElement { - HatchGen_SequenceNodeOfPointsOnElement* _get_reference() { - return (HatchGen_SequenceNodeOfPointsOnElement*)$self->Access(); - } -}; - -%extend Handle_HatchGen_SequenceNodeOfPointsOnElement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HatchGen_SequenceNodeOfPointsOnElement) %extend HatchGen_SequenceNodeOfPointsOnElement { %pythoncode { @@ -895,51 +797,7 @@ class HatchGen_SequenceNodeOfPointsOnHatching : public TCollection_SeqNode { }; -%extend HatchGen_SequenceNodeOfPointsOnHatching { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_HatchGen_SequenceNodeOfPointsOnHatching(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_HatchGen_SequenceNodeOfPointsOnHatching::Handle_HatchGen_SequenceNodeOfPointsOnHatching %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_HatchGen_SequenceNodeOfPointsOnHatching; -class Handle_HatchGen_SequenceNodeOfPointsOnHatching : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_HatchGen_SequenceNodeOfPointsOnHatching(); - Handle_HatchGen_SequenceNodeOfPointsOnHatching(const Handle_HatchGen_SequenceNodeOfPointsOnHatching &aHandle); - Handle_HatchGen_SequenceNodeOfPointsOnHatching(const HatchGen_SequenceNodeOfPointsOnHatching *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_HatchGen_SequenceNodeOfPointsOnHatching DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_HatchGen_SequenceNodeOfPointsOnHatching { - HatchGen_SequenceNodeOfPointsOnHatching* _get_reference() { - return (HatchGen_SequenceNodeOfPointsOnHatching*)$self->Access(); - } -}; - -%extend Handle_HatchGen_SequenceNodeOfPointsOnHatching { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(HatchGen_SequenceNodeOfPointsOnHatching) %extend HatchGen_SequenceNodeOfPointsOnHatching { %pythoncode { diff --git a/src/SWIG_files/wrapper/Hermit.i b/src/SWIG_files/wrapper/Hermit.i index 6ddd5beb1..3a94ec544 100644 --- a/src/SWIG_files/wrapper/Hermit.i +++ b/src/SWIG_files/wrapper/Hermit.i @@ -18,7 +18,23 @@ along with pythonOCC. If not, see . */ %define HERMITDOCSTRING -"No docstring provided." +"This is used to reparameterize Rational BSpline +Curves so that we can concatenate them later to +build C1 Curves It builds and 1D-reparameterizing +function starting from an Hermite interpolation and +adding knots and modifying poles of the 1D BSpline +obtained that way. The goal is to build a(u) so that +if we consider a BSpline curve +N(u) +f(u) = - +D(u) + +the function a(u)D(u) has value 1 at the umin and umax +and has 0.0e0 derivative value a umin and umax. +The details of the computation occuring in this package +can be found by reading : +' Etude sur la concatenation de NURBS en vue du +balayage de surfaces' PFE n S85 Ensam Lille" %enddef %module (package="OCC.Core", docstring=HERMITDOCSTRING) Hermit @@ -34,31 +50,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Hermit_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(hermit) Hermit; class Hermit { public: diff --git a/src/SWIG_files/wrapper/IFSelect.i b/src/SWIG_files/wrapper/IFSelect.i index a9e47a7be..9a5f3f023 100644 --- a/src/SWIG_files/wrapper/IFSelect.i +++ b/src/SWIG_files/wrapper/IFSelect.i @@ -18,7 +18,18 @@ along with pythonOCC. If not, see . */ %define IFSELECTDOCSTRING -"No docstring provided." +"-Purpose : Gives tools to manage Selecting a group of Entities +processed by an Interface, for instance to divide up an +original Model (from a File) to several smaller ones +They use description of an Interface Model as a graph + +Remark that this corresponds to the description of a +'scenario' of sharing out a File. Parts of this Scenario +are intended to be permanently stored. IFSelect provides +the Transient, active counterparts (to run the Scenario). +But a permanent one (either as Persistent Objects or as +interpretable Text) must be provided elsewhere. +" %enddef %module (package="OCC.Core", docstring=IFSELECTDOCSTRING) IFSelect @@ -34,25 +45,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IFSelect_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef IFSelect_ReturnStatus ( * IFSelect_ActFunc ) ( const Handle_IFSelect_SessionPilot & ); typedef Handle_MoniTool_Option Handle_IFSelect_Option; @@ -105,6 +102,83 @@ enum IFSelect_PrintCount { /* end public enums declaration */ +%wrap_handle(IFSelect_Activator) +%wrap_handle(IFSelect_AppliedModifiers) +%wrap_handle(IFSelect_Dispatch) +%wrap_handle(IFSelect_EditForm) +%wrap_handle(IFSelect_Editor) +%wrap_handle(IFSelect_GeneralModifier) +%wrap_handle(IFSelect_HSeqOfSelection) +%wrap_handle(IFSelect_IntParam) +%wrap_handle(IFSelect_ListEditor) +%wrap_handle(IFSelect_ModelCopier) +%wrap_handle(IFSelect_PacketList) +%wrap_handle(IFSelect_Selection) +%wrap_handle(IFSelect_SequenceNodeOfSequenceOfAppliedModifiers) +%wrap_handle(IFSelect_SequenceNodeOfSequenceOfGeneralModifier) +%wrap_handle(IFSelect_SequenceNodeOfSequenceOfInterfaceModel) +%wrap_handle(IFSelect_SequenceNodeOfTSeqOfDispatch) +%wrap_handle(IFSelect_SequenceNodeOfTSeqOfSelection) +%wrap_handle(IFSelect_SessionDumper) +%wrap_handle(IFSelect_ShareOut) +%wrap_handle(IFSelect_Signature) +%wrap_handle(IFSelect_SignatureList) +%wrap_handle(IFSelect_Transformer) +%wrap_handle(IFSelect_WorkLibrary) +%wrap_handle(IFSelect_WorkSession) +%wrap_handle(IFSelect_Act) +%wrap_handle(IFSelect_BasicDumper) +%wrap_handle(IFSelect_CheckCounter) +%wrap_handle(IFSelect_DispGlobal) +%wrap_handle(IFSelect_DispPerCount) +%wrap_handle(IFSelect_DispPerFiles) +%wrap_handle(IFSelect_DispPerOne) +%wrap_handle(IFSelect_DispPerSignature) +%wrap_handle(IFSelect_Modifier) +%wrap_handle(IFSelect_ParamEditor) +%wrap_handle(IFSelect_SelectBase) +%wrap_handle(IFSelect_SelectCombine) +%wrap_handle(IFSelect_SelectControl) +%wrap_handle(IFSelect_SelectDeduct) +%wrap_handle(IFSelect_SessionPilot) +%wrap_handle(IFSelect_SignCategory) +%wrap_handle(IFSelect_SignCounter) +%wrap_handle(IFSelect_SignMultiple) +%wrap_handle(IFSelect_SignType) +%wrap_handle(IFSelect_SignValidity) +%wrap_handle(IFSelect_TransformStandard) +%wrap_handle(IFSelect_GraphCounter) +%wrap_handle(IFSelect_ModifEditForm) +%wrap_handle(IFSelect_ModifReorder) +%wrap_handle(IFSelect_SelectAnyList) +%wrap_handle(IFSelect_SelectDiff) +%wrap_handle(IFSelect_SelectEntityNumber) +%wrap_handle(IFSelect_SelectExplore) +%wrap_handle(IFSelect_SelectExtract) +%wrap_handle(IFSelect_SelectIntersection) +%wrap_handle(IFSelect_SelectModelEntities) +%wrap_handle(IFSelect_SelectModelRoots) +%wrap_handle(IFSelect_SelectPointed) +%wrap_handle(IFSelect_SelectShared) +%wrap_handle(IFSelect_SelectSharing) +%wrap_handle(IFSelect_SelectSuite) +%wrap_handle(IFSelect_SelectUnion) +%wrap_handle(IFSelect_SignAncestor) +%wrap_handle(IFSelect_SelectAnyType) +%wrap_handle(IFSelect_SelectErrorEntities) +%wrap_handle(IFSelect_SelectFlag) +%wrap_handle(IFSelect_SelectInList) +%wrap_handle(IFSelect_SelectRange) +%wrap_handle(IFSelect_SelectRootComps) +%wrap_handle(IFSelect_SelectRoots) +%wrap_handle(IFSelect_SelectSent) +%wrap_handle(IFSelect_SelectSignature) +%wrap_handle(IFSelect_SelectSignedShared) +%wrap_handle(IFSelect_SelectSignedSharing) +%wrap_handle(IFSelect_SelectUnknownEntities) +%wrap_handle(IFSelect_SelectIncorrectEntities) +%wrap_handle(IFSelect_SelectType) + %rename(ifselect) IFSelect; class IFSelect { public: @@ -278,51 +352,7 @@ class IFSelect_Activator : public MMgt_TShared { }; -%extend IFSelect_Activator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Activator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Activator::Handle_IFSelect_Activator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Activator; -class Handle_IFSelect_Activator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_Activator(); - Handle_IFSelect_Activator(const Handle_IFSelect_Activator &aHandle); - Handle_IFSelect_Activator(const IFSelect_Activator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Activator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Activator { - IFSelect_Activator* _get_reference() { - return (IFSelect_Activator*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Activator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Activator) %extend IFSelect_Activator { %pythoncode { @@ -399,51 +429,7 @@ class IFSelect_AppliedModifiers : public MMgt_TShared { }; -%extend IFSelect_AppliedModifiers { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_AppliedModifiers(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_AppliedModifiers::Handle_IFSelect_AppliedModifiers %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_AppliedModifiers; -class Handle_IFSelect_AppliedModifiers : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_AppliedModifiers(); - Handle_IFSelect_AppliedModifiers(const Handle_IFSelect_AppliedModifiers &aHandle); - Handle_IFSelect_AppliedModifiers(const IFSelect_AppliedModifiers *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_AppliedModifiers DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_AppliedModifiers { - IFSelect_AppliedModifiers* _get_reference() { - return (IFSelect_AppliedModifiers*)$self->Access(); - } -}; - -%extend Handle_IFSelect_AppliedModifiers { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_AppliedModifiers) %extend IFSelect_AppliedModifiers { %pythoncode { @@ -978,51 +964,7 @@ class IFSelect_Dispatch : public MMgt_TShared { }; -%extend IFSelect_Dispatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Dispatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Dispatch::Handle_IFSelect_Dispatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Dispatch; -class Handle_IFSelect_Dispatch : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_Dispatch(); - Handle_IFSelect_Dispatch(const Handle_IFSelect_Dispatch &aHandle); - Handle_IFSelect_Dispatch(const IFSelect_Dispatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Dispatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Dispatch { - IFSelect_Dispatch* _get_reference() { - return (IFSelect_Dispatch*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Dispatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Dispatch) %extend IFSelect_Dispatch { %pythoncode { @@ -1388,51 +1330,7 @@ class IFSelect_EditForm : public MMgt_TShared { }; -%extend IFSelect_EditForm { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_EditForm(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_EditForm::Handle_IFSelect_EditForm %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_EditForm; -class Handle_IFSelect_EditForm : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_EditForm(); - Handle_IFSelect_EditForm(const Handle_IFSelect_EditForm &aHandle); - Handle_IFSelect_EditForm(const IFSelect_EditForm *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_EditForm DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_EditForm { - IFSelect_EditForm* _get_reference() { - return (IFSelect_EditForm*)$self->Access(); - } -}; - -%extend Handle_IFSelect_EditForm { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_EditForm) %extend IFSelect_EditForm { %pythoncode { @@ -1651,51 +1549,7 @@ class IFSelect_Editor : public MMgt_TShared { }; -%extend IFSelect_Editor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Editor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Editor::Handle_IFSelect_Editor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Editor; -class Handle_IFSelect_Editor : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_Editor(); - Handle_IFSelect_Editor(const Handle_IFSelect_Editor &aHandle); - Handle_IFSelect_Editor(const IFSelect_Editor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Editor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Editor { - IFSelect_Editor* _get_reference() { - return (IFSelect_Editor*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Editor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Editor) %extend IFSelect_Editor { %pythoncode { @@ -1828,51 +1682,7 @@ class IFSelect_GeneralModifier : public MMgt_TShared { }; -%extend IFSelect_GeneralModifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_GeneralModifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_GeneralModifier::Handle_IFSelect_GeneralModifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_GeneralModifier; -class Handle_IFSelect_GeneralModifier : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_GeneralModifier(); - Handle_IFSelect_GeneralModifier(const Handle_IFSelect_GeneralModifier &aHandle); - Handle_IFSelect_GeneralModifier(const IFSelect_GeneralModifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_GeneralModifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_GeneralModifier { - IFSelect_GeneralModifier* _get_reference() { - return (IFSelect_GeneralModifier*)$self->Access(); - } -}; - -%extend Handle_IFSelect_GeneralModifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_GeneralModifier) %extend IFSelect_GeneralModifier { %pythoncode { @@ -2017,51 +1827,7 @@ class IFSelect_HSeqOfSelection : public MMgt_TShared { }; -%extend IFSelect_HSeqOfSelection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_HSeqOfSelection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_HSeqOfSelection::Handle_IFSelect_HSeqOfSelection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_HSeqOfSelection; -class Handle_IFSelect_HSeqOfSelection : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_HSeqOfSelection(); - Handle_IFSelect_HSeqOfSelection(const Handle_IFSelect_HSeqOfSelection &aHandle); - Handle_IFSelect_HSeqOfSelection(const IFSelect_HSeqOfSelection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_HSeqOfSelection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_HSeqOfSelection { - IFSelect_HSeqOfSelection* _get_reference() { - return (IFSelect_HSeqOfSelection*)$self->Access(); - } -}; - -%extend Handle_IFSelect_HSeqOfSelection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_HSeqOfSelection) %extend IFSelect_HSeqOfSelection { %pythoncode { @@ -2102,51 +1868,7 @@ class IFSelect_IntParam : public MMgt_TShared { }; -%extend IFSelect_IntParam { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_IntParam(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_IntParam::Handle_IFSelect_IntParam %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_IntParam; -class Handle_IFSelect_IntParam : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_IntParam(); - Handle_IFSelect_IntParam(const Handle_IFSelect_IntParam &aHandle); - Handle_IFSelect_IntParam(const IFSelect_IntParam *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_IntParam DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_IntParam { - IFSelect_IntParam* _get_reference() { - return (IFSelect_IntParam*)$self->Access(); - } -}; - -%extend Handle_IFSelect_IntParam { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_IntParam) %extend IFSelect_IntParam { %pythoncode { @@ -2301,51 +2023,7 @@ class IFSelect_ListEditor : public MMgt_TShared { }; -%extend IFSelect_ListEditor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_ListEditor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_ListEditor::Handle_IFSelect_ListEditor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_ListEditor; -class Handle_IFSelect_ListEditor : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_ListEditor(); - Handle_IFSelect_ListEditor(const Handle_IFSelect_ListEditor &aHandle); - Handle_IFSelect_ListEditor(const IFSelect_ListEditor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_ListEditor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_ListEditor { - IFSelect_ListEditor* _get_reference() { - return (IFSelect_ListEditor*)$self->Access(); - } -}; - -%extend Handle_IFSelect_ListEditor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_ListEditor) %extend IFSelect_ListEditor { %pythoncode { @@ -2564,51 +2242,7 @@ class IFSelect_ModelCopier : public MMgt_TShared { }; -%extend IFSelect_ModelCopier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_ModelCopier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_ModelCopier::Handle_IFSelect_ModelCopier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_ModelCopier; -class Handle_IFSelect_ModelCopier : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_ModelCopier(); - Handle_IFSelect_ModelCopier(const Handle_IFSelect_ModelCopier &aHandle); - Handle_IFSelect_ModelCopier(const IFSelect_ModelCopier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_ModelCopier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_ModelCopier { - IFSelect_ModelCopier* _get_reference() { - return (IFSelect_ModelCopier*)$self->Access(); - } -}; - -%extend Handle_IFSelect_ModelCopier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_ModelCopier) %extend IFSelect_ModelCopier { %pythoncode { @@ -2719,51 +2353,7 @@ class IFSelect_PacketList : public MMgt_TShared { }; -%extend IFSelect_PacketList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_PacketList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_PacketList::Handle_IFSelect_PacketList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_PacketList; -class Handle_IFSelect_PacketList : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_PacketList(); - Handle_IFSelect_PacketList(const Handle_IFSelect_PacketList &aHandle); - Handle_IFSelect_PacketList(const IFSelect_PacketList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_PacketList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_PacketList { - IFSelect_PacketList* _get_reference() { - return (IFSelect_PacketList*)$self->Access(); - } -}; - -%extend Handle_IFSelect_PacketList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_PacketList) %extend IFSelect_PacketList { %pythoncode { @@ -2814,51 +2404,7 @@ class IFSelect_Selection : public MMgt_TShared { }; -%extend IFSelect_Selection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Selection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Selection::Handle_IFSelect_Selection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Selection; -class Handle_IFSelect_Selection : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_Selection(); - Handle_IFSelect_Selection(const Handle_IFSelect_Selection &aHandle); - Handle_IFSelect_Selection(const IFSelect_Selection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Selection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Selection { - IFSelect_Selection* _get_reference() { - return (IFSelect_Selection*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Selection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Selection) %extend IFSelect_Selection { %pythoncode { @@ -2952,51 +2498,7 @@ class IFSelect_SequenceNodeOfSequenceOfAppliedModifiers : public TCollection_Seq }; -%extend IFSelect_SequenceNodeOfSequenceOfAppliedModifiers { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers::Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers; -class Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers(); - Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers(const Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers &aHandle); - Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers(const IFSelect_SequenceNodeOfSequenceOfAppliedModifiers *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers { - IFSelect_SequenceNodeOfSequenceOfAppliedModifiers* _get_reference() { - return (IFSelect_SequenceNodeOfSequenceOfAppliedModifiers*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SequenceNodeOfSequenceOfAppliedModifiers { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SequenceNodeOfSequenceOfAppliedModifiers) %extend IFSelect_SequenceNodeOfSequenceOfAppliedModifiers { %pythoncode { @@ -3023,51 +2525,7 @@ class IFSelect_SequenceNodeOfSequenceOfGeneralModifier : public TCollection_SeqN }; -%extend IFSelect_SequenceNodeOfSequenceOfGeneralModifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier::Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier; -class Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier(); - Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier(const Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier &aHandle); - Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier(const IFSelect_SequenceNodeOfSequenceOfGeneralModifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier { - IFSelect_SequenceNodeOfSequenceOfGeneralModifier* _get_reference() { - return (IFSelect_SequenceNodeOfSequenceOfGeneralModifier*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SequenceNodeOfSequenceOfGeneralModifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SequenceNodeOfSequenceOfGeneralModifier) %extend IFSelect_SequenceNodeOfSequenceOfGeneralModifier { %pythoncode { @@ -3094,51 +2552,7 @@ class IFSelect_SequenceNodeOfSequenceOfInterfaceModel : public TCollection_SeqNo }; -%extend IFSelect_SequenceNodeOfSequenceOfInterfaceModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel::Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel; -class Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel(); - Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel(const Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel &aHandle); - Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel(const IFSelect_SequenceNodeOfSequenceOfInterfaceModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel { - IFSelect_SequenceNodeOfSequenceOfInterfaceModel* _get_reference() { - return (IFSelect_SequenceNodeOfSequenceOfInterfaceModel*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SequenceNodeOfSequenceOfInterfaceModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SequenceNodeOfSequenceOfInterfaceModel) %extend IFSelect_SequenceNodeOfSequenceOfInterfaceModel { %pythoncode { @@ -3165,51 +2579,7 @@ class IFSelect_SequenceNodeOfTSeqOfDispatch : public TCollection_SeqNode { }; -%extend IFSelect_SequenceNodeOfTSeqOfDispatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SequenceNodeOfTSeqOfDispatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SequenceNodeOfTSeqOfDispatch::Handle_IFSelect_SequenceNodeOfTSeqOfDispatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SequenceNodeOfTSeqOfDispatch; -class Handle_IFSelect_SequenceNodeOfTSeqOfDispatch : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IFSelect_SequenceNodeOfTSeqOfDispatch(); - Handle_IFSelect_SequenceNodeOfTSeqOfDispatch(const Handle_IFSelect_SequenceNodeOfTSeqOfDispatch &aHandle); - Handle_IFSelect_SequenceNodeOfTSeqOfDispatch(const IFSelect_SequenceNodeOfTSeqOfDispatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SequenceNodeOfTSeqOfDispatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SequenceNodeOfTSeqOfDispatch { - IFSelect_SequenceNodeOfTSeqOfDispatch* _get_reference() { - return (IFSelect_SequenceNodeOfTSeqOfDispatch*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SequenceNodeOfTSeqOfDispatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SequenceNodeOfTSeqOfDispatch) %extend IFSelect_SequenceNodeOfTSeqOfDispatch { %pythoncode { @@ -3236,51 +2606,7 @@ class IFSelect_SequenceNodeOfTSeqOfSelection : public TCollection_SeqNode { }; -%extend IFSelect_SequenceNodeOfTSeqOfSelection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SequenceNodeOfTSeqOfSelection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SequenceNodeOfTSeqOfSelection::Handle_IFSelect_SequenceNodeOfTSeqOfSelection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SequenceNodeOfTSeqOfSelection; -class Handle_IFSelect_SequenceNodeOfTSeqOfSelection : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IFSelect_SequenceNodeOfTSeqOfSelection(); - Handle_IFSelect_SequenceNodeOfTSeqOfSelection(const Handle_IFSelect_SequenceNodeOfTSeqOfSelection &aHandle); - Handle_IFSelect_SequenceNodeOfTSeqOfSelection(const IFSelect_SequenceNodeOfTSeqOfSelection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SequenceNodeOfTSeqOfSelection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SequenceNodeOfTSeqOfSelection { - IFSelect_SequenceNodeOfTSeqOfSelection* _get_reference() { - return (IFSelect_SequenceNodeOfTSeqOfSelection*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SequenceNodeOfTSeqOfSelection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SequenceNodeOfTSeqOfSelection) %extend IFSelect_SequenceNodeOfTSeqOfSelection { %pythoncode { @@ -3756,51 +3082,7 @@ class IFSelect_SessionDumper : public MMgt_TShared { }; -%extend IFSelect_SessionDumper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SessionDumper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SessionDumper::Handle_IFSelect_SessionDumper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SessionDumper; -class Handle_IFSelect_SessionDumper : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_SessionDumper(); - Handle_IFSelect_SessionDumper(const Handle_IFSelect_SessionDumper &aHandle); - Handle_IFSelect_SessionDumper(const IFSelect_SessionDumper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SessionDumper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SessionDumper { - IFSelect_SessionDumper* _get_reference() { - return (IFSelect_SessionDumper*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SessionDumper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SessionDumper) %extend IFSelect_SessionDumper { %pythoncode { @@ -4362,51 +3644,7 @@ class IFSelect_ShareOut : public MMgt_TShared { }; -%extend IFSelect_ShareOut { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_ShareOut(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_ShareOut::Handle_IFSelect_ShareOut %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_ShareOut; -class Handle_IFSelect_ShareOut : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_ShareOut(); - Handle_IFSelect_ShareOut(const Handle_IFSelect_ShareOut &aHandle); - Handle_IFSelect_ShareOut(const IFSelect_ShareOut *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_ShareOut DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_ShareOut { - IFSelect_ShareOut* _get_reference() { - return (IFSelect_ShareOut*)$self->Access(); - } -}; - -%extend Handle_IFSelect_ShareOut { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_ShareOut) %extend IFSelect_ShareOut { %pythoncode { @@ -4660,55 +3898,11 @@ class IFSelect_Signature : public Interface_SignType { }; +%make_alias(IFSelect_Signature) + %extend IFSelect_Signature { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Signature(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Signature::Handle_IFSelect_Signature %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Signature; -class Handle_IFSelect_Signature : public Handle_Interface_SignType { - - public: - // constructors - Handle_IFSelect_Signature(); - Handle_IFSelect_Signature(const Handle_IFSelect_Signature &aHandle); - Handle_IFSelect_Signature(const IFSelect_Signature *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Signature DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Signature { - IFSelect_Signature* _get_reference() { - return (IFSelect_Signature*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Signature { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend IFSelect_Signature { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor IFSelect_SignatureList; @@ -4858,51 +4052,7 @@ class IFSelect_SignatureList : public MMgt_TShared { }; -%extend IFSelect_SignatureList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignatureList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignatureList::Handle_IFSelect_SignatureList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignatureList; -class Handle_IFSelect_SignatureList : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_SignatureList(); - Handle_IFSelect_SignatureList(const Handle_IFSelect_SignatureList &aHandle); - Handle_IFSelect_SignatureList(const IFSelect_SignatureList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignatureList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignatureList { - IFSelect_SignatureList* _get_reference() { - return (IFSelect_SignatureList*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignatureList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignatureList) %extend IFSelect_SignatureList { %pythoncode { @@ -5239,51 +4389,7 @@ class IFSelect_Transformer : public MMgt_TShared { }; -%extend IFSelect_Transformer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Transformer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Transformer::Handle_IFSelect_Transformer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Transformer; -class Handle_IFSelect_Transformer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_Transformer(); - Handle_IFSelect_Transformer(const Handle_IFSelect_Transformer &aHandle); - Handle_IFSelect_Transformer(const IFSelect_Transformer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Transformer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Transformer { - IFSelect_Transformer* _get_reference() { - return (IFSelect_Transformer*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Transformer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Transformer) %extend IFSelect_Transformer { %pythoncode { @@ -5398,51 +4504,7 @@ class IFSelect_WorkLibrary : public Standard_Transient { }; -%extend IFSelect_WorkLibrary { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_WorkLibrary(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_WorkLibrary::Handle_IFSelect_WorkLibrary %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_WorkLibrary; -class Handle_IFSelect_WorkLibrary : public Handle_Standard_Transient { - - public: - // constructors - Handle_IFSelect_WorkLibrary(); - Handle_IFSelect_WorkLibrary(const Handle_IFSelect_WorkLibrary &aHandle); - Handle_IFSelect_WorkLibrary(const IFSelect_WorkLibrary *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_WorkLibrary DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_WorkLibrary { - IFSelect_WorkLibrary* _get_reference() { - return (IFSelect_WorkLibrary*)$self->Access(); - } -}; - -%extend Handle_IFSelect_WorkLibrary { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_WorkLibrary) %extend IFSelect_WorkLibrary { %pythoncode { @@ -6807,51 +5869,7 @@ class IFSelect_WorkSession : public MMgt_TShared { }; -%extend IFSelect_WorkSession { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_WorkSession(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_WorkSession::Handle_IFSelect_WorkSession %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_WorkSession; -class Handle_IFSelect_WorkSession : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IFSelect_WorkSession(); - Handle_IFSelect_WorkSession(const Handle_IFSelect_WorkSession &aHandle); - Handle_IFSelect_WorkSession(const IFSelect_WorkSession *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_WorkSession DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_WorkSession { - IFSelect_WorkSession* _get_reference() { - return (IFSelect_WorkSession*)$self->Access(); - } -}; - -%extend Handle_IFSelect_WorkSession { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_WorkSession) %extend IFSelect_WorkSession { %pythoncode { @@ -6928,51 +5946,7 @@ class IFSelect_Act : public IFSelect_Activator { }; -%extend IFSelect_Act { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Act(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Act::Handle_IFSelect_Act %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Act; -class Handle_IFSelect_Act : public Handle_IFSelect_Activator { - - public: - // constructors - Handle_IFSelect_Act(); - Handle_IFSelect_Act(const Handle_IFSelect_Act &aHandle); - Handle_IFSelect_Act(const IFSelect_Act *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Act DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Act { - IFSelect_Act* _get_reference() { - return (IFSelect_Act*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Act { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Act) %extend IFSelect_Act { %pythoncode { @@ -7013,51 +5987,7 @@ class IFSelect_BasicDumper : public IFSelect_SessionDumper { }; -%extend IFSelect_BasicDumper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_BasicDumper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_BasicDumper::Handle_IFSelect_BasicDumper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_BasicDumper; -class Handle_IFSelect_BasicDumper : public Handle_IFSelect_SessionDumper { - - public: - // constructors - Handle_IFSelect_BasicDumper(); - Handle_IFSelect_BasicDumper(const Handle_IFSelect_BasicDumper &aHandle); - Handle_IFSelect_BasicDumper(const IFSelect_BasicDumper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_BasicDumper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_BasicDumper { - IFSelect_BasicDumper* _get_reference() { - return (IFSelect_BasicDumper*)$self->Access(); - } -}; - -%extend Handle_IFSelect_BasicDumper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_BasicDumper) %extend IFSelect_BasicDumper { %pythoncode { @@ -7106,51 +6036,7 @@ class IFSelect_CheckCounter : public IFSelect_SignatureList { }; -%extend IFSelect_CheckCounter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_CheckCounter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_CheckCounter::Handle_IFSelect_CheckCounter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_CheckCounter; -class Handle_IFSelect_CheckCounter : public Handle_IFSelect_SignatureList { - - public: - // constructors - Handle_IFSelect_CheckCounter(); - Handle_IFSelect_CheckCounter(const Handle_IFSelect_CheckCounter &aHandle); - Handle_IFSelect_CheckCounter(const IFSelect_CheckCounter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_CheckCounter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_CheckCounter { - IFSelect_CheckCounter* _get_reference() { - return (IFSelect_CheckCounter*)$self->Access(); - } -}; - -%extend Handle_IFSelect_CheckCounter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_CheckCounter) %extend IFSelect_CheckCounter { %pythoncode { @@ -7205,51 +6091,7 @@ class IFSelect_DispGlobal : public IFSelect_Dispatch { }; -%extend IFSelect_DispGlobal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_DispGlobal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_DispGlobal::Handle_IFSelect_DispGlobal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_DispGlobal; -class Handle_IFSelect_DispGlobal : public Handle_IFSelect_Dispatch { - - public: - // constructors - Handle_IFSelect_DispGlobal(); - Handle_IFSelect_DispGlobal(const Handle_IFSelect_DispGlobal &aHandle); - Handle_IFSelect_DispGlobal(const IFSelect_DispGlobal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_DispGlobal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_DispGlobal { - IFSelect_DispGlobal* _get_reference() { - return (IFSelect_DispGlobal*)$self->Access(); - } -}; - -%extend Handle_IFSelect_DispGlobal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_DispGlobal) %extend IFSelect_DispGlobal { %pythoncode { @@ -7324,51 +6166,7 @@ class IFSelect_DispPerCount : public IFSelect_Dispatch { }; -%extend IFSelect_DispPerCount { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_DispPerCount(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_DispPerCount::Handle_IFSelect_DispPerCount %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_DispPerCount; -class Handle_IFSelect_DispPerCount : public Handle_IFSelect_Dispatch { - - public: - // constructors - Handle_IFSelect_DispPerCount(); - Handle_IFSelect_DispPerCount(const Handle_IFSelect_DispPerCount &aHandle); - Handle_IFSelect_DispPerCount(const IFSelect_DispPerCount *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_DispPerCount DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_DispPerCount { - IFSelect_DispPerCount* _get_reference() { - return (IFSelect_DispPerCount*)$self->Access(); - } -}; - -%extend Handle_IFSelect_DispPerCount { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_DispPerCount) %extend IFSelect_DispPerCount { %pythoncode { @@ -7443,51 +6241,7 @@ class IFSelect_DispPerFiles : public IFSelect_Dispatch { }; -%extend IFSelect_DispPerFiles { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_DispPerFiles(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_DispPerFiles::Handle_IFSelect_DispPerFiles %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_DispPerFiles; -class Handle_IFSelect_DispPerFiles : public Handle_IFSelect_Dispatch { - - public: - // constructors - Handle_IFSelect_DispPerFiles(); - Handle_IFSelect_DispPerFiles(const Handle_IFSelect_DispPerFiles &aHandle); - Handle_IFSelect_DispPerFiles(const IFSelect_DispPerFiles *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_DispPerFiles DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_DispPerFiles { - IFSelect_DispPerFiles* _get_reference() { - return (IFSelect_DispPerFiles*)$self->Access(); - } -}; - -%extend Handle_IFSelect_DispPerFiles { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_DispPerFiles) %extend IFSelect_DispPerFiles { %pythoncode { @@ -7542,51 +6296,7 @@ class IFSelect_DispPerOne : public IFSelect_Dispatch { }; -%extend IFSelect_DispPerOne { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_DispPerOne(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_DispPerOne::Handle_IFSelect_DispPerOne %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_DispPerOne; -class Handle_IFSelect_DispPerOne : public Handle_IFSelect_Dispatch { - - public: - // constructors - Handle_IFSelect_DispPerOne(); - Handle_IFSelect_DispPerOne(const Handle_IFSelect_DispPerOne &aHandle); - Handle_IFSelect_DispPerOne(const IFSelect_DispPerOne *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_DispPerOne DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_DispPerOne { - IFSelect_DispPerOne* _get_reference() { - return (IFSelect_DispPerOne*)$self->Access(); - } -}; - -%extend Handle_IFSelect_DispPerOne { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_DispPerOne) %extend IFSelect_DispPerOne { %pythoncode { @@ -7651,51 +6361,7 @@ class IFSelect_DispPerSignature : public IFSelect_Dispatch { }; -%extend IFSelect_DispPerSignature { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_DispPerSignature(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_DispPerSignature::Handle_IFSelect_DispPerSignature %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_DispPerSignature; -class Handle_IFSelect_DispPerSignature : public Handle_IFSelect_Dispatch { - - public: - // constructors - Handle_IFSelect_DispPerSignature(); - Handle_IFSelect_DispPerSignature(const Handle_IFSelect_DispPerSignature &aHandle); - Handle_IFSelect_DispPerSignature(const IFSelect_DispPerSignature *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_DispPerSignature DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_DispPerSignature { - IFSelect_DispPerSignature* _get_reference() { - return (IFSelect_DispPerSignature*)$self->Access(); - } -}; - -%extend Handle_IFSelect_DispPerSignature { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_DispPerSignature) %extend IFSelect_DispPerSignature { %pythoncode { @@ -7722,51 +6388,7 @@ class IFSelect_Modifier : public IFSelect_GeneralModifier { }; -%extend IFSelect_Modifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_Modifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_Modifier::Handle_IFSelect_Modifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_Modifier; -class Handle_IFSelect_Modifier : public Handle_IFSelect_GeneralModifier { - - public: - // constructors - Handle_IFSelect_Modifier(); - Handle_IFSelect_Modifier(const Handle_IFSelect_Modifier &aHandle); - Handle_IFSelect_Modifier(const IFSelect_Modifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_Modifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_Modifier { - IFSelect_Modifier* _get_reference() { - return (IFSelect_Modifier*)$self->Access(); - } -}; - -%extend Handle_IFSelect_Modifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_Modifier) %extend IFSelect_Modifier { %pythoncode { @@ -7859,51 +6481,7 @@ class IFSelect_ParamEditor : public IFSelect_Editor { }; -%extend IFSelect_ParamEditor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_ParamEditor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_ParamEditor::Handle_IFSelect_ParamEditor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_ParamEditor; -class Handle_IFSelect_ParamEditor : public Handle_IFSelect_Editor { - - public: - // constructors - Handle_IFSelect_ParamEditor(); - Handle_IFSelect_ParamEditor(const Handle_IFSelect_ParamEditor &aHandle); - Handle_IFSelect_ParamEditor(const IFSelect_ParamEditor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_ParamEditor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_ParamEditor { - IFSelect_ParamEditor* _get_reference() { - return (IFSelect_ParamEditor*)$self->Access(); - } -}; - -%extend Handle_IFSelect_ParamEditor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_ParamEditor) %extend IFSelect_ParamEditor { %pythoncode { @@ -7924,51 +6502,7 @@ class IFSelect_SelectBase : public IFSelect_Selection { }; -%extend IFSelect_SelectBase { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectBase(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectBase::Handle_IFSelect_SelectBase %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectBase; -class Handle_IFSelect_SelectBase : public Handle_IFSelect_Selection { - - public: - // constructors - Handle_IFSelect_SelectBase(); - Handle_IFSelect_SelectBase(const Handle_IFSelect_SelectBase &aHandle); - Handle_IFSelect_SelectBase(const IFSelect_SelectBase *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectBase DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectBase { - IFSelect_SelectBase* _get_reference() { - return (IFSelect_SelectBase*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectBase { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectBase) %extend IFSelect_SelectBase { %pythoncode { @@ -8037,51 +6571,7 @@ class IFSelect_SelectCombine : public IFSelect_Selection { }; -%extend IFSelect_SelectCombine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectCombine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectCombine::Handle_IFSelect_SelectCombine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectCombine; -class Handle_IFSelect_SelectCombine : public Handle_IFSelect_Selection { - - public: - // constructors - Handle_IFSelect_SelectCombine(); - Handle_IFSelect_SelectCombine(const Handle_IFSelect_SelectCombine &aHandle); - Handle_IFSelect_SelectCombine(const IFSelect_SelectCombine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectCombine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectCombine { - IFSelect_SelectCombine* _get_reference() { - return (IFSelect_SelectCombine*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectCombine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectCombine) %extend IFSelect_SelectCombine { %pythoncode { @@ -8136,51 +6626,7 @@ class IFSelect_SelectControl : public IFSelect_Selection { }; -%extend IFSelect_SelectControl { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectControl(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectControl::Handle_IFSelect_SelectControl %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectControl; -class Handle_IFSelect_SelectControl : public Handle_IFSelect_Selection { - - public: - // constructors - Handle_IFSelect_SelectControl(); - Handle_IFSelect_SelectControl(const Handle_IFSelect_SelectControl &aHandle); - Handle_IFSelect_SelectControl(const IFSelect_SelectControl *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectControl DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectControl { - IFSelect_SelectControl* _get_reference() { - return (IFSelect_SelectControl*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectControl { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectControl) %extend IFSelect_SelectControl { %pythoncode { @@ -8241,51 +6687,7 @@ class IFSelect_SelectDeduct : public IFSelect_Selection { }; -%extend IFSelect_SelectDeduct { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectDeduct(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectDeduct::Handle_IFSelect_SelectDeduct %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectDeduct; -class Handle_IFSelect_SelectDeduct : public Handle_IFSelect_Selection { - - public: - // constructors - Handle_IFSelect_SelectDeduct(); - Handle_IFSelect_SelectDeduct(const Handle_IFSelect_SelectDeduct &aHandle); - Handle_IFSelect_SelectDeduct(const IFSelect_SelectDeduct *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectDeduct DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectDeduct { - IFSelect_SelectDeduct* _get_reference() { - return (IFSelect_SelectDeduct*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectDeduct { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectDeduct) %extend IFSelect_SelectDeduct { %pythoncode { @@ -8502,62 +6904,18 @@ class IFSelect_SessionPilot : public IFSelect_Activator { }; +%make_alias(IFSelect_SessionPilot) + %extend IFSelect_SessionPilot { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SessionPilot(self) - self.thisown = False - return self.thisHandle + __repr__ = _dumps_object } }; - -%pythonappend Handle_IFSelect_SessionPilot::Handle_IFSelect_SessionPilot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SessionPilot; -class Handle_IFSelect_SessionPilot : public Handle_IFSelect_Activator { - - public: - // constructors - Handle_IFSelect_SessionPilot(); - Handle_IFSelect_SessionPilot(const Handle_IFSelect_SessionPilot &aHandle); - Handle_IFSelect_SessionPilot(const IFSelect_SessionPilot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SessionPilot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SessionPilot { - IFSelect_SessionPilot* _get_reference() { - return (IFSelect_SessionPilot*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SessionPilot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend IFSelect_SessionPilot { - %pythoncode { - __repr__ = _dumps_object - } -}; -%nodefaultctor IFSelect_SignCategory; -class IFSelect_SignCategory : public IFSelect_Signature { - public: - %feature("compactdefaultargs") IFSelect_SignCategory; - %feature("autodoc", " * Returns a SignCategory +%nodefaultctor IFSelect_SignCategory; +class IFSelect_SignCategory : public IFSelect_Signature { + public: + %feature("compactdefaultargs") IFSelect_SignCategory; + %feature("autodoc", " * Returns a SignCategory :rtype: None ") IFSelect_SignCategory; @@ -8575,51 +6933,7 @@ class IFSelect_SignCategory : public IFSelect_Signature { }; -%extend IFSelect_SignCategory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignCategory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignCategory::Handle_IFSelect_SignCategory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignCategory; -class Handle_IFSelect_SignCategory : public Handle_IFSelect_Signature { - - public: - // constructors - Handle_IFSelect_SignCategory(); - Handle_IFSelect_SignCategory(const Handle_IFSelect_SignCategory &aHandle); - Handle_IFSelect_SignCategory(const IFSelect_SignCategory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignCategory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignCategory { - IFSelect_SignCategory* _get_reference() { - return (IFSelect_SignCategory*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignCategory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignCategory) %extend IFSelect_SignCategory { %pythoncode { @@ -8784,51 +7098,7 @@ class IFSelect_SignCounter : public IFSelect_SignatureList { }; -%extend IFSelect_SignCounter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignCounter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignCounter::Handle_IFSelect_SignCounter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignCounter; -class Handle_IFSelect_SignCounter : public Handle_IFSelect_SignatureList { - - public: - // constructors - Handle_IFSelect_SignCounter(); - Handle_IFSelect_SignCounter(const Handle_IFSelect_SignCounter &aHandle); - Handle_IFSelect_SignCounter(const IFSelect_SignCounter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignCounter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignCounter { - IFSelect_SignCounter* _get_reference() { - return (IFSelect_SignCounter*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignCounter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignCounter) %extend IFSelect_SignCounter { %pythoncode { @@ -8885,51 +7155,7 @@ class IFSelect_SignMultiple : public IFSelect_Signature { }; -%extend IFSelect_SignMultiple { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignMultiple(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignMultiple::Handle_IFSelect_SignMultiple %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignMultiple; -class Handle_IFSelect_SignMultiple : public Handle_IFSelect_Signature { - - public: - // constructors - Handle_IFSelect_SignMultiple(); - Handle_IFSelect_SignMultiple(const Handle_IFSelect_SignMultiple &aHandle); - Handle_IFSelect_SignMultiple(const IFSelect_SignMultiple *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignMultiple DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignMultiple { - IFSelect_SignMultiple* _get_reference() { - return (IFSelect_SignMultiple*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignMultiple { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignMultiple) %extend IFSelect_SignMultiple { %pythoncode { @@ -8960,51 +7186,7 @@ class IFSelect_SignType : public IFSelect_Signature { }; -%extend IFSelect_SignType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignType::Handle_IFSelect_SignType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignType; -class Handle_IFSelect_SignType : public Handle_IFSelect_Signature { - - public: - // constructors - Handle_IFSelect_SignType(); - Handle_IFSelect_SignType(const Handle_IFSelect_SignType &aHandle); - Handle_IFSelect_SignType(const IFSelect_SignType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignType { - IFSelect_SignType* _get_reference() { - return (IFSelect_SignType*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignType) %extend IFSelect_SignType { %pythoncode { @@ -9043,51 +7225,7 @@ class IFSelect_SignValidity : public IFSelect_Signature { }; -%extend IFSelect_SignValidity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignValidity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignValidity::Handle_IFSelect_SignValidity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignValidity; -class Handle_IFSelect_SignValidity : public Handle_IFSelect_Signature { - - public: - // constructors - Handle_IFSelect_SignValidity(); - Handle_IFSelect_SignValidity(const Handle_IFSelect_SignValidity &aHandle); - Handle_IFSelect_SignValidity(const IFSelect_SignValidity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignValidity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignValidity { - IFSelect_SignValidity* _get_reference() { - return (IFSelect_SignValidity*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignValidity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignValidity) %extend IFSelect_SignValidity { %pythoncode { @@ -9264,51 +7402,7 @@ class IFSelect_TransformStandard : public IFSelect_Transformer { }; -%extend IFSelect_TransformStandard { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_TransformStandard(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_TransformStandard::Handle_IFSelect_TransformStandard %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_TransformStandard; -class Handle_IFSelect_TransformStandard : public Handle_IFSelect_Transformer { - - public: - // constructors - Handle_IFSelect_TransformStandard(); - Handle_IFSelect_TransformStandard(const Handle_IFSelect_TransformStandard &aHandle); - Handle_IFSelect_TransformStandard(const IFSelect_TransformStandard *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_TransformStandard DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_TransformStandard { - IFSelect_TransformStandard* _get_reference() { - return (IFSelect_TransformStandard*)$self->Access(); - } -}; - -%extend Handle_IFSelect_TransformStandard { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_TransformStandard) %extend IFSelect_TransformStandard { %pythoncode { @@ -9355,51 +7449,7 @@ class IFSelect_GraphCounter : public IFSelect_SignCounter { }; -%extend IFSelect_GraphCounter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_GraphCounter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_GraphCounter::Handle_IFSelect_GraphCounter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_GraphCounter; -class Handle_IFSelect_GraphCounter : public Handle_IFSelect_SignCounter { - - public: - // constructors - Handle_IFSelect_GraphCounter(); - Handle_IFSelect_GraphCounter(const Handle_IFSelect_GraphCounter &aHandle); - Handle_IFSelect_GraphCounter(const IFSelect_GraphCounter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_GraphCounter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_GraphCounter { - IFSelect_GraphCounter* _get_reference() { - return (IFSelect_GraphCounter*)$self->Access(); - } -}; - -%extend Handle_IFSelect_GraphCounter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_GraphCounter) %extend IFSelect_GraphCounter { %pythoncode { @@ -9446,51 +7496,7 @@ class IFSelect_ModifEditForm : public IFSelect_Modifier { }; -%extend IFSelect_ModifEditForm { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_ModifEditForm(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_ModifEditForm::Handle_IFSelect_ModifEditForm %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_ModifEditForm; -class Handle_IFSelect_ModifEditForm : public Handle_IFSelect_Modifier { - - public: - // constructors - Handle_IFSelect_ModifEditForm(); - Handle_IFSelect_ModifEditForm(const Handle_IFSelect_ModifEditForm &aHandle); - Handle_IFSelect_ModifEditForm(const IFSelect_ModifEditForm *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_ModifEditForm DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_ModifEditForm { - IFSelect_ModifEditForm* _get_reference() { - return (IFSelect_ModifEditForm*)$self->Access(); - } -}; - -%extend Handle_IFSelect_ModifEditForm { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_ModifEditForm) %extend IFSelect_ModifEditForm { %pythoncode { @@ -9531,51 +7537,7 @@ class IFSelect_ModifReorder : public IFSelect_Modifier { }; -%extend IFSelect_ModifReorder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_ModifReorder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_ModifReorder::Handle_IFSelect_ModifReorder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_ModifReorder; -class Handle_IFSelect_ModifReorder : public Handle_IFSelect_Modifier { - - public: - // constructors - Handle_IFSelect_ModifReorder(); - Handle_IFSelect_ModifReorder(const Handle_IFSelect_ModifReorder &aHandle); - Handle_IFSelect_ModifReorder(const IFSelect_ModifReorder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_ModifReorder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_ModifReorder { - IFSelect_ModifReorder* _get_reference() { - return (IFSelect_ModifReorder*)$self->Access(); - } -}; - -%extend Handle_IFSelect_ModifReorder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_ModifReorder) %extend IFSelect_ModifReorder { %pythoncode { @@ -9708,51 +7670,7 @@ class IFSelect_SelectAnyList : public IFSelect_SelectDeduct { }; -%extend IFSelect_SelectAnyList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectAnyList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectAnyList::Handle_IFSelect_SelectAnyList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectAnyList; -class Handle_IFSelect_SelectAnyList : public Handle_IFSelect_SelectDeduct { - - public: - // constructors - Handle_IFSelect_SelectAnyList(); - Handle_IFSelect_SelectAnyList(const Handle_IFSelect_SelectAnyList &aHandle); - Handle_IFSelect_SelectAnyList(const IFSelect_SelectAnyList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectAnyList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectAnyList { - IFSelect_SelectAnyList* _get_reference() { - return (IFSelect_SelectAnyList*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectAnyList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectAnyList) %extend IFSelect_SelectAnyList { %pythoncode { @@ -9785,51 +7703,7 @@ class IFSelect_SelectDiff : public IFSelect_SelectControl { }; -%extend IFSelect_SelectDiff { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectDiff(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectDiff::Handle_IFSelect_SelectDiff %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectDiff; -class Handle_IFSelect_SelectDiff : public Handle_IFSelect_SelectControl { - - public: - // constructors - Handle_IFSelect_SelectDiff(); - Handle_IFSelect_SelectDiff(const Handle_IFSelect_SelectDiff &aHandle); - Handle_IFSelect_SelectDiff(const IFSelect_SelectDiff *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectDiff DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectDiff { - IFSelect_SelectDiff* _get_reference() { - return (IFSelect_SelectDiff*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectDiff { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectDiff) %extend IFSelect_SelectDiff { %pythoncode { @@ -9876,51 +7750,7 @@ class IFSelect_SelectEntityNumber : public IFSelect_SelectBase { }; -%extend IFSelect_SelectEntityNumber { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectEntityNumber(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectEntityNumber::Handle_IFSelect_SelectEntityNumber %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectEntityNumber; -class Handle_IFSelect_SelectEntityNumber : public Handle_IFSelect_SelectBase { - - public: - // constructors - Handle_IFSelect_SelectEntityNumber(); - Handle_IFSelect_SelectEntityNumber(const Handle_IFSelect_SelectEntityNumber &aHandle); - Handle_IFSelect_SelectEntityNumber(const IFSelect_SelectEntityNumber *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectEntityNumber DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectEntityNumber { - IFSelect_SelectEntityNumber* _get_reference() { - return (IFSelect_SelectEntityNumber*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectEntityNumber { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectEntityNumber) %extend IFSelect_SelectEntityNumber { %pythoncode { @@ -9973,51 +7803,7 @@ class IFSelect_SelectExplore : public IFSelect_SelectDeduct { }; -%extend IFSelect_SelectExplore { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectExplore(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectExplore::Handle_IFSelect_SelectExplore %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectExplore; -class Handle_IFSelect_SelectExplore : public Handle_IFSelect_SelectDeduct { - - public: - // constructors - Handle_IFSelect_SelectExplore(); - Handle_IFSelect_SelectExplore(const Handle_IFSelect_SelectExplore &aHandle); - Handle_IFSelect_SelectExplore(const IFSelect_SelectExplore *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectExplore DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectExplore { - IFSelect_SelectExplore* _get_reference() { - return (IFSelect_SelectExplore*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectExplore { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectExplore) %extend IFSelect_SelectExplore { %pythoncode { @@ -10088,51 +7874,7 @@ class IFSelect_SelectExtract : public IFSelect_SelectDeduct { }; -%extend IFSelect_SelectExtract { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectExtract(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectExtract::Handle_IFSelect_SelectExtract %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectExtract; -class Handle_IFSelect_SelectExtract : public Handle_IFSelect_SelectDeduct { - - public: - // constructors - Handle_IFSelect_SelectExtract(); - Handle_IFSelect_SelectExtract(const Handle_IFSelect_SelectExtract &aHandle); - Handle_IFSelect_SelectExtract(const IFSelect_SelectExtract *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectExtract DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectExtract { - IFSelect_SelectExtract* _get_reference() { - return (IFSelect_SelectExtract*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectExtract { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectExtract) %extend IFSelect_SelectExtract { %pythoncode { @@ -10165,51 +7907,7 @@ class IFSelect_SelectIntersection : public IFSelect_SelectCombine { }; -%extend IFSelect_SelectIntersection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectIntersection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectIntersection::Handle_IFSelect_SelectIntersection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectIntersection; -class Handle_IFSelect_SelectIntersection : public Handle_IFSelect_SelectCombine { - - public: - // constructors - Handle_IFSelect_SelectIntersection(); - Handle_IFSelect_SelectIntersection(const Handle_IFSelect_SelectIntersection &aHandle); - Handle_IFSelect_SelectIntersection(const IFSelect_SelectIntersection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectIntersection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectIntersection { - IFSelect_SelectIntersection* _get_reference() { - return (IFSelect_SelectIntersection*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectIntersection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectIntersection) %extend IFSelect_SelectIntersection { %pythoncode { @@ -10250,51 +7948,7 @@ class IFSelect_SelectModelEntities : public IFSelect_SelectBase { }; -%extend IFSelect_SelectModelEntities { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectModelEntities(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectModelEntities::Handle_IFSelect_SelectModelEntities %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectModelEntities; -class Handle_IFSelect_SelectModelEntities : public Handle_IFSelect_SelectBase { - - public: - // constructors - Handle_IFSelect_SelectModelEntities(); - Handle_IFSelect_SelectModelEntities(const Handle_IFSelect_SelectModelEntities &aHandle); - Handle_IFSelect_SelectModelEntities(const IFSelect_SelectModelEntities *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectModelEntities DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectModelEntities { - IFSelect_SelectModelEntities* _get_reference() { - return (IFSelect_SelectModelEntities*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectModelEntities { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectModelEntities) %extend IFSelect_SelectModelEntities { %pythoncode { @@ -10327,51 +7981,7 @@ class IFSelect_SelectModelRoots : public IFSelect_SelectBase { }; -%extend IFSelect_SelectModelRoots { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectModelRoots(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectModelRoots::Handle_IFSelect_SelectModelRoots %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectModelRoots; -class Handle_IFSelect_SelectModelRoots : public Handle_IFSelect_SelectBase { - - public: - // constructors - Handle_IFSelect_SelectModelRoots(); - Handle_IFSelect_SelectModelRoots(const Handle_IFSelect_SelectModelRoots &aHandle); - Handle_IFSelect_SelectModelRoots(const IFSelect_SelectModelRoots *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectModelRoots DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectModelRoots { - IFSelect_SelectModelRoots* _get_reference() { - return (IFSelect_SelectModelRoots*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectModelRoots { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectModelRoots) %extend IFSelect_SelectModelRoots { %pythoncode { @@ -10518,51 +8128,7 @@ class IFSelect_SelectPointed : public IFSelect_SelectBase { }; -%extend IFSelect_SelectPointed { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectPointed(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectPointed::Handle_IFSelect_SelectPointed %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectPointed; -class Handle_IFSelect_SelectPointed : public Handle_IFSelect_SelectBase { - - public: - // constructors - Handle_IFSelect_SelectPointed(); - Handle_IFSelect_SelectPointed(const Handle_IFSelect_SelectPointed &aHandle); - Handle_IFSelect_SelectPointed(const IFSelect_SelectPointed *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectPointed DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectPointed { - IFSelect_SelectPointed* _get_reference() { - return (IFSelect_SelectPointed*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectPointed { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectPointed) %extend IFSelect_SelectPointed { %pythoncode { @@ -10595,51 +8161,7 @@ class IFSelect_SelectShared : public IFSelect_SelectDeduct { }; -%extend IFSelect_SelectShared { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectShared(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectShared::Handle_IFSelect_SelectShared %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectShared; -class Handle_IFSelect_SelectShared : public Handle_IFSelect_SelectDeduct { - - public: - // constructors - Handle_IFSelect_SelectShared(); - Handle_IFSelect_SelectShared(const Handle_IFSelect_SelectShared &aHandle); - Handle_IFSelect_SelectShared(const IFSelect_SelectShared *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectShared DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectShared { - IFSelect_SelectShared* _get_reference() { - return (IFSelect_SelectShared*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectShared { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectShared) %extend IFSelect_SelectShared { %pythoncode { @@ -10672,51 +8194,7 @@ class IFSelect_SelectSharing : public IFSelect_SelectDeduct { }; -%extend IFSelect_SelectSharing { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectSharing(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectSharing::Handle_IFSelect_SelectSharing %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectSharing; -class Handle_IFSelect_SelectSharing : public Handle_IFSelect_SelectDeduct { - - public: - // constructors - Handle_IFSelect_SelectSharing(); - Handle_IFSelect_SelectSharing(const Handle_IFSelect_SelectSharing &aHandle); - Handle_IFSelect_SelectSharing(const IFSelect_SelectSharing *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectSharing DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectSharing { - IFSelect_SelectSharing* _get_reference() { - return (IFSelect_SelectSharing*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectSharing { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectSharing) %extend IFSelect_SelectSharing { %pythoncode { @@ -10795,51 +8273,7 @@ class IFSelect_SelectSuite : public IFSelect_SelectDeduct { }; -%extend IFSelect_SelectSuite { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectSuite(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectSuite::Handle_IFSelect_SelectSuite %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectSuite; -class Handle_IFSelect_SelectSuite : public Handle_IFSelect_SelectDeduct { - - public: - // constructors - Handle_IFSelect_SelectSuite(); - Handle_IFSelect_SelectSuite(const Handle_IFSelect_SelectSuite &aHandle); - Handle_IFSelect_SelectSuite(const IFSelect_SelectSuite *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectSuite DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectSuite { - IFSelect_SelectSuite* _get_reference() { - return (IFSelect_SelectSuite*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectSuite { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectSuite) %extend IFSelect_SelectSuite { %pythoncode { @@ -10872,51 +8306,7 @@ class IFSelect_SelectUnion : public IFSelect_SelectCombine { }; -%extend IFSelect_SelectUnion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectUnion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectUnion::Handle_IFSelect_SelectUnion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectUnion; -class Handle_IFSelect_SelectUnion : public Handle_IFSelect_SelectCombine { - - public: - // constructors - Handle_IFSelect_SelectUnion(); - Handle_IFSelect_SelectUnion(const Handle_IFSelect_SelectUnion &aHandle); - Handle_IFSelect_SelectUnion(const IFSelect_SelectUnion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectUnion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectUnion { - IFSelect_SelectUnion* _get_reference() { - return (IFSelect_SelectUnion*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectUnion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectUnion) %extend IFSelect_SelectUnion { %pythoncode { @@ -10947,51 +8337,7 @@ class IFSelect_SignAncestor : public IFSelect_SignType { }; -%extend IFSelect_SignAncestor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SignAncestor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SignAncestor::Handle_IFSelect_SignAncestor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SignAncestor; -class Handle_IFSelect_SignAncestor : public Handle_IFSelect_SignType { - - public: - // constructors - Handle_IFSelect_SignAncestor(); - Handle_IFSelect_SignAncestor(const Handle_IFSelect_SignAncestor &aHandle); - Handle_IFSelect_SignAncestor(const IFSelect_SignAncestor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SignAncestor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SignAncestor { - IFSelect_SignAncestor* _get_reference() { - return (IFSelect_SignAncestor*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SignAncestor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SignAncestor) %extend IFSelect_SignAncestor { %pythoncode { @@ -11022,51 +8368,7 @@ class IFSelect_SelectAnyType : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectAnyType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectAnyType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectAnyType::Handle_IFSelect_SelectAnyType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectAnyType; -class Handle_IFSelect_SelectAnyType : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectAnyType(); - Handle_IFSelect_SelectAnyType(const Handle_IFSelect_SelectAnyType &aHandle); - Handle_IFSelect_SelectAnyType(const IFSelect_SelectAnyType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectAnyType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectAnyType { - IFSelect_SelectAnyType* _get_reference() { - return (IFSelect_SelectAnyType*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectAnyType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectAnyType) %extend IFSelect_SelectAnyType { %pythoncode { @@ -11103,51 +8405,7 @@ class IFSelect_SelectErrorEntities : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectErrorEntities { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectErrorEntities(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectErrorEntities::Handle_IFSelect_SelectErrorEntities %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectErrorEntities; -class Handle_IFSelect_SelectErrorEntities : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectErrorEntities(); - Handle_IFSelect_SelectErrorEntities(const Handle_IFSelect_SelectErrorEntities &aHandle); - Handle_IFSelect_SelectErrorEntities(const IFSelect_SelectErrorEntities *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectErrorEntities DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectErrorEntities { - IFSelect_SelectErrorEntities* _get_reference() { - return (IFSelect_SelectErrorEntities*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectErrorEntities { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectErrorEntities) %extend IFSelect_SelectErrorEntities { %pythoncode { @@ -11200,51 +8458,7 @@ class IFSelect_SelectFlag : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectFlag { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectFlag(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectFlag::Handle_IFSelect_SelectFlag %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectFlag; -class Handle_IFSelect_SelectFlag : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectFlag(); - Handle_IFSelect_SelectFlag(const Handle_IFSelect_SelectFlag &aHandle); - Handle_IFSelect_SelectFlag(const IFSelect_SelectFlag *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectFlag DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectFlag { - IFSelect_SelectFlag* _get_reference() { - return (IFSelect_SelectFlag*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectFlag { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectFlag) %extend IFSelect_SelectFlag { %pythoncode { @@ -11281,51 +8495,7 @@ class IFSelect_SelectInList : public IFSelect_SelectAnyList { }; -%extend IFSelect_SelectInList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectInList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectInList::Handle_IFSelect_SelectInList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectInList; -class Handle_IFSelect_SelectInList : public Handle_IFSelect_SelectAnyList { - - public: - // constructors - Handle_IFSelect_SelectInList(); - Handle_IFSelect_SelectInList(const Handle_IFSelect_SelectInList &aHandle); - Handle_IFSelect_SelectInList(const IFSelect_SelectInList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectInList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectInList { - IFSelect_SelectInList* _get_reference() { - return (IFSelect_SelectInList*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectInList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectInList) %extend IFSelect_SelectInList { %pythoncode { @@ -11432,51 +8602,7 @@ class IFSelect_SelectRange : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectRange { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectRange(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectRange::Handle_IFSelect_SelectRange %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectRange; -class Handle_IFSelect_SelectRange : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectRange(); - Handle_IFSelect_SelectRange(const Handle_IFSelect_SelectRange &aHandle); - Handle_IFSelect_SelectRange(const IFSelect_SelectRange *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectRange DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectRange { - IFSelect_SelectRange* _get_reference() { - return (IFSelect_SelectRange*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectRange { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectRange) %extend IFSelect_SelectRange { %pythoncode { @@ -11521,51 +8647,7 @@ class IFSelect_SelectRootComps : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectRootComps { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectRootComps(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectRootComps::Handle_IFSelect_SelectRootComps %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectRootComps; -class Handle_IFSelect_SelectRootComps : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectRootComps(); - Handle_IFSelect_SelectRootComps(const Handle_IFSelect_SelectRootComps &aHandle); - Handle_IFSelect_SelectRootComps(const IFSelect_SelectRootComps *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectRootComps DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectRootComps { - IFSelect_SelectRootComps* _get_reference() { - return (IFSelect_SelectRootComps*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectRootComps { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectRootComps) %extend IFSelect_SelectRootComps { %pythoncode { @@ -11610,51 +8692,7 @@ class IFSelect_SelectRoots : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectRoots { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectRoots(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectRoots::Handle_IFSelect_SelectRoots %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectRoots; -class Handle_IFSelect_SelectRoots : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectRoots(); - Handle_IFSelect_SelectRoots(const Handle_IFSelect_SelectRoots &aHandle); - Handle_IFSelect_SelectRoots(const IFSelect_SelectRoots *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectRoots DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectRoots { - IFSelect_SelectRoots* _get_reference() { - return (IFSelect_SelectRoots*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectRoots { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectRoots) %extend IFSelect_SelectRoots { %pythoncode { @@ -11715,51 +8753,7 @@ class IFSelect_SelectSent : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectSent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectSent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectSent::Handle_IFSelect_SelectSent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectSent; -class Handle_IFSelect_SelectSent : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectSent(); - Handle_IFSelect_SelectSent(const Handle_IFSelect_SelectSent &aHandle); - Handle_IFSelect_SelectSent(const IFSelect_SelectSent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectSent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectSent { - IFSelect_SelectSent* _get_reference() { - return (IFSelect_SelectSent*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectSent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectSent) %extend IFSelect_SelectSent { %pythoncode { @@ -11862,51 +8856,7 @@ class IFSelect_SelectSignature : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectSignature { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectSignature(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectSignature::Handle_IFSelect_SelectSignature %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectSignature; -class Handle_IFSelect_SelectSignature : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectSignature(); - Handle_IFSelect_SelectSignature(const Handle_IFSelect_SelectSignature &aHandle); - Handle_IFSelect_SelectSignature(const IFSelect_SelectSignature *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectSignature DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectSignature { - IFSelect_SelectSignature* _get_reference() { - return (IFSelect_SelectSignature*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectSignature { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectSignature) %extend IFSelect_SelectSignature { %pythoncode { @@ -11971,51 +8921,7 @@ class IFSelect_SelectSignedShared : public IFSelect_SelectExplore { }; -%extend IFSelect_SelectSignedShared { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectSignedShared(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectSignedShared::Handle_IFSelect_SelectSignedShared %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectSignedShared; -class Handle_IFSelect_SelectSignedShared : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_IFSelect_SelectSignedShared(); - Handle_IFSelect_SelectSignedShared(const Handle_IFSelect_SelectSignedShared &aHandle); - Handle_IFSelect_SelectSignedShared(const IFSelect_SelectSignedShared *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectSignedShared DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectSignedShared { - IFSelect_SelectSignedShared* _get_reference() { - return (IFSelect_SelectSignedShared*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectSignedShared { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectSignedShared) %extend IFSelect_SelectSignedShared { %pythoncode { @@ -12080,51 +8986,7 @@ class IFSelect_SelectSignedSharing : public IFSelect_SelectExplore { }; -%extend IFSelect_SelectSignedSharing { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectSignedSharing(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectSignedSharing::Handle_IFSelect_SelectSignedSharing %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectSignedSharing; -class Handle_IFSelect_SelectSignedSharing : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_IFSelect_SelectSignedSharing(); - Handle_IFSelect_SelectSignedSharing(const Handle_IFSelect_SelectSignedSharing &aHandle); - Handle_IFSelect_SelectSignedSharing(const IFSelect_SelectSignedSharing *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectSignedSharing DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectSignedSharing { - IFSelect_SelectSignedSharing* _get_reference() { - return (IFSelect_SelectSignedSharing*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectSignedSharing { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectSignedSharing) %extend IFSelect_SelectSignedSharing { %pythoncode { @@ -12161,51 +9023,7 @@ class IFSelect_SelectUnknownEntities : public IFSelect_SelectExtract { }; -%extend IFSelect_SelectUnknownEntities { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectUnknownEntities(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectUnknownEntities::Handle_IFSelect_SelectUnknownEntities %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectUnknownEntities; -class Handle_IFSelect_SelectUnknownEntities : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_IFSelect_SelectUnknownEntities(); - Handle_IFSelect_SelectUnknownEntities(const Handle_IFSelect_SelectUnknownEntities &aHandle); - Handle_IFSelect_SelectUnknownEntities(const IFSelect_SelectUnknownEntities *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectUnknownEntities DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectUnknownEntities { - IFSelect_SelectUnknownEntities* _get_reference() { - return (IFSelect_SelectUnknownEntities*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectUnknownEntities { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectUnknownEntities) %extend IFSelect_SelectUnknownEntities { %pythoncode { @@ -12224,51 +9042,7 @@ class IFSelect_SelectIncorrectEntities : public IFSelect_SelectFlag { }; -%extend IFSelect_SelectIncorrectEntities { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectIncorrectEntities(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectIncorrectEntities::Handle_IFSelect_SelectIncorrectEntities %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectIncorrectEntities; -class Handle_IFSelect_SelectIncorrectEntities : public Handle_IFSelect_SelectFlag { - - public: - // constructors - Handle_IFSelect_SelectIncorrectEntities(); - Handle_IFSelect_SelectIncorrectEntities(const Handle_IFSelect_SelectIncorrectEntities &aHandle); - Handle_IFSelect_SelectIncorrectEntities(const IFSelect_SelectIncorrectEntities *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectIncorrectEntities DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectIncorrectEntities { - IFSelect_SelectIncorrectEntities* _get_reference() { - return (IFSelect_SelectIncorrectEntities*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectIncorrectEntities { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectIncorrectEntities) %extend IFSelect_SelectIncorrectEntities { %pythoncode { @@ -12315,51 +9089,7 @@ class IFSelect_SelectType : public IFSelect_SelectAnyType { }; -%extend IFSelect_SelectType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IFSelect_SelectType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IFSelect_SelectType::Handle_IFSelect_SelectType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IFSelect_SelectType; -class Handle_IFSelect_SelectType : public Handle_IFSelect_SelectAnyType { - - public: - // constructors - Handle_IFSelect_SelectType(); - Handle_IFSelect_SelectType(const Handle_IFSelect_SelectType &aHandle); - Handle_IFSelect_SelectType(const IFSelect_SelectType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IFSelect_SelectType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IFSelect_SelectType { - IFSelect_SelectType* _get_reference() { - return (IFSelect_SelectType*)$self->Access(); - } -}; - -%extend Handle_IFSelect_SelectType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IFSelect_SelectType) %extend IFSelect_SelectType { %pythoncode { diff --git a/src/SWIG_files/wrapper/IGESCAFControl.i b/src/SWIG_files/wrapper/IGESCAFControl.i index 765e1d61c..cd8b6aa22 100644 --- a/src/SWIG_files/wrapper/IGESCAFControl.i +++ b/src/SWIG_files/wrapper/IGESCAFControl.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define IGESCAFCONTROLDOCSTRING -"No docstring provided." +"Provides high-level API to translate IGES file +to and from DECAF document +" %enddef %module (package="OCC.Core", docstring=IGESCAFCONTROLDOCSTRING) IGESCAFControl @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IGESCAFControl_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(igescafcontrol) IGESCAFControl; class IGESCAFControl { public: diff --git a/src/SWIG_files/wrapper/IGESCAFControl_headers.i b/src/SWIG_files/wrapper/IGESCAFControl_headers.i index 62c7be3ac..2c4bbad81 100644 --- a/src/SWIG_files/wrapper/IGESCAFControl_headers.i +++ b/src/SWIG_files/wrapper/IGESCAFControl_headers.i @@ -253,6 +253,505 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/IGESControl.i b/src/SWIG_files/wrapper/IGESControl.i index d6b4965c4..974673678 100644 --- a/src/SWIG_files/wrapper/IGESControl.i +++ b/src/SWIG_files/wrapper/IGESControl.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define IGESCONTROLDOCSTRING -"No docstring provided." +"-Purpose : This package provide external access and control to use IGES +See also IGESToBRep for reading IGES to Shapes +" %enddef %module (package="OCC.Core", docstring=IGESCONTROLDOCSTRING) IGESControl @@ -34,31 +36,23 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IGESControl_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(IGESControl_ActorWrite) +%wrap_handle(IGESControl_AlgoContainer) +%wrap_handle(IGESControl_Controller) +%wrap_handle(IGESControl_IGESBoundary) +%wrap_handle(IGESControl_ToolContainer) + %nodefaultctor IGESControl_ActorWrite; class IGESControl_ActorWrite : public Transfer_ActorOfFinderProcess { public: @@ -87,51 +81,7 @@ class IGESControl_ActorWrite : public Transfer_ActorOfFinderProcess { }; -%extend IGESControl_ActorWrite { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IGESControl_ActorWrite(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IGESControl_ActorWrite::Handle_IGESControl_ActorWrite %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IGESControl_ActorWrite; -class Handle_IGESControl_ActorWrite : public Handle_Transfer_ActorOfFinderProcess { - - public: - // constructors - Handle_IGESControl_ActorWrite(); - Handle_IGESControl_ActorWrite(const Handle_IGESControl_ActorWrite &aHandle); - Handle_IGESControl_ActorWrite(const IGESControl_ActorWrite *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IGESControl_ActorWrite DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IGESControl_ActorWrite { - IGESControl_ActorWrite* _get_reference() { - return (IGESControl_ActorWrite*)$self->Access(); - } -}; - -%extend Handle_IGESControl_ActorWrite { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IGESControl_ActorWrite) %extend IGESControl_ActorWrite { %pythoncode { @@ -150,51 +100,7 @@ class IGESControl_AlgoContainer : public IGESToBRep_AlgoContainer { }; -%extend IGESControl_AlgoContainer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IGESControl_AlgoContainer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IGESControl_AlgoContainer::Handle_IGESControl_AlgoContainer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IGESControl_AlgoContainer; -class Handle_IGESControl_AlgoContainer : public Handle_IGESToBRep_AlgoContainer { - - public: - // constructors - Handle_IGESControl_AlgoContainer(); - Handle_IGESControl_AlgoContainer(const Handle_IGESControl_AlgoContainer &aHandle); - Handle_IGESControl_AlgoContainer(const IGESControl_AlgoContainer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IGESControl_AlgoContainer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IGESControl_AlgoContainer { - IGESControl_AlgoContainer* _get_reference() { - return (IGESControl_AlgoContainer*)$self->Access(); - } -}; - -%extend Handle_IGESControl_AlgoContainer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IGESControl_AlgoContainer) %extend IGESControl_AlgoContainer { %pythoncode { @@ -255,51 +161,7 @@ class IGESControl_Controller : public XSControl_Controller { }; -%extend IGESControl_Controller { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IGESControl_Controller(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IGESControl_Controller::Handle_IGESControl_Controller %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IGESControl_Controller; -class Handle_IGESControl_Controller : public Handle_XSControl_Controller { - - public: - // constructors - Handle_IGESControl_Controller(); - Handle_IGESControl_Controller(const Handle_IGESControl_Controller &aHandle); - Handle_IGESControl_Controller(const IGESControl_Controller *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IGESControl_Controller DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IGESControl_Controller { - IGESControl_Controller* _get_reference() { - return (IGESControl_Controller*)$self->Access(); - } -}; - -%extend Handle_IGESControl_Controller { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IGESControl_Controller) %extend IGESControl_Controller { %pythoncode { @@ -340,51 +202,7 @@ class IGESControl_IGESBoundary : public IGESToBRep_IGESBoundary { }; -%extend IGESControl_IGESBoundary { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IGESControl_IGESBoundary(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IGESControl_IGESBoundary::Handle_IGESControl_IGESBoundary %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IGESControl_IGESBoundary; -class Handle_IGESControl_IGESBoundary : public Handle_IGESToBRep_IGESBoundary { - - public: - // constructors - Handle_IGESControl_IGESBoundary(); - Handle_IGESControl_IGESBoundary(const Handle_IGESControl_IGESBoundary &aHandle); - Handle_IGESControl_IGESBoundary(const IGESControl_IGESBoundary *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IGESControl_IGESBoundary DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IGESControl_IGESBoundary { - IGESControl_IGESBoundary* _get_reference() { - return (IGESControl_IGESBoundary*)$self->Access(); - } -}; - -%extend Handle_IGESControl_IGESBoundary { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IGESControl_IGESBoundary) %extend IGESControl_IGESBoundary { %pythoncode { @@ -470,51 +288,7 @@ class IGESControl_ToolContainer : public IGESToBRep_ToolContainer { }; -%extend IGESControl_ToolContainer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IGESControl_ToolContainer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IGESControl_ToolContainer::Handle_IGESControl_ToolContainer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IGESControl_ToolContainer; -class Handle_IGESControl_ToolContainer : public Handle_IGESToBRep_ToolContainer { - - public: - // constructors - Handle_IGESControl_ToolContainer(); - Handle_IGESControl_ToolContainer(const Handle_IGESControl_ToolContainer &aHandle); - Handle_IGESControl_ToolContainer(const IGESControl_ToolContainer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IGESControl_ToolContainer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IGESControl_ToolContainer { - IGESControl_ToolContainer* _get_reference() { - return (IGESControl_ToolContainer*)$self->Access(); - } -}; - -%extend Handle_IGESControl_ToolContainer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IGESControl_ToolContainer) %extend IGESControl_ToolContainer { %pythoncode { diff --git a/src/SWIG_files/wrapper/IGESControl_headers.i b/src/SWIG_files/wrapper/IGESControl_headers.i index 0f3cbf920..0b3c28f5f 100644 --- a/src/SWIG_files/wrapper/IGESControl_headers.i +++ b/src/SWIG_files/wrapper/IGESControl_headers.i @@ -25,6 +25,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -655,6 +699,7 @@ along with pythonOCC. If not, see . #include #include %}; +%import Transfer.i %import Standard.i %import XSControl.i %import Interface.i diff --git a/src/SWIG_files/wrapper/IVtk.i b/src/SWIG_files/wrapper/IVtk.i index e2db50667..62c0f546b 100644 --- a/src/SWIG_files/wrapper/IVtk.i +++ b/src/SWIG_files/wrapper/IVtk.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IVtk_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/IVtkOCC.i b/src/SWIG_files/wrapper/IVtkOCC.i index 5f74d0fa3..f9c8f7deb 100644 --- a/src/SWIG_files/wrapper/IVtkOCC.i +++ b/src/SWIG_files/wrapper/IVtkOCC.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IVtkOCC_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/IVtkTools.i b/src/SWIG_files/wrapper/IVtkTools.i index b4d8fe86c..05a042470 100644 --- a/src/SWIG_files/wrapper/IVtkTools.i +++ b/src/SWIG_files/wrapper/IVtkTools.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IVtkTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/IVtkVTK.i b/src/SWIG_files/wrapper/IVtkVTK.i index 7ea66ba96..5839e2e36 100644 --- a/src/SWIG_files/wrapper/IVtkVTK.i +++ b/src/SWIG_files/wrapper/IVtkVTK.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IVtkVTK_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/Image.i b/src/SWIG_files/wrapper/Image.i index a2cad509d..d734b9752 100644 --- a/src/SWIG_files/wrapper/Image.i +++ b/src/SWIG_files/wrapper/Image.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define IMAGEDOCSTRING -"No docstring provided." +"The package Image provides image manipulation classes. +" %enddef %module (package="OCC.Core", docstring=IMAGEDOCSTRING) Image @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Image_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Handle_Image_PixMap Image_PixMap_Handle; /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/IncludeLibrary.i b/src/SWIG_files/wrapper/IncludeLibrary.i index d9fb6dad1..e85251b6c 100644 --- a/src/SWIG_files/wrapper/IncludeLibrary.i +++ b/src/SWIG_files/wrapper/IncludeLibrary.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IncludeLibrary_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/IntAna.i b/src/SWIG_files/wrapper/IntAna.i index d6ba116fa..356ff2b22 100644 --- a/src/SWIG_files/wrapper/IntAna.i +++ b/src/SWIG_files/wrapper/IntAna.i @@ -18,7 +18,27 @@ along with pythonOCC. If not, see . */ %define INTANADOCSTRING -"No docstring provided." +"This package provides the intersections between : + +- Natural Quadrics when the result is a conic (QuadQuadGeo) + +- A natural Quadric and a Quadric defined by its Coefficients +(IntQuadQuad) + +- 3 Pln (Int3Pln) + +- a Line and a Torus (IntLinTorus) + +- a Conic from gp and a Quadric defined by its Coefficients +(IntConicQuad) + + +-Level: Public + +All the methods of the classes of this package are public. + + +" %enddef %module (package="OCC.Core", docstring=INTANADOCSTRING) IntAna @@ -34,25 +54,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntAna_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -72,6 +78,8 @@ enum IntAna_ResultType { /* end public enums declaration */ +%wrap_handle(IntAna_ListNodeOfListOfCurve) + %nodefaultctor IntAna_Curve; class IntAna_Curve { public: @@ -912,51 +920,7 @@ class IntAna_ListNodeOfListOfCurve : public TCollection_MapNode { }; -%extend IntAna_ListNodeOfListOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntAna_ListNodeOfListOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntAna_ListNodeOfListOfCurve::Handle_IntAna_ListNodeOfListOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntAna_ListNodeOfListOfCurve; -class Handle_IntAna_ListNodeOfListOfCurve : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntAna_ListNodeOfListOfCurve(); - Handle_IntAna_ListNodeOfListOfCurve(const Handle_IntAna_ListNodeOfListOfCurve &aHandle); - Handle_IntAna_ListNodeOfListOfCurve(const IntAna_ListNodeOfListOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntAna_ListNodeOfListOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntAna_ListNodeOfListOfCurve { - IntAna_ListNodeOfListOfCurve* _get_reference() { - return (IntAna_ListNodeOfListOfCurve*)$self->Access(); - } -}; - -%extend Handle_IntAna_ListNodeOfListOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntAna_ListNodeOfListOfCurve) %extend IntAna_ListNodeOfListOfCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntAna2d.i b/src/SWIG_files/wrapper/IntAna2d.i index dccd64af3..55b1e2fd0 100644 --- a/src/SWIG_files/wrapper/IntAna2d.i +++ b/src/SWIG_files/wrapper/IntAna2d.i @@ -18,7 +18,15 @@ along with pythonOCC. If not, see . */ %define INTANA2DDOCSTRING -"No docstring provided." +" +This package defines the intersection between two elements of +the geometric processor : Line, Circle, Ellipse, Parabola and +Hyperbola; One of these elements is known with his real type, +the other one is known by an implicit quadratic equation (see +class Conic). +A particular case has been made for the intersection between +two Lin2d, two Circ2d, a Lin2d and a Circ2d. +" %enddef %module (package="OCC.Core", docstring=INTANA2DDOCSTRING) IntAna2d @@ -34,31 +42,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntAna2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor IntAna2d_AnaIntersection; class IntAna2d_AnaIntersection { public: diff --git a/src/SWIG_files/wrapper/IntCurve.i b/src/SWIG_files/wrapper/IntCurve.i index 08d2a2926..11694bbfb 100644 --- a/src/SWIG_files/wrapper/IntCurve.i +++ b/src/SWIG_files/wrapper/IntCurve.i @@ -18,7 +18,50 @@ along with pythonOCC. If not, see . */ %define INTCURVEDOCSTRING -"No docstring provided." +"This package provides algorithmes to intersect 2D curves, +with domains. + +class IntConicConic : Algorithm used to intersect 2 conics +from gp with domains. + +class IntConicCurveGen : Generic algorithm used to intersect +a conic from gp, and a parametrised +curve. +The parametrised Curve can +not be a Composite curve and +can not be a conic. + +class IntCurveCurveGen : Generic algorithm used to intersect 2 +curves. The resources on a curve are +discribed in the class CurveTool. + +class UserIntConicCurveGen: Generic algorithm used to +intersect a Conic from gp +and a parametrised curve. +This curve can be either a +composite curve or a conic. + + + +-Level: Advanced + +The Classes are Internal + +The Classe is Advanced + + + + +" %enddef %module (package="OCC.Core", docstring=INTCURVEDOCSTRING) IntCurve @@ -34,31 +77,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntCurve_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor IntCurve_IConicTool; class IntCurve_IConicTool { public: diff --git a/src/SWIG_files/wrapper/IntCurveSurface.i b/src/SWIG_files/wrapper/IntCurveSurface.i index 7c6b2398e..5e352465c 100644 --- a/src/SWIG_files/wrapper/IntCurveSurface.i +++ b/src/SWIG_files/wrapper/IntCurveSurface.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define INTCURVESURFACEDOCSTRING -"No docstring provided." +"This package provides algorithmes to intersect a Curve +and a Surface. +Level: Internal + +All the methods of the classes of this package are Internal. +except the methods of the classes + + +" %enddef %module (package="OCC.Core", docstring=INTCURVESURFACEDOCSTRING) IntCurveSurface @@ -34,25 +44,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntCurveSurface_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +61,9 @@ enum IntCurveSurface_TransitionOnCurve { /* end public enums declaration */ +%wrap_handle(IntCurveSurface_SequenceNodeOfSequenceOfPnt) +%wrap_handle(IntCurveSurface_SequenceNodeOfSequenceOfSeg) + %nodefaultctor IntCurveSurface_Intersection; class IntCurveSurface_Intersection { public: @@ -300,51 +299,7 @@ class IntCurveSurface_SequenceNodeOfSequenceOfPnt : public TCollection_SeqNode { }; -%extend IntCurveSurface_SequenceNodeOfSequenceOfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt::Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt; -class Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt(); - Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt(const Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt &aHandle); - Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt(const IntCurveSurface_SequenceNodeOfSequenceOfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt { - IntCurveSurface_SequenceNodeOfSequenceOfPnt* _get_reference() { - return (IntCurveSurface_SequenceNodeOfSequenceOfPnt*)$self->Access(); - } -}; - -%extend Handle_IntCurveSurface_SequenceNodeOfSequenceOfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntCurveSurface_SequenceNodeOfSequenceOfPnt) %extend IntCurveSurface_SequenceNodeOfSequenceOfPnt { %pythoncode { @@ -371,51 +326,7 @@ class IntCurveSurface_SequenceNodeOfSequenceOfSeg : public TCollection_SeqNode { }; -%extend IntCurveSurface_SequenceNodeOfSequenceOfSeg { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg::Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg; -class Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg(); - Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg(const Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg &aHandle); - Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg(const IntCurveSurface_SequenceNodeOfSequenceOfSeg *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg { - IntCurveSurface_SequenceNodeOfSequenceOfSeg* _get_reference() { - return (IntCurveSurface_SequenceNodeOfSequenceOfSeg*)$self->Access(); - } -}; - -%extend Handle_IntCurveSurface_SequenceNodeOfSequenceOfSeg { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntCurveSurface_SequenceNodeOfSequenceOfSeg) %extend IntCurveSurface_SequenceNodeOfSequenceOfSeg { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntCurvesFace.i b/src/SWIG_files/wrapper/IntCurvesFace.i index a78091959..361c43ecb 100644 --- a/src/SWIG_files/wrapper/IntCurvesFace.i +++ b/src/SWIG_files/wrapper/IntCurvesFace.i @@ -18,7 +18,26 @@ along with pythonOCC. If not, see . */ %define INTCURVESFACEDOCSTRING -"No docstring provided." +" +This package provide algorithms to compute the intersection points +between a Face [a Shape] and a set of curves (The face [shape] is +loaded, then for each curve is given to compute the intersection). + +Intersector [ ShapeIntersector ] can be used when the caller have +to intersect more than one curve with the face [the shape]. + + +If there is only one curve, or if the face has no restrictions, +someother algorithms can be called. + +see for example the packages : + +** BRepIntCurveSurface : ( One Curve <-> One Shape ) +** IntCurveSurface : ( One Curve <-> One Surface) + + + +" %enddef %module (package="OCC.Core", docstring=INTCURVESFACEDOCSTRING) IntCurvesFace @@ -34,31 +53,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntCurvesFace_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor IntCurvesFace_Intersector; class IntCurvesFace_Intersector { public: diff --git a/src/SWIG_files/wrapper/IntCurvesFace_headers.i b/src/SWIG_files/wrapper/IntCurvesFace_headers.i index 6b1a3104e..b5dbb4b19 100644 --- a/src/SWIG_files/wrapper/IntCurvesFace_headers.i +++ b/src/SWIG_files/wrapper/IntCurvesFace_headers.i @@ -239,6 +239,106 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/IntImp.i b/src/SWIG_files/wrapper/IntImp.i index 15fe5c7c5..aed36020f 100644 --- a/src/SWIG_files/wrapper/IntImp.i +++ b/src/SWIG_files/wrapper/IntImp.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define INTIMPDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=INTIMPDOCSTRING) IntImp @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntImp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,3 +53,4 @@ enum IntImp_ConstIsoparametric { /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/IntImpParGen.i b/src/SWIG_files/wrapper/IntImpParGen.i index 87dcc81da..d74542093 100644 --- a/src/SWIG_files/wrapper/IntImpParGen.i +++ b/src/SWIG_files/wrapper/IntImpParGen.i @@ -18,7 +18,15 @@ along with pythonOCC. If not, see . */ %define INTIMPPARGENDOCSTRING -"No docstring provided." +" +Gives a generic algorithm to intersect Implicit Curves +and Bounded Parametric Curves. + +Level: Internal + +All the methods of all the classes are Internal. + +" %enddef %module (package="OCC.Core", docstring=INTIMPPARGENDOCSTRING) IntImpParGen @@ -34,31 +42,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntImpParGen_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(intimppargen) IntImpParGen; class IntImpParGen { public: diff --git a/src/SWIG_files/wrapper/IntPatch.i b/src/SWIG_files/wrapper/IntPatch.i index 960386a39..9693cc115 100644 --- a/src/SWIG_files/wrapper/IntPatch.i +++ b/src/SWIG_files/wrapper/IntPatch.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define INTPATCHDOCSTRING -"No docstring provided." +"Intersection between two patches. +The class PatchIntersection implements the algorithmes +of intersection. +The classes IntPoint, PointOnDomain, Line, ILin, a.s.o... +describe the results of the algorithmes. + +-Level: Internal + +All the methods of the classes of this package are Internal. + +" %enddef %module (package="OCC.Core", docstring=INTPATCHDOCSTRING) IntPatch @@ -34,25 +44,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntPatch_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Intf_InterferencePolygon2d IntPatch_SearchPnt; /* end typedefs declaration */ @@ -71,6 +67,19 @@ enum IntPatch_IType { /* end public enums declaration */ +%wrap_handle(IntPatch_Line) +%wrap_handle(IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking) +%wrap_handle(IntPatch_SequenceNodeOfSequenceOfLine) +%wrap_handle(IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds) +%wrap_handle(IntPatch_SequenceNodeOfSequenceOfPoint) +%wrap_handle(IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds) +%wrap_handle(IntPatch_TheIWLineOfTheIWalking) +%wrap_handle(IntPatch_ALine) +%wrap_handle(IntPatch_GLine) +%wrap_handle(IntPatch_PointLine) +%wrap_handle(IntPatch_RLine) +%wrap_handle(IntPatch_WLine) + %nodefaultctor IntPatch_ALineToWLine; class IntPatch_ALineToWLine { public: @@ -1420,51 +1429,7 @@ class IntPatch_Line : public MMgt_TShared { }; -%extend IntPatch_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_Line::Handle_IntPatch_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_Line; -class Handle_IntPatch_Line : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IntPatch_Line(); - Handle_IntPatch_Line(const Handle_IntPatch_Line &aHandle); - Handle_IntPatch_Line(const IntPatch_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_Line { - IntPatch_Line* _get_reference() { - return (IntPatch_Line*)$self->Access(); - } -}; - -%extend Handle_IntPatch_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_Line) %extend IntPatch_Line { %pythoncode { @@ -2304,51 +2269,7 @@ class IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking : public TCollection_ }; -%extend IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking::Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking; -class Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking(); - Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking(const Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking &aHandle); - Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking(const IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking { - IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking* _get_reference() { - return (IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking*)$self->Access(); - } -}; - -%extend Handle_IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking) %extend IntPatch_SequenceNodeOfSequenceOfIWLineOfTheIWalking { %pythoncode { @@ -2375,51 +2296,7 @@ class IntPatch_SequenceNodeOfSequenceOfLine : public TCollection_SeqNode { }; -%extend IntPatch_SequenceNodeOfSequenceOfLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_SequenceNodeOfSequenceOfLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_SequenceNodeOfSequenceOfLine::Handle_IntPatch_SequenceNodeOfSequenceOfLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_SequenceNodeOfSequenceOfLine; -class Handle_IntPatch_SequenceNodeOfSequenceOfLine : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntPatch_SequenceNodeOfSequenceOfLine(); - Handle_IntPatch_SequenceNodeOfSequenceOfLine(const Handle_IntPatch_SequenceNodeOfSequenceOfLine &aHandle); - Handle_IntPatch_SequenceNodeOfSequenceOfLine(const IntPatch_SequenceNodeOfSequenceOfLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_SequenceNodeOfSequenceOfLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_SequenceNodeOfSequenceOfLine { - IntPatch_SequenceNodeOfSequenceOfLine* _get_reference() { - return (IntPatch_SequenceNodeOfSequenceOfLine*)$self->Access(); - } -}; - -%extend Handle_IntPatch_SequenceNodeOfSequenceOfLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_SequenceNodeOfSequenceOfLine) %extend IntPatch_SequenceNodeOfSequenceOfLine { %pythoncode { @@ -2446,51 +2323,7 @@ class IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds : public TCollect }; -%extend IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds::Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds; -class Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds(); - Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds(const Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds &aHandle); - Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds(const IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds { - IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds* _get_reference() { - return (IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds*)$self->Access(); - } -}; - -%extend Handle_IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds) %extend IntPatch_SequenceNodeOfSequenceOfPathPointOfTheSOnBounds { %pythoncode { @@ -2517,51 +2350,7 @@ class IntPatch_SequenceNodeOfSequenceOfPoint : public TCollection_SeqNode { }; -%extend IntPatch_SequenceNodeOfSequenceOfPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_SequenceNodeOfSequenceOfPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_SequenceNodeOfSequenceOfPoint::Handle_IntPatch_SequenceNodeOfSequenceOfPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_SequenceNodeOfSequenceOfPoint; -class Handle_IntPatch_SequenceNodeOfSequenceOfPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntPatch_SequenceNodeOfSequenceOfPoint(); - Handle_IntPatch_SequenceNodeOfSequenceOfPoint(const Handle_IntPatch_SequenceNodeOfSequenceOfPoint &aHandle); - Handle_IntPatch_SequenceNodeOfSequenceOfPoint(const IntPatch_SequenceNodeOfSequenceOfPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_SequenceNodeOfSequenceOfPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_SequenceNodeOfSequenceOfPoint { - IntPatch_SequenceNodeOfSequenceOfPoint* _get_reference() { - return (IntPatch_SequenceNodeOfSequenceOfPoint*)$self->Access(); - } -}; - -%extend Handle_IntPatch_SequenceNodeOfSequenceOfPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_SequenceNodeOfSequenceOfPoint) %extend IntPatch_SequenceNodeOfSequenceOfPoint { %pythoncode { @@ -2588,51 +2377,7 @@ class IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds : public TCollectio }; -%extend IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds::Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds; -class Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds(); - Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds(const Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds &aHandle); - Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds(const IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds { - IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds* _get_reference() { - return (IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds*)$self->Access(); - } -}; - -%extend Handle_IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds) %extend IntPatch_SequenceNodeOfSequenceOfSegmentOfTheSOnBounds { %pythoncode { @@ -3524,51 +3269,7 @@ class IntPatch_TheIWLineOfTheIWalking : public MMgt_TShared { }; -%extend IntPatch_TheIWLineOfTheIWalking { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_TheIWLineOfTheIWalking(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_TheIWLineOfTheIWalking::Handle_IntPatch_TheIWLineOfTheIWalking %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_TheIWLineOfTheIWalking; -class Handle_IntPatch_TheIWLineOfTheIWalking : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IntPatch_TheIWLineOfTheIWalking(); - Handle_IntPatch_TheIWLineOfTheIWalking(const Handle_IntPatch_TheIWLineOfTheIWalking &aHandle); - Handle_IntPatch_TheIWLineOfTheIWalking(const IntPatch_TheIWLineOfTheIWalking *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_TheIWLineOfTheIWalking DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_TheIWLineOfTheIWalking { - IntPatch_TheIWLineOfTheIWalking* _get_reference() { - return (IntPatch_TheIWLineOfTheIWalking*)$self->Access(); - } -}; - -%extend Handle_IntPatch_TheIWLineOfTheIWalking { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_TheIWLineOfTheIWalking) %extend IntPatch_TheIWLineOfTheIWalking { %pythoncode { @@ -4199,51 +3900,7 @@ class IntPatch_ALine : public IntPatch_Line { }; -%extend IntPatch_ALine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_ALine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_ALine::Handle_IntPatch_ALine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_ALine; -class Handle_IntPatch_ALine : public Handle_IntPatch_Line { - - public: - // constructors - Handle_IntPatch_ALine(); - Handle_IntPatch_ALine(const Handle_IntPatch_ALine &aHandle); - Handle_IntPatch_ALine(const IntPatch_ALine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_ALine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_ALine { - IntPatch_ALine* _get_reference() { - return (IntPatch_ALine*)$self->Access(); - } -}; - -%extend Handle_IntPatch_ALine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_ALine) %extend IntPatch_ALine { %pythoncode { @@ -4550,51 +4207,7 @@ class IntPatch_GLine : public IntPatch_Line { }; -%extend IntPatch_GLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_GLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_GLine::Handle_IntPatch_GLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_GLine; -class Handle_IntPatch_GLine : public Handle_IntPatch_Line { - - public: - // constructors - Handle_IntPatch_GLine(); - Handle_IntPatch_GLine(const Handle_IntPatch_GLine &aHandle); - Handle_IntPatch_GLine(const IntPatch_GLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_GLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_GLine { - IntPatch_GLine* _get_reference() { - return (IntPatch_GLine*)$self->Access(); - } -}; - -%extend Handle_IntPatch_GLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_GLine) %extend IntPatch_GLine { %pythoncode { @@ -4621,51 +4234,7 @@ class IntPatch_PointLine : public IntPatch_Line { }; -%extend IntPatch_PointLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_PointLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_PointLine::Handle_IntPatch_PointLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_PointLine; -class Handle_IntPatch_PointLine : public Handle_IntPatch_Line { - - public: - // constructors - Handle_IntPatch_PointLine(); - Handle_IntPatch_PointLine(const Handle_IntPatch_PointLine &aHandle); - Handle_IntPatch_PointLine(const IntPatch_PointLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_PointLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_PointLine { - IntPatch_PointLine* _get_reference() { - return (IntPatch_PointLine*)$self->Access(); - } -}; - -%extend Handle_IntPatch_PointLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_PointLine) %extend IntPatch_PointLine { %pythoncode { @@ -4976,51 +4545,7 @@ class IntPatch_RLine : public IntPatch_PointLine { }; -%extend IntPatch_RLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_RLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_RLine::Handle_IntPatch_RLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_RLine; -class Handle_IntPatch_RLine : public Handle_IntPatch_PointLine { - - public: - // constructors - Handle_IntPatch_RLine(); - Handle_IntPatch_RLine(const Handle_IntPatch_RLine &aHandle); - Handle_IntPatch_RLine(const IntPatch_RLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_RLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_RLine { - IntPatch_RLine* _get_reference() { - return (IntPatch_RLine*)$self->Access(); - } -}; - -%extend Handle_IntPatch_RLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_RLine) %extend IntPatch_RLine { %pythoncode { @@ -5287,51 +4812,7 @@ class IntPatch_WLine : public IntPatch_PointLine { }; -%extend IntPatch_WLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPatch_WLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPatch_WLine::Handle_IntPatch_WLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPatch_WLine; -class Handle_IntPatch_WLine : public Handle_IntPatch_PointLine { - - public: - // constructors - Handle_IntPatch_WLine(); - Handle_IntPatch_WLine(const Handle_IntPatch_WLine &aHandle); - Handle_IntPatch_WLine(const IntPatch_WLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPatch_WLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPatch_WLine { - IntPatch_WLine* _get_reference() { - return (IntPatch_WLine*)$self->Access(); - } -}; - -%extend Handle_IntPatch_WLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPatch_WLine) %extend IntPatch_WLine { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntPoly.i b/src/SWIG_files/wrapper/IntPoly.i index 4004c3855..5777456e4 100644 --- a/src/SWIG_files/wrapper/IntPoly.i +++ b/src/SWIG_files/wrapper/IntPoly.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntPoly_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/IntPolyh.i b/src/SWIG_files/wrapper/IntPolyh.i index 7954f1c11..6f2c274fc 100644 --- a/src/SWIG_files/wrapper/IntPolyh.i +++ b/src/SWIG_files/wrapper/IntPolyh.i @@ -18,7 +18,35 @@ along with pythonOCC. If not, see . */ %define INTPOLYHDOCSTRING -"No docstring provided." +"This package provides algorithms to compute +starting points for the surface surface +intersection packages. Those starting points are +used if the two surfaces are bi-parametric +surfaces (bezier, nurbs, algorithm surfaces ...) + +This package provides methods + +to compute meshes on the two surfaces. The meshes can +be refined if necessary. It is the major improvement +to the Intf package which gives the same kind of +ressources. + +to intersect the two meshes + +to give approximated starting-points. Those points are +organised in lines, when the points belong to a same +section line, or returned as isolated points when they +can neither define a new line nor be linked to an +existant line. + +A starting-point contains 3d information, parametric +ionformation and quality criterion. (i.e. X,Y,Z, U1,V1, +U2,V2, Incidence). Incidence is a real wich gives an +estimated angle between the two surfaces near the +intersection point. + + +" %enddef %module (package="OCC.Core", docstring=INTPOLYHDOCSTRING) IntPolyh @@ -34,25 +62,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntPolyh_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef IntPolyh_Array IntPolyh_ArrayOfEdges; typedef IntPolyh_Array IntPolyh_ArrayOfTriangles; @@ -67,6 +81,8 @@ typedef IntPolyh_Array IntPolyh_ArrayOfSectionLines; /* public enums */ /* end public enums declaration */ +%wrap_handle(IntPolyh_SequenceNodeOfSeqOfStartPoints) + %nodefaultctor IntPolyh_Couple; class IntPolyh_Couple { public: @@ -821,51 +837,7 @@ class IntPolyh_SequenceNodeOfSeqOfStartPoints : public TCollection_SeqNode { }; -%extend IntPolyh_SequenceNodeOfSeqOfStartPoints { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints::Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints; -class Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints(); - Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints(const Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints &aHandle); - Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints(const IntPolyh_SequenceNodeOfSeqOfStartPoints *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints { - IntPolyh_SequenceNodeOfSeqOfStartPoints* _get_reference() { - return (IntPolyh_SequenceNodeOfSeqOfStartPoints*)$self->Access(); - } -}; - -%extend Handle_IntPolyh_SequenceNodeOfSeqOfStartPoints { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntPolyh_SequenceNodeOfSeqOfStartPoints) %extend IntPolyh_SequenceNodeOfSeqOfStartPoints { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntRes2d.i b/src/SWIG_files/wrapper/IntRes2d.i index 40b2aa9a7..077a40216 100644 --- a/src/SWIG_files/wrapper/IntRes2d.i +++ b/src/SWIG_files/wrapper/IntRes2d.i @@ -18,7 +18,15 @@ along with pythonOCC. If not, see . */ %define INTRES2DDOCSTRING -"No docstring provided." +" +This package provides the definition of the results of +the intersection between 2D curves and the definition +of a domain on a 2D curve. +-Level: Public + +All the methods of all the classes of this package are public. + +" %enddef %module (package="OCC.Core", docstring=INTRES2DDOCSTRING) IntRes2d @@ -34,25 +42,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntRes2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -78,6 +72,9 @@ enum IntRes2d_TypeTrans { /* end public enums declaration */ +%wrap_handle(IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint) +%wrap_handle(IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment) + %nodefaultctor IntRes2d_Domain; class IntRes2d_Domain { public: @@ -548,51 +545,7 @@ class IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint : public TCollection_Se }; -%extend IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint::Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint; -class Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint(); - Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint(const Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint &aHandle); - Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint(const IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint { - IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint* _get_reference() { - return (IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint*)$self->Access(); - } -}; - -%extend Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint) %extend IntRes2d_SequenceNodeOfSequenceOfIntersectionPoint { %pythoncode { @@ -619,51 +572,7 @@ class IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment : public TCollection_ }; -%extend IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment::Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment; -class Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment(); - Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment(const Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment &aHandle); - Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment(const IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment { - IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment* _get_reference() { - return (IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment*)$self->Access(); - } -}; - -%extend Handle_IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment) %extend IntRes2d_SequenceNodeOfSequenceOfIntersectionSegment { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntStart.i b/src/SWIG_files/wrapper/IntStart.i index 5db601312..2a0503347 100644 --- a/src/SWIG_files/wrapper/IntStart.i +++ b/src/SWIG_files/wrapper/IntStart.i @@ -18,7 +18,16 @@ along with pythonOCC. If not, see . */ %define INTSTARTDOCSTRING -"No docstring provided." +"This package provides generic algorithms to +find specific points (points on boundaries +and points inside a surface) used as starting +points for marching algorithms. + +-Level: Internal + +All the methods of the classes of this package are Internal. + +" %enddef %module (package="OCC.Core", docstring=INTSTARTDOCSTRING) IntStart @@ -34,31 +43,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntStart_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(IntStart_SITopolTool) + %nodefaultctor IntStart_SITopolTool; class IntStart_SITopolTool : public MMgt_TShared { public: @@ -73,51 +70,7 @@ class IntStart_SITopolTool : public MMgt_TShared { }; -%extend IntStart_SITopolTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntStart_SITopolTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntStart_SITopolTool::Handle_IntStart_SITopolTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntStart_SITopolTool; -class Handle_IntStart_SITopolTool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IntStart_SITopolTool(); - Handle_IntStart_SITopolTool(const Handle_IntStart_SITopolTool &aHandle); - Handle_IntStart_SITopolTool(const IntStart_SITopolTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntStart_SITopolTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntStart_SITopolTool { - IntStart_SITopolTool* _get_reference() { - return (IntStart_SITopolTool*)$self->Access(); - } -}; - -%extend Handle_IntStart_SITopolTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntStart_SITopolTool) %extend IntStart_SITopolTool { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntSurf.i b/src/SWIG_files/wrapper/IntSurf.i index f7782fdb0..31c0736e2 100644 --- a/src/SWIG_files/wrapper/IntSurf.i +++ b/src/SWIG_files/wrapper/IntSurf.i @@ -18,7 +18,16 @@ along with pythonOCC. If not, see . */ %define INTSURFDOCSTRING -"No docstring provided." +"This package provides resources for +all the packages concerning the intersection +between surfaces. + +-Level: Internal + +All the methods of all the classes of this package are Internal. + + +" %enddef %module (package="OCC.Core", docstring=INTSURFDOCSTRING) IntSurf @@ -34,25 +43,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntSurf_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Handle_NCollection_BaseAllocator IntSurf_Allocator; typedef NCollection_Sequence IntSurf_SequenceOfPntOn2S; @@ -74,6 +69,12 @@ enum IntSurf_TypeTrans { /* end public enums declaration */ +%wrap_handle(IntSurf_LineOn2S) +%wrap_handle(IntSurf_ListNodeOfListOfPntOn2S) +%wrap_handle(IntSurf_SequenceNodeOfSequenceOfCouple) +%wrap_handle(IntSurf_SequenceNodeOfSequenceOfInteriorPoint) +%wrap_handle(IntSurf_SequenceNodeOfSequenceOfPathPoint) + %rename(intsurf) IntSurf; class IntSurf { public: @@ -355,51 +356,7 @@ class IntSurf_LineOn2S : public MMgt_TShared { }; -%extend IntSurf_LineOn2S { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntSurf_LineOn2S(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntSurf_LineOn2S::Handle_IntSurf_LineOn2S %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntSurf_LineOn2S; -class Handle_IntSurf_LineOn2S : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IntSurf_LineOn2S(); - Handle_IntSurf_LineOn2S(const Handle_IntSurf_LineOn2S &aHandle); - Handle_IntSurf_LineOn2S(const IntSurf_LineOn2S *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntSurf_LineOn2S DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntSurf_LineOn2S { - IntSurf_LineOn2S* _get_reference() { - return (IntSurf_LineOn2S*)$self->Access(); - } -}; - -%extend Handle_IntSurf_LineOn2S { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntSurf_LineOn2S) %extend IntSurf_LineOn2S { %pythoncode { @@ -463,51 +420,7 @@ class IntSurf_ListNodeOfListOfPntOn2S : public TCollection_MapNode { }; -%extend IntSurf_ListNodeOfListOfPntOn2S { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntSurf_ListNodeOfListOfPntOn2S(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntSurf_ListNodeOfListOfPntOn2S::Handle_IntSurf_ListNodeOfListOfPntOn2S %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntSurf_ListNodeOfListOfPntOn2S; -class Handle_IntSurf_ListNodeOfListOfPntOn2S : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntSurf_ListNodeOfListOfPntOn2S(); - Handle_IntSurf_ListNodeOfListOfPntOn2S(const Handle_IntSurf_ListNodeOfListOfPntOn2S &aHandle); - Handle_IntSurf_ListNodeOfListOfPntOn2S(const IntSurf_ListNodeOfListOfPntOn2S *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntSurf_ListNodeOfListOfPntOn2S DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntSurf_ListNodeOfListOfPntOn2S { - IntSurf_ListNodeOfListOfPntOn2S* _get_reference() { - return (IntSurf_ListNodeOfListOfPntOn2S*)$self->Access(); - } -}; - -%extend Handle_IntSurf_ListNodeOfListOfPntOn2S { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntSurf_ListNodeOfListOfPntOn2S) %extend IntSurf_ListNodeOfListOfPntOn2S { %pythoncode { @@ -1236,51 +1149,7 @@ class IntSurf_SequenceNodeOfSequenceOfCouple : public TCollection_SeqNode { }; -%extend IntSurf_SequenceNodeOfSequenceOfCouple { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntSurf_SequenceNodeOfSequenceOfCouple(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntSurf_SequenceNodeOfSequenceOfCouple::Handle_IntSurf_SequenceNodeOfSequenceOfCouple %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntSurf_SequenceNodeOfSequenceOfCouple; -class Handle_IntSurf_SequenceNodeOfSequenceOfCouple : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntSurf_SequenceNodeOfSequenceOfCouple(); - Handle_IntSurf_SequenceNodeOfSequenceOfCouple(const Handle_IntSurf_SequenceNodeOfSequenceOfCouple &aHandle); - Handle_IntSurf_SequenceNodeOfSequenceOfCouple(const IntSurf_SequenceNodeOfSequenceOfCouple *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntSurf_SequenceNodeOfSequenceOfCouple DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntSurf_SequenceNodeOfSequenceOfCouple { - IntSurf_SequenceNodeOfSequenceOfCouple* _get_reference() { - return (IntSurf_SequenceNodeOfSequenceOfCouple*)$self->Access(); - } -}; - -%extend Handle_IntSurf_SequenceNodeOfSequenceOfCouple { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntSurf_SequenceNodeOfSequenceOfCouple) %extend IntSurf_SequenceNodeOfSequenceOfCouple { %pythoncode { @@ -1307,51 +1176,7 @@ class IntSurf_SequenceNodeOfSequenceOfInteriorPoint : public TCollection_SeqNode }; -%extend IntSurf_SequenceNodeOfSequenceOfInteriorPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint::Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint; -class Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint(); - Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint(const Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint &aHandle); - Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint(const IntSurf_SequenceNodeOfSequenceOfInteriorPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint { - IntSurf_SequenceNodeOfSequenceOfInteriorPoint* _get_reference() { - return (IntSurf_SequenceNodeOfSequenceOfInteriorPoint*)$self->Access(); - } -}; - -%extend Handle_IntSurf_SequenceNodeOfSequenceOfInteriorPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntSurf_SequenceNodeOfSequenceOfInteriorPoint) %extend IntSurf_SequenceNodeOfSequenceOfInteriorPoint { %pythoncode { @@ -1378,51 +1203,7 @@ class IntSurf_SequenceNodeOfSequenceOfPathPoint : public TCollection_SeqNode { }; -%extend IntSurf_SequenceNodeOfSequenceOfPathPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint::Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint; -class Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint(); - Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint(const Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint &aHandle); - Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint(const IntSurf_SequenceNodeOfSequenceOfPathPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint { - IntSurf_SequenceNodeOfSequenceOfPathPoint* _get_reference() { - return (IntSurf_SequenceNodeOfSequenceOfPathPoint*)$self->Access(); - } -}; - -%extend Handle_IntSurf_SequenceNodeOfSequenceOfPathPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntSurf_SequenceNodeOfSequenceOfPathPoint) %extend IntSurf_SequenceNodeOfSequenceOfPathPoint { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntTools.i b/src/SWIG_files/wrapper/IntTools.i index abbf5d729..eeb0ed738 100644 --- a/src/SWIG_files/wrapper/IntTools.i +++ b/src/SWIG_files/wrapper/IntTools.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define INTTOOLSDOCSTRING -"No docstring provided." +"Contains classes for intersection and classification +- purposes and accompanying classes" %enddef %module (package="OCC.Core", docstring=INTTOOLSDOCSTRING) IntTools @@ -34,31 +35,33 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(IntTools_Context) +%wrap_handle(IntTools_DataMapNodeOfDataMapOfCurveSampleBox) +%wrap_handle(IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox) +%wrap_handle(IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress) +%wrap_handle(IntTools_ListNodeOfListOfBox) +%wrap_handle(IntTools_ListNodeOfListOfCurveRangeSample) +%wrap_handle(IntTools_ListNodeOfListOfSurfaceRangeSample) +%wrap_handle(IntTools_SequenceNodeOfSequenceOfCommonPrts) +%wrap_handle(IntTools_SequenceNodeOfSequenceOfCurves) +%wrap_handle(IntTools_SequenceNodeOfSequenceOfPntOn2Faces) +%wrap_handle(IntTools_SequenceNodeOfSequenceOfRanges) +%wrap_handle(IntTools_SequenceNodeOfSequenceOfRoots) +%wrap_handle(IntTools_StdMapNodeOfMapOfCurveSample) +%wrap_handle(IntTools_StdMapNodeOfMapOfSurfaceSample) +%wrap_handle(IntTools_TopolTool) + %rename(inttools) IntTools; class IntTools { public: @@ -1125,51 +1128,7 @@ class IntTools_Context : public MMgt_TShared { }; -%extend IntTools_Context { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_Context(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_Context::Handle_IntTools_Context %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_Context; -class Handle_IntTools_Context : public Handle_MMgt_TShared { - - public: - // constructors - Handle_IntTools_Context(); - Handle_IntTools_Context(const Handle_IntTools_Context &aHandle); - Handle_IntTools_Context(const IntTools_Context *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_Context DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_Context { - IntTools_Context* _get_reference() { - return (IntTools_Context*)$self->Access(); - } -}; - -%extend Handle_IntTools_Context { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_Context) %extend IntTools_Context { %pythoncode { @@ -1450,51 +1409,7 @@ class IntTools_DataMapNodeOfDataMapOfCurveSampleBox : public TCollection_MapNode }; -%extend IntTools_DataMapNodeOfDataMapOfCurveSampleBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox::Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox; -class Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox(); - Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox(const Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox &aHandle); - Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox(const IntTools_DataMapNodeOfDataMapOfCurveSampleBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox { - IntTools_DataMapNodeOfDataMapOfCurveSampleBox* _get_reference() { - return (IntTools_DataMapNodeOfDataMapOfCurveSampleBox*)$self->Access(); - } -}; - -%extend Handle_IntTools_DataMapNodeOfDataMapOfCurveSampleBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_DataMapNodeOfDataMapOfCurveSampleBox) %extend IntTools_DataMapNodeOfDataMapOfCurveSampleBox { %pythoncode { @@ -1525,51 +1440,7 @@ class IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox : public TCollection_MapNo }; -%extend IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox::Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox; -class Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(); - Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(const Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox &aHandle); - Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox(const IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox { - IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox* _get_reference() { - return (IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox*)$self->Access(); - } -}; - -%extend Handle_IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox) %extend IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox { %pythoncode { @@ -2297,51 +2168,7 @@ class IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress : public TCo }; -%extend IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress::Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress; -class Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(); - Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(const Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress &aHandle); - Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress(const IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress { - IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress* _get_reference() { - return (IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress*)$self->Access(); - } -}; - -%extend Handle_IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress) %extend IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress { %pythoncode { @@ -2598,51 +2425,7 @@ class IntTools_ListNodeOfListOfBox : public TCollection_MapNode { }; -%extend IntTools_ListNodeOfListOfBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_ListNodeOfListOfBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_ListNodeOfListOfBox::Handle_IntTools_ListNodeOfListOfBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_ListNodeOfListOfBox; -class Handle_IntTools_ListNodeOfListOfBox : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_ListNodeOfListOfBox(); - Handle_IntTools_ListNodeOfListOfBox(const Handle_IntTools_ListNodeOfListOfBox &aHandle); - Handle_IntTools_ListNodeOfListOfBox(const IntTools_ListNodeOfListOfBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_ListNodeOfListOfBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_ListNodeOfListOfBox { - IntTools_ListNodeOfListOfBox* _get_reference() { - return (IntTools_ListNodeOfListOfBox*)$self->Access(); - } -}; - -%extend Handle_IntTools_ListNodeOfListOfBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_ListNodeOfListOfBox) %extend IntTools_ListNodeOfListOfBox { %pythoncode { @@ -2667,51 +2450,7 @@ class IntTools_ListNodeOfListOfCurveRangeSample : public TCollection_MapNode { }; -%extend IntTools_ListNodeOfListOfCurveRangeSample { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_ListNodeOfListOfCurveRangeSample(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_ListNodeOfListOfCurveRangeSample::Handle_IntTools_ListNodeOfListOfCurveRangeSample %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_ListNodeOfListOfCurveRangeSample; -class Handle_IntTools_ListNodeOfListOfCurveRangeSample : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_ListNodeOfListOfCurveRangeSample(); - Handle_IntTools_ListNodeOfListOfCurveRangeSample(const Handle_IntTools_ListNodeOfListOfCurveRangeSample &aHandle); - Handle_IntTools_ListNodeOfListOfCurveRangeSample(const IntTools_ListNodeOfListOfCurveRangeSample *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_ListNodeOfListOfCurveRangeSample DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_ListNodeOfListOfCurveRangeSample { - IntTools_ListNodeOfListOfCurveRangeSample* _get_reference() { - return (IntTools_ListNodeOfListOfCurveRangeSample*)$self->Access(); - } -}; - -%extend Handle_IntTools_ListNodeOfListOfCurveRangeSample { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_ListNodeOfListOfCurveRangeSample) %extend IntTools_ListNodeOfListOfCurveRangeSample { %pythoncode { @@ -2736,51 +2475,7 @@ class IntTools_ListNodeOfListOfSurfaceRangeSample : public TCollection_MapNode { }; -%extend IntTools_ListNodeOfListOfSurfaceRangeSample { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_ListNodeOfListOfSurfaceRangeSample(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_ListNodeOfListOfSurfaceRangeSample::Handle_IntTools_ListNodeOfListOfSurfaceRangeSample %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_ListNodeOfListOfSurfaceRangeSample; -class Handle_IntTools_ListNodeOfListOfSurfaceRangeSample : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_ListNodeOfListOfSurfaceRangeSample(); - Handle_IntTools_ListNodeOfListOfSurfaceRangeSample(const Handle_IntTools_ListNodeOfListOfSurfaceRangeSample &aHandle); - Handle_IntTools_ListNodeOfListOfSurfaceRangeSample(const IntTools_ListNodeOfListOfSurfaceRangeSample *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_ListNodeOfListOfSurfaceRangeSample DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_ListNodeOfListOfSurfaceRangeSample { - IntTools_ListNodeOfListOfSurfaceRangeSample* _get_reference() { - return (IntTools_ListNodeOfListOfSurfaceRangeSample*)$self->Access(); - } -}; - -%extend Handle_IntTools_ListNodeOfListOfSurfaceRangeSample { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_ListNodeOfListOfSurfaceRangeSample) %extend IntTools_ListNodeOfListOfSurfaceRangeSample { %pythoncode { @@ -3953,51 +3648,7 @@ class IntTools_SequenceNodeOfSequenceOfCommonPrts : public TCollection_SeqNode { }; -%extend IntTools_SequenceNodeOfSequenceOfCommonPrts { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts::Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts; -class Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts(); - Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts(const Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts &aHandle); - Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts(const IntTools_SequenceNodeOfSequenceOfCommonPrts *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts { - IntTools_SequenceNodeOfSequenceOfCommonPrts* _get_reference() { - return (IntTools_SequenceNodeOfSequenceOfCommonPrts*)$self->Access(); - } -}; - -%extend Handle_IntTools_SequenceNodeOfSequenceOfCommonPrts { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_SequenceNodeOfSequenceOfCommonPrts) %extend IntTools_SequenceNodeOfSequenceOfCommonPrts { %pythoncode { @@ -4024,51 +3675,7 @@ class IntTools_SequenceNodeOfSequenceOfCurves : public TCollection_SeqNode { }; -%extend IntTools_SequenceNodeOfSequenceOfCurves { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_SequenceNodeOfSequenceOfCurves(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_SequenceNodeOfSequenceOfCurves::Handle_IntTools_SequenceNodeOfSequenceOfCurves %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_SequenceNodeOfSequenceOfCurves; -class Handle_IntTools_SequenceNodeOfSequenceOfCurves : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntTools_SequenceNodeOfSequenceOfCurves(); - Handle_IntTools_SequenceNodeOfSequenceOfCurves(const Handle_IntTools_SequenceNodeOfSequenceOfCurves &aHandle); - Handle_IntTools_SequenceNodeOfSequenceOfCurves(const IntTools_SequenceNodeOfSequenceOfCurves *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_SequenceNodeOfSequenceOfCurves DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_SequenceNodeOfSequenceOfCurves { - IntTools_SequenceNodeOfSequenceOfCurves* _get_reference() { - return (IntTools_SequenceNodeOfSequenceOfCurves*)$self->Access(); - } -}; - -%extend Handle_IntTools_SequenceNodeOfSequenceOfCurves { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_SequenceNodeOfSequenceOfCurves) %extend IntTools_SequenceNodeOfSequenceOfCurves { %pythoncode { @@ -4095,51 +3702,7 @@ class IntTools_SequenceNodeOfSequenceOfPntOn2Faces : public TCollection_SeqNode }; -%extend IntTools_SequenceNodeOfSequenceOfPntOn2Faces { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces::Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces; -class Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces(); - Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces(const Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces &aHandle); - Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces(const IntTools_SequenceNodeOfSequenceOfPntOn2Faces *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces { - IntTools_SequenceNodeOfSequenceOfPntOn2Faces* _get_reference() { - return (IntTools_SequenceNodeOfSequenceOfPntOn2Faces*)$self->Access(); - } -}; - -%extend Handle_IntTools_SequenceNodeOfSequenceOfPntOn2Faces { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_SequenceNodeOfSequenceOfPntOn2Faces) %extend IntTools_SequenceNodeOfSequenceOfPntOn2Faces { %pythoncode { @@ -4166,51 +3729,7 @@ class IntTools_SequenceNodeOfSequenceOfRanges : public TCollection_SeqNode { }; -%extend IntTools_SequenceNodeOfSequenceOfRanges { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_SequenceNodeOfSequenceOfRanges(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_SequenceNodeOfSequenceOfRanges::Handle_IntTools_SequenceNodeOfSequenceOfRanges %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_SequenceNodeOfSequenceOfRanges; -class Handle_IntTools_SequenceNodeOfSequenceOfRanges : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntTools_SequenceNodeOfSequenceOfRanges(); - Handle_IntTools_SequenceNodeOfSequenceOfRanges(const Handle_IntTools_SequenceNodeOfSequenceOfRanges &aHandle); - Handle_IntTools_SequenceNodeOfSequenceOfRanges(const IntTools_SequenceNodeOfSequenceOfRanges *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_SequenceNodeOfSequenceOfRanges DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_SequenceNodeOfSequenceOfRanges { - IntTools_SequenceNodeOfSequenceOfRanges* _get_reference() { - return (IntTools_SequenceNodeOfSequenceOfRanges*)$self->Access(); - } -}; - -%extend Handle_IntTools_SequenceNodeOfSequenceOfRanges { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_SequenceNodeOfSequenceOfRanges) %extend IntTools_SequenceNodeOfSequenceOfRanges { %pythoncode { @@ -4237,51 +3756,7 @@ class IntTools_SequenceNodeOfSequenceOfRoots : public TCollection_SeqNode { }; -%extend IntTools_SequenceNodeOfSequenceOfRoots { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_SequenceNodeOfSequenceOfRoots(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_SequenceNodeOfSequenceOfRoots::Handle_IntTools_SequenceNodeOfSequenceOfRoots %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_SequenceNodeOfSequenceOfRoots; -class Handle_IntTools_SequenceNodeOfSequenceOfRoots : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_IntTools_SequenceNodeOfSequenceOfRoots(); - Handle_IntTools_SequenceNodeOfSequenceOfRoots(const Handle_IntTools_SequenceNodeOfSequenceOfRoots &aHandle); - Handle_IntTools_SequenceNodeOfSequenceOfRoots(const IntTools_SequenceNodeOfSequenceOfRoots *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_SequenceNodeOfSequenceOfRoots DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_SequenceNodeOfSequenceOfRoots { - IntTools_SequenceNodeOfSequenceOfRoots* _get_reference() { - return (IntTools_SequenceNodeOfSequenceOfRoots*)$self->Access(); - } -}; - -%extend Handle_IntTools_SequenceNodeOfSequenceOfRoots { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_SequenceNodeOfSequenceOfRoots) %extend IntTools_SequenceNodeOfSequenceOfRoots { %pythoncode { @@ -5094,51 +4569,7 @@ class IntTools_StdMapNodeOfMapOfCurveSample : public TCollection_MapNode { }; -%extend IntTools_StdMapNodeOfMapOfCurveSample { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_StdMapNodeOfMapOfCurveSample(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_StdMapNodeOfMapOfCurveSample::Handle_IntTools_StdMapNodeOfMapOfCurveSample %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_StdMapNodeOfMapOfCurveSample; -class Handle_IntTools_StdMapNodeOfMapOfCurveSample : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_StdMapNodeOfMapOfCurveSample(); - Handle_IntTools_StdMapNodeOfMapOfCurveSample(const Handle_IntTools_StdMapNodeOfMapOfCurveSample &aHandle); - Handle_IntTools_StdMapNodeOfMapOfCurveSample(const IntTools_StdMapNodeOfMapOfCurveSample *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_StdMapNodeOfMapOfCurveSample DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_StdMapNodeOfMapOfCurveSample { - IntTools_StdMapNodeOfMapOfCurveSample* _get_reference() { - return (IntTools_StdMapNodeOfMapOfCurveSample*)$self->Access(); - } -}; - -%extend Handle_IntTools_StdMapNodeOfMapOfCurveSample { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_StdMapNodeOfMapOfCurveSample) %extend IntTools_StdMapNodeOfMapOfCurveSample { %pythoncode { @@ -5163,51 +4594,7 @@ class IntTools_StdMapNodeOfMapOfSurfaceSample : public TCollection_MapNode { }; -%extend IntTools_StdMapNodeOfMapOfSurfaceSample { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_StdMapNodeOfMapOfSurfaceSample(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_StdMapNodeOfMapOfSurfaceSample::Handle_IntTools_StdMapNodeOfMapOfSurfaceSample %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_StdMapNodeOfMapOfSurfaceSample; -class Handle_IntTools_StdMapNodeOfMapOfSurfaceSample : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_IntTools_StdMapNodeOfMapOfSurfaceSample(); - Handle_IntTools_StdMapNodeOfMapOfSurfaceSample(const Handle_IntTools_StdMapNodeOfMapOfSurfaceSample &aHandle); - Handle_IntTools_StdMapNodeOfMapOfSurfaceSample(const IntTools_StdMapNodeOfMapOfSurfaceSample *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_StdMapNodeOfMapOfSurfaceSample DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_StdMapNodeOfMapOfSurfaceSample { - IntTools_StdMapNodeOfMapOfSurfaceSample* _get_reference() { - return (IntTools_StdMapNodeOfMapOfSurfaceSample*)$self->Access(); - } -}; - -%extend Handle_IntTools_StdMapNodeOfMapOfSurfaceSample { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_StdMapNodeOfMapOfSurfaceSample) %extend IntTools_StdMapNodeOfMapOfSurfaceSample { %pythoncode { @@ -6048,51 +5435,7 @@ class IntTools_TopolTool : public Adaptor3d_TopolTool { }; -%extend IntTools_TopolTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_IntTools_TopolTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_IntTools_TopolTool::Handle_IntTools_TopolTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_IntTools_TopolTool; -class Handle_IntTools_TopolTool : public Handle_Adaptor3d_TopolTool { - - public: - // constructors - Handle_IntTools_TopolTool(); - Handle_IntTools_TopolTool(const Handle_IntTools_TopolTool &aHandle); - Handle_IntTools_TopolTool(const IntTools_TopolTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_IntTools_TopolTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_IntTools_TopolTool { - IntTools_TopolTool* _get_reference() { - return (IntTools_TopolTool*)$self->Access(); - } -}; - -%extend Handle_IntTools_TopolTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(IntTools_TopolTool) %extend IntTools_TopolTool { %pythoncode { diff --git a/src/SWIG_files/wrapper/IntWalk.i b/src/SWIG_files/wrapper/IntWalk.i index ff6dab942..2960222e8 100644 --- a/src/SWIG_files/wrapper/IntWalk.i +++ b/src/SWIG_files/wrapper/IntWalk.i @@ -18,7 +18,18 @@ along with pythonOCC. If not, see . */ %define INTWALKDOCSTRING -"No docstring provided." +"This package defines the 'walking' (marching) algorithmes +for the intersection between two surfaces. +One of the surfaces is a parametric one. +If the other is an implicit one, the 'IWalking' class will +be used. +If both surfaces are parametric, the 'PWalking' class will +be used. + +-Level: Internal + +All the methods of the classes of this package are Internal. +" %enddef %module (package="OCC.Core", docstring=INTWALKDOCSTRING) IntWalk @@ -34,25 +45,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include IntWalk_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -67,6 +64,7 @@ enum IntWalk_StatusDeflection { /* end public enums declaration */ + %nodefaultctor IntWalk_PWalking; class IntWalk_PWalking { public: diff --git a/src/SWIG_files/wrapper/IntWalk_headers.i b/src/SWIG_files/wrapper/IntWalk_headers.i index b1e7b890f..5eb8a11e4 100644 --- a/src/SWIG_files/wrapper/IntWalk_headers.i +++ b/src/SWIG_files/wrapper/IntWalk_headers.i @@ -361,6 +361,71 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Interface.i b/src/SWIG_files/wrapper/Interface.i index ec17a0f03..560cfb0d3 100644 --- a/src/SWIG_files/wrapper/Interface.i +++ b/src/SWIG_files/wrapper/Interface.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define INTERFACEDOCSTRING -"No docstring provided." +"-Purpose : defines a general frame for interface data +used to manipulate results of normalized Interface outputs +(i.e. files), also as a basis to define transfer operations +(in other packages : see package Transfer) +" %enddef %module (package="OCC.Core", docstring=INTERFACEDOCSTRING) Interface @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Interface_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Boolean ( * Interface_StaticSatisfies ) ( const Handle_TCollection_HAsciiString & val ); typedef NCollection_Vector Interface_VectorOfFileParameter; @@ -94,6 +84,36 @@ enum Interface_CheckStatus { /* end public enums declaration */ +%wrap_handle(Interface_Check) +%wrap_handle(Interface_CopyControl) +%wrap_handle(Interface_DataMapNodeOfDataMapOfTransientInteger) +%wrap_handle(Interface_EntityCluster) +%wrap_handle(Interface_FileReaderData) +%wrap_handle(Interface_GTool) +%wrap_handle(Interface_GeneralModule) +%wrap_handle(Interface_GlobalNodeOfGeneralLib) +%wrap_handle(Interface_GlobalNodeOfReaderLib) +%wrap_handle(Interface_HArray1OfHAsciiString) +%wrap_handle(Interface_HGraph) +%wrap_handle(Interface_HSequenceOfCheck) +%wrap_handle(Interface_IndexedMapNodeOfIndexedMapOfAsciiString) +%wrap_handle(Interface_IntVal) +%wrap_handle(Interface_InterfaceModel) +%wrap_handle(Interface_NodeOfGeneralLib) +%wrap_handle(Interface_NodeOfReaderLib) +%wrap_handle(Interface_ParamList) +%wrap_handle(Interface_ParamSet) +%wrap_handle(Interface_Protocol) +%wrap_handle(Interface_ReaderModule) +%wrap_handle(Interface_ReportEntity) +%wrap_handle(Interface_SequenceNodeOfSequenceOfCheck) +%wrap_handle(Interface_SignLabel) +%wrap_handle(Interface_SignType) +%wrap_handle(Interface_TypedValue) +%wrap_handle(Interface_UndefinedContent) +%wrap_handle(Interface_CopyMap) +%wrap_handle(Interface_Static) + %nodefaultctor Interface_Array1OfFileParameter; class Interface_Array1OfFileParameter { public: @@ -978,51 +998,7 @@ class Interface_Check : public MMgt_TShared { }; -%extend Interface_Check { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_Check(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_Check::Handle_Interface_Check %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_Check; -class Handle_Interface_Check : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_Check(); - Handle_Interface_Check(const Handle_Interface_Check &aHandle); - Handle_Interface_Check(const Interface_Check *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_Check DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_Check { - Interface_Check* _get_reference() { - return (Interface_Check*)$self->Access(); - } -}; - -%extend Handle_Interface_Check { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_Check) %extend Interface_Check { %pythoncode { @@ -1423,51 +1399,7 @@ class Interface_CopyControl : public MMgt_TShared { }; -%extend Interface_CopyControl { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_CopyControl(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_CopyControl::Handle_Interface_CopyControl %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_CopyControl; -class Handle_Interface_CopyControl : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_CopyControl(); - Handle_Interface_CopyControl(const Handle_Interface_CopyControl &aHandle); - Handle_Interface_CopyControl(const Interface_CopyControl *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_CopyControl DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_CopyControl { - Interface_CopyControl* _get_reference() { - return (Interface_CopyControl*)$self->Access(); - } -}; - -%extend Handle_Interface_CopyControl { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_CopyControl) %extend Interface_CopyControl { %pythoncode { @@ -1705,51 +1637,7 @@ class Interface_DataMapNodeOfDataMapOfTransientInteger : public TCollection_MapN }; -%extend Interface_DataMapNodeOfDataMapOfTransientInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_DataMapNodeOfDataMapOfTransientInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_DataMapNodeOfDataMapOfTransientInteger::Handle_Interface_DataMapNodeOfDataMapOfTransientInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_DataMapNodeOfDataMapOfTransientInteger; -class Handle_Interface_DataMapNodeOfDataMapOfTransientInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Interface_DataMapNodeOfDataMapOfTransientInteger(); - Handle_Interface_DataMapNodeOfDataMapOfTransientInteger(const Handle_Interface_DataMapNodeOfDataMapOfTransientInteger &aHandle); - Handle_Interface_DataMapNodeOfDataMapOfTransientInteger(const Interface_DataMapNodeOfDataMapOfTransientInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_DataMapNodeOfDataMapOfTransientInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_DataMapNodeOfDataMapOfTransientInteger { - Interface_DataMapNodeOfDataMapOfTransientInteger* _get_reference() { - return (Interface_DataMapNodeOfDataMapOfTransientInteger*)$self->Access(); - } -}; - -%extend Handle_Interface_DataMapNodeOfDataMapOfTransientInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_DataMapNodeOfDataMapOfTransientInteger) %extend Interface_DataMapNodeOfDataMapOfTransientInteger { %pythoncode { @@ -1933,51 +1821,7 @@ class Interface_EntityCluster : public MMgt_TShared { }; -%extend Interface_EntityCluster { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_EntityCluster(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_EntityCluster::Handle_Interface_EntityCluster %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_EntityCluster; -class Handle_Interface_EntityCluster : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_EntityCluster(); - Handle_Interface_EntityCluster(const Handle_Interface_EntityCluster &aHandle); - Handle_Interface_EntityCluster(const Interface_EntityCluster *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_EntityCluster DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_EntityCluster { - Interface_EntityCluster* _get_reference() { - return (Interface_EntityCluster*)$self->Access(); - } -}; - -%extend Handle_Interface_EntityCluster { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_EntityCluster) %extend Interface_EntityCluster { %pythoncode { @@ -2515,51 +2359,7 @@ class Interface_FileReaderData : public MMgt_TShared { }; -%extend Interface_FileReaderData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_FileReaderData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_FileReaderData::Handle_Interface_FileReaderData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_FileReaderData; -class Handle_Interface_FileReaderData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_FileReaderData(); - Handle_Interface_FileReaderData(const Handle_Interface_FileReaderData &aHandle); - Handle_Interface_FileReaderData(const Interface_FileReaderData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_FileReaderData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_FileReaderData { - Interface_FileReaderData* _get_reference() { - return (Interface_FileReaderData*)$self->Access(); - } -}; - -%extend Handle_Interface_FileReaderData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_FileReaderData) %extend Interface_FileReaderData { %pythoncode { @@ -2958,51 +2758,7 @@ class Interface_GTool : public MMgt_TShared { }; -%extend Interface_GTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_GTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_GTool::Handle_Interface_GTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_GTool; -class Handle_Interface_GTool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_GTool(); - Handle_Interface_GTool(const Handle_Interface_GTool &aHandle); - Handle_Interface_GTool(const Interface_GTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_GTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_GTool { - Interface_GTool* _get_reference() { - return (Interface_GTool*)$self->Access(); - } -}; - -%extend Handle_Interface_GTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_GTool) %extend Interface_GTool { %pythoncode { @@ -3275,51 +3031,7 @@ class Interface_GeneralModule : public MMgt_TShared { }; -%extend Interface_GeneralModule { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_GeneralModule(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_GeneralModule::Handle_Interface_GeneralModule %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_GeneralModule; -class Handle_Interface_GeneralModule : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_GeneralModule(); - Handle_Interface_GeneralModule(const Handle_Interface_GeneralModule &aHandle); - Handle_Interface_GeneralModule(const Interface_GeneralModule *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_GeneralModule DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_GeneralModule { - Interface_GeneralModule* _get_reference() { - return (Interface_GeneralModule*)$self->Access(); - } -}; - -%extend Handle_Interface_GeneralModule { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_GeneralModule) %extend Interface_GeneralModule { %pythoncode { @@ -3356,51 +3068,7 @@ class Interface_GlobalNodeOfGeneralLib : public Standard_Transient { }; -%extend Interface_GlobalNodeOfGeneralLib { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_GlobalNodeOfGeneralLib(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_GlobalNodeOfGeneralLib::Handle_Interface_GlobalNodeOfGeneralLib %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_GlobalNodeOfGeneralLib; -class Handle_Interface_GlobalNodeOfGeneralLib : public Handle_Standard_Transient { - - public: - // constructors - Handle_Interface_GlobalNodeOfGeneralLib(); - Handle_Interface_GlobalNodeOfGeneralLib(const Handle_Interface_GlobalNodeOfGeneralLib &aHandle); - Handle_Interface_GlobalNodeOfGeneralLib(const Interface_GlobalNodeOfGeneralLib *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_GlobalNodeOfGeneralLib DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_GlobalNodeOfGeneralLib { - Interface_GlobalNodeOfGeneralLib* _get_reference() { - return (Interface_GlobalNodeOfGeneralLib*)$self->Access(); - } -}; - -%extend Handle_Interface_GlobalNodeOfGeneralLib { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_GlobalNodeOfGeneralLib) %extend Interface_GlobalNodeOfGeneralLib { %pythoncode { @@ -3437,51 +3105,7 @@ class Interface_GlobalNodeOfReaderLib : public Standard_Transient { }; -%extend Interface_GlobalNodeOfReaderLib { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_GlobalNodeOfReaderLib(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_GlobalNodeOfReaderLib::Handle_Interface_GlobalNodeOfReaderLib %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_GlobalNodeOfReaderLib; -class Handle_Interface_GlobalNodeOfReaderLib : public Handle_Standard_Transient { - - public: - // constructors - Handle_Interface_GlobalNodeOfReaderLib(); - Handle_Interface_GlobalNodeOfReaderLib(const Handle_Interface_GlobalNodeOfReaderLib &aHandle); - Handle_Interface_GlobalNodeOfReaderLib(const Interface_GlobalNodeOfReaderLib *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_GlobalNodeOfReaderLib DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_GlobalNodeOfReaderLib { - Interface_GlobalNodeOfReaderLib* _get_reference() { - return (Interface_GlobalNodeOfReaderLib*)$self->Access(); - } -}; - -%extend Handle_Interface_GlobalNodeOfReaderLib { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_GlobalNodeOfReaderLib) %extend Interface_GlobalNodeOfReaderLib { %pythoncode { @@ -3895,51 +3519,7 @@ class Interface_HArray1OfHAsciiString : public MMgt_TShared { }; -%extend Interface_HArray1OfHAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_HArray1OfHAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_HArray1OfHAsciiString::Handle_Interface_HArray1OfHAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_HArray1OfHAsciiString; -class Handle_Interface_HArray1OfHAsciiString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_HArray1OfHAsciiString(); - Handle_Interface_HArray1OfHAsciiString(const Handle_Interface_HArray1OfHAsciiString &aHandle); - Handle_Interface_HArray1OfHAsciiString(const Interface_HArray1OfHAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_HArray1OfHAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_HArray1OfHAsciiString { - Interface_HArray1OfHAsciiString* _get_reference() { - return (Interface_HArray1OfHAsciiString*)$self->Access(); - } -}; - -%extend Handle_Interface_HArray1OfHAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_HArray1OfHAsciiString) %extend Interface_HArray1OfHAsciiString { %pythoncode { @@ -4018,51 +3598,7 @@ class Interface_HGraph : public MMgt_TShared { }; -%extend Interface_HGraph { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_HGraph(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_HGraph::Handle_Interface_HGraph %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_HGraph; -class Handle_Interface_HGraph : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_HGraph(); - Handle_Interface_HGraph(const Handle_Interface_HGraph &aHandle); - Handle_Interface_HGraph(const Interface_HGraph *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_HGraph DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_HGraph { - Interface_HGraph* _get_reference() { - return (Interface_HGraph*)$self->Access(); - } -}; - -%extend Handle_Interface_HGraph { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_HGraph) %extend Interface_HGraph { %pythoncode { @@ -4207,51 +3743,7 @@ class Interface_HSequenceOfCheck : public MMgt_TShared { }; -%extend Interface_HSequenceOfCheck { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_HSequenceOfCheck(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_HSequenceOfCheck::Handle_Interface_HSequenceOfCheck %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_HSequenceOfCheck; -class Handle_Interface_HSequenceOfCheck : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_HSequenceOfCheck(); - Handle_Interface_HSequenceOfCheck(const Handle_Interface_HSequenceOfCheck &aHandle); - Handle_Interface_HSequenceOfCheck(const Interface_HSequenceOfCheck *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_HSequenceOfCheck DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_HSequenceOfCheck { - Interface_HSequenceOfCheck* _get_reference() { - return (Interface_HSequenceOfCheck*)$self->Access(); - } -}; - -%extend Handle_Interface_HSequenceOfCheck { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_HSequenceOfCheck) %extend Interface_HSequenceOfCheck { %pythoncode { @@ -4297,51 +3789,7 @@ class Interface_IndexedMapNodeOfIndexedMapOfAsciiString : public TCollection_Map }; -%extend Interface_IndexedMapNodeOfIndexedMapOfAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString::Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString; -class Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString(); - Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString(const Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString &aHandle); - Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString(const Interface_IndexedMapNodeOfIndexedMapOfAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString { - Interface_IndexedMapNodeOfIndexedMapOfAsciiString* _get_reference() { - return (Interface_IndexedMapNodeOfIndexedMapOfAsciiString*)$self->Access(); - } -}; - -%extend Handle_Interface_IndexedMapNodeOfIndexedMapOfAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_IndexedMapNodeOfIndexedMapOfAsciiString) %extend Interface_IndexedMapNodeOfIndexedMapOfAsciiString { %pythoncode { @@ -4617,51 +4065,7 @@ class Interface_IntVal : public MMgt_TShared { }; -%extend Interface_IntVal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_IntVal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_IntVal::Handle_Interface_IntVal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_IntVal; -class Handle_Interface_IntVal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_IntVal(); - Handle_Interface_IntVal(const Handle_Interface_IntVal &aHandle); - Handle_Interface_IntVal(const Interface_IntVal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_IntVal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_IntVal { - Interface_IntVal* _get_reference() { - return (Interface_IntVal*)$self->Access(); - } -}; - -%extend Handle_Interface_IntVal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_IntVal) %extend Interface_IntVal { %pythoncode { @@ -5189,51 +4593,7 @@ class Interface_InterfaceModel : public MMgt_TShared { }; -%extend Interface_InterfaceModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_InterfaceModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_InterfaceModel::Handle_Interface_InterfaceModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_InterfaceModel; -class Handle_Interface_InterfaceModel : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_InterfaceModel(); - Handle_Interface_InterfaceModel(const Handle_Interface_InterfaceModel &aHandle); - Handle_Interface_InterfaceModel(const Interface_InterfaceModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_InterfaceModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_InterfaceModel { - Interface_InterfaceModel* _get_reference() { - return (Interface_InterfaceModel*)$self->Access(); - } -}; - -%extend Handle_Interface_InterfaceModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_InterfaceModel) %extend Interface_InterfaceModel { %pythoncode { @@ -5699,51 +5059,7 @@ class Interface_NodeOfGeneralLib : public MMgt_TShared { }; -%extend Interface_NodeOfGeneralLib { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_NodeOfGeneralLib(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_NodeOfGeneralLib::Handle_Interface_NodeOfGeneralLib %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_NodeOfGeneralLib; -class Handle_Interface_NodeOfGeneralLib : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_NodeOfGeneralLib(); - Handle_Interface_NodeOfGeneralLib(const Handle_Interface_NodeOfGeneralLib &aHandle); - Handle_Interface_NodeOfGeneralLib(const Interface_NodeOfGeneralLib *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_NodeOfGeneralLib DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_NodeOfGeneralLib { - Interface_NodeOfGeneralLib* _get_reference() { - return (Interface_NodeOfGeneralLib*)$self->Access(); - } -}; - -%extend Handle_Interface_NodeOfGeneralLib { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_NodeOfGeneralLib) %extend Interface_NodeOfGeneralLib { %pythoncode { @@ -5778,51 +5094,7 @@ class Interface_NodeOfReaderLib : public MMgt_TShared { }; -%extend Interface_NodeOfReaderLib { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_NodeOfReaderLib(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_NodeOfReaderLib::Handle_Interface_NodeOfReaderLib %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_NodeOfReaderLib; -class Handle_Interface_NodeOfReaderLib : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_NodeOfReaderLib(); - Handle_Interface_NodeOfReaderLib(const Handle_Interface_NodeOfReaderLib &aHandle); - Handle_Interface_NodeOfReaderLib(const Interface_NodeOfReaderLib *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_NodeOfReaderLib DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_NodeOfReaderLib { - Interface_NodeOfReaderLib* _get_reference() { - return (Interface_NodeOfReaderLib*)$self->Access(); - } -}; - -%extend Handle_Interface_NodeOfReaderLib { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_NodeOfReaderLib) %extend Interface_NodeOfReaderLib { %pythoncode { @@ -5891,51 +5163,7 @@ class Interface_ParamList : public MMgt_TShared { }; -%extend Interface_ParamList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_ParamList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_ParamList::Handle_Interface_ParamList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_ParamList; -class Handle_Interface_ParamList : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_ParamList(); - Handle_Interface_ParamList(const Handle_Interface_ParamList &aHandle); - Handle_Interface_ParamList(const Interface_ParamList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_ParamList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_ParamList { - Interface_ParamList* _get_reference() { - return (Interface_ParamList*)$self->Access(); - } -}; - -%extend Handle_Interface_ParamList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_ParamList) %extend Interface_ParamList { %pythoncode { @@ -6028,51 +5256,7 @@ class Interface_ParamSet : public MMgt_TShared { }; -%extend Interface_ParamSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_ParamSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_ParamSet::Handle_Interface_ParamSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_ParamSet; -class Handle_Interface_ParamSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_ParamSet(); - Handle_Interface_ParamSet(const Handle_Interface_ParamSet &aHandle); - Handle_Interface_ParamSet(const Interface_ParamSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_ParamSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_ParamSet { - Interface_ParamSet* _get_reference() { - return (Interface_ParamSet*)$self->Access(); - } -}; - -%extend Handle_Interface_ParamSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_ParamSet) %extend Interface_ParamSet { %pythoncode { @@ -6199,51 +5383,7 @@ class Interface_Protocol : public MMgt_TShared { }; -%extend Interface_Protocol { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_Protocol(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_Protocol::Handle_Interface_Protocol %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_Protocol; -class Handle_Interface_Protocol : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_Protocol(); - Handle_Interface_Protocol(const Handle_Interface_Protocol &aHandle); - Handle_Interface_Protocol(const Interface_Protocol *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_Protocol DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_Protocol { - Interface_Protocol* _get_reference() { - return (Interface_Protocol*)$self->Access(); - } -}; - -%extend Handle_Interface_Protocol { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_Protocol) %extend Interface_Protocol { %pythoncode { @@ -6370,51 +5510,7 @@ class Interface_ReaderModule : public MMgt_TShared { }; -%extend Interface_ReaderModule { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_ReaderModule(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_ReaderModule::Handle_Interface_ReaderModule %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_ReaderModule; -class Handle_Interface_ReaderModule : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_ReaderModule(); - Handle_Interface_ReaderModule(const Handle_Interface_ReaderModule &aHandle); - Handle_Interface_ReaderModule(const Interface_ReaderModule *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_ReaderModule DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_ReaderModule { - Interface_ReaderModule* _get_reference() { - return (Interface_ReaderModule*)$self->Access(); - } -}; - -%extend Handle_Interface_ReaderModule { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_ReaderModule) %extend Interface_ReaderModule { %pythoncode { @@ -6501,51 +5597,7 @@ class Interface_ReportEntity : public MMgt_TShared { }; -%extend Interface_ReportEntity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_ReportEntity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_ReportEntity::Handle_Interface_ReportEntity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_ReportEntity; -class Handle_Interface_ReportEntity : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_ReportEntity(); - Handle_Interface_ReportEntity(const Handle_Interface_ReportEntity &aHandle); - Handle_Interface_ReportEntity(const Interface_ReportEntity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_ReportEntity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_ReportEntity { - Interface_ReportEntity* _get_reference() { - return (Interface_ReportEntity*)$self->Access(); - } -}; - -%extend Handle_Interface_ReportEntity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_ReportEntity) %extend Interface_ReportEntity { %pythoncode { @@ -6572,51 +5624,7 @@ class Interface_SequenceNodeOfSequenceOfCheck : public TCollection_SeqNode { }; -%extend Interface_SequenceNodeOfSequenceOfCheck { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_SequenceNodeOfSequenceOfCheck(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_SequenceNodeOfSequenceOfCheck::Handle_Interface_SequenceNodeOfSequenceOfCheck %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_SequenceNodeOfSequenceOfCheck; -class Handle_Interface_SequenceNodeOfSequenceOfCheck : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Interface_SequenceNodeOfSequenceOfCheck(); - Handle_Interface_SequenceNodeOfSequenceOfCheck(const Handle_Interface_SequenceNodeOfSequenceOfCheck &aHandle); - Handle_Interface_SequenceNodeOfSequenceOfCheck(const Interface_SequenceNodeOfSequenceOfCheck *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_SequenceNodeOfSequenceOfCheck DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_SequenceNodeOfSequenceOfCheck { - Interface_SequenceNodeOfSequenceOfCheck* _get_reference() { - return (Interface_SequenceNodeOfSequenceOfCheck*)$self->Access(); - } -}; - -%extend Handle_Interface_SequenceNodeOfSequenceOfCheck { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_SequenceNodeOfSequenceOfCheck) %extend Interface_SequenceNodeOfSequenceOfCheck { %pythoncode { @@ -7030,51 +6038,7 @@ class Interface_SignLabel : public MoniTool_SignText { }; -%extend Interface_SignLabel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_SignLabel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_SignLabel::Handle_Interface_SignLabel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_SignLabel; -class Handle_Interface_SignLabel : public Handle_MoniTool_SignText { - - public: - // constructors - Handle_Interface_SignLabel(); - Handle_Interface_SignLabel(const Handle_Interface_SignLabel &aHandle); - Handle_Interface_SignLabel(const Interface_SignLabel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_SignLabel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_SignLabel { - Interface_SignLabel* _get_reference() { - return (Interface_SignLabel*)$self->Access(); - } -}; - -%extend Handle_Interface_SignLabel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_SignLabel) %extend Interface_SignLabel { %pythoncode { @@ -7115,51 +6079,7 @@ class Interface_SignType : public MoniTool_SignText { }; -%extend Interface_SignType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_SignType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_SignType::Handle_Interface_SignType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_SignType; -class Handle_Interface_SignType : public Handle_MoniTool_SignText { - - public: - // constructors - Handle_Interface_SignType(); - Handle_Interface_SignType(const Handle_Interface_SignType &aHandle); - Handle_Interface_SignType(const Interface_SignType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_SignType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_SignType { - Interface_SignType* _get_reference() { - return (Interface_SignType*)$self->Access(); - } -}; - -%extend Handle_Interface_SignType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_SignType) %extend Interface_SignType { %pythoncode { @@ -7206,51 +6126,7 @@ class Interface_TypedValue : public MoniTool_TypedValue { }; -%extend Interface_TypedValue { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_TypedValue(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_TypedValue::Handle_Interface_TypedValue %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_TypedValue; -class Handle_Interface_TypedValue : public Handle_MoniTool_TypedValue { - - public: - // constructors - Handle_Interface_TypedValue(); - Handle_Interface_TypedValue(const Handle_Interface_TypedValue &aHandle); - Handle_Interface_TypedValue(const Interface_TypedValue *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_TypedValue DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_TypedValue { - Interface_TypedValue* _get_reference() { - return (Interface_TypedValue*)$self->Access(); - } -}; - -%extend Handle_Interface_TypedValue { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_TypedValue) %extend Interface_TypedValue { %pythoncode { @@ -7415,51 +6291,7 @@ class Interface_UndefinedContent : public MMgt_TShared { }; -%extend Interface_UndefinedContent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_UndefinedContent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_UndefinedContent::Handle_Interface_UndefinedContent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_UndefinedContent; -class Handle_Interface_UndefinedContent : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Interface_UndefinedContent(); - Handle_Interface_UndefinedContent(const Handle_Interface_UndefinedContent &aHandle); - Handle_Interface_UndefinedContent(const Interface_UndefinedContent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_UndefinedContent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_UndefinedContent { - Interface_UndefinedContent* _get_reference() { - return (Interface_UndefinedContent*)$self->Access(); - } -}; - -%extend Handle_Interface_UndefinedContent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_UndefinedContent) %extend Interface_UndefinedContent { %pythoncode { @@ -7512,51 +6344,7 @@ class Interface_CopyMap : public Interface_CopyControl { }; -%extend Interface_CopyMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_CopyMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_CopyMap::Handle_Interface_CopyMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_CopyMap; -class Handle_Interface_CopyMap : public Handle_Interface_CopyControl { - - public: - // constructors - Handle_Interface_CopyMap(); - Handle_Interface_CopyMap(const Handle_Interface_CopyMap &aHandle); - Handle_Interface_CopyMap(const Interface_CopyMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_CopyMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_CopyMap { - Interface_CopyMap* _get_reference() { - return (Interface_CopyMap*)$self->Access(); - } -}; - -%extend Handle_Interface_CopyMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_CopyMap) %extend Interface_CopyMap { %pythoncode { @@ -7876,51 +6664,7 @@ class Interface_Static : public Interface_TypedValue { }; -%extend Interface_Static { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Interface_Static(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Interface_Static::Handle_Interface_Static %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Interface_Static; -class Handle_Interface_Static : public Handle_Interface_TypedValue { - - public: - // constructors - Handle_Interface_Static(); - Handle_Interface_Static(const Handle_Interface_Static &aHandle); - Handle_Interface_Static(const Interface_Static *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Interface_Static DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Interface_Static { - Interface_Static* _get_reference() { - return (Interface_Static*)$self->Access(); - } -}; - -%extend Handle_Interface_Static { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Interface_Static) %extend Interface_Static { %pythoncode { diff --git a/src/SWIG_files/wrapper/InterfaceGraphic.i b/src/SWIG_files/wrapper/InterfaceGraphic.i index 9c7220141..396c6a1c1 100644 --- a/src/SWIG_files/wrapper/InterfaceGraphic.i +++ b/src/SWIG_files/wrapper/InterfaceGraphic.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include InterfaceGraphic_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef int Tint; typedef TEL_TEXTURE_COORD * tel_texture_coord; @@ -79,3 +65,4 @@ enum TelCullMode { /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/Intf.i b/src/SWIG_files/wrapper/Intf.i index 5911081bd..6c9ebf0e6 100644 --- a/src/SWIG_files/wrapper/Intf.i +++ b/src/SWIG_files/wrapper/Intf.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define INTFDOCSTRING -"No docstring provided." +"Interference computation between polygons, lines and +polyhedra with only triangular facets. These objects +are polygonal representations of complex curves and +triangulated representations of complex surfaces. + +" %enddef %module (package="OCC.Core", docstring=INTFDOCSTRING) Intf @@ -34,25 +39,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Intf_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,6 +57,10 @@ enum Intf_PIType { /* end public enums declaration */ +%wrap_handle(Intf_SequenceNodeOfSeqOfSectionLine) +%wrap_handle(Intf_SequenceNodeOfSeqOfSectionPoint) +%wrap_handle(Intf_SequenceNodeOfSeqOfTangentZone) + %rename(intf) Intf; class Intf { public: @@ -1101,51 +1096,7 @@ class Intf_SequenceNodeOfSeqOfSectionLine : public TCollection_SeqNode { }; -%extend Intf_SequenceNodeOfSeqOfSectionLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Intf_SequenceNodeOfSeqOfSectionLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Intf_SequenceNodeOfSeqOfSectionLine::Handle_Intf_SequenceNodeOfSeqOfSectionLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Intf_SequenceNodeOfSeqOfSectionLine; -class Handle_Intf_SequenceNodeOfSeqOfSectionLine : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Intf_SequenceNodeOfSeqOfSectionLine(); - Handle_Intf_SequenceNodeOfSeqOfSectionLine(const Handle_Intf_SequenceNodeOfSeqOfSectionLine &aHandle); - Handle_Intf_SequenceNodeOfSeqOfSectionLine(const Intf_SequenceNodeOfSeqOfSectionLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Intf_SequenceNodeOfSeqOfSectionLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Intf_SequenceNodeOfSeqOfSectionLine { - Intf_SequenceNodeOfSeqOfSectionLine* _get_reference() { - return (Intf_SequenceNodeOfSeqOfSectionLine*)$self->Access(); - } -}; - -%extend Handle_Intf_SequenceNodeOfSeqOfSectionLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Intf_SequenceNodeOfSeqOfSectionLine) %extend Intf_SequenceNodeOfSeqOfSectionLine { %pythoncode { @@ -1172,51 +1123,7 @@ class Intf_SequenceNodeOfSeqOfSectionPoint : public TCollection_SeqNode { }; -%extend Intf_SequenceNodeOfSeqOfSectionPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Intf_SequenceNodeOfSeqOfSectionPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Intf_SequenceNodeOfSeqOfSectionPoint::Handle_Intf_SequenceNodeOfSeqOfSectionPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Intf_SequenceNodeOfSeqOfSectionPoint; -class Handle_Intf_SequenceNodeOfSeqOfSectionPoint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Intf_SequenceNodeOfSeqOfSectionPoint(); - Handle_Intf_SequenceNodeOfSeqOfSectionPoint(const Handle_Intf_SequenceNodeOfSeqOfSectionPoint &aHandle); - Handle_Intf_SequenceNodeOfSeqOfSectionPoint(const Intf_SequenceNodeOfSeqOfSectionPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Intf_SequenceNodeOfSeqOfSectionPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Intf_SequenceNodeOfSeqOfSectionPoint { - Intf_SequenceNodeOfSeqOfSectionPoint* _get_reference() { - return (Intf_SequenceNodeOfSeqOfSectionPoint*)$self->Access(); - } -}; - -%extend Handle_Intf_SequenceNodeOfSeqOfSectionPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Intf_SequenceNodeOfSeqOfSectionPoint) %extend Intf_SequenceNodeOfSeqOfSectionPoint { %pythoncode { @@ -1243,51 +1150,7 @@ class Intf_SequenceNodeOfSeqOfTangentZone : public TCollection_SeqNode { }; -%extend Intf_SequenceNodeOfSeqOfTangentZone { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Intf_SequenceNodeOfSeqOfTangentZone(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Intf_SequenceNodeOfSeqOfTangentZone::Handle_Intf_SequenceNodeOfSeqOfTangentZone %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Intf_SequenceNodeOfSeqOfTangentZone; -class Handle_Intf_SequenceNodeOfSeqOfTangentZone : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Intf_SequenceNodeOfSeqOfTangentZone(); - Handle_Intf_SequenceNodeOfSeqOfTangentZone(const Handle_Intf_SequenceNodeOfSeqOfTangentZone &aHandle); - Handle_Intf_SequenceNodeOfSeqOfTangentZone(const Intf_SequenceNodeOfSeqOfTangentZone *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Intf_SequenceNodeOfSeqOfTangentZone DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Intf_SequenceNodeOfSeqOfTangentZone { - Intf_SequenceNodeOfSeqOfTangentZone* _get_reference() { - return (Intf_SequenceNodeOfSeqOfTangentZone*)$self->Access(); - } -}; - -%extend Handle_Intf_SequenceNodeOfSeqOfTangentZone { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Intf_SequenceNodeOfSeqOfTangentZone) %extend Intf_SequenceNodeOfSeqOfTangentZone { %pythoncode { diff --git a/src/SWIG_files/wrapper/Intrv.i b/src/SWIG_files/wrapper/Intrv.i index a91948e2b..be88b42b5 100644 --- a/src/SWIG_files/wrapper/Intrv.i +++ b/src/SWIG_files/wrapper/Intrv.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define INTRVDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=INTRVDOCSTRING) Intrv @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Intrv_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -75,6 +61,8 @@ enum Intrv_Position { /* end public enums declaration */ +%wrap_handle(Intrv_SequenceNodeOfSequenceOfInterval) + %nodefaultctor Intrv_Interval; class Intrv_Interval { public: @@ -427,51 +415,7 @@ class Intrv_SequenceNodeOfSequenceOfInterval : public TCollection_SeqNode { }; -%extend Intrv_SequenceNodeOfSequenceOfInterval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Intrv_SequenceNodeOfSequenceOfInterval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Intrv_SequenceNodeOfSequenceOfInterval::Handle_Intrv_SequenceNodeOfSequenceOfInterval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Intrv_SequenceNodeOfSequenceOfInterval; -class Handle_Intrv_SequenceNodeOfSequenceOfInterval : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Intrv_SequenceNodeOfSequenceOfInterval(); - Handle_Intrv_SequenceNodeOfSequenceOfInterval(const Handle_Intrv_SequenceNodeOfSequenceOfInterval &aHandle); - Handle_Intrv_SequenceNodeOfSequenceOfInterval(const Intrv_SequenceNodeOfSequenceOfInterval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Intrv_SequenceNodeOfSequenceOfInterval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Intrv_SequenceNodeOfSequenceOfInterval { - Intrv_SequenceNodeOfSequenceOfInterval* _get_reference() { - return (Intrv_SequenceNodeOfSequenceOfInterval*)$self->Access(); - } -}; - -%extend Handle_Intrv_SequenceNodeOfSequenceOfInterval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Intrv_SequenceNodeOfSequenceOfInterval) %extend Intrv_SequenceNodeOfSequenceOfInterval { %pythoncode { diff --git a/src/SWIG_files/wrapper/LDOM.i b/src/SWIG_files/wrapper/LDOM.i index c445110c4..46fc424ff 100644 --- a/src/SWIG_files/wrapper/LDOM.i +++ b/src/SWIG_files/wrapper/LDOM.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include LDOM_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef char LXMLCh; /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/LProp.i b/src/SWIG_files/wrapper/LProp.i index dd48e93ed..6e3c3bb0c 100644 --- a/src/SWIG_files/wrapper/LProp.i +++ b/src/SWIG_files/wrapper/LProp.i @@ -18,7 +18,34 @@ along with pythonOCC. If not, see . */ %define LPROPDOCSTRING -"No docstring provided." +"Handles local properties of curves and surfaces. +Given a curve and a parameter value the following computations +are available : +- point, +- derivatives, +- tangent, +- normal, +- curvature, +- centre of curvature, +- Locals curvature's extremas, +- Points of inflection, +Given a surface and 2 parameters the following computations +are available : +- for each parameter: +- derivatives, +- tangent line, +- centre of curvature, +- point, +- normal line, +- maximum and minimum curvatures, +- principal directions of curvature, +- mean curvature, +- Gaussian curvature. + + +-Level : Public. +All methods of all classes will be public. +" %enddef %module (package="OCC.Core", docstring=LPROPDOCSTRING) LProp @@ -34,25 +61,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include LProp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -72,6 +85,8 @@ enum LProp_CIType { /* end public enums declaration */ +%wrap_handle(LProp_SequenceNodeOfSequenceOfCIType) + %nodefaultctor LProp_AnalyticCurInf; class LProp_AnalyticCurInf { public: @@ -178,51 +193,7 @@ class LProp_SequenceNodeOfSequenceOfCIType : public TCollection_SeqNode { }; -%extend LProp_SequenceNodeOfSequenceOfCIType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LProp_SequenceNodeOfSequenceOfCIType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LProp_SequenceNodeOfSequenceOfCIType::Handle_LProp_SequenceNodeOfSequenceOfCIType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LProp_SequenceNodeOfSequenceOfCIType; -class Handle_LProp_SequenceNodeOfSequenceOfCIType : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_LProp_SequenceNodeOfSequenceOfCIType(); - Handle_LProp_SequenceNodeOfSequenceOfCIType(const Handle_LProp_SequenceNodeOfSequenceOfCIType &aHandle); - Handle_LProp_SequenceNodeOfSequenceOfCIType(const LProp_SequenceNodeOfSequenceOfCIType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LProp_SequenceNodeOfSequenceOfCIType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LProp_SequenceNodeOfSequenceOfCIType { - LProp_SequenceNodeOfSequenceOfCIType* _get_reference() { - return (LProp_SequenceNodeOfSequenceOfCIType*)$self->Access(); - } -}; - -%extend Handle_LProp_SequenceNodeOfSequenceOfCIType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LProp_SequenceNodeOfSequenceOfCIType) %extend LProp_SequenceNodeOfSequenceOfCIType { %pythoncode { diff --git a/src/SWIG_files/wrapper/LProp3d.i b/src/SWIG_files/wrapper/LProp3d.i index 2d2252dcb..2296cdfb0 100644 --- a/src/SWIG_files/wrapper/LProp3d.i +++ b/src/SWIG_files/wrapper/LProp3d.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define LPROP3DDOCSTRING -"No docstring provided." +"Handles local properties of curves and surfaces from the +package Adaptor3d. +SeeAlso: Package LProp. +" %enddef %module (package="OCC.Core", docstring=LPROP3DDOCSTRING) LProp3d @@ -34,31 +37,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include LProp3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor LProp3d_CLProps; class LProp3d_CLProps { public: diff --git a/src/SWIG_files/wrapper/LProp3d_headers.i b/src/SWIG_files/wrapper/LProp3d_headers.i index 260b70e1a..e1eb5fa38 100644 --- a/src/SWIG_files/wrapper/LProp3d_headers.i +++ b/src/SWIG_files/wrapper/LProp3d_headers.i @@ -164,6 +164,71 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Law.i b/src/SWIG_files/wrapper/Law.i index e9fa606eb..c58115a7c 100644 --- a/src/SWIG_files/wrapper/Law.i +++ b/src/SWIG_files/wrapper/Law.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define LAWDOCSTRING -"No docstring provided." +"Multiple services concerning 1d functions. +" %enddef %module (package="OCC.Core", docstring=LAWDOCSTRING) Law @@ -34,31 +35,27 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Law_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Law_BSpline) +%wrap_handle(Law_Function) +%wrap_handle(Law_ListNodeOfLaws) +%wrap_handle(Law_BSpFunc) +%wrap_handle(Law_Composite) +%wrap_handle(Law_Constant) +%wrap_handle(Law_Linear) +%wrap_handle(Law_Interpol) +%wrap_handle(Law_S) + %rename(law) Law; class Law { public: @@ -764,51 +761,7 @@ class Law_BSpline : public MMgt_TShared { }; -%extend Law_BSpline { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_BSpline(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_BSpline::Handle_Law_BSpline %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_BSpline; -class Handle_Law_BSpline : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Law_BSpline(); - Handle_Law_BSpline(const Handle_Law_BSpline &aHandle); - Handle_Law_BSpline(const Law_BSpline *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_BSpline DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_BSpline { - Law_BSpline* _get_reference() { - return (Law_BSpline*)$self->Access(); - } -}; - -%extend Handle_Law_BSpline { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_BSpline) %extend Law_BSpline { %pythoncode { @@ -942,51 +895,7 @@ class Law_Function : public MMgt_TShared { }; -%extend Law_Function { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_Function(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_Function::Handle_Law_Function %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_Function; -class Handle_Law_Function : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Law_Function(); - Handle_Law_Function(const Handle_Law_Function &aHandle); - Handle_Law_Function(const Law_Function *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_Function DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_Function { - Law_Function* _get_reference() { - return (Law_Function*)$self->Access(); - } -}; - -%extend Handle_Law_Function { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_Function) %extend Law_Function { %pythoncode { @@ -1256,51 +1165,7 @@ class Law_ListNodeOfLaws : public TCollection_MapNode { }; -%extend Law_ListNodeOfLaws { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_ListNodeOfLaws(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_ListNodeOfLaws::Handle_Law_ListNodeOfLaws %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_ListNodeOfLaws; -class Handle_Law_ListNodeOfLaws : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Law_ListNodeOfLaws(); - Handle_Law_ListNodeOfLaws(const Handle_Law_ListNodeOfLaws &aHandle); - Handle_Law_ListNodeOfLaws(const Law_ListNodeOfLaws *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_ListNodeOfLaws DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_ListNodeOfLaws { - Law_ListNodeOfLaws* _get_reference() { - return (Law_ListNodeOfLaws*)$self->Access(); - } -}; - -%extend Handle_Law_ListNodeOfLaws { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_ListNodeOfLaws) %extend Law_ListNodeOfLaws { %pythoncode { @@ -1407,51 +1272,7 @@ class Law_BSpFunc : public Law_Function { }; -%extend Law_BSpFunc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_BSpFunc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_BSpFunc::Handle_Law_BSpFunc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_BSpFunc; -class Handle_Law_BSpFunc : public Handle_Law_Function { - - public: - // constructors - Handle_Law_BSpFunc(); - Handle_Law_BSpFunc(const Handle_Law_BSpFunc &aHandle); - Handle_Law_BSpFunc(const Law_BSpFunc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_BSpFunc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_BSpFunc { - Law_BSpFunc* _get_reference() { - return (Law_BSpFunc*)$self->Access(); - } -}; - -%extend Handle_Law_BSpFunc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_BSpFunc) %extend Law_BSpFunc { %pythoncode { @@ -1580,51 +1401,7 @@ class Law_Composite : public Law_Function { }; -%extend Law_Composite { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_Composite(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_Composite::Handle_Law_Composite %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_Composite; -class Handle_Law_Composite : public Handle_Law_Function { - - public: - // constructors - Handle_Law_Composite(); - Handle_Law_Composite(const Handle_Law_Composite &aHandle); - Handle_Law_Composite(const Law_Composite *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_Composite DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_Composite { - Law_Composite* _get_reference() { - return (Law_Composite*)$self->Access(); - } -}; - -%extend Handle_Law_Composite { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_Composite) %extend Law_Composite { %pythoncode { @@ -1729,51 +1506,7 @@ class Law_Constant : public Law_Function { }; -%extend Law_Constant { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_Constant(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_Constant::Handle_Law_Constant %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_Constant; -class Handle_Law_Constant : public Handle_Law_Function { - - public: - // constructors - Handle_Law_Constant(); - Handle_Law_Constant(const Handle_Law_Constant &aHandle); - Handle_Law_Constant(const Law_Constant *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_Constant DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_Constant { - Law_Constant* _get_reference() { - return (Law_Constant*)$self->Access(); - } -}; - -%extend Handle_Law_Constant { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_Constant) %extend Law_Constant { %pythoncode { @@ -1884,51 +1617,7 @@ class Law_Linear : public Law_Function { }; -%extend Law_Linear { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_Linear(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_Linear::Handle_Law_Linear %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_Linear; -class Handle_Law_Linear : public Handle_Law_Function { - - public: - // constructors - Handle_Law_Linear(); - Handle_Law_Linear(const Handle_Law_Linear &aHandle); - Handle_Law_Linear(const Law_Linear *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_Linear DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_Linear { - Law_Linear* _get_reference() { - return (Law_Linear*)$self->Access(); - } -}; - -%extend Handle_Law_Linear { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_Linear) %extend Law_Linear { %pythoncode { @@ -1999,51 +1688,7 @@ class Law_Interpol : public Law_BSpFunc { }; -%extend Law_Interpol { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_Interpol(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_Interpol::Handle_Law_Interpol %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_Interpol; -class Handle_Law_Interpol : public Handle_Law_BSpFunc { - - public: - // constructors - Handle_Law_Interpol(); - Handle_Law_Interpol(const Handle_Law_Interpol &aHandle); - Handle_Law_Interpol(const Law_Interpol *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_Interpol DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_Interpol { - Law_Interpol* _get_reference() { - return (Law_Interpol*)$self->Access(); - } -}; - -%extend Handle_Law_Interpol { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_Interpol) %extend Law_Interpol { %pythoncode { @@ -2094,51 +1739,7 @@ class Law_S : public Law_BSpFunc { }; -%extend Law_S { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Law_S(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Law_S::Handle_Law_S %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Law_S; -class Handle_Law_S : public Handle_Law_BSpFunc { - - public: - // constructors - Handle_Law_S(); - Handle_Law_S(const Handle_Law_S &aHandle); - Handle_Law_S(const Law_S *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Law_S DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Law_S { - Law_S* _get_reference() { - return (Law_S*)$self->Access(); - } -}; - -%extend Handle_Law_S { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Law_S) %extend Law_S { %pythoncode { diff --git a/src/SWIG_files/wrapper/LocOpe.i b/src/SWIG_files/wrapper/LocOpe.i index ac66f08b1..f6942743e 100644 --- a/src/SWIG_files/wrapper/LocOpe.i +++ b/src/SWIG_files/wrapper/LocOpe.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define LOCOPEDOCSTRING -"No docstring provided." +"Provides tools to implement local topological +operations on a shape. +" %enddef %module (package="OCC.Core", docstring=LOCOPEDOCSTRING) LocOpe @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include LocOpe_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +53,15 @@ enum LocOpe_Operation { /* end public enums declaration */ +%wrap_handle(LocOpe_DataMapNodeOfDataMapOfShapePnt) +%wrap_handle(LocOpe_GeneratedShape) +%wrap_handle(LocOpe_HBuilder) +%wrap_handle(LocOpe_SequenceNodeOfSequenceOfCirc) +%wrap_handle(LocOpe_SequenceNodeOfSequenceOfLin) +%wrap_handle(LocOpe_SequenceNodeOfSequenceOfPntFace) +%wrap_handle(LocOpe_WiresOnShape) +%wrap_handle(LocOpe_GluedShape) + %rename(locope) LocOpe; class LocOpe { public: @@ -606,51 +603,7 @@ class LocOpe_DataMapNodeOfDataMapOfShapePnt : public TCollection_MapNode { }; -%extend LocOpe_DataMapNodeOfDataMapOfShapePnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt::Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt; -class Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt(); - Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt(const Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt &aHandle); - Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt(const LocOpe_DataMapNodeOfDataMapOfShapePnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt { - LocOpe_DataMapNodeOfDataMapOfShapePnt* _get_reference() { - return (LocOpe_DataMapNodeOfDataMapOfShapePnt*)$self->Access(); - } -}; - -%extend Handle_LocOpe_DataMapNodeOfDataMapOfShapePnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_DataMapNodeOfDataMapOfShapePnt) %extend LocOpe_DataMapNodeOfDataMapOfShapePnt { %pythoncode { @@ -870,51 +823,7 @@ class LocOpe_GeneratedShape : public MMgt_TShared { }; -%extend LocOpe_GeneratedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_GeneratedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_GeneratedShape::Handle_LocOpe_GeneratedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_GeneratedShape; -class Handle_LocOpe_GeneratedShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_LocOpe_GeneratedShape(); - Handle_LocOpe_GeneratedShape(const Handle_LocOpe_GeneratedShape &aHandle); - Handle_LocOpe_GeneratedShape(const LocOpe_GeneratedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_GeneratedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_GeneratedShape { - LocOpe_GeneratedShape* _get_reference() { - return (LocOpe_GeneratedShape*)$self->Access(); - } -}; - -%extend Handle_LocOpe_GeneratedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_GeneratedShape) %extend LocOpe_GeneratedShape { %pythoncode { @@ -1091,51 +1000,7 @@ class LocOpe_HBuilder : public TopOpeBRepBuild_HBuilder { }; -%extend LocOpe_HBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_HBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_HBuilder::Handle_LocOpe_HBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_HBuilder; -class Handle_LocOpe_HBuilder : public Handle_TopOpeBRepBuild_HBuilder { - - public: - // constructors - Handle_LocOpe_HBuilder(); - Handle_LocOpe_HBuilder(const Handle_LocOpe_HBuilder &aHandle); - Handle_LocOpe_HBuilder(const LocOpe_HBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_HBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_HBuilder { - LocOpe_HBuilder* _get_reference() { - return (LocOpe_HBuilder*)$self->Access(); - } -}; - -%extend Handle_LocOpe_HBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_HBuilder) %extend LocOpe_HBuilder { %pythoncode { @@ -1442,51 +1307,7 @@ class LocOpe_SequenceNodeOfSequenceOfCirc : public TCollection_SeqNode { }; -%extend LocOpe_SequenceNodeOfSequenceOfCirc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_SequenceNodeOfSequenceOfCirc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_SequenceNodeOfSequenceOfCirc::Handle_LocOpe_SequenceNodeOfSequenceOfCirc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_SequenceNodeOfSequenceOfCirc; -class Handle_LocOpe_SequenceNodeOfSequenceOfCirc : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_LocOpe_SequenceNodeOfSequenceOfCirc(); - Handle_LocOpe_SequenceNodeOfSequenceOfCirc(const Handle_LocOpe_SequenceNodeOfSequenceOfCirc &aHandle); - Handle_LocOpe_SequenceNodeOfSequenceOfCirc(const LocOpe_SequenceNodeOfSequenceOfCirc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_SequenceNodeOfSequenceOfCirc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_SequenceNodeOfSequenceOfCirc { - LocOpe_SequenceNodeOfSequenceOfCirc* _get_reference() { - return (LocOpe_SequenceNodeOfSequenceOfCirc*)$self->Access(); - } -}; - -%extend Handle_LocOpe_SequenceNodeOfSequenceOfCirc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_SequenceNodeOfSequenceOfCirc) %extend LocOpe_SequenceNodeOfSequenceOfCirc { %pythoncode { @@ -1513,51 +1334,7 @@ class LocOpe_SequenceNodeOfSequenceOfLin : public TCollection_SeqNode { }; -%extend LocOpe_SequenceNodeOfSequenceOfLin { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_SequenceNodeOfSequenceOfLin(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_SequenceNodeOfSequenceOfLin::Handle_LocOpe_SequenceNodeOfSequenceOfLin %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_SequenceNodeOfSequenceOfLin; -class Handle_LocOpe_SequenceNodeOfSequenceOfLin : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_LocOpe_SequenceNodeOfSequenceOfLin(); - Handle_LocOpe_SequenceNodeOfSequenceOfLin(const Handle_LocOpe_SequenceNodeOfSequenceOfLin &aHandle); - Handle_LocOpe_SequenceNodeOfSequenceOfLin(const LocOpe_SequenceNodeOfSequenceOfLin *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_SequenceNodeOfSequenceOfLin DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_SequenceNodeOfSequenceOfLin { - LocOpe_SequenceNodeOfSequenceOfLin* _get_reference() { - return (LocOpe_SequenceNodeOfSequenceOfLin*)$self->Access(); - } -}; - -%extend Handle_LocOpe_SequenceNodeOfSequenceOfLin { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_SequenceNodeOfSequenceOfLin) %extend LocOpe_SequenceNodeOfSequenceOfLin { %pythoncode { @@ -1584,51 +1361,7 @@ class LocOpe_SequenceNodeOfSequenceOfPntFace : public TCollection_SeqNode { }; -%extend LocOpe_SequenceNodeOfSequenceOfPntFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_SequenceNodeOfSequenceOfPntFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_SequenceNodeOfSequenceOfPntFace::Handle_LocOpe_SequenceNodeOfSequenceOfPntFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_SequenceNodeOfSequenceOfPntFace; -class Handle_LocOpe_SequenceNodeOfSequenceOfPntFace : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_LocOpe_SequenceNodeOfSequenceOfPntFace(); - Handle_LocOpe_SequenceNodeOfSequenceOfPntFace(const Handle_LocOpe_SequenceNodeOfSequenceOfPntFace &aHandle); - Handle_LocOpe_SequenceNodeOfSequenceOfPntFace(const LocOpe_SequenceNodeOfSequenceOfPntFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_SequenceNodeOfSequenceOfPntFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_SequenceNodeOfSequenceOfPntFace { - LocOpe_SequenceNodeOfSequenceOfPntFace* _get_reference() { - return (LocOpe_SequenceNodeOfSequenceOfPntFace*)$self->Access(); - } -}; - -%extend Handle_LocOpe_SequenceNodeOfSequenceOfPntFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_SequenceNodeOfSequenceOfPntFace) %extend LocOpe_SequenceNodeOfSequenceOfPntFace { %pythoncode { @@ -2473,51 +2206,7 @@ class LocOpe_WiresOnShape : public MMgt_TShared { }; -%extend LocOpe_WiresOnShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_WiresOnShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_WiresOnShape::Handle_LocOpe_WiresOnShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_WiresOnShape; -class Handle_LocOpe_WiresOnShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_LocOpe_WiresOnShape(); - Handle_LocOpe_WiresOnShape(const Handle_LocOpe_WiresOnShape &aHandle); - Handle_LocOpe_WiresOnShape(const LocOpe_WiresOnShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_WiresOnShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_WiresOnShape { - LocOpe_WiresOnShape* _get_reference() { - return (LocOpe_WiresOnShape*)$self->Access(); - } -}; - -%extend Handle_LocOpe_WiresOnShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_WiresOnShape) %extend LocOpe_WiresOnShape { %pythoncode { @@ -2578,51 +2267,7 @@ class LocOpe_GluedShape : public LocOpe_GeneratedShape { }; -%extend LocOpe_GluedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_LocOpe_GluedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_LocOpe_GluedShape::Handle_LocOpe_GluedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_LocOpe_GluedShape; -class Handle_LocOpe_GluedShape : public Handle_LocOpe_GeneratedShape { - - public: - // constructors - Handle_LocOpe_GluedShape(); - Handle_LocOpe_GluedShape(const Handle_LocOpe_GluedShape &aHandle); - Handle_LocOpe_GluedShape(const LocOpe_GluedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_LocOpe_GluedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_LocOpe_GluedShape { - LocOpe_GluedShape* _get_reference() { - return (LocOpe_GluedShape*)$self->Access(); - } -}; - -%extend Handle_LocOpe_GluedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(LocOpe_GluedShape) %extend LocOpe_GluedShape { %pythoncode { diff --git a/src/SWIG_files/wrapper/LocalAnalysis.i b/src/SWIG_files/wrapper/LocalAnalysis.i index be235ed20..1295c88fe 100644 --- a/src/SWIG_files/wrapper/LocalAnalysis.i +++ b/src/SWIG_files/wrapper/LocalAnalysis.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define LOCALANALYSISDOCSTRING -"No docstring provided." +"-Purpose: +This package gives tools to check the local continuity +between two points situated on two curves or two surfaces. +" %enddef %module (package="OCC.Core", docstring=LOCALANALYSISDOCSTRING) LocalAnalysis @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include LocalAnalysis_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -67,6 +56,7 @@ enum LocalAnalysis_StatusErrorType { /* end public enums declaration */ + %rename(localanalysis) LocalAnalysis; class LocalAnalysis { public: diff --git a/src/SWIG_files/wrapper/MAT.i b/src/SWIG_files/wrapper/MAT.i index 6861593a0..9818fd1aa 100644 --- a/src/SWIG_files/wrapper/MAT.i +++ b/src/SWIG_files/wrapper/MAT.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define MATDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=MATDOCSTRING) MAT @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MAT_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -64,6 +50,24 @@ enum MAT_Side { /* end public enums declaration */ +%wrap_handle(MAT_Arc) +%wrap_handle(MAT_BasicElt) +%wrap_handle(MAT_Bisector) +%wrap_handle(MAT_DataMapNodeOfDataMapOfIntegerArc) +%wrap_handle(MAT_DataMapNodeOfDataMapOfIntegerBasicElt) +%wrap_handle(MAT_DataMapNodeOfDataMapOfIntegerBisector) +%wrap_handle(MAT_DataMapNodeOfDataMapOfIntegerNode) +%wrap_handle(MAT_Edge) +%wrap_handle(MAT_Graph) +%wrap_handle(MAT_ListOfBisector) +%wrap_handle(MAT_ListOfEdge) +%wrap_handle(MAT_Node) +%wrap_handle(MAT_SequenceNodeOfSequenceOfArc) +%wrap_handle(MAT_SequenceNodeOfSequenceOfBasicElt) +%wrap_handle(MAT_TListNodeOfListOfBisector) +%wrap_handle(MAT_TListNodeOfListOfEdge) +%wrap_handle(MAT_Zone) + %nodefaultctor MAT_Arc; class MAT_Arc : public MMgt_TShared { public: @@ -208,51 +212,7 @@ class MAT_Arc : public MMgt_TShared { }; -%extend MAT_Arc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_Arc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_Arc::Handle_MAT_Arc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_Arc; -class Handle_MAT_Arc : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_Arc(); - Handle_MAT_Arc(const Handle_MAT_Arc &aHandle); - Handle_MAT_Arc(const MAT_Arc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_Arc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_Arc { - MAT_Arc* _get_reference() { - return (MAT_Arc*)$self->Access(); - } -}; - -%extend Handle_MAT_Arc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_Arc) %extend MAT_Arc { %pythoncode { @@ -321,51 +281,7 @@ class MAT_BasicElt : public MMgt_TShared { }; -%extend MAT_BasicElt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_BasicElt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_BasicElt::Handle_MAT_BasicElt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_BasicElt; -class Handle_MAT_BasicElt : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_BasicElt(); - Handle_MAT_BasicElt(const Handle_MAT_BasicElt &aHandle); - Handle_MAT_BasicElt(const MAT_BasicElt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_BasicElt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_BasicElt { - MAT_BasicElt* _get_reference() { - return (MAT_BasicElt*)$self->Access(); - } -}; - -%extend Handle_MAT_BasicElt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_BasicElt) %extend MAT_BasicElt { %pythoncode { @@ -528,51 +444,7 @@ class MAT_Bisector : public MMgt_TShared { }; -%extend MAT_Bisector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_Bisector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_Bisector::Handle_MAT_Bisector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_Bisector; -class Handle_MAT_Bisector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_Bisector(); - Handle_MAT_Bisector(const Handle_MAT_Bisector &aHandle); - Handle_MAT_Bisector(const MAT_Bisector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_Bisector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_Bisector { - MAT_Bisector* _get_reference() { - return (MAT_Bisector*)$self->Access(); - } -}; - -%extend Handle_MAT_Bisector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_Bisector) %extend MAT_Bisector { %pythoncode { @@ -752,51 +624,7 @@ class MAT_DataMapNodeOfDataMapOfIntegerArc : public TCollection_MapNode { }; -%extend MAT_DataMapNodeOfDataMapOfIntegerArc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_DataMapNodeOfDataMapOfIntegerArc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_DataMapNodeOfDataMapOfIntegerArc::Handle_MAT_DataMapNodeOfDataMapOfIntegerArc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_DataMapNodeOfDataMapOfIntegerArc; -class Handle_MAT_DataMapNodeOfDataMapOfIntegerArc : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT_DataMapNodeOfDataMapOfIntegerArc(); - Handle_MAT_DataMapNodeOfDataMapOfIntegerArc(const Handle_MAT_DataMapNodeOfDataMapOfIntegerArc &aHandle); - Handle_MAT_DataMapNodeOfDataMapOfIntegerArc(const MAT_DataMapNodeOfDataMapOfIntegerArc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_DataMapNodeOfDataMapOfIntegerArc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerArc { - MAT_DataMapNodeOfDataMapOfIntegerArc* _get_reference() { - return (MAT_DataMapNodeOfDataMapOfIntegerArc*)$self->Access(); - } -}; - -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerArc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_DataMapNodeOfDataMapOfIntegerArc) %extend MAT_DataMapNodeOfDataMapOfIntegerArc { %pythoncode { @@ -836,51 +664,7 @@ class MAT_DataMapNodeOfDataMapOfIntegerBasicElt : public TCollection_MapNode { }; -%extend MAT_DataMapNodeOfDataMapOfIntegerBasicElt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt::Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt; -class Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt(); - Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt(const Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt &aHandle); - Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt(const MAT_DataMapNodeOfDataMapOfIntegerBasicElt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt { - MAT_DataMapNodeOfDataMapOfIntegerBasicElt* _get_reference() { - return (MAT_DataMapNodeOfDataMapOfIntegerBasicElt*)$self->Access(); - } -}; - -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerBasicElt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_DataMapNodeOfDataMapOfIntegerBasicElt) %extend MAT_DataMapNodeOfDataMapOfIntegerBasicElt { %pythoncode { @@ -920,51 +704,7 @@ class MAT_DataMapNodeOfDataMapOfIntegerBisector : public TCollection_MapNode { }; -%extend MAT_DataMapNodeOfDataMapOfIntegerBisector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector::Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector; -class Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector(); - Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector(const Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector &aHandle); - Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector(const MAT_DataMapNodeOfDataMapOfIntegerBisector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector { - MAT_DataMapNodeOfDataMapOfIntegerBisector* _get_reference() { - return (MAT_DataMapNodeOfDataMapOfIntegerBisector*)$self->Access(); - } -}; - -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerBisector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_DataMapNodeOfDataMapOfIntegerBisector) %extend MAT_DataMapNodeOfDataMapOfIntegerBisector { %pythoncode { @@ -1004,51 +744,7 @@ class MAT_DataMapNodeOfDataMapOfIntegerNode : public TCollection_MapNode { }; -%extend MAT_DataMapNodeOfDataMapOfIntegerNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_DataMapNodeOfDataMapOfIntegerNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_DataMapNodeOfDataMapOfIntegerNode::Handle_MAT_DataMapNodeOfDataMapOfIntegerNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_DataMapNodeOfDataMapOfIntegerNode; -class Handle_MAT_DataMapNodeOfDataMapOfIntegerNode : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT_DataMapNodeOfDataMapOfIntegerNode(); - Handle_MAT_DataMapNodeOfDataMapOfIntegerNode(const Handle_MAT_DataMapNodeOfDataMapOfIntegerNode &aHandle); - Handle_MAT_DataMapNodeOfDataMapOfIntegerNode(const MAT_DataMapNodeOfDataMapOfIntegerNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_DataMapNodeOfDataMapOfIntegerNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerNode { - MAT_DataMapNodeOfDataMapOfIntegerNode* _get_reference() { - return (MAT_DataMapNodeOfDataMapOfIntegerNode*)$self->Access(); - } -}; - -%extend Handle_MAT_DataMapNodeOfDataMapOfIntegerNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_DataMapNodeOfDataMapOfIntegerNode) %extend MAT_DataMapNodeOfDataMapOfIntegerNode { %pythoncode { @@ -1455,51 +1151,7 @@ class MAT_Edge : public MMgt_TShared { }; -%extend MAT_Edge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_Edge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_Edge::Handle_MAT_Edge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_Edge; -class Handle_MAT_Edge : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_Edge(); - Handle_MAT_Edge(const Handle_MAT_Edge &aHandle); - Handle_MAT_Edge(const MAT_Edge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_Edge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_Edge { - MAT_Edge* _get_reference() { - return (MAT_Edge*)$self->Access(); - } -}; - -%extend Handle_MAT_Edge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_Edge) %extend MAT_Edge { %pythoncode { @@ -1622,51 +1274,7 @@ class MAT_Graph : public MMgt_TShared { }; -%extend MAT_Graph { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_Graph(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_Graph::Handle_MAT_Graph %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_Graph; -class Handle_MAT_Graph : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_Graph(); - Handle_MAT_Graph(const Handle_MAT_Graph &aHandle); - Handle_MAT_Graph(const MAT_Graph *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_Graph DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_Graph { - MAT_Graph* _get_reference() { - return (MAT_Graph*)$self->Access(); - } -}; - -%extend Handle_MAT_Graph { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_Graph) %extend MAT_Graph { %pythoncode { @@ -1797,51 +1405,7 @@ class MAT_ListOfBisector : public MMgt_TShared { }; -%extend MAT_ListOfBisector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_ListOfBisector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_ListOfBisector::Handle_MAT_ListOfBisector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_ListOfBisector; -class Handle_MAT_ListOfBisector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_ListOfBisector(); - Handle_MAT_ListOfBisector(const Handle_MAT_ListOfBisector &aHandle); - Handle_MAT_ListOfBisector(const MAT_ListOfBisector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_ListOfBisector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_ListOfBisector { - MAT_ListOfBisector* _get_reference() { - return (MAT_ListOfBisector*)$self->Access(); - } -}; - -%extend Handle_MAT_ListOfBisector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_ListOfBisector) %extend MAT_ListOfBisector { %pythoncode { @@ -1972,51 +1536,7 @@ class MAT_ListOfEdge : public MMgt_TShared { }; -%extend MAT_ListOfEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_ListOfEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_ListOfEdge::Handle_MAT_ListOfEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_ListOfEdge; -class Handle_MAT_ListOfEdge : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_ListOfEdge(); - Handle_MAT_ListOfEdge(const Handle_MAT_ListOfEdge &aHandle); - Handle_MAT_ListOfEdge(const MAT_ListOfEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_ListOfEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_ListOfEdge { - MAT_ListOfEdge* _get_reference() { - return (MAT_ListOfEdge*)$self->Access(); - } -}; - -%extend Handle_MAT_ListOfEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_ListOfEdge) %extend MAT_ListOfEdge { %pythoncode { @@ -2103,51 +1623,7 @@ class MAT_Node : public MMgt_TShared { }; -%extend MAT_Node { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_Node(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_Node::Handle_MAT_Node %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_Node; -class Handle_MAT_Node : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_Node(); - Handle_MAT_Node(const Handle_MAT_Node &aHandle); - Handle_MAT_Node(const MAT_Node *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_Node DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_Node { - MAT_Node* _get_reference() { - return (MAT_Node*)$self->Access(); - } -}; - -%extend Handle_MAT_Node { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_Node) %extend MAT_Node { %pythoncode { @@ -2174,51 +1650,7 @@ class MAT_SequenceNodeOfSequenceOfArc : public TCollection_SeqNode { }; -%extend MAT_SequenceNodeOfSequenceOfArc { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_SequenceNodeOfSequenceOfArc(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_SequenceNodeOfSequenceOfArc::Handle_MAT_SequenceNodeOfSequenceOfArc %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_SequenceNodeOfSequenceOfArc; -class Handle_MAT_SequenceNodeOfSequenceOfArc : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MAT_SequenceNodeOfSequenceOfArc(); - Handle_MAT_SequenceNodeOfSequenceOfArc(const Handle_MAT_SequenceNodeOfSequenceOfArc &aHandle); - Handle_MAT_SequenceNodeOfSequenceOfArc(const MAT_SequenceNodeOfSequenceOfArc *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_SequenceNodeOfSequenceOfArc DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_SequenceNodeOfSequenceOfArc { - MAT_SequenceNodeOfSequenceOfArc* _get_reference() { - return (MAT_SequenceNodeOfSequenceOfArc*)$self->Access(); - } -}; - -%extend Handle_MAT_SequenceNodeOfSequenceOfArc { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_SequenceNodeOfSequenceOfArc) %extend MAT_SequenceNodeOfSequenceOfArc { %pythoncode { @@ -2245,51 +1677,7 @@ class MAT_SequenceNodeOfSequenceOfBasicElt : public TCollection_SeqNode { }; -%extend MAT_SequenceNodeOfSequenceOfBasicElt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_SequenceNodeOfSequenceOfBasicElt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_SequenceNodeOfSequenceOfBasicElt::Handle_MAT_SequenceNodeOfSequenceOfBasicElt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_SequenceNodeOfSequenceOfBasicElt; -class Handle_MAT_SequenceNodeOfSequenceOfBasicElt : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MAT_SequenceNodeOfSequenceOfBasicElt(); - Handle_MAT_SequenceNodeOfSequenceOfBasicElt(const Handle_MAT_SequenceNodeOfSequenceOfBasicElt &aHandle); - Handle_MAT_SequenceNodeOfSequenceOfBasicElt(const MAT_SequenceNodeOfSequenceOfBasicElt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_SequenceNodeOfSequenceOfBasicElt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_SequenceNodeOfSequenceOfBasicElt { - MAT_SequenceNodeOfSequenceOfBasicElt* _get_reference() { - return (MAT_SequenceNodeOfSequenceOfBasicElt*)$self->Access(); - } -}; - -%extend Handle_MAT_SequenceNodeOfSequenceOfBasicElt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_SequenceNodeOfSequenceOfBasicElt) %extend MAT_SequenceNodeOfSequenceOfBasicElt { %pythoncode { @@ -2632,51 +2020,7 @@ class MAT_TListNodeOfListOfBisector : public MMgt_TShared { }; -%extend MAT_TListNodeOfListOfBisector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_TListNodeOfListOfBisector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_TListNodeOfListOfBisector::Handle_MAT_TListNodeOfListOfBisector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_TListNodeOfListOfBisector; -class Handle_MAT_TListNodeOfListOfBisector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_TListNodeOfListOfBisector(); - Handle_MAT_TListNodeOfListOfBisector(const Handle_MAT_TListNodeOfListOfBisector &aHandle); - Handle_MAT_TListNodeOfListOfBisector(const MAT_TListNodeOfListOfBisector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_TListNodeOfListOfBisector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_TListNodeOfListOfBisector { - MAT_TListNodeOfListOfBisector* _get_reference() { - return (MAT_TListNodeOfListOfBisector*)$self->Access(); - } -}; - -%extend Handle_MAT_TListNodeOfListOfBisector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_TListNodeOfListOfBisector) %extend MAT_TListNodeOfListOfBisector { %pythoncode { @@ -2733,51 +2077,7 @@ class MAT_TListNodeOfListOfEdge : public MMgt_TShared { }; -%extend MAT_TListNodeOfListOfEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_TListNodeOfListOfEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_TListNodeOfListOfEdge::Handle_MAT_TListNodeOfListOfEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_TListNodeOfListOfEdge; -class Handle_MAT_TListNodeOfListOfEdge : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_TListNodeOfListOfEdge(); - Handle_MAT_TListNodeOfListOfEdge(const Handle_MAT_TListNodeOfListOfEdge &aHandle); - Handle_MAT_TListNodeOfListOfEdge(const MAT_TListNodeOfListOfEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_TListNodeOfListOfEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_TListNodeOfListOfEdge { - MAT_TListNodeOfListOfEdge* _get_reference() { - return (MAT_TListNodeOfListOfEdge*)$self->Access(); - } -}; - -%extend Handle_MAT_TListNodeOfListOfEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_TListNodeOfListOfEdge) %extend MAT_TListNodeOfListOfEdge { %pythoncode { @@ -2836,51 +2136,7 @@ class MAT_Zone : public MMgt_TShared { }; -%extend MAT_Zone { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT_Zone(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT_Zone::Handle_MAT_Zone %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT_Zone; -class Handle_MAT_Zone : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT_Zone(); - Handle_MAT_Zone(const Handle_MAT_Zone &aHandle); - Handle_MAT_Zone(const MAT_Zone *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT_Zone DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT_Zone { - MAT_Zone* _get_reference() { - return (MAT_Zone*)$self->Access(); - } -}; - -%extend Handle_MAT_Zone { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT_Zone) %extend MAT_Zone { %pythoncode { diff --git a/src/SWIG_files/wrapper/MAT2d.i b/src/SWIG_files/wrapper/MAT2d.i index 18d692b4c..b5ce2428c 100644 --- a/src/SWIG_files/wrapper/MAT2d.i +++ b/src/SWIG_files/wrapper/MAT2d.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define MAT2DDOCSTRING -"No docstring provided." +"-Purpose : Package of computation of Bisector locus on a +Set of geometrys from Geom2d. +" %enddef %module (package="OCC.Core", docstring=MAT2DDOCSTRING) MAT2d @@ -34,31 +36,30 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MAT2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MAT2d_Circuit) +%wrap_handle(MAT2d_Connexion) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfBiIntInteger) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfIntegerBisec) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfIntegerConnexion) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion) +%wrap_handle(MAT2d_DataMapNodeOfDataMapOfIntegerVec2d) +%wrap_handle(MAT2d_SequenceNodeOfSequenceOfConnexion) +%wrap_handle(MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve) +%wrap_handle(MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry) + %nodefaultctor MAT2d_Array2OfConnexion; class MAT2d_Array2OfConnexion { public: @@ -301,51 +302,7 @@ class MAT2d_Circuit : public MMgt_TShared { }; -%extend MAT2d_Circuit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_Circuit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_Circuit::Handle_MAT2d_Circuit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_Circuit; -class Handle_MAT2d_Circuit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT2d_Circuit(); - Handle_MAT2d_Circuit(const Handle_MAT2d_Circuit &aHandle); - Handle_MAT2d_Circuit(const MAT2d_Circuit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_Circuit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_Circuit { - MAT2d_Circuit* _get_reference() { - return (MAT2d_Circuit*)$self->Access(); - } -}; - -%extend Handle_MAT2d_Circuit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_Circuit) %extend MAT2d_Circuit { %pythoncode { @@ -518,51 +475,7 @@ class MAT2d_Connexion : public MMgt_TShared { }; -%extend MAT2d_Connexion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_Connexion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_Connexion::Handle_MAT2d_Connexion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_Connexion; -class Handle_MAT2d_Connexion : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MAT2d_Connexion(); - Handle_MAT2d_Connexion(const Handle_MAT2d_Connexion &aHandle); - Handle_MAT2d_Connexion(const MAT2d_Connexion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_Connexion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_Connexion { - MAT2d_Connexion* _get_reference() { - return (MAT2d_Connexion*)$self->Access(); - } -}; - -%extend Handle_MAT2d_Connexion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_Connexion) %extend MAT2d_Connexion { %pythoncode { @@ -847,51 +760,7 @@ class MAT2d_DataMapNodeOfDataMapOfBiIntInteger : public TCollection_MapNode { }; -%extend MAT2d_DataMapNodeOfDataMapOfBiIntInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger::Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger; -class Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger(); - Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger(const Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger(const MAT2d_DataMapNodeOfDataMapOfBiIntInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger { - MAT2d_DataMapNodeOfDataMapOfBiIntInteger* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfBiIntInteger*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfBiIntInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfBiIntInteger) %extend MAT2d_DataMapNodeOfDataMapOfBiIntInteger { %pythoncode { @@ -922,51 +791,7 @@ class MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger : public TCollection_Ma }; -%extend MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger::Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger; -class Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger(); - Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger(const Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger(const MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger { - MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger) %extend MAT2d_DataMapNodeOfDataMapOfBiIntSequenceOfInteger { %pythoncode { @@ -1006,51 +831,7 @@ class MAT2d_DataMapNodeOfDataMapOfIntegerBisec : public TCollection_MapNode { }; -%extend MAT2d_DataMapNodeOfDataMapOfIntegerBisec { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec::Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec; -class Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec(); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec(const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec(const MAT2d_DataMapNodeOfDataMapOfIntegerBisec *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec { - MAT2d_DataMapNodeOfDataMapOfIntegerBisec* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfIntegerBisec*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerBisec { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfIntegerBisec) %extend MAT2d_DataMapNodeOfDataMapOfIntegerBisec { %pythoncode { @@ -1090,51 +871,7 @@ class MAT2d_DataMapNodeOfDataMapOfIntegerConnexion : public TCollection_MapNode }; -%extend MAT2d_DataMapNodeOfDataMapOfIntegerConnexion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion::Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion; -class Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion(); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion(const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion(const MAT2d_DataMapNodeOfDataMapOfIntegerConnexion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion { - MAT2d_DataMapNodeOfDataMapOfIntegerConnexion* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfIntegerConnexion*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerConnexion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfIntegerConnexion) %extend MAT2d_DataMapNodeOfDataMapOfIntegerConnexion { %pythoncode { @@ -1174,51 +911,7 @@ class MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d : public TCollection_MapNode { }; -%extend MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d::Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d; -class Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d(); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d(const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d(const MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d { - MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d) %extend MAT2d_DataMapNodeOfDataMapOfIntegerPnt2d { %pythoncode { @@ -1258,51 +951,7 @@ class MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion : public TCollectio }; -%extend MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion::Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion; -class Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion(); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion(const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion(const MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion { - MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion) %extend MAT2d_DataMapNodeOfDataMapOfIntegerSequenceOfConnexion { %pythoncode { @@ -1342,51 +991,7 @@ class MAT2d_DataMapNodeOfDataMapOfIntegerVec2d : public TCollection_MapNode { }; -%extend MAT2d_DataMapNodeOfDataMapOfIntegerVec2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d::Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d; -class Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d(); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d(const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d &aHandle); - Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d(const MAT2d_DataMapNodeOfDataMapOfIntegerVec2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d { - MAT2d_DataMapNodeOfDataMapOfIntegerVec2d* _get_reference() { - return (MAT2d_DataMapNodeOfDataMapOfIntegerVec2d*)$self->Access(); - } -}; - -%extend Handle_MAT2d_DataMapNodeOfDataMapOfIntegerVec2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_DataMapNodeOfDataMapOfIntegerVec2d) %extend MAT2d_DataMapNodeOfDataMapOfIntegerVec2d { %pythoncode { @@ -2168,51 +1773,7 @@ class MAT2d_SequenceNodeOfSequenceOfConnexion : public TCollection_SeqNode { }; -%extend MAT2d_SequenceNodeOfSequenceOfConnexion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_SequenceNodeOfSequenceOfConnexion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_SequenceNodeOfSequenceOfConnexion::Handle_MAT2d_SequenceNodeOfSequenceOfConnexion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_SequenceNodeOfSequenceOfConnexion; -class Handle_MAT2d_SequenceNodeOfSequenceOfConnexion : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MAT2d_SequenceNodeOfSequenceOfConnexion(); - Handle_MAT2d_SequenceNodeOfSequenceOfConnexion(const Handle_MAT2d_SequenceNodeOfSequenceOfConnexion &aHandle); - Handle_MAT2d_SequenceNodeOfSequenceOfConnexion(const MAT2d_SequenceNodeOfSequenceOfConnexion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_SequenceNodeOfSequenceOfConnexion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_SequenceNodeOfSequenceOfConnexion { - MAT2d_SequenceNodeOfSequenceOfConnexion* _get_reference() { - return (MAT2d_SequenceNodeOfSequenceOfConnexion*)$self->Access(); - } -}; - -%extend Handle_MAT2d_SequenceNodeOfSequenceOfConnexion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_SequenceNodeOfSequenceOfConnexion) %extend MAT2d_SequenceNodeOfSequenceOfConnexion { %pythoncode { @@ -2239,51 +1800,7 @@ class MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve : public TCollection_SeqNode }; -%extend MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve::Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve; -class Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve(); - Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve(const Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve &aHandle); - Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve(const MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve { - MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve* _get_reference() { - return (MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve*)$self->Access(); - } -}; - -%extend Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve) %extend MAT2d_SequenceNodeOfSequenceOfSequenceOfCurve { %pythoncode { @@ -2310,51 +1827,7 @@ class MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry : public TCollection_SeqN }; -%extend MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry::Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry; -class Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry(); - Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry(const Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry &aHandle); - Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry(const MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry { - MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry* _get_reference() { - return (MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry*)$self->Access(); - } -}; - -%extend Handle_MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry) %extend MAT2d_SequenceNodeOfSequenceOfSequenceOfGeometry { %pythoncode { diff --git a/src/SWIG_files/wrapper/MDF.i b/src/SWIG_files/wrapper/MDF.i index cde435672..426332ee2 100644 --- a/src/SWIG_files/wrapper/MDF.i +++ b/src/SWIG_files/wrapper/MDF.i @@ -18,7 +18,30 @@ along with pythonOCC. If not, see . */ %define MDFDOCSTRING -"No docstring provided." +"This package provides classes and methods to +translate a transient DF into a persistent one and +vice versa. + +Driver + +A driver is a tool used to translate a transient +attribute into a persistent one and vice versa. + +Relocation Table + +A relocation table is a tool who provides services +to relocate transient objects into persistent ones +(or vice versa). It uses a map system to keep the +sharing. This service is used by the drivers. + +Driver Table + +A driver table is an object building links between +object types and object drivers. In the +translation process, a driver table is asked to +give a translation driver for each current object +to be translated. +" %enddef %module (package="OCC.Core", docstring=MDFDOCSTRING) MDF @@ -34,31 +57,38 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MDF_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MDF_ARDriver) +%wrap_handle(MDF_ARDriverHSequence) +%wrap_handle(MDF_ARDriverTable) +%wrap_handle(MDF_ASDriver) +%wrap_handle(MDF_ASDriverHSequence) +%wrap_handle(MDF_ASDriverTable) +%wrap_handle(MDF_DataMapNodeOfTypeARDriverMap) +%wrap_handle(MDF_DataMapNodeOfTypeASDriverMap) +%wrap_handle(MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable) +%wrap_handle(MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable) +%wrap_handle(MDF_ListNodeOfDriverListOfARDriverTable) +%wrap_handle(MDF_ListNodeOfDriverListOfASDriverTable) +%wrap_handle(MDF_RRelocationTable) +%wrap_handle(MDF_SRelocationTable) +%wrap_handle(MDF_SequenceNodeOfARDriverSequence) +%wrap_handle(MDF_SequenceNodeOfASDriverSequence) +%wrap_handle(MDF_ReferenceRetrievalDriver) +%wrap_handle(MDF_ReferenceStorageDriver) +%wrap_handle(MDF_TagSourceRetrievalDriver) +%wrap_handle(MDF_TagSourceStorageDriver) + %rename(mdf) MDF; class MDF { public: @@ -164,51 +194,7 @@ class MDF_ARDriver : public MMgt_TShared { }; -%extend MDF_ARDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ARDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ARDriver::Handle_MDF_ARDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ARDriver; -class Handle_MDF_ARDriver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_ARDriver(); - Handle_MDF_ARDriver(const Handle_MDF_ARDriver &aHandle); - Handle_MDF_ARDriver(const MDF_ARDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ARDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ARDriver { - MDF_ARDriver* _get_reference() { - return (MDF_ARDriver*)$self->Access(); - } -}; - -%extend Handle_MDF_ARDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ARDriver) %extend MDF_ARDriver { %pythoncode { @@ -353,51 +339,7 @@ class MDF_ARDriverHSequence : public MMgt_TShared { }; -%extend MDF_ARDriverHSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ARDriverHSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ARDriverHSequence::Handle_MDF_ARDriverHSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ARDriverHSequence; -class Handle_MDF_ARDriverHSequence : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_ARDriverHSequence(); - Handle_MDF_ARDriverHSequence(const Handle_MDF_ARDriverHSequence &aHandle); - Handle_MDF_ARDriverHSequence(const MDF_ARDriverHSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ARDriverHSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ARDriverHSequence { - MDF_ARDriverHSequence* _get_reference() { - return (MDF_ARDriverHSequence*)$self->Access(); - } -}; - -%extend Handle_MDF_ARDriverHSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ARDriverHSequence) %extend MDF_ARDriverHSequence { %pythoncode { @@ -585,51 +527,7 @@ class MDF_ARDriverTable : public MMgt_TShared { }; -%extend MDF_ARDriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ARDriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ARDriverTable::Handle_MDF_ARDriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ARDriverTable; -class Handle_MDF_ARDriverTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_ARDriverTable(); - Handle_MDF_ARDriverTable(const Handle_MDF_ARDriverTable &aHandle); - Handle_MDF_ARDriverTable(const MDF_ARDriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ARDriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ARDriverTable { - MDF_ARDriverTable* _get_reference() { - return (MDF_ARDriverTable*)$self->Access(); - } -}; - -%extend Handle_MDF_ARDriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ARDriverTable) %extend MDF_ARDriverTable { %pythoncode { @@ -680,51 +578,7 @@ class MDF_ASDriver : public MMgt_TShared { }; -%extend MDF_ASDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ASDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ASDriver::Handle_MDF_ASDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ASDriver; -class Handle_MDF_ASDriver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_ASDriver(); - Handle_MDF_ASDriver(const Handle_MDF_ASDriver &aHandle); - Handle_MDF_ASDriver(const MDF_ASDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ASDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ASDriver { - MDF_ASDriver* _get_reference() { - return (MDF_ASDriver*)$self->Access(); - } -}; - -%extend Handle_MDF_ASDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ASDriver) %extend MDF_ASDriver { %pythoncode { @@ -869,51 +723,7 @@ class MDF_ASDriverHSequence : public MMgt_TShared { }; -%extend MDF_ASDriverHSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ASDriverHSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ASDriverHSequence::Handle_MDF_ASDriverHSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ASDriverHSequence; -class Handle_MDF_ASDriverHSequence : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_ASDriverHSequence(); - Handle_MDF_ASDriverHSequence(const Handle_MDF_ASDriverHSequence &aHandle); - Handle_MDF_ASDriverHSequence(const MDF_ASDriverHSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ASDriverHSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ASDriverHSequence { - MDF_ASDriverHSequence* _get_reference() { - return (MDF_ASDriverHSequence*)$self->Access(); - } -}; - -%extend Handle_MDF_ASDriverHSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ASDriverHSequence) %extend MDF_ASDriverHSequence { %pythoncode { @@ -1101,51 +911,7 @@ class MDF_ASDriverTable : public MMgt_TShared { }; -%extend MDF_ASDriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ASDriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ASDriverTable::Handle_MDF_ASDriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ASDriverTable; -class Handle_MDF_ASDriverTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_ASDriverTable(); - Handle_MDF_ASDriverTable(const Handle_MDF_ASDriverTable &aHandle); - Handle_MDF_ASDriverTable(const MDF_ASDriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ASDriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ASDriverTable { - MDF_ASDriverTable* _get_reference() { - return (MDF_ASDriverTable*)$self->Access(); - } -}; - -%extend Handle_MDF_ASDriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ASDriverTable) %extend MDF_ASDriverTable { %pythoncode { @@ -1316,51 +1082,7 @@ class MDF_DataMapNodeOfTypeARDriverMap : public TCollection_MapNode { }; -%extend MDF_DataMapNodeOfTypeARDriverMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_DataMapNodeOfTypeARDriverMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_DataMapNodeOfTypeARDriverMap::Handle_MDF_DataMapNodeOfTypeARDriverMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_DataMapNodeOfTypeARDriverMap; -class Handle_MDF_DataMapNodeOfTypeARDriverMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MDF_DataMapNodeOfTypeARDriverMap(); - Handle_MDF_DataMapNodeOfTypeARDriverMap(const Handle_MDF_DataMapNodeOfTypeARDriverMap &aHandle); - Handle_MDF_DataMapNodeOfTypeARDriverMap(const MDF_DataMapNodeOfTypeARDriverMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_DataMapNodeOfTypeARDriverMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_DataMapNodeOfTypeARDriverMap { - MDF_DataMapNodeOfTypeARDriverMap* _get_reference() { - return (MDF_DataMapNodeOfTypeARDriverMap*)$self->Access(); - } -}; - -%extend Handle_MDF_DataMapNodeOfTypeARDriverMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_DataMapNodeOfTypeARDriverMap) %extend MDF_DataMapNodeOfTypeARDriverMap { %pythoncode { @@ -1391,51 +1113,7 @@ class MDF_DataMapNodeOfTypeASDriverMap : public TCollection_MapNode { }; -%extend MDF_DataMapNodeOfTypeASDriverMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_DataMapNodeOfTypeASDriverMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_DataMapNodeOfTypeASDriverMap::Handle_MDF_DataMapNodeOfTypeASDriverMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_DataMapNodeOfTypeASDriverMap; -class Handle_MDF_DataMapNodeOfTypeASDriverMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MDF_DataMapNodeOfTypeASDriverMap(); - Handle_MDF_DataMapNodeOfTypeASDriverMap(const Handle_MDF_DataMapNodeOfTypeASDriverMap &aHandle); - Handle_MDF_DataMapNodeOfTypeASDriverMap(const MDF_DataMapNodeOfTypeASDriverMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_DataMapNodeOfTypeASDriverMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_DataMapNodeOfTypeASDriverMap { - MDF_DataMapNodeOfTypeASDriverMap* _get_reference() { - return (MDF_DataMapNodeOfTypeASDriverMap*)$self->Access(); - } -}; - -%extend Handle_MDF_DataMapNodeOfTypeASDriverMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_DataMapNodeOfTypeASDriverMap) %extend MDF_DataMapNodeOfTypeASDriverMap { %pythoncode { @@ -1466,51 +1144,7 @@ class MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable : public TCollection_Map }; -%extend MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable::Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable; -class Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable(); - Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable(const Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable &aHandle); - Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable(const MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable { - MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable* _get_reference() { - return (MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable*)$self->Access(); - } -}; - -%extend Handle_MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable) %extend MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable { %pythoncode { @@ -1541,51 +1175,7 @@ class MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable : public TCollection_Map }; -%extend MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable::Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable; -class Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable(); - Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable(const Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable &aHandle); - Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable(const MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable { - MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable* _get_reference() { - return (MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable*)$self->Access(); - } -}; - -%extend Handle_MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable) %extend MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable { %pythoncode { @@ -1958,51 +1548,7 @@ class MDF_ListNodeOfDriverListOfARDriverTable : public TCollection_MapNode { }; -%extend MDF_ListNodeOfDriverListOfARDriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ListNodeOfDriverListOfARDriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ListNodeOfDriverListOfARDriverTable::Handle_MDF_ListNodeOfDriverListOfARDriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ListNodeOfDriverListOfARDriverTable; -class Handle_MDF_ListNodeOfDriverListOfARDriverTable : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MDF_ListNodeOfDriverListOfARDriverTable(); - Handle_MDF_ListNodeOfDriverListOfARDriverTable(const Handle_MDF_ListNodeOfDriverListOfARDriverTable &aHandle); - Handle_MDF_ListNodeOfDriverListOfARDriverTable(const MDF_ListNodeOfDriverListOfARDriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ListNodeOfDriverListOfARDriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ListNodeOfDriverListOfARDriverTable { - MDF_ListNodeOfDriverListOfARDriverTable* _get_reference() { - return (MDF_ListNodeOfDriverListOfARDriverTable*)$self->Access(); - } -}; - -%extend Handle_MDF_ListNodeOfDriverListOfARDriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ListNodeOfDriverListOfARDriverTable) %extend MDF_ListNodeOfDriverListOfARDriverTable { %pythoncode { @@ -2027,51 +1573,7 @@ class MDF_ListNodeOfDriverListOfASDriverTable : public TCollection_MapNode { }; -%extend MDF_ListNodeOfDriverListOfASDriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ListNodeOfDriverListOfASDriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ListNodeOfDriverListOfASDriverTable::Handle_MDF_ListNodeOfDriverListOfASDriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ListNodeOfDriverListOfASDriverTable; -class Handle_MDF_ListNodeOfDriverListOfASDriverTable : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MDF_ListNodeOfDriverListOfASDriverTable(); - Handle_MDF_ListNodeOfDriverListOfASDriverTable(const Handle_MDF_ListNodeOfDriverListOfASDriverTable &aHandle); - Handle_MDF_ListNodeOfDriverListOfASDriverTable(const MDF_ListNodeOfDriverListOfASDriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ListNodeOfDriverListOfASDriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ListNodeOfDriverListOfASDriverTable { - MDF_ListNodeOfDriverListOfASDriverTable* _get_reference() { - return (MDF_ListNodeOfDriverListOfASDriverTable*)$self->Access(); - } -}; - -%extend Handle_MDF_ListNodeOfDriverListOfASDriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ListNodeOfDriverListOfASDriverTable) %extend MDF_ListNodeOfDriverListOfASDriverTable { %pythoncode { @@ -2140,51 +1642,7 @@ class MDF_RRelocationTable : public MMgt_TShared { }; -%extend MDF_RRelocationTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_RRelocationTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_RRelocationTable::Handle_MDF_RRelocationTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_RRelocationTable; -class Handle_MDF_RRelocationTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_RRelocationTable(); - Handle_MDF_RRelocationTable(const Handle_MDF_RRelocationTable &aHandle); - Handle_MDF_RRelocationTable(const MDF_RRelocationTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_RRelocationTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_RRelocationTable { - MDF_RRelocationTable* _get_reference() { - return (MDF_RRelocationTable*)$self->Access(); - } -}; - -%extend Handle_MDF_RRelocationTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_RRelocationTable) %extend MDF_RRelocationTable { %pythoncode { @@ -2253,51 +1711,7 @@ class MDF_SRelocationTable : public MMgt_TShared { }; -%extend MDF_SRelocationTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_SRelocationTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_SRelocationTable::Handle_MDF_SRelocationTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_SRelocationTable; -class Handle_MDF_SRelocationTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MDF_SRelocationTable(); - Handle_MDF_SRelocationTable(const Handle_MDF_SRelocationTable &aHandle); - Handle_MDF_SRelocationTable(const MDF_SRelocationTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_SRelocationTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_SRelocationTable { - MDF_SRelocationTable* _get_reference() { - return (MDF_SRelocationTable*)$self->Access(); - } -}; - -%extend Handle_MDF_SRelocationTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_SRelocationTable) %extend MDF_SRelocationTable { %pythoncode { @@ -2324,51 +1738,7 @@ class MDF_SequenceNodeOfARDriverSequence : public TCollection_SeqNode { }; -%extend MDF_SequenceNodeOfARDriverSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_SequenceNodeOfARDriverSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_SequenceNodeOfARDriverSequence::Handle_MDF_SequenceNodeOfARDriverSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_SequenceNodeOfARDriverSequence; -class Handle_MDF_SequenceNodeOfARDriverSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MDF_SequenceNodeOfARDriverSequence(); - Handle_MDF_SequenceNodeOfARDriverSequence(const Handle_MDF_SequenceNodeOfARDriverSequence &aHandle); - Handle_MDF_SequenceNodeOfARDriverSequence(const MDF_SequenceNodeOfARDriverSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_SequenceNodeOfARDriverSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_SequenceNodeOfARDriverSequence { - MDF_SequenceNodeOfARDriverSequence* _get_reference() { - return (MDF_SequenceNodeOfARDriverSequence*)$self->Access(); - } -}; - -%extend Handle_MDF_SequenceNodeOfARDriverSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_SequenceNodeOfARDriverSequence) %extend MDF_SequenceNodeOfARDriverSequence { %pythoncode { @@ -2395,51 +1765,7 @@ class MDF_SequenceNodeOfASDriverSequence : public TCollection_SeqNode { }; -%extend MDF_SequenceNodeOfASDriverSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_SequenceNodeOfASDriverSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_SequenceNodeOfASDriverSequence::Handle_MDF_SequenceNodeOfASDriverSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_SequenceNodeOfASDriverSequence; -class Handle_MDF_SequenceNodeOfASDriverSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MDF_SequenceNodeOfASDriverSequence(); - Handle_MDF_SequenceNodeOfASDriverSequence(const Handle_MDF_SequenceNodeOfASDriverSequence &aHandle); - Handle_MDF_SequenceNodeOfASDriverSequence(const MDF_SequenceNodeOfASDriverSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_SequenceNodeOfASDriverSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_SequenceNodeOfASDriverSequence { - MDF_SequenceNodeOfASDriverSequence* _get_reference() { - return (MDF_SequenceNodeOfASDriverSequence*)$self->Access(); - } -}; - -%extend Handle_MDF_SequenceNodeOfASDriverSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_SequenceNodeOfASDriverSequence) %extend MDF_SequenceNodeOfASDriverSequence { %pythoncode { @@ -2914,51 +2240,7 @@ class MDF_ReferenceRetrievalDriver : public MDF_ARDriver { }; -%extend MDF_ReferenceRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ReferenceRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ReferenceRetrievalDriver::Handle_MDF_ReferenceRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ReferenceRetrievalDriver; -class Handle_MDF_ReferenceRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDF_ReferenceRetrievalDriver(); - Handle_MDF_ReferenceRetrievalDriver(const Handle_MDF_ReferenceRetrievalDriver &aHandle); - Handle_MDF_ReferenceRetrievalDriver(const MDF_ReferenceRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ReferenceRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ReferenceRetrievalDriver { - MDF_ReferenceRetrievalDriver* _get_reference() { - return (MDF_ReferenceRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDF_ReferenceRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ReferenceRetrievalDriver) %extend MDF_ReferenceRetrievalDriver { %pythoncode { @@ -3003,51 +2285,7 @@ class MDF_ReferenceStorageDriver : public MDF_ASDriver { }; -%extend MDF_ReferenceStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_ReferenceStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_ReferenceStorageDriver::Handle_MDF_ReferenceStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_ReferenceStorageDriver; -class Handle_MDF_ReferenceStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDF_ReferenceStorageDriver(); - Handle_MDF_ReferenceStorageDriver(const Handle_MDF_ReferenceStorageDriver &aHandle); - Handle_MDF_ReferenceStorageDriver(const MDF_ReferenceStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_ReferenceStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_ReferenceStorageDriver { - MDF_ReferenceStorageDriver* _get_reference() { - return (MDF_ReferenceStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDF_ReferenceStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_ReferenceStorageDriver) %extend MDF_ReferenceStorageDriver { %pythoncode { @@ -3092,51 +2330,7 @@ class MDF_TagSourceRetrievalDriver : public MDF_ARDriver { }; -%extend MDF_TagSourceRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_TagSourceRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_TagSourceRetrievalDriver::Handle_MDF_TagSourceRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_TagSourceRetrievalDriver; -class Handle_MDF_TagSourceRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDF_TagSourceRetrievalDriver(); - Handle_MDF_TagSourceRetrievalDriver(const Handle_MDF_TagSourceRetrievalDriver &aHandle); - Handle_MDF_TagSourceRetrievalDriver(const MDF_TagSourceRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_TagSourceRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_TagSourceRetrievalDriver { - MDF_TagSourceRetrievalDriver* _get_reference() { - return (MDF_TagSourceRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDF_TagSourceRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_TagSourceRetrievalDriver) %extend MDF_TagSourceRetrievalDriver { %pythoncode { @@ -3181,51 +2375,7 @@ class MDF_TagSourceStorageDriver : public MDF_ASDriver { }; -%extend MDF_TagSourceStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDF_TagSourceStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDF_TagSourceStorageDriver::Handle_MDF_TagSourceStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDF_TagSourceStorageDriver; -class Handle_MDF_TagSourceStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDF_TagSourceStorageDriver(); - Handle_MDF_TagSourceStorageDriver(const Handle_MDF_TagSourceStorageDriver &aHandle); - Handle_MDF_TagSourceStorageDriver(const MDF_TagSourceStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDF_TagSourceStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDF_TagSourceStorageDriver { - MDF_TagSourceStorageDriver* _get_reference() { - return (MDF_TagSourceStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDF_TagSourceStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDF_TagSourceStorageDriver) %extend MDF_TagSourceStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/MDataStd.i b/src/SWIG_files/wrapper/MDataStd.i index 4fad05264..7aee5faf4 100644 --- a/src/SWIG_files/wrapper/MDataStd.i +++ b/src/SWIG_files/wrapper/MDataStd.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define MDATASTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling +attributes. Transient attributes are defined in +package TDataStd and persistent one are defined in +package PDataStd +" %enddef %module (package="OCC.Core", docstring=MDATASTDDOCSTRING) MDataStd @@ -34,31 +38,75 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MDataStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MDataStd_AsciiStringRetrievalDriver) +%wrap_handle(MDataStd_AsciiStringStorageDriver) +%wrap_handle(MDataStd_BooleanArrayRetrievalDriver) +%wrap_handle(MDataStd_BooleanArrayStorageDriver) +%wrap_handle(MDataStd_BooleanListRetrievalDriver) +%wrap_handle(MDataStd_BooleanListStorageDriver) +%wrap_handle(MDataStd_ByteArrayRetrievalDriver) +%wrap_handle(MDataStd_ByteArrayRetrievalDriver_1) +%wrap_handle(MDataStd_ByteArrayStorageDriver) +%wrap_handle(MDataStd_CommentRetrievalDriver) +%wrap_handle(MDataStd_CommentStorageDriver) +%wrap_handle(MDataStd_DirectoryRetrievalDriver) +%wrap_handle(MDataStd_DirectoryStorageDriver) +%wrap_handle(MDataStd_ExpressionRetrievalDriver) +%wrap_handle(MDataStd_ExpressionStorageDriver) +%wrap_handle(MDataStd_ExtStringArrayRetrievalDriver) +%wrap_handle(MDataStd_ExtStringArrayRetrievalDriver_1) +%wrap_handle(MDataStd_ExtStringArrayStorageDriver) +%wrap_handle(MDataStd_ExtStringListRetrievalDriver) +%wrap_handle(MDataStd_ExtStringListStorageDriver) +%wrap_handle(MDataStd_IntPackedMapRetrievalDriver) +%wrap_handle(MDataStd_IntPackedMapRetrievalDriver_1) +%wrap_handle(MDataStd_IntPackedMapStorageDriver) +%wrap_handle(MDataStd_IntegerArrayRetrievalDriver) +%wrap_handle(MDataStd_IntegerArrayRetrievalDriver_1) +%wrap_handle(MDataStd_IntegerArrayStorageDriver) +%wrap_handle(MDataStd_IntegerListRetrievalDriver) +%wrap_handle(MDataStd_IntegerListStorageDriver) +%wrap_handle(MDataStd_IntegerRetrievalDriver) +%wrap_handle(MDataStd_IntegerStorageDriver) +%wrap_handle(MDataStd_NameRetrievalDriver) +%wrap_handle(MDataStd_NameStorageDriver) +%wrap_handle(MDataStd_NamedDataRetrievalDriver) +%wrap_handle(MDataStd_NamedDataStorageDriver) +%wrap_handle(MDataStd_NoteBookRetrievalDriver) +%wrap_handle(MDataStd_NoteBookStorageDriver) +%wrap_handle(MDataStd_RealArrayRetrievalDriver) +%wrap_handle(MDataStd_RealArrayRetrievalDriver_1) +%wrap_handle(MDataStd_RealArrayStorageDriver) +%wrap_handle(MDataStd_RealListRetrievalDriver) +%wrap_handle(MDataStd_RealListStorageDriver) +%wrap_handle(MDataStd_RealRetrievalDriver) +%wrap_handle(MDataStd_RealStorageDriver) +%wrap_handle(MDataStd_ReferenceArrayRetrievalDriver) +%wrap_handle(MDataStd_ReferenceArrayStorageDriver) +%wrap_handle(MDataStd_ReferenceListRetrievalDriver) +%wrap_handle(MDataStd_ReferenceListStorageDriver) +%wrap_handle(MDataStd_RelationRetrievalDriver) +%wrap_handle(MDataStd_RelationStorageDriver) +%wrap_handle(MDataStd_TickRetrievalDriver) +%wrap_handle(MDataStd_TickStorageDriver) +%wrap_handle(MDataStd_TreeNodeRetrievalDriver) +%wrap_handle(MDataStd_TreeNodeStorageDriver) +%wrap_handle(MDataStd_UAttributeRetrievalDriver) +%wrap_handle(MDataStd_UAttributeStorageDriver) +%wrap_handle(MDataStd_VariableRetrievalDriver) +%wrap_handle(MDataStd_VariableStorageDriver) + %rename(mdatastd) MDataStd; class MDataStd { public: @@ -140,51 +188,7 @@ class MDataStd_AsciiStringRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_AsciiStringRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_AsciiStringRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_AsciiStringRetrievalDriver::Handle_MDataStd_AsciiStringRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_AsciiStringRetrievalDriver; -class Handle_MDataStd_AsciiStringRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_AsciiStringRetrievalDriver(); - Handle_MDataStd_AsciiStringRetrievalDriver(const Handle_MDataStd_AsciiStringRetrievalDriver &aHandle); - Handle_MDataStd_AsciiStringRetrievalDriver(const MDataStd_AsciiStringRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_AsciiStringRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_AsciiStringRetrievalDriver { - MDataStd_AsciiStringRetrievalDriver* _get_reference() { - return (MDataStd_AsciiStringRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_AsciiStringRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_AsciiStringRetrievalDriver) %extend MDataStd_AsciiStringRetrievalDriver { %pythoncode { @@ -229,51 +233,7 @@ class MDataStd_AsciiStringStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_AsciiStringStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_AsciiStringStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_AsciiStringStorageDriver::Handle_MDataStd_AsciiStringStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_AsciiStringStorageDriver; -class Handle_MDataStd_AsciiStringStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_AsciiStringStorageDriver(); - Handle_MDataStd_AsciiStringStorageDriver(const Handle_MDataStd_AsciiStringStorageDriver &aHandle); - Handle_MDataStd_AsciiStringStorageDriver(const MDataStd_AsciiStringStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_AsciiStringStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_AsciiStringStorageDriver { - MDataStd_AsciiStringStorageDriver* _get_reference() { - return (MDataStd_AsciiStringStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_AsciiStringStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_AsciiStringStorageDriver) %extend MDataStd_AsciiStringStorageDriver { %pythoncode { @@ -314,51 +274,7 @@ class MDataStd_BooleanArrayRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_BooleanArrayRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_BooleanArrayRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_BooleanArrayRetrievalDriver::Handle_MDataStd_BooleanArrayRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_BooleanArrayRetrievalDriver; -class Handle_MDataStd_BooleanArrayRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_BooleanArrayRetrievalDriver(); - Handle_MDataStd_BooleanArrayRetrievalDriver(const Handle_MDataStd_BooleanArrayRetrievalDriver &aHandle); - Handle_MDataStd_BooleanArrayRetrievalDriver(const MDataStd_BooleanArrayRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_BooleanArrayRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_BooleanArrayRetrievalDriver { - MDataStd_BooleanArrayRetrievalDriver* _get_reference() { - return (MDataStd_BooleanArrayRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_BooleanArrayRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_BooleanArrayRetrievalDriver) %extend MDataStd_BooleanArrayRetrievalDriver { %pythoncode { @@ -399,51 +315,7 @@ class MDataStd_BooleanArrayStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_BooleanArrayStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_BooleanArrayStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_BooleanArrayStorageDriver::Handle_MDataStd_BooleanArrayStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_BooleanArrayStorageDriver; -class Handle_MDataStd_BooleanArrayStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_BooleanArrayStorageDriver(); - Handle_MDataStd_BooleanArrayStorageDriver(const Handle_MDataStd_BooleanArrayStorageDriver &aHandle); - Handle_MDataStd_BooleanArrayStorageDriver(const MDataStd_BooleanArrayStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_BooleanArrayStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_BooleanArrayStorageDriver { - MDataStd_BooleanArrayStorageDriver* _get_reference() { - return (MDataStd_BooleanArrayStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_BooleanArrayStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_BooleanArrayStorageDriver) %extend MDataStd_BooleanArrayStorageDriver { %pythoncode { @@ -484,51 +356,7 @@ class MDataStd_BooleanListRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_BooleanListRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_BooleanListRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_BooleanListRetrievalDriver::Handle_MDataStd_BooleanListRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_BooleanListRetrievalDriver; -class Handle_MDataStd_BooleanListRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_BooleanListRetrievalDriver(); - Handle_MDataStd_BooleanListRetrievalDriver(const Handle_MDataStd_BooleanListRetrievalDriver &aHandle); - Handle_MDataStd_BooleanListRetrievalDriver(const MDataStd_BooleanListRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_BooleanListRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_BooleanListRetrievalDriver { - MDataStd_BooleanListRetrievalDriver* _get_reference() { - return (MDataStd_BooleanListRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_BooleanListRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_BooleanListRetrievalDriver) %extend MDataStd_BooleanListRetrievalDriver { %pythoncode { @@ -569,51 +397,7 @@ class MDataStd_BooleanListStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_BooleanListStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_BooleanListStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_BooleanListStorageDriver::Handle_MDataStd_BooleanListStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_BooleanListStorageDriver; -class Handle_MDataStd_BooleanListStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_BooleanListStorageDriver(); - Handle_MDataStd_BooleanListStorageDriver(const Handle_MDataStd_BooleanListStorageDriver &aHandle); - Handle_MDataStd_BooleanListStorageDriver(const MDataStd_BooleanListStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_BooleanListStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_BooleanListStorageDriver { - MDataStd_BooleanListStorageDriver* _get_reference() { - return (MDataStd_BooleanListStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_BooleanListStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_BooleanListStorageDriver) %extend MDataStd_BooleanListStorageDriver { %pythoncode { @@ -654,51 +438,7 @@ class MDataStd_ByteArrayRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_ByteArrayRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ByteArrayRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ByteArrayRetrievalDriver::Handle_MDataStd_ByteArrayRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ByteArrayRetrievalDriver; -class Handle_MDataStd_ByteArrayRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ByteArrayRetrievalDriver(); - Handle_MDataStd_ByteArrayRetrievalDriver(const Handle_MDataStd_ByteArrayRetrievalDriver &aHandle); - Handle_MDataStd_ByteArrayRetrievalDriver(const MDataStd_ByteArrayRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ByteArrayRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ByteArrayRetrievalDriver { - MDataStd_ByteArrayRetrievalDriver* _get_reference() { - return (MDataStd_ByteArrayRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ByteArrayRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ByteArrayRetrievalDriver) %extend MDataStd_ByteArrayRetrievalDriver { %pythoncode { @@ -739,51 +479,7 @@ class MDataStd_ByteArrayRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MDataStd_ByteArrayRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ByteArrayRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ByteArrayRetrievalDriver_1::Handle_MDataStd_ByteArrayRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ByteArrayRetrievalDriver_1; -class Handle_MDataStd_ByteArrayRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ByteArrayRetrievalDriver_1(); - Handle_MDataStd_ByteArrayRetrievalDriver_1(const Handle_MDataStd_ByteArrayRetrievalDriver_1 &aHandle); - Handle_MDataStd_ByteArrayRetrievalDriver_1(const MDataStd_ByteArrayRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ByteArrayRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ByteArrayRetrievalDriver_1 { - MDataStd_ByteArrayRetrievalDriver_1* _get_reference() { - return (MDataStd_ByteArrayRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ByteArrayRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ByteArrayRetrievalDriver_1) %extend MDataStd_ByteArrayRetrievalDriver_1 { %pythoncode { @@ -824,51 +520,7 @@ class MDataStd_ByteArrayStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_ByteArrayStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ByteArrayStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ByteArrayStorageDriver::Handle_MDataStd_ByteArrayStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ByteArrayStorageDriver; -class Handle_MDataStd_ByteArrayStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_ByteArrayStorageDriver(); - Handle_MDataStd_ByteArrayStorageDriver(const Handle_MDataStd_ByteArrayStorageDriver &aHandle); - Handle_MDataStd_ByteArrayStorageDriver(const MDataStd_ByteArrayStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ByteArrayStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ByteArrayStorageDriver { - MDataStd_ByteArrayStorageDriver* _get_reference() { - return (MDataStd_ByteArrayStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ByteArrayStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ByteArrayStorageDriver) %extend MDataStd_ByteArrayStorageDriver { %pythoncode { @@ -913,51 +565,7 @@ class MDataStd_CommentRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_CommentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_CommentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_CommentRetrievalDriver::Handle_MDataStd_CommentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_CommentRetrievalDriver; -class Handle_MDataStd_CommentRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_CommentRetrievalDriver(); - Handle_MDataStd_CommentRetrievalDriver(const Handle_MDataStd_CommentRetrievalDriver &aHandle); - Handle_MDataStd_CommentRetrievalDriver(const MDataStd_CommentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_CommentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_CommentRetrievalDriver { - MDataStd_CommentRetrievalDriver* _get_reference() { - return (MDataStd_CommentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_CommentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_CommentRetrievalDriver) %extend MDataStd_CommentRetrievalDriver { %pythoncode { @@ -1002,51 +610,7 @@ class MDataStd_CommentStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_CommentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_CommentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_CommentStorageDriver::Handle_MDataStd_CommentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_CommentStorageDriver; -class Handle_MDataStd_CommentStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_CommentStorageDriver(); - Handle_MDataStd_CommentStorageDriver(const Handle_MDataStd_CommentStorageDriver &aHandle); - Handle_MDataStd_CommentStorageDriver(const MDataStd_CommentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_CommentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_CommentStorageDriver { - MDataStd_CommentStorageDriver* _get_reference() { - return (MDataStd_CommentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_CommentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_CommentStorageDriver) %extend MDataStd_CommentStorageDriver { %pythoncode { @@ -1091,51 +655,7 @@ class MDataStd_DirectoryRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_DirectoryRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_DirectoryRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_DirectoryRetrievalDriver::Handle_MDataStd_DirectoryRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_DirectoryRetrievalDriver; -class Handle_MDataStd_DirectoryRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_DirectoryRetrievalDriver(); - Handle_MDataStd_DirectoryRetrievalDriver(const Handle_MDataStd_DirectoryRetrievalDriver &aHandle); - Handle_MDataStd_DirectoryRetrievalDriver(const MDataStd_DirectoryRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_DirectoryRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_DirectoryRetrievalDriver { - MDataStd_DirectoryRetrievalDriver* _get_reference() { - return (MDataStd_DirectoryRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_DirectoryRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_DirectoryRetrievalDriver) %extend MDataStd_DirectoryRetrievalDriver { %pythoncode { @@ -1180,51 +700,7 @@ class MDataStd_DirectoryStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_DirectoryStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_DirectoryStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_DirectoryStorageDriver::Handle_MDataStd_DirectoryStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_DirectoryStorageDriver; -class Handle_MDataStd_DirectoryStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_DirectoryStorageDriver(); - Handle_MDataStd_DirectoryStorageDriver(const Handle_MDataStd_DirectoryStorageDriver &aHandle); - Handle_MDataStd_DirectoryStorageDriver(const MDataStd_DirectoryStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_DirectoryStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_DirectoryStorageDriver { - MDataStd_DirectoryStorageDriver* _get_reference() { - return (MDataStd_DirectoryStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_DirectoryStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_DirectoryStorageDriver) %extend MDataStd_DirectoryStorageDriver { %pythoncode { @@ -1269,51 +745,7 @@ class MDataStd_ExpressionRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_ExpressionRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExpressionRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExpressionRetrievalDriver::Handle_MDataStd_ExpressionRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExpressionRetrievalDriver; -class Handle_MDataStd_ExpressionRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ExpressionRetrievalDriver(); - Handle_MDataStd_ExpressionRetrievalDriver(const Handle_MDataStd_ExpressionRetrievalDriver &aHandle); - Handle_MDataStd_ExpressionRetrievalDriver(const MDataStd_ExpressionRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExpressionRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExpressionRetrievalDriver { - MDataStd_ExpressionRetrievalDriver* _get_reference() { - return (MDataStd_ExpressionRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExpressionRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ExpressionRetrievalDriver) %extend MDataStd_ExpressionRetrievalDriver { %pythoncode { @@ -1358,51 +790,7 @@ class MDataStd_ExpressionStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_ExpressionStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExpressionStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExpressionStorageDriver::Handle_MDataStd_ExpressionStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExpressionStorageDriver; -class Handle_MDataStd_ExpressionStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_ExpressionStorageDriver(); - Handle_MDataStd_ExpressionStorageDriver(const Handle_MDataStd_ExpressionStorageDriver &aHandle); - Handle_MDataStd_ExpressionStorageDriver(const MDataStd_ExpressionStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExpressionStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExpressionStorageDriver { - MDataStd_ExpressionStorageDriver* _get_reference() { - return (MDataStd_ExpressionStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExpressionStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ExpressionStorageDriver) %extend MDataStd_ExpressionStorageDriver { %pythoncode { @@ -1447,51 +835,7 @@ class MDataStd_ExtStringArrayRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_ExtStringArrayRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExtStringArrayRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExtStringArrayRetrievalDriver::Handle_MDataStd_ExtStringArrayRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExtStringArrayRetrievalDriver; -class Handle_MDataStd_ExtStringArrayRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ExtStringArrayRetrievalDriver(); - Handle_MDataStd_ExtStringArrayRetrievalDriver(const Handle_MDataStd_ExtStringArrayRetrievalDriver &aHandle); - Handle_MDataStd_ExtStringArrayRetrievalDriver(const MDataStd_ExtStringArrayRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExtStringArrayRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExtStringArrayRetrievalDriver { - MDataStd_ExtStringArrayRetrievalDriver* _get_reference() { - return (MDataStd_ExtStringArrayRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExtStringArrayRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ExtStringArrayRetrievalDriver) %extend MDataStd_ExtStringArrayRetrievalDriver { %pythoncode { @@ -1536,51 +880,7 @@ class MDataStd_ExtStringArrayRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MDataStd_ExtStringArrayRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExtStringArrayRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExtStringArrayRetrievalDriver_1::Handle_MDataStd_ExtStringArrayRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExtStringArrayRetrievalDriver_1; -class Handle_MDataStd_ExtStringArrayRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ExtStringArrayRetrievalDriver_1(); - Handle_MDataStd_ExtStringArrayRetrievalDriver_1(const Handle_MDataStd_ExtStringArrayRetrievalDriver_1 &aHandle); - Handle_MDataStd_ExtStringArrayRetrievalDriver_1(const MDataStd_ExtStringArrayRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExtStringArrayRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExtStringArrayRetrievalDriver_1 { - MDataStd_ExtStringArrayRetrievalDriver_1* _get_reference() { - return (MDataStd_ExtStringArrayRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExtStringArrayRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ExtStringArrayRetrievalDriver_1) %extend MDataStd_ExtStringArrayRetrievalDriver_1 { %pythoncode { @@ -1625,51 +925,7 @@ class MDataStd_ExtStringArrayStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_ExtStringArrayStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExtStringArrayStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExtStringArrayStorageDriver::Handle_MDataStd_ExtStringArrayStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExtStringArrayStorageDriver; -class Handle_MDataStd_ExtStringArrayStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_ExtStringArrayStorageDriver(); - Handle_MDataStd_ExtStringArrayStorageDriver(const Handle_MDataStd_ExtStringArrayStorageDriver &aHandle); - Handle_MDataStd_ExtStringArrayStorageDriver(const MDataStd_ExtStringArrayStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExtStringArrayStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExtStringArrayStorageDriver { - MDataStd_ExtStringArrayStorageDriver* _get_reference() { - return (MDataStd_ExtStringArrayStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExtStringArrayStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ExtStringArrayStorageDriver) %extend MDataStd_ExtStringArrayStorageDriver { %pythoncode { @@ -1710,51 +966,7 @@ class MDataStd_ExtStringListRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_ExtStringListRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExtStringListRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExtStringListRetrievalDriver::Handle_MDataStd_ExtStringListRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExtStringListRetrievalDriver; -class Handle_MDataStd_ExtStringListRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ExtStringListRetrievalDriver(); - Handle_MDataStd_ExtStringListRetrievalDriver(const Handle_MDataStd_ExtStringListRetrievalDriver &aHandle); - Handle_MDataStd_ExtStringListRetrievalDriver(const MDataStd_ExtStringListRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExtStringListRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExtStringListRetrievalDriver { - MDataStd_ExtStringListRetrievalDriver* _get_reference() { - return (MDataStd_ExtStringListRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExtStringListRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ExtStringListRetrievalDriver) %extend MDataStd_ExtStringListRetrievalDriver { %pythoncode { @@ -1795,55 +1007,11 @@ class MDataStd_ExtStringListStorageDriver : public MDF_ASDriver { }; +%make_alias(MDataStd_ExtStringListStorageDriver) + %extend MDataStd_ExtStringListStorageDriver { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ExtStringListStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ExtStringListStorageDriver::Handle_MDataStd_ExtStringListStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ExtStringListStorageDriver; -class Handle_MDataStd_ExtStringListStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_ExtStringListStorageDriver(); - Handle_MDataStd_ExtStringListStorageDriver(const Handle_MDataStd_ExtStringListStorageDriver &aHandle); - Handle_MDataStd_ExtStringListStorageDriver(const MDataStd_ExtStringListStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ExtStringListStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ExtStringListStorageDriver { - MDataStd_ExtStringListStorageDriver* _get_reference() { - return (MDataStd_ExtStringListStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ExtStringListStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend MDataStd_ExtStringListStorageDriver { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor MDataStd_IntPackedMapRetrievalDriver; @@ -1884,51 +1052,7 @@ class MDataStd_IntPackedMapRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_IntPackedMapRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntPackedMapRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntPackedMapRetrievalDriver::Handle_MDataStd_IntPackedMapRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntPackedMapRetrievalDriver; -class Handle_MDataStd_IntPackedMapRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_IntPackedMapRetrievalDriver(); - Handle_MDataStd_IntPackedMapRetrievalDriver(const Handle_MDataStd_IntPackedMapRetrievalDriver &aHandle); - Handle_MDataStd_IntPackedMapRetrievalDriver(const MDataStd_IntPackedMapRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntPackedMapRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntPackedMapRetrievalDriver { - MDataStd_IntPackedMapRetrievalDriver* _get_reference() { - return (MDataStd_IntPackedMapRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntPackedMapRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntPackedMapRetrievalDriver) %extend MDataStd_IntPackedMapRetrievalDriver { %pythoncode { @@ -1973,51 +1097,7 @@ class MDataStd_IntPackedMapRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MDataStd_IntPackedMapRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntPackedMapRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntPackedMapRetrievalDriver_1::Handle_MDataStd_IntPackedMapRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntPackedMapRetrievalDriver_1; -class Handle_MDataStd_IntPackedMapRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_IntPackedMapRetrievalDriver_1(); - Handle_MDataStd_IntPackedMapRetrievalDriver_1(const Handle_MDataStd_IntPackedMapRetrievalDriver_1 &aHandle); - Handle_MDataStd_IntPackedMapRetrievalDriver_1(const MDataStd_IntPackedMapRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntPackedMapRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntPackedMapRetrievalDriver_1 { - MDataStd_IntPackedMapRetrievalDriver_1* _get_reference() { - return (MDataStd_IntPackedMapRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntPackedMapRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntPackedMapRetrievalDriver_1) %extend MDataStd_IntPackedMapRetrievalDriver_1 { %pythoncode { @@ -2062,51 +1142,7 @@ class MDataStd_IntPackedMapStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_IntPackedMapStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntPackedMapStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntPackedMapStorageDriver::Handle_MDataStd_IntPackedMapStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntPackedMapStorageDriver; -class Handle_MDataStd_IntPackedMapStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_IntPackedMapStorageDriver(); - Handle_MDataStd_IntPackedMapStorageDriver(const Handle_MDataStd_IntPackedMapStorageDriver &aHandle); - Handle_MDataStd_IntPackedMapStorageDriver(const MDataStd_IntPackedMapStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntPackedMapStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntPackedMapStorageDriver { - MDataStd_IntPackedMapStorageDriver* _get_reference() { - return (MDataStd_IntPackedMapStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntPackedMapStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntPackedMapStorageDriver) %extend MDataStd_IntPackedMapStorageDriver { %pythoncode { @@ -2151,51 +1187,7 @@ class MDataStd_IntegerArrayRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_IntegerArrayRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerArrayRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerArrayRetrievalDriver::Handle_MDataStd_IntegerArrayRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerArrayRetrievalDriver; -class Handle_MDataStd_IntegerArrayRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_IntegerArrayRetrievalDriver(); - Handle_MDataStd_IntegerArrayRetrievalDriver(const Handle_MDataStd_IntegerArrayRetrievalDriver &aHandle); - Handle_MDataStd_IntegerArrayRetrievalDriver(const MDataStd_IntegerArrayRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerArrayRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerArrayRetrievalDriver { - MDataStd_IntegerArrayRetrievalDriver* _get_reference() { - return (MDataStd_IntegerArrayRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerArrayRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerArrayRetrievalDriver) %extend MDataStd_IntegerArrayRetrievalDriver { %pythoncode { @@ -2240,51 +1232,7 @@ class MDataStd_IntegerArrayRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MDataStd_IntegerArrayRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerArrayRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerArrayRetrievalDriver_1::Handle_MDataStd_IntegerArrayRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerArrayRetrievalDriver_1; -class Handle_MDataStd_IntegerArrayRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_IntegerArrayRetrievalDriver_1(); - Handle_MDataStd_IntegerArrayRetrievalDriver_1(const Handle_MDataStd_IntegerArrayRetrievalDriver_1 &aHandle); - Handle_MDataStd_IntegerArrayRetrievalDriver_1(const MDataStd_IntegerArrayRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerArrayRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerArrayRetrievalDriver_1 { - MDataStd_IntegerArrayRetrievalDriver_1* _get_reference() { - return (MDataStd_IntegerArrayRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerArrayRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerArrayRetrievalDriver_1) %extend MDataStd_IntegerArrayRetrievalDriver_1 { %pythoncode { @@ -2329,51 +1277,7 @@ class MDataStd_IntegerArrayStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_IntegerArrayStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerArrayStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerArrayStorageDriver::Handle_MDataStd_IntegerArrayStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerArrayStorageDriver; -class Handle_MDataStd_IntegerArrayStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_IntegerArrayStorageDriver(); - Handle_MDataStd_IntegerArrayStorageDriver(const Handle_MDataStd_IntegerArrayStorageDriver &aHandle); - Handle_MDataStd_IntegerArrayStorageDriver(const MDataStd_IntegerArrayStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerArrayStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerArrayStorageDriver { - MDataStd_IntegerArrayStorageDriver* _get_reference() { - return (MDataStd_IntegerArrayStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerArrayStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerArrayStorageDriver) %extend MDataStd_IntegerArrayStorageDriver { %pythoncode { @@ -2414,51 +1318,7 @@ class MDataStd_IntegerListRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_IntegerListRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerListRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerListRetrievalDriver::Handle_MDataStd_IntegerListRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerListRetrievalDriver; -class Handle_MDataStd_IntegerListRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_IntegerListRetrievalDriver(); - Handle_MDataStd_IntegerListRetrievalDriver(const Handle_MDataStd_IntegerListRetrievalDriver &aHandle); - Handle_MDataStd_IntegerListRetrievalDriver(const MDataStd_IntegerListRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerListRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerListRetrievalDriver { - MDataStd_IntegerListRetrievalDriver* _get_reference() { - return (MDataStd_IntegerListRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerListRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerListRetrievalDriver) %extend MDataStd_IntegerListRetrievalDriver { %pythoncode { @@ -2499,51 +1359,7 @@ class MDataStd_IntegerListStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_IntegerListStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerListStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerListStorageDriver::Handle_MDataStd_IntegerListStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerListStorageDriver; -class Handle_MDataStd_IntegerListStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_IntegerListStorageDriver(); - Handle_MDataStd_IntegerListStorageDriver(const Handle_MDataStd_IntegerListStorageDriver &aHandle); - Handle_MDataStd_IntegerListStorageDriver(const MDataStd_IntegerListStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerListStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerListStorageDriver { - MDataStd_IntegerListStorageDriver* _get_reference() { - return (MDataStd_IntegerListStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerListStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerListStorageDriver) %extend MDataStd_IntegerListStorageDriver { %pythoncode { @@ -2588,51 +1404,7 @@ class MDataStd_IntegerRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_IntegerRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerRetrievalDriver::Handle_MDataStd_IntegerRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerRetrievalDriver; -class Handle_MDataStd_IntegerRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_IntegerRetrievalDriver(); - Handle_MDataStd_IntegerRetrievalDriver(const Handle_MDataStd_IntegerRetrievalDriver &aHandle); - Handle_MDataStd_IntegerRetrievalDriver(const MDataStd_IntegerRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerRetrievalDriver { - MDataStd_IntegerRetrievalDriver* _get_reference() { - return (MDataStd_IntegerRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerRetrievalDriver) %extend MDataStd_IntegerRetrievalDriver { %pythoncode { @@ -2677,51 +1449,7 @@ class MDataStd_IntegerStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_IntegerStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_IntegerStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_IntegerStorageDriver::Handle_MDataStd_IntegerStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_IntegerStorageDriver; -class Handle_MDataStd_IntegerStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_IntegerStorageDriver(); - Handle_MDataStd_IntegerStorageDriver(const Handle_MDataStd_IntegerStorageDriver &aHandle); - Handle_MDataStd_IntegerStorageDriver(const MDataStd_IntegerStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_IntegerStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_IntegerStorageDriver { - MDataStd_IntegerStorageDriver* _get_reference() { - return (MDataStd_IntegerStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_IntegerStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_IntegerStorageDriver) %extend MDataStd_IntegerStorageDriver { %pythoncode { @@ -2766,51 +1494,7 @@ class MDataStd_NameRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_NameRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_NameRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_NameRetrievalDriver::Handle_MDataStd_NameRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_NameRetrievalDriver; -class Handle_MDataStd_NameRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_NameRetrievalDriver(); - Handle_MDataStd_NameRetrievalDriver(const Handle_MDataStd_NameRetrievalDriver &aHandle); - Handle_MDataStd_NameRetrievalDriver(const MDataStd_NameRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_NameRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_NameRetrievalDriver { - MDataStd_NameRetrievalDriver* _get_reference() { - return (MDataStd_NameRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_NameRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_NameRetrievalDriver) %extend MDataStd_NameRetrievalDriver { %pythoncode { @@ -2855,51 +1539,7 @@ class MDataStd_NameStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_NameStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_NameStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_NameStorageDriver::Handle_MDataStd_NameStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_NameStorageDriver; -class Handle_MDataStd_NameStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_NameStorageDriver(); - Handle_MDataStd_NameStorageDriver(const Handle_MDataStd_NameStorageDriver &aHandle); - Handle_MDataStd_NameStorageDriver(const MDataStd_NameStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_NameStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_NameStorageDriver { - MDataStd_NameStorageDriver* _get_reference() { - return (MDataStd_NameStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_NameStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_NameStorageDriver) %extend MDataStd_NameStorageDriver { %pythoncode { @@ -2940,51 +1580,7 @@ class MDataStd_NamedDataRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_NamedDataRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_NamedDataRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_NamedDataRetrievalDriver::Handle_MDataStd_NamedDataRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_NamedDataRetrievalDriver; -class Handle_MDataStd_NamedDataRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_NamedDataRetrievalDriver(); - Handle_MDataStd_NamedDataRetrievalDriver(const Handle_MDataStd_NamedDataRetrievalDriver &aHandle); - Handle_MDataStd_NamedDataRetrievalDriver(const MDataStd_NamedDataRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_NamedDataRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_NamedDataRetrievalDriver { - MDataStd_NamedDataRetrievalDriver* _get_reference() { - return (MDataStd_NamedDataRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_NamedDataRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_NamedDataRetrievalDriver) %extend MDataStd_NamedDataRetrievalDriver { %pythoncode { @@ -3025,51 +1621,7 @@ class MDataStd_NamedDataStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_NamedDataStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_NamedDataStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_NamedDataStorageDriver::Handle_MDataStd_NamedDataStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_NamedDataStorageDriver; -class Handle_MDataStd_NamedDataStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_NamedDataStorageDriver(); - Handle_MDataStd_NamedDataStorageDriver(const Handle_MDataStd_NamedDataStorageDriver &aHandle); - Handle_MDataStd_NamedDataStorageDriver(const MDataStd_NamedDataStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_NamedDataStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_NamedDataStorageDriver { - MDataStd_NamedDataStorageDriver* _get_reference() { - return (MDataStd_NamedDataStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_NamedDataStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_NamedDataStorageDriver) %extend MDataStd_NamedDataStorageDriver { %pythoncode { @@ -3114,51 +1666,7 @@ class MDataStd_NoteBookRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_NoteBookRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_NoteBookRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_NoteBookRetrievalDriver::Handle_MDataStd_NoteBookRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_NoteBookRetrievalDriver; -class Handle_MDataStd_NoteBookRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_NoteBookRetrievalDriver(); - Handle_MDataStd_NoteBookRetrievalDriver(const Handle_MDataStd_NoteBookRetrievalDriver &aHandle); - Handle_MDataStd_NoteBookRetrievalDriver(const MDataStd_NoteBookRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_NoteBookRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_NoteBookRetrievalDriver { - MDataStd_NoteBookRetrievalDriver* _get_reference() { - return (MDataStd_NoteBookRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_NoteBookRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_NoteBookRetrievalDriver) %extend MDataStd_NoteBookRetrievalDriver { %pythoncode { @@ -3203,51 +1711,7 @@ class MDataStd_NoteBookStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_NoteBookStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_NoteBookStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_NoteBookStorageDriver::Handle_MDataStd_NoteBookStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_NoteBookStorageDriver; -class Handle_MDataStd_NoteBookStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_NoteBookStorageDriver(); - Handle_MDataStd_NoteBookStorageDriver(const Handle_MDataStd_NoteBookStorageDriver &aHandle); - Handle_MDataStd_NoteBookStorageDriver(const MDataStd_NoteBookStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_NoteBookStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_NoteBookStorageDriver { - MDataStd_NoteBookStorageDriver* _get_reference() { - return (MDataStd_NoteBookStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_NoteBookStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_NoteBookStorageDriver) %extend MDataStd_NoteBookStorageDriver { %pythoncode { @@ -3292,51 +1756,7 @@ class MDataStd_RealArrayRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_RealArrayRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealArrayRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealArrayRetrievalDriver::Handle_MDataStd_RealArrayRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealArrayRetrievalDriver; -class Handle_MDataStd_RealArrayRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_RealArrayRetrievalDriver(); - Handle_MDataStd_RealArrayRetrievalDriver(const Handle_MDataStd_RealArrayRetrievalDriver &aHandle); - Handle_MDataStd_RealArrayRetrievalDriver(const MDataStd_RealArrayRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealArrayRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealArrayRetrievalDriver { - MDataStd_RealArrayRetrievalDriver* _get_reference() { - return (MDataStd_RealArrayRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealArrayRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealArrayRetrievalDriver) %extend MDataStd_RealArrayRetrievalDriver { %pythoncode { @@ -3381,51 +1801,7 @@ class MDataStd_RealArrayRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MDataStd_RealArrayRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealArrayRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealArrayRetrievalDriver_1::Handle_MDataStd_RealArrayRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealArrayRetrievalDriver_1; -class Handle_MDataStd_RealArrayRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_RealArrayRetrievalDriver_1(); - Handle_MDataStd_RealArrayRetrievalDriver_1(const Handle_MDataStd_RealArrayRetrievalDriver_1 &aHandle); - Handle_MDataStd_RealArrayRetrievalDriver_1(const MDataStd_RealArrayRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealArrayRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealArrayRetrievalDriver_1 { - MDataStd_RealArrayRetrievalDriver_1* _get_reference() { - return (MDataStd_RealArrayRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealArrayRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealArrayRetrievalDriver_1) %extend MDataStd_RealArrayRetrievalDriver_1 { %pythoncode { @@ -3470,51 +1846,7 @@ class MDataStd_RealArrayStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_RealArrayStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealArrayStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealArrayStorageDriver::Handle_MDataStd_RealArrayStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealArrayStorageDriver; -class Handle_MDataStd_RealArrayStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_RealArrayStorageDriver(); - Handle_MDataStd_RealArrayStorageDriver(const Handle_MDataStd_RealArrayStorageDriver &aHandle); - Handle_MDataStd_RealArrayStorageDriver(const MDataStd_RealArrayStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealArrayStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealArrayStorageDriver { - MDataStd_RealArrayStorageDriver* _get_reference() { - return (MDataStd_RealArrayStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealArrayStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealArrayStorageDriver) %extend MDataStd_RealArrayStorageDriver { %pythoncode { @@ -3555,51 +1887,7 @@ class MDataStd_RealListRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_RealListRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealListRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealListRetrievalDriver::Handle_MDataStd_RealListRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealListRetrievalDriver; -class Handle_MDataStd_RealListRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_RealListRetrievalDriver(); - Handle_MDataStd_RealListRetrievalDriver(const Handle_MDataStd_RealListRetrievalDriver &aHandle); - Handle_MDataStd_RealListRetrievalDriver(const MDataStd_RealListRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealListRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealListRetrievalDriver { - MDataStd_RealListRetrievalDriver* _get_reference() { - return (MDataStd_RealListRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealListRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealListRetrievalDriver) %extend MDataStd_RealListRetrievalDriver { %pythoncode { @@ -3640,51 +1928,7 @@ class MDataStd_RealListStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_RealListStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealListStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealListStorageDriver::Handle_MDataStd_RealListStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealListStorageDriver; -class Handle_MDataStd_RealListStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_RealListStorageDriver(); - Handle_MDataStd_RealListStorageDriver(const Handle_MDataStd_RealListStorageDriver &aHandle); - Handle_MDataStd_RealListStorageDriver(const MDataStd_RealListStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealListStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealListStorageDriver { - MDataStd_RealListStorageDriver* _get_reference() { - return (MDataStd_RealListStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealListStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealListStorageDriver) %extend MDataStd_RealListStorageDriver { %pythoncode { @@ -3729,51 +1973,7 @@ class MDataStd_RealRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_RealRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealRetrievalDriver::Handle_MDataStd_RealRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealRetrievalDriver; -class Handle_MDataStd_RealRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_RealRetrievalDriver(); - Handle_MDataStd_RealRetrievalDriver(const Handle_MDataStd_RealRetrievalDriver &aHandle); - Handle_MDataStd_RealRetrievalDriver(const MDataStd_RealRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealRetrievalDriver { - MDataStd_RealRetrievalDriver* _get_reference() { - return (MDataStd_RealRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealRetrievalDriver) %extend MDataStd_RealRetrievalDriver { %pythoncode { @@ -3818,51 +2018,7 @@ class MDataStd_RealStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_RealStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RealStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RealStorageDriver::Handle_MDataStd_RealStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RealStorageDriver; -class Handle_MDataStd_RealStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_RealStorageDriver(); - Handle_MDataStd_RealStorageDriver(const Handle_MDataStd_RealStorageDriver &aHandle); - Handle_MDataStd_RealStorageDriver(const MDataStd_RealStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RealStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RealStorageDriver { - MDataStd_RealStorageDriver* _get_reference() { - return (MDataStd_RealStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RealStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RealStorageDriver) %extend MDataStd_RealStorageDriver { %pythoncode { @@ -3903,51 +2059,7 @@ class MDataStd_ReferenceArrayRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_ReferenceArrayRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ReferenceArrayRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ReferenceArrayRetrievalDriver::Handle_MDataStd_ReferenceArrayRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ReferenceArrayRetrievalDriver; -class Handle_MDataStd_ReferenceArrayRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ReferenceArrayRetrievalDriver(); - Handle_MDataStd_ReferenceArrayRetrievalDriver(const Handle_MDataStd_ReferenceArrayRetrievalDriver &aHandle); - Handle_MDataStd_ReferenceArrayRetrievalDriver(const MDataStd_ReferenceArrayRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ReferenceArrayRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ReferenceArrayRetrievalDriver { - MDataStd_ReferenceArrayRetrievalDriver* _get_reference() { - return (MDataStd_ReferenceArrayRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ReferenceArrayRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ReferenceArrayRetrievalDriver) %extend MDataStd_ReferenceArrayRetrievalDriver { %pythoncode { @@ -3988,51 +2100,7 @@ class MDataStd_ReferenceArrayStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_ReferenceArrayStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ReferenceArrayStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ReferenceArrayStorageDriver::Handle_MDataStd_ReferenceArrayStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ReferenceArrayStorageDriver; -class Handle_MDataStd_ReferenceArrayStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_ReferenceArrayStorageDriver(); - Handle_MDataStd_ReferenceArrayStorageDriver(const Handle_MDataStd_ReferenceArrayStorageDriver &aHandle); - Handle_MDataStd_ReferenceArrayStorageDriver(const MDataStd_ReferenceArrayStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ReferenceArrayStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ReferenceArrayStorageDriver { - MDataStd_ReferenceArrayStorageDriver* _get_reference() { - return (MDataStd_ReferenceArrayStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ReferenceArrayStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ReferenceArrayStorageDriver) %extend MDataStd_ReferenceArrayStorageDriver { %pythoncode { @@ -4073,51 +2141,7 @@ class MDataStd_ReferenceListRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_ReferenceListRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ReferenceListRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ReferenceListRetrievalDriver::Handle_MDataStd_ReferenceListRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ReferenceListRetrievalDriver; -class Handle_MDataStd_ReferenceListRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_ReferenceListRetrievalDriver(); - Handle_MDataStd_ReferenceListRetrievalDriver(const Handle_MDataStd_ReferenceListRetrievalDriver &aHandle); - Handle_MDataStd_ReferenceListRetrievalDriver(const MDataStd_ReferenceListRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ReferenceListRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ReferenceListRetrievalDriver { - MDataStd_ReferenceListRetrievalDriver* _get_reference() { - return (MDataStd_ReferenceListRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ReferenceListRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ReferenceListRetrievalDriver) %extend MDataStd_ReferenceListRetrievalDriver { %pythoncode { @@ -4158,51 +2182,7 @@ class MDataStd_ReferenceListStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_ReferenceListStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_ReferenceListStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_ReferenceListStorageDriver::Handle_MDataStd_ReferenceListStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_ReferenceListStorageDriver; -class Handle_MDataStd_ReferenceListStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_ReferenceListStorageDriver(); - Handle_MDataStd_ReferenceListStorageDriver(const Handle_MDataStd_ReferenceListStorageDriver &aHandle); - Handle_MDataStd_ReferenceListStorageDriver(const MDataStd_ReferenceListStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_ReferenceListStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_ReferenceListStorageDriver { - MDataStd_ReferenceListStorageDriver* _get_reference() { - return (MDataStd_ReferenceListStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_ReferenceListStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_ReferenceListStorageDriver) %extend MDataStd_ReferenceListStorageDriver { %pythoncode { @@ -4247,51 +2227,7 @@ class MDataStd_RelationRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_RelationRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RelationRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RelationRetrievalDriver::Handle_MDataStd_RelationRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RelationRetrievalDriver; -class Handle_MDataStd_RelationRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_RelationRetrievalDriver(); - Handle_MDataStd_RelationRetrievalDriver(const Handle_MDataStd_RelationRetrievalDriver &aHandle); - Handle_MDataStd_RelationRetrievalDriver(const MDataStd_RelationRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RelationRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RelationRetrievalDriver { - MDataStd_RelationRetrievalDriver* _get_reference() { - return (MDataStd_RelationRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RelationRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RelationRetrievalDriver) %extend MDataStd_RelationRetrievalDriver { %pythoncode { @@ -4336,51 +2272,7 @@ class MDataStd_RelationStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_RelationStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_RelationStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_RelationStorageDriver::Handle_MDataStd_RelationStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_RelationStorageDriver; -class Handle_MDataStd_RelationStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_RelationStorageDriver(); - Handle_MDataStd_RelationStorageDriver(const Handle_MDataStd_RelationStorageDriver &aHandle); - Handle_MDataStd_RelationStorageDriver(const MDataStd_RelationStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_RelationStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_RelationStorageDriver { - MDataStd_RelationStorageDriver* _get_reference() { - return (MDataStd_RelationStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_RelationStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_RelationStorageDriver) %extend MDataStd_RelationStorageDriver { %pythoncode { @@ -4423,51 +2315,7 @@ class MDataStd_TickRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_TickRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_TickRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_TickRetrievalDriver::Handle_MDataStd_TickRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_TickRetrievalDriver; -class Handle_MDataStd_TickRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_TickRetrievalDriver(); - Handle_MDataStd_TickRetrievalDriver(const Handle_MDataStd_TickRetrievalDriver &aHandle); - Handle_MDataStd_TickRetrievalDriver(const MDataStd_TickRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_TickRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_TickRetrievalDriver { - MDataStd_TickRetrievalDriver* _get_reference() { - return (MDataStd_TickRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_TickRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_TickRetrievalDriver) %extend MDataStd_TickRetrievalDriver { %pythoncode { @@ -4510,51 +2358,7 @@ class MDataStd_TickStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_TickStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_TickStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_TickStorageDriver::Handle_MDataStd_TickStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_TickStorageDriver; -class Handle_MDataStd_TickStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_TickStorageDriver(); - Handle_MDataStd_TickStorageDriver(const Handle_MDataStd_TickStorageDriver &aHandle); - Handle_MDataStd_TickStorageDriver(const MDataStd_TickStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_TickStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_TickStorageDriver { - MDataStd_TickStorageDriver* _get_reference() { - return (MDataStd_TickStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_TickStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_TickStorageDriver) %extend MDataStd_TickStorageDriver { %pythoncode { @@ -4597,51 +2401,7 @@ class MDataStd_TreeNodeRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_TreeNodeRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_TreeNodeRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_TreeNodeRetrievalDriver::Handle_MDataStd_TreeNodeRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_TreeNodeRetrievalDriver; -class Handle_MDataStd_TreeNodeRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_TreeNodeRetrievalDriver(); - Handle_MDataStd_TreeNodeRetrievalDriver(const Handle_MDataStd_TreeNodeRetrievalDriver &aHandle); - Handle_MDataStd_TreeNodeRetrievalDriver(const MDataStd_TreeNodeRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_TreeNodeRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_TreeNodeRetrievalDriver { - MDataStd_TreeNodeRetrievalDriver* _get_reference() { - return (MDataStd_TreeNodeRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_TreeNodeRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_TreeNodeRetrievalDriver) %extend MDataStd_TreeNodeRetrievalDriver { %pythoncode { @@ -4684,51 +2444,7 @@ class MDataStd_TreeNodeStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_TreeNodeStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_TreeNodeStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_TreeNodeStorageDriver::Handle_MDataStd_TreeNodeStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_TreeNodeStorageDriver; -class Handle_MDataStd_TreeNodeStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_TreeNodeStorageDriver(); - Handle_MDataStd_TreeNodeStorageDriver(const Handle_MDataStd_TreeNodeStorageDriver &aHandle); - Handle_MDataStd_TreeNodeStorageDriver(const MDataStd_TreeNodeStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_TreeNodeStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_TreeNodeStorageDriver { - MDataStd_TreeNodeStorageDriver* _get_reference() { - return (MDataStd_TreeNodeStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_TreeNodeStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_TreeNodeStorageDriver) %extend MDataStd_TreeNodeStorageDriver { %pythoncode { @@ -4773,51 +2489,7 @@ class MDataStd_UAttributeRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_UAttributeRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_UAttributeRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_UAttributeRetrievalDriver::Handle_MDataStd_UAttributeRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_UAttributeRetrievalDriver; -class Handle_MDataStd_UAttributeRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_UAttributeRetrievalDriver(); - Handle_MDataStd_UAttributeRetrievalDriver(const Handle_MDataStd_UAttributeRetrievalDriver &aHandle); - Handle_MDataStd_UAttributeRetrievalDriver(const MDataStd_UAttributeRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_UAttributeRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_UAttributeRetrievalDriver { - MDataStd_UAttributeRetrievalDriver* _get_reference() { - return (MDataStd_UAttributeRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_UAttributeRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_UAttributeRetrievalDriver) %extend MDataStd_UAttributeRetrievalDriver { %pythoncode { @@ -4862,51 +2534,7 @@ class MDataStd_UAttributeStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_UAttributeStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_UAttributeStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_UAttributeStorageDriver::Handle_MDataStd_UAttributeStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_UAttributeStorageDriver; -class Handle_MDataStd_UAttributeStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_UAttributeStorageDriver(); - Handle_MDataStd_UAttributeStorageDriver(const Handle_MDataStd_UAttributeStorageDriver &aHandle); - Handle_MDataStd_UAttributeStorageDriver(const MDataStd_UAttributeStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_UAttributeStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_UAttributeStorageDriver { - MDataStd_UAttributeStorageDriver* _get_reference() { - return (MDataStd_UAttributeStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_UAttributeStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_UAttributeStorageDriver) %extend MDataStd_UAttributeStorageDriver { %pythoncode { @@ -4951,51 +2579,7 @@ class MDataStd_VariableRetrievalDriver : public MDF_ARDriver { }; -%extend MDataStd_VariableRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_VariableRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_VariableRetrievalDriver::Handle_MDataStd_VariableRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_VariableRetrievalDriver; -class Handle_MDataStd_VariableRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataStd_VariableRetrievalDriver(); - Handle_MDataStd_VariableRetrievalDriver(const Handle_MDataStd_VariableRetrievalDriver &aHandle); - Handle_MDataStd_VariableRetrievalDriver(const MDataStd_VariableRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_VariableRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_VariableRetrievalDriver { - MDataStd_VariableRetrievalDriver* _get_reference() { - return (MDataStd_VariableRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_VariableRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_VariableRetrievalDriver) %extend MDataStd_VariableRetrievalDriver { %pythoncode { @@ -5040,51 +2624,7 @@ class MDataStd_VariableStorageDriver : public MDF_ASDriver { }; -%extend MDataStd_VariableStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataStd_VariableStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataStd_VariableStorageDriver::Handle_MDataStd_VariableStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataStd_VariableStorageDriver; -class Handle_MDataStd_VariableStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataStd_VariableStorageDriver(); - Handle_MDataStd_VariableStorageDriver(const Handle_MDataStd_VariableStorageDriver &aHandle); - Handle_MDataStd_VariableStorageDriver(const MDataStd_VariableStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataStd_VariableStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataStd_VariableStorageDriver { - MDataStd_VariableStorageDriver* _get_reference() { - return (MDataStd_VariableStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataStd_VariableStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataStd_VariableStorageDriver) %extend MDataStd_VariableStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/MDataXtd.i b/src/SWIG_files/wrapper/MDataXtd.i index 5b0713dbd..aec728f1a 100644 --- a/src/SWIG_files/wrapper/MDataXtd.i +++ b/src/SWIG_files/wrapper/MDataXtd.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define MDATAXTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling +attributes. Transient attributes are defined in +package TDataStd and persistent one are defined in +package PDataStd +" %enddef %module (package="OCC.Core", docstring=MDATAXTDDOCSTRING) MDataXtd @@ -34,31 +38,34 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MDataXtd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MDataXtd_AxisRetrievalDriver) +%wrap_handle(MDataXtd_AxisStorageDriver) +%wrap_handle(MDataXtd_ConstraintRetrievalDriver) +%wrap_handle(MDataXtd_ConstraintStorageDriver) +%wrap_handle(MDataXtd_GeometryRetrievalDriver) +%wrap_handle(MDataXtd_GeometryStorageDriver) +%wrap_handle(MDataXtd_PatternStdRetrievalDriver) +%wrap_handle(MDataXtd_PatternStdStorageDriver) +%wrap_handle(MDataXtd_PlacementRetrievalDriver) +%wrap_handle(MDataXtd_PlacementStorageDriver) +%wrap_handle(MDataXtd_PlaneRetrievalDriver) +%wrap_handle(MDataXtd_PlaneStorageDriver) +%wrap_handle(MDataXtd_PointRetrievalDriver) +%wrap_handle(MDataXtd_PointStorageDriver) +%wrap_handle(MDataXtd_ShapeRetrievalDriver) +%wrap_handle(MDataXtd_ShapeStorageDriver) + %rename(mdataxtd) MDataXtd; class MDataXtd { public: @@ -168,51 +175,7 @@ class MDataXtd_AxisRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_AxisRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_AxisRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_AxisRetrievalDriver::Handle_MDataXtd_AxisRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_AxisRetrievalDriver; -class Handle_MDataXtd_AxisRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_AxisRetrievalDriver(); - Handle_MDataXtd_AxisRetrievalDriver(const Handle_MDataXtd_AxisRetrievalDriver &aHandle); - Handle_MDataXtd_AxisRetrievalDriver(const MDataXtd_AxisRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_AxisRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_AxisRetrievalDriver { - MDataXtd_AxisRetrievalDriver* _get_reference() { - return (MDataXtd_AxisRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_AxisRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_AxisRetrievalDriver) %extend MDataXtd_AxisRetrievalDriver { %pythoncode { @@ -257,51 +220,7 @@ class MDataXtd_AxisStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_AxisStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_AxisStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_AxisStorageDriver::Handle_MDataXtd_AxisStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_AxisStorageDriver; -class Handle_MDataXtd_AxisStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_AxisStorageDriver(); - Handle_MDataXtd_AxisStorageDriver(const Handle_MDataXtd_AxisStorageDriver &aHandle); - Handle_MDataXtd_AxisStorageDriver(const MDataXtd_AxisStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_AxisStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_AxisStorageDriver { - MDataXtd_AxisStorageDriver* _get_reference() { - return (MDataXtd_AxisStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_AxisStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_AxisStorageDriver) %extend MDataXtd_AxisStorageDriver { %pythoncode { @@ -346,51 +265,7 @@ class MDataXtd_ConstraintRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_ConstraintRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_ConstraintRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_ConstraintRetrievalDriver::Handle_MDataXtd_ConstraintRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_ConstraintRetrievalDriver; -class Handle_MDataXtd_ConstraintRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_ConstraintRetrievalDriver(); - Handle_MDataXtd_ConstraintRetrievalDriver(const Handle_MDataXtd_ConstraintRetrievalDriver &aHandle); - Handle_MDataXtd_ConstraintRetrievalDriver(const MDataXtd_ConstraintRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_ConstraintRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_ConstraintRetrievalDriver { - MDataXtd_ConstraintRetrievalDriver* _get_reference() { - return (MDataXtd_ConstraintRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_ConstraintRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_ConstraintRetrievalDriver) %extend MDataXtd_ConstraintRetrievalDriver { %pythoncode { @@ -435,51 +310,7 @@ class MDataXtd_ConstraintStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_ConstraintStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_ConstraintStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_ConstraintStorageDriver::Handle_MDataXtd_ConstraintStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_ConstraintStorageDriver; -class Handle_MDataXtd_ConstraintStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_ConstraintStorageDriver(); - Handle_MDataXtd_ConstraintStorageDriver(const Handle_MDataXtd_ConstraintStorageDriver &aHandle); - Handle_MDataXtd_ConstraintStorageDriver(const MDataXtd_ConstraintStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_ConstraintStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_ConstraintStorageDriver { - MDataXtd_ConstraintStorageDriver* _get_reference() { - return (MDataXtd_ConstraintStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_ConstraintStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_ConstraintStorageDriver) %extend MDataXtd_ConstraintStorageDriver { %pythoncode { @@ -524,51 +355,7 @@ class MDataXtd_GeometryRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_GeometryRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_GeometryRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_GeometryRetrievalDriver::Handle_MDataXtd_GeometryRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_GeometryRetrievalDriver; -class Handle_MDataXtd_GeometryRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_GeometryRetrievalDriver(); - Handle_MDataXtd_GeometryRetrievalDriver(const Handle_MDataXtd_GeometryRetrievalDriver &aHandle); - Handle_MDataXtd_GeometryRetrievalDriver(const MDataXtd_GeometryRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_GeometryRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_GeometryRetrievalDriver { - MDataXtd_GeometryRetrievalDriver* _get_reference() { - return (MDataXtd_GeometryRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_GeometryRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_GeometryRetrievalDriver) %extend MDataXtd_GeometryRetrievalDriver { %pythoncode { @@ -613,51 +400,7 @@ class MDataXtd_GeometryStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_GeometryStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_GeometryStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_GeometryStorageDriver::Handle_MDataXtd_GeometryStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_GeometryStorageDriver; -class Handle_MDataXtd_GeometryStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_GeometryStorageDriver(); - Handle_MDataXtd_GeometryStorageDriver(const Handle_MDataXtd_GeometryStorageDriver &aHandle); - Handle_MDataXtd_GeometryStorageDriver(const MDataXtd_GeometryStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_GeometryStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_GeometryStorageDriver { - MDataXtd_GeometryStorageDriver* _get_reference() { - return (MDataXtd_GeometryStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_GeometryStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_GeometryStorageDriver) %extend MDataXtd_GeometryStorageDriver { %pythoncode { @@ -702,51 +445,7 @@ class MDataXtd_PatternStdRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_PatternStdRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PatternStdRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PatternStdRetrievalDriver::Handle_MDataXtd_PatternStdRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PatternStdRetrievalDriver; -class Handle_MDataXtd_PatternStdRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_PatternStdRetrievalDriver(); - Handle_MDataXtd_PatternStdRetrievalDriver(const Handle_MDataXtd_PatternStdRetrievalDriver &aHandle); - Handle_MDataXtd_PatternStdRetrievalDriver(const MDataXtd_PatternStdRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PatternStdRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PatternStdRetrievalDriver { - MDataXtd_PatternStdRetrievalDriver* _get_reference() { - return (MDataXtd_PatternStdRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PatternStdRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PatternStdRetrievalDriver) %extend MDataXtd_PatternStdRetrievalDriver { %pythoncode { @@ -791,51 +490,7 @@ class MDataXtd_PatternStdStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_PatternStdStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PatternStdStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PatternStdStorageDriver::Handle_MDataXtd_PatternStdStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PatternStdStorageDriver; -class Handle_MDataXtd_PatternStdStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_PatternStdStorageDriver(); - Handle_MDataXtd_PatternStdStorageDriver(const Handle_MDataXtd_PatternStdStorageDriver &aHandle); - Handle_MDataXtd_PatternStdStorageDriver(const MDataXtd_PatternStdStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PatternStdStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PatternStdStorageDriver { - MDataXtd_PatternStdStorageDriver* _get_reference() { - return (MDataXtd_PatternStdStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PatternStdStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PatternStdStorageDriver) %extend MDataXtd_PatternStdStorageDriver { %pythoncode { @@ -880,51 +535,7 @@ class MDataXtd_PlacementRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_PlacementRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PlacementRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PlacementRetrievalDriver::Handle_MDataXtd_PlacementRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PlacementRetrievalDriver; -class Handle_MDataXtd_PlacementRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_PlacementRetrievalDriver(); - Handle_MDataXtd_PlacementRetrievalDriver(const Handle_MDataXtd_PlacementRetrievalDriver &aHandle); - Handle_MDataXtd_PlacementRetrievalDriver(const MDataXtd_PlacementRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PlacementRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PlacementRetrievalDriver { - MDataXtd_PlacementRetrievalDriver* _get_reference() { - return (MDataXtd_PlacementRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PlacementRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PlacementRetrievalDriver) %extend MDataXtd_PlacementRetrievalDriver { %pythoncode { @@ -969,51 +580,7 @@ class MDataXtd_PlacementStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_PlacementStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PlacementStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PlacementStorageDriver::Handle_MDataXtd_PlacementStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PlacementStorageDriver; -class Handle_MDataXtd_PlacementStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_PlacementStorageDriver(); - Handle_MDataXtd_PlacementStorageDriver(const Handle_MDataXtd_PlacementStorageDriver &aHandle); - Handle_MDataXtd_PlacementStorageDriver(const MDataXtd_PlacementStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PlacementStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PlacementStorageDriver { - MDataXtd_PlacementStorageDriver* _get_reference() { - return (MDataXtd_PlacementStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PlacementStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PlacementStorageDriver) %extend MDataXtd_PlacementStorageDriver { %pythoncode { @@ -1058,51 +625,7 @@ class MDataXtd_PlaneRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_PlaneRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PlaneRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PlaneRetrievalDriver::Handle_MDataXtd_PlaneRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PlaneRetrievalDriver; -class Handle_MDataXtd_PlaneRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_PlaneRetrievalDriver(); - Handle_MDataXtd_PlaneRetrievalDriver(const Handle_MDataXtd_PlaneRetrievalDriver &aHandle); - Handle_MDataXtd_PlaneRetrievalDriver(const MDataXtd_PlaneRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PlaneRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PlaneRetrievalDriver { - MDataXtd_PlaneRetrievalDriver* _get_reference() { - return (MDataXtd_PlaneRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PlaneRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PlaneRetrievalDriver) %extend MDataXtd_PlaneRetrievalDriver { %pythoncode { @@ -1147,51 +670,7 @@ class MDataXtd_PlaneStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_PlaneStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PlaneStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PlaneStorageDriver::Handle_MDataXtd_PlaneStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PlaneStorageDriver; -class Handle_MDataXtd_PlaneStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_PlaneStorageDriver(); - Handle_MDataXtd_PlaneStorageDriver(const Handle_MDataXtd_PlaneStorageDriver &aHandle); - Handle_MDataXtd_PlaneStorageDriver(const MDataXtd_PlaneStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PlaneStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PlaneStorageDriver { - MDataXtd_PlaneStorageDriver* _get_reference() { - return (MDataXtd_PlaneStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PlaneStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PlaneStorageDriver) %extend MDataXtd_PlaneStorageDriver { %pythoncode { @@ -1236,51 +715,7 @@ class MDataXtd_PointRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_PointRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PointRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PointRetrievalDriver::Handle_MDataXtd_PointRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PointRetrievalDriver; -class Handle_MDataXtd_PointRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_PointRetrievalDriver(); - Handle_MDataXtd_PointRetrievalDriver(const Handle_MDataXtd_PointRetrievalDriver &aHandle); - Handle_MDataXtd_PointRetrievalDriver(const MDataXtd_PointRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PointRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PointRetrievalDriver { - MDataXtd_PointRetrievalDriver* _get_reference() { - return (MDataXtd_PointRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PointRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PointRetrievalDriver) %extend MDataXtd_PointRetrievalDriver { %pythoncode { @@ -1325,51 +760,7 @@ class MDataXtd_PointStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_PointStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_PointStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_PointStorageDriver::Handle_MDataXtd_PointStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_PointStorageDriver; -class Handle_MDataXtd_PointStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_PointStorageDriver(); - Handle_MDataXtd_PointStorageDriver(const Handle_MDataXtd_PointStorageDriver &aHandle); - Handle_MDataXtd_PointStorageDriver(const MDataXtd_PointStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_PointStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_PointStorageDriver { - MDataXtd_PointStorageDriver* _get_reference() { - return (MDataXtd_PointStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_PointStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_PointStorageDriver) %extend MDataXtd_PointStorageDriver { %pythoncode { @@ -1414,51 +805,7 @@ class MDataXtd_ShapeRetrievalDriver : public MDF_ARDriver { }; -%extend MDataXtd_ShapeRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_ShapeRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_ShapeRetrievalDriver::Handle_MDataXtd_ShapeRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_ShapeRetrievalDriver; -class Handle_MDataXtd_ShapeRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDataXtd_ShapeRetrievalDriver(); - Handle_MDataXtd_ShapeRetrievalDriver(const Handle_MDataXtd_ShapeRetrievalDriver &aHandle); - Handle_MDataXtd_ShapeRetrievalDriver(const MDataXtd_ShapeRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_ShapeRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_ShapeRetrievalDriver { - MDataXtd_ShapeRetrievalDriver* _get_reference() { - return (MDataXtd_ShapeRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_ShapeRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_ShapeRetrievalDriver) %extend MDataXtd_ShapeRetrievalDriver { %pythoncode { @@ -1503,51 +850,7 @@ class MDataXtd_ShapeStorageDriver : public MDF_ASDriver { }; -%extend MDataXtd_ShapeStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDataXtd_ShapeStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDataXtd_ShapeStorageDriver::Handle_MDataXtd_ShapeStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDataXtd_ShapeStorageDriver; -class Handle_MDataXtd_ShapeStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDataXtd_ShapeStorageDriver(); - Handle_MDataXtd_ShapeStorageDriver(const Handle_MDataXtd_ShapeStorageDriver &aHandle); - Handle_MDataXtd_ShapeStorageDriver(const MDataXtd_ShapeStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDataXtd_ShapeStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDataXtd_ShapeStorageDriver { - MDataXtd_ShapeStorageDriver* _get_reference() { - return (MDataXtd_ShapeStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDataXtd_ShapeStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDataXtd_ShapeStorageDriver) %extend MDataXtd_ShapeStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/MDocStd.i b/src/SWIG_files/wrapper/MDocStd.i index 2411af387..ddcd26150 100644 --- a/src/SWIG_files/wrapper/MDocStd.i +++ b/src/SWIG_files/wrapper/MDocStd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define MDOCSTDDOCSTRING -"No docstring provided." +"Drivers for TDocStd_Document +" %enddef %module (package="OCC.Core", docstring=MDOCSTDDOCSTRING) MDocStd @@ -34,31 +35,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MDocStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MDocStd_DocumentRetrievalDriver) +%wrap_handle(MDocStd_DocumentStorageDriver) +%wrap_handle(MDocStd_XLinkRetrievalDriver) +%wrap_handle(MDocStd_XLinkStorageDriver) + %rename(mdocstd) MDocStd; class MDocStd { public: @@ -144,51 +136,7 @@ class MDocStd_DocumentRetrievalDriver : public PCDM_RetrievalDriver { }; -%extend MDocStd_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDocStd_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDocStd_DocumentRetrievalDriver::Handle_MDocStd_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDocStd_DocumentRetrievalDriver; -class Handle_MDocStd_DocumentRetrievalDriver : public Handle_PCDM_RetrievalDriver { - - public: - // constructors - Handle_MDocStd_DocumentRetrievalDriver(); - Handle_MDocStd_DocumentRetrievalDriver(const Handle_MDocStd_DocumentRetrievalDriver &aHandle); - Handle_MDocStd_DocumentRetrievalDriver(const MDocStd_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDocStd_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDocStd_DocumentRetrievalDriver { - MDocStd_DocumentRetrievalDriver* _get_reference() { - return (MDocStd_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDocStd_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDocStd_DocumentRetrievalDriver) %extend MDocStd_DocumentRetrievalDriver { %pythoncode { @@ -241,51 +189,7 @@ class MDocStd_DocumentStorageDriver : public PCDM_StorageDriver { }; -%extend MDocStd_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDocStd_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDocStd_DocumentStorageDriver::Handle_MDocStd_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDocStd_DocumentStorageDriver; -class Handle_MDocStd_DocumentStorageDriver : public Handle_PCDM_StorageDriver { - - public: - // constructors - Handle_MDocStd_DocumentStorageDriver(); - Handle_MDocStd_DocumentStorageDriver(const Handle_MDocStd_DocumentStorageDriver &aHandle); - Handle_MDocStd_DocumentStorageDriver(const MDocStd_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDocStd_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDocStd_DocumentStorageDriver { - MDocStd_DocumentStorageDriver* _get_reference() { - return (MDocStd_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDocStd_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDocStd_DocumentStorageDriver) %extend MDocStd_DocumentStorageDriver { %pythoncode { @@ -330,51 +234,7 @@ class MDocStd_XLinkRetrievalDriver : public MDF_ARDriver { }; -%extend MDocStd_XLinkRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDocStd_XLinkRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDocStd_XLinkRetrievalDriver::Handle_MDocStd_XLinkRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDocStd_XLinkRetrievalDriver; -class Handle_MDocStd_XLinkRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MDocStd_XLinkRetrievalDriver(); - Handle_MDocStd_XLinkRetrievalDriver(const Handle_MDocStd_XLinkRetrievalDriver &aHandle); - Handle_MDocStd_XLinkRetrievalDriver(const MDocStd_XLinkRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDocStd_XLinkRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDocStd_XLinkRetrievalDriver { - MDocStd_XLinkRetrievalDriver* _get_reference() { - return (MDocStd_XLinkRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MDocStd_XLinkRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDocStd_XLinkRetrievalDriver) %extend MDocStd_XLinkRetrievalDriver { %pythoncode { @@ -419,51 +279,7 @@ class MDocStd_XLinkStorageDriver : public MDF_ASDriver { }; -%extend MDocStd_XLinkStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MDocStd_XLinkStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MDocStd_XLinkStorageDriver::Handle_MDocStd_XLinkStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MDocStd_XLinkStorageDriver; -class Handle_MDocStd_XLinkStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MDocStd_XLinkStorageDriver(); - Handle_MDocStd_XLinkStorageDriver(const Handle_MDocStd_XLinkStorageDriver &aHandle); - Handle_MDocStd_XLinkStorageDriver(const MDocStd_XLinkStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MDocStd_XLinkStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MDocStd_XLinkStorageDriver { - MDocStd_XLinkStorageDriver* _get_reference() { - return (MDocStd_XLinkStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MDocStd_XLinkStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MDocStd_XLinkStorageDriver) %extend MDocStd_XLinkStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/MFunction.i b/src/SWIG_files/wrapper/MFunction.i index 8fbb919eb..31488bef3 100644 --- a/src/SWIG_files/wrapper/MFunction.i +++ b/src/SWIG_files/wrapper/MFunction.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define MFUNCTIONDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=MFUNCTIONDOCSTRING) MFunction @@ -34,31 +34,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MFunction_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MFunction_FunctionRetrievalDriver) +%wrap_handle(MFunction_FunctionStorageDriver) + %rename(mfunction) MFunction; class MFunction { public: @@ -126,51 +115,7 @@ class MFunction_FunctionRetrievalDriver : public MDF_ARDriver { }; -%extend MFunction_FunctionRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MFunction_FunctionRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MFunction_FunctionRetrievalDriver::Handle_MFunction_FunctionRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MFunction_FunctionRetrievalDriver; -class Handle_MFunction_FunctionRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MFunction_FunctionRetrievalDriver(); - Handle_MFunction_FunctionRetrievalDriver(const Handle_MFunction_FunctionRetrievalDriver &aHandle); - Handle_MFunction_FunctionRetrievalDriver(const MFunction_FunctionRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MFunction_FunctionRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MFunction_FunctionRetrievalDriver { - MFunction_FunctionRetrievalDriver* _get_reference() { - return (MFunction_FunctionRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MFunction_FunctionRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MFunction_FunctionRetrievalDriver) %extend MFunction_FunctionRetrievalDriver { %pythoncode { @@ -213,51 +158,7 @@ class MFunction_FunctionStorageDriver : public MDF_ASDriver { }; -%extend MFunction_FunctionStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MFunction_FunctionStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MFunction_FunctionStorageDriver::Handle_MFunction_FunctionStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MFunction_FunctionStorageDriver; -class Handle_MFunction_FunctionStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MFunction_FunctionStorageDriver(); - Handle_MFunction_FunctionStorageDriver(const Handle_MFunction_FunctionStorageDriver &aHandle); - Handle_MFunction_FunctionStorageDriver(const MFunction_FunctionStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MFunction_FunctionStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MFunction_FunctionStorageDriver { - MFunction_FunctionStorageDriver* _get_reference() { - return (MFunction_FunctionStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MFunction_FunctionStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MFunction_FunctionStorageDriver) %extend MFunction_FunctionStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/MMgt.i b/src/SWIG_files/wrapper/MMgt.i index 8c9e658c4..9d428565b 100644 --- a/src/SWIG_files/wrapper/MMgt.i +++ b/src/SWIG_files/wrapper/MMgt.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define MMGTDOCSTRING -"No docstring provided." +"-Purpose: +The package MMgt provides single class TShared which is second in hierarchy +of inheritance from Standard_Transient, kept for historic reasons +" %enddef %module (package="OCC.Core", docstring=MMGTDOCSTRING) MMgt @@ -34,31 +37,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MMgt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MMgt_TShared) + %nodefaultctor MMgt_TShared; class MMgt_TShared : public Standard_Transient { public: @@ -69,51 +60,7 @@ class MMgt_TShared : public Standard_Transient { }; -%extend MMgt_TShared { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MMgt_TShared(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MMgt_TShared::Handle_MMgt_TShared %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MMgt_TShared; -class Handle_MMgt_TShared : public Handle_Standard_Transient { - - public: - // constructors - Handle_MMgt_TShared(); - Handle_MMgt_TShared(const Handle_MMgt_TShared &aHandle); - Handle_MMgt_TShared(const MMgt_TShared *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MMgt_TShared DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MMgt_TShared { - MMgt_TShared* _get_reference() { - return (MMgt_TShared*)$self->Access(); - } -}; - -%extend Handle_MMgt_TShared { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MMgt_TShared) %extend MMgt_TShared { %pythoncode { diff --git a/src/SWIG_files/wrapper/MNaming.i b/src/SWIG_files/wrapper/MNaming.i index b62e83506..e44982bd2 100644 --- a/src/SWIG_files/wrapper/MNaming.i +++ b/src/SWIG_files/wrapper/MNaming.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define MNAMINGDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=MNAMINGDOCSTRING) MNaming @@ -34,31 +35,24 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MNaming_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MNaming_NamedShapeRetrievalDriver) +%wrap_handle(MNaming_NamedShapeStorageDriver) +%wrap_handle(MNaming_NamingRetrievalDriver) +%wrap_handle(MNaming_NamingRetrievalDriver_1) +%wrap_handle(MNaming_NamingRetrievalDriver_2) +%wrap_handle(MNaming_NamingStorageDriver) + %rename(mnaming) MNaming; class MNaming { public: @@ -128,51 +122,7 @@ class MNaming_NamedShapeRetrievalDriver : public MDF_ARDriver { }; -%extend MNaming_NamedShapeRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MNaming_NamedShapeRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MNaming_NamedShapeRetrievalDriver::Handle_MNaming_NamedShapeRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MNaming_NamedShapeRetrievalDriver; -class Handle_MNaming_NamedShapeRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MNaming_NamedShapeRetrievalDriver(); - Handle_MNaming_NamedShapeRetrievalDriver(const Handle_MNaming_NamedShapeRetrievalDriver &aHandle); - Handle_MNaming_NamedShapeRetrievalDriver(const MNaming_NamedShapeRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MNaming_NamedShapeRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MNaming_NamedShapeRetrievalDriver { - MNaming_NamedShapeRetrievalDriver* _get_reference() { - return (MNaming_NamedShapeRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MNaming_NamedShapeRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MNaming_NamedShapeRetrievalDriver) %extend MNaming_NamedShapeRetrievalDriver { %pythoncode { @@ -217,51 +167,7 @@ class MNaming_NamedShapeStorageDriver : public MDF_ASDriver { }; -%extend MNaming_NamedShapeStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MNaming_NamedShapeStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MNaming_NamedShapeStorageDriver::Handle_MNaming_NamedShapeStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MNaming_NamedShapeStorageDriver; -class Handle_MNaming_NamedShapeStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MNaming_NamedShapeStorageDriver(); - Handle_MNaming_NamedShapeStorageDriver(const Handle_MNaming_NamedShapeStorageDriver &aHandle); - Handle_MNaming_NamedShapeStorageDriver(const MNaming_NamedShapeStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MNaming_NamedShapeStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MNaming_NamedShapeStorageDriver { - MNaming_NamedShapeStorageDriver* _get_reference() { - return (MNaming_NamedShapeStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MNaming_NamedShapeStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MNaming_NamedShapeStorageDriver) %extend MNaming_NamedShapeStorageDriver { %pythoncode { @@ -306,51 +212,7 @@ class MNaming_NamingRetrievalDriver : public MDF_ARDriver { }; -%extend MNaming_NamingRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MNaming_NamingRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MNaming_NamingRetrievalDriver::Handle_MNaming_NamingRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MNaming_NamingRetrievalDriver; -class Handle_MNaming_NamingRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MNaming_NamingRetrievalDriver(); - Handle_MNaming_NamingRetrievalDriver(const Handle_MNaming_NamingRetrievalDriver &aHandle); - Handle_MNaming_NamingRetrievalDriver(const MNaming_NamingRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MNaming_NamingRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MNaming_NamingRetrievalDriver { - MNaming_NamingRetrievalDriver* _get_reference() { - return (MNaming_NamingRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MNaming_NamingRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MNaming_NamingRetrievalDriver) %extend MNaming_NamingRetrievalDriver { %pythoncode { @@ -395,51 +257,7 @@ class MNaming_NamingRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MNaming_NamingRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MNaming_NamingRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MNaming_NamingRetrievalDriver_1::Handle_MNaming_NamingRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MNaming_NamingRetrievalDriver_1; -class Handle_MNaming_NamingRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MNaming_NamingRetrievalDriver_1(); - Handle_MNaming_NamingRetrievalDriver_1(const Handle_MNaming_NamingRetrievalDriver_1 &aHandle); - Handle_MNaming_NamingRetrievalDriver_1(const MNaming_NamingRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MNaming_NamingRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MNaming_NamingRetrievalDriver_1 { - MNaming_NamingRetrievalDriver_1* _get_reference() { - return (MNaming_NamingRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MNaming_NamingRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MNaming_NamingRetrievalDriver_1) %extend MNaming_NamingRetrievalDriver_1 { %pythoncode { @@ -484,51 +302,7 @@ class MNaming_NamingRetrievalDriver_2 : public MDF_ARDriver { }; -%extend MNaming_NamingRetrievalDriver_2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MNaming_NamingRetrievalDriver_2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MNaming_NamingRetrievalDriver_2::Handle_MNaming_NamingRetrievalDriver_2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MNaming_NamingRetrievalDriver_2; -class Handle_MNaming_NamingRetrievalDriver_2 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MNaming_NamingRetrievalDriver_2(); - Handle_MNaming_NamingRetrievalDriver_2(const Handle_MNaming_NamingRetrievalDriver_2 &aHandle); - Handle_MNaming_NamingRetrievalDriver_2(const MNaming_NamingRetrievalDriver_2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MNaming_NamingRetrievalDriver_2 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MNaming_NamingRetrievalDriver_2 { - MNaming_NamingRetrievalDriver_2* _get_reference() { - return (MNaming_NamingRetrievalDriver_2*)$self->Access(); - } -}; - -%extend Handle_MNaming_NamingRetrievalDriver_2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MNaming_NamingRetrievalDriver_2) %extend MNaming_NamingRetrievalDriver_2 { %pythoncode { @@ -573,51 +347,7 @@ class MNaming_NamingStorageDriver : public MDF_ASDriver { }; -%extend MNaming_NamingStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MNaming_NamingStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MNaming_NamingStorageDriver::Handle_MNaming_NamingStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MNaming_NamingStorageDriver; -class Handle_MNaming_NamingStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MNaming_NamingStorageDriver(); - Handle_MNaming_NamingStorageDriver(const Handle_MNaming_NamingStorageDriver &aHandle); - Handle_MNaming_NamingStorageDriver(const MNaming_NamingStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MNaming_NamingStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MNaming_NamingStorageDriver { - MNaming_NamingStorageDriver* _get_reference() { - return (MNaming_NamingStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MNaming_NamingStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MNaming_NamingStorageDriver) %extend MNaming_NamingStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/MPrsStd.i b/src/SWIG_files/wrapper/MPrsStd.i index fcaa6ebc0..623a21811 100644 --- a/src/SWIG_files/wrapper/MPrsStd.i +++ b/src/SWIG_files/wrapper/MPrsStd.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define MPRSSTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for graphic +attributes. Transient attributes are defined in +package TPrsStd and persistent one are defined in +package PPrsStd +" %enddef %module (package="OCC.Core", docstring=MPRSSTDDOCSTRING) MPrsStd @@ -34,31 +38,23 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MPrsStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(MPrsStd_AISPresentationRetrievalDriver) +%wrap_handle(MPrsStd_AISPresentationRetrievalDriver_1) +%wrap_handle(MPrsStd_AISPresentationStorageDriver) +%wrap_handle(MPrsStd_PositionRetrievalDriver) +%wrap_handle(MPrsStd_PositionStorageDriver) + %rename(mprsstd) MPrsStd; class MPrsStd { public: @@ -128,51 +124,7 @@ class MPrsStd_AISPresentationRetrievalDriver : public MDF_ARDriver { }; -%extend MPrsStd_AISPresentationRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MPrsStd_AISPresentationRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MPrsStd_AISPresentationRetrievalDriver::Handle_MPrsStd_AISPresentationRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MPrsStd_AISPresentationRetrievalDriver; -class Handle_MPrsStd_AISPresentationRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MPrsStd_AISPresentationRetrievalDriver(); - Handle_MPrsStd_AISPresentationRetrievalDriver(const Handle_MPrsStd_AISPresentationRetrievalDriver &aHandle); - Handle_MPrsStd_AISPresentationRetrievalDriver(const MPrsStd_AISPresentationRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MPrsStd_AISPresentationRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MPrsStd_AISPresentationRetrievalDriver { - MPrsStd_AISPresentationRetrievalDriver* _get_reference() { - return (MPrsStd_AISPresentationRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MPrsStd_AISPresentationRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MPrsStd_AISPresentationRetrievalDriver) %extend MPrsStd_AISPresentationRetrievalDriver { %pythoncode { @@ -217,51 +169,7 @@ class MPrsStd_AISPresentationRetrievalDriver_1 : public MDF_ARDriver { }; -%extend MPrsStd_AISPresentationRetrievalDriver_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MPrsStd_AISPresentationRetrievalDriver_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MPrsStd_AISPresentationRetrievalDriver_1::Handle_MPrsStd_AISPresentationRetrievalDriver_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MPrsStd_AISPresentationRetrievalDriver_1; -class Handle_MPrsStd_AISPresentationRetrievalDriver_1 : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MPrsStd_AISPresentationRetrievalDriver_1(); - Handle_MPrsStd_AISPresentationRetrievalDriver_1(const Handle_MPrsStd_AISPresentationRetrievalDriver_1 &aHandle); - Handle_MPrsStd_AISPresentationRetrievalDriver_1(const MPrsStd_AISPresentationRetrievalDriver_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MPrsStd_AISPresentationRetrievalDriver_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MPrsStd_AISPresentationRetrievalDriver_1 { - MPrsStd_AISPresentationRetrievalDriver_1* _get_reference() { - return (MPrsStd_AISPresentationRetrievalDriver_1*)$self->Access(); - } -}; - -%extend Handle_MPrsStd_AISPresentationRetrievalDriver_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MPrsStd_AISPresentationRetrievalDriver_1) %extend MPrsStd_AISPresentationRetrievalDriver_1 { %pythoncode { @@ -306,51 +214,7 @@ class MPrsStd_AISPresentationStorageDriver : public MDF_ASDriver { }; -%extend MPrsStd_AISPresentationStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MPrsStd_AISPresentationStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MPrsStd_AISPresentationStorageDriver::Handle_MPrsStd_AISPresentationStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MPrsStd_AISPresentationStorageDriver; -class Handle_MPrsStd_AISPresentationStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MPrsStd_AISPresentationStorageDriver(); - Handle_MPrsStd_AISPresentationStorageDriver(const Handle_MPrsStd_AISPresentationStorageDriver &aHandle); - Handle_MPrsStd_AISPresentationStorageDriver(const MPrsStd_AISPresentationStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MPrsStd_AISPresentationStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MPrsStd_AISPresentationStorageDriver { - MPrsStd_AISPresentationStorageDriver* _get_reference() { - return (MPrsStd_AISPresentationStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MPrsStd_AISPresentationStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MPrsStd_AISPresentationStorageDriver) %extend MPrsStd_AISPresentationStorageDriver { %pythoncode { @@ -395,51 +259,7 @@ class MPrsStd_PositionRetrievalDriver : public MDF_ARDriver { }; -%extend MPrsStd_PositionRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MPrsStd_PositionRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MPrsStd_PositionRetrievalDriver::Handle_MPrsStd_PositionRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MPrsStd_PositionRetrievalDriver; -class Handle_MPrsStd_PositionRetrievalDriver : public Handle_MDF_ARDriver { - - public: - // constructors - Handle_MPrsStd_PositionRetrievalDriver(); - Handle_MPrsStd_PositionRetrievalDriver(const Handle_MPrsStd_PositionRetrievalDriver &aHandle); - Handle_MPrsStd_PositionRetrievalDriver(const MPrsStd_PositionRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MPrsStd_PositionRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MPrsStd_PositionRetrievalDriver { - MPrsStd_PositionRetrievalDriver* _get_reference() { - return (MPrsStd_PositionRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_MPrsStd_PositionRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MPrsStd_PositionRetrievalDriver) %extend MPrsStd_PositionRetrievalDriver { %pythoncode { @@ -484,51 +304,7 @@ class MPrsStd_PositionStorageDriver : public MDF_ASDriver { }; -%extend MPrsStd_PositionStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MPrsStd_PositionStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MPrsStd_PositionStorageDriver::Handle_MPrsStd_PositionStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MPrsStd_PositionStorageDriver; -class Handle_MPrsStd_PositionStorageDriver : public Handle_MDF_ASDriver { - - public: - // constructors - Handle_MPrsStd_PositionStorageDriver(); - Handle_MPrsStd_PositionStorageDriver(const Handle_MPrsStd_PositionStorageDriver &aHandle); - Handle_MPrsStd_PositionStorageDriver(const MPrsStd_PositionStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MPrsStd_PositionStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MPrsStd_PositionStorageDriver { - MPrsStd_PositionStorageDriver* _get_reference() { - return (MPrsStd_PositionStorageDriver*)$self->Access(); - } -}; - -%extend Handle_MPrsStd_PositionStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MPrsStd_PositionStorageDriver) %extend MPrsStd_PositionStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/Materials.i b/src/SWIG_files/wrapper/Materials.i index cfa26bf1d..30e9499f6 100644 --- a/src/SWIG_files/wrapper/Materials.i +++ b/src/SWIG_files/wrapper/Materials.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Materials_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/MeshVS.i b/src/SWIG_files/wrapper/MeshVS.i index 58b1ba83e..e298418d2 100644 --- a/src/SWIG_files/wrapper/MeshVS.i +++ b/src/SWIG_files/wrapper/MeshVS.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define MESHVSDOCSTRING -"No docstring provided." +"This package provides classes and simple methods of flexible presentation object +that is responsible for the following tasks: +1) Displaying mesh ( some mesh elements and nodes may be hidden ) +2) Results of calculations and analysis are shown through the single common interface. +3) The data can be shown with different visual styles: colors, vectors, texts and deformed mesh. +4) Selection of mesh entities (except hidden ones) +" %enddef %module (package="OCC.Core", docstring=MESHVSDOCSTRING) MeshVS @@ -34,25 +40,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include MeshVS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Integer MeshVS_DisplayModeFlags; typedef NCollection_List ::Iterator MeshVS_PolyhedronVertsIter; @@ -166,6 +158,39 @@ enum { /* end public enums declaration */ +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerBoolean) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerColor) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerMaterial) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerOwner) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfIntegerVector) +%wrap_handle(MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger) +%wrap_handle(MeshVS_DataSource) +%wrap_handle(MeshVS_Drawer) +%wrap_handle(MeshVS_DummySensitiveEntity) +%wrap_handle(MeshVS_HArray1OfSequenceOfInteger) +%wrap_handle(MeshVS_Mesh) +%wrap_handle(MeshVS_MeshEntityOwner) +%wrap_handle(MeshVS_MeshOwner) +%wrap_handle(MeshVS_PrsBuilder) +%wrap_handle(MeshVS_SensitiveFace) +%wrap_handle(MeshVS_SensitiveMesh) +%wrap_handle(MeshVS_SensitivePolyhedron) +%wrap_handle(MeshVS_SensitiveSegment) +%wrap_handle(MeshVS_SequenceNodeOfSequenceOfPrsBuilder) +%wrap_handle(MeshVS_StdMapNodeOfMapOfTwoNodes) +%wrap_handle(MeshVS_DataSource3D) +%wrap_handle(MeshVS_DeformedDataSource) +%wrap_handle(MeshVS_ElementalColorPrsBuilder) +%wrap_handle(MeshVS_MeshPrsBuilder) +%wrap_handle(MeshVS_NodalColorPrsBuilder) +%wrap_handle(MeshVS_TextPrsBuilder) +%wrap_handle(MeshVS_VectorPrsBuilder) + %nodefaultctor MeshVS_Array1OfSequenceOfInteger; class MeshVS_Array1OfSequenceOfInteger { public: @@ -688,51 +713,7 @@ class MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger : public TCollection_MapNod }; -%extend MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger::Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger; -class Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger(); - Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger(const Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger(const MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger { - MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger) %extend MeshVS_DataMapNodeOfDataMapOfColorMapOfInteger { %pythoncode { @@ -772,51 +753,7 @@ class MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger : public TCollecti }; -%extend MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger::Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger; -class Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger(); - Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger(const Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger(const MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger { - MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger) %extend MeshVS_DataMapNodeOfDataMapOfHArray1OfSequenceOfInteger { %pythoncode { @@ -856,51 +793,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString : public TCollection_MapNo }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString(const MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString { - MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString) %extend MeshVS_DataMapNodeOfDataMapOfIntegerAsciiString { %pythoncode { @@ -949,51 +842,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerBoolean : public TCollection_MapNode { }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerBoolean { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean(const MeshVS_DataMapNodeOfDataMapOfIntegerBoolean *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean { - MeshVS_DataMapNodeOfDataMapOfIntegerBoolean* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerBoolean*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerBoolean { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerBoolean) %extend MeshVS_DataMapNodeOfDataMapOfIntegerBoolean { %pythoncode { @@ -1033,51 +882,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerColor : public TCollection_MapNode { }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerColor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor(const MeshVS_DataMapNodeOfDataMapOfIntegerColor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor { - MeshVS_DataMapNodeOfDataMapOfIntegerColor* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerColor*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerColor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerColor) %extend MeshVS_DataMapNodeOfDataMapOfIntegerColor { %pythoncode { @@ -1117,51 +922,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerMaterial : public TCollection_MapNode }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerMaterial { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial(const MeshVS_DataMapNodeOfDataMapOfIntegerMaterial *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial { - MeshVS_DataMapNodeOfDataMapOfIntegerMaterial* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerMaterial*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMaterial { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerMaterial) %extend MeshVS_DataMapNodeOfDataMapOfIntegerMaterial { %pythoncode { @@ -1201,51 +962,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner : public TCollection_M }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner(const MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner { - MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner) %extend MeshVS_DataMapNodeOfDataMapOfIntegerMeshEntityOwner { %pythoncode { @@ -1285,51 +1002,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerOwner : public TCollection_MapNode { }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner(const MeshVS_DataMapNodeOfDataMapOfIntegerOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner { - MeshVS_DataMapNodeOfDataMapOfIntegerOwner* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerOwner*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerOwner) %extend MeshVS_DataMapNodeOfDataMapOfIntegerOwner { %pythoncode { @@ -1369,51 +1042,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors : public TCollection_MapNode }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors(const MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors { - MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors) %extend MeshVS_DataMapNodeOfDataMapOfIntegerTwoColors { %pythoncode { @@ -1453,51 +1082,7 @@ class MeshVS_DataMapNodeOfDataMapOfIntegerVector : public TCollection_MapNode { }; -%extend MeshVS_DataMapNodeOfDataMapOfIntegerVector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector::Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector; -class Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector(); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector(const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector(const MeshVS_DataMapNodeOfDataMapOfIntegerVector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector { - MeshVS_DataMapNodeOfDataMapOfIntegerVector* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfIntegerVector*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfIntegerVector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfIntegerVector) %extend MeshVS_DataMapNodeOfDataMapOfIntegerVector { %pythoncode { @@ -1528,51 +1113,7 @@ class MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger : public TCollection_Ma }; -%extend MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger::Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger; -class Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger(); - Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger(const Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger &aHandle); - Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger(const MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger { - MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger* _get_reference() { - return (MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger) %extend MeshVS_DataMapNodeOfDataMapOfTwoColorsMapOfInteger { %pythoncode { @@ -2730,51 +2271,7 @@ class MeshVS_DataSource : public MMgt_TShared { }; -%extend MeshVS_DataSource { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataSource(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataSource::Handle_MeshVS_DataSource %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataSource; -class Handle_MeshVS_DataSource : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MeshVS_DataSource(); - Handle_MeshVS_DataSource(const Handle_MeshVS_DataSource &aHandle); - Handle_MeshVS_DataSource(const MeshVS_DataSource *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataSource DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataSource { - MeshVS_DataSource* _get_reference() { - return (MeshVS_DataSource*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataSource { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataSource) %extend MeshVS_DataSource { %pythoncode { @@ -2927,51 +2424,7 @@ class MeshVS_Drawer : public MMgt_TShared { }; -%extend MeshVS_Drawer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_Drawer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_Drawer::Handle_MeshVS_Drawer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_Drawer; -class Handle_MeshVS_Drawer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MeshVS_Drawer(); - Handle_MeshVS_Drawer(const Handle_MeshVS_Drawer &aHandle); - Handle_MeshVS_Drawer(const MeshVS_Drawer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_Drawer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_Drawer { - MeshVS_Drawer* _get_reference() { - return (MeshVS_Drawer*)$self->Access(); - } -}; - -%extend Handle_MeshVS_Drawer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_Drawer) %extend MeshVS_Drawer { %pythoncode { @@ -3022,51 +2475,7 @@ class MeshVS_DummySensitiveEntity : public SelectBasics_SensitiveEntity { }; -%extend MeshVS_DummySensitiveEntity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DummySensitiveEntity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DummySensitiveEntity::Handle_MeshVS_DummySensitiveEntity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DummySensitiveEntity; -class Handle_MeshVS_DummySensitiveEntity : public Handle_SelectBasics_SensitiveEntity { - - public: - // constructors - Handle_MeshVS_DummySensitiveEntity(); - Handle_MeshVS_DummySensitiveEntity(const Handle_MeshVS_DummySensitiveEntity &aHandle); - Handle_MeshVS_DummySensitiveEntity(const MeshVS_DummySensitiveEntity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DummySensitiveEntity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DummySensitiveEntity { - MeshVS_DummySensitiveEntity* _get_reference() { - return (MeshVS_DummySensitiveEntity*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DummySensitiveEntity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DummySensitiveEntity) %extend MeshVS_DummySensitiveEntity { %pythoncode { @@ -3143,51 +2552,7 @@ class MeshVS_HArray1OfSequenceOfInteger : public MMgt_TShared { }; -%extend MeshVS_HArray1OfSequenceOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_HArray1OfSequenceOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_HArray1OfSequenceOfInteger::Handle_MeshVS_HArray1OfSequenceOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_HArray1OfSequenceOfInteger; -class Handle_MeshVS_HArray1OfSequenceOfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MeshVS_HArray1OfSequenceOfInteger(); - Handle_MeshVS_HArray1OfSequenceOfInteger(const Handle_MeshVS_HArray1OfSequenceOfInteger &aHandle); - Handle_MeshVS_HArray1OfSequenceOfInteger(const MeshVS_HArray1OfSequenceOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_HArray1OfSequenceOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_HArray1OfSequenceOfInteger { - MeshVS_HArray1OfSequenceOfInteger* _get_reference() { - return (MeshVS_HArray1OfSequenceOfInteger*)$self->Access(); - } -}; - -%extend Handle_MeshVS_HArray1OfSequenceOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_HArray1OfSequenceOfInteger) %extend MeshVS_HArray1OfSequenceOfInteger { %pythoncode { @@ -3586,51 +2951,7 @@ class MeshVS_Mesh : public AIS_InteractiveObject { }; -%extend MeshVS_Mesh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_Mesh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_Mesh::Handle_MeshVS_Mesh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_Mesh; -class Handle_MeshVS_Mesh : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_MeshVS_Mesh(); - Handle_MeshVS_Mesh(const Handle_MeshVS_Mesh &aHandle); - Handle_MeshVS_Mesh(const MeshVS_Mesh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_Mesh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_Mesh { - MeshVS_Mesh* _get_reference() { - return (MeshVS_Mesh*)$self->Access(); - } -}; - -%extend Handle_MeshVS_Mesh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_Mesh) %extend MeshVS_Mesh { %pythoncode { @@ -3739,51 +3060,7 @@ class MeshVS_MeshEntityOwner : public SelectMgr_EntityOwner { }; -%extend MeshVS_MeshEntityOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_MeshEntityOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_MeshEntityOwner::Handle_MeshVS_MeshEntityOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_MeshEntityOwner; -class Handle_MeshVS_MeshEntityOwner : public Handle_SelectMgr_EntityOwner { - - public: - // constructors - Handle_MeshVS_MeshEntityOwner(); - Handle_MeshVS_MeshEntityOwner(const Handle_MeshVS_MeshEntityOwner &aHandle); - Handle_MeshVS_MeshEntityOwner(const MeshVS_MeshEntityOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_MeshEntityOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_MeshEntityOwner { - MeshVS_MeshEntityOwner* _get_reference() { - return (MeshVS_MeshEntityOwner*)$self->Access(); - } -}; - -%extend Handle_MeshVS_MeshEntityOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_MeshEntityOwner) %extend MeshVS_MeshEntityOwner { %pythoncode { @@ -3882,51 +3159,7 @@ class MeshVS_MeshOwner : public SelectMgr_EntityOwner { }; -%extend MeshVS_MeshOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_MeshOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_MeshOwner::Handle_MeshVS_MeshOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_MeshOwner; -class Handle_MeshVS_MeshOwner : public Handle_SelectMgr_EntityOwner { - - public: - // constructors - Handle_MeshVS_MeshOwner(); - Handle_MeshVS_MeshOwner(const Handle_MeshVS_MeshOwner &aHandle); - Handle_MeshVS_MeshOwner(const MeshVS_MeshOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_MeshOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_MeshOwner { - MeshVS_MeshOwner* _get_reference() { - return (MeshVS_MeshOwner*)$self->Access(); - } -}; - -%extend Handle_MeshVS_MeshOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_MeshOwner) %extend MeshVS_MeshOwner { %pythoncode { @@ -4061,51 +3294,7 @@ class MeshVS_PrsBuilder : public MMgt_TShared { }; -%extend MeshVS_PrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_PrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_PrsBuilder::Handle_MeshVS_PrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_PrsBuilder; -class Handle_MeshVS_PrsBuilder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_MeshVS_PrsBuilder(); - Handle_MeshVS_PrsBuilder(const Handle_MeshVS_PrsBuilder &aHandle); - Handle_MeshVS_PrsBuilder(const MeshVS_PrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_PrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_PrsBuilder { - MeshVS_PrsBuilder* _get_reference() { - return (MeshVS_PrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_PrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_PrsBuilder) %extend MeshVS_PrsBuilder { %pythoncode { @@ -4128,51 +3317,7 @@ class MeshVS_SensitiveFace : public Select3D_SensitiveFace { }; -%extend MeshVS_SensitiveFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_SensitiveFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_SensitiveFace::Handle_MeshVS_SensitiveFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_SensitiveFace; -class Handle_MeshVS_SensitiveFace : public Handle_Select3D_SensitiveFace { - - public: - // constructors - Handle_MeshVS_SensitiveFace(); - Handle_MeshVS_SensitiveFace(const Handle_MeshVS_SensitiveFace &aHandle); - Handle_MeshVS_SensitiveFace(const MeshVS_SensitiveFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_SensitiveFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_SensitiveFace { - MeshVS_SensitiveFace* _get_reference() { - return (MeshVS_SensitiveFace*)$self->Access(); - } -}; - -%extend Handle_MeshVS_SensitiveFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_SensitiveFace) %extend MeshVS_SensitiveFace { %pythoncode { @@ -4219,51 +3364,7 @@ class MeshVS_SensitiveMesh : public Select3D_SensitiveEntity { }; -%extend MeshVS_SensitiveMesh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_SensitiveMesh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_SensitiveMesh::Handle_MeshVS_SensitiveMesh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_SensitiveMesh; -class Handle_MeshVS_SensitiveMesh : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_MeshVS_SensitiveMesh(); - Handle_MeshVS_SensitiveMesh(const Handle_MeshVS_SensitiveMesh &aHandle); - Handle_MeshVS_SensitiveMesh(const MeshVS_SensitiveMesh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_SensitiveMesh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_SensitiveMesh { - MeshVS_SensitiveMesh* _get_reference() { - return (MeshVS_SensitiveMesh*)$self->Access(); - } -}; - -%extend Handle_MeshVS_SensitiveMesh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_SensitiveMesh) %extend MeshVS_SensitiveMesh { %pythoncode { @@ -4312,51 +3413,7 @@ class MeshVS_SensitivePolyhedron : public Select3D_SensitiveEntity { }; -%extend MeshVS_SensitivePolyhedron { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_SensitivePolyhedron(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_SensitivePolyhedron::Handle_MeshVS_SensitivePolyhedron %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_SensitivePolyhedron; -class Handle_MeshVS_SensitivePolyhedron : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_MeshVS_SensitivePolyhedron(); - Handle_MeshVS_SensitivePolyhedron(const Handle_MeshVS_SensitivePolyhedron &aHandle); - Handle_MeshVS_SensitivePolyhedron(const MeshVS_SensitivePolyhedron *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_SensitivePolyhedron DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_SensitivePolyhedron { - MeshVS_SensitivePolyhedron* _get_reference() { - return (MeshVS_SensitivePolyhedron*)$self->Access(); - } -}; - -%extend Handle_MeshVS_SensitivePolyhedron { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_SensitivePolyhedron) %extend MeshVS_SensitivePolyhedron { %pythoncode { @@ -4379,51 +3436,7 @@ class MeshVS_SensitiveSegment : public Select3D_SensitiveSegment { }; -%extend MeshVS_SensitiveSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_SensitiveSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_SensitiveSegment::Handle_MeshVS_SensitiveSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_SensitiveSegment; -class Handle_MeshVS_SensitiveSegment : public Handle_Select3D_SensitiveSegment { - - public: - // constructors - Handle_MeshVS_SensitiveSegment(); - Handle_MeshVS_SensitiveSegment(const Handle_MeshVS_SensitiveSegment &aHandle); - Handle_MeshVS_SensitiveSegment(const MeshVS_SensitiveSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_SensitiveSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_SensitiveSegment { - MeshVS_SensitiveSegment* _get_reference() { - return (MeshVS_SensitiveSegment*)$self->Access(); - } -}; - -%extend Handle_MeshVS_SensitiveSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_SensitiveSegment) %extend MeshVS_SensitiveSegment { %pythoncode { @@ -4450,51 +3463,7 @@ class MeshVS_SequenceNodeOfSequenceOfPrsBuilder : public TCollection_SeqNode { }; -%extend MeshVS_SequenceNodeOfSequenceOfPrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder::Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder; -class Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder(); - Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder(const Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder &aHandle); - Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder(const MeshVS_SequenceNodeOfSequenceOfPrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder { - MeshVS_SequenceNodeOfSequenceOfPrsBuilder* _get_reference() { - return (MeshVS_SequenceNodeOfSequenceOfPrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_SequenceNodeOfSequenceOfPrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_SequenceNodeOfSequenceOfPrsBuilder) %extend MeshVS_SequenceNodeOfSequenceOfPrsBuilder { %pythoncode { @@ -4662,51 +3631,7 @@ class MeshVS_StdMapNodeOfMapOfTwoNodes : public TCollection_MapNode { }; -%extend MeshVS_StdMapNodeOfMapOfTwoNodes { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_StdMapNodeOfMapOfTwoNodes(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_StdMapNodeOfMapOfTwoNodes::Handle_MeshVS_StdMapNodeOfMapOfTwoNodes %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_StdMapNodeOfMapOfTwoNodes; -class Handle_MeshVS_StdMapNodeOfMapOfTwoNodes : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_MeshVS_StdMapNodeOfMapOfTwoNodes(); - Handle_MeshVS_StdMapNodeOfMapOfTwoNodes(const Handle_MeshVS_StdMapNodeOfMapOfTwoNodes &aHandle); - Handle_MeshVS_StdMapNodeOfMapOfTwoNodes(const MeshVS_StdMapNodeOfMapOfTwoNodes *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_StdMapNodeOfMapOfTwoNodes DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_StdMapNodeOfMapOfTwoNodes { - MeshVS_StdMapNodeOfMapOfTwoNodes* _get_reference() { - return (MeshVS_StdMapNodeOfMapOfTwoNodes*)$self->Access(); - } -}; - -%extend Handle_MeshVS_StdMapNodeOfMapOfTwoNodes { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_StdMapNodeOfMapOfTwoNodes) %extend MeshVS_StdMapNodeOfMapOfTwoNodes { %pythoncode { @@ -4942,51 +3867,7 @@ class MeshVS_DataSource3D : public MeshVS_DataSource { }; -%extend MeshVS_DataSource3D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DataSource3D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DataSource3D::Handle_MeshVS_DataSource3D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DataSource3D; -class Handle_MeshVS_DataSource3D : public Handle_MeshVS_DataSource { - - public: - // constructors - Handle_MeshVS_DataSource3D(); - Handle_MeshVS_DataSource3D(const Handle_MeshVS_DataSource3D &aHandle); - Handle_MeshVS_DataSource3D(const MeshVS_DataSource3D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DataSource3D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DataSource3D { - MeshVS_DataSource3D* _get_reference() { - return (MeshVS_DataSource3D*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DataSource3D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DataSource3D) %extend MeshVS_DataSource3D { %pythoncode { @@ -5127,51 +4008,7 @@ class MeshVS_DeformedDataSource : public MeshVS_DataSource { }; -%extend MeshVS_DeformedDataSource { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_DeformedDataSource(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_DeformedDataSource::Handle_MeshVS_DeformedDataSource %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_DeformedDataSource; -class Handle_MeshVS_DeformedDataSource : public Handle_MeshVS_DataSource { - - public: - // constructors - Handle_MeshVS_DeformedDataSource(); - Handle_MeshVS_DeformedDataSource(const Handle_MeshVS_DeformedDataSource &aHandle); - Handle_MeshVS_DeformedDataSource(const MeshVS_DeformedDataSource *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_DeformedDataSource DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_DeformedDataSource { - MeshVS_DeformedDataSource* _get_reference() { - return (MeshVS_DeformedDataSource*)$self->Access(); - } -}; - -%extend Handle_MeshVS_DeformedDataSource { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_DeformedDataSource) %extend MeshVS_DeformedDataSource { %pythoncode { @@ -5320,51 +4157,7 @@ class MeshVS_ElementalColorPrsBuilder : public MeshVS_PrsBuilder { }; -%extend MeshVS_ElementalColorPrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_ElementalColorPrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_ElementalColorPrsBuilder::Handle_MeshVS_ElementalColorPrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_ElementalColorPrsBuilder; -class Handle_MeshVS_ElementalColorPrsBuilder : public Handle_MeshVS_PrsBuilder { - - public: - // constructors - Handle_MeshVS_ElementalColorPrsBuilder(); - Handle_MeshVS_ElementalColorPrsBuilder(const Handle_MeshVS_ElementalColorPrsBuilder &aHandle); - Handle_MeshVS_ElementalColorPrsBuilder(const MeshVS_ElementalColorPrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_ElementalColorPrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_ElementalColorPrsBuilder { - MeshVS_ElementalColorPrsBuilder* _get_reference() { - return (MeshVS_ElementalColorPrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_ElementalColorPrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_ElementalColorPrsBuilder) %extend MeshVS_ElementalColorPrsBuilder { %pythoncode { @@ -5489,51 +4282,7 @@ class MeshVS_MeshPrsBuilder : public MeshVS_PrsBuilder { }; -%extend MeshVS_MeshPrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_MeshPrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_MeshPrsBuilder::Handle_MeshVS_MeshPrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_MeshPrsBuilder; -class Handle_MeshVS_MeshPrsBuilder : public Handle_MeshVS_PrsBuilder { - - public: - // constructors - Handle_MeshVS_MeshPrsBuilder(); - Handle_MeshVS_MeshPrsBuilder(const Handle_MeshVS_MeshPrsBuilder &aHandle); - Handle_MeshVS_MeshPrsBuilder(const MeshVS_MeshPrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_MeshPrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_MeshPrsBuilder { - MeshVS_MeshPrsBuilder* _get_reference() { - return (MeshVS_MeshPrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_MeshPrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_MeshPrsBuilder) %extend MeshVS_MeshPrsBuilder { %pythoncode { @@ -5712,51 +4461,7 @@ class MeshVS_NodalColorPrsBuilder : public MeshVS_PrsBuilder { }; -%extend MeshVS_NodalColorPrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_NodalColorPrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_NodalColorPrsBuilder::Handle_MeshVS_NodalColorPrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_NodalColorPrsBuilder; -class Handle_MeshVS_NodalColorPrsBuilder : public Handle_MeshVS_PrsBuilder { - - public: - // constructors - Handle_MeshVS_NodalColorPrsBuilder(); - Handle_MeshVS_NodalColorPrsBuilder(const Handle_MeshVS_NodalColorPrsBuilder &aHandle); - Handle_MeshVS_NodalColorPrsBuilder(const MeshVS_NodalColorPrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_NodalColorPrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_NodalColorPrsBuilder { - MeshVS_NodalColorPrsBuilder* _get_reference() { - return (MeshVS_NodalColorPrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_NodalColorPrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_NodalColorPrsBuilder) %extend MeshVS_NodalColorPrsBuilder { %pythoncode { @@ -5853,51 +4558,7 @@ class MeshVS_TextPrsBuilder : public MeshVS_PrsBuilder { }; -%extend MeshVS_TextPrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_TextPrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_TextPrsBuilder::Handle_MeshVS_TextPrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_TextPrsBuilder; -class Handle_MeshVS_TextPrsBuilder : public Handle_MeshVS_PrsBuilder { - - public: - // constructors - Handle_MeshVS_TextPrsBuilder(); - Handle_MeshVS_TextPrsBuilder(const Handle_MeshVS_TextPrsBuilder &aHandle); - Handle_MeshVS_TextPrsBuilder(const MeshVS_TextPrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_TextPrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_TextPrsBuilder { - MeshVS_TextPrsBuilder* _get_reference() { - return (MeshVS_TextPrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_TextPrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_TextPrsBuilder) %extend MeshVS_TextPrsBuilder { %pythoncode { @@ -6060,51 +4721,7 @@ class MeshVS_VectorPrsBuilder : public MeshVS_PrsBuilder { }; -%extend MeshVS_VectorPrsBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_MeshVS_VectorPrsBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_MeshVS_VectorPrsBuilder::Handle_MeshVS_VectorPrsBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_MeshVS_VectorPrsBuilder; -class Handle_MeshVS_VectorPrsBuilder : public Handle_MeshVS_PrsBuilder { - - public: - // constructors - Handle_MeshVS_VectorPrsBuilder(); - Handle_MeshVS_VectorPrsBuilder(const Handle_MeshVS_VectorPrsBuilder &aHandle); - Handle_MeshVS_VectorPrsBuilder(const MeshVS_VectorPrsBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_MeshVS_VectorPrsBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_MeshVS_VectorPrsBuilder { - MeshVS_VectorPrsBuilder* _get_reference() { - return (MeshVS_VectorPrsBuilder*)$self->Access(); - } -}; - -%extend Handle_MeshVS_VectorPrsBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(MeshVS_VectorPrsBuilder) %extend MeshVS_VectorPrsBuilder { %pythoncode { diff --git a/src/SWIG_files/wrapper/Message.i b/src/SWIG_files/wrapper/Message.i index 79dbce998..12ac35150 100644 --- a/src/SWIG_files/wrapper/Message.i +++ b/src/SWIG_files/wrapper/Message.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define MESSAGEDOCSTRING -"No docstring provided." +"Defines +- tools to work with messages +- basic tools intended for progress indication +" %enddef %module (package="OCC.Core", docstring=MESSAGEDOCSTRING) Message @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Message_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Handle_Message_ArrayOfMsg Message_HArrayOfMsg; typedef NCollection_Array1 Message_ArrayOfMsg; @@ -210,6 +199,15 @@ enum Message_StatusType { /* end public enums declaration */ +%wrap_handle(Message_Algorithm) +%wrap_handle(Message_ListNodeOfListOfMsg) +%wrap_handle(Message_Messenger) +%wrap_handle(Message_Printer) +%wrap_handle(Message_ProgressIndicator) +%wrap_handle(Message_SequenceNodeOfSequenceOfPrinters) +%wrap_handle(Message_SequenceNodeOfSequenceOfProgressScale) +%wrap_handle(Message_PrinterOStream) + %rename(message) Message; class Message { public: @@ -447,51 +445,7 @@ class Message_Algorithm : public MMgt_TShared { }; -%extend Message_Algorithm { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_Algorithm(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_Algorithm::Handle_Message_Algorithm %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_Algorithm; -class Handle_Message_Algorithm : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Message_Algorithm(); - Handle_Message_Algorithm(const Handle_Message_Algorithm &aHandle); - Handle_Message_Algorithm(const Message_Algorithm *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_Algorithm DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_Algorithm { - Message_Algorithm* _get_reference() { - return (Message_Algorithm*)$self->Access(); - } -}; - -%extend Handle_Message_Algorithm { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_Algorithm) %extend Message_Algorithm { %pythoncode { @@ -555,51 +509,7 @@ class Message_ListNodeOfListOfMsg : public TCollection_MapNode { }; -%extend Message_ListNodeOfListOfMsg { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_ListNodeOfListOfMsg(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_ListNodeOfListOfMsg::Handle_Message_ListNodeOfListOfMsg %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_ListNodeOfListOfMsg; -class Handle_Message_ListNodeOfListOfMsg : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Message_ListNodeOfListOfMsg(); - Handle_Message_ListNodeOfListOfMsg(const Handle_Message_ListNodeOfListOfMsg &aHandle); - Handle_Message_ListNodeOfListOfMsg(const Message_ListNodeOfListOfMsg *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_ListNodeOfListOfMsg DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_ListNodeOfListOfMsg { - Message_ListNodeOfListOfMsg* _get_reference() { - return (Message_ListNodeOfListOfMsg*)$self->Access(); - } -}; - -%extend Handle_Message_ListNodeOfListOfMsg { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_ListNodeOfListOfMsg) %extend Message_ListNodeOfListOfMsg { %pythoncode { @@ -833,51 +743,7 @@ class Message_Messenger : public MMgt_TShared { }; -%extend Message_Messenger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_Messenger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_Messenger::Handle_Message_Messenger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_Messenger; -class Handle_Message_Messenger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Message_Messenger(); - Handle_Message_Messenger(const Handle_Message_Messenger &aHandle); - Handle_Message_Messenger(const Message_Messenger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_Messenger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_Messenger { - Message_Messenger* _get_reference() { - return (Message_Messenger*)$self->Access(); - } -}; - -%extend Handle_Message_Messenger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_Messenger) %extend Message_Messenger { %pythoncode { @@ -1012,51 +878,7 @@ class Message_Printer : public MMgt_TShared { }; -%extend Message_Printer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_Printer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_Printer::Handle_Message_Printer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_Printer; -class Handle_Message_Printer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Message_Printer(); - Handle_Message_Printer(const Handle_Message_Printer &aHandle); - Handle_Message_Printer(const Message_Printer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_Printer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_Printer { - Message_Printer* _get_reference() { - return (Message_Printer*)$self->Access(); - } -}; - -%extend Handle_Message_Printer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_Printer) %extend Message_Printer { %pythoncode { @@ -1267,51 +1089,7 @@ class Message_ProgressIndicator : public MMgt_TShared { }; -%extend Message_ProgressIndicator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_ProgressIndicator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_ProgressIndicator::Handle_Message_ProgressIndicator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_ProgressIndicator; -class Handle_Message_ProgressIndicator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Message_ProgressIndicator(); - Handle_Message_ProgressIndicator(const Handle_Message_ProgressIndicator &aHandle); - Handle_Message_ProgressIndicator(const Message_ProgressIndicator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_ProgressIndicator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_ProgressIndicator { - Message_ProgressIndicator* _get_reference() { - return (Message_ProgressIndicator*)$self->Access(); - } -}; - -%extend Handle_Message_ProgressIndicator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_ProgressIndicator) %extend Message_ProgressIndicator { %pythoncode { @@ -1580,51 +1358,7 @@ class Message_SequenceNodeOfSequenceOfPrinters : public TCollection_SeqNode { }; -%extend Message_SequenceNodeOfSequenceOfPrinters { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_SequenceNodeOfSequenceOfPrinters(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_SequenceNodeOfSequenceOfPrinters::Handle_Message_SequenceNodeOfSequenceOfPrinters %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_SequenceNodeOfSequenceOfPrinters; -class Handle_Message_SequenceNodeOfSequenceOfPrinters : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Message_SequenceNodeOfSequenceOfPrinters(); - Handle_Message_SequenceNodeOfSequenceOfPrinters(const Handle_Message_SequenceNodeOfSequenceOfPrinters &aHandle); - Handle_Message_SequenceNodeOfSequenceOfPrinters(const Message_SequenceNodeOfSequenceOfPrinters *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_SequenceNodeOfSequenceOfPrinters DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_SequenceNodeOfSequenceOfPrinters { - Message_SequenceNodeOfSequenceOfPrinters* _get_reference() { - return (Message_SequenceNodeOfSequenceOfPrinters*)$self->Access(); - } -}; - -%extend Handle_Message_SequenceNodeOfSequenceOfPrinters { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_SequenceNodeOfSequenceOfPrinters) %extend Message_SequenceNodeOfSequenceOfPrinters { %pythoncode { @@ -1651,51 +1385,7 @@ class Message_SequenceNodeOfSequenceOfProgressScale : public TCollection_SeqNode }; -%extend Message_SequenceNodeOfSequenceOfProgressScale { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_SequenceNodeOfSequenceOfProgressScale(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_SequenceNodeOfSequenceOfProgressScale::Handle_Message_SequenceNodeOfSequenceOfProgressScale %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_SequenceNodeOfSequenceOfProgressScale; -class Handle_Message_SequenceNodeOfSequenceOfProgressScale : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Message_SequenceNodeOfSequenceOfProgressScale(); - Handle_Message_SequenceNodeOfSequenceOfProgressScale(const Handle_Message_SequenceNodeOfSequenceOfProgressScale &aHandle); - Handle_Message_SequenceNodeOfSequenceOfProgressScale(const Message_SequenceNodeOfSequenceOfProgressScale *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_SequenceNodeOfSequenceOfProgressScale DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_SequenceNodeOfSequenceOfProgressScale { - Message_SequenceNodeOfSequenceOfProgressScale* _get_reference() { - return (Message_SequenceNodeOfSequenceOfProgressScale*)$self->Access(); - } -}; - -%extend Handle_Message_SequenceNodeOfSequenceOfProgressScale { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_SequenceNodeOfSequenceOfProgressScale) %extend Message_SequenceNodeOfSequenceOfProgressScale { %pythoncode { @@ -2076,51 +1766,7 @@ class Message_PrinterOStream : public Message_Printer { }; -%extend Message_PrinterOStream { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Message_PrinterOStream(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Message_PrinterOStream::Handle_Message_PrinterOStream %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Message_PrinterOStream; -class Handle_Message_PrinterOStream : public Handle_Message_Printer { - - public: - // constructors - Handle_Message_PrinterOStream(); - Handle_Message_PrinterOStream(const Handle_Message_PrinterOStream &aHandle); - Handle_Message_PrinterOStream(const Message_PrinterOStream *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Message_PrinterOStream DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Message_PrinterOStream { - Message_PrinterOStream* _get_reference() { - return (Message_PrinterOStream*)$self->Access(); - } -}; - -%extend Handle_Message_PrinterOStream { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Message_PrinterOStream) %extend Message_PrinterOStream { %pythoncode { diff --git a/src/SWIG_files/wrapper/NCollection.i b/src/SWIG_files/wrapper/NCollection.i index 62189633e..019dc3efd 100644 --- a/src/SWIG_files/wrapper/NCollection.i +++ b/src/SWIG_files/wrapper/NCollection.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include NCollection_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_UtfString NCollection_Utf16String; typedef NCollection_UtfString NCollection_Utf32String; diff --git a/src/SWIG_files/wrapper/NETGENPlugin.i b/src/SWIG_files/wrapper/NETGENPlugin.i index c22ed7a71..638fb0393 100644 --- a/src/SWIG_files/wrapper/NETGENPlugin.i +++ b/src/SWIG_files/wrapper/NETGENPlugin.i @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include NETGENPlugin_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor NETGENPlugin_Hypothesis; class NETGENPlugin_Hypothesis : public SMESH_Hypothesis { public: diff --git a/src/SWIG_files/wrapper/NIS.i b/src/SWIG_files/wrapper/NIS.i index 7271e7f1a..e6d1b95e0 100644 --- a/src/SWIG_files/wrapper/NIS.i +++ b/src/SWIG_files/wrapper/NIS.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define NISDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=NISDOCSTRING) NIS @@ -34,31 +34,26 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include NIS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(NIS_Allocator) +%wrap_handle(NIS_InteractiveContext) +%wrap_handle(NIS_InteractiveObject) +%wrap_handle(NIS_SelectFilter) +%wrap_handle(NIS_View) +%wrap_handle(NIS_Surface) +%wrap_handle(NIS_SurfaceDrawer) +%wrap_handle(NIS_TriangulatedDrawer) + %nodefaultctor NIS_Allocator; class NIS_Allocator : public NCollection_IncAllocator { public: @@ -105,51 +100,7 @@ class NIS_Allocator : public NCollection_IncAllocator { }; -%extend NIS_Allocator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_Allocator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_Allocator::Handle_NIS_Allocator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_Allocator; -class Handle_NIS_Allocator : public Handle_NCollection_IncAllocator { - - public: - // constructors - Handle_NIS_Allocator(); - Handle_NIS_Allocator(const Handle_NIS_Allocator &aHandle); - Handle_NIS_Allocator(const NIS_Allocator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_Allocator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_Allocator { - NIS_Allocator* _get_reference() { - return (NIS_Allocator*)$self->Access(); - } -}; - -%extend Handle_NIS_Allocator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_Allocator) %extend NIS_Allocator { %pythoncode { @@ -418,51 +369,7 @@ enum SelectionMode { }; -%extend NIS_InteractiveContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_InteractiveContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_InteractiveContext::Handle_NIS_InteractiveContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_InteractiveContext; -class Handle_NIS_InteractiveContext : public Handle_Standard_Transient { - - public: - // constructors - Handle_NIS_InteractiveContext(); - Handle_NIS_InteractiveContext(const Handle_NIS_InteractiveContext &aHandle); - Handle_NIS_InteractiveContext(const NIS_InteractiveContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_InteractiveContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_InteractiveContext { - NIS_InteractiveContext* _get_reference() { - return (NIS_InteractiveContext*)$self->Access(); - } -}; - -%extend Handle_NIS_InteractiveContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_InteractiveContext) %extend NIS_InteractiveContext { %pythoncode { @@ -643,51 +550,7 @@ class NIS_InteractiveObject : public Standard_Transient { }; -%extend NIS_InteractiveObject { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_InteractiveObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_InteractiveObject::Handle_NIS_InteractiveObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_InteractiveObject; -class Handle_NIS_InteractiveObject : public Handle_Standard_Transient { - - public: - // constructors - Handle_NIS_InteractiveObject(); - Handle_NIS_InteractiveObject(const Handle_NIS_InteractiveObject &aHandle); - Handle_NIS_InteractiveObject(const NIS_InteractiveObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_InteractiveObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_InteractiveObject { - NIS_InteractiveObject* _get_reference() { - return (NIS_InteractiveObject*)$self->Access(); - } -}; - -%extend Handle_NIS_InteractiveObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_InteractiveObject) %extend NIS_InteractiveObject { %pythoncode { @@ -767,51 +630,7 @@ class NIS_SelectFilter : public Standard_Transient { }; -%extend NIS_SelectFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_SelectFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_SelectFilter::Handle_NIS_SelectFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_SelectFilter; -class Handle_NIS_SelectFilter : public Handle_Standard_Transient { - - public: - // constructors - Handle_NIS_SelectFilter(); - Handle_NIS_SelectFilter(const Handle_NIS_SelectFilter &aHandle); - Handle_NIS_SelectFilter(const NIS_SelectFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_SelectFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_SelectFilter { - NIS_SelectFilter* _get_reference() { - return (NIS_SelectFilter*)$self->Access(); - } -}; - -%extend Handle_NIS_SelectFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_SelectFilter) %extend NIS_SelectFilter { %pythoncode { @@ -992,51 +811,7 @@ class NIS_View : public V3d_View { }; -%extend NIS_View { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_View(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_View::Handle_NIS_View %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_View; -class Handle_NIS_View : public Handle_V3d_View { - - public: - // constructors - Handle_NIS_View(); - Handle_NIS_View(const Handle_NIS_View &aHandle); - Handle_NIS_View(const NIS_View *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_View DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_View { - NIS_View* _get_reference() { - return (NIS_View*)$self->Access(); - } -}; - -%extend Handle_NIS_View { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_View) %extend NIS_View { %pythoncode { @@ -1235,51 +1010,7 @@ enum DisplayMode { }; -%extend NIS_Surface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_Surface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_Surface::Handle_NIS_Surface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_Surface; -class Handle_NIS_Surface : public Handle_NIS_InteractiveObject { - - public: - // constructors - Handle_NIS_Surface(); - Handle_NIS_Surface(const Handle_NIS_Surface &aHandle); - Handle_NIS_Surface(const NIS_Surface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_Surface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_Surface { - NIS_Surface* _get_reference() { - return (NIS_Surface*)$self->Access(); - } -}; - -%extend Handle_NIS_Surface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_Surface) %extend NIS_Surface { %pythoncode { @@ -1396,51 +1127,7 @@ class NIS_SurfaceDrawer : public NIS_Drawer { }; -%extend NIS_SurfaceDrawer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_SurfaceDrawer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_SurfaceDrawer::Handle_NIS_SurfaceDrawer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_SurfaceDrawer; -class Handle_NIS_SurfaceDrawer : public Handle_NIS_Drawer { - - public: - // constructors - Handle_NIS_SurfaceDrawer(); - Handle_NIS_SurfaceDrawer(const Handle_NIS_SurfaceDrawer &aHandle); - Handle_NIS_SurfaceDrawer(const NIS_SurfaceDrawer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_SurfaceDrawer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_SurfaceDrawer { - NIS_SurfaceDrawer* _get_reference() { - return (NIS_SurfaceDrawer*)$self->Access(); - } -}; - -%extend Handle_NIS_SurfaceDrawer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_SurfaceDrawer) %extend NIS_SurfaceDrawer { %pythoncode { @@ -1513,51 +1200,7 @@ class NIS_TriangulatedDrawer : public NIS_Drawer { }; -%extend NIS_TriangulatedDrawer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NIS_TriangulatedDrawer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NIS_TriangulatedDrawer::Handle_NIS_TriangulatedDrawer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NIS_TriangulatedDrawer; -class Handle_NIS_TriangulatedDrawer : public Handle_NIS_Drawer { - - public: - // constructors - Handle_NIS_TriangulatedDrawer(); - Handle_NIS_TriangulatedDrawer(const Handle_NIS_TriangulatedDrawer &aHandle); - Handle_NIS_TriangulatedDrawer(const NIS_TriangulatedDrawer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NIS_TriangulatedDrawer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NIS_TriangulatedDrawer { - NIS_TriangulatedDrawer* _get_reference() { - return (NIS_TriangulatedDrawer*)$self->Access(); - } -}; - -%extend Handle_NIS_TriangulatedDrawer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NIS_TriangulatedDrawer) %extend NIS_TriangulatedDrawer { %pythoncode { diff --git a/src/SWIG_files/wrapper/NLPlate.i b/src/SWIG_files/wrapper/NLPlate.i index 2c91ab098..7425637d0 100644 --- a/src/SWIG_files/wrapper/NLPlate.i +++ b/src/SWIG_files/wrapper/NLPlate.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define NLPLATEDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=NLPLATEDOCSTRING) NLPlate @@ -34,31 +34,28 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include NLPlate_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(NLPlate_HGPPConstraint) +%wrap_handle(NLPlate_ListNodeOfStackOfPlate) +%wrap_handle(NLPlate_SequenceNodeOfSequenceOfHGPPConstraint) +%wrap_handle(NLPlate_HPG0Constraint) +%wrap_handle(NLPlate_HPG1Constraint) +%wrap_handle(NLPlate_HPG0G1Constraint) +%wrap_handle(NLPlate_HPG2Constraint) +%wrap_handle(NLPlate_HPG0G2Constraint) +%wrap_handle(NLPlate_HPG3Constraint) +%wrap_handle(NLPlate_HPG0G3Constraint) + %nodefaultctor NLPlate_HGPPConstraint; class NLPlate_HGPPConstraint : public MMgt_TShared { public: @@ -175,51 +172,7 @@ class NLPlate_HGPPConstraint : public MMgt_TShared { }; -%extend NLPlate_HGPPConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HGPPConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HGPPConstraint::Handle_NLPlate_HGPPConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HGPPConstraint; -class Handle_NLPlate_HGPPConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_NLPlate_HGPPConstraint(); - Handle_NLPlate_HGPPConstraint(const Handle_NLPlate_HGPPConstraint &aHandle); - Handle_NLPlate_HGPPConstraint(const NLPlate_HGPPConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HGPPConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HGPPConstraint { - NLPlate_HGPPConstraint* _get_reference() { - return (NLPlate_HGPPConstraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HGPPConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HGPPConstraint) %extend NLPlate_HGPPConstraint { %pythoncode { @@ -283,51 +236,7 @@ class NLPlate_ListNodeOfStackOfPlate : public TCollection_MapNode { }; -%extend NLPlate_ListNodeOfStackOfPlate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_ListNodeOfStackOfPlate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_ListNodeOfStackOfPlate::Handle_NLPlate_ListNodeOfStackOfPlate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_ListNodeOfStackOfPlate; -class Handle_NLPlate_ListNodeOfStackOfPlate : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_NLPlate_ListNodeOfStackOfPlate(); - Handle_NLPlate_ListNodeOfStackOfPlate(const Handle_NLPlate_ListNodeOfStackOfPlate &aHandle); - Handle_NLPlate_ListNodeOfStackOfPlate(const NLPlate_ListNodeOfStackOfPlate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_ListNodeOfStackOfPlate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_ListNodeOfStackOfPlate { - NLPlate_ListNodeOfStackOfPlate* _get_reference() { - return (NLPlate_ListNodeOfStackOfPlate*)$self->Access(); - } -}; - -%extend Handle_NLPlate_ListNodeOfStackOfPlate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_ListNodeOfStackOfPlate) %extend NLPlate_ListNodeOfStackOfPlate { %pythoncode { @@ -451,51 +360,7 @@ class NLPlate_SequenceNodeOfSequenceOfHGPPConstraint : public TCollection_SeqNod }; -%extend NLPlate_SequenceNodeOfSequenceOfHGPPConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint::Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint; -class Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint(); - Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint(const Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint &aHandle); - Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint(const NLPlate_SequenceNodeOfSequenceOfHGPPConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint { - NLPlate_SequenceNodeOfSequenceOfHGPPConstraint* _get_reference() { - return (NLPlate_SequenceNodeOfSequenceOfHGPPConstraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_SequenceNodeOfSequenceOfHGPPConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_SequenceNodeOfSequenceOfHGPPConstraint) %extend NLPlate_SequenceNodeOfSequenceOfHGPPConstraint { %pythoncode { @@ -826,51 +691,7 @@ class NLPlate_HPG0Constraint : public NLPlate_HGPPConstraint { }; -%extend NLPlate_HPG0Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG0Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG0Constraint::Handle_NLPlate_HPG0Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG0Constraint; -class Handle_NLPlate_HPG0Constraint : public Handle_NLPlate_HGPPConstraint { - - public: - // constructors - Handle_NLPlate_HPG0Constraint(); - Handle_NLPlate_HPG0Constraint(const Handle_NLPlate_HPG0Constraint &aHandle); - Handle_NLPlate_HPG0Constraint(const NLPlate_HPG0Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG0Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG0Constraint { - NLPlate_HPG0Constraint* _get_reference() { - return (NLPlate_HPG0Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG0Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG0Constraint) %extend NLPlate_HPG0Constraint { %pythoncode { @@ -923,51 +744,7 @@ class NLPlate_HPG1Constraint : public NLPlate_HGPPConstraint { }; -%extend NLPlate_HPG1Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG1Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG1Constraint::Handle_NLPlate_HPG1Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG1Constraint; -class Handle_NLPlate_HPG1Constraint : public Handle_NLPlate_HGPPConstraint { - - public: - // constructors - Handle_NLPlate_HPG1Constraint(); - Handle_NLPlate_HPG1Constraint(const Handle_NLPlate_HPG1Constraint &aHandle); - Handle_NLPlate_HPG1Constraint(const NLPlate_HPG1Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG1Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG1Constraint { - NLPlate_HPG1Constraint* _get_reference() { - return (NLPlate_HPG1Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG1Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG1Constraint) %extend NLPlate_HPG1Constraint { %pythoncode { @@ -1008,51 +785,7 @@ class NLPlate_HPG0G1Constraint : public NLPlate_HPG0Constraint { }; -%extend NLPlate_HPG0G1Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG0G1Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG0G1Constraint::Handle_NLPlate_HPG0G1Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG0G1Constraint; -class Handle_NLPlate_HPG0G1Constraint : public Handle_NLPlate_HPG0Constraint { - - public: - // constructors - Handle_NLPlate_HPG0G1Constraint(); - Handle_NLPlate_HPG0G1Constraint(const Handle_NLPlate_HPG0G1Constraint &aHandle); - Handle_NLPlate_HPG0G1Constraint(const NLPlate_HPG0G1Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG0G1Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG0G1Constraint { - NLPlate_HPG0G1Constraint* _get_reference() { - return (NLPlate_HPG0G1Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG0G1Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG0G1Constraint) %extend NLPlate_HPG0G1Constraint { %pythoncode { @@ -1083,51 +816,7 @@ class NLPlate_HPG2Constraint : public NLPlate_HPG1Constraint { }; -%extend NLPlate_HPG2Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG2Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG2Constraint::Handle_NLPlate_HPG2Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG2Constraint; -class Handle_NLPlate_HPG2Constraint : public Handle_NLPlate_HPG1Constraint { - - public: - // constructors - Handle_NLPlate_HPG2Constraint(); - Handle_NLPlate_HPG2Constraint(const Handle_NLPlate_HPG2Constraint &aHandle); - Handle_NLPlate_HPG2Constraint(const NLPlate_HPG2Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG2Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG2Constraint { - NLPlate_HPG2Constraint* _get_reference() { - return (NLPlate_HPG2Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG2Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG2Constraint) %extend NLPlate_HPG2Constraint { %pythoncode { @@ -1160,51 +849,7 @@ class NLPlate_HPG0G2Constraint : public NLPlate_HPG0G1Constraint { }; -%extend NLPlate_HPG0G2Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG0G2Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG0G2Constraint::Handle_NLPlate_HPG0G2Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG0G2Constraint; -class Handle_NLPlate_HPG0G2Constraint : public Handle_NLPlate_HPG0G1Constraint { - - public: - // constructors - Handle_NLPlate_HPG0G2Constraint(); - Handle_NLPlate_HPG0G2Constraint(const Handle_NLPlate_HPG0G2Constraint &aHandle); - Handle_NLPlate_HPG0G2Constraint(const NLPlate_HPG0G2Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG0G2Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG0G2Constraint { - NLPlate_HPG0G2Constraint* _get_reference() { - return (NLPlate_HPG0G2Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG0G2Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG0G2Constraint) %extend NLPlate_HPG0G2Constraint { %pythoncode { @@ -1237,51 +882,7 @@ class NLPlate_HPG3Constraint : public NLPlate_HPG2Constraint { }; -%extend NLPlate_HPG3Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG3Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG3Constraint::Handle_NLPlate_HPG3Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG3Constraint; -class Handle_NLPlate_HPG3Constraint : public Handle_NLPlate_HPG2Constraint { - - public: - // constructors - Handle_NLPlate_HPG3Constraint(); - Handle_NLPlate_HPG3Constraint(const Handle_NLPlate_HPG3Constraint &aHandle); - Handle_NLPlate_HPG3Constraint(const NLPlate_HPG3Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG3Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG3Constraint { - NLPlate_HPG3Constraint* _get_reference() { - return (NLPlate_HPG3Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG3Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG3Constraint) %extend NLPlate_HPG3Constraint { %pythoncode { @@ -1316,51 +917,7 @@ class NLPlate_HPG0G3Constraint : public NLPlate_HPG0G2Constraint { }; -%extend NLPlate_HPG0G3Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_NLPlate_HPG0G3Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_NLPlate_HPG0G3Constraint::Handle_NLPlate_HPG0G3Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_NLPlate_HPG0G3Constraint; -class Handle_NLPlate_HPG0G3Constraint : public Handle_NLPlate_HPG0G2Constraint { - - public: - // constructors - Handle_NLPlate_HPG0G3Constraint(); - Handle_NLPlate_HPG0G3Constraint(const Handle_NLPlate_HPG0G3Constraint &aHandle); - Handle_NLPlate_HPG0G3Constraint(const NLPlate_HPG0G3Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_NLPlate_HPG0G3Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_NLPlate_HPG0G3Constraint { - NLPlate_HPG0G3Constraint* _get_reference() { - return (NLPlate_HPG0G3Constraint*)$self->Access(); - } -}; - -%extend Handle_NLPlate_HPG0G3Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(NLPlate_HPG0G3Constraint) %extend NLPlate_HPG0G3Constraint { %pythoncode { diff --git a/src/SWIG_files/wrapper/OSD.i b/src/SWIG_files/wrapper/OSD.i index 96a47e9b2..e1e934304 100644 --- a/src/SWIG_files/wrapper/OSD.i +++ b/src/SWIG_files/wrapper/OSD.i @@ -18,7 +18,16 @@ along with pythonOCC. If not, see . */ %define OSDDOCSTRING -"No docstring provided." +"-History: +Version Date Purpose +1.1 24/06/92 Operating System Dependent tools +1.2 +2.0 +3.0 +Windows NT 30/09/96 ( EUG ) +Set of Operating Sytem Dependent Tools +(O)perating (S)ystem (D)ependent +" %enddef %module (package="OCC.Core", docstring=OSDDOCSTRING) OSD @@ -34,25 +43,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include OSD_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Address ( * OSD_ThreadFunction ) ( Standard_Address data ); typedef pthread_t OSD_PThread; diff --git a/src/SWIG_files/wrapper/PCDM.i b/src/SWIG_files/wrapper/PCDM.i index d5206b970..2a598c5cd 100644 --- a/src/SWIG_files/wrapper/PCDM.i +++ b/src/SWIG_files/wrapper/PCDM.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define PCDMDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=PCDMDOCSTRING) PCDM @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PCDM_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Storage_BaseDriver * PCDM_BaseDriverPointer; /* end typedefs declaration */ @@ -101,6 +87,16 @@ enum PCDM_ReaderStatus { /* end public enums declaration */ +%wrap_handle(PCDM_ReadWriter) +%wrap_handle(PCDM_Reader) +%wrap_handle(PCDM_ReferenceIterator) +%wrap_handle(PCDM_SequenceNodeOfSequenceOfDocument) +%wrap_handle(PCDM_SequenceNodeOfSequenceOfReference) +%wrap_handle(PCDM_Writer) +%wrap_handle(PCDM_ReadWriter_1) +%wrap_handle(PCDM_RetrievalDriver) +%wrap_handle(PCDM_StorageDriver) + %rename(pcdm) PCDM; class PCDM { public: @@ -152,52 +148,6 @@ class PCDM_Document : public Standard_Persistent { }; -%extend PCDM_Document { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_Document(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_Document::Handle_PCDM_Document %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_Document; -class Handle_PCDM_Document : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PCDM_Document(); - Handle_PCDM_Document(const Handle_PCDM_Document &aHandle); - Handle_PCDM_Document(const PCDM_Document *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_Document DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PCDM_Document { - PCDM_Document* _get_reference() { - return (PCDM_Document*)$self->Access(); - } -}; - -%extend Handle_PCDM_Document { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PCDM_Document { %pythoncode { __repr__ = _dumps_object @@ -323,51 +273,7 @@ class PCDM_ReadWriter : public Standard_Transient { }; -%extend PCDM_ReadWriter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_ReadWriter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_ReadWriter::Handle_PCDM_ReadWriter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_ReadWriter; -class Handle_PCDM_ReadWriter : public Handle_Standard_Transient { - - public: - // constructors - Handle_PCDM_ReadWriter(); - Handle_PCDM_ReadWriter(const Handle_PCDM_ReadWriter &aHandle); - Handle_PCDM_ReadWriter(const PCDM_ReadWriter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_ReadWriter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_ReadWriter { - PCDM_ReadWriter* _get_reference() { - return (PCDM_ReadWriter*)$self->Access(); - } -}; - -%extend Handle_PCDM_ReadWriter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_ReadWriter) %extend PCDM_ReadWriter { %pythoncode { @@ -402,51 +308,7 @@ class PCDM_Reader : public Standard_Transient { }; -%extend PCDM_Reader { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_Reader(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_Reader::Handle_PCDM_Reader %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_Reader; -class Handle_PCDM_Reader : public Handle_Standard_Transient { - - public: - // constructors - Handle_PCDM_Reader(); - Handle_PCDM_Reader(const Handle_PCDM_Reader &aHandle); - Handle_PCDM_Reader(const PCDM_Reader *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_Reader DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_Reader { - PCDM_Reader* _get_reference() { - return (PCDM_Reader*)$self->Access(); - } -}; - -%extend Handle_PCDM_Reader { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_Reader) %extend PCDM_Reader { %pythoncode { @@ -522,51 +384,7 @@ class PCDM_ReferenceIterator : public Standard_Transient { }; -%extend PCDM_ReferenceIterator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_ReferenceIterator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_ReferenceIterator::Handle_PCDM_ReferenceIterator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_ReferenceIterator; -class Handle_PCDM_ReferenceIterator : public Handle_Standard_Transient { - - public: - // constructors - Handle_PCDM_ReferenceIterator(); - Handle_PCDM_ReferenceIterator(const Handle_PCDM_ReferenceIterator &aHandle); - Handle_PCDM_ReferenceIterator(const PCDM_ReferenceIterator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_ReferenceIterator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_ReferenceIterator { - PCDM_ReferenceIterator* _get_reference() { - return (PCDM_ReferenceIterator*)$self->Access(); - } -}; - -%extend Handle_PCDM_ReferenceIterator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_ReferenceIterator) %extend PCDM_ReferenceIterator { %pythoncode { @@ -593,51 +411,7 @@ class PCDM_SequenceNodeOfSequenceOfDocument : public TCollection_SeqNode { }; -%extend PCDM_SequenceNodeOfSequenceOfDocument { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_SequenceNodeOfSequenceOfDocument(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_SequenceNodeOfSequenceOfDocument::Handle_PCDM_SequenceNodeOfSequenceOfDocument %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_SequenceNodeOfSequenceOfDocument; -class Handle_PCDM_SequenceNodeOfSequenceOfDocument : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_PCDM_SequenceNodeOfSequenceOfDocument(); - Handle_PCDM_SequenceNodeOfSequenceOfDocument(const Handle_PCDM_SequenceNodeOfSequenceOfDocument &aHandle); - Handle_PCDM_SequenceNodeOfSequenceOfDocument(const PCDM_SequenceNodeOfSequenceOfDocument *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_SequenceNodeOfSequenceOfDocument DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_SequenceNodeOfSequenceOfDocument { - PCDM_SequenceNodeOfSequenceOfDocument* _get_reference() { - return (PCDM_SequenceNodeOfSequenceOfDocument*)$self->Access(); - } -}; - -%extend Handle_PCDM_SequenceNodeOfSequenceOfDocument { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_SequenceNodeOfSequenceOfDocument) %extend PCDM_SequenceNodeOfSequenceOfDocument { %pythoncode { @@ -664,51 +438,7 @@ class PCDM_SequenceNodeOfSequenceOfReference : public TCollection_SeqNode { }; -%extend PCDM_SequenceNodeOfSequenceOfReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_SequenceNodeOfSequenceOfReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_SequenceNodeOfSequenceOfReference::Handle_PCDM_SequenceNodeOfSequenceOfReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_SequenceNodeOfSequenceOfReference; -class Handle_PCDM_SequenceNodeOfSequenceOfReference : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_PCDM_SequenceNodeOfSequenceOfReference(); - Handle_PCDM_SequenceNodeOfSequenceOfReference(const Handle_PCDM_SequenceNodeOfSequenceOfReference &aHandle); - Handle_PCDM_SequenceNodeOfSequenceOfReference(const PCDM_SequenceNodeOfSequenceOfReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_SequenceNodeOfSequenceOfReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_SequenceNodeOfSequenceOfReference { - PCDM_SequenceNodeOfSequenceOfReference* _get_reference() { - return (PCDM_SequenceNodeOfSequenceOfReference*)$self->Access(); - } -}; - -%extend Handle_PCDM_SequenceNodeOfSequenceOfReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_SequenceNodeOfSequenceOfReference) %extend PCDM_SequenceNodeOfSequenceOfReference { %pythoncode { @@ -1015,51 +745,7 @@ class PCDM_Writer : public Standard_Transient { }; -%extend PCDM_Writer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_Writer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_Writer::Handle_PCDM_Writer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_Writer; -class Handle_PCDM_Writer : public Handle_Standard_Transient { - - public: - // constructors - Handle_PCDM_Writer(); - Handle_PCDM_Writer(const Handle_PCDM_Writer &aHandle); - Handle_PCDM_Writer(const PCDM_Writer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_Writer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_Writer { - PCDM_Writer* _get_reference() { - return (PCDM_Writer*)$self->Access(); - } -}; - -%extend Handle_PCDM_Writer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_Writer) %extend PCDM_Writer { %pythoncode { @@ -1152,51 +838,7 @@ class PCDM_ReadWriter_1 : public PCDM_ReadWriter { }; -%extend PCDM_ReadWriter_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_ReadWriter_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_ReadWriter_1::Handle_PCDM_ReadWriter_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_ReadWriter_1; -class Handle_PCDM_ReadWriter_1 : public Handle_PCDM_ReadWriter { - - public: - // constructors - Handle_PCDM_ReadWriter_1(); - Handle_PCDM_ReadWriter_1(const Handle_PCDM_ReadWriter_1 &aHandle); - Handle_PCDM_ReadWriter_1(const PCDM_ReadWriter_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_ReadWriter_1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_ReadWriter_1 { - PCDM_ReadWriter_1* _get_reference() { - return (PCDM_ReadWriter_1*)$self->Access(); - } -}; - -%extend Handle_PCDM_ReadWriter_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_ReadWriter_1) %extend PCDM_ReadWriter_1 { %pythoncode { @@ -1277,51 +919,7 @@ class PCDM_RetrievalDriver : public PCDM_Reader { }; -%extend PCDM_RetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_RetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_RetrievalDriver::Handle_PCDM_RetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_RetrievalDriver; -class Handle_PCDM_RetrievalDriver : public Handle_PCDM_Reader { - - public: - // constructors - Handle_PCDM_RetrievalDriver(); - Handle_PCDM_RetrievalDriver(const Handle_PCDM_RetrievalDriver &aHandle); - Handle_PCDM_RetrievalDriver(const PCDM_RetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_RetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_RetrievalDriver { - PCDM_RetrievalDriver* _get_reference() { - return (PCDM_RetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_PCDM_RetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_RetrievalDriver) %extend PCDM_RetrievalDriver { %pythoncode { @@ -1404,51 +1002,7 @@ class PCDM_StorageDriver : public PCDM_Writer { }; -%extend PCDM_StorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PCDM_StorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PCDM_StorageDriver::Handle_PCDM_StorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PCDM_StorageDriver; -class Handle_PCDM_StorageDriver : public Handle_PCDM_Writer { - - public: - // constructors - Handle_PCDM_StorageDriver(); - Handle_PCDM_StorageDriver(const Handle_PCDM_StorageDriver &aHandle); - Handle_PCDM_StorageDriver(const PCDM_StorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PCDM_StorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PCDM_StorageDriver { - PCDM_StorageDriver* _get_reference() { - return (PCDM_StorageDriver*)$self->Access(); - } -}; - -%extend Handle_PCDM_StorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PCDM_StorageDriver) %extend PCDM_StorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/PCDM_headers.i b/src/SWIG_files/wrapper/PCDM_headers.i index 872989132..08868139a 100644 --- a/src/SWIG_files/wrapper/PCDM_headers.i +++ b/src/SWIG_files/wrapper/PCDM_headers.i @@ -330,6 +330,86 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/PDF.i b/src/SWIG_files/wrapper/PDF.i index f09b69a10..baaa26159 100644 --- a/src/SWIG_files/wrapper/PDF.i +++ b/src/SWIG_files/wrapper/PDF.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define PDFDOCSTRING -"No docstring provided." +"This pakage is the persistent equivalent of +TDF. It describes persistent classes used to store +a TDF structure into a Database. + +" %enddef %module (package="OCC.Core", docstring=PDFDOCSTRING) PDF @@ -34,31 +38,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PDF_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PDF_Attribute; class PDF_Attribute : public Standard_Persistent { public: @@ -75,52 +66,6 @@ class PDF_Attribute : public Standard_Persistent { }; -%extend PDF_Attribute { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDF_Attribute(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDF_Attribute::Handle_PDF_Attribute %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDF_Attribute; -class Handle_PDF_Attribute : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDF_Attribute(); - Handle_PDF_Attribute(const Handle_PDF_Attribute &aHandle); - Handle_PDF_Attribute(const PDF_Attribute *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDF_Attribute DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDF_Attribute { - PDF_Attribute* _get_reference() { - return (PDF_Attribute*)$self->Access(); - } -}; - -%extend Handle_PDF_Attribute { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDF_Attribute { %pythoncode { __repr__ = _dumps_object @@ -212,52 +157,6 @@ class PDF_Data : public Standard_Persistent { }; -%extend PDF_Data { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDF_Data(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDF_Data::Handle_PDF_Data %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDF_Data; -class Handle_PDF_Data : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDF_Data(); - Handle_PDF_Data(const Handle_PDF_Data &aHandle); - Handle_PDF_Data(const PDF_Data *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDF_Data DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDF_Data { - PDF_Data* _get_reference() { - return (PDF_Data*)$self->Access(); - } -}; - -%extend Handle_PDF_Data { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDF_Data { %pythoncode { __repr__ = _dumps_object @@ -410,52 +309,6 @@ class PDF_HAttributeArray1 : public Standard_Persistent { }; -%extend PDF_HAttributeArray1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDF_HAttributeArray1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDF_HAttributeArray1::Handle_PDF_HAttributeArray1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDF_HAttributeArray1; -class Handle_PDF_HAttributeArray1 : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDF_HAttributeArray1(); - Handle_PDF_HAttributeArray1(const Handle_PDF_HAttributeArray1 &aHandle); - Handle_PDF_HAttributeArray1(const PDF_HAttributeArray1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDF_HAttributeArray1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDF_HAttributeArray1 { - PDF_HAttributeArray1* _get_reference() { - return (PDF_HAttributeArray1*)$self->Access(); - } -}; - -%extend Handle_PDF_HAttributeArray1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDF_HAttributeArray1 { %pythoncode { __repr__ = _dumps_object @@ -503,52 +356,6 @@ class PDF_VArrayNodeOfFieldOfHAttributeArray1 : public PStandard_ArrayNode { }; -%extend PDF_VArrayNodeOfFieldOfHAttributeArray1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1::Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1; -class Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1 : public Handle_PStandard_ArrayNode { - - public: - // constructors - Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1(); - Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1(const Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1 &aHandle); - Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1(const PDF_VArrayNodeOfFieldOfHAttributeArray1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1 { - PDF_VArrayNodeOfFieldOfHAttributeArray1* _get_reference() { - return (PDF_VArrayNodeOfFieldOfHAttributeArray1*)$self->Access(); - } -}; - -%extend Handle_PDF_VArrayNodeOfFieldOfHAttributeArray1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDF_VArrayNodeOfFieldOfHAttributeArray1 { %pythoncode { __repr__ = _dumps_object @@ -627,52 +434,6 @@ class PDF_Reference : public PDF_Attribute { }; -%extend PDF_Reference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDF_Reference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDF_Reference::Handle_PDF_Reference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDF_Reference; -class Handle_PDF_Reference : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDF_Reference(); - Handle_PDF_Reference(const Handle_PDF_Reference &aHandle); - Handle_PDF_Reference(const PDF_Reference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDF_Reference DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDF_Reference { - PDF_Reference* _get_reference() { - return (PDF_Reference*)$self->Access(); - } -}; - -%extend Handle_PDF_Reference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDF_Reference { %pythoncode { __repr__ = _dumps_object @@ -720,52 +481,6 @@ class PDF_TagSource : public PDF_Attribute { }; -%extend PDF_TagSource { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDF_TagSource(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDF_TagSource::Handle_PDF_TagSource %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDF_TagSource; -class Handle_PDF_TagSource : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDF_TagSource(); - Handle_PDF_TagSource(const Handle_PDF_TagSource &aHandle); - Handle_PDF_TagSource(const PDF_TagSource *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDF_TagSource DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDF_TagSource { - PDF_TagSource* _get_reference() { - return (PDF_TagSource*)$self->Access(); - } -}; - -%extend Handle_PDF_TagSource { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDF_TagSource { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/PDataStd.i b/src/SWIG_files/wrapper/PDataStd.i index 3255d7648..350b346d3 100644 --- a/src/SWIG_files/wrapper/PDataStd.i +++ b/src/SWIG_files/wrapper/PDataStd.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define PDATASTDDOCSTRING -"No docstring provided." +" + +" %enddef %module (package="OCC.Core", docstring=PDATASTDDOCSTRING) PDataStd @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PDataStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PDataStd_AsciiString; class PDataStd_AsciiString : public PDF_Attribute { public: @@ -101,52 +90,6 @@ class PDataStd_AsciiString : public PDF_Attribute { }; -%extend PDataStd_AsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_AsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_AsciiString::Handle_PDataStd_AsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_AsciiString; -class Handle_PDataStd_AsciiString : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_AsciiString(); - Handle_PDataStd_AsciiString(const Handle_PDataStd_AsciiString &aHandle); - Handle_PDataStd_AsciiString(const PDataStd_AsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_AsciiString DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_AsciiString { - PDataStd_AsciiString* _get_reference() { - return (PDataStd_AsciiString*)$self->Access(); - } -}; - -%extend Handle_PDataStd_AsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_AsciiString { %pythoncode { __repr__ = _dumps_object @@ -228,52 +171,6 @@ class PDataStd_BooleanArray : public PDF_Attribute { }; -%extend PDataStd_BooleanArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_BooleanArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_BooleanArray::Handle_PDataStd_BooleanArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_BooleanArray; -class Handle_PDataStd_BooleanArray : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_BooleanArray(); - Handle_PDataStd_BooleanArray(const Handle_PDataStd_BooleanArray &aHandle); - Handle_PDataStd_BooleanArray(const PDataStd_BooleanArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_BooleanArray DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_BooleanArray { - PDataStd_BooleanArray* _get_reference() { - return (PDataStd_BooleanArray*)$self->Access(); - } -}; - -%extend Handle_PDataStd_BooleanArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_BooleanArray { %pythoncode { __repr__ = _dumps_object @@ -335,52 +232,6 @@ class PDataStd_BooleanList : public PDF_Attribute { }; -%extend PDataStd_BooleanList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_BooleanList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_BooleanList::Handle_PDataStd_BooleanList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_BooleanList; -class Handle_PDataStd_BooleanList : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_BooleanList(); - Handle_PDataStd_BooleanList(const Handle_PDataStd_BooleanList &aHandle); - Handle_PDataStd_BooleanList(const PDataStd_BooleanList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_BooleanList DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_BooleanList { - PDataStd_BooleanList* _get_reference() { - return (PDataStd_BooleanList*)$self->Access(); - } -}; - -%extend Handle_PDataStd_BooleanList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_BooleanList { %pythoncode { __repr__ = _dumps_object @@ -422,52 +273,6 @@ class PDataStd_ByteArray : public PDF_Attribute { }; -%extend PDataStd_ByteArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ByteArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ByteArray::Handle_PDataStd_ByteArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ByteArray; -class Handle_PDataStd_ByteArray : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ByteArray(); - Handle_PDataStd_ByteArray(const Handle_PDataStd_ByteArray &aHandle); - Handle_PDataStd_ByteArray(const PDataStd_ByteArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ByteArray DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ByteArray { - PDataStd_ByteArray* _get_reference() { - return (PDataStd_ByteArray*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ByteArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ByteArray { %pythoncode { __repr__ = _dumps_object @@ -529,52 +334,6 @@ class PDataStd_ByteArray_1 : public PDF_Attribute { }; -%extend PDataStd_ByteArray_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ByteArray_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ByteArray_1::Handle_PDataStd_ByteArray_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ByteArray_1; -class Handle_PDataStd_ByteArray_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ByteArray_1(); - Handle_PDataStd_ByteArray_1(const Handle_PDataStd_ByteArray_1 &aHandle); - Handle_PDataStd_ByteArray_1(const PDataStd_ByteArray_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ByteArray_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ByteArray_1 { - PDataStd_ByteArray_1* _get_reference() { - return (PDataStd_ByteArray_1*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ByteArray_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ByteArray_1 { %pythoncode { __repr__ = _dumps_object @@ -622,52 +381,6 @@ class PDataStd_Comment : public PDF_Attribute { }; -%extend PDataStd_Comment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Comment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Comment::Handle_PDataStd_Comment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Comment; -class Handle_PDataStd_Comment : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Comment(); - Handle_PDataStd_Comment(const Handle_PDataStd_Comment &aHandle); - Handle_PDataStd_Comment(const PDataStd_Comment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Comment DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Comment { - PDataStd_Comment* _get_reference() { - return (PDataStd_Comment*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Comment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Comment { %pythoncode { __repr__ = _dumps_object @@ -689,52 +402,6 @@ class PDataStd_Directory : public PDF_Attribute { }; -%extend PDataStd_Directory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Directory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Directory::Handle_PDataStd_Directory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Directory; -class Handle_PDataStd_Directory : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Directory(); - Handle_PDataStd_Directory(const Handle_PDataStd_Directory &aHandle); - Handle_PDataStd_Directory(const PDataStd_Directory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Directory DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Directory { - PDataStd_Directory* _get_reference() { - return (PDataStd_Directory*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Directory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Directory { %pythoncode { __repr__ = _dumps_object @@ -802,52 +469,6 @@ class PDataStd_Expression : public PDF_Attribute { }; -%extend PDataStd_Expression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Expression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Expression::Handle_PDataStd_Expression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Expression; -class Handle_PDataStd_Expression : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Expression(); - Handle_PDataStd_Expression(const Handle_PDataStd_Expression &aHandle); - Handle_PDataStd_Expression(const PDataStd_Expression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Expression DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Expression { - PDataStd_Expression* _get_reference() { - return (PDataStd_Expression*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Expression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Expression { %pythoncode { __repr__ = _dumps_object @@ -909,52 +530,6 @@ class PDataStd_ExtStringArray : public PDF_Attribute { }; -%extend PDataStd_ExtStringArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ExtStringArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ExtStringArray::Handle_PDataStd_ExtStringArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ExtStringArray; -class Handle_PDataStd_ExtStringArray : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ExtStringArray(); - Handle_PDataStd_ExtStringArray(const Handle_PDataStd_ExtStringArray &aHandle); - Handle_PDataStd_ExtStringArray(const PDataStd_ExtStringArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ExtStringArray DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ExtStringArray { - PDataStd_ExtStringArray* _get_reference() { - return (PDataStd_ExtStringArray*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ExtStringArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ExtStringArray { %pythoncode { __repr__ = _dumps_object @@ -1036,52 +611,6 @@ class PDataStd_ExtStringArray_1 : public PDF_Attribute { }; -%extend PDataStd_ExtStringArray_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ExtStringArray_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ExtStringArray_1::Handle_PDataStd_ExtStringArray_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ExtStringArray_1; -class Handle_PDataStd_ExtStringArray_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ExtStringArray_1(); - Handle_PDataStd_ExtStringArray_1(const Handle_PDataStd_ExtStringArray_1 &aHandle); - Handle_PDataStd_ExtStringArray_1(const PDataStd_ExtStringArray_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ExtStringArray_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ExtStringArray_1 { - PDataStd_ExtStringArray_1* _get_reference() { - return (PDataStd_ExtStringArray_1*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ExtStringArray_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ExtStringArray_1 { %pythoncode { __repr__ = _dumps_object @@ -1143,52 +672,6 @@ class PDataStd_ExtStringList : public PDF_Attribute { }; -%extend PDataStd_ExtStringList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ExtStringList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ExtStringList::Handle_PDataStd_ExtStringList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ExtStringList; -class Handle_PDataStd_ExtStringList : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ExtStringList(); - Handle_PDataStd_ExtStringList(const Handle_PDataStd_ExtStringList &aHandle); - Handle_PDataStd_ExtStringList(const PDataStd_ExtStringList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ExtStringList DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ExtStringList { - PDataStd_ExtStringList* _get_reference() { - return (PDataStd_ExtStringList*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ExtStringList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ExtStringList { %pythoncode { __repr__ = _dumps_object @@ -1530,52 +1013,6 @@ class PDataStd_HArray1OfByte : public Standard_Persistent { }; -%extend PDataStd_HArray1OfByte { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_HArray1OfByte(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_HArray1OfByte::Handle_PDataStd_HArray1OfByte %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_HArray1OfByte; -class Handle_PDataStd_HArray1OfByte : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDataStd_HArray1OfByte(); - Handle_PDataStd_HArray1OfByte(const Handle_PDataStd_HArray1OfByte &aHandle); - Handle_PDataStd_HArray1OfByte(const PDataStd_HArray1OfByte *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_HArray1OfByte DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_HArray1OfByte { - PDataStd_HArray1OfByte* _get_reference() { - return (PDataStd_HArray1OfByte*)$self->Access(); - } -}; - -%extend Handle_PDataStd_HArray1OfByte { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_HArray1OfByte { %pythoncode { __repr__ = _dumps_object @@ -1665,52 +1102,6 @@ class PDataStd_HArray1OfHArray1OfInteger : public Standard_Persistent { }; -%extend PDataStd_HArray1OfHArray1OfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_HArray1OfHArray1OfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_HArray1OfHArray1OfInteger::Handle_PDataStd_HArray1OfHArray1OfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_HArray1OfHArray1OfInteger; -class Handle_PDataStd_HArray1OfHArray1OfInteger : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDataStd_HArray1OfHArray1OfInteger(); - Handle_PDataStd_HArray1OfHArray1OfInteger(const Handle_PDataStd_HArray1OfHArray1OfInteger &aHandle); - Handle_PDataStd_HArray1OfHArray1OfInteger(const PDataStd_HArray1OfHArray1OfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_HArray1OfHArray1OfInteger DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_HArray1OfHArray1OfInteger { - PDataStd_HArray1OfHArray1OfInteger* _get_reference() { - return (PDataStd_HArray1OfHArray1OfInteger*)$self->Access(); - } -}; - -%extend Handle_PDataStd_HArray1OfHArray1OfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_HArray1OfHArray1OfInteger { %pythoncode { __repr__ = _dumps_object @@ -1800,52 +1191,6 @@ class PDataStd_HArray1OfHArray1OfReal : public Standard_Persistent { }; -%extend PDataStd_HArray1OfHArray1OfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_HArray1OfHArray1OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_HArray1OfHArray1OfReal::Handle_PDataStd_HArray1OfHArray1OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_HArray1OfHArray1OfReal; -class Handle_PDataStd_HArray1OfHArray1OfReal : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDataStd_HArray1OfHArray1OfReal(); - Handle_PDataStd_HArray1OfHArray1OfReal(const Handle_PDataStd_HArray1OfHArray1OfReal &aHandle); - Handle_PDataStd_HArray1OfHArray1OfReal(const PDataStd_HArray1OfHArray1OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_HArray1OfHArray1OfReal DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_HArray1OfHArray1OfReal { - PDataStd_HArray1OfHArray1OfReal* _get_reference() { - return (PDataStd_HArray1OfHArray1OfReal*)$self->Access(); - } -}; - -%extend Handle_PDataStd_HArray1OfHArray1OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_HArray1OfHArray1OfReal { %pythoncode { __repr__ = _dumps_object @@ -1935,52 +1280,6 @@ class PDataStd_HArray1OfHAsciiString : public Standard_Persistent { }; -%extend PDataStd_HArray1OfHAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_HArray1OfHAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_HArray1OfHAsciiString::Handle_PDataStd_HArray1OfHAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_HArray1OfHAsciiString; -class Handle_PDataStd_HArray1OfHAsciiString : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PDataStd_HArray1OfHAsciiString(); - Handle_PDataStd_HArray1OfHAsciiString(const Handle_PDataStd_HArray1OfHAsciiString &aHandle); - Handle_PDataStd_HArray1OfHAsciiString(const PDataStd_HArray1OfHAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_HArray1OfHAsciiString DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_HArray1OfHAsciiString { - PDataStd_HArray1OfHAsciiString* _get_reference() { - return (PDataStd_HArray1OfHAsciiString*)$self->Access(); - } -}; - -%extend Handle_PDataStd_HArray1OfHAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_HArray1OfHAsciiString { %pythoncode { __repr__ = _dumps_object @@ -2054,52 +1353,6 @@ class PDataStd_IntPackedMap : public PDF_Attribute { }; -%extend PDataStd_IntPackedMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_IntPackedMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_IntPackedMap::Handle_PDataStd_IntPackedMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_IntPackedMap; -class Handle_PDataStd_IntPackedMap : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_IntPackedMap(); - Handle_PDataStd_IntPackedMap(const Handle_PDataStd_IntPackedMap &aHandle); - Handle_PDataStd_IntPackedMap(const PDataStd_IntPackedMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_IntPackedMap DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_IntPackedMap { - PDataStd_IntPackedMap* _get_reference() { - return (PDataStd_IntPackedMap*)$self->Access(); - } -}; - -%extend Handle_PDataStd_IntPackedMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_IntPackedMap { %pythoncode { __repr__ = _dumps_object @@ -2193,52 +1446,6 @@ class PDataStd_IntPackedMap_1 : public PDF_Attribute { }; -%extend PDataStd_IntPackedMap_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_IntPackedMap_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_IntPackedMap_1::Handle_PDataStd_IntPackedMap_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_IntPackedMap_1; -class Handle_PDataStd_IntPackedMap_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_IntPackedMap_1(); - Handle_PDataStd_IntPackedMap_1(const Handle_PDataStd_IntPackedMap_1 &aHandle); - Handle_PDataStd_IntPackedMap_1(const PDataStd_IntPackedMap_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_IntPackedMap_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_IntPackedMap_1 { - PDataStd_IntPackedMap_1* _get_reference() { - return (PDataStd_IntPackedMap_1*)$self->Access(); - } -}; - -%extend Handle_PDataStd_IntPackedMap_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_IntPackedMap_1 { %pythoncode { __repr__ = _dumps_object @@ -2288,53 +1495,7 @@ class PDataStd_Integer : public PDF_Attribute { %extend PDataStd_Integer { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Integer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Integer::Handle_PDataStd_Integer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Integer; -class Handle_PDataStd_Integer : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Integer(); - Handle_PDataStd_Integer(const Handle_PDataStd_Integer &aHandle); - Handle_PDataStd_Integer(const PDataStd_Integer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Integer DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Integer { - PDataStd_Integer* _get_reference() { - return (PDataStd_Integer*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Integer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend PDataStd_Integer { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor PDataStd_IntegerArray; @@ -2393,52 +1554,6 @@ class PDataStd_IntegerArray : public PDF_Attribute { }; -%extend PDataStd_IntegerArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_IntegerArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_IntegerArray::Handle_PDataStd_IntegerArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_IntegerArray; -class Handle_PDataStd_IntegerArray : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_IntegerArray(); - Handle_PDataStd_IntegerArray(const Handle_PDataStd_IntegerArray &aHandle); - Handle_PDataStd_IntegerArray(const PDataStd_IntegerArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_IntegerArray DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_IntegerArray { - PDataStd_IntegerArray* _get_reference() { - return (PDataStd_IntegerArray*)$self->Access(); - } -}; - -%extend Handle_PDataStd_IntegerArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_IntegerArray { %pythoncode { __repr__ = _dumps_object @@ -2520,52 +1635,6 @@ class PDataStd_IntegerArray_1 : public PDF_Attribute { }; -%extend PDataStd_IntegerArray_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_IntegerArray_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_IntegerArray_1::Handle_PDataStd_IntegerArray_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_IntegerArray_1; -class Handle_PDataStd_IntegerArray_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_IntegerArray_1(); - Handle_PDataStd_IntegerArray_1(const Handle_PDataStd_IntegerArray_1 &aHandle); - Handle_PDataStd_IntegerArray_1(const PDataStd_IntegerArray_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_IntegerArray_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_IntegerArray_1 { - PDataStd_IntegerArray_1* _get_reference() { - return (PDataStd_IntegerArray_1*)$self->Access(); - } -}; - -%extend Handle_PDataStd_IntegerArray_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_IntegerArray_1 { %pythoncode { __repr__ = _dumps_object @@ -2627,52 +1696,6 @@ class PDataStd_IntegerList : public PDF_Attribute { }; -%extend PDataStd_IntegerList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_IntegerList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_IntegerList::Handle_PDataStd_IntegerList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_IntegerList; -class Handle_PDataStd_IntegerList : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_IntegerList(); - Handle_PDataStd_IntegerList(const Handle_PDataStd_IntegerList &aHandle); - Handle_PDataStd_IntegerList(const PDataStd_IntegerList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_IntegerList DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_IntegerList { - PDataStd_IntegerList* _get_reference() { - return (PDataStd_IntegerList*)$self->Access(); - } -}; - -%extend Handle_PDataStd_IntegerList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_IntegerList { %pythoncode { __repr__ = _dumps_object @@ -2720,52 +1743,6 @@ class PDataStd_Name : public PDF_Attribute { }; -%extend PDataStd_Name { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Name(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Name::Handle_PDataStd_Name %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Name; -class Handle_PDataStd_Name : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Name(); - Handle_PDataStd_Name(const Handle_PDataStd_Name &aHandle); - Handle_PDataStd_Name(const PDataStd_Name *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Name DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Name { - PDataStd_Name* _get_reference() { - return (PDataStd_Name*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Name { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Name { %pythoncode { __repr__ = _dumps_object @@ -3117,52 +2094,6 @@ class PDataStd_NamedData : public PDF_Attribute { }; -%extend PDataStd_NamedData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_NamedData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_NamedData::Handle_PDataStd_NamedData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_NamedData; -class Handle_PDataStd_NamedData : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_NamedData(); - Handle_PDataStd_NamedData(const Handle_PDataStd_NamedData &aHandle); - Handle_PDataStd_NamedData(const PDataStd_NamedData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_NamedData DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_NamedData { - PDataStd_NamedData* _get_reference() { - return (PDataStd_NamedData*)$self->Access(); - } -}; - -%extend Handle_PDataStd_NamedData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_NamedData { %pythoncode { __repr__ = _dumps_object @@ -3184,52 +2115,6 @@ class PDataStd_NoteBook : public PDF_Attribute { }; -%extend PDataStd_NoteBook { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_NoteBook(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_NoteBook::Handle_PDataStd_NoteBook %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_NoteBook; -class Handle_PDataStd_NoteBook : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_NoteBook(); - Handle_PDataStd_NoteBook(const Handle_PDataStd_NoteBook &aHandle); - Handle_PDataStd_NoteBook(const PDataStd_NoteBook *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_NoteBook DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_NoteBook { - PDataStd_NoteBook* _get_reference() { - return (PDataStd_NoteBook*)$self->Access(); - } -}; - -%extend Handle_PDataStd_NoteBook { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_NoteBook { %pythoncode { __repr__ = _dumps_object @@ -3299,52 +2184,6 @@ class PDataStd_Real : public PDF_Attribute { }; -%extend PDataStd_Real { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Real(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Real::Handle_PDataStd_Real %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Real; -class Handle_PDataStd_Real : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Real(); - Handle_PDataStd_Real(const Handle_PDataStd_Real &aHandle); - Handle_PDataStd_Real(const PDataStd_Real *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Real DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Real { - PDataStd_Real* _get_reference() { - return (PDataStd_Real*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Real { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Real { %pythoncode { __repr__ = _dumps_object @@ -3406,52 +2245,6 @@ class PDataStd_RealArray : public PDF_Attribute { }; -%extend PDataStd_RealArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_RealArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_RealArray::Handle_PDataStd_RealArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_RealArray; -class Handle_PDataStd_RealArray : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_RealArray(); - Handle_PDataStd_RealArray(const Handle_PDataStd_RealArray &aHandle); - Handle_PDataStd_RealArray(const PDataStd_RealArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_RealArray DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_RealArray { - PDataStd_RealArray* _get_reference() { - return (PDataStd_RealArray*)$self->Access(); - } -}; - -%extend Handle_PDataStd_RealArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_RealArray { %pythoncode { __repr__ = _dumps_object @@ -3533,52 +2326,6 @@ class PDataStd_RealArray_1 : public PDF_Attribute { }; -%extend PDataStd_RealArray_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_RealArray_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_RealArray_1::Handle_PDataStd_RealArray_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_RealArray_1; -class Handle_PDataStd_RealArray_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_RealArray_1(); - Handle_PDataStd_RealArray_1(const Handle_PDataStd_RealArray_1 &aHandle); - Handle_PDataStd_RealArray_1(const PDataStd_RealArray_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_RealArray_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_RealArray_1 { - PDataStd_RealArray_1* _get_reference() { - return (PDataStd_RealArray_1*)$self->Access(); - } -}; - -%extend Handle_PDataStd_RealArray_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_RealArray_1 { %pythoncode { __repr__ = _dumps_object @@ -3640,52 +2387,6 @@ class PDataStd_RealList : public PDF_Attribute { }; -%extend PDataStd_RealList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_RealList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_RealList::Handle_PDataStd_RealList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_RealList; -class Handle_PDataStd_RealList : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_RealList(); - Handle_PDataStd_RealList(const Handle_PDataStd_RealList &aHandle); - Handle_PDataStd_RealList(const PDataStd_RealList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_RealList DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_RealList { - PDataStd_RealList* _get_reference() { - return (PDataStd_RealList*)$self->Access(); - } -}; - -%extend Handle_PDataStd_RealList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_RealList { %pythoncode { __repr__ = _dumps_object @@ -3747,52 +2448,6 @@ class PDataStd_ReferenceArray : public PDF_Attribute { }; -%extend PDataStd_ReferenceArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ReferenceArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ReferenceArray::Handle_PDataStd_ReferenceArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ReferenceArray; -class Handle_PDataStd_ReferenceArray : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ReferenceArray(); - Handle_PDataStd_ReferenceArray(const Handle_PDataStd_ReferenceArray &aHandle); - Handle_PDataStd_ReferenceArray(const PDataStd_ReferenceArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ReferenceArray DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ReferenceArray { - PDataStd_ReferenceArray* _get_reference() { - return (PDataStd_ReferenceArray*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ReferenceArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ReferenceArray { %pythoncode { __repr__ = _dumps_object @@ -3854,52 +2509,6 @@ class PDataStd_ReferenceList : public PDF_Attribute { }; -%extend PDataStd_ReferenceList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_ReferenceList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_ReferenceList::Handle_PDataStd_ReferenceList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_ReferenceList; -class Handle_PDataStd_ReferenceList : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_ReferenceList(); - Handle_PDataStd_ReferenceList(const Handle_PDataStd_ReferenceList &aHandle); - Handle_PDataStd_ReferenceList(const PDataStd_ReferenceList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_ReferenceList DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_ReferenceList { - PDataStd_ReferenceList* _get_reference() { - return (PDataStd_ReferenceList*)$self->Access(); - } -}; - -%extend Handle_PDataStd_ReferenceList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_ReferenceList { %pythoncode { __repr__ = _dumps_object @@ -3967,52 +2576,6 @@ class PDataStd_Relation : public PDF_Attribute { }; -%extend PDataStd_Relation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Relation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Relation::Handle_PDataStd_Relation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Relation; -class Handle_PDataStd_Relation : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Relation(); - Handle_PDataStd_Relation(const Handle_PDataStd_Relation &aHandle); - Handle_PDataStd_Relation(const PDataStd_Relation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Relation DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Relation { - PDataStd_Relation* _get_reference() { - return (PDataStd_Relation*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Relation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Relation { %pythoncode { __repr__ = _dumps_object @@ -4034,52 +2597,6 @@ class PDataStd_Tick : public PDF_Attribute { }; -%extend PDataStd_Tick { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Tick(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Tick::Handle_PDataStd_Tick %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Tick; -class Handle_PDataStd_Tick : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Tick(); - Handle_PDataStd_Tick(const Handle_PDataStd_Tick &aHandle); - Handle_PDataStd_Tick(const PDataStd_Tick *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Tick DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Tick { - PDataStd_Tick* _get_reference() { - return (PDataStd_Tick*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Tick { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Tick { %pythoncode { __repr__ = _dumps_object @@ -4155,52 +2672,6 @@ class PDataStd_TreeNode : public PDF_Attribute { }; -%extend PDataStd_TreeNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_TreeNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_TreeNode::Handle_PDataStd_TreeNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_TreeNode; -class Handle_PDataStd_TreeNode : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_TreeNode(); - Handle_PDataStd_TreeNode(const Handle_PDataStd_TreeNode &aHandle); - Handle_PDataStd_TreeNode(const PDataStd_TreeNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_TreeNode DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_TreeNode { - PDataStd_TreeNode* _get_reference() { - return (PDataStd_TreeNode*)$self->Access(); - } -}; - -%extend Handle_PDataStd_TreeNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_TreeNode { %pythoncode { __repr__ = _dumps_object @@ -4242,52 +2713,6 @@ class PDataStd_UAttribute : public PDF_Attribute { }; -%extend PDataStd_UAttribute { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_UAttribute(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_UAttribute::Handle_PDataStd_UAttribute %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_UAttribute; -class Handle_PDataStd_UAttribute : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_UAttribute(); - Handle_PDataStd_UAttribute(const Handle_PDataStd_UAttribute &aHandle); - Handle_PDataStd_UAttribute(const PDataStd_UAttribute *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_UAttribute DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_UAttribute { - PDataStd_UAttribute* _get_reference() { - return (PDataStd_UAttribute*)$self->Access(); - } -}; - -%extend Handle_PDataStd_UAttribute { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_UAttribute { %pythoncode { __repr__ = _dumps_object @@ -4335,52 +2760,6 @@ class PDataStd_VArrayNodeOfFieldOfHArray1OfByte : public PStandard_ArrayNode { }; -%extend PDataStd_VArrayNodeOfFieldOfHArray1OfByte { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte::Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte; -class Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte : public Handle_PStandard_ArrayNode { - - public: - // constructors - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte(); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte(const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte &aHandle); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte(const PDataStd_VArrayNodeOfFieldOfHArray1OfByte *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte { - PDataStd_VArrayNodeOfFieldOfHArray1OfByte* _get_reference() { - return (PDataStd_VArrayNodeOfFieldOfHArray1OfByte*)$self->Access(); - } -}; - -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfByte { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_VArrayNodeOfFieldOfHArray1OfByte { %pythoncode { __repr__ = _dumps_object @@ -4428,52 +2807,6 @@ class PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger : public PStandard_A }; -%extend PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger::Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger; -class Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger : public Handle_PStandard_ArrayNode { - - public: - // constructors - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger(); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger(const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger &aHandle); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger(const PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger { - PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger* _get_reference() { - return (PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger*)$self->Access(); - } -}; - -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfInteger { %pythoncode { __repr__ = _dumps_object @@ -4521,52 +2854,6 @@ class PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal : public PStandard_Arra }; -%extend PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal::Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal; -class Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal : public Handle_PStandard_ArrayNode { - - public: - // constructors - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal(); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal(const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal &aHandle); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal(const PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal { - PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal* _get_reference() { - return (PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal*)$self->Access(); - } -}; - -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_VArrayNodeOfFieldOfHArray1OfHArray1OfReal { %pythoncode { __repr__ = _dumps_object @@ -4614,52 +2901,6 @@ class PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString : public PStandard_Array }; -%extend PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString::Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString; -class Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString : public Handle_PStandard_ArrayNode { - - public: - // constructors - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString(); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString(const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString &aHandle); - Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString(const PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString { - PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString* _get_reference() { - return (PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString*)$self->Access(); - } -}; - -%extend Handle_PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_VArrayNodeOfFieldOfHArray1OfHAsciiString { %pythoncode { __repr__ = _dumps_object @@ -4851,52 +3092,6 @@ class PDataStd_Variable : public PDF_Attribute { }; -%extend PDataStd_Variable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataStd_Variable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataStd_Variable::Handle_PDataStd_Variable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataStd_Variable; -class Handle_PDataStd_Variable : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataStd_Variable(); - Handle_PDataStd_Variable(const Handle_PDataStd_Variable &aHandle); - Handle_PDataStd_Variable(const PDataStd_Variable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataStd_Variable DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataStd_Variable { - PDataStd_Variable* _get_reference() { - return (PDataStd_Variable*)$self->Access(); - } -}; - -%extend Handle_PDataStd_Variable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataStd_Variable { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/PDataXtd.i b/src/SWIG_files/wrapper/PDataXtd.i index d85d87327..f326f324a 100644 --- a/src/SWIG_files/wrapper/PDataXtd.i +++ b/src/SWIG_files/wrapper/PDataXtd.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define PDATAXTDDOCSTRING -"No docstring provided." +" + +" %enddef %module (package="OCC.Core", docstring=PDATAXTDDOCSTRING) PDataXtd @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PDataXtd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PDataXtd_Axis; class PDataXtd_Axis : public PDF_Attribute { public: @@ -75,52 +64,6 @@ class PDataXtd_Axis : public PDF_Attribute { }; -%extend PDataXtd_Axis { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Axis(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Axis::Handle_PDataXtd_Axis %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Axis; -class Handle_PDataXtd_Axis : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Axis(); - Handle_PDataXtd_Axis(const Handle_PDataXtd_Axis &aHandle); - Handle_PDataXtd_Axis(const PDataXtd_Axis *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Axis DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Axis { - PDataXtd_Axis* _get_reference() { - return (PDataXtd_Axis*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Axis { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Axis { %pythoncode { __repr__ = _dumps_object @@ -294,52 +237,6 @@ class PDataXtd_Constraint : public PDF_Attribute { }; -%extend PDataXtd_Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Constraint::Handle_PDataXtd_Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Constraint; -class Handle_PDataXtd_Constraint : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Constraint(); - Handle_PDataXtd_Constraint(const Handle_PDataXtd_Constraint &aHandle); - Handle_PDataXtd_Constraint(const PDataXtd_Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Constraint DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Constraint { - PDataXtd_Constraint* _get_reference() { - return (PDataXtd_Constraint*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Constraint { %pythoncode { __repr__ = _dumps_object @@ -387,52 +284,6 @@ class PDataXtd_Geometry : public PDF_Attribute { }; -%extend PDataXtd_Geometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Geometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Geometry::Handle_PDataXtd_Geometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Geometry; -class Handle_PDataXtd_Geometry : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Geometry(); - Handle_PDataXtd_Geometry(const Handle_PDataXtd_Geometry &aHandle); - Handle_PDataXtd_Geometry(const PDataXtd_Geometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Geometry DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Geometry { - PDataXtd_Geometry* _get_reference() { - return (PDataXtd_Geometry*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Geometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Geometry { %pythoncode { __repr__ = _dumps_object @@ -654,52 +505,6 @@ class PDataXtd_PatternStd : public PDF_Attribute { }; -%extend PDataXtd_PatternStd { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_PatternStd(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_PatternStd::Handle_PDataXtd_PatternStd %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_PatternStd; -class Handle_PDataXtd_PatternStd : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_PatternStd(); - Handle_PDataXtd_PatternStd(const Handle_PDataXtd_PatternStd &aHandle); - Handle_PDataXtd_PatternStd(const PDataXtd_PatternStd *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_PatternStd DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_PatternStd { - PDataXtd_PatternStd* _get_reference() { - return (PDataXtd_PatternStd*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_PatternStd { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_PatternStd { %pythoncode { __repr__ = _dumps_object @@ -721,52 +526,6 @@ class PDataXtd_Placement : public PDF_Attribute { }; -%extend PDataXtd_Placement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Placement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Placement::Handle_PDataXtd_Placement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Placement; -class Handle_PDataXtd_Placement : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Placement(); - Handle_PDataXtd_Placement(const Handle_PDataXtd_Placement &aHandle); - Handle_PDataXtd_Placement(const PDataXtd_Placement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Placement DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Placement { - PDataXtd_Placement* _get_reference() { - return (PDataXtd_Placement*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Placement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Placement { %pythoncode { __repr__ = _dumps_object @@ -788,52 +547,6 @@ class PDataXtd_Plane : public PDF_Attribute { }; -%extend PDataXtd_Plane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Plane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Plane::Handle_PDataXtd_Plane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Plane; -class Handle_PDataXtd_Plane : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Plane(); - Handle_PDataXtd_Plane(const Handle_PDataXtd_Plane &aHandle); - Handle_PDataXtd_Plane(const PDataXtd_Plane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Plane DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Plane { - PDataXtd_Plane* _get_reference() { - return (PDataXtd_Plane*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Plane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Plane { %pythoncode { __repr__ = _dumps_object @@ -855,52 +568,6 @@ class PDataXtd_Point : public PDF_Attribute { }; -%extend PDataXtd_Point { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Point(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Point::Handle_PDataXtd_Point %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Point; -class Handle_PDataXtd_Point : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Point(); - Handle_PDataXtd_Point(const Handle_PDataXtd_Point &aHandle); - Handle_PDataXtd_Point(const PDataXtd_Point *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Point DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Point { - PDataXtd_Point* _get_reference() { - return (PDataXtd_Point*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Point { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Point { %pythoncode { __repr__ = _dumps_object @@ -936,52 +603,6 @@ class PDataXtd_Position : public PDF_Attribute { }; -%extend PDataXtd_Position { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Position(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Position::Handle_PDataXtd_Position %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Position; -class Handle_PDataXtd_Position : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Position(); - Handle_PDataXtd_Position(const Handle_PDataXtd_Position &aHandle); - Handle_PDataXtd_Position(const PDataXtd_Position *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Position DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Position { - PDataXtd_Position* _get_reference() { - return (PDataXtd_Position*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Position { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Position { %pythoncode { __repr__ = _dumps_object @@ -1003,52 +624,6 @@ class PDataXtd_Shape : public PDF_Attribute { }; -%extend PDataXtd_Shape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDataXtd_Shape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDataXtd_Shape::Handle_PDataXtd_Shape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDataXtd_Shape; -class Handle_PDataXtd_Shape : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDataXtd_Shape(); - Handle_PDataXtd_Shape(const Handle_PDataXtd_Shape &aHandle); - Handle_PDataXtd_Shape(const PDataXtd_Shape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDataXtd_Shape DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDataXtd_Shape { - PDataXtd_Shape* _get_reference() { - return (PDataXtd_Shape*)$self->Access(); - } -}; - -%extend Handle_PDataXtd_Shape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDataXtd_Shape { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/PDocStd.i b/src/SWIG_files/wrapper/PDocStd.i index cc7b118f9..fc3f097a8 100644 --- a/src/SWIG_files/wrapper/PDocStd.i +++ b/src/SWIG_files/wrapper/PDocStd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define PDOCSTDDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=PDOCSTDDOCSTRING) PDocStd @@ -34,31 +35,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PDocStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PDocStd_Document; class PDocStd_Document : public PCDM_Document { public: @@ -101,52 +89,6 @@ class PDocStd_Document : public PCDM_Document { }; -%extend PDocStd_Document { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDocStd_Document(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDocStd_Document::Handle_PDocStd_Document %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDocStd_Document; -class Handle_PDocStd_Document : public Handle_PCDM_Document { - - public: - // constructors - Handle_PDocStd_Document(); - Handle_PDocStd_Document(const Handle_PDocStd_Document &aHandle); - Handle_PDocStd_Document(const PDocStd_Document *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDocStd_Document DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDocStd_Document { - PDocStd_Document* _get_reference() { - return (PDocStd_Document*)$self->Access(); - } -}; - -%extend Handle_PDocStd_Document { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDocStd_Document { %pythoncode { __repr__ = _dumps_object @@ -218,52 +160,6 @@ class PDocStd_XLink : public PDF_Attribute { }; -%extend PDocStd_XLink { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PDocStd_XLink(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PDocStd_XLink::Handle_PDocStd_XLink %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PDocStd_XLink; -class Handle_PDocStd_XLink : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PDocStd_XLink(); - Handle_PDocStd_XLink(const Handle_PDocStd_XLink &aHandle); - Handle_PDocStd_XLink(const PDocStd_XLink *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PDocStd_XLink DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PDocStd_XLink { - PDocStd_XLink* _get_reference() { - return (PDocStd_XLink*)$self->Access(); - } -}; - -%extend Handle_PDocStd_XLink { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PDocStd_XLink { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/PFunction.i b/src/SWIG_files/wrapper/PFunction.i index be3e78f4a..29de2e79d 100644 --- a/src/SWIG_files/wrapper/PFunction.i +++ b/src/SWIG_files/wrapper/PFunction.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define PFUNCTIONDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=PFUNCTIONDOCSTRING) PFunction @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PFunction_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PFunction_Function; class PFunction_Function : public PDF_Attribute { public: @@ -109,52 +96,6 @@ class PFunction_Function : public PDF_Attribute { }; -%extend PFunction_Function { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PFunction_Function(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PFunction_Function::Handle_PFunction_Function %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PFunction_Function; -class Handle_PFunction_Function : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PFunction_Function(); - Handle_PFunction_Function(const Handle_PFunction_Function &aHandle); - Handle_PFunction_Function(const PFunction_Function *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PFunction_Function DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PFunction_Function { - PFunction_Function* _get_reference() { - return (PFunction_Function*)$self->Access(); - } -}; - -%extend Handle_PFunction_Function { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PFunction_Function { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/PLib.i b/src/SWIG_files/wrapper/PLib.i index 66ad4a23d..18a6dc193 100644 --- a/src/SWIG_files/wrapper/PLib.i +++ b/src/SWIG_files/wrapper/PLib.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define PLIBDOCSTRING -"No docstring provided." +"PLib means Polynomial functions library. This pk +provides basic computation functions for +polynomial functions. + +" %enddef %module (package="OCC.Core", docstring=PLIBDOCSTRING) PLib @@ -34,31 +38,21 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(PLib_Base) +%wrap_handle(PLib_HermitJacobi) +%wrap_handle(PLib_JacobiPolynomial) + %rename(plib) PLib; class PLib { public: @@ -652,51 +646,7 @@ class PLib_Base : public MMgt_TShared { }; -%extend PLib_Base { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PLib_Base(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PLib_Base::Handle_PLib_Base %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PLib_Base; -class Handle_PLib_Base : public Handle_MMgt_TShared { - - public: - // constructors - Handle_PLib_Base(); - Handle_PLib_Base(const Handle_PLib_Base &aHandle); - Handle_PLib_Base(const PLib_Base *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PLib_Base DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PLib_Base { - PLib_Base* _get_reference() { - return (PLib_Base*)$self->Access(); - } -}; - -%extend Handle_PLib_Base { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PLib_Base) %extend PLib_Base { %pythoncode { @@ -986,51 +936,7 @@ class PLib_HermitJacobi : public PLib_Base { }; -%extend PLib_HermitJacobi { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PLib_HermitJacobi(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PLib_HermitJacobi::Handle_PLib_HermitJacobi %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PLib_HermitJacobi; -class Handle_PLib_HermitJacobi : public Handle_PLib_Base { - - public: - // constructors - Handle_PLib_HermitJacobi(); - Handle_PLib_HermitJacobi(const Handle_PLib_HermitJacobi &aHandle); - Handle_PLib_HermitJacobi(const PLib_HermitJacobi *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PLib_HermitJacobi DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PLib_HermitJacobi { - PLib_HermitJacobi* _get_reference() { - return (PLib_HermitJacobi*)$self->Access(); - } -}; - -%extend Handle_PLib_HermitJacobi { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PLib_HermitJacobi) %extend PLib_HermitJacobi { %pythoncode { @@ -1199,51 +1105,7 @@ class PLib_JacobiPolynomial : public PLib_Base { }; -%extend PLib_JacobiPolynomial { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PLib_JacobiPolynomial(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PLib_JacobiPolynomial::Handle_PLib_JacobiPolynomial %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PLib_JacobiPolynomial; -class Handle_PLib_JacobiPolynomial : public Handle_PLib_Base { - - public: - // constructors - Handle_PLib_JacobiPolynomial(); - Handle_PLib_JacobiPolynomial(const Handle_PLib_JacobiPolynomial &aHandle); - Handle_PLib_JacobiPolynomial(const PLib_JacobiPolynomial *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PLib_JacobiPolynomial DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PLib_JacobiPolynomial { - PLib_JacobiPolynomial* _get_reference() { - return (PLib_JacobiPolynomial*)$self->Access(); - } -}; - -%extend Handle_PLib_JacobiPolynomial { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PLib_JacobiPolynomial) %extend PLib_JacobiPolynomial { %pythoncode { diff --git a/src/SWIG_files/wrapper/PNaming.i b/src/SWIG_files/wrapper/PNaming.i index 67c633122..2107b1a50 100644 --- a/src/SWIG_files/wrapper/PNaming.i +++ b/src/SWIG_files/wrapper/PNaming.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define PNAMINGDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=PNAMINGDOCSTRING) PNaming @@ -34,31 +35,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PNaming_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PNaming_FieldOfHArray1OfNamedShape; class PNaming_FieldOfHArray1OfNamedShape : public DBC_BaseArray { public: @@ -206,52 +194,6 @@ class PNaming_HArray1OfNamedShape : public Standard_Persistent { }; -%extend PNaming_HArray1OfNamedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_HArray1OfNamedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_HArray1OfNamedShape::Handle_PNaming_HArray1OfNamedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_HArray1OfNamedShape; -class Handle_PNaming_HArray1OfNamedShape : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PNaming_HArray1OfNamedShape(); - Handle_PNaming_HArray1OfNamedShape(const Handle_PNaming_HArray1OfNamedShape &aHandle); - Handle_PNaming_HArray1OfNamedShape(const PNaming_HArray1OfNamedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_HArray1OfNamedShape DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_HArray1OfNamedShape { - PNaming_HArray1OfNamedShape* _get_reference() { - return (PNaming_HArray1OfNamedShape*)$self->Access(); - } -}; - -%extend Handle_PNaming_HArray1OfNamedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_HArray1OfNamedShape { %pythoncode { __repr__ = _dumps_object @@ -373,52 +315,6 @@ class PNaming_Name : public Standard_Persistent { }; -%extend PNaming_Name { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_Name(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_Name::Handle_PNaming_Name %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_Name; -class Handle_PNaming_Name : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PNaming_Name(); - Handle_PNaming_Name(const Handle_PNaming_Name &aHandle); - Handle_PNaming_Name(const PNaming_Name *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_Name DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_Name { - PNaming_Name* _get_reference() { - return (PNaming_Name*)$self->Access(); - } -}; - -%extend Handle_PNaming_Name { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_Name { %pythoncode { __repr__ = _dumps_object @@ -560,52 +456,6 @@ class PNaming_Name_1 : public Standard_Persistent { }; -%extend PNaming_Name_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_Name_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_Name_1::Handle_PNaming_Name_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_Name_1; -class Handle_PNaming_Name_1 : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PNaming_Name_1(); - Handle_PNaming_Name_1(const Handle_PNaming_Name_1 &aHandle); - Handle_PNaming_Name_1(const PNaming_Name_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_Name_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_Name_1 { - PNaming_Name_1* _get_reference() { - return (PNaming_Name_1*)$self->Access(); - } -}; - -%extend Handle_PNaming_Name_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_Name_1 { %pythoncode { __repr__ = _dumps_object @@ -767,52 +617,6 @@ class PNaming_Name_2 : public Standard_Persistent { }; -%extend PNaming_Name_2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_Name_2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_Name_2::Handle_PNaming_Name_2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_Name_2; -class Handle_PNaming_Name_2 : public Handle_Standard_Persistent { - - public: - // constructors - Handle_PNaming_Name_2(); - Handle_PNaming_Name_2(const Handle_PNaming_Name_2 &aHandle); - Handle_PNaming_Name_2(const PNaming_Name_2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_Name_2 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_Name_2 { - PNaming_Name_2* _get_reference() { - return (PNaming_Name_2*)$self->Access(); - } -}; - -%extend Handle_PNaming_Name_2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_Name_2 { %pythoncode { __repr__ = _dumps_object @@ -938,52 +742,6 @@ class PNaming_NamedShape : public PDF_Attribute { }; -%extend PNaming_NamedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_NamedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_NamedShape::Handle_PNaming_NamedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_NamedShape; -class Handle_PNaming_NamedShape : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PNaming_NamedShape(); - Handle_PNaming_NamedShape(const Handle_PNaming_NamedShape &aHandle); - Handle_PNaming_NamedShape(const PNaming_NamedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_NamedShape DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_NamedShape { - PNaming_NamedShape* _get_reference() { - return (PNaming_NamedShape*)$self->Access(); - } -}; - -%extend Handle_PNaming_NamedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_NamedShape { %pythoncode { __repr__ = _dumps_object @@ -1025,52 +783,6 @@ class PNaming_Naming : public PDF_Attribute { }; -%extend PNaming_Naming { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_Naming(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_Naming::Handle_PNaming_Naming %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_Naming; -class Handle_PNaming_Naming : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PNaming_Naming(); - Handle_PNaming_Naming(const Handle_PNaming_Naming &aHandle); - Handle_PNaming_Naming(const PNaming_Naming *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_Naming DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_Naming { - PNaming_Naming* _get_reference() { - return (PNaming_Naming*)$self->Access(); - } -}; - -%extend Handle_PNaming_Naming { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_Naming { %pythoncode { __repr__ = _dumps_object @@ -1112,52 +824,6 @@ class PNaming_Naming_1 : public PDF_Attribute { }; -%extend PNaming_Naming_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_Naming_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_Naming_1::Handle_PNaming_Naming_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_Naming_1; -class Handle_PNaming_Naming_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PNaming_Naming_1(); - Handle_PNaming_Naming_1(const Handle_PNaming_Naming_1 &aHandle); - Handle_PNaming_Naming_1(const PNaming_Naming_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_Naming_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_Naming_1 { - PNaming_Naming_1* _get_reference() { - return (PNaming_Naming_1*)$self->Access(); - } -}; - -%extend Handle_PNaming_Naming_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_Naming_1 { %pythoncode { __repr__ = _dumps_object @@ -1199,52 +865,6 @@ class PNaming_Naming_2 : public PDF_Attribute { }; -%extend PNaming_Naming_2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_Naming_2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_Naming_2::Handle_PNaming_Naming_2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_Naming_2; -class Handle_PNaming_Naming_2 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PNaming_Naming_2(); - Handle_PNaming_Naming_2(const Handle_PNaming_Naming_2 &aHandle); - Handle_PNaming_Naming_2(const PNaming_Naming_2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_Naming_2 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_Naming_2 { - PNaming_Naming_2* _get_reference() { - return (PNaming_Naming_2*)$self->Access(); - } -}; - -%extend Handle_PNaming_Naming_2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_Naming_2 { %pythoncode { __repr__ = _dumps_object @@ -1292,52 +912,6 @@ class PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape : public PStandard_ArrayNod }; -%extend PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape::Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape; -class Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape : public Handle_PStandard_ArrayNode { - - public: - // constructors - Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape(); - Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape(const Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape &aHandle); - Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape(const PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape { - PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape* _get_reference() { - return (PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape*)$self->Access(); - } -}; - -%extend Handle_PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PNaming_VArrayNodeOfFieldOfHArray1OfNamedShape { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/PPrsStd.i b/src/SWIG_files/wrapper/PPrsStd.i index a0cd047fe..8178820ac 100644 --- a/src/SWIG_files/wrapper/PPrsStd.i +++ b/src/SWIG_files/wrapper/PPrsStd.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define PPRSSTDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=PPRSSTDDOCSTRING) PPrsStd @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PPrsStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor PPrsStd_AISPresentation; class PPrsStd_AISPresentation : public PDF_Attribute { public: @@ -195,52 +182,6 @@ class PPrsStd_AISPresentation : public PDF_Attribute { }; -%extend PPrsStd_AISPresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PPrsStd_AISPresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PPrsStd_AISPresentation::Handle_PPrsStd_AISPresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PPrsStd_AISPresentation; -class Handle_PPrsStd_AISPresentation : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PPrsStd_AISPresentation(); - Handle_PPrsStd_AISPresentation(const Handle_PPrsStd_AISPresentation &aHandle); - Handle_PPrsStd_AISPresentation(const PPrsStd_AISPresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PPrsStd_AISPresentation DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PPrsStd_AISPresentation { - PPrsStd_AISPresentation* _get_reference() { - return (PPrsStd_AISPresentation*)$self->Access(); - } -}; - -%extend Handle_PPrsStd_AISPresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PPrsStd_AISPresentation { %pythoncode { __repr__ = _dumps_object @@ -402,52 +343,6 @@ class PPrsStd_AISPresentation_1 : public PDF_Attribute { }; -%extend PPrsStd_AISPresentation_1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PPrsStd_AISPresentation_1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PPrsStd_AISPresentation_1::Handle_PPrsStd_AISPresentation_1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PPrsStd_AISPresentation_1; -class Handle_PPrsStd_AISPresentation_1 : public Handle_PDF_Attribute { - - public: - // constructors - Handle_PPrsStd_AISPresentation_1(); - Handle_PPrsStd_AISPresentation_1(const Handle_PPrsStd_AISPresentation_1 &aHandle); - Handle_PPrsStd_AISPresentation_1(const PPrsStd_AISPresentation_1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PPrsStd_AISPresentation_1 DownCast(const Handle_Standard_Persistent &AnObject); - -}; -%extend Handle_PPrsStd_AISPresentation_1 { - PPrsStd_AISPresentation_1* _get_reference() { - return (PPrsStd_AISPresentation_1*)$self->Access(); - } -}; - -%extend Handle_PPrsStd_AISPresentation_1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - %extend PPrsStd_AISPresentation_1 { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/Plate.i b/src/SWIG_files/wrapper/Plate.i index 175568626..05a260ecc 100644 --- a/src/SWIG_files/wrapper/Plate.i +++ b/src/SWIG_files/wrapper/Plate.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define PLATEDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=PLATEDOCSTRING) Plate @@ -34,31 +34,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Plate_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Plate_HArray1OfPinpointConstraint) +%wrap_handle(Plate_SequenceNodeOfSequenceOfLinearScalarConstraint) +%wrap_handle(Plate_SequenceNodeOfSequenceOfLinearXYZConstraint) +%wrap_handle(Plate_SequenceNodeOfSequenceOfPinpointConstraint) + %nodefaultctor Plate_Array1OfPinpointConstraint; class Plate_Array1OfPinpointConstraint { public: @@ -532,51 +523,7 @@ class Plate_HArray1OfPinpointConstraint : public MMgt_TShared { }; -%extend Plate_HArray1OfPinpointConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Plate_HArray1OfPinpointConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Plate_HArray1OfPinpointConstraint::Handle_Plate_HArray1OfPinpointConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Plate_HArray1OfPinpointConstraint; -class Handle_Plate_HArray1OfPinpointConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Plate_HArray1OfPinpointConstraint(); - Handle_Plate_HArray1OfPinpointConstraint(const Handle_Plate_HArray1OfPinpointConstraint &aHandle); - Handle_Plate_HArray1OfPinpointConstraint(const Plate_HArray1OfPinpointConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Plate_HArray1OfPinpointConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Plate_HArray1OfPinpointConstraint { - Plate_HArray1OfPinpointConstraint* _get_reference() { - return (Plate_HArray1OfPinpointConstraint*)$self->Access(); - } -}; - -%extend Handle_Plate_HArray1OfPinpointConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Plate_HArray1OfPinpointConstraint) %extend Plate_HArray1OfPinpointConstraint { %pythoncode { @@ -1030,51 +977,7 @@ class Plate_SequenceNodeOfSequenceOfLinearScalarConstraint : public TCollection_ }; -%extend Plate_SequenceNodeOfSequenceOfLinearScalarConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint::Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint; -class Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint(); - Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint(const Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint &aHandle); - Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint(const Plate_SequenceNodeOfSequenceOfLinearScalarConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint { - Plate_SequenceNodeOfSequenceOfLinearScalarConstraint* _get_reference() { - return (Plate_SequenceNodeOfSequenceOfLinearScalarConstraint*)$self->Access(); - } -}; - -%extend Handle_Plate_SequenceNodeOfSequenceOfLinearScalarConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Plate_SequenceNodeOfSequenceOfLinearScalarConstraint) %extend Plate_SequenceNodeOfSequenceOfLinearScalarConstraint { %pythoncode { @@ -1101,51 +1004,7 @@ class Plate_SequenceNodeOfSequenceOfLinearXYZConstraint : public TCollection_Seq }; -%extend Plate_SequenceNodeOfSequenceOfLinearXYZConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint::Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint; -class Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint(); - Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint(const Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint &aHandle); - Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint(const Plate_SequenceNodeOfSequenceOfLinearXYZConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint { - Plate_SequenceNodeOfSequenceOfLinearXYZConstraint* _get_reference() { - return (Plate_SequenceNodeOfSequenceOfLinearXYZConstraint*)$self->Access(); - } -}; - -%extend Handle_Plate_SequenceNodeOfSequenceOfLinearXYZConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Plate_SequenceNodeOfSequenceOfLinearXYZConstraint) %extend Plate_SequenceNodeOfSequenceOfLinearXYZConstraint { %pythoncode { @@ -1172,51 +1031,7 @@ class Plate_SequenceNodeOfSequenceOfPinpointConstraint : public TCollection_SeqN }; -%extend Plate_SequenceNodeOfSequenceOfPinpointConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint::Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint; -class Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint(); - Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint(const Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint &aHandle); - Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint(const Plate_SequenceNodeOfSequenceOfPinpointConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint { - Plate_SequenceNodeOfSequenceOfPinpointConstraint* _get_reference() { - return (Plate_SequenceNodeOfSequenceOfPinpointConstraint*)$self->Access(); - } -}; - -%extend Handle_Plate_SequenceNodeOfSequenceOfPinpointConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Plate_SequenceNodeOfSequenceOfPinpointConstraint) %extend Plate_SequenceNodeOfSequenceOfPinpointConstraint { %pythoncode { diff --git a/src/SWIG_files/wrapper/Plugin.i b/src/SWIG_files/wrapper/Plugin.i index 7cbe35d2a..089708244 100644 --- a/src/SWIG_files/wrapper/Plugin.i +++ b/src/SWIG_files/wrapper/Plugin.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define PLUGINDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=PLUGINDOCSTRING) Plugin @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Plugin_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/Poly.i b/src/SWIG_files/wrapper/Poly.i index 1a6de7a1e..aa782507d 100644 --- a/src/SWIG_files/wrapper/Poly.i +++ b/src/SWIG_files/wrapper/Poly.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define POLYDOCSTRING -"No docstring provided." +"This package provides classes and services to +handle : + +* 3D triangular polyhedrons. + +* 3D polygons. + +* 2D polygon. + +* Tools to dump, save and restore those objects. +" %enddef %module (package="OCC.Core", docstring=POLYDOCSTRING) Poly @@ -34,25 +44,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Poly_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Vector ::Iterator Poly_BaseIteratorOfCoherentLink; typedef NCollection_Vector ::Iterator Poly_BaseIteratorOfCoherentTriangle; @@ -63,6 +59,12 @@ typedef NCollection_List Poly_ListOfTriangulation; /* public enums */ /* end public enums declaration */ +%wrap_handle(Poly_HArray1OfTriangle) +%wrap_handle(Poly_Polygon2D) +%wrap_handle(Poly_Polygon3D) +%wrap_handle(Poly_PolygonOnTriangulation) +%wrap_handle(Poly_Triangulation) + %rename(poly) Poly; class Poly { public: @@ -760,51 +762,7 @@ class Poly_HArray1OfTriangle : public MMgt_TShared { }; -%extend Poly_HArray1OfTriangle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Poly_HArray1OfTriangle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Poly_HArray1OfTriangle::Handle_Poly_HArray1OfTriangle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Poly_HArray1OfTriangle; -class Handle_Poly_HArray1OfTriangle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Poly_HArray1OfTriangle(); - Handle_Poly_HArray1OfTriangle(const Handle_Poly_HArray1OfTriangle &aHandle); - Handle_Poly_HArray1OfTriangle(const Poly_HArray1OfTriangle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Poly_HArray1OfTriangle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Poly_HArray1OfTriangle { - Poly_HArray1OfTriangle* _get_reference() { - return (Poly_HArray1OfTriangle*)$self->Access(); - } -}; - -%extend Handle_Poly_HArray1OfTriangle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Poly_HArray1OfTriangle) %extend Poly_HArray1OfTriangle { %pythoncode { @@ -851,51 +809,7 @@ class Poly_Polygon2D : public MMgt_TShared { }; -%extend Poly_Polygon2D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Poly_Polygon2D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Poly_Polygon2D::Handle_Poly_Polygon2D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Poly_Polygon2D; -class Handle_Poly_Polygon2D : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Poly_Polygon2D(); - Handle_Poly_Polygon2D(const Handle_Poly_Polygon2D &aHandle); - Handle_Poly_Polygon2D(const Poly_Polygon2D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Poly_Polygon2D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Poly_Polygon2D { - Poly_Polygon2D* _get_reference() { - return (Poly_Polygon2D*)$self->Access(); - } -}; - -%extend Handle_Poly_Polygon2D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Poly_Polygon2D) %extend Poly_Polygon2D { %pythoncode { @@ -970,51 +884,7 @@ class Poly_Polygon3D : public MMgt_TShared { }; -%extend Poly_Polygon3D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Poly_Polygon3D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Poly_Polygon3D::Handle_Poly_Polygon3D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Poly_Polygon3D; -class Handle_Poly_Polygon3D : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Poly_Polygon3D(); - Handle_Poly_Polygon3D(const Handle_Poly_Polygon3D &aHandle); - Handle_Poly_Polygon3D(const Poly_Polygon3D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Poly_Polygon3D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Poly_Polygon3D { - Poly_Polygon3D* _get_reference() { - return (Poly_Polygon3D*)$self->Access(); - } -}; - -%extend Handle_Poly_Polygon3D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Poly_Polygon3D) %extend Poly_Polygon3D { %pythoncode { @@ -1083,51 +953,7 @@ class Poly_PolygonOnTriangulation : public MMgt_TShared { }; -%extend Poly_PolygonOnTriangulation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Poly_PolygonOnTriangulation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Poly_PolygonOnTriangulation::Handle_Poly_PolygonOnTriangulation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Poly_PolygonOnTriangulation; -class Handle_Poly_PolygonOnTriangulation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Poly_PolygonOnTriangulation(); - Handle_Poly_PolygonOnTriangulation(const Handle_Poly_PolygonOnTriangulation &aHandle); - Handle_Poly_PolygonOnTriangulation(const Poly_PolygonOnTriangulation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Poly_PolygonOnTriangulation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Poly_PolygonOnTriangulation { - Poly_PolygonOnTriangulation* _get_reference() { - return (Poly_PolygonOnTriangulation*)$self->Access(); - } -}; - -%extend Handle_Poly_PolygonOnTriangulation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Poly_PolygonOnTriangulation) %extend Poly_PolygonOnTriangulation { %pythoncode { @@ -1353,51 +1179,7 @@ class Poly_Triangulation : public MMgt_TShared { }; -%extend Poly_Triangulation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Poly_Triangulation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Poly_Triangulation::Handle_Poly_Triangulation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Poly_Triangulation; -class Handle_Poly_Triangulation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Poly_Triangulation(); - Handle_Poly_Triangulation(const Handle_Poly_Triangulation &aHandle); - Handle_Poly_Triangulation(const Poly_Triangulation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Poly_Triangulation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Poly_Triangulation { - Poly_Triangulation* _get_reference() { - return (Poly_Triangulation*)$self->Access(); - } -}; - -%extend Handle_Poly_Triangulation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Poly_Triangulation) %extend Poly_Triangulation { %pythoncode { diff --git a/src/SWIG_files/wrapper/Precision.i b/src/SWIG_files/wrapper/Precision.i index 6896e7332..8cba173a8 100644 --- a/src/SWIG_files/wrapper/Precision.i +++ b/src/SWIG_files/wrapper/Precision.i @@ -18,7 +18,79 @@ along with pythonOCC. If not, see . */ %define PRECISIONDOCSTRING -"No docstring provided." +"The Precision package offers a set of functions defining precision criteria +for use in conventional situations when comparing two numbers. +Generalities +It is not advisable to use floating number equality. Instead, the difference +between numbers must be compared with a given precision, i.e. : +Standard_Real x1, x2 ; +x1 = ... +x2 = ... +If ( x1 == x2 ) ... +should not be used and must be written as indicated below: +Standard_Real x1, x2 ; +Standard_Real Precision = ... +x1 = ... +x2 = ... +If ( Abs ( x1 - x2 ) < Precision ) ... +Likewise, when ordering floating numbers, you must take the following into account : +Standard_Real x1, x2 ; +Standard_Real Precision = ... +x1 = ... ! a large number +x2 = ... ! another large number +If ( x1 < x2 - Precision ) ... +is incorrect when x1 and x2 are large numbers ; it is better to write : +Standard_Real x1, x2 ; +Standard_Real Precision = ... +x1 = ... ! a large number +x2 = ... ! another large number +If ( x2 - x1 > Precision ) ... +Precision in Cas.Cade +Generally speaking, the precision criterion is not implicit in Cas.Cade. Low-level geometric algorithms accept +precision criteria as arguments. As a rule, they should not refer directly to the precision criteria provided by the +Precision package. +On the other hand, high-level modeling algorithms have to provide the low-level geometric algorithms that they +call, with a precision criteria. One way of doing this is to use the above precision criteria. +Alternatively, the high-level algorithms can have their own system for precision management. For example, the +Topology Data Structure stores precision criteria for each elementary shape (as a vertex, an edge or a face). When +a new topological object is constructed, the precision criteria are taken from those provided by the Precision +package, and stored in the related data structure. Later, a topological algorithm which analyses these objects will +work with the values stored in the data structure. Also, if this algorithm is to build a new topological object, from +these precision criteria, it will compute a new precision criterion for the new topological object, and write it into the +data structure of the new topological object. +The different precision criteria offered by the Precision package, cover the most common requirements of +geometric algorithms, such as intersections, approximations, and so on. +The choice of precision depends on the algorithm and on the geometric space. The geometric space may be : +- a 'real' 2D or 3D space, where the lengths are measured in meters, millimeters, microns, inches, etc ..., or +- a 'parametric' space, 1D on a curve or 2D on a surface, where lengths have no dimension. +The choice of precision criteria for real space depends on the choice of the product, as it is based on the accuracy +of the machine and the unit of measurement. +The choice of precision criteria for parametric space depends on both the accuracy of the machine and the +dimensions of the curve or the surface, since the parametric precision criterion and the real precision criterion are +linked : if the curve is defined by the equation P(t), the inequation : +Abs ( t2 - t1 ) < ParametricPrecision +means that the parameters t1 and t2 are considered to be equal, and the inequation : +Distance ( P(t2) , P(t1) ) < RealPrecision +means that the points P(t1) and P(t2) are considered to be coincident. It seems to be the same idea, and it +would be wonderful if these two inequations were equivalent. Note that this is rarely the case ! +What is provided in this package? +The Precision package provides : +- a set of real space precision criteria for the algorithms, in view of checking distances and angles, +- a set of parametric space precision criteria for the algorithms, in view of checking both : +- the equality of parameters in a parametric space, +- or the coincidence of points in the real space, by using parameter values, +- the notion of infinite value, composed of a value assumed to be infinite, and checking tests designed to verify +if any value could be considered as infinite. +All the provided functions are very simple. The returned values result from the adaptation of the applications +developed by the Open CASCADE company to Open CASCADE algorithms. The main interest of these functions +lies in that it incites engineers developing applications to ask questions on precision factors. Which one is to be +used in such or such case ? Tolerance criteria are context dependent. They must first choose : +- either to work in real space, +- or to work in parametric space, +- or to work in a combined real and parametric space. +They must next decide which precision factor will give the best answer to the current problem. Within an application +environment, it is crucial to master precision even though this process may take a great deal of time. +" %enddef %module (package="OCC.Core", docstring=PRECISIONDOCSTRING) Precision @@ -34,31 +106,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Precision_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(precision) Precision; class Precision { public: diff --git a/src/SWIG_files/wrapper/Primitives.i b/src/SWIG_files/wrapper/Primitives.i index aa52f64a0..e86afbc78 100644 --- a/src/SWIG_files/wrapper/Primitives.i +++ b/src/SWIG_files/wrapper/Primitives.i @@ -34,28 +34,15 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Primitives_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/ProjLib.i b/src/SWIG_files/wrapper/ProjLib.i index 0e12ce75f..d17c9a469 100644 --- a/src/SWIG_files/wrapper/ProjLib.i +++ b/src/SWIG_files/wrapper/ProjLib.i @@ -18,7 +18,45 @@ along with pythonOCC. If not, see . */ %define PROJLIBDOCSTRING -"No docstring provided." +" +The projLib package first provides projection of +curves on a plane along a given Direction. The +result will be a 3D curve. + + +The ProjLib package provides projection of curves +on surfaces to compute the curve in the parametric +space. + +It is assumed that the curve is on the surface. + +It provides : + +* Package methods to handle the easiest cases : + +- Line, Circle, Ellipse, Parabola, Hyperbola on plane. + +- Line, Circle on cylinder. + +- Line, Circle on cone. + +* Classes to handle the general cases : + +- Plane. + +- Cylinder. + +- Cone. + +- Sphere. + +- Torus. + + +* A generic class to handle a Curve from Adaptor3d +on a Surface from Adaptor3d. + +" %enddef %module (package="OCC.Core", docstring=PROJLIBDOCSTRING) ProjLib @@ -34,31 +72,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ProjLib_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ProjLib_HCompProjectedCurve) +%wrap_handle(ProjLib_HProjectedCurve) +%wrap_handle(ProjLib_HSequenceOfHSequenceOfPnt) +%wrap_handle(ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt) + %rename(projlib) ProjLib; class ProjLib { public: @@ -601,51 +630,7 @@ class ProjLib_HCompProjectedCurve : public Adaptor2d_HCurve2d { }; -%extend ProjLib_HCompProjectedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ProjLib_HCompProjectedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ProjLib_HCompProjectedCurve::Handle_ProjLib_HCompProjectedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ProjLib_HCompProjectedCurve; -class Handle_ProjLib_HCompProjectedCurve : public Handle_Adaptor2d_HCurve2d { - - public: - // constructors - Handle_ProjLib_HCompProjectedCurve(); - Handle_ProjLib_HCompProjectedCurve(const Handle_ProjLib_HCompProjectedCurve &aHandle); - Handle_ProjLib_HCompProjectedCurve(const ProjLib_HCompProjectedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ProjLib_HCompProjectedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ProjLib_HCompProjectedCurve { - ProjLib_HCompProjectedCurve* _get_reference() { - return (ProjLib_HCompProjectedCurve*)$self->Access(); - } -}; - -%extend Handle_ProjLib_HCompProjectedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ProjLib_HCompProjectedCurve) %extend ProjLib_HCompProjectedCurve { %pythoncode { @@ -682,51 +667,7 @@ class ProjLib_HProjectedCurve : public Adaptor2d_HCurve2d { }; -%extend ProjLib_HProjectedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ProjLib_HProjectedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ProjLib_HProjectedCurve::Handle_ProjLib_HProjectedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ProjLib_HProjectedCurve; -class Handle_ProjLib_HProjectedCurve : public Handle_Adaptor2d_HCurve2d { - - public: - // constructors - Handle_ProjLib_HProjectedCurve(); - Handle_ProjLib_HProjectedCurve(const Handle_ProjLib_HProjectedCurve &aHandle); - Handle_ProjLib_HProjectedCurve(const ProjLib_HProjectedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ProjLib_HProjectedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ProjLib_HProjectedCurve { - ProjLib_HProjectedCurve* _get_reference() { - return (ProjLib_HProjectedCurve*)$self->Access(); - } -}; - -%extend Handle_ProjLib_HProjectedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ProjLib_HProjectedCurve) %extend ProjLib_HProjectedCurve { %pythoncode { @@ -871,51 +812,7 @@ class ProjLib_HSequenceOfHSequenceOfPnt : public MMgt_TShared { }; -%extend ProjLib_HSequenceOfHSequenceOfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ProjLib_HSequenceOfHSequenceOfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ProjLib_HSequenceOfHSequenceOfPnt::Handle_ProjLib_HSequenceOfHSequenceOfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ProjLib_HSequenceOfHSequenceOfPnt; -class Handle_ProjLib_HSequenceOfHSequenceOfPnt : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ProjLib_HSequenceOfHSequenceOfPnt(); - Handle_ProjLib_HSequenceOfHSequenceOfPnt(const Handle_ProjLib_HSequenceOfHSequenceOfPnt &aHandle); - Handle_ProjLib_HSequenceOfHSequenceOfPnt(const ProjLib_HSequenceOfHSequenceOfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ProjLib_HSequenceOfHSequenceOfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ProjLib_HSequenceOfHSequenceOfPnt { - ProjLib_HSequenceOfHSequenceOfPnt* _get_reference() { - return (ProjLib_HSequenceOfHSequenceOfPnt*)$self->Access(); - } -}; - -%extend Handle_ProjLib_HSequenceOfHSequenceOfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ProjLib_HSequenceOfHSequenceOfPnt) %extend ProjLib_HSequenceOfHSequenceOfPnt { %pythoncode { @@ -1734,51 +1631,7 @@ class ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt : public TCollection_SeqNod }; -%extend ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt::Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt; -class Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt(); - Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt(const Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt &aHandle); - Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt(const ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt { - ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt* _get_reference() { - return (ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt*)$self->Access(); - } -}; - -%extend Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt) %extend ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt { %pythoncode { diff --git a/src/SWIG_files/wrapper/Prs3d.i b/src/SWIG_files/wrapper/Prs3d.i index b379f5295..3c23797d7 100644 --- a/src/SWIG_files/wrapper/Prs3d.i +++ b/src/SWIG_files/wrapper/Prs3d.i @@ -18,7 +18,20 @@ along with pythonOCC. If not, see . */ %define PRS3DDOCSTRING -"No docstring provided." +"The Prs3d package provides the following services +- a presentation object (the context for all +modifications to the display, its presentation will be +displayed in every view of an active viewer) +- an attribute manager governing how objects such +as color, width, and type of line are displayed; +these are generic objects, whereas those in +StdPrs are specific geometries and topologies. +- generic algorithms providing default settings for +objects such as points, curves, surfaces and shapes +- a root object which provides the abstract +framework for the DsgPrs definitions at work in +display of dimensions, relations and trihedra. +" %enddef %module (package="OCC.Core", docstring=PRS3DDOCSTRING) Prs3d @@ -34,25 +47,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Prs3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_List Prs3d_NListOfSequenceOfPnt; typedef Prs3d_NListOfSequenceOfPnt::Iterator Prs3d_NListIteratorOfListOfSequenceOfPnt; @@ -97,6 +96,21 @@ enum Prs3d_DimensionArrowOrientation { /* end public enums declaration */ +%wrap_handle(Prs3d_BasicAspect) +%wrap_handle(Prs3d_Drawer) +%wrap_handle(Prs3d_PlaneSet) +%wrap_handle(Prs3d_Presentation) +%wrap_handle(Prs3d_Projector) +%wrap_handle(Prs3d_ArrowAspect) +%wrap_handle(Prs3d_DatumAspect) +%wrap_handle(Prs3d_DimensionAspect) +%wrap_handle(Prs3d_LineAspect) +%wrap_handle(Prs3d_PlaneAspect) +%wrap_handle(Prs3d_PointAspect) +%wrap_handle(Prs3d_ShadingAspect) +%wrap_handle(Prs3d_TextAspect) +%wrap_handle(Prs3d_IsoAspect) + %rename(prs3d) Prs3d; class Prs3d { public: @@ -144,51 +158,7 @@ class Prs3d_BasicAspect : public MMgt_TShared { }; -%extend Prs3d_BasicAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_BasicAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_BasicAspect::Handle_Prs3d_BasicAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_BasicAspect; -class Handle_Prs3d_BasicAspect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Prs3d_BasicAspect(); - Handle_Prs3d_BasicAspect(const Handle_Prs3d_BasicAspect &aHandle); - Handle_Prs3d_BasicAspect(const Prs3d_BasicAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_BasicAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_BasicAspect { - Prs3d_BasicAspect* _get_reference() { - return (Prs3d_BasicAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_BasicAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_BasicAspect) %extend Prs3d_BasicAspect { %pythoncode { @@ -1154,51 +1124,7 @@ class Prs3d_Drawer : public MMgt_TShared { }; -%extend Prs3d_Drawer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_Drawer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_Drawer::Handle_Prs3d_Drawer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_Drawer; -class Handle_Prs3d_Drawer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Prs3d_Drawer(); - Handle_Prs3d_Drawer(const Handle_Prs3d_Drawer &aHandle); - Handle_Prs3d_Drawer(const Prs3d_Drawer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_Drawer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_Drawer { - Prs3d_Drawer* _get_reference() { - return (Prs3d_Drawer*)$self->Access(); - } -}; - -%extend Handle_Prs3d_Drawer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_Drawer) %extend Prs3d_Drawer { %pythoncode { @@ -1283,51 +1209,7 @@ class Prs3d_PlaneSet : public MMgt_TShared { }; -%extend Prs3d_PlaneSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_PlaneSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_PlaneSet::Handle_Prs3d_PlaneSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_PlaneSet; -class Handle_Prs3d_PlaneSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Prs3d_PlaneSet(); - Handle_Prs3d_PlaneSet(const Handle_Prs3d_PlaneSet &aHandle); - Handle_Prs3d_PlaneSet(const Prs3d_PlaneSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_PlaneSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_PlaneSet { - Prs3d_PlaneSet* _get_reference() { - return (Prs3d_PlaneSet*)$self->Access(); - } -}; - -%extend Handle_Prs3d_PlaneSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_PlaneSet) %extend Prs3d_PlaneSet { %pythoncode { @@ -1456,51 +1338,7 @@ class Prs3d_Presentation : public Graphic3d_Structure { }; -%extend Prs3d_Presentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_Presentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_Presentation::Handle_Prs3d_Presentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_Presentation; -class Handle_Prs3d_Presentation : public Handle_Graphic3d_Structure { - - public: - // constructors - Handle_Prs3d_Presentation(); - Handle_Prs3d_Presentation(const Handle_Prs3d_Presentation &aHandle); - Handle_Prs3d_Presentation(const Prs3d_Presentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_Presentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_Presentation { - Prs3d_Presentation* _get_reference() { - return (Prs3d_Presentation*)$self->Access(); - } -}; - -%extend Handle_Prs3d_Presentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_Presentation) %extend Prs3d_Presentation { %pythoncode { @@ -1553,51 +1391,7 @@ class Prs3d_Projector : public MMgt_TShared { }; -%extend Prs3d_Projector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_Projector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_Projector::Handle_Prs3d_Projector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_Projector; -class Handle_Prs3d_Projector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Prs3d_Projector(); - Handle_Prs3d_Projector(const Handle_Prs3d_Projector &aHandle); - Handle_Prs3d_Projector(const Prs3d_Projector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_Projector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_Projector { - Prs3d_Projector* _get_reference() { - return (Prs3d_Projector*)$self->Access(); - } -}; - -%extend Handle_Prs3d_Projector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_Projector) %extend Prs3d_Projector { %pythoncode { @@ -1869,51 +1663,7 @@ class Prs3d_ArrowAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_ArrowAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_ArrowAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_ArrowAspect::Handle_Prs3d_ArrowAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_ArrowAspect; -class Handle_Prs3d_ArrowAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_ArrowAspect(); - Handle_Prs3d_ArrowAspect(const Handle_Prs3d_ArrowAspect &aHandle); - Handle_Prs3d_ArrowAspect(const Prs3d_ArrowAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_ArrowAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_ArrowAspect { - Prs3d_ArrowAspect* _get_reference() { - return (Prs3d_ArrowAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_ArrowAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_ArrowAspect) %extend Prs3d_ArrowAspect { %pythoncode { @@ -2008,51 +1758,7 @@ class Prs3d_DatumAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_DatumAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_DatumAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_DatumAspect::Handle_Prs3d_DatumAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_DatumAspect; -class Handle_Prs3d_DatumAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_DatumAspect(); - Handle_Prs3d_DatumAspect(const Handle_Prs3d_DatumAspect &aHandle); - Handle_Prs3d_DatumAspect(const Prs3d_DatumAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_DatumAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_DatumAspect { - Prs3d_DatumAspect* _get_reference() { - return (Prs3d_DatumAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_DatumAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_DatumAspect) %extend Prs3d_DatumAspect { %pythoncode { @@ -2261,51 +1967,7 @@ class Prs3d_DimensionAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_DimensionAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_DimensionAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_DimensionAspect::Handle_Prs3d_DimensionAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_DimensionAspect; -class Handle_Prs3d_DimensionAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_DimensionAspect(); - Handle_Prs3d_DimensionAspect(const Handle_Prs3d_DimensionAspect &aHandle); - Handle_Prs3d_DimensionAspect(const Prs3d_DimensionAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_DimensionAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_DimensionAspect { - Prs3d_DimensionAspect* _get_reference() { - return (Prs3d_DimensionAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_DimensionAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_DimensionAspect) %extend Prs3d_DimensionAspect { %pythoncode { @@ -2388,51 +2050,7 @@ class Prs3d_LineAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_LineAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_LineAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_LineAspect::Handle_Prs3d_LineAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_LineAspect; -class Handle_Prs3d_LineAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_LineAspect(); - Handle_Prs3d_LineAspect(const Handle_Prs3d_LineAspect &aHandle); - Handle_Prs3d_LineAspect(const Prs3d_LineAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_LineAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_LineAspect { - Prs3d_LineAspect* _get_reference() { - return (Prs3d_LineAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_LineAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_LineAspect) %extend Prs3d_LineAspect { %pythoncode { @@ -2595,51 +2213,7 @@ class Prs3d_PlaneAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_PlaneAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_PlaneAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_PlaneAspect::Handle_Prs3d_PlaneAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_PlaneAspect; -class Handle_Prs3d_PlaneAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_PlaneAspect(); - Handle_Prs3d_PlaneAspect(const Handle_Prs3d_PlaneAspect &aHandle); - Handle_Prs3d_PlaneAspect(const Prs3d_PlaneAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_PlaneAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_PlaneAspect { - Prs3d_PlaneAspect* _get_reference() { - return (Prs3d_PlaneAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_PlaneAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_PlaneAspect) %extend Prs3d_PlaneAspect { %pythoncode { @@ -2748,124 +2322,13 @@ class Prs3d_PointAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_PointAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_PointAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_PointAspect::Handle_Prs3d_PointAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_PointAspect; -class Handle_Prs3d_PointAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_PointAspect(); - Handle_Prs3d_PointAspect(const Handle_Prs3d_PointAspect &aHandle); - Handle_Prs3d_PointAspect(const Prs3d_PointAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_PointAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_PointAspect { - Prs3d_PointAspect* _get_reference() { - return (Prs3d_PointAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_PointAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_PointAspect) %extend Prs3d_PointAspect { %pythoncode { __repr__ = _dumps_object } }; -%nodefaultctor Prs3d_PresentationShadow; -class Prs3d_PresentationShadow : public Prs3d_Presentation { - public: - %feature("compactdefaultargs") Prs3d_PresentationShadow; - %feature("autodoc", " * Constructs a shadow of existing presentation object. - - :param theViewer: - :type theViewer: Handle_Graphic3d_StructureManager & - :param thePrs: - :type thePrs: Handle_Prs3d_Presentation & - :rtype: None -") Prs3d_PresentationShadow; - Prs3d_PresentationShadow (const Handle_Graphic3d_StructureManager & theViewer,const Handle_Prs3d_Presentation & thePrs); -}; - - -%extend Prs3d_PresentationShadow { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_PresentationShadow(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_PresentationShadow::Handle_Prs3d_PresentationShadow %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_PresentationShadow; -class Handle_Prs3d_PresentationShadow : public Handle_Prs3d_Presentation { - - public: - // constructors - Handle_Prs3d_PresentationShadow(); - Handle_Prs3d_PresentationShadow(const Handle_Prs3d_PresentationShadow &aHandle); - Handle_Prs3d_PresentationShadow(const Prs3d_PresentationShadow *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_PresentationShadow DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_PresentationShadow { - Prs3d_PresentationShadow* _get_reference() { - return (Prs3d_PresentationShadow*)$self->Access(); - } -}; - -%extend Handle_Prs3d_PresentationShadow { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend Prs3d_PresentationShadow { - %pythoncode { - __repr__ = _dumps_object - } -}; %nodefaultctor Prs3d_ShadingAspect; class Prs3d_ShadingAspect : public Prs3d_BasicAspect { public: @@ -2968,51 +2431,7 @@ class Prs3d_ShadingAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_ShadingAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_ShadingAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_ShadingAspect::Handle_Prs3d_ShadingAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_ShadingAspect; -class Handle_Prs3d_ShadingAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_ShadingAspect(); - Handle_Prs3d_ShadingAspect(const Handle_Prs3d_ShadingAspect &aHandle); - Handle_Prs3d_ShadingAspect(const Prs3d_ShadingAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_ShadingAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_ShadingAspect { - Prs3d_ShadingAspect* _get_reference() { - return (Prs3d_ShadingAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_ShadingAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_ShadingAspect) %extend Prs3d_ShadingAspect { %pythoncode { @@ -3195,51 +2614,7 @@ class Prs3d_TextAspect : public Prs3d_BasicAspect { }; -%extend Prs3d_TextAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_TextAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_TextAspect::Handle_Prs3d_TextAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_TextAspect; -class Handle_Prs3d_TextAspect : public Handle_Prs3d_BasicAspect { - - public: - // constructors - Handle_Prs3d_TextAspect(); - Handle_Prs3d_TextAspect(const Handle_Prs3d_TextAspect &aHandle); - Handle_Prs3d_TextAspect(const Prs3d_TextAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_TextAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_TextAspect { - Prs3d_TextAspect* _get_reference() { - return (Prs3d_TextAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_TextAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_TextAspect) %extend Prs3d_TextAspect { %pythoncode { @@ -3292,51 +2667,7 @@ class Prs3d_IsoAspect : public Prs3d_LineAspect { }; -%extend Prs3d_IsoAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Prs3d_IsoAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Prs3d_IsoAspect::Handle_Prs3d_IsoAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Prs3d_IsoAspect; -class Handle_Prs3d_IsoAspect : public Handle_Prs3d_LineAspect { - - public: - // constructors - Handle_Prs3d_IsoAspect(); - Handle_Prs3d_IsoAspect(const Handle_Prs3d_IsoAspect &aHandle); - Handle_Prs3d_IsoAspect(const Prs3d_IsoAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Prs3d_IsoAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Prs3d_IsoAspect { - Prs3d_IsoAspect* _get_reference() { - return (Prs3d_IsoAspect*)$self->Access(); - } -}; - -%extend Handle_Prs3d_IsoAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Prs3d_IsoAspect) %extend Prs3d_IsoAspect { %pythoncode { diff --git a/src/SWIG_files/wrapper/PrsMgr.i b/src/SWIG_files/wrapper/PrsMgr.i index ee983c437..77284a823 100644 --- a/src/SWIG_files/wrapper/PrsMgr.i +++ b/src/SWIG_files/wrapper/PrsMgr.i @@ -18,7 +18,19 @@ along with pythonOCC. If not, see . */ %define PRSMGRDOCSTRING -"No docstring provided." +"and is only to be used when you do not want to use +the services provided by AIS. +PrsMgr manages display through the following services: +- supplying a graphic structure for the object to be presented +- recalculating presentations when required, e.g. by +moving the object or changing its color +- defining the display mode of the object to be +presented; in the case of AIS_Shape, for example, +this determines whether the object is to be displayed in: +- wireframe 0 +- shading 1. +Note that each new Interactive Object must have all its display modes defined. +" %enddef %module (package="OCC.Core", docstring=PRSMGRDOCSTRING) PrsMgr @@ -34,25 +46,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include PrsMgr_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Handle_PrsMgr_PresentationManager Handle_PrsMgr_PresentationManager3d; typedef PrsMgr_Presentation PrsMgr_Presentation3d; @@ -71,6 +69,12 @@ enum PrsMgr_TypeOfPresentation3d { /* end public enums declaration */ +%wrap_handle(PrsMgr_PresentableObject) +%wrap_handle(PrsMgr_Presentation) +%wrap_handle(PrsMgr_PresentationManager) +%wrap_handle(PrsMgr_Prs) +%wrap_handle(PrsMgr_SequenceNodeOfPresentations) + %nodefaultctor PrsMgr_ModedPresentation; class PrsMgr_ModedPresentation { public: @@ -311,51 +315,7 @@ class PrsMgr_PresentableObject : public MMgt_TShared { }; -%extend PrsMgr_PresentableObject { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PrsMgr_PresentableObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PrsMgr_PresentableObject::Handle_PrsMgr_PresentableObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PrsMgr_PresentableObject; -class Handle_PrsMgr_PresentableObject : public Handle_MMgt_TShared { - - public: - // constructors - Handle_PrsMgr_PresentableObject(); - Handle_PrsMgr_PresentableObject(const Handle_PrsMgr_PresentableObject &aHandle); - Handle_PrsMgr_PresentableObject(const PrsMgr_PresentableObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PrsMgr_PresentableObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PrsMgr_PresentableObject { - PrsMgr_PresentableObject* _get_reference() { - return (PrsMgr_PresentableObject*)$self->Access(); - } -}; - -%extend Handle_PrsMgr_PresentableObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PrsMgr_PresentableObject) %extend PrsMgr_PresentableObject { %pythoncode { @@ -394,51 +354,7 @@ class PrsMgr_Presentation : public MMgt_TShared { }; -%extend PrsMgr_Presentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PrsMgr_Presentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PrsMgr_Presentation::Handle_PrsMgr_Presentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PrsMgr_Presentation; -class Handle_PrsMgr_Presentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_PrsMgr_Presentation(); - Handle_PrsMgr_Presentation(const Handle_PrsMgr_Presentation &aHandle); - Handle_PrsMgr_Presentation(const PrsMgr_Presentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PrsMgr_Presentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PrsMgr_Presentation { - PrsMgr_Presentation* _get_reference() { - return (PrsMgr_Presentation*)$self->Access(); - } -}; - -%extend Handle_PrsMgr_Presentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PrsMgr_Presentation) %extend PrsMgr_Presentation { %pythoncode { @@ -727,51 +643,7 @@ class PrsMgr_PresentationManager : public MMgt_TShared { }; -%extend PrsMgr_PresentationManager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PrsMgr_PresentationManager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PrsMgr_PresentationManager::Handle_PrsMgr_PresentationManager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PrsMgr_PresentationManager; -class Handle_PrsMgr_PresentationManager : public Handle_MMgt_TShared { - - public: - // constructors - Handle_PrsMgr_PresentationManager(); - Handle_PrsMgr_PresentationManager(const Handle_PrsMgr_PresentationManager &aHandle); - Handle_PrsMgr_PresentationManager(const PrsMgr_PresentationManager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PrsMgr_PresentationManager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PrsMgr_PresentationManager { - PrsMgr_PresentationManager* _get_reference() { - return (PrsMgr_PresentationManager*)$self->Access(); - } -}; - -%extend Handle_PrsMgr_PresentationManager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PrsMgr_PresentationManager) %extend PrsMgr_PresentationManager { %pythoncode { @@ -979,51 +851,7 @@ class PrsMgr_Prs : public Prs3d_Presentation { }; -%extend PrsMgr_Prs { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PrsMgr_Prs(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PrsMgr_Prs::Handle_PrsMgr_Prs %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PrsMgr_Prs; -class Handle_PrsMgr_Prs : public Handle_Prs3d_Presentation { - - public: - // constructors - Handle_PrsMgr_Prs(); - Handle_PrsMgr_Prs(const Handle_PrsMgr_Prs &aHandle); - Handle_PrsMgr_Prs(const PrsMgr_Prs *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PrsMgr_Prs DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PrsMgr_Prs { - PrsMgr_Prs* _get_reference() { - return (PrsMgr_Prs*)$self->Access(); - } -}; - -%extend Handle_PrsMgr_Prs { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PrsMgr_Prs) %extend PrsMgr_Prs { %pythoncode { @@ -1050,51 +878,7 @@ class PrsMgr_SequenceNodeOfPresentations : public TCollection_SeqNode { }; -%extend PrsMgr_SequenceNodeOfPresentations { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_PrsMgr_SequenceNodeOfPresentations(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_PrsMgr_SequenceNodeOfPresentations::Handle_PrsMgr_SequenceNodeOfPresentations %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_PrsMgr_SequenceNodeOfPresentations; -class Handle_PrsMgr_SequenceNodeOfPresentations : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_PrsMgr_SequenceNodeOfPresentations(); - Handle_PrsMgr_SequenceNodeOfPresentations(const Handle_PrsMgr_SequenceNodeOfPresentations &aHandle); - Handle_PrsMgr_SequenceNodeOfPresentations(const PrsMgr_SequenceNodeOfPresentations *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_PrsMgr_SequenceNodeOfPresentations DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_PrsMgr_SequenceNodeOfPresentations { - PrsMgr_SequenceNodeOfPresentations* _get_reference() { - return (PrsMgr_SequenceNodeOfPresentations*)$self->Access(); - } -}; - -%extend Handle_PrsMgr_SequenceNodeOfPresentations { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(PrsMgr_SequenceNodeOfPresentations) %extend PrsMgr_SequenceNodeOfPresentations { %pythoncode { diff --git a/src/SWIG_files/wrapper/Quantity.i b/src/SWIG_files/wrapper/Quantity.i index 68b2009a9..9c0a0edcf 100644 --- a/src/SWIG_files/wrapper/Quantity.i +++ b/src/SWIG_files/wrapper/Quantity.i @@ -18,7 +18,36 @@ along with pythonOCC. If not, see . */ %define QUANTITYDOCSTRING -"No docstring provided." +"The Quantities component deals with +mathematical and physical quantities. +A mathematical quantity is characterized by its value. It is a real value. +A physical quantity is characterized by: +- its value, which is also a real value, and +- the unit in which it is expressed. This unit may +be either an international unit complying with +the International Unit System (SI) or a user +defined unit. The unit is managed by the +physical quantity user. +Each mathematical or physical quantity is +described by its name. This ensures distinction +between two different quantities. +Moreover, both physical and mathematical +quantities are also manipulated as real values: +- They are defined as aliases of reals, so all +functions provided by the Standard_Real +class are available on each quantity. +- You may also mix several physical quantities +in a mathematical or physical formula involving real values. +Associated with the physical quantities, a range +of functions provides tools to manage unit conversions. +The physical quantities described in this chapter +are commonly used basic physical quantities. +Nevertheless, the Quantity package includes all +physical quantities you may require. +The Quantities component also provides +resources to manage time information (dates and +periods) and color definition. +" %enddef %module (package="OCC.Core", docstring=QUANTITYDOCSTRING) Quantity @@ -34,25 +63,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Quantity_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Real Quantity_Resistivity; typedef Standard_Real Quantity_Area; @@ -734,6 +749,8 @@ enum Quantity_PhysicalQuantity { /* end public enums declaration */ +%wrap_handle(Quantity_HArray1OfColor) + %nodefaultctor Quantity_Array1OfCoefficient; class Quantity_Array1OfCoefficient { public: @@ -1766,51 +1783,7 @@ class Quantity_HArray1OfColor : public MMgt_TShared { }; -%extend Quantity_HArray1OfColor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Quantity_HArray1OfColor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Quantity_HArray1OfColor::Handle_Quantity_HArray1OfColor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Quantity_HArray1OfColor; -class Handle_Quantity_HArray1OfColor : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Quantity_HArray1OfColor(); - Handle_Quantity_HArray1OfColor(const Handle_Quantity_HArray1OfColor &aHandle); - Handle_Quantity_HArray1OfColor(const Quantity_HArray1OfColor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Quantity_HArray1OfColor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Quantity_HArray1OfColor { - Quantity_HArray1OfColor* _get_reference() { - return (Quantity_HArray1OfColor*)$self->Access(); - } -}; - -%extend Handle_Quantity_HArray1OfColor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Quantity_HArray1OfColor) %extend Quantity_HArray1OfColor { %pythoncode { diff --git a/src/SWIG_files/wrapper/RWStepAP203.i b/src/SWIG_files/wrapper/RWStepAP203.i index 900128eb7..d08370cfa 100644 --- a/src/SWIG_files/wrapper/RWStepAP203.i +++ b/src/SWIG_files/wrapper/RWStepAP203.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define RWSTEPAP203DOCSTRING -"No docstring provided." +"Reading & Writing tools for classes from StepAP203 +" %enddef %module (package="OCC.Core", docstring=RWSTEPAP203DOCSTRING) RWStepAP203 @@ -34,31 +35,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepAP203_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepAP203_RWCcDesignApproval; class RWStepAP203_RWCcDesignApproval { public: diff --git a/src/SWIG_files/wrapper/RWStepAP203_headers.i b/src/SWIG_files/wrapper/RWStepAP203_headers.i index b9d2238ad..e4fc53e1a 100644 --- a/src/SWIG_files/wrapper/RWStepAP203_headers.i +++ b/src/SWIG_files/wrapper/RWStepAP203_headers.i @@ -403,6 +403,74 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepAP214.i b/src/SWIG_files/wrapper/RWStepAP214.i index fcea328ff..4b15b5b03 100644 --- a/src/SWIG_files/wrapper/RWStepAP214.i +++ b/src/SWIG_files/wrapper/RWStepAP214.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPAP214DOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPAP214DOCSTRING) RWStepAP214 @@ -34,31 +34,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepAP214_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(RWStepAP214_GeneralModule) +%wrap_handle(RWStepAP214_ReadWriteModule) + %rename(rwstepap214) RWStepAP214; class RWStepAP214 { public: @@ -158,51 +147,7 @@ class RWStepAP214_GeneralModule : public StepData_GeneralModule { }; -%extend RWStepAP214_GeneralModule { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_RWStepAP214_GeneralModule(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_RWStepAP214_GeneralModule::Handle_RWStepAP214_GeneralModule %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_RWStepAP214_GeneralModule; -class Handle_RWStepAP214_GeneralModule : public Handle_StepData_GeneralModule { - - public: - // constructors - Handle_RWStepAP214_GeneralModule(); - Handle_RWStepAP214_GeneralModule(const Handle_RWStepAP214_GeneralModule &aHandle); - Handle_RWStepAP214_GeneralModule(const RWStepAP214_GeneralModule *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_RWStepAP214_GeneralModule DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_RWStepAP214_GeneralModule { - RWStepAP214_GeneralModule* _get_reference() { - return (RWStepAP214_GeneralModule*)$self->Access(); - } -}; - -%extend Handle_RWStepAP214_GeneralModule { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(RWStepAP214_GeneralModule) %extend RWStepAP214_GeneralModule { %pythoncode { @@ -1449,51 +1394,7 @@ class RWStepAP214_ReadWriteModule : public StepData_ReadWriteModule { }; -%extend RWStepAP214_ReadWriteModule { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_RWStepAP214_ReadWriteModule(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_RWStepAP214_ReadWriteModule::Handle_RWStepAP214_ReadWriteModule %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_RWStepAP214_ReadWriteModule; -class Handle_RWStepAP214_ReadWriteModule : public Handle_StepData_ReadWriteModule { - - public: - // constructors - Handle_RWStepAP214_ReadWriteModule(); - Handle_RWStepAP214_ReadWriteModule(const Handle_RWStepAP214_ReadWriteModule &aHandle); - Handle_RWStepAP214_ReadWriteModule(const RWStepAP214_ReadWriteModule *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_RWStepAP214_ReadWriteModule DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_RWStepAP214_ReadWriteModule { - RWStepAP214_ReadWriteModule* _get_reference() { - return (RWStepAP214_ReadWriteModule*)$self->Access(); - } -}; - -%extend Handle_RWStepAP214_ReadWriteModule { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(RWStepAP214_ReadWriteModule) %extend RWStepAP214_ReadWriteModule { %pythoncode { diff --git a/src/SWIG_files/wrapper/RWStepBasic.i b/src/SWIG_files/wrapper/RWStepBasic.i index 0816ea370..9da2c331d 100644 --- a/src/SWIG_files/wrapper/RWStepBasic.i +++ b/src/SWIG_files/wrapper/RWStepBasic.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPBASICDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPBASICDOCSTRING) RWStepBasic @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepBasic_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepBasic_RWAction; class RWStepBasic_RWAction { public: diff --git a/src/SWIG_files/wrapper/RWStepBasic_headers.i b/src/SWIG_files/wrapper/RWStepBasic_headers.i index 498e3b8e4..e8c24b081 100644 --- a/src/SWIG_files/wrapper/RWStepBasic_headers.i +++ b/src/SWIG_files/wrapper/RWStepBasic_headers.i @@ -706,6 +706,28 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepDimTol.i b/src/SWIG_files/wrapper/RWStepDimTol.i index 82b4d38cb..03b2d1ac5 100644 --- a/src/SWIG_files/wrapper/RWStepDimTol.i +++ b/src/SWIG_files/wrapper/RWStepDimTol.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define RWSTEPDIMTOLDOCSTRING -"No docstring provided." +"Packsge contains tools for parsing and formatting GD&T entities. +" %enddef %module (package="OCC.Core", docstring=RWSTEPDIMTOLDOCSTRING) RWStepDimTol @@ -34,31 +35,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepDimTol_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepDimTol_RWAngularityTolerance; class RWStepDimTol_RWAngularityTolerance { public: diff --git a/src/SWIG_files/wrapper/RWStepDimTol_headers.i b/src/SWIG_files/wrapper/RWStepDimTol_headers.i index 89483216f..e1552754d 100644 --- a/src/SWIG_files/wrapper/RWStepDimTol_headers.i +++ b/src/SWIG_files/wrapper/RWStepDimTol_headers.i @@ -222,6 +222,496 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepElement.i b/src/SWIG_files/wrapper/RWStepElement.i index d68ce8282..ef861508e 100644 --- a/src/SWIG_files/wrapper/RWStepElement.i +++ b/src/SWIG_files/wrapper/RWStepElement.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPELEMENTDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPELEMENTDOCSTRING) RWStepElement @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepElement_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepElement_RWAnalysisItemWithinRepresentation; class RWStepElement_RWAnalysisItemWithinRepresentation { public: diff --git a/src/SWIG_files/wrapper/RWStepElement_headers.i b/src/SWIG_files/wrapper/RWStepElement_headers.i index 8c23cff5e..ce305c32c 100644 --- a/src/SWIG_files/wrapper/RWStepElement_headers.i +++ b/src/SWIG_files/wrapper/RWStepElement_headers.i @@ -252,6 +252,259 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepFEA.i b/src/SWIG_files/wrapper/RWStepFEA.i index 5ab2236e1..1ced0da8f 100644 --- a/src/SWIG_files/wrapper/RWStepFEA.i +++ b/src/SWIG_files/wrapper/RWStepFEA.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPFEADOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPFEADOCSTRING) RWStepFEA @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepFEA_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepFEA_RWAlignedCurve3dElementCoordinateSystem; class RWStepFEA_RWAlignedCurve3dElementCoordinateSystem { public: diff --git a/src/SWIG_files/wrapper/RWStepFEA_headers.i b/src/SWIG_files/wrapper/RWStepFEA_headers.i index 52747e2a8..4fb1a38bb 100644 --- a/src/SWIG_files/wrapper/RWStepFEA_headers.i +++ b/src/SWIG_files/wrapper/RWStepFEA_headers.i @@ -309,6 +309,444 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepGeom.i b/src/SWIG_files/wrapper/RWStepGeom.i index f3ab6c4c6..2c71843c1 100644 --- a/src/SWIG_files/wrapper/RWStepGeom.i +++ b/src/SWIG_files/wrapper/RWStepGeom.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPGEOMDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPGEOMDOCSTRING) RWStepGeom @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepGeom_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepGeom_RWAxis1Placement; class RWStepGeom_RWAxis1Placement { public: diff --git a/src/SWIG_files/wrapper/RWStepGeom_headers.i b/src/SWIG_files/wrapper/RWStepGeom_headers.i index 5801e32a6..e36ff7201 100644 --- a/src/SWIG_files/wrapper/RWStepGeom_headers.i +++ b/src/SWIG_files/wrapper/RWStepGeom_headers.i @@ -607,6 +607,96 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepRepr.i b/src/SWIG_files/wrapper/RWStepRepr.i index 99bd0d7a5..e05dabe0d 100644 --- a/src/SWIG_files/wrapper/RWStepRepr.i +++ b/src/SWIG_files/wrapper/RWStepRepr.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPREPRDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPREPRDOCSTRING) RWStepRepr @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepRepr_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepRepr_RWAssemblyComponentUsage; class RWStepRepr_RWAssemblyComponentUsage { public: diff --git a/src/SWIG_files/wrapper/RWStepRepr_headers.i b/src/SWIG_files/wrapper/RWStepRepr_headers.i index 85d3dbc4d..5ad14a07e 100644 --- a/src/SWIG_files/wrapper/RWStepRepr_headers.i +++ b/src/SWIG_files/wrapper/RWStepRepr_headers.i @@ -523,6 +523,28 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepShape.i b/src/SWIG_files/wrapper/RWStepShape.i index 64c86b424..7fbd28eea 100644 --- a/src/SWIG_files/wrapper/RWStepShape.i +++ b/src/SWIG_files/wrapper/RWStepShape.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPSHAPEDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPSHAPEDOCSTRING) RWStepShape @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepShape_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepShape_RWAdvancedBrepShapeRepresentation; class RWStepShape_RWAdvancedBrepShapeRepresentation { public: diff --git a/src/SWIG_files/wrapper/RWStepShape_headers.i b/src/SWIG_files/wrapper/RWStepShape_headers.i index ffcd54127..dd52ea717 100644 --- a/src/SWIG_files/wrapper/RWStepShape_headers.i +++ b/src/SWIG_files/wrapper/RWStepShape_headers.i @@ -624,6 +624,210 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStepVisual.i b/src/SWIG_files/wrapper/RWStepVisual.i index 134cf5413..bf22bc72e 100644 --- a/src/SWIG_files/wrapper/RWStepVisual.i +++ b/src/SWIG_files/wrapper/RWStepVisual.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define RWSTEPVISUALDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=RWSTEPVISUALDOCSTRING) RWStepVisual @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStepVisual_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor RWStepVisual_RWAreaInSet; class RWStepVisual_RWAreaInSet { public: diff --git a/src/SWIG_files/wrapper/RWStepVisual_headers.i b/src/SWIG_files/wrapper/RWStepVisual_headers.i index 0c3d7e7d7..5035c4b49 100644 --- a/src/SWIG_files/wrapper/RWStepVisual_headers.i +++ b/src/SWIG_files/wrapper/RWStepVisual_headers.i @@ -336,6 +336,373 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/RWStl.i b/src/SWIG_files/wrapper/RWStl.i index 879675ab2..dbe2a9e9d 100644 --- a/src/SWIG_files/wrapper/RWStl.i +++ b/src/SWIG_files/wrapper/RWStl.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define RWSTLDOCSTRING -"No docstring provided." +"This package contains the methods to be used in +the Stereo Lithograpy Application. The main +features of this application are ,starting from a +Shape : +- mesh this shape with a maximun tolerance, +- display the meshing, +- write the meshing in a file (binary or ascii), +- read of file (binary or ascii) and display it, +- translate a binary file to an ascii file, +- translate an ascii file to an binary file. +" %enddef %module (package="OCC.Core", docstring=RWSTLDOCSTRING) RWStl @@ -34,31 +44,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include RWStl_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(rwstl) RWStl; class RWStl { public: diff --git a/src/SWIG_files/wrapper/Resource.i b/src/SWIG_files/wrapper/Resource.i index 0372d7c39..189dd7440 100644 --- a/src/SWIG_files/wrapper/Resource.i +++ b/src/SWIG_files/wrapper/Resource.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define RESOURCEDOCSTRING -"No docstring provided." +"A RESOURCE is a parameter saved on a file and used to +initialize a variable. +" %enddef %module (package="OCC.Core", docstring=RESOURCEDOCSTRING) Resource @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Resource_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -66,6 +54,10 @@ enum Resource_FormatType { /* end public enums declaration */ +%wrap_handle(Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString) +%wrap_handle(Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString) +%wrap_handle(Resource_Manager) + %nodefaultctor Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString; class Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString : public TCollection_BasicMapIterator { public: @@ -160,51 +152,7 @@ class Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString : public TCollection }; -%extend Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString::Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString; -class Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString(); - Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString(const Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString &aHandle); - Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString(const Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString { - Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString* _get_reference() { - return (Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString*)$self->Access(); - } -}; - -%extend Handle_Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString) %extend Resource_DataMapNodeOfDataMapOfAsciiStringAsciiString { %pythoncode { @@ -235,51 +183,7 @@ class Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString : public TCollect }; -%extend Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString::Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString; -class Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString(); - Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString(const Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString &aHandle); - Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString(const Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString { - Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString* _get_reference() { - return (Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString*)$self->Access(); - } -}; - -%extend Handle_Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString) %extend Resource_DataMapNodeOfDataMapOfAsciiStringExtendedString { %pythoncode { @@ -603,51 +507,7 @@ class Resource_Manager : public MMgt_TShared { }; -%extend Resource_Manager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Resource_Manager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Resource_Manager::Handle_Resource_Manager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Resource_Manager; -class Handle_Resource_Manager : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Resource_Manager(); - Handle_Resource_Manager(const Handle_Resource_Manager &aHandle); - Handle_Resource_Manager(const Resource_Manager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Resource_Manager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Resource_Manager { - Resource_Manager* _get_reference() { - return (Resource_Manager*)$self->Access(); - } -}; - -%extend Handle_Resource_Manager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Resource_Manager) %extend Resource_Manager { %pythoncode { diff --git a/src/SWIG_files/wrapper/SMDS.i b/src/SWIG_files/wrapper/SMDS.i index 8d17bac35..8c05ac858 100644 --- a/src/SWIG_files/wrapper/SMDS.i +++ b/src/SWIG_files/wrapper/SMDS.i @@ -34,6 +34,7 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include @@ -47,21 +48,6 @@ along with pythonOCC. If not, see . %include SMDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef SMDS_Iterator SMDS_FaceIterator; typedef boost::shared_ptr SMDS_PositionPtr; @@ -90,6 +76,7 @@ enum SMDS_TypeOfPosition { /* end public enums declaration */ + %nodefaultctor SMDS_Iterator; template class SMDS_Iterator { public: diff --git a/src/SWIG_files/wrapper/SMDSAbs.i b/src/SWIG_files/wrapper/SMDSAbs.i index ba94ac04a..937268bca 100644 --- a/src/SWIG_files/wrapper/SMDSAbs.i +++ b/src/SWIG_files/wrapper/SMDSAbs.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include SMDSAbs_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -112,3 +98,4 @@ enum SMDSAbs_EntityType { /* end public enums declaration */ + diff --git a/src/SWIG_files/wrapper/SMESH.i b/src/SWIG_files/wrapper/SMESH.i index 5c7f7975a..42a339f7a 100644 --- a/src/SWIG_files/wrapper/SMESH.i +++ b/src/SWIG_files/wrapper/SMESH.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include SMESH_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef std::map > TElemOfElemListMap; typedef const SMDS_MeshElement * SMDS_MeshElementPtr; @@ -103,6 +89,8 @@ enum SMESH_ComputeErrorName { /* end public enums declaration */ +%wrap_handle(SMESH_MeshVSLink) + %nodefaultctor SMESH_ElementSearcher; class SMESH_ElementSearcher { public: @@ -1569,6 +1557,8 @@ class SMESH_MeshVSLink : public MeshVS_DataSource3D { }; +%make_alias(SMESH_MeshVSLink) + %extend SMESH_MeshVSLink { %pythoncode { __repr__ = _dumps_object diff --git a/src/SWIG_files/wrapper/SMESHDS.i b/src/SWIG_files/wrapper/SMESHDS.i index 39d6b6d24..55cc2b045 100644 --- a/src/SWIG_files/wrapper/SMESHDS.i +++ b/src/SWIG_files/wrapper/SMESHDS.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include SMESHDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef SMDS_Iterator SMESHDS_SubMeshIterator; typedef boost::shared_ptr SMESHDS_SubMeshIteratorPtr; @@ -89,6 +75,7 @@ enum SMESHDS_CommandType { /* end public enums declaration */ + %nodefaultctor SMESHDS_Command; class SMESHDS_Command { public: diff --git a/src/SWIG_files/wrapper/SMESHDS_headers.i b/src/SWIG_files/wrapper/SMESHDS_headers.i index d762b235c..22356e37e 100644 --- a/src/SWIG_files/wrapper/SMESHDS_headers.i +++ b/src/SWIG_files/wrapper/SMESHDS_headers.i @@ -173,6 +173,17 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/STEPCAFControl.i b/src/SWIG_files/wrapper/STEPCAFControl.i index 3d5a402a0..9abbf0580 100644 --- a/src/SWIG_files/wrapper/STEPCAFControl.i +++ b/src/SWIG_files/wrapper/STEPCAFControl.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define STEPCAFCONTROLDOCSTRING -"No docstring provided." +"-Purpose : This package provides external access and control for STEP, +on the level of CAF (shapes with attributes, external +references etc.) +" %enddef %module (package="OCC.Core", docstring=STEPCAFCONTROLDOCSTRING) STEPCAFControl @@ -34,31 +37,29 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include STEPCAFControl_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(STEPCAFControl_ActorWrite) +%wrap_handle(STEPCAFControl_Controller) +%wrap_handle(STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile) +%wrap_handle(STEPCAFControl_DataMapNodeOfDataMapOfLabelShape) +%wrap_handle(STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile) +%wrap_handle(STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile) +%wrap_handle(STEPCAFControl_DataMapNodeOfDataMapOfShapePD) +%wrap_handle(STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR) +%wrap_handle(STEPCAFControl_DictionaryOfExternFile) +%wrap_handle(STEPCAFControl_ExternFile) +%wrap_handle(STEPCAFControl_StackItemOfDictionaryOfExternFile) + %nodefaultctor STEPCAFControl_ActorWrite; class STEPCAFControl_ActorWrite : public STEPControl_ActorWrite { public: @@ -99,51 +100,7 @@ class STEPCAFControl_ActorWrite : public STEPControl_ActorWrite { }; -%extend STEPCAFControl_ActorWrite { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_ActorWrite(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_ActorWrite::Handle_STEPCAFControl_ActorWrite %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_ActorWrite; -class Handle_STEPCAFControl_ActorWrite : public Handle_STEPControl_ActorWrite { - - public: - // constructors - Handle_STEPCAFControl_ActorWrite(); - Handle_STEPCAFControl_ActorWrite(const Handle_STEPCAFControl_ActorWrite &aHandle); - Handle_STEPCAFControl_ActorWrite(const STEPCAFControl_ActorWrite *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_ActorWrite DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_ActorWrite { - STEPCAFControl_ActorWrite* _get_reference() { - return (STEPCAFControl_ActorWrite*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_ActorWrite { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_ActorWrite) %extend STEPCAFControl_ActorWrite { %pythoncode { @@ -168,51 +125,7 @@ class STEPCAFControl_Controller : public STEPControl_Controller { }; -%extend STEPCAFControl_Controller { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_Controller(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_Controller::Handle_STEPCAFControl_Controller %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_Controller; -class Handle_STEPCAFControl_Controller : public Handle_STEPControl_Controller { - - public: - // constructors - Handle_STEPCAFControl_Controller(); - Handle_STEPCAFControl_Controller(const Handle_STEPCAFControl_Controller &aHandle); - Handle_STEPCAFControl_Controller(const STEPCAFControl_Controller *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_Controller DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_Controller { - STEPCAFControl_Controller* _get_reference() { - return (STEPCAFControl_Controller*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_Controller { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_Controller) %extend STEPCAFControl_Controller { %pythoncode { @@ -453,51 +366,7 @@ class STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile : public TCollection_ }; -%extend STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile::Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile; -class Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile(); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile(const Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile &aHandle); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile(const STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile { - STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile* _get_reference() { - return (STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile) %extend STEPCAFControl_DataMapNodeOfDataMapOfLabelExternFile { %pythoncode { @@ -528,51 +397,7 @@ class STEPCAFControl_DataMapNodeOfDataMapOfLabelShape : public TCollection_MapNo }; -%extend STEPCAFControl_DataMapNodeOfDataMapOfLabelShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape::Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape; -class Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape(); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape(const Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape &aHandle); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape(const STEPCAFControl_DataMapNodeOfDataMapOfLabelShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape { - STEPCAFControl_DataMapNodeOfDataMapOfLabelShape* _get_reference() { - return (STEPCAFControl_DataMapNodeOfDataMapOfLabelShape*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfLabelShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DataMapNodeOfDataMapOfLabelShape) %extend STEPCAFControl_DataMapNodeOfDataMapOfLabelShape { %pythoncode { @@ -603,51 +428,7 @@ class STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile : public TCollection_Map }; -%extend STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile::Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile; -class Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile(); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile(const Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile &aHandle); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile(const STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile { - STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile* _get_reference() { - return (STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile) %extend STEPCAFControl_DataMapNodeOfDataMapOfPDExternFile { %pythoncode { @@ -678,51 +459,7 @@ class STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile : public TCollection_Ma }; -%extend STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile::Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile; -class Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile(); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile(const Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile &aHandle); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile(const STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile { - STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile* _get_reference() { - return (STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile) %extend STEPCAFControl_DataMapNodeOfDataMapOfSDRExternFile { %pythoncode { @@ -753,51 +490,7 @@ class STEPCAFControl_DataMapNodeOfDataMapOfShapePD : public TCollection_MapNode }; -%extend STEPCAFControl_DataMapNodeOfDataMapOfShapePD { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD::Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD; -class Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD(); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD(const Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD &aHandle); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD(const STEPCAFControl_DataMapNodeOfDataMapOfShapePD *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD { - STEPCAFControl_DataMapNodeOfDataMapOfShapePD* _get_reference() { - return (STEPCAFControl_DataMapNodeOfDataMapOfShapePD*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapePD { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DataMapNodeOfDataMapOfShapePD) %extend STEPCAFControl_DataMapNodeOfDataMapOfShapePD { %pythoncode { @@ -828,51 +521,7 @@ class STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR : public TCollection_MapNode }; -%extend STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR::Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR; -class Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR(); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR(const Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR &aHandle); - Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR(const STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR { - STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR* _get_reference() { - return (STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR) %extend STEPCAFControl_DataMapNodeOfDataMapOfShapeSDR { %pythoncode { @@ -1521,51 +1170,7 @@ class STEPCAFControl_DictionaryOfExternFile : public MMgt_TShared { }; -%extend STEPCAFControl_DictionaryOfExternFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_DictionaryOfExternFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_DictionaryOfExternFile::Handle_STEPCAFControl_DictionaryOfExternFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_DictionaryOfExternFile; -class Handle_STEPCAFControl_DictionaryOfExternFile : public Handle_MMgt_TShared { - - public: - // constructors - Handle_STEPCAFControl_DictionaryOfExternFile(); - Handle_STEPCAFControl_DictionaryOfExternFile(const Handle_STEPCAFControl_DictionaryOfExternFile &aHandle); - Handle_STEPCAFControl_DictionaryOfExternFile(const STEPCAFControl_DictionaryOfExternFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_DictionaryOfExternFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_DictionaryOfExternFile { - STEPCAFControl_DictionaryOfExternFile* _get_reference() { - return (STEPCAFControl_DictionaryOfExternFile*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_DictionaryOfExternFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_DictionaryOfExternFile) %extend STEPCAFControl_DictionaryOfExternFile { %pythoncode { @@ -1644,51 +1249,7 @@ class STEPCAFControl_ExternFile : public MMgt_TShared { }; -%extend STEPCAFControl_ExternFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_ExternFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_ExternFile::Handle_STEPCAFControl_ExternFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_ExternFile; -class Handle_STEPCAFControl_ExternFile : public Handle_MMgt_TShared { - - public: - // constructors - Handle_STEPCAFControl_ExternFile(); - Handle_STEPCAFControl_ExternFile(const Handle_STEPCAFControl_ExternFile &aHandle); - Handle_STEPCAFControl_ExternFile(const STEPCAFControl_ExternFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_ExternFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_ExternFile { - STEPCAFControl_ExternFile* _get_reference() { - return (STEPCAFControl_ExternFile*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_ExternFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_ExternFile) %extend STEPCAFControl_ExternFile { %pythoncode { @@ -1993,51 +1554,7 @@ class STEPCAFControl_StackItemOfDictionaryOfExternFile : public MMgt_TShared { }; -%extend STEPCAFControl_StackItemOfDictionaryOfExternFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile::Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile; -class Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile : public Handle_MMgt_TShared { - - public: - // constructors - Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile(); - Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile(const Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile &aHandle); - Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile(const STEPCAFControl_StackItemOfDictionaryOfExternFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile { - STEPCAFControl_StackItemOfDictionaryOfExternFile* _get_reference() { - return (STEPCAFControl_StackItemOfDictionaryOfExternFile*)$self->Access(); - } -}; - -%extend Handle_STEPCAFControl_StackItemOfDictionaryOfExternFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPCAFControl_StackItemOfDictionaryOfExternFile) %extend STEPCAFControl_StackItemOfDictionaryOfExternFile { %pythoncode { diff --git a/src/SWIG_files/wrapper/STEPCAFControl_headers.i b/src/SWIG_files/wrapper/STEPCAFControl_headers.i index bb20dad5a..2c23d7e34 100644 --- a/src/SWIG_files/wrapper/STEPCAFControl_headers.i +++ b/src/SWIG_files/wrapper/STEPCAFControl_headers.i @@ -1391,6 +1391,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/STEPConstruct.i b/src/SWIG_files/wrapper/STEPConstruct.i index fcdeae6c9..5b4d313aa 100644 --- a/src/SWIG_files/wrapper/STEPConstruct.i +++ b/src/SWIG_files/wrapper/STEPConstruct.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define STEPCONSTRUCTDOCSTRING -"No docstring provided." +"Defines tools for creation and investigation STEP constructs +used for representing various kinds of data, such as product and +assembly structure, unit contexts, associated information +The creation of these structures is made according to currently +active schema (AP203 or AP214 CD2 or DIS) +This is taken from parameter write.step.schema +" %enddef %module (package="OCC.Core", docstring=STEPCONSTRUCTDOCSTRING) STEPConstruct @@ -34,31 +40,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include STEPConstruct_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient) +%wrap_handle(STEPConstruct_DataMapNodeOfDataMapOfPointTransient) + %rename(stepconstruct) STEPConstruct; class STEPConstruct { public: @@ -645,51 +640,7 @@ class STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient : public TCollect }; -%extend STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient::Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient; -class Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient(); - Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient(const Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient &aHandle); - Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient(const STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient { - STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient* _get_reference() { - return (STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient*)$self->Access(); - } -}; - -%extend Handle_STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient) %extend STEPConstruct_DataMapNodeOfDataMapOfAsciiStringTransient { %pythoncode { @@ -720,51 +671,7 @@ class STEPConstruct_DataMapNodeOfDataMapOfPointTransient : public TCollection_Ma }; -%extend STEPConstruct_DataMapNodeOfDataMapOfPointTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient::Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient; -class Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient(); - Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient(const Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient &aHandle); - Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient(const STEPConstruct_DataMapNodeOfDataMapOfPointTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient { - STEPConstruct_DataMapNodeOfDataMapOfPointTransient* _get_reference() { - return (STEPConstruct_DataMapNodeOfDataMapOfPointTransient*)$self->Access(); - } -}; - -%extend Handle_STEPConstruct_DataMapNodeOfDataMapOfPointTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPConstruct_DataMapNodeOfDataMapOfPointTransient) %extend STEPConstruct_DataMapNodeOfDataMapOfPointTransient { %pythoncode { diff --git a/src/SWIG_files/wrapper/STEPConstruct_headers.i b/src/SWIG_files/wrapper/STEPConstruct_headers.i index 83fee4f01..e0c3124cc 100644 --- a/src/SWIG_files/wrapper/STEPConstruct_headers.i +++ b/src/SWIG_files/wrapper/STEPConstruct_headers.i @@ -35,6 +35,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -1711,6 +1755,7 @@ along with pythonOCC. If not, see . #include #include %}; +%import Transfer.i %import TopoDS.i %import StepRepr.i %import TopLoc.i diff --git a/src/SWIG_files/wrapper/STEPControl.i b/src/SWIG_files/wrapper/STEPControl.i index b0eb022b7..2e05ff30f 100644 --- a/src/SWIG_files/wrapper/STEPControl.i +++ b/src/SWIG_files/wrapper/STEPControl.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STEPCONTROLDOCSTRING -"No docstring provided." +"-Purpose : This package provides external access and control for STEP, +especially to deal with Shapes +" %enddef %module (package="OCC.Core", docstring=STEPCONTROLDOCSTRING) STEPControl @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include STEPControl_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -70,6 +58,10 @@ enum STEPControl_StepModelType { /* end public enums declaration */ +%wrap_handle(STEPControl_ActorRead) +%wrap_handle(STEPControl_ActorWrite) +%wrap_handle(STEPControl_Controller) + %nodefaultctor STEPControl_ActorRead; class STEPControl_ActorRead : public Transfer_ActorOfTransientProcess { public: @@ -150,51 +142,7 @@ class STEPControl_ActorRead : public Transfer_ActorOfTransientProcess { }; -%extend STEPControl_ActorRead { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPControl_ActorRead(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPControl_ActorRead::Handle_STEPControl_ActorRead %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPControl_ActorRead; -class Handle_STEPControl_ActorRead : public Handle_Transfer_ActorOfTransientProcess { - - public: - // constructors - Handle_STEPControl_ActorRead(); - Handle_STEPControl_ActorRead(const Handle_STEPControl_ActorRead &aHandle); - Handle_STEPControl_ActorRead(const STEPControl_ActorRead *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPControl_ActorRead DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPControl_ActorRead { - STEPControl_ActorRead* _get_reference() { - return (STEPControl_ActorRead*)$self->Access(); - } -}; - -%extend Handle_STEPControl_ActorRead { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPControl_ActorRead) %extend STEPControl_ActorRead { %pythoncode { @@ -299,51 +247,7 @@ class STEPControl_ActorWrite : public Transfer_ActorOfFinderProcess { }; -%extend STEPControl_ActorWrite { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPControl_ActorWrite(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPControl_ActorWrite::Handle_STEPControl_ActorWrite %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPControl_ActorWrite; -class Handle_STEPControl_ActorWrite : public Handle_Transfer_ActorOfFinderProcess { - - public: - // constructors - Handle_STEPControl_ActorWrite(); - Handle_STEPControl_ActorWrite(const Handle_STEPControl_ActorWrite &aHandle); - Handle_STEPControl_ActorWrite(const STEPControl_ActorWrite *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPControl_ActorWrite DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPControl_ActorWrite { - STEPControl_ActorWrite* _get_reference() { - return (STEPControl_ActorWrite*)$self->Access(); - } -}; - -%extend Handle_STEPControl_ActorWrite { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPControl_ActorWrite) %extend STEPControl_ActorWrite { %pythoncode { @@ -402,51 +306,7 @@ class STEPControl_Controller : public XSControl_Controller { }; -%extend STEPControl_Controller { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPControl_Controller(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPControl_Controller::Handle_STEPControl_Controller %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPControl_Controller; -class Handle_STEPControl_Controller : public Handle_XSControl_Controller { - - public: - // constructors - Handle_STEPControl_Controller(); - Handle_STEPControl_Controller(const Handle_STEPControl_Controller &aHandle); - Handle_STEPControl_Controller(const STEPControl_Controller *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPControl_Controller DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPControl_Controller { - STEPControl_Controller* _get_reference() { - return (STEPControl_Controller*)$self->Access(); - } -}; - -%extend Handle_STEPControl_Controller { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPControl_Controller) %extend STEPControl_Controller { %pythoncode { diff --git a/src/SWIG_files/wrapper/STEPControl_headers.i b/src/SWIG_files/wrapper/STEPControl_headers.i index 01462d9e3..26e00829e 100644 --- a/src/SWIG_files/wrapper/STEPControl_headers.i +++ b/src/SWIG_files/wrapper/STEPControl_headers.i @@ -24,6 +24,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -1275,6 +1319,7 @@ along with pythonOCC. If not, see . #include #include %}; +%import Transfer.i %import Standard.i %import StepRepr.i %import StepGeom.i diff --git a/src/SWIG_files/wrapper/STEPEdit.i b/src/SWIG_files/wrapper/STEPEdit.i index 8108c3daa..3263bdc6e 100644 --- a/src/SWIG_files/wrapper/STEPEdit.i +++ b/src/SWIG_files/wrapper/STEPEdit.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STEPEDITDOCSTRING -"No docstring provided." +"-Purpose : Provides tools to exploit and edit a set of STEP data : +editors, selections .. +" %enddef %module (package="OCC.Core", docstring=STEPEDITDOCSTRING) STEPEdit @@ -34,31 +36,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include STEPEdit_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(STEPEdit_EditContext) +%wrap_handle(STEPEdit_EditSDR) + %rename(stepedit) STEPEdit; class STEPEdit { public: @@ -154,51 +145,7 @@ class STEPEdit_EditContext : public IFSelect_Editor { }; -%extend STEPEdit_EditContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPEdit_EditContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPEdit_EditContext::Handle_STEPEdit_EditContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPEdit_EditContext; -class Handle_STEPEdit_EditContext : public Handle_IFSelect_Editor { - - public: - // constructors - Handle_STEPEdit_EditContext(); - Handle_STEPEdit_EditContext(const Handle_STEPEdit_EditContext &aHandle); - Handle_STEPEdit_EditContext(const STEPEdit_EditContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPEdit_EditContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPEdit_EditContext { - STEPEdit_EditContext* _get_reference() { - return (STEPEdit_EditContext*)$self->Access(); - } -}; - -%extend Handle_STEPEdit_EditContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPEdit_EditContext) %extend STEPEdit_EditContext { %pythoncode { @@ -253,51 +200,7 @@ class STEPEdit_EditSDR : public IFSelect_Editor { }; -%extend STEPEdit_EditSDR { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPEdit_EditSDR(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPEdit_EditSDR::Handle_STEPEdit_EditSDR %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPEdit_EditSDR; -class Handle_STEPEdit_EditSDR : public Handle_IFSelect_Editor { - - public: - // constructors - Handle_STEPEdit_EditSDR(); - Handle_STEPEdit_EditSDR(const Handle_STEPEdit_EditSDR &aHandle); - Handle_STEPEdit_EditSDR(const STEPEdit_EditSDR *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPEdit_EditSDR DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPEdit_EditSDR { - STEPEdit_EditSDR* _get_reference() { - return (STEPEdit_EditSDR*)$self->Access(); - } -}; - -%extend Handle_STEPEdit_EditSDR { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPEdit_EditSDR) %extend STEPEdit_EditSDR { %pythoncode { diff --git a/src/SWIG_files/wrapper/STEPSelections.i b/src/SWIG_files/wrapper/STEPSelections.i index 2131e44a5..60fcb9ccd 100644 --- a/src/SWIG_files/wrapper/STEPSelections.i +++ b/src/SWIG_files/wrapper/STEPSelections.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define STEPSELECTIONSDOCSTRING -"No docstring provided." +"-Purpose : Step Selections +" %enddef %module (package="OCC.Core", docstring=STEPSELECTIONSDOCSTRING) STEPSelections @@ -34,31 +35,29 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include STEPSelections_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(STEPSelections_AssemblyComponent) +%wrap_handle(STEPSelections_AssemblyLink) +%wrap_handle(STEPSelections_HSequenceOfAssemblyLink) +%wrap_handle(STEPSelections_SelectAssembly) +%wrap_handle(STEPSelections_SelectDerived) +%wrap_handle(STEPSelections_SelectFaces) +%wrap_handle(STEPSelections_SelectForTransfer) +%wrap_handle(STEPSelections_SelectGSCurves) +%wrap_handle(STEPSelections_SelectInstances) +%wrap_handle(STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent) +%wrap_handle(STEPSelections_SequenceNodeOfSequenceOfAssemblyLink) + %nodefaultctor STEPSelections_AssemblyComponent; class STEPSelections_AssemblyComponent : public MMgt_TShared { public: @@ -97,51 +96,7 @@ class STEPSelections_AssemblyComponent : public MMgt_TShared { }; -%extend STEPSelections_AssemblyComponent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_AssemblyComponent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_AssemblyComponent::Handle_STEPSelections_AssemblyComponent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_AssemblyComponent; -class Handle_STEPSelections_AssemblyComponent : public Handle_MMgt_TShared { - - public: - // constructors - Handle_STEPSelections_AssemblyComponent(); - Handle_STEPSelections_AssemblyComponent(const Handle_STEPSelections_AssemblyComponent &aHandle); - Handle_STEPSelections_AssemblyComponent(const STEPSelections_AssemblyComponent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_AssemblyComponent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_AssemblyComponent { - STEPSelections_AssemblyComponent* _get_reference() { - return (STEPSelections_AssemblyComponent*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_AssemblyComponent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_AssemblyComponent) %extend STEPSelections_AssemblyComponent { %pythoncode { @@ -261,51 +216,7 @@ class STEPSelections_AssemblyLink : public MMgt_TShared { }; -%extend STEPSelections_AssemblyLink { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_AssemblyLink(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_AssemblyLink::Handle_STEPSelections_AssemblyLink %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_AssemblyLink; -class Handle_STEPSelections_AssemblyLink : public Handle_MMgt_TShared { - - public: - // constructors - Handle_STEPSelections_AssemblyLink(); - Handle_STEPSelections_AssemblyLink(const Handle_STEPSelections_AssemblyLink &aHandle); - Handle_STEPSelections_AssemblyLink(const STEPSelections_AssemblyLink *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_AssemblyLink DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_AssemblyLink { - STEPSelections_AssemblyLink* _get_reference() { - return (STEPSelections_AssemblyLink*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_AssemblyLink { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_AssemblyLink) %extend STEPSelections_AssemblyLink { %pythoncode { @@ -517,51 +428,7 @@ class STEPSelections_HSequenceOfAssemblyLink : public MMgt_TShared { }; -%extend STEPSelections_HSequenceOfAssemblyLink { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_HSequenceOfAssemblyLink(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_HSequenceOfAssemblyLink::Handle_STEPSelections_HSequenceOfAssemblyLink %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_HSequenceOfAssemblyLink; -class Handle_STEPSelections_HSequenceOfAssemblyLink : public Handle_MMgt_TShared { - - public: - // constructors - Handle_STEPSelections_HSequenceOfAssemblyLink(); - Handle_STEPSelections_HSequenceOfAssemblyLink(const Handle_STEPSelections_HSequenceOfAssemblyLink &aHandle); - Handle_STEPSelections_HSequenceOfAssemblyLink(const STEPSelections_HSequenceOfAssemblyLink *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_HSequenceOfAssemblyLink DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_HSequenceOfAssemblyLink { - STEPSelections_HSequenceOfAssemblyLink* _get_reference() { - return (STEPSelections_HSequenceOfAssemblyLink*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_HSequenceOfAssemblyLink { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_HSequenceOfAssemblyLink) %extend STEPSelections_HSequenceOfAssemblyLink { %pythoncode { @@ -598,51 +465,7 @@ class STEPSelections_SelectAssembly : public IFSelect_SelectExplore { }; -%extend STEPSelections_SelectAssembly { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SelectAssembly(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SelectAssembly::Handle_STEPSelections_SelectAssembly %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SelectAssembly; -class Handle_STEPSelections_SelectAssembly : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_STEPSelections_SelectAssembly(); - Handle_STEPSelections_SelectAssembly(const Handle_STEPSelections_SelectAssembly &aHandle); - Handle_STEPSelections_SelectAssembly(const STEPSelections_SelectAssembly *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SelectAssembly DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SelectAssembly { - STEPSelections_SelectAssembly* _get_reference() { - return (STEPSelections_SelectAssembly*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SelectAssembly { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SelectAssembly) %extend STEPSelections_SelectAssembly { %pythoncode { @@ -671,51 +494,7 @@ class STEPSelections_SelectDerived : public StepSelect_StepType { }; -%extend STEPSelections_SelectDerived { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SelectDerived(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SelectDerived::Handle_STEPSelections_SelectDerived %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SelectDerived; -class Handle_STEPSelections_SelectDerived : public Handle_StepSelect_StepType { - - public: - // constructors - Handle_STEPSelections_SelectDerived(); - Handle_STEPSelections_SelectDerived(const Handle_STEPSelections_SelectDerived &aHandle); - Handle_STEPSelections_SelectDerived(const STEPSelections_SelectDerived *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SelectDerived DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SelectDerived { - STEPSelections_SelectDerived* _get_reference() { - return (STEPSelections_SelectDerived*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SelectDerived { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SelectDerived) %extend STEPSelections_SelectDerived { %pythoncode { @@ -752,51 +531,7 @@ class STEPSelections_SelectFaces : public IFSelect_SelectExplore { }; -%extend STEPSelections_SelectFaces { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SelectFaces(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SelectFaces::Handle_STEPSelections_SelectFaces %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SelectFaces; -class Handle_STEPSelections_SelectFaces : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_STEPSelections_SelectFaces(); - Handle_STEPSelections_SelectFaces(const Handle_STEPSelections_SelectFaces &aHandle); - Handle_STEPSelections_SelectFaces(const STEPSelections_SelectFaces *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SelectFaces DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SelectFaces { - STEPSelections_SelectFaces* _get_reference() { - return (STEPSelections_SelectFaces*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SelectFaces { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SelectFaces) %extend STEPSelections_SelectFaces { %pythoncode { @@ -825,51 +560,7 @@ class STEPSelections_SelectForTransfer : public XSControl_SelectForTransfer { }; -%extend STEPSelections_SelectForTransfer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SelectForTransfer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SelectForTransfer::Handle_STEPSelections_SelectForTransfer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SelectForTransfer; -class Handle_STEPSelections_SelectForTransfer : public Handle_XSControl_SelectForTransfer { - - public: - // constructors - Handle_STEPSelections_SelectForTransfer(); - Handle_STEPSelections_SelectForTransfer(const Handle_STEPSelections_SelectForTransfer &aHandle); - Handle_STEPSelections_SelectForTransfer(const STEPSelections_SelectForTransfer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SelectForTransfer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SelectForTransfer { - STEPSelections_SelectForTransfer* _get_reference() { - return (STEPSelections_SelectForTransfer*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SelectForTransfer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SelectForTransfer) %extend STEPSelections_SelectForTransfer { %pythoncode { @@ -904,51 +595,7 @@ class STEPSelections_SelectGSCurves : public IFSelect_SelectExplore { }; -%extend STEPSelections_SelectGSCurves { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SelectGSCurves(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SelectGSCurves::Handle_STEPSelections_SelectGSCurves %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SelectGSCurves; -class Handle_STEPSelections_SelectGSCurves : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_STEPSelections_SelectGSCurves(); - Handle_STEPSelections_SelectGSCurves(const Handle_STEPSelections_SelectGSCurves &aHandle); - Handle_STEPSelections_SelectGSCurves(const STEPSelections_SelectGSCurves *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SelectGSCurves DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SelectGSCurves { - STEPSelections_SelectGSCurves* _get_reference() { - return (STEPSelections_SelectGSCurves*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SelectGSCurves { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SelectGSCurves) %extend STEPSelections_SelectGSCurves { %pythoncode { @@ -989,51 +636,7 @@ class STEPSelections_SelectInstances : public IFSelect_SelectExplore { }; -%extend STEPSelections_SelectInstances { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SelectInstances(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SelectInstances::Handle_STEPSelections_SelectInstances %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SelectInstances; -class Handle_STEPSelections_SelectInstances : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_STEPSelections_SelectInstances(); - Handle_STEPSelections_SelectInstances(const Handle_STEPSelections_SelectInstances &aHandle); - Handle_STEPSelections_SelectInstances(const STEPSelections_SelectInstances *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SelectInstances DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SelectInstances { - STEPSelections_SelectInstances* _get_reference() { - return (STEPSelections_SelectInstances*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SelectInstances { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SelectInstances) %extend STEPSelections_SelectInstances { %pythoncode { @@ -1060,51 +663,7 @@ class STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent : public TCollect }; -%extend STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent::Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent; -class Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent(); - Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent(const Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent &aHandle); - Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent(const STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent { - STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent* _get_reference() { - return (STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent) %extend STEPSelections_SequenceNodeOfSequenceOfAssemblyComponent { %pythoncode { @@ -1131,51 +690,7 @@ class STEPSelections_SequenceNodeOfSequenceOfAssemblyLink : public TCollection_S }; -%extend STEPSelections_SequenceNodeOfSequenceOfAssemblyLink { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink::Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink; -class Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink(); - Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink(const Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink &aHandle); - Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink(const STEPSelections_SequenceNodeOfSequenceOfAssemblyLink *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink { - STEPSelections_SequenceNodeOfSequenceOfAssemblyLink* _get_reference() { - return (STEPSelections_SequenceNodeOfSequenceOfAssemblyLink*)$self->Access(); - } -}; - -%extend Handle_STEPSelections_SequenceNodeOfSequenceOfAssemblyLink { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(STEPSelections_SequenceNodeOfSequenceOfAssemblyLink) %extend STEPSelections_SequenceNodeOfSequenceOfAssemblyLink { %pythoncode { diff --git a/src/SWIG_files/wrapper/STEPSelections_headers.i b/src/SWIG_files/wrapper/STEPSelections_headers.i index 0957e7868..68fa45297 100644 --- a/src/SWIG_files/wrapper/STEPSelections_headers.i +++ b/src/SWIG_files/wrapper/STEPSelections_headers.i @@ -1071,6 +1071,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Select3D.i b/src/SWIG_files/wrapper/Select3D.i index 2cd4b73e5..22c4186ef 100644 --- a/src/SWIG_files/wrapper/Select3D.i +++ b/src/SWIG_files/wrapper/Select3D.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define SELECT3DDOCSTRING -"No docstring provided." +"The Select3D package provides the following services +- definition of standard 3D sensitive primitives such as points, curves and faces. +- recovery of the bounding boxes in the 2D graphic selection space, if required. +- a 3D-2D projector. +" %enddef %module (package="OCC.Core", docstring=SELECT3DDOCSTRING) Select3D @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Select3D_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Sequence Select3D_EntitySequence; typedef BVH_Box Select3D_BndBox3d; @@ -69,6 +59,18 @@ enum Select3D_TypeOfSensitivity { /* end public enums declaration */ +%wrap_handle(Select3D_SensitiveBox) +%wrap_handle(Select3D_SensitiveFace) +%wrap_handle(Select3D_SensitivePoint) +%wrap_handle(Select3D_SensitiveSegment) +%wrap_handle(Select3D_SensitiveTriangle) +%wrap_handle(Select3D_InteriorSensitivePointSet) +%wrap_handle(Select3D_SensitiveGroup) +%wrap_handle(Select3D_SensitivePoly) +%wrap_handle(Select3D_SensitiveWire) +%wrap_handle(Select3D_SensitiveCircle) +%wrap_handle(Select3D_SensitiveCurve) + %nodefaultctor Select3D_Pnt; class Select3D_Pnt { public: @@ -214,51 +216,7 @@ class Select3D_SensitiveBox : public Select3D_SensitiveEntity { }; -%extend Select3D_SensitiveBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveBox::Handle_Select3D_SensitiveBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveBox; -class Handle_Select3D_SensitiveBox : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_Select3D_SensitiveBox(); - Handle_Select3D_SensitiveBox(const Handle_Select3D_SensitiveBox &aHandle); - Handle_Select3D_SensitiveBox(const Select3D_SensitiveBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveBox { - Select3D_SensitiveBox* _get_reference() { - return (Select3D_SensitiveBox*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveBox) %extend Select3D_SensitiveBox { %pythoncode { @@ -341,51 +299,7 @@ class Select3D_SensitiveFace : public Select3D_SensitiveEntity { }; -%extend Select3D_SensitiveFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveFace::Handle_Select3D_SensitiveFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveFace; -class Handle_Select3D_SensitiveFace : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_Select3D_SensitiveFace(); - Handle_Select3D_SensitiveFace(const Handle_Select3D_SensitiveFace &aHandle); - Handle_Select3D_SensitiveFace(const Select3D_SensitiveFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveFace { - Select3D_SensitiveFace* _get_reference() { - return (Select3D_SensitiveFace*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveFace) %extend Select3D_SensitiveFace { %pythoncode { @@ -446,51 +360,7 @@ class Select3D_SensitivePoint : public Select3D_SensitiveEntity { }; -%extend Select3D_SensitivePoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitivePoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitivePoint::Handle_Select3D_SensitivePoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitivePoint; -class Handle_Select3D_SensitivePoint : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_Select3D_SensitivePoint(); - Handle_Select3D_SensitivePoint(const Handle_Select3D_SensitivePoint &aHandle); - Handle_Select3D_SensitivePoint(const Select3D_SensitivePoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitivePoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitivePoint { - Select3D_SensitivePoint* _get_reference() { - return (Select3D_SensitivePoint*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitivePoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitivePoint) %extend Select3D_SensitivePoint { %pythoncode { @@ -575,194 +445,13 @@ class Select3D_SensitiveSegment : public Select3D_SensitiveEntity { }; -%extend Select3D_SensitiveSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveSegment::Handle_Select3D_SensitiveSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveSegment; -class Handle_Select3D_SensitiveSegment : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_Select3D_SensitiveSegment(); - Handle_Select3D_SensitiveSegment(const Handle_Select3D_SensitiveSegment &aHandle); - Handle_Select3D_SensitiveSegment(const Select3D_SensitiveSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveSegment { - Select3D_SensitiveSegment* _get_reference() { - return (Select3D_SensitiveSegment*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveSegment) %extend Select3D_SensitiveSegment { %pythoncode { __repr__ = _dumps_object } }; -%nodefaultctor Select3D_SensitiveSet; -class Select3D_SensitiveSet : public Select3D_SensitiveEntity { - public: - %feature("compactdefaultargs") Size; - %feature("autodoc", " * Returns the amount of sub-entities of the complex entity - - :rtype: int -") Size; - Standard_Integer Size (); - %feature("compactdefaultargs") Box; - %feature("autodoc", " * Returns bounding box of sub-entity with index theIdx in sub-entity list - - :param theIdx: - :type theIdx: int - :rtype: Select3D_BndBox3d -") Box; - Select3D_BndBox3d Box (const Standard_Integer theIdx); - %feature("compactdefaultargs") Center; - %feature("autodoc", " * Returns geometry center of sensitive entity index theIdx along the given axis theAxis - - :param theIdx: - :type theIdx: int - :param theAxis: - :type theAxis: int - :rtype: float -") Center; - Standard_Real Center (const Standard_Integer theIdx,const Standard_Integer theAxis); - %feature("compactdefaultargs") Swap; - %feature("autodoc", " * Swaps items with indexes theIdx1 and theIdx2 - - :param theIdx1: - :type theIdx1: int - :param theIdx2: - :type theIdx2: int - :rtype: None -") Swap; - void Swap (const Standard_Integer theIdx1,const Standard_Integer theIdx2); - %feature("compactdefaultargs") Matches; - %feature("autodoc", " * Checks whether one or more entities of the set overlap current selecting volume. Implements the traverse of BVH tree built for the set - - :param theMgr: - :type theMgr: SelectBasics_SelectingVolumeManager & - :param thePickResult: - :type thePickResult: SelectBasics_PickResult & - :rtype: bool -") Matches; - virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager & theMgr,SelectBasics_PickResult & thePickResult); - %feature("compactdefaultargs") BVH; - %feature("autodoc", " * Builds BVH tree for sensitive set. Must be called manually to build BVH tree for any sensitive set in case if its content was initialized not in a constructor, but element by element - - :rtype: None -") BVH; - void BVH (); - %feature("compactdefaultargs") MarkDirty; - %feature("autodoc", " * Marks BVH tree of the set as outdated. It will be rebuild at the next call of BVH() - - :rtype: None -") MarkDirty; - void MarkDirty (); - %feature("compactdefaultargs") BoundingBox; - %feature("autodoc", " * Returns bounding box of the whole set. This method should be redefined in Select3D_SensitiveSet descendants - - :rtype: Select3D_BndBox3d -") BoundingBox; - virtual Select3D_BndBox3d BoundingBox (); - %feature("compactdefaultargs") CenterOfGeometry; - %feature("autodoc", " * Returns center of the whole set. This method should be redefined in Select3D_SensitiveSet descendants - - :rtype: gp_Pnt -") CenterOfGeometry; - virtual gp_Pnt CenterOfGeometry (); - %feature("compactdefaultargs") Clear; - %feature("autodoc", " * Destroys cross-reference to avoid memory leak - - :rtype: void -") Clear; - virtual void Clear (); - %feature("compactdefaultargs") GetLeafNodeSize; - %feature("autodoc", " * Returns a number of nodes in 1 BVH leaf - - :rtype: int -") GetLeafNodeSize; - Standard_Integer GetLeafNodeSize (); -}; - - -%extend Select3D_SensitiveSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveSet::Handle_Select3D_SensitiveSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveSet; -class Handle_Select3D_SensitiveSet : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_Select3D_SensitiveSet(); - Handle_Select3D_SensitiveSet(const Handle_Select3D_SensitiveSet &aHandle); - Handle_Select3D_SensitiveSet(const Select3D_SensitiveSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveSet { - Select3D_SensitiveSet* _get_reference() { - return (Select3D_SensitiveSet*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend Select3D_SensitiveSet { - %pythoncode { - __repr__ = _dumps_object - } -}; %nodefaultctor Select3D_SensitiveTriangle; class Select3D_SensitiveTriangle : public Select3D_SensitiveEntity { public: @@ -835,51 +524,7 @@ class Select3D_SensitiveTriangle : public Select3D_SensitiveEntity { }; -%extend Select3D_SensitiveTriangle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveTriangle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveTriangle::Handle_Select3D_SensitiveTriangle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveTriangle; -class Handle_Select3D_SensitiveTriangle : public Handle_Select3D_SensitiveEntity { - - public: - // constructors - Handle_Select3D_SensitiveTriangle(); - Handle_Select3D_SensitiveTriangle(const Handle_Select3D_SensitiveTriangle &aHandle); - Handle_Select3D_SensitiveTriangle(const Select3D_SensitiveTriangle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveTriangle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveTriangle { - Select3D_SensitiveTriangle* _get_reference() { - return (Select3D_SensitiveTriangle*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveTriangle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveTriangle) %extend Select3D_SensitiveTriangle { %pythoncode { @@ -962,51 +607,7 @@ class Select3D_InteriorSensitivePointSet : public Select3D_SensitiveSet { }; -%extend Select3D_InteriorSensitivePointSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_InteriorSensitivePointSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_InteriorSensitivePointSet::Handle_Select3D_InteriorSensitivePointSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_InteriorSensitivePointSet; -class Handle_Select3D_InteriorSensitivePointSet : public Handle_Select3D_SensitiveSet { - - public: - // constructors - Handle_Select3D_InteriorSensitivePointSet(); - Handle_Select3D_InteriorSensitivePointSet(const Handle_Select3D_InteriorSensitivePointSet &aHandle); - Handle_Select3D_InteriorSensitivePointSet(const Select3D_InteriorSensitivePointSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_InteriorSensitivePointSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_InteriorSensitivePointSet { - Select3D_InteriorSensitivePointSet* _get_reference() { - return (Select3D_InteriorSensitivePointSet*)$self->Access(); - } -}; - -%extend Handle_Select3D_InteriorSensitivePointSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_InteriorSensitivePointSet) %extend Select3D_InteriorSensitivePointSet { %pythoncode { @@ -1171,51 +772,7 @@ class Select3D_SensitiveGroup : public Select3D_SensitiveSet { }; -%extend Select3D_SensitiveGroup { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveGroup(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveGroup::Handle_Select3D_SensitiveGroup %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveGroup; -class Handle_Select3D_SensitiveGroup : public Handle_Select3D_SensitiveSet { - - public: - // constructors - Handle_Select3D_SensitiveGroup(); - Handle_Select3D_SensitiveGroup(const Handle_Select3D_SensitiveGroup &aHandle); - Handle_Select3D_SensitiveGroup(const Select3D_SensitiveGroup *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveGroup DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveGroup { - Select3D_SensitiveGroup* _get_reference() { - return (Select3D_SensitiveGroup*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveGroup { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveGroup) %extend Select3D_SensitiveGroup { %pythoncode { @@ -1324,51 +881,7 @@ class Select3D_SensitivePoly : public Select3D_SensitiveSet { }; -%extend Select3D_SensitivePoly { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitivePoly(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitivePoly::Handle_Select3D_SensitivePoly %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitivePoly; -class Handle_Select3D_SensitivePoly : public Handle_Select3D_SensitiveSet { - - public: - // constructors - Handle_Select3D_SensitivePoly(); - Handle_Select3D_SensitivePoly(const Handle_Select3D_SensitivePoly &aHandle); - Handle_Select3D_SensitivePoly(const Select3D_SensitivePoly *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitivePoly DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitivePoly { - Select3D_SensitivePoly* _get_reference() { - return (Select3D_SensitivePoly*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitivePoly { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitivePoly) %extend Select3D_SensitivePoly { %pythoncode { @@ -1471,51 +984,7 @@ class Select3D_SensitiveWire : public Select3D_SensitiveSet { }; -%extend Select3D_SensitiveWire { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveWire(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveWire::Handle_Select3D_SensitiveWire %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveWire; -class Handle_Select3D_SensitiveWire : public Handle_Select3D_SensitiveSet { - - public: - // constructors - Handle_Select3D_SensitiveWire(); - Handle_Select3D_SensitiveWire(const Handle_Select3D_SensitiveWire &aHandle); - Handle_Select3D_SensitiveWire(const Select3D_SensitiveWire *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveWire DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveWire { - Select3D_SensitiveWire* _get_reference() { - return (Select3D_SensitiveWire*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveWire { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveWire) %extend Select3D_SensitiveWire { %pythoncode { @@ -1624,51 +1093,7 @@ class Select3D_SensitiveCircle : public Select3D_SensitivePoly { }; -%extend Select3D_SensitiveCircle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveCircle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveCircle::Handle_Select3D_SensitiveCircle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveCircle; -class Handle_Select3D_SensitiveCircle : public Handle_Select3D_SensitivePoly { - - public: - // constructors - Handle_Select3D_SensitiveCircle(); - Handle_Select3D_SensitiveCircle(const Handle_Select3D_SensitiveCircle &aHandle); - Handle_Select3D_SensitiveCircle(const Select3D_SensitiveCircle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveCircle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveCircle { - Select3D_SensitiveCircle* _get_reference() { - return (Select3D_SensitiveCircle*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveCircle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveCircle) %extend Select3D_SensitiveCircle { %pythoncode { @@ -1719,51 +1144,7 @@ class Select3D_SensitiveCurve : public Select3D_SensitivePoly { }; -%extend Select3D_SensitiveCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Select3D_SensitiveCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Select3D_SensitiveCurve::Handle_Select3D_SensitiveCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Select3D_SensitiveCurve; -class Handle_Select3D_SensitiveCurve : public Handle_Select3D_SensitivePoly { - - public: - // constructors - Handle_Select3D_SensitiveCurve(); - Handle_Select3D_SensitiveCurve(const Handle_Select3D_SensitiveCurve &aHandle); - Handle_Select3D_SensitiveCurve(const Select3D_SensitiveCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Select3D_SensitiveCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Select3D_SensitiveCurve { - Select3D_SensitiveCurve* _get_reference() { - return (Select3D_SensitiveCurve*)$self->Access(); - } -}; - -%extend Handle_Select3D_SensitiveCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Select3D_SensitiveCurve) %extend Select3D_SensitiveCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/SelectBasics.i b/src/SWIG_files/wrapper/SelectBasics.i index 462219aaf..4ebb72cb6 100644 --- a/src/SWIG_files/wrapper/SelectBasics.i +++ b/src/SWIG_files/wrapper/SelectBasics.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define SELECTBASICSDOCSTRING -"No docstring provided." +"interface class for dynamic selection +" %enddef %module (package="OCC.Core", docstring=SELECTBASICSDOCSTRING) SelectBasics @@ -34,31 +35,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include SelectBasics_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(SelectBasics_EntityOwner) +%wrap_handle(SelectBasics_SensitiveEntity) + %rename(selectbasics) SelectBasics; class SelectBasics { public: @@ -116,51 +106,7 @@ class SelectBasics_EntityOwner : public MMgt_TShared { }; -%extend SelectBasics_EntityOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectBasics_EntityOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectBasics_EntityOwner::Handle_SelectBasics_EntityOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectBasics_EntityOwner; -class Handle_SelectBasics_EntityOwner : public Handle_MMgt_TShared { - - public: - // constructors - Handle_SelectBasics_EntityOwner(); - Handle_SelectBasics_EntityOwner(const Handle_SelectBasics_EntityOwner &aHandle); - Handle_SelectBasics_EntityOwner(const SelectBasics_EntityOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectBasics_EntityOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectBasics_EntityOwner { - SelectBasics_EntityOwner* _get_reference() { - return (SelectBasics_EntityOwner*)$self->Access(); - } -}; - -%extend Handle_SelectBasics_EntityOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectBasics_EntityOwner) %extend SelectBasics_EntityOwner { %pythoncode { @@ -403,51 +349,7 @@ class SelectBasics_SensitiveEntity : public MMgt_TShared { }; -%extend SelectBasics_SensitiveEntity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectBasics_SensitiveEntity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectBasics_SensitiveEntity::Handle_SelectBasics_SensitiveEntity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectBasics_SensitiveEntity; -class Handle_SelectBasics_SensitiveEntity : public Handle_MMgt_TShared { - - public: - // constructors - Handle_SelectBasics_SensitiveEntity(); - Handle_SelectBasics_SensitiveEntity(const Handle_SelectBasics_SensitiveEntity &aHandle); - Handle_SelectBasics_SensitiveEntity(const SelectBasics_SensitiveEntity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectBasics_SensitiveEntity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectBasics_SensitiveEntity { - SelectBasics_SensitiveEntity* _get_reference() { - return (SelectBasics_SensitiveEntity*)$self->Access(); - } -}; - -%extend Handle_SelectBasics_SensitiveEntity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectBasics_SensitiveEntity) %extend SelectBasics_SensitiveEntity { %pythoncode { diff --git a/src/SWIG_files/wrapper/SelectMgr.i b/src/SWIG_files/wrapper/SelectMgr.i index e079e7ccd..a638194de 100644 --- a/src/SWIG_files/wrapper/SelectMgr.i +++ b/src/SWIG_files/wrapper/SelectMgr.i @@ -18,7 +18,148 @@ along with pythonOCC. If not, see . */ %define SELECTMGRDOCSTRING -"No docstring provided." +"SelectMgr manages the process of dynamic +selection through the following services: +- activating and deactivating selection modes for Interactive Objects +- adding and removing viewer selectors +- definitions of abstract filter classes +The principle of graphic selection consists in +representing the objects which you want to select +by a bounding box in the selection view. The object +is selected when you use the mouse to designate +the zone produced by the object. +To realize this, the application creates a selection +structure which is independent of the point of view. +This structure is made up of sensitive primitives +which have one owner object associated to each of +them. The role of the sensitive primitive is to reply +to the requests of the selection algorithm whereas +the owner's purpose is to make the link between +the sensitive primitive and the object to be selected. +Each selection structure corresponds to a selection +mode which defines the elements that can be selected. +For example, to select a complete geometric model, +the application can create a sensitive primitive for +each face of the interactive object representing the +geometric model. In this case, all the primitives +share the same owner. On the other hand, to select +an edge in a model, the application must create +one sensitive primitive per edge. +Example +void +InteractiveBox::ComputeSelection +(const Handle(SelectMgr_Selection)& Sel, +const Standard_Integer Mode){ switch(Mode){ case 0: +// locating the whole box by making its faces sensitive ... +{ +Handle(SelectMgr_EntityOwner) +Ownr = new +SelectMgr_EntityOwner(this,5); +for(Standard_Integer +I=1;I<=Nbfaces;I++){Sel->Add(new Select3D_SensitiveFace +(Ownr,[array of the vertices] face I); +break; +} +case 1: // locates the edges +{ +for(Standard_Integer +i=1;i<=12;i++){ +// 1 owner per edge... +Handle(mypk_EdgeOwner) +Ownr = new +mypk_EdgeOwner(this,i,6); +// 6->priority +Sel->Add(new +Select3D_SensitiveSegment +(Ownr,firstpt(i),lastpt(i)); +} +} +} +The algorithms for creating selection structures +store the sensitive primitives in a +SelectMgr_Selection object. To do this, a set of +ready-made sensitive primitives is supplied in the +Select2D and Select3D packages. New sensitive +primitives can be defined through inheritance +from SensitiveEntity. For the application to make +its own objects selectable, it must define owner +classes inheriting SelectMgr_EntityOwner. +For any object inheriting from +AIS_InteractiveObject, you redefine its +ComputeSelection functions. In the example below +there are different modes of selection on the +topological shape contained within the interactive +object -selection of the shape itself, the vertices, +the edges, the wires, the faces. +Example +void +MyPack_MyClass::ComputeSelection( +const Handle(SelectMgr_Selection)& aSelection, +const Standard_Integer aMode) +{ +switch(aMode){ +case 0: +StdSelect_BRepSelectionTool::Load( +aSelection,this,myShape,TopAbs_SHAPE); +break; +} +case 1: +StdSelect_BRepSelectionTool::Load( +aSelection,this,myShape,TopAbs_VERTEX); +break; +} +case 2: +StdSelect_BRepSelectionTool::Load( +aSelection,this,myShape,TopAbs_EDGE); +break; +} +case 3: +StdSelect_BRepSelectionTool::Load( +aSelection,this,myShape,TopAbs_WIRE); +break; +} +case 4: +StdSelect_BRepSelectionTool::Load( +aSelection,this,myShape,TopAbs_FACE); +break; +} +} +The StdSelect_BRepSelectionTool object +provides a high level service which will make the +shape 'myShape' selectable when the +AIS_InteractiveContext is asked to display your object. +Note: The traditional way of highlighting selected entity +owners adopted by the Open CASCADE library assumes that +each entity owner highlights itself on its own. This approach +has two drawbacks: +- each entity owner has to maintain its own +Prs3d_Presentation object, that results in +large memory overhead for thousands of owners; +- drawing selected owners one by one is not +efficient from the OpenGL usage viewpoint. +That is why a different method has been introduced. On the basis of +SelectMgr_EntityOwner::IsAutoHilight() return value an AIS_LocalContext +object either uses the traditional way of highlighting +(IsAutoHilight() returned true) or groups such owners according +to their Selectable Objects and finally calls +SelectMgr_SelectableObject::HilightSelected() +or ClearSelected(), passing a group of owners as an argument. +Hence, an application can derive its own interactive object and +redefine HilightSelected(), ClearSelected() and +HilightOwnerWithColor() virtual methods to take advantage of +such OpenGL technique as arrays of primitives. In any case, +these methods should at least have empty implementation. +The AIS_LocalContext::UpdateSelected(const Handle(AIS_InteratciveObject)&, +Standard_Boolean) method can be used for efficient redrawing a +selection presentation for a given interactive object from an +application code. +Additionally, the SelectMgr_SelectableObject::ClearSelections() +method now accepts an optional boolean argument. This parameter +defines whether all object selections should be flagged for +further update or not. This improved method can be used to +re-compute an object selection (without redisplaying the object +completely) when some selection mode is activated not for the first time. +" %enddef %module (package="OCC.Core", docstring=SELECTMGRDOCSTRING) SelectMgr @@ -34,25 +175,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include SelectMgr_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_DataMap SelectMgr_MapOfOwnerDetectedEntities; typedef NCollection_Handle > Handle_SelectMgr_IndexedMapOfOwner; @@ -97,6 +224,23 @@ enum SelectMgr_StateOfSelection { /* end public enums declaration */ +%wrap_handle(SelectMgr_DataMapNodeOfDataMapOfObjectSelectors) +%wrap_handle(SelectMgr_EntityOwner) +%wrap_handle(SelectMgr_Filter) +%wrap_handle(SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion) +%wrap_handle(SelectMgr_ListNodeOfListOfFilter) +%wrap_handle(SelectMgr_SelectableObject) +%wrap_handle(SelectMgr_Selection) +%wrap_handle(SelectMgr_SelectionManager) +%wrap_handle(SelectMgr_SensitiveEntity) +%wrap_handle(SelectMgr_SequenceNodeOfSequenceOfFilter) +%wrap_handle(SelectMgr_SequenceNodeOfSequenceOfOwner) +%wrap_handle(SelectMgr_SequenceNodeOfSequenceOfSelector) +%wrap_handle(SelectMgr_ViewerSelector) +%wrap_handle(SelectMgr_CompositionFilter) +%wrap_handle(SelectMgr_AndFilter) +%wrap_handle(SelectMgr_OrFilter) + %nodefaultctor SelectMgr_DataMapIteratorOfDataMapOfObjectSelectors; class SelectMgr_DataMapIteratorOfDataMapOfObjectSelectors : public TCollection_BasicMapIterator { public: @@ -156,51 +300,7 @@ class SelectMgr_DataMapNodeOfDataMapOfObjectSelectors : public TCollection_MapNo }; -%extend SelectMgr_DataMapNodeOfDataMapOfObjectSelectors { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors::Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors; -class Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors(); - Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors(const Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors &aHandle); - Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors(const SelectMgr_DataMapNodeOfDataMapOfObjectSelectors *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors { - SelectMgr_DataMapNodeOfDataMapOfObjectSelectors* _get_reference() { - return (SelectMgr_DataMapNodeOfDataMapOfObjectSelectors*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_DataMapNodeOfDataMapOfObjectSelectors { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_DataMapNodeOfDataMapOfObjectSelectors) %extend SelectMgr_DataMapNodeOfDataMapOfObjectSelectors { %pythoncode { @@ -464,51 +564,7 @@ class SelectMgr_EntityOwner : public SelectBasics_EntityOwner { }; -%extend SelectMgr_EntityOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_EntityOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_EntityOwner::Handle_SelectMgr_EntityOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_EntityOwner; -class Handle_SelectMgr_EntityOwner : public Handle_SelectBasics_EntityOwner { - - public: - // constructors - Handle_SelectMgr_EntityOwner(); - Handle_SelectMgr_EntityOwner(const Handle_SelectMgr_EntityOwner &aHandle); - Handle_SelectMgr_EntityOwner(const SelectMgr_EntityOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_EntityOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_EntityOwner { - SelectMgr_EntityOwner* _get_reference() { - return (SelectMgr_EntityOwner*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_EntityOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_EntityOwner) %extend SelectMgr_EntityOwner { %pythoncode { @@ -537,51 +593,7 @@ class SelectMgr_Filter : public MMgt_TShared { }; -%extend SelectMgr_Filter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_Filter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_Filter::Handle_SelectMgr_Filter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_Filter; -class Handle_SelectMgr_Filter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_SelectMgr_Filter(); - Handle_SelectMgr_Filter(const Handle_SelectMgr_Filter &aHandle); - Handle_SelectMgr_Filter(const SelectMgr_Filter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_Filter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_Filter { - SelectMgr_Filter* _get_reference() { - return (SelectMgr_Filter*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_Filter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_Filter) %extend SelectMgr_Filter { %pythoncode { @@ -633,51 +645,7 @@ class SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion : public TCol }; -%extend SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion::Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion; -class Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion(); - Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion(const Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion &aHandle); - Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion(const SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion { - SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion* _get_reference() { - return (SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion) %extend SelectMgr_IndexedDataMapNodeOfIndexedDataMapOfOwnerCriterion { %pythoncode { @@ -856,51 +824,7 @@ class SelectMgr_ListNodeOfListOfFilter : public TCollection_MapNode { }; -%extend SelectMgr_ListNodeOfListOfFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_ListNodeOfListOfFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_ListNodeOfListOfFilter::Handle_SelectMgr_ListNodeOfListOfFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_ListNodeOfListOfFilter; -class Handle_SelectMgr_ListNodeOfListOfFilter : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_SelectMgr_ListNodeOfListOfFilter(); - Handle_SelectMgr_ListNodeOfListOfFilter(const Handle_SelectMgr_ListNodeOfListOfFilter &aHandle); - Handle_SelectMgr_ListNodeOfListOfFilter(const SelectMgr_ListNodeOfListOfFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_ListNodeOfListOfFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_ListNodeOfListOfFilter { - SelectMgr_ListNodeOfListOfFilter* _get_reference() { - return (SelectMgr_ListNodeOfListOfFilter*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_ListNodeOfListOfFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_ListNodeOfListOfFilter) %extend SelectMgr_ListNodeOfListOfFilter { %pythoncode { @@ -1298,51 +1222,7 @@ class SelectMgr_SelectableObject : public PrsMgr_PresentableObject { }; -%extend SelectMgr_SelectableObject { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_SelectableObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_SelectableObject::Handle_SelectMgr_SelectableObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_SelectableObject; -class Handle_SelectMgr_SelectableObject : public Handle_PrsMgr_PresentableObject { - - public: - // constructors - Handle_SelectMgr_SelectableObject(); - Handle_SelectMgr_SelectableObject(const Handle_SelectMgr_SelectableObject &aHandle); - Handle_SelectMgr_SelectableObject(const SelectMgr_SelectableObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_SelectableObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_SelectableObject { - SelectMgr_SelectableObject* _get_reference() { - return (SelectMgr_SelectableObject*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_SelectableObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_SelectableObject) %extend SelectMgr_SelectableObject { %pythoncode { @@ -1718,51 +1598,7 @@ class SelectMgr_Selection : public MMgt_TShared { }; -%extend SelectMgr_Selection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_Selection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_Selection::Handle_SelectMgr_Selection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_Selection; -class Handle_SelectMgr_Selection : public Handle_MMgt_TShared { - - public: - // constructors - Handle_SelectMgr_Selection(); - Handle_SelectMgr_Selection(const Handle_SelectMgr_Selection &aHandle); - Handle_SelectMgr_Selection(const SelectMgr_Selection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_Selection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_Selection { - SelectMgr_Selection* _get_reference() { - return (SelectMgr_Selection*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_Selection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_Selection) %extend SelectMgr_Selection { %pythoncode { @@ -1981,51 +1817,7 @@ class SelectMgr_SelectionManager : public MMgt_TShared { }; -%extend SelectMgr_SelectionManager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_SelectionManager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_SelectionManager::Handle_SelectMgr_SelectionManager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_SelectionManager; -class Handle_SelectMgr_SelectionManager : public Handle_MMgt_TShared { - - public: - // constructors - Handle_SelectMgr_SelectionManager(); - Handle_SelectMgr_SelectionManager(const Handle_SelectMgr_SelectionManager &aHandle); - Handle_SelectMgr_SelectionManager(const SelectMgr_SelectionManager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_SelectionManager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_SelectionManager { - SelectMgr_SelectionManager* _get_reference() { - return (SelectMgr_SelectionManager*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_SelectionManager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_SelectionManager) %extend SelectMgr_SelectionManager { %pythoncode { @@ -2076,51 +1868,7 @@ class SelectMgr_SensitiveEntity : public Standard_Transient { }; -%extend SelectMgr_SensitiveEntity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_SensitiveEntity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_SensitiveEntity::Handle_SelectMgr_SensitiveEntity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_SensitiveEntity; -class Handle_SelectMgr_SensitiveEntity : public Handle_Standard_Transient { - - public: - // constructors - Handle_SelectMgr_SensitiveEntity(); - Handle_SelectMgr_SensitiveEntity(const Handle_SelectMgr_SensitiveEntity &aHandle); - Handle_SelectMgr_SensitiveEntity(const SelectMgr_SensitiveEntity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_SensitiveEntity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_SensitiveEntity { - SelectMgr_SensitiveEntity* _get_reference() { - return (SelectMgr_SensitiveEntity*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_SensitiveEntity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_SensitiveEntity) %extend SelectMgr_SensitiveEntity { %pythoncode { @@ -2147,51 +1895,7 @@ class SelectMgr_SequenceNodeOfSequenceOfFilter : public TCollection_SeqNode { }; -%extend SelectMgr_SequenceNodeOfSequenceOfFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_SequenceNodeOfSequenceOfFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_SequenceNodeOfSequenceOfFilter::Handle_SelectMgr_SequenceNodeOfSequenceOfFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_SequenceNodeOfSequenceOfFilter; -class Handle_SelectMgr_SequenceNodeOfSequenceOfFilter : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_SelectMgr_SequenceNodeOfSequenceOfFilter(); - Handle_SelectMgr_SequenceNodeOfSequenceOfFilter(const Handle_SelectMgr_SequenceNodeOfSequenceOfFilter &aHandle); - Handle_SelectMgr_SequenceNodeOfSequenceOfFilter(const SelectMgr_SequenceNodeOfSequenceOfFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_SequenceNodeOfSequenceOfFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_SequenceNodeOfSequenceOfFilter { - SelectMgr_SequenceNodeOfSequenceOfFilter* _get_reference() { - return (SelectMgr_SequenceNodeOfSequenceOfFilter*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_SequenceNodeOfSequenceOfFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_SequenceNodeOfSequenceOfFilter) %extend SelectMgr_SequenceNodeOfSequenceOfFilter { %pythoncode { @@ -2218,51 +1922,7 @@ class SelectMgr_SequenceNodeOfSequenceOfOwner : public TCollection_SeqNode { }; -%extend SelectMgr_SequenceNodeOfSequenceOfOwner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_SequenceNodeOfSequenceOfOwner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_SequenceNodeOfSequenceOfOwner::Handle_SelectMgr_SequenceNodeOfSequenceOfOwner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_SequenceNodeOfSequenceOfOwner; -class Handle_SelectMgr_SequenceNodeOfSequenceOfOwner : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_SelectMgr_SequenceNodeOfSequenceOfOwner(); - Handle_SelectMgr_SequenceNodeOfSequenceOfOwner(const Handle_SelectMgr_SequenceNodeOfSequenceOfOwner &aHandle); - Handle_SelectMgr_SequenceNodeOfSequenceOfOwner(const SelectMgr_SequenceNodeOfSequenceOfOwner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_SequenceNodeOfSequenceOfOwner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_SequenceNodeOfSequenceOfOwner { - SelectMgr_SequenceNodeOfSequenceOfOwner* _get_reference() { - return (SelectMgr_SequenceNodeOfSequenceOfOwner*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_SequenceNodeOfSequenceOfOwner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_SequenceNodeOfSequenceOfOwner) %extend SelectMgr_SequenceNodeOfSequenceOfOwner { %pythoncode { @@ -2289,51 +1949,7 @@ class SelectMgr_SequenceNodeOfSequenceOfSelector : public TCollection_SeqNode { }; -%extend SelectMgr_SequenceNodeOfSequenceOfSelector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_SequenceNodeOfSequenceOfSelector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_SequenceNodeOfSequenceOfSelector::Handle_SelectMgr_SequenceNodeOfSequenceOfSelector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_SequenceNodeOfSequenceOfSelector; -class Handle_SelectMgr_SequenceNodeOfSequenceOfSelector : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_SelectMgr_SequenceNodeOfSequenceOfSelector(); - Handle_SelectMgr_SequenceNodeOfSequenceOfSelector(const Handle_SelectMgr_SequenceNodeOfSequenceOfSelector &aHandle); - Handle_SelectMgr_SequenceNodeOfSequenceOfSelector(const SelectMgr_SequenceNodeOfSequenceOfSelector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_SequenceNodeOfSequenceOfSelector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_SequenceNodeOfSequenceOfSelector { - SelectMgr_SequenceNodeOfSequenceOfSelector* _get_reference() { - return (SelectMgr_SequenceNodeOfSequenceOfSelector*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_SequenceNodeOfSequenceOfSelector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_SequenceNodeOfSequenceOfSelector) %extend SelectMgr_SequenceNodeOfSequenceOfSelector { %pythoncode { @@ -3084,51 +2700,7 @@ class SelectMgr_ViewerSelector : public MMgt_TShared { }; -%extend SelectMgr_ViewerSelector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_ViewerSelector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_ViewerSelector::Handle_SelectMgr_ViewerSelector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_ViewerSelector; -class Handle_SelectMgr_ViewerSelector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_SelectMgr_ViewerSelector(); - Handle_SelectMgr_ViewerSelector(const Handle_SelectMgr_ViewerSelector &aHandle); - Handle_SelectMgr_ViewerSelector(const SelectMgr_ViewerSelector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_ViewerSelector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_ViewerSelector { - SelectMgr_ViewerSelector* _get_reference() { - return (SelectMgr_ViewerSelector*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_ViewerSelector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_ViewerSelector) %extend SelectMgr_ViewerSelector { %pythoncode { @@ -3189,51 +2761,7 @@ class SelectMgr_CompositionFilter : public SelectMgr_Filter { }; -%extend SelectMgr_CompositionFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_CompositionFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_CompositionFilter::Handle_SelectMgr_CompositionFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_CompositionFilter; -class Handle_SelectMgr_CompositionFilter : public Handle_SelectMgr_Filter { - - public: - // constructors - Handle_SelectMgr_CompositionFilter(); - Handle_SelectMgr_CompositionFilter(const Handle_SelectMgr_CompositionFilter &aHandle); - Handle_SelectMgr_CompositionFilter(const SelectMgr_CompositionFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_CompositionFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_CompositionFilter { - SelectMgr_CompositionFilter* _get_reference() { - return (SelectMgr_CompositionFilter*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_CompositionFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_CompositionFilter) %extend SelectMgr_CompositionFilter { %pythoncode { @@ -3258,51 +2786,7 @@ class SelectMgr_AndFilter : public SelectMgr_CompositionFilter { }; -%extend SelectMgr_AndFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_AndFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_AndFilter::Handle_SelectMgr_AndFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_AndFilter; -class Handle_SelectMgr_AndFilter : public Handle_SelectMgr_CompositionFilter { - - public: - // constructors - Handle_SelectMgr_AndFilter(); - Handle_SelectMgr_AndFilter(const Handle_SelectMgr_AndFilter &aHandle); - Handle_SelectMgr_AndFilter(const SelectMgr_AndFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_AndFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_AndFilter { - SelectMgr_AndFilter* _get_reference() { - return (SelectMgr_AndFilter*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_AndFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_AndFilter) %extend SelectMgr_AndFilter { %pythoncode { @@ -3335,51 +2819,7 @@ class SelectMgr_OrFilter : public SelectMgr_CompositionFilter { }; -%extend SelectMgr_OrFilter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_SelectMgr_OrFilter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_SelectMgr_OrFilter::Handle_SelectMgr_OrFilter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_SelectMgr_OrFilter; -class Handle_SelectMgr_OrFilter : public Handle_SelectMgr_CompositionFilter { - - public: - // constructors - Handle_SelectMgr_OrFilter(); - Handle_SelectMgr_OrFilter(const Handle_SelectMgr_OrFilter &aHandle); - Handle_SelectMgr_OrFilter(const SelectMgr_OrFilter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_SelectMgr_OrFilter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_SelectMgr_OrFilter { - SelectMgr_OrFilter* _get_reference() { - return (SelectMgr_OrFilter*)$self->Access(); - } -}; - -%extend Handle_SelectMgr_OrFilter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(SelectMgr_OrFilter) %extend SelectMgr_OrFilter { %pythoncode { diff --git a/src/SWIG_files/wrapper/SelectMgr_headers.i b/src/SWIG_files/wrapper/SelectMgr_headers.i index 6e3a51ace..af9aab066 100644 --- a/src/SWIG_files/wrapper/SelectMgr_headers.i +++ b/src/SWIG_files/wrapper/SelectMgr_headers.i @@ -1089,6 +1089,27 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/ShapeAlgo.i b/src/SWIG_files/wrapper/ShapeAlgo.i index 29f7096f6..13296d97a 100644 --- a/src/SWIG_files/wrapper/ShapeAlgo.i +++ b/src/SWIG_files/wrapper/ShapeAlgo.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define SHAPEALGODOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=SHAPEALGODOCSTRING) ShapeAlgo @@ -34,31 +35,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeAlgo_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeAlgo_ToolContainer) + %rename(shapealgo) ShapeAlgo; class ShapeAlgo { public: @@ -114,51 +103,7 @@ class ShapeAlgo_ToolContainer : public MMgt_TShared { }; -%extend ShapeAlgo_ToolContainer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAlgo_ToolContainer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAlgo_ToolContainer::Handle_ShapeAlgo_ToolContainer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAlgo_ToolContainer; -class Handle_ShapeAlgo_ToolContainer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeAlgo_ToolContainer(); - Handle_ShapeAlgo_ToolContainer(const Handle_ShapeAlgo_ToolContainer &aHandle); - Handle_ShapeAlgo_ToolContainer(const ShapeAlgo_ToolContainer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAlgo_ToolContainer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAlgo_ToolContainer { - ShapeAlgo_ToolContainer* _get_reference() { - return (ShapeAlgo_ToolContainer*)$self->Access(); - } -}; - -%extend Handle_ShapeAlgo_ToolContainer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAlgo_ToolContainer) %extend ShapeAlgo_ToolContainer { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeAnalysis.i b/src/SWIG_files/wrapper/ShapeAnalysis.i index 8138556d8..69248f84d 100644 --- a/src/SWIG_files/wrapper/ShapeAnalysis.i +++ b/src/SWIG_files/wrapper/ShapeAnalysis.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define SHAPEANALYSISDOCSTRING -"No docstring provided." +"This package is intended to analyze geometrical objects +and topological shapes. Analysis domain includes both +exploring geometrical and topological properties of +shapes and checking their conformance to Open CASCADE requirements. +The directions of analysis provided by tools of this package are: +computing quantities of subshapes, +computing parameters of points on curve and surface, +computing surface singularities, +checking edge and wire consistency, +checking edges order in the wire, +checking face bounds orientation, +checking small faces, +analyzing shape tolerances, +analyzing of free bounds of the shape. +" %enddef %module (package="OCC.Core", docstring=SHAPEANALYSISDOCSTRING) ShapeAnalysis @@ -34,25 +48,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeAnalysis_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_UBTree ShapeAnalysis_BoxBndTree; /* end typedefs declaration */ @@ -60,6 +60,15 @@ typedef NCollection_UBTree ShapeAnalysis_BoxBndTree /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal) +%wrap_handle(ShapeAnalysis_FreeBoundData) +%wrap_handle(ShapeAnalysis_HSequenceOfFreeBounds) +%wrap_handle(ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds) +%wrap_handle(ShapeAnalysis_Surface) +%wrap_handle(ShapeAnalysis_TransferParameters) +%wrap_handle(ShapeAnalysis_Wire) +%wrap_handle(ShapeAnalysis_TransferParametersProj) + %rename(shapeanalysis) ShapeAnalysis; class ShapeAnalysis { public: @@ -695,51 +704,7 @@ class ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal : public TCollection_M }; -%extend ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal::Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal; -class Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal(); - Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal(const Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal &aHandle); - Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal(const ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal { - ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal* _get_reference() { - return (ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal) %extend ShapeAnalysis_DataMapNodeOfDataMapOfShapeListOfReal { %pythoncode { @@ -1312,51 +1277,7 @@ class ShapeAnalysis_FreeBoundData : public MMgt_TShared { }; -%extend ShapeAnalysis_FreeBoundData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_FreeBoundData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_FreeBoundData::Handle_ShapeAnalysis_FreeBoundData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_FreeBoundData; -class Handle_ShapeAnalysis_FreeBoundData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeAnalysis_FreeBoundData(); - Handle_ShapeAnalysis_FreeBoundData(const Handle_ShapeAnalysis_FreeBoundData &aHandle); - Handle_ShapeAnalysis_FreeBoundData(const ShapeAnalysis_FreeBoundData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_FreeBoundData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_FreeBoundData { - ShapeAnalysis_FreeBoundData* _get_reference() { - return (ShapeAnalysis_FreeBoundData*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_FreeBoundData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_FreeBoundData) %extend ShapeAnalysis_FreeBoundData { %pythoncode { @@ -1849,51 +1770,7 @@ class ShapeAnalysis_HSequenceOfFreeBounds : public MMgt_TShared { }; -%extend ShapeAnalysis_HSequenceOfFreeBounds { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_HSequenceOfFreeBounds(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_HSequenceOfFreeBounds::Handle_ShapeAnalysis_HSequenceOfFreeBounds %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_HSequenceOfFreeBounds; -class Handle_ShapeAnalysis_HSequenceOfFreeBounds : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeAnalysis_HSequenceOfFreeBounds(); - Handle_ShapeAnalysis_HSequenceOfFreeBounds(const Handle_ShapeAnalysis_HSequenceOfFreeBounds &aHandle); - Handle_ShapeAnalysis_HSequenceOfFreeBounds(const ShapeAnalysis_HSequenceOfFreeBounds *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_HSequenceOfFreeBounds DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_HSequenceOfFreeBounds { - ShapeAnalysis_HSequenceOfFreeBounds* _get_reference() { - return (ShapeAnalysis_HSequenceOfFreeBounds*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_HSequenceOfFreeBounds { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_HSequenceOfFreeBounds) %extend ShapeAnalysis_HSequenceOfFreeBounds { %pythoncode { @@ -1920,51 +1797,7 @@ class ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds : public TCollection_SeqN }; -%extend ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds::Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds; -class Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds(); - Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds(const Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds &aHandle); - Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds(const ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds { - ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds* _get_reference() { - return (ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds) %extend ShapeAnalysis_SequenceNodeOfSequenceOfFreeBounds { %pythoncode { @@ -2866,51 +2699,7 @@ class ShapeAnalysis_Surface : public MMgt_TShared { }; -%extend ShapeAnalysis_Surface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_Surface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_Surface::Handle_ShapeAnalysis_Surface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_Surface; -class Handle_ShapeAnalysis_Surface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeAnalysis_Surface(); - Handle_ShapeAnalysis_Surface(const Handle_ShapeAnalysis_Surface &aHandle); - Handle_ShapeAnalysis_Surface(const ShapeAnalysis_Surface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_Surface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_Surface { - ShapeAnalysis_Surface* _get_reference() { - return (ShapeAnalysis_Surface*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_Surface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_Surface) %extend ShapeAnalysis_Surface { %pythoncode { @@ -2997,51 +2786,7 @@ class ShapeAnalysis_TransferParameters : public MMgt_TShared { }; -%extend ShapeAnalysis_TransferParameters { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_TransferParameters(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_TransferParameters::Handle_ShapeAnalysis_TransferParameters %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_TransferParameters; -class Handle_ShapeAnalysis_TransferParameters : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeAnalysis_TransferParameters(); - Handle_ShapeAnalysis_TransferParameters(const Handle_ShapeAnalysis_TransferParameters &aHandle); - Handle_ShapeAnalysis_TransferParameters(const ShapeAnalysis_TransferParameters *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_TransferParameters DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_TransferParameters { - ShapeAnalysis_TransferParameters* _get_reference() { - return (ShapeAnalysis_TransferParameters*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_TransferParameters { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_TransferParameters) %extend ShapeAnalysis_TransferParameters { %pythoncode { @@ -3670,51 +3415,7 @@ class ShapeAnalysis_Wire : public MMgt_TShared { }; -%extend ShapeAnalysis_Wire { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_Wire(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_Wire::Handle_ShapeAnalysis_Wire %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_Wire; -class Handle_ShapeAnalysis_Wire : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeAnalysis_Wire(); - Handle_ShapeAnalysis_Wire(const Handle_ShapeAnalysis_Wire &aHandle); - Handle_ShapeAnalysis_Wire(const ShapeAnalysis_Wire *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_Wire DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_Wire { - ShapeAnalysis_Wire* _get_reference() { - return (ShapeAnalysis_Wire*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_Wire { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_Wire) %extend ShapeAnalysis_Wire { %pythoncode { @@ -4237,51 +3938,7 @@ class ShapeAnalysis_TransferParametersProj : public ShapeAnalysis_TransferParame }; -%extend ShapeAnalysis_TransferParametersProj { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeAnalysis_TransferParametersProj(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeAnalysis_TransferParametersProj::Handle_ShapeAnalysis_TransferParametersProj %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeAnalysis_TransferParametersProj; -class Handle_ShapeAnalysis_TransferParametersProj : public Handle_ShapeAnalysis_TransferParameters { - - public: - // constructors - Handle_ShapeAnalysis_TransferParametersProj(); - Handle_ShapeAnalysis_TransferParametersProj(const Handle_ShapeAnalysis_TransferParametersProj &aHandle); - Handle_ShapeAnalysis_TransferParametersProj(const ShapeAnalysis_TransferParametersProj *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeAnalysis_TransferParametersProj DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeAnalysis_TransferParametersProj { - ShapeAnalysis_TransferParametersProj* _get_reference() { - return (ShapeAnalysis_TransferParametersProj*)$self->Access(); - } -}; - -%extend Handle_ShapeAnalysis_TransferParametersProj { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeAnalysis_TransferParametersProj) %extend ShapeAnalysis_TransferParametersProj { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeBuild.i b/src/SWIG_files/wrapper/ShapeBuild.i index f7c6fcf31..915e9389d 100644 --- a/src/SWIG_files/wrapper/ShapeBuild.i +++ b/src/SWIG_files/wrapper/ShapeBuild.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define SHAPEBUILDDOCSTRING -"No docstring provided." +"This package provides basic building tools for other packages in ShapeHealing. +These tools are rather internal for ShapeHealing . +" %enddef %module (package="OCC.Core", docstring=SHAPEBUILDDOCSTRING) ShapeBuild @@ -34,31 +36,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeBuild_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeBuild_ReShape) + %rename(shapebuild) ShapeBuild; class ShapeBuild { public: @@ -374,51 +364,7 @@ class ShapeBuild_ReShape : public BRepTools_ReShape { }; -%extend ShapeBuild_ReShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeBuild_ReShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeBuild_ReShape::Handle_ShapeBuild_ReShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeBuild_ReShape; -class Handle_ShapeBuild_ReShape : public Handle_BRepTools_ReShape { - - public: - // constructors - Handle_ShapeBuild_ReShape(); - Handle_ShapeBuild_ReShape(const Handle_ShapeBuild_ReShape &aHandle); - Handle_ShapeBuild_ReShape(const ShapeBuild_ReShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeBuild_ReShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeBuild_ReShape { - ShapeBuild_ReShape* _get_reference() { - return (ShapeBuild_ReShape*)$self->Access(); - } -}; - -%extend Handle_ShapeBuild_ReShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeBuild_ReShape) %extend ShapeBuild_ReShape { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeConstruct.i b/src/SWIG_files/wrapper/ShapeConstruct.i index 34290764e..2e0b8054b 100644 --- a/src/SWIG_files/wrapper/ShapeConstruct.i +++ b/src/SWIG_files/wrapper/ShapeConstruct.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define SHAPECONSTRUCTDOCSTRING -"No docstring provided." +"This package provides new algorithms for constructing +new geometrical objects and topological shapes. It +complements and extends algorithms available in Open +CASCADE topological and geometrical toolkist. +The functionality provided by this package are the +following: +projecting curves on surface, +adjusting curve to have given start and end points. P" %enddef %module (package="OCC.Core", docstring=SHAPECONSTRUCTDOCSTRING) ShapeConstruct @@ -34,31 +41,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeConstruct_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeConstruct_ProjectCurveOnSurface) + %rename(shapeconstruct) ShapeConstruct; class ShapeConstruct { public: @@ -589,51 +584,7 @@ class ShapeConstruct_ProjectCurveOnSurface : public MMgt_TShared { }; -%extend ShapeConstruct_ProjectCurveOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeConstruct_ProjectCurveOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeConstruct_ProjectCurveOnSurface::Handle_ShapeConstruct_ProjectCurveOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeConstruct_ProjectCurveOnSurface; -class Handle_ShapeConstruct_ProjectCurveOnSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeConstruct_ProjectCurveOnSurface(); - Handle_ShapeConstruct_ProjectCurveOnSurface(const Handle_ShapeConstruct_ProjectCurveOnSurface &aHandle); - Handle_ShapeConstruct_ProjectCurveOnSurface(const ShapeConstruct_ProjectCurveOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeConstruct_ProjectCurveOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeConstruct_ProjectCurveOnSurface { - ShapeConstruct_ProjectCurveOnSurface* _get_reference() { - return (ShapeConstruct_ProjectCurveOnSurface*)$self->Access(); - } -}; - -%extend Handle_ShapeConstruct_ProjectCurveOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeConstruct_ProjectCurveOnSurface) %extend ShapeConstruct_ProjectCurveOnSurface { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeCustom.i b/src/SWIG_files/wrapper/ShapeCustom.i index befbf9c0b..64bb9876d 100644 --- a/src/SWIG_files/wrapper/ShapeCustom.i +++ b/src/SWIG_files/wrapper/ShapeCustom.i @@ -18,7 +18,20 @@ along with pythonOCC. If not, see . */ %define SHAPECUSTOMDOCSTRING -"No docstring provided." +"This package is intended to +convert geometrical objects and topological. The +modifications of one geometrical object to another +(one) geometrical object are provided. The supported +modifications are the following: +conversion of BSpline and Bezier surfaces to analytical form, +conversion of indirect elementary surfaces (with left-handed +coordinate systems) into direct ones, +conversion of elementary surfaces to surfaces of revolution, +conversion of surface of linear extrusion, revolution, offset +surface to bspline, +modification of parameterization, degree, number of segments of bspline +surfaces, scale the shape. +" %enddef %module (package="OCC.Core", docstring=SHAPECUSTOMDOCSTRING) ShapeCustom @@ -34,31 +47,23 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeCustom_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeCustom_Modification) +%wrap_handle(ShapeCustom_RestrictionParameters) +%wrap_handle(ShapeCustom_TrsfModification) +%wrap_handle(ShapeCustom_ConvertToBSpline) +%wrap_handle(ShapeCustom_DirectModification) + %rename(shapecustom) ShapeCustom; class ShapeCustom { public: @@ -285,51 +290,7 @@ class ShapeCustom_Modification : public BRepTools_Modification { }; -%extend ShapeCustom_Modification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeCustom_Modification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeCustom_Modification::Handle_ShapeCustom_Modification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeCustom_Modification; -class Handle_ShapeCustom_Modification : public Handle_BRepTools_Modification { - - public: - // constructors - Handle_ShapeCustom_Modification(); - Handle_ShapeCustom_Modification(const Handle_ShapeCustom_Modification &aHandle); - Handle_ShapeCustom_Modification(const ShapeCustom_Modification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeCustom_Modification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeCustom_Modification { - ShapeCustom_Modification* _get_reference() { - return (ShapeCustom_Modification*)$self->Access(); - } -}; - -%extend Handle_ShapeCustom_Modification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeCustom_Modification) %extend ShapeCustom_Modification { %pythoncode { @@ -556,51 +517,7 @@ class ShapeCustom_RestrictionParameters : public MMgt_TShared { }; -%extend ShapeCustom_RestrictionParameters { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeCustom_RestrictionParameters(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeCustom_RestrictionParameters::Handle_ShapeCustom_RestrictionParameters %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeCustom_RestrictionParameters; -class Handle_ShapeCustom_RestrictionParameters : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeCustom_RestrictionParameters(); - Handle_ShapeCustom_RestrictionParameters(const Handle_ShapeCustom_RestrictionParameters &aHandle); - Handle_ShapeCustom_RestrictionParameters(const ShapeCustom_RestrictionParameters *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeCustom_RestrictionParameters DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeCustom_RestrictionParameters { - ShapeCustom_RestrictionParameters* _get_reference() { - return (ShapeCustom_RestrictionParameters*)$self->Access(); - } -}; - -%extend Handle_ShapeCustom_RestrictionParameters { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeCustom_RestrictionParameters) %extend ShapeCustom_RestrictionParameters { %pythoncode { @@ -750,51 +667,7 @@ class ShapeCustom_TrsfModification : public BRepTools_TrsfModification { }; -%extend ShapeCustom_TrsfModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeCustom_TrsfModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeCustom_TrsfModification::Handle_ShapeCustom_TrsfModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeCustom_TrsfModification; -class Handle_ShapeCustom_TrsfModification : public Handle_BRepTools_TrsfModification { - - public: - // constructors - Handle_ShapeCustom_TrsfModification(); - Handle_ShapeCustom_TrsfModification(const Handle_ShapeCustom_TrsfModification &aHandle); - Handle_ShapeCustom_TrsfModification(const ShapeCustom_TrsfModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeCustom_TrsfModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeCustom_TrsfModification { - ShapeCustom_TrsfModification* _get_reference() { - return (ShapeCustom_TrsfModification*)$self->Access(); - } -}; - -%extend Handle_ShapeCustom_TrsfModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeCustom_TrsfModification) %extend ShapeCustom_TrsfModification { %pythoncode { @@ -937,51 +810,7 @@ class ShapeCustom_ConvertToBSpline : public ShapeCustom_Modification { }; -%extend ShapeCustom_ConvertToBSpline { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeCustom_ConvertToBSpline(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeCustom_ConvertToBSpline::Handle_ShapeCustom_ConvertToBSpline %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeCustom_ConvertToBSpline; -class Handle_ShapeCustom_ConvertToBSpline : public Handle_ShapeCustom_Modification { - - public: - // constructors - Handle_ShapeCustom_ConvertToBSpline(); - Handle_ShapeCustom_ConvertToBSpline(const Handle_ShapeCustom_ConvertToBSpline &aHandle); - Handle_ShapeCustom_ConvertToBSpline(const ShapeCustom_ConvertToBSpline *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeCustom_ConvertToBSpline DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeCustom_ConvertToBSpline { - ShapeCustom_ConvertToBSpline* _get_reference() { - return (ShapeCustom_ConvertToBSpline*)$self->Access(); - } -}; - -%extend Handle_ShapeCustom_ConvertToBSpline { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeCustom_ConvertToBSpline) %extend ShapeCustom_ConvertToBSpline { %pythoncode { @@ -1092,51 +921,7 @@ class ShapeCustom_DirectModification : public ShapeCustom_Modification { }; -%extend ShapeCustom_DirectModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeCustom_DirectModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeCustom_DirectModification::Handle_ShapeCustom_DirectModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeCustom_DirectModification; -class Handle_ShapeCustom_DirectModification : public Handle_ShapeCustom_Modification { - - public: - // constructors - Handle_ShapeCustom_DirectModification(); - Handle_ShapeCustom_DirectModification(const Handle_ShapeCustom_DirectModification &aHandle); - Handle_ShapeCustom_DirectModification(const ShapeCustom_DirectModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeCustom_DirectModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeCustom_DirectModification { - ShapeCustom_DirectModification* _get_reference() { - return (ShapeCustom_DirectModification*)$self->Access(); - } -}; - -%extend Handle_ShapeCustom_DirectModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeCustom_DirectModification) %extend ShapeCustom_DirectModification { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeExtend.i b/src/SWIG_files/wrapper/ShapeExtend.i index 24b0b3194..55ae49a96 100644 --- a/src/SWIG_files/wrapper/ShapeExtend.i +++ b/src/SWIG_files/wrapper/ShapeExtend.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define SHAPEEXTENDDOCSTRING -"No docstring provided." +"This package provides general tools and data structures common +for other packages in SHAPEWORKS and extending CAS.CADE +structures. +The following items are provided by this package: +- enumeration Status used for coding status flags in methods +inside the SHAPEWORKS +- enumeration Parametrisation used for setting global parametrisation +on the composite surface +- class CompositeSurface representing a composite surface +made of a grid of surface patches +- class WireData representing a wire in the form of ordered +list of edges +- class MsgRegistrator for attaching messages to the objects +- tools for exploring the shapes +- tools for creating new shapes." %enddef %module (package="OCC.Core", docstring=SHAPEEXTENDDOCSTRING) ShapeExtend @@ -34,25 +48,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeExtend_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -87,6 +87,14 @@ enum ShapeExtend_Parametrisation { /* end public enums declaration */ +%wrap_handle(ShapeExtend_BasicMsgRegistrator) +%wrap_handle(ShapeExtend_ComplexCurve) +%wrap_handle(ShapeExtend_CompositeSurface) +%wrap_handle(ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg) +%wrap_handle(ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg) +%wrap_handle(ShapeExtend_WireData) +%wrap_handle(ShapeExtend_MsgRegistrator) + %rename(shapeextend) ShapeExtend; class ShapeExtend { public: @@ -168,51 +176,7 @@ class ShapeExtend_BasicMsgRegistrator : public MMgt_TShared { }; -%extend ShapeExtend_BasicMsgRegistrator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_BasicMsgRegistrator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_BasicMsgRegistrator::Handle_ShapeExtend_BasicMsgRegistrator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_BasicMsgRegistrator; -class Handle_ShapeExtend_BasicMsgRegistrator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeExtend_BasicMsgRegistrator(); - Handle_ShapeExtend_BasicMsgRegistrator(const Handle_ShapeExtend_BasicMsgRegistrator &aHandle); - Handle_ShapeExtend_BasicMsgRegistrator(const ShapeExtend_BasicMsgRegistrator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_BasicMsgRegistrator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_BasicMsgRegistrator { - ShapeExtend_BasicMsgRegistrator* _get_reference() { - return (ShapeExtend_BasicMsgRegistrator*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_BasicMsgRegistrator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_BasicMsgRegistrator) %extend ShapeExtend_BasicMsgRegistrator { %pythoncode { @@ -383,51 +347,7 @@ class ShapeExtend_ComplexCurve : public Geom_Curve { }; -%extend ShapeExtend_ComplexCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_ComplexCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_ComplexCurve::Handle_ShapeExtend_ComplexCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_ComplexCurve; -class Handle_ShapeExtend_ComplexCurve : public Handle_Geom_Curve { - - public: - // constructors - Handle_ShapeExtend_ComplexCurve(); - Handle_ShapeExtend_ComplexCurve(const Handle_ShapeExtend_ComplexCurve &aHandle); - Handle_ShapeExtend_ComplexCurve(const ShapeExtend_ComplexCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_ComplexCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_ComplexCurve { - ShapeExtend_ComplexCurve* _get_reference() { - return (ShapeExtend_ComplexCurve*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_ComplexCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_ComplexCurve) %extend ShapeExtend_ComplexCurve { %pythoncode { @@ -946,51 +866,7 @@ class ShapeExtend_CompositeSurface : public Geom_Surface { }; -%extend ShapeExtend_CompositeSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_CompositeSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_CompositeSurface::Handle_ShapeExtend_CompositeSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_CompositeSurface; -class Handle_ShapeExtend_CompositeSurface : public Handle_Geom_Surface { - - public: - // constructors - Handle_ShapeExtend_CompositeSurface(); - Handle_ShapeExtend_CompositeSurface(const Handle_ShapeExtend_CompositeSurface &aHandle); - Handle_ShapeExtend_CompositeSurface(const ShapeExtend_CompositeSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_CompositeSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_CompositeSurface { - ShapeExtend_CompositeSurface* _get_reference() { - return (ShapeExtend_CompositeSurface*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_CompositeSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_CompositeSurface) %extend ShapeExtend_CompositeSurface { %pythoncode { @@ -1091,51 +967,7 @@ class ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg : public TCollection_MapN }; -%extend ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg::Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg; -class Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg(); - Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg(const Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg &aHandle); - Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg(const ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg { - ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg* _get_reference() { - return (ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg) %extend ShapeExtend_DataMapNodeOfDataMapOfShapeListOfMsg { %pythoncode { @@ -1166,51 +998,7 @@ class ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg : public TCollection_ }; -%extend ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg::Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg; -class Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg(); - Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg(const Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg &aHandle); - Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg(const ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg { - ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg* _get_reference() { - return (ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg) %extend ShapeExtend_DataMapNodeOfDataMapOfTransientListOfMsg { %pythoncode { @@ -1735,51 +1523,7 @@ class ShapeExtend_WireData : public MMgt_TShared { }; -%extend ShapeExtend_WireData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_WireData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_WireData::Handle_ShapeExtend_WireData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_WireData; -class Handle_ShapeExtend_WireData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeExtend_WireData(); - Handle_ShapeExtend_WireData(const Handle_ShapeExtend_WireData &aHandle); - Handle_ShapeExtend_WireData(const ShapeExtend_WireData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_WireData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_WireData { - ShapeExtend_WireData* _get_reference() { - return (ShapeExtend_WireData*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_WireData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_WireData) %extend ShapeExtend_WireData { %pythoncode { @@ -1834,51 +1578,7 @@ class ShapeExtend_MsgRegistrator : public ShapeExtend_BasicMsgRegistrator { }; -%extend ShapeExtend_MsgRegistrator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeExtend_MsgRegistrator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeExtend_MsgRegistrator::Handle_ShapeExtend_MsgRegistrator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeExtend_MsgRegistrator; -class Handle_ShapeExtend_MsgRegistrator : public Handle_ShapeExtend_BasicMsgRegistrator { - - public: - // constructors - Handle_ShapeExtend_MsgRegistrator(); - Handle_ShapeExtend_MsgRegistrator(const Handle_ShapeExtend_MsgRegistrator &aHandle); - Handle_ShapeExtend_MsgRegistrator(const ShapeExtend_MsgRegistrator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeExtend_MsgRegistrator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeExtend_MsgRegistrator { - ShapeExtend_MsgRegistrator* _get_reference() { - return (ShapeExtend_MsgRegistrator*)$self->Access(); - } -}; - -%extend Handle_ShapeExtend_MsgRegistrator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeExtend_MsgRegistrator) %extend ShapeExtend_MsgRegistrator { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeFix.i b/src/SWIG_files/wrapper/ShapeFix.i index 7d33e4604..1ab777543 100644 --- a/src/SWIG_files/wrapper/ShapeFix.i +++ b/src/SWIG_files/wrapper/ShapeFix.i @@ -18,7 +18,14 @@ along with pythonOCC. If not, see . */ %define SHAPEFIXDOCSTRING -"No docstring provided." +"This package provides algorithms for fixing +problematic (violating Open CASCADE requirements) shapes. +Tools from package ShapeAnalysis are used for detecting the problems. The +detecting and fixing is done taking in account various +criteria implemented in BRepCheck package. +Each class of package ShapeFix deals with one +certain type of shapes or with some family of problems. +" %enddef %module (package="OCC.Core", docstring=SHAPEFIXDOCSTRING) ShapeFix @@ -34,31 +41,33 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeFix_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeFix_DataMapNodeOfDataMapOfShapeBox2d) +%wrap_handle(ShapeFix_Edge) +%wrap_handle(ShapeFix_EdgeProjAux) +%wrap_handle(ShapeFix_Root) +%wrap_handle(ShapeFix_SequenceNodeOfSequenceOfWireSegment) +%wrap_handle(ShapeFix_ComposeShell) +%wrap_handle(ShapeFix_Face) +%wrap_handle(ShapeFix_FixSmallFace) +%wrap_handle(ShapeFix_FixSmallSolid) +%wrap_handle(ShapeFix_Shape) +%wrap_handle(ShapeFix_Shell) +%wrap_handle(ShapeFix_Solid) +%wrap_handle(ShapeFix_SplitCommonVertex) +%wrap_handle(ShapeFix_Wire) +%wrap_handle(ShapeFix_Wireframe) + %rename(shapefix) ShapeFix; class ShapeFix { public: @@ -187,51 +196,7 @@ class ShapeFix_DataMapNodeOfDataMapOfShapeBox2d : public TCollection_MapNode { }; -%extend ShapeFix_DataMapNodeOfDataMapOfShapeBox2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d::Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d; -class Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d(); - Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d(const Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d &aHandle); - Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d(const ShapeFix_DataMapNodeOfDataMapOfShapeBox2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d { - ShapeFix_DataMapNodeOfDataMapOfShapeBox2d* _get_reference() { - return (ShapeFix_DataMapNodeOfDataMapOfShapeBox2d*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_DataMapNodeOfDataMapOfShapeBox2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_DataMapNodeOfDataMapOfShapeBox2d) %extend ShapeFix_DataMapNodeOfDataMapOfShapeBox2d { %pythoncode { @@ -493,51 +458,7 @@ class ShapeFix_Edge : public MMgt_TShared { }; -%extend ShapeFix_Edge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Edge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Edge::Handle_ShapeFix_Edge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Edge; -class Handle_ShapeFix_Edge : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeFix_Edge(); - Handle_ShapeFix_Edge(const Handle_ShapeFix_Edge &aHandle); - Handle_ShapeFix_Edge(const ShapeFix_Edge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Edge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Edge { - ShapeFix_Edge* _get_reference() { - return (ShapeFix_Edge*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Edge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Edge) %extend ShapeFix_Edge { %pythoncode { @@ -643,51 +564,7 @@ class ShapeFix_EdgeProjAux : public MMgt_TShared { }; -%extend ShapeFix_EdgeProjAux { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_EdgeProjAux(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_EdgeProjAux::Handle_ShapeFix_EdgeProjAux %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_EdgeProjAux; -class Handle_ShapeFix_EdgeProjAux : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeFix_EdgeProjAux(); - Handle_ShapeFix_EdgeProjAux(const Handle_ShapeFix_EdgeProjAux &aHandle); - Handle_ShapeFix_EdgeProjAux(const ShapeFix_EdgeProjAux *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_EdgeProjAux DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_EdgeProjAux { - ShapeFix_EdgeProjAux* _get_reference() { - return (ShapeFix_EdgeProjAux*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_EdgeProjAux { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_EdgeProjAux) %extend ShapeFix_EdgeProjAux { %pythoncode { @@ -1039,51 +916,7 @@ class ShapeFix_Root : public MMgt_TShared { }; -%extend ShapeFix_Root { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Root(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Root::Handle_ShapeFix_Root %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Root; -class Handle_ShapeFix_Root : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeFix_Root(); - Handle_ShapeFix_Root(const Handle_ShapeFix_Root &aHandle); - Handle_ShapeFix_Root(const ShapeFix_Root *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Root DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Root { - ShapeFix_Root* _get_reference() { - return (ShapeFix_Root*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Root { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Root) %extend ShapeFix_Root { %pythoncode { @@ -1110,51 +943,7 @@ class ShapeFix_SequenceNodeOfSequenceOfWireSegment : public TCollection_SeqNode }; -%extend ShapeFix_SequenceNodeOfSequenceOfWireSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment::Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment; -class Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment(); - Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment(const Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment &aHandle); - Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment(const ShapeFix_SequenceNodeOfSequenceOfWireSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment { - ShapeFix_SequenceNodeOfSequenceOfWireSegment* _get_reference() { - return (ShapeFix_SequenceNodeOfSequenceOfWireSegment*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_SequenceNodeOfSequenceOfWireSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_SequenceNodeOfSequenceOfWireSegment) %extend ShapeFix_SequenceNodeOfSequenceOfWireSegment { %pythoncode { @@ -1614,51 +1403,7 @@ class ShapeFix_ComposeShell : public ShapeFix_Root { }; -%extend ShapeFix_ComposeShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_ComposeShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_ComposeShell::Handle_ShapeFix_ComposeShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_ComposeShell; -class Handle_ShapeFix_ComposeShell : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_ComposeShell(); - Handle_ShapeFix_ComposeShell(const Handle_ShapeFix_ComposeShell &aHandle); - Handle_ShapeFix_ComposeShell(const ShapeFix_ComposeShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_ComposeShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_ComposeShell { - ShapeFix_ComposeShell* _get_reference() { - return (ShapeFix_ComposeShell*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_ComposeShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_ComposeShell) %extend ShapeFix_ComposeShell { %pythoncode { @@ -2006,51 +1751,7 @@ class ShapeFix_Face : public ShapeFix_Root { }; -%extend ShapeFix_Face { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Face(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Face::Handle_ShapeFix_Face %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Face; -class Handle_ShapeFix_Face : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_Face(); - Handle_ShapeFix_Face(const Handle_ShapeFix_Face &aHandle); - Handle_ShapeFix_Face(const ShapeFix_Face *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Face DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Face { - ShapeFix_Face* _get_reference() { - return (ShapeFix_Face*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Face { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Face) %extend ShapeFix_Face { %pythoncode { @@ -2185,51 +1886,7 @@ class ShapeFix_FixSmallFace : public ShapeFix_Root { }; -%extend ShapeFix_FixSmallFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_FixSmallFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_FixSmallFace::Handle_ShapeFix_FixSmallFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_FixSmallFace; -class Handle_ShapeFix_FixSmallFace : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_FixSmallFace(); - Handle_ShapeFix_FixSmallFace(const Handle_ShapeFix_FixSmallFace &aHandle); - Handle_ShapeFix_FixSmallFace(const ShapeFix_FixSmallFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_FixSmallFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_FixSmallFace { - ShapeFix_FixSmallFace* _get_reference() { - return (ShapeFix_FixSmallFace*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_FixSmallFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_FixSmallFace) %extend ShapeFix_FixSmallFace { %pythoncode { @@ -2292,51 +1949,7 @@ class ShapeFix_FixSmallSolid : public ShapeFix_Root { }; -%extend ShapeFix_FixSmallSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_FixSmallSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_FixSmallSolid::Handle_ShapeFix_FixSmallSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_FixSmallSolid; -class Handle_ShapeFix_FixSmallSolid : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_FixSmallSolid(); - Handle_ShapeFix_FixSmallSolid(const Handle_ShapeFix_FixSmallSolid &aHandle); - Handle_ShapeFix_FixSmallSolid(const ShapeFix_FixSmallSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_FixSmallSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_FixSmallSolid { - ShapeFix_FixSmallSolid* _get_reference() { - return (ShapeFix_FixSmallSolid*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_FixSmallSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_FixSmallSolid) %extend ShapeFix_FixSmallSolid { %pythoncode { @@ -2546,51 +2159,7 @@ class ShapeFix_Shape : public ShapeFix_Root { }; -%extend ShapeFix_Shape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Shape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Shape::Handle_ShapeFix_Shape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Shape; -class Handle_ShapeFix_Shape : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_Shape(); - Handle_ShapeFix_Shape(const Handle_ShapeFix_Shape &aHandle); - Handle_ShapeFix_Shape(const ShapeFix_Shape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Shape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Shape { - ShapeFix_Shape* _get_reference() { - return (ShapeFix_Shape*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Shape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Shape) %extend ShapeFix_Shape { %pythoncode { @@ -2741,51 +2310,7 @@ class ShapeFix_Shell : public ShapeFix_Root { }; -%extend ShapeFix_Shell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Shell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Shell::Handle_ShapeFix_Shell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Shell; -class Handle_ShapeFix_Shell : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_Shell(); - Handle_ShapeFix_Shell(const Handle_ShapeFix_Shell &aHandle); - Handle_ShapeFix_Shell(const ShapeFix_Shell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Shell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Shell { - ShapeFix_Shell* _get_reference() { - return (ShapeFix_Shell*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Shell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Shell) %extend ShapeFix_Shell { %pythoncode { @@ -2920,51 +2445,7 @@ class ShapeFix_Solid : public ShapeFix_Root { }; -%extend ShapeFix_Solid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Solid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Solid::Handle_ShapeFix_Solid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Solid; -class Handle_ShapeFix_Solid : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_Solid(); - Handle_ShapeFix_Solid(const Handle_ShapeFix_Solid &aHandle); - Handle_ShapeFix_Solid(const ShapeFix_Solid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Solid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Solid { - ShapeFix_Solid* _get_reference() { - return (ShapeFix_Solid*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Solid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Solid) %extend ShapeFix_Solid { %pythoncode { @@ -2995,51 +2476,7 @@ class ShapeFix_SplitCommonVertex : public ShapeFix_Root { }; -%extend ShapeFix_SplitCommonVertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_SplitCommonVertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_SplitCommonVertex::Handle_ShapeFix_SplitCommonVertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_SplitCommonVertex; -class Handle_ShapeFix_SplitCommonVertex : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_SplitCommonVertex(); - Handle_ShapeFix_SplitCommonVertex(const Handle_ShapeFix_SplitCommonVertex &aHandle); - Handle_ShapeFix_SplitCommonVertex(const ShapeFix_SplitCommonVertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_SplitCommonVertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_SplitCommonVertex { - ShapeFix_SplitCommonVertex* _get_reference() { - return (ShapeFix_SplitCommonVertex*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_SplitCommonVertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_SplitCommonVertex) %extend ShapeFix_SplitCommonVertex { %pythoncode { @@ -3851,51 +3288,7 @@ class ShapeFix_Wire : public ShapeFix_Root { }; -%extend ShapeFix_Wire { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Wire(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Wire::Handle_ShapeFix_Wire %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Wire; -class Handle_ShapeFix_Wire : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_Wire(); - Handle_ShapeFix_Wire(const Handle_ShapeFix_Wire &aHandle); - Handle_ShapeFix_Wire(const ShapeFix_Wire *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Wire DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Wire { - ShapeFix_Wire* _get_reference() { - return (ShapeFix_Wire*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Wire { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Wire) %extend ShapeFix_Wire { %pythoncode { @@ -4023,51 +3416,7 @@ class ShapeFix_Wireframe : public ShapeFix_Root { }; -%extend ShapeFix_Wireframe { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeFix_Wireframe(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeFix_Wireframe::Handle_ShapeFix_Wireframe %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeFix_Wireframe; -class Handle_ShapeFix_Wireframe : public Handle_ShapeFix_Root { - - public: - // constructors - Handle_ShapeFix_Wireframe(); - Handle_ShapeFix_Wireframe(const Handle_ShapeFix_Wireframe &aHandle); - Handle_ShapeFix_Wireframe(const ShapeFix_Wireframe *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeFix_Wireframe DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeFix_Wireframe { - ShapeFix_Wireframe* _get_reference() { - return (ShapeFix_Wireframe*)$self->Access(); - } -}; - -%extend Handle_ShapeFix_Wireframe { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeFix_Wireframe) %extend ShapeFix_Wireframe { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeProcess.i b/src/SWIG_files/wrapper/ShapeProcess.i index 2a9d0d8b9..5e056d291 100644 --- a/src/SWIG_files/wrapper/ShapeProcess.i +++ b/src/SWIG_files/wrapper/ShapeProcess.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define SHAPEPROCESSDOCSTRING -"No docstring provided." +"Shape Processing module +allows to define and apply general Shape Processing as a +customizable sequence of Shape Healing operators. The +customization is implemented via user-editable resource +file which defines sequence of operators to be executed +and their parameters. +" %enddef %module (package="OCC.Core", docstring=SHAPEPROCESSDOCSTRING) ShapeProcess @@ -34,25 +40,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeProcess_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Standard_Boolean ( * ShapeProcess_OperFunc ) ( const Handle_ShapeProcess_Context & context ); /* end typedefs declaration */ @@ -60,6 +52,13 @@ typedef Standard_Boolean ( * ShapeProcess_OperFunc ) ( const Handle_ShapeProcess /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeProcess_Context) +%wrap_handle(ShapeProcess_DictionaryOfOperator) +%wrap_handle(ShapeProcess_Operator) +%wrap_handle(ShapeProcess_StackItemOfDictionaryOfOperator) +%wrap_handle(ShapeProcess_ShapeContext) +%wrap_handle(ShapeProcess_UOperator) + %rename(shapeprocess) ShapeProcess; class ShapeProcess { public: @@ -279,51 +278,7 @@ class ShapeProcess_Context : public MMgt_TShared { }; -%extend ShapeProcess_Context { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeProcess_Context(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeProcess_Context::Handle_ShapeProcess_Context %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeProcess_Context; -class Handle_ShapeProcess_Context : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeProcess_Context(); - Handle_ShapeProcess_Context(const Handle_ShapeProcess_Context &aHandle); - Handle_ShapeProcess_Context(const ShapeProcess_Context *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeProcess_Context DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeProcess_Context { - ShapeProcess_Context* _get_reference() { - return (ShapeProcess_Context*)$self->Access(); - } -}; - -%extend Handle_ShapeProcess_Context { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeProcess_Context) %extend ShapeProcess_Context { %pythoncode { @@ -474,51 +429,7 @@ class ShapeProcess_DictionaryOfOperator : public MMgt_TShared { }; -%extend ShapeProcess_DictionaryOfOperator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeProcess_DictionaryOfOperator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeProcess_DictionaryOfOperator::Handle_ShapeProcess_DictionaryOfOperator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeProcess_DictionaryOfOperator; -class Handle_ShapeProcess_DictionaryOfOperator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeProcess_DictionaryOfOperator(); - Handle_ShapeProcess_DictionaryOfOperator(const Handle_ShapeProcess_DictionaryOfOperator &aHandle); - Handle_ShapeProcess_DictionaryOfOperator(const ShapeProcess_DictionaryOfOperator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeProcess_DictionaryOfOperator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeProcess_DictionaryOfOperator { - ShapeProcess_DictionaryOfOperator* _get_reference() { - return (ShapeProcess_DictionaryOfOperator*)$self->Access(); - } -}; - -%extend Handle_ShapeProcess_DictionaryOfOperator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeProcess_DictionaryOfOperator) %extend ShapeProcess_DictionaryOfOperator { %pythoncode { @@ -624,51 +535,7 @@ class ShapeProcess_Operator : public MMgt_TShared { }; -%extend ShapeProcess_Operator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeProcess_Operator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeProcess_Operator::Handle_ShapeProcess_Operator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeProcess_Operator; -class Handle_ShapeProcess_Operator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeProcess_Operator(); - Handle_ShapeProcess_Operator(const Handle_ShapeProcess_Operator &aHandle); - Handle_ShapeProcess_Operator(const ShapeProcess_Operator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeProcess_Operator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeProcess_Operator { - ShapeProcess_Operator* _get_reference() { - return (ShapeProcess_Operator*)$self->Access(); - } -}; - -%extend Handle_ShapeProcess_Operator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeProcess_Operator) %extend ShapeProcess_Operator { %pythoncode { @@ -705,51 +572,7 @@ class ShapeProcess_StackItemOfDictionaryOfOperator : public MMgt_TShared { }; -%extend ShapeProcess_StackItemOfDictionaryOfOperator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeProcess_StackItemOfDictionaryOfOperator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeProcess_StackItemOfDictionaryOfOperator::Handle_ShapeProcess_StackItemOfDictionaryOfOperator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeProcess_StackItemOfDictionaryOfOperator; -class Handle_ShapeProcess_StackItemOfDictionaryOfOperator : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeProcess_StackItemOfDictionaryOfOperator(); - Handle_ShapeProcess_StackItemOfDictionaryOfOperator(const Handle_ShapeProcess_StackItemOfDictionaryOfOperator &aHandle); - Handle_ShapeProcess_StackItemOfDictionaryOfOperator(const ShapeProcess_StackItemOfDictionaryOfOperator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeProcess_StackItemOfDictionaryOfOperator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeProcess_StackItemOfDictionaryOfOperator { - ShapeProcess_StackItemOfDictionaryOfOperator* _get_reference() { - return (ShapeProcess_StackItemOfDictionaryOfOperator*)$self->Access(); - } -}; - -%extend Handle_ShapeProcess_StackItemOfDictionaryOfOperator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeProcess_StackItemOfDictionaryOfOperator) %extend ShapeProcess_StackItemOfDictionaryOfOperator { %pythoncode { @@ -910,51 +733,7 @@ class ShapeProcess_ShapeContext : public ShapeProcess_Context { }; -%extend ShapeProcess_ShapeContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeProcess_ShapeContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeProcess_ShapeContext::Handle_ShapeProcess_ShapeContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeProcess_ShapeContext; -class Handle_ShapeProcess_ShapeContext : public Handle_ShapeProcess_Context { - - public: - // constructors - Handle_ShapeProcess_ShapeContext(); - Handle_ShapeProcess_ShapeContext(const Handle_ShapeProcess_ShapeContext &aHandle); - Handle_ShapeProcess_ShapeContext(const ShapeProcess_ShapeContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeProcess_ShapeContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeProcess_ShapeContext { - ShapeProcess_ShapeContext* _get_reference() { - return (ShapeProcess_ShapeContext*)$self->Access(); - } -}; - -%extend Handle_ShapeProcess_ShapeContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeProcess_ShapeContext) %extend ShapeProcess_ShapeContext { %pythoncode { @@ -983,51 +762,7 @@ class ShapeProcess_UOperator : public ShapeProcess_Operator { }; -%extend ShapeProcess_UOperator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeProcess_UOperator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeProcess_UOperator::Handle_ShapeProcess_UOperator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeProcess_UOperator; -class Handle_ShapeProcess_UOperator : public Handle_ShapeProcess_Operator { - - public: - // constructors - Handle_ShapeProcess_UOperator(); - Handle_ShapeProcess_UOperator(const Handle_ShapeProcess_UOperator &aHandle); - Handle_ShapeProcess_UOperator(const ShapeProcess_UOperator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeProcess_UOperator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeProcess_UOperator { - ShapeProcess_UOperator* _get_reference() { - return (ShapeProcess_UOperator*)$self->Access(); - } -}; - -%extend Handle_ShapeProcess_UOperator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeProcess_UOperator) %extend ShapeProcess_UOperator { %pythoncode { diff --git a/src/SWIG_files/wrapper/ShapeProcessAPI.i b/src/SWIG_files/wrapper/ShapeProcessAPI.i index 1563dbd8c..f8b8d0904 100644 --- a/src/SWIG_files/wrapper/ShapeProcessAPI.i +++ b/src/SWIG_files/wrapper/ShapeProcessAPI.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define SHAPEPROCESSAPIDOCSTRING -"No docstring provided." +"Provides tools for converting shapes for data exchange +between various systems (CATIA, EUCLID3 etc.) +" %enddef %module (package="OCC.Core", docstring=SHAPEPROCESSAPIDOCSTRING) ShapeProcessAPI @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeProcessAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor ShapeProcessAPI_ApplySequence; class ShapeProcessAPI_ApplySequence { public: diff --git a/src/SWIG_files/wrapper/ShapeProcessAPI_headers.i b/src/SWIG_files/wrapper/ShapeProcessAPI_headers.i index 97cbfa9ce..45c3b0a69 100644 --- a/src/SWIG_files/wrapper/ShapeProcessAPI_headers.i +++ b/src/SWIG_files/wrapper/ShapeProcessAPI_headers.i @@ -206,6 +206,232 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/ShapeUpgrade.i b/src/SWIG_files/wrapper/ShapeUpgrade.i index 43b7c0593..a6b05d592 100644 --- a/src/SWIG_files/wrapper/ShapeUpgrade.i +++ b/src/SWIG_files/wrapper/ShapeUpgrade.i @@ -18,7 +18,16 @@ along with pythonOCC. If not, see . */ %define SHAPEUPGRADEDOCSTRING -"No docstring provided." +"This package provides tools +for splitting and converting shapes by some criteria. It +provides modifications of the kind when one topological +object can be converted or splitted to several ones. In +particular this package contains high level API classes which perform: +converting geometry of shapes up to given continuity, +splitting revolutions by U to segments less than given value, +converting to beziers, +splitting closed faces. +" %enddef %module (package="OCC.Core", docstring=SHAPEUPGRADEDOCSTRING) ShapeUpgrade @@ -34,31 +43,42 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include ShapeUpgrade_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(ShapeUpgrade_RemoveLocations) +%wrap_handle(ShapeUpgrade_SplitCurve) +%wrap_handle(ShapeUpgrade_SplitSurface) +%wrap_handle(ShapeUpgrade_Tool) +%wrap_handle(ShapeUpgrade_UnifySameDomain) +%wrap_handle(ShapeUpgrade_ConvertSurfaceToBezierBasis) +%wrap_handle(ShapeUpgrade_EdgeDivide) +%wrap_handle(ShapeUpgrade_FaceDivide) +%wrap_handle(ShapeUpgrade_FixSmallCurves) +%wrap_handle(ShapeUpgrade_RemoveInternalWires) +%wrap_handle(ShapeUpgrade_SplitCurve2d) +%wrap_handle(ShapeUpgrade_SplitCurve3d) +%wrap_handle(ShapeUpgrade_SplitSurfaceAngle) +%wrap_handle(ShapeUpgrade_SplitSurfaceArea) +%wrap_handle(ShapeUpgrade_SplitSurfaceContinuity) +%wrap_handle(ShapeUpgrade_WireDivide) +%wrap_handle(ShapeUpgrade_ClosedEdgeDivide) +%wrap_handle(ShapeUpgrade_ClosedFaceDivide) +%wrap_handle(ShapeUpgrade_ConvertCurve2dToBezier) +%wrap_handle(ShapeUpgrade_ConvertCurve3dToBezier) +%wrap_handle(ShapeUpgrade_FaceDivideArea) +%wrap_handle(ShapeUpgrade_FixSmallBezierCurves) +%wrap_handle(ShapeUpgrade_SplitCurve2dContinuity) +%wrap_handle(ShapeUpgrade_SplitCurve3dContinuity) + %rename(shapeupgrade) ShapeUpgrade; class ShapeUpgrade { public: @@ -138,51 +158,7 @@ class ShapeUpgrade_RemoveLocations : public MMgt_TShared { }; -%extend ShapeUpgrade_RemoveLocations { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_RemoveLocations(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_RemoveLocations::Handle_ShapeUpgrade_RemoveLocations %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_RemoveLocations; -class Handle_ShapeUpgrade_RemoveLocations : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeUpgrade_RemoveLocations(); - Handle_ShapeUpgrade_RemoveLocations(const Handle_ShapeUpgrade_RemoveLocations &aHandle); - Handle_ShapeUpgrade_RemoveLocations(const ShapeUpgrade_RemoveLocations *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_RemoveLocations DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_RemoveLocations { - ShapeUpgrade_RemoveLocations* _get_reference() { - return (ShapeUpgrade_RemoveLocations*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_RemoveLocations { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_RemoveLocations) %extend ShapeUpgrade_RemoveLocations { %pythoncode { @@ -427,51 +403,7 @@ class ShapeUpgrade_SplitCurve : public MMgt_TShared { }; -%extend ShapeUpgrade_SplitCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitCurve::Handle_ShapeUpgrade_SplitCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitCurve; -class Handle_ShapeUpgrade_SplitCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeUpgrade_SplitCurve(); - Handle_ShapeUpgrade_SplitCurve(const Handle_ShapeUpgrade_SplitCurve &aHandle); - Handle_ShapeUpgrade_SplitCurve(const ShapeUpgrade_SplitCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitCurve { - ShapeUpgrade_SplitCurve* _get_reference() { - return (ShapeUpgrade_SplitCurve*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitCurve) %extend ShapeUpgrade_SplitCurve { %pythoncode { @@ -580,51 +512,7 @@ class ShapeUpgrade_SplitSurface : public MMgt_TShared { }; -%extend ShapeUpgrade_SplitSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitSurface::Handle_ShapeUpgrade_SplitSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitSurface; -class Handle_ShapeUpgrade_SplitSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeUpgrade_SplitSurface(); - Handle_ShapeUpgrade_SplitSurface(const Handle_ShapeUpgrade_SplitSurface &aHandle); - Handle_ShapeUpgrade_SplitSurface(const ShapeUpgrade_SplitSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitSurface { - ShapeUpgrade_SplitSurface* _get_reference() { - return (ShapeUpgrade_SplitSurface*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitSurface) %extend ShapeUpgrade_SplitSurface { %pythoncode { @@ -715,51 +603,7 @@ class ShapeUpgrade_Tool : public MMgt_TShared { }; -%extend ShapeUpgrade_Tool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_Tool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_Tool::Handle_ShapeUpgrade_Tool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_Tool; -class Handle_ShapeUpgrade_Tool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeUpgrade_Tool(); - Handle_ShapeUpgrade_Tool(const Handle_ShapeUpgrade_Tool &aHandle); - Handle_ShapeUpgrade_Tool(const ShapeUpgrade_Tool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_Tool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_Tool { - ShapeUpgrade_Tool* _get_reference() { - return (ShapeUpgrade_Tool*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_Tool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_Tool) %extend ShapeUpgrade_Tool { %pythoncode { @@ -838,51 +682,7 @@ class ShapeUpgrade_UnifySameDomain : public MMgt_TShared { }; -%extend ShapeUpgrade_UnifySameDomain { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_UnifySameDomain(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_UnifySameDomain::Handle_ShapeUpgrade_UnifySameDomain %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_UnifySameDomain; -class Handle_ShapeUpgrade_UnifySameDomain : public Handle_MMgt_TShared { - - public: - // constructors - Handle_ShapeUpgrade_UnifySameDomain(); - Handle_ShapeUpgrade_UnifySameDomain(const Handle_ShapeUpgrade_UnifySameDomain &aHandle); - Handle_ShapeUpgrade_UnifySameDomain(const ShapeUpgrade_UnifySameDomain *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_UnifySameDomain DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_UnifySameDomain { - ShapeUpgrade_UnifySameDomain* _get_reference() { - return (ShapeUpgrade_UnifySameDomain*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_UnifySameDomain { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_UnifySameDomain) %extend ShapeUpgrade_UnifySameDomain { %pythoncode { @@ -979,51 +779,7 @@ class ShapeUpgrade_ConvertSurfaceToBezierBasis : public ShapeUpgrade_SplitSurfac }; -%extend ShapeUpgrade_ConvertSurfaceToBezierBasis { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis::Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis; -class Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis : public Handle_ShapeUpgrade_SplitSurface { - - public: - // constructors - Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis(); - Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis(const Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis &aHandle); - Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis(const ShapeUpgrade_ConvertSurfaceToBezierBasis *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis { - ShapeUpgrade_ConvertSurfaceToBezierBasis* _get_reference() { - return (ShapeUpgrade_ConvertSurfaceToBezierBasis*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_ConvertSurfaceToBezierBasis { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_ConvertSurfaceToBezierBasis) %extend ShapeUpgrade_ConvertSurfaceToBezierBasis { %pythoncode { @@ -1104,51 +860,7 @@ class ShapeUpgrade_EdgeDivide : public ShapeUpgrade_Tool { }; -%extend ShapeUpgrade_EdgeDivide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_EdgeDivide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_EdgeDivide::Handle_ShapeUpgrade_EdgeDivide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_EdgeDivide; -class Handle_ShapeUpgrade_EdgeDivide : public Handle_ShapeUpgrade_Tool { - - public: - // constructors - Handle_ShapeUpgrade_EdgeDivide(); - Handle_ShapeUpgrade_EdgeDivide(const Handle_ShapeUpgrade_EdgeDivide &aHandle); - Handle_ShapeUpgrade_EdgeDivide(const ShapeUpgrade_EdgeDivide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_EdgeDivide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_EdgeDivide { - ShapeUpgrade_EdgeDivide* _get_reference() { - return (ShapeUpgrade_EdgeDivide*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_EdgeDivide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_EdgeDivide) %extend ShapeUpgrade_EdgeDivide { %pythoncode { @@ -1251,51 +963,7 @@ class ShapeUpgrade_FaceDivide : public ShapeUpgrade_Tool { }; -%extend ShapeUpgrade_FaceDivide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_FaceDivide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_FaceDivide::Handle_ShapeUpgrade_FaceDivide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_FaceDivide; -class Handle_ShapeUpgrade_FaceDivide : public Handle_ShapeUpgrade_Tool { - - public: - // constructors - Handle_ShapeUpgrade_FaceDivide(); - Handle_ShapeUpgrade_FaceDivide(const Handle_ShapeUpgrade_FaceDivide &aHandle); - Handle_ShapeUpgrade_FaceDivide(const ShapeUpgrade_FaceDivide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_FaceDivide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_FaceDivide { - ShapeUpgrade_FaceDivide* _get_reference() { - return (ShapeUpgrade_FaceDivide*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_FaceDivide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_FaceDivide) %extend ShapeUpgrade_FaceDivide { %pythoncode { @@ -1358,51 +1026,7 @@ class ShapeUpgrade_FixSmallCurves : public ShapeUpgrade_Tool { }; -%extend ShapeUpgrade_FixSmallCurves { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_FixSmallCurves(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_FixSmallCurves::Handle_ShapeUpgrade_FixSmallCurves %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_FixSmallCurves; -class Handle_ShapeUpgrade_FixSmallCurves : public Handle_ShapeUpgrade_Tool { - - public: - // constructors - Handle_ShapeUpgrade_FixSmallCurves(); - Handle_ShapeUpgrade_FixSmallCurves(const Handle_ShapeUpgrade_FixSmallCurves &aHandle); - Handle_ShapeUpgrade_FixSmallCurves(const ShapeUpgrade_FixSmallCurves *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_FixSmallCurves DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_FixSmallCurves { - ShapeUpgrade_FixSmallCurves* _get_reference() { - return (ShapeUpgrade_FixSmallCurves*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_FixSmallCurves { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_FixSmallCurves) %extend ShapeUpgrade_FixSmallCurves { %pythoncode { @@ -1501,51 +1125,7 @@ class ShapeUpgrade_RemoveInternalWires : public ShapeUpgrade_Tool { }; -%extend ShapeUpgrade_RemoveInternalWires { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_RemoveInternalWires(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_RemoveInternalWires::Handle_ShapeUpgrade_RemoveInternalWires %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_RemoveInternalWires; -class Handle_ShapeUpgrade_RemoveInternalWires : public Handle_ShapeUpgrade_Tool { - - public: - // constructors - Handle_ShapeUpgrade_RemoveInternalWires(); - Handle_ShapeUpgrade_RemoveInternalWires(const Handle_ShapeUpgrade_RemoveInternalWires &aHandle); - Handle_ShapeUpgrade_RemoveInternalWires(const ShapeUpgrade_RemoveInternalWires *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_RemoveInternalWires DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_RemoveInternalWires { - ShapeUpgrade_RemoveInternalWires* _get_reference() { - return (ShapeUpgrade_RemoveInternalWires*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_RemoveInternalWires { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_RemoveInternalWires) %extend ShapeUpgrade_RemoveInternalWires { %pythoncode { @@ -1973,51 +1553,7 @@ class ShapeUpgrade_SplitCurve2d : public ShapeUpgrade_SplitCurve { }; -%extend ShapeUpgrade_SplitCurve2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitCurve2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitCurve2d::Handle_ShapeUpgrade_SplitCurve2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitCurve2d; -class Handle_ShapeUpgrade_SplitCurve2d : public Handle_ShapeUpgrade_SplitCurve { - - public: - // constructors - Handle_ShapeUpgrade_SplitCurve2d(); - Handle_ShapeUpgrade_SplitCurve2d(const Handle_ShapeUpgrade_SplitCurve2d &aHandle); - Handle_ShapeUpgrade_SplitCurve2d(const ShapeUpgrade_SplitCurve2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitCurve2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitCurve2d { - ShapeUpgrade_SplitCurve2d* _get_reference() { - return (ShapeUpgrade_SplitCurve2d*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitCurve2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitCurve2d) %extend ShapeUpgrade_SplitCurve2d { %pythoncode { @@ -2068,51 +1604,7 @@ class ShapeUpgrade_SplitCurve3d : public ShapeUpgrade_SplitCurve { }; -%extend ShapeUpgrade_SplitCurve3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitCurve3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitCurve3d::Handle_ShapeUpgrade_SplitCurve3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitCurve3d; -class Handle_ShapeUpgrade_SplitCurve3d : public Handle_ShapeUpgrade_SplitCurve { - - public: - // constructors - Handle_ShapeUpgrade_SplitCurve3d(); - Handle_ShapeUpgrade_SplitCurve3d(const Handle_ShapeUpgrade_SplitCurve3d &aHandle); - Handle_ShapeUpgrade_SplitCurve3d(const ShapeUpgrade_SplitCurve3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitCurve3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitCurve3d { - ShapeUpgrade_SplitCurve3d* _get_reference() { - return (ShapeUpgrade_SplitCurve3d*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitCurve3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitCurve3d) %extend ShapeUpgrade_SplitCurve3d { %pythoncode { @@ -2155,51 +1647,7 @@ class ShapeUpgrade_SplitSurfaceAngle : public ShapeUpgrade_SplitSurface { }; -%extend ShapeUpgrade_SplitSurfaceAngle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitSurfaceAngle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitSurfaceAngle::Handle_ShapeUpgrade_SplitSurfaceAngle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitSurfaceAngle; -class Handle_ShapeUpgrade_SplitSurfaceAngle : public Handle_ShapeUpgrade_SplitSurface { - - public: - // constructors - Handle_ShapeUpgrade_SplitSurfaceAngle(); - Handle_ShapeUpgrade_SplitSurfaceAngle(const Handle_ShapeUpgrade_SplitSurfaceAngle &aHandle); - Handle_ShapeUpgrade_SplitSurfaceAngle(const ShapeUpgrade_SplitSurfaceAngle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitSurfaceAngle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitSurfaceAngle { - ShapeUpgrade_SplitSurfaceAngle* _get_reference() { - return (ShapeUpgrade_SplitSurfaceAngle*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitSurfaceAngle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitSurfaceAngle) %extend ShapeUpgrade_SplitSurfaceAngle { %pythoncode { @@ -2237,51 +1685,7 @@ class ShapeUpgrade_SplitSurfaceArea : public ShapeUpgrade_SplitSurface { }; -%extend ShapeUpgrade_SplitSurfaceArea { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitSurfaceArea(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitSurfaceArea::Handle_ShapeUpgrade_SplitSurfaceArea %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitSurfaceArea; -class Handle_ShapeUpgrade_SplitSurfaceArea : public Handle_ShapeUpgrade_SplitSurface { - - public: - // constructors - Handle_ShapeUpgrade_SplitSurfaceArea(); - Handle_ShapeUpgrade_SplitSurfaceArea(const Handle_ShapeUpgrade_SplitSurfaceArea &aHandle); - Handle_ShapeUpgrade_SplitSurfaceArea(const ShapeUpgrade_SplitSurfaceArea *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitSurfaceArea DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitSurfaceArea { - ShapeUpgrade_SplitSurfaceArea* _get_reference() { - return (ShapeUpgrade_SplitSurfaceArea*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitSurfaceArea { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitSurfaceArea) %extend ShapeUpgrade_SplitSurfaceArea { %pythoncode { @@ -2322,51 +1726,7 @@ class ShapeUpgrade_SplitSurfaceContinuity : public ShapeUpgrade_SplitSurface { }; -%extend ShapeUpgrade_SplitSurfaceContinuity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitSurfaceContinuity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitSurfaceContinuity::Handle_ShapeUpgrade_SplitSurfaceContinuity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitSurfaceContinuity; -class Handle_ShapeUpgrade_SplitSurfaceContinuity : public Handle_ShapeUpgrade_SplitSurface { - - public: - // constructors - Handle_ShapeUpgrade_SplitSurfaceContinuity(); - Handle_ShapeUpgrade_SplitSurfaceContinuity(const Handle_ShapeUpgrade_SplitSurfaceContinuity &aHandle); - Handle_ShapeUpgrade_SplitSurfaceContinuity(const ShapeUpgrade_SplitSurfaceContinuity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitSurfaceContinuity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitSurfaceContinuity { - ShapeUpgrade_SplitSurfaceContinuity* _get_reference() { - return (ShapeUpgrade_SplitSurfaceContinuity*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitSurfaceContinuity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitSurfaceContinuity) %extend ShapeUpgrade_SplitSurfaceContinuity { %pythoncode { @@ -2533,51 +1893,7 @@ class ShapeUpgrade_WireDivide : public ShapeUpgrade_Tool { }; -%extend ShapeUpgrade_WireDivide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_WireDivide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_WireDivide::Handle_ShapeUpgrade_WireDivide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_WireDivide; -class Handle_ShapeUpgrade_WireDivide : public Handle_ShapeUpgrade_Tool { - - public: - // constructors - Handle_ShapeUpgrade_WireDivide(); - Handle_ShapeUpgrade_WireDivide(const Handle_ShapeUpgrade_WireDivide &aHandle); - Handle_ShapeUpgrade_WireDivide(const ShapeUpgrade_WireDivide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_WireDivide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_WireDivide { - ShapeUpgrade_WireDivide* _get_reference() { - return (ShapeUpgrade_WireDivide*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_WireDivide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_WireDivide) %extend ShapeUpgrade_WireDivide { %pythoncode { @@ -2602,51 +1918,7 @@ class ShapeUpgrade_ClosedEdgeDivide : public ShapeUpgrade_EdgeDivide { }; -%extend ShapeUpgrade_ClosedEdgeDivide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_ClosedEdgeDivide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_ClosedEdgeDivide::Handle_ShapeUpgrade_ClosedEdgeDivide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_ClosedEdgeDivide; -class Handle_ShapeUpgrade_ClosedEdgeDivide : public Handle_ShapeUpgrade_EdgeDivide { - - public: - // constructors - Handle_ShapeUpgrade_ClosedEdgeDivide(); - Handle_ShapeUpgrade_ClosedEdgeDivide(const Handle_ShapeUpgrade_ClosedEdgeDivide &aHandle); - Handle_ShapeUpgrade_ClosedEdgeDivide(const ShapeUpgrade_ClosedEdgeDivide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_ClosedEdgeDivide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_ClosedEdgeDivide { - ShapeUpgrade_ClosedEdgeDivide* _get_reference() { - return (ShapeUpgrade_ClosedEdgeDivide*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_ClosedEdgeDivide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_ClosedEdgeDivide) %extend ShapeUpgrade_ClosedEdgeDivide { %pythoncode { @@ -2693,51 +1965,7 @@ class ShapeUpgrade_ClosedFaceDivide : public ShapeUpgrade_FaceDivide { }; -%extend ShapeUpgrade_ClosedFaceDivide { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_ClosedFaceDivide(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_ClosedFaceDivide::Handle_ShapeUpgrade_ClosedFaceDivide %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_ClosedFaceDivide; -class Handle_ShapeUpgrade_ClosedFaceDivide : public Handle_ShapeUpgrade_FaceDivide { - - public: - // constructors - Handle_ShapeUpgrade_ClosedFaceDivide(); - Handle_ShapeUpgrade_ClosedFaceDivide(const Handle_ShapeUpgrade_ClosedFaceDivide &aHandle); - Handle_ShapeUpgrade_ClosedFaceDivide(const ShapeUpgrade_ClosedFaceDivide *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_ClosedFaceDivide DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_ClosedFaceDivide { - ShapeUpgrade_ClosedFaceDivide* _get_reference() { - return (ShapeUpgrade_ClosedFaceDivide*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_ClosedFaceDivide { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_ClosedFaceDivide) %extend ShapeUpgrade_ClosedFaceDivide { %pythoncode { @@ -2776,51 +2004,7 @@ class ShapeUpgrade_ConvertCurve2dToBezier : public ShapeUpgrade_SplitCurve2d { }; -%extend ShapeUpgrade_ConvertCurve2dToBezier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_ConvertCurve2dToBezier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_ConvertCurve2dToBezier::Handle_ShapeUpgrade_ConvertCurve2dToBezier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_ConvertCurve2dToBezier; -class Handle_ShapeUpgrade_ConvertCurve2dToBezier : public Handle_ShapeUpgrade_SplitCurve2d { - - public: - // constructors - Handle_ShapeUpgrade_ConvertCurve2dToBezier(); - Handle_ShapeUpgrade_ConvertCurve2dToBezier(const Handle_ShapeUpgrade_ConvertCurve2dToBezier &aHandle); - Handle_ShapeUpgrade_ConvertCurve2dToBezier(const ShapeUpgrade_ConvertCurve2dToBezier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_ConvertCurve2dToBezier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_ConvertCurve2dToBezier { - ShapeUpgrade_ConvertCurve2dToBezier* _get_reference() { - return (ShapeUpgrade_ConvertCurve2dToBezier*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_ConvertCurve2dToBezier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_ConvertCurve2dToBezier) %extend ShapeUpgrade_ConvertCurve2dToBezier { %pythoncode { @@ -2901,51 +2085,7 @@ class ShapeUpgrade_ConvertCurve3dToBezier : public ShapeUpgrade_SplitCurve3d { }; -%extend ShapeUpgrade_ConvertCurve3dToBezier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_ConvertCurve3dToBezier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_ConvertCurve3dToBezier::Handle_ShapeUpgrade_ConvertCurve3dToBezier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_ConvertCurve3dToBezier; -class Handle_ShapeUpgrade_ConvertCurve3dToBezier : public Handle_ShapeUpgrade_SplitCurve3d { - - public: - // constructors - Handle_ShapeUpgrade_ConvertCurve3dToBezier(); - Handle_ShapeUpgrade_ConvertCurve3dToBezier(const Handle_ShapeUpgrade_ConvertCurve3dToBezier &aHandle); - Handle_ShapeUpgrade_ConvertCurve3dToBezier(const ShapeUpgrade_ConvertCurve3dToBezier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_ConvertCurve3dToBezier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_ConvertCurve3dToBezier { - ShapeUpgrade_ConvertCurve3dToBezier* _get_reference() { - return (ShapeUpgrade_ConvertCurve3dToBezier*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_ConvertCurve3dToBezier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_ConvertCurve3dToBezier) %extend ShapeUpgrade_ConvertCurve3dToBezier { %pythoncode { @@ -2989,51 +2129,7 @@ class ShapeUpgrade_FaceDivideArea : public ShapeUpgrade_FaceDivide { }; -%extend ShapeUpgrade_FaceDivideArea { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_FaceDivideArea(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_FaceDivideArea::Handle_ShapeUpgrade_FaceDivideArea %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_FaceDivideArea; -class Handle_ShapeUpgrade_FaceDivideArea : public Handle_ShapeUpgrade_FaceDivide { - - public: - // constructors - Handle_ShapeUpgrade_FaceDivideArea(); - Handle_ShapeUpgrade_FaceDivideArea(const Handle_ShapeUpgrade_FaceDivideArea &aHandle); - Handle_ShapeUpgrade_FaceDivideArea(const ShapeUpgrade_FaceDivideArea *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_FaceDivideArea DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_FaceDivideArea { - ShapeUpgrade_FaceDivideArea* _get_reference() { - return (ShapeUpgrade_FaceDivideArea*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_FaceDivideArea { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_FaceDivideArea) %extend ShapeUpgrade_FaceDivideArea { %pythoncode { @@ -3064,51 +2160,7 @@ class ShapeUpgrade_FixSmallBezierCurves : public ShapeUpgrade_FixSmallCurves { }; -%extend ShapeUpgrade_FixSmallBezierCurves { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_FixSmallBezierCurves(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_FixSmallBezierCurves::Handle_ShapeUpgrade_FixSmallBezierCurves %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_FixSmallBezierCurves; -class Handle_ShapeUpgrade_FixSmallBezierCurves : public Handle_ShapeUpgrade_FixSmallCurves { - - public: - // constructors - Handle_ShapeUpgrade_FixSmallBezierCurves(); - Handle_ShapeUpgrade_FixSmallBezierCurves(const Handle_ShapeUpgrade_FixSmallBezierCurves &aHandle); - Handle_ShapeUpgrade_FixSmallBezierCurves(const ShapeUpgrade_FixSmallBezierCurves *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_FixSmallBezierCurves DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_FixSmallBezierCurves { - ShapeUpgrade_FixSmallBezierCurves* _get_reference() { - return (ShapeUpgrade_FixSmallBezierCurves*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_FixSmallBezierCurves { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_FixSmallBezierCurves) %extend ShapeUpgrade_FixSmallBezierCurves { %pythoncode { @@ -3149,51 +2201,7 @@ class ShapeUpgrade_SplitCurve2dContinuity : public ShapeUpgrade_SplitCurve2d { }; -%extend ShapeUpgrade_SplitCurve2dContinuity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitCurve2dContinuity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitCurve2dContinuity::Handle_ShapeUpgrade_SplitCurve2dContinuity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitCurve2dContinuity; -class Handle_ShapeUpgrade_SplitCurve2dContinuity : public Handle_ShapeUpgrade_SplitCurve2d { - - public: - // constructors - Handle_ShapeUpgrade_SplitCurve2dContinuity(); - Handle_ShapeUpgrade_SplitCurve2dContinuity(const Handle_ShapeUpgrade_SplitCurve2dContinuity &aHandle); - Handle_ShapeUpgrade_SplitCurve2dContinuity(const ShapeUpgrade_SplitCurve2dContinuity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitCurve2dContinuity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitCurve2dContinuity { - ShapeUpgrade_SplitCurve2dContinuity* _get_reference() { - return (ShapeUpgrade_SplitCurve2dContinuity*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitCurve2dContinuity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitCurve2dContinuity) %extend ShapeUpgrade_SplitCurve2dContinuity { %pythoncode { @@ -3238,51 +2246,7 @@ class ShapeUpgrade_SplitCurve3dContinuity : public ShapeUpgrade_SplitCurve3d { }; -%extend ShapeUpgrade_SplitCurve3dContinuity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_ShapeUpgrade_SplitCurve3dContinuity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_ShapeUpgrade_SplitCurve3dContinuity::Handle_ShapeUpgrade_SplitCurve3dContinuity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_ShapeUpgrade_SplitCurve3dContinuity; -class Handle_ShapeUpgrade_SplitCurve3dContinuity : public Handle_ShapeUpgrade_SplitCurve3d { - - public: - // constructors - Handle_ShapeUpgrade_SplitCurve3dContinuity(); - Handle_ShapeUpgrade_SplitCurve3dContinuity(const Handle_ShapeUpgrade_SplitCurve3dContinuity &aHandle); - Handle_ShapeUpgrade_SplitCurve3dContinuity(const ShapeUpgrade_SplitCurve3dContinuity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_ShapeUpgrade_SplitCurve3dContinuity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_ShapeUpgrade_SplitCurve3dContinuity { - ShapeUpgrade_SplitCurve3dContinuity* _get_reference() { - return (ShapeUpgrade_SplitCurve3dContinuity*)$self->Access(); - } -}; - -%extend Handle_ShapeUpgrade_SplitCurve3dContinuity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(ShapeUpgrade_SplitCurve3dContinuity) %extend ShapeUpgrade_SplitCurve3dContinuity { %pythoncode { diff --git a/src/SWIG_files/wrapper/SortTools.i b/src/SWIG_files/wrapper/SortTools.i index 75d75cfbc..1f39bab84 100644 --- a/src/SWIG_files/wrapper/SortTools.i +++ b/src/SWIG_files/wrapper/SortTools.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define SORTTOOLSDOCSTRING -"No docstring provided." +"This package provides the basic sorting tools generally +used. +" %enddef %module (package="OCC.Core", docstring=SORTTOOLSDOCSTRING) SortTools @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include SortTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + class SortTools_HeapSortOfInteger { public: %feature("compactdefaultargs") Sort; diff --git a/src/SWIG_files/wrapper/Standard.i b/src/SWIG_files/wrapper/Standard.i index 0ac46280a..9c152bbeb 100644 --- a/src/SWIG_files/wrapper/Standard.i +++ b/src/SWIG_files/wrapper/Standard.i @@ -18,7 +18,15 @@ along with pythonOCC. If not, see . */ %define STANDARDDOCSTRING -"No docstring provided." +" +The package Standard provides the minimum services necessary +for other toolkits to handle persistent and transient objects. +It is the Standard run-time encapsulation of the CAS.CADE +database, that is, it defines a single programming interface +for creating and accessing persistent objects manipulated by +handles. + +" %enddef %module (package="OCC.Core", docstring=STANDARDDOCSTRING) Standard @@ -34,25 +42,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Standard_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef bool Standard_Boolean; typedef const char * Standard_CString; @@ -129,6 +123,10 @@ enum Standard_InternalType { /* end public enums declaration */ +%wrap_handle(Standard_Transient) +%wrap_handle(Standard_Failure) +%wrap_handle(Standard_Type) + %rename(standard) Standard; class Standard { public: @@ -749,97 +747,7 @@ class Standard_Transient { }; -%extend Standard_Transient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Standard_Transient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Standard_Transient::Handle_Standard_Transient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Standard_Transient; -class Handle_Standard_Transient { - - public: - // constructors - Handle_Standard_Transient(); - Handle_Standard_Transient(const Handle_Standard_Transient &aHandle); - Handle_Standard_Transient(const Standard_Transient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Standard_Transient DownCast(const Handle_Standard_Transient &AnObject); - - %extend{ - bool __eq_wrapper__(const Handle_Standard_Transient &right) { - if (*self==right) return true; - else return false; - } - } - %extend{ - bool __eq_wrapper__(const Standard_Transient *right) { - if (*self==right) return true; - else return false; - } - } - %extend{ - bool __ne_wrapper__(const Handle_Standard_Transient &right) { - if (*self!=right) return true; - else return false; - } - } - %extend{ - bool __ne_wrapper__(const Standard_Transient *right) { - if (*self!=right) return true; - else return false; - } - } - %extend{ - std::string DumpToString() { - std::stringstream s; - self->Dump(s); - return s.str(); - } - } - %pythoncode { - def __eq__(self,right): - try: - return self.__eq_wrapper__(right) - except: - return False - } - %pythoncode { - def __ne__(self,right): - try: - return self.__ne_wrapper__(right) - except: - return True - } - -}; -%extend Handle_Standard_Transient { - Standard_Transient* _get_reference() { - return (Standard_Transient*)$self->Access(); - } -}; - -%extend Handle_Standard_Transient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Standard_Transient) %extend Standard_Transient { %pythoncode { @@ -918,51 +826,7 @@ class Standard_Failure : public Standard_Transient { }; -%extend Standard_Failure { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Standard_Failure(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Standard_Failure::Handle_Standard_Failure %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Standard_Failure; -class Handle_Standard_Failure : public Handle_Standard_Transient { - - public: - // constructors - Handle_Standard_Failure(); - Handle_Standard_Failure(const Handle_Standard_Failure &aHandle); - Handle_Standard_Failure(const Standard_Failure *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Standard_Failure DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Standard_Failure { - Standard_Failure* _get_reference() { - return (Standard_Failure*)$self->Access(); - } -}; - -%extend Handle_Standard_Failure { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Standard_Failure) %extend Standard_Failure { %pythoncode { @@ -1291,51 +1155,7 @@ class Standard_Type : public Standard_Transient { }; -%extend Standard_Type { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Standard_Type(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Standard_Type::Handle_Standard_Type %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Standard_Type; -class Handle_Standard_Type : public Handle_Standard_Transient { - - public: - // constructors - Handle_Standard_Type(); - Handle_Standard_Type(const Handle_Standard_Type &aHandle); - Handle_Standard_Type(const Standard_Type *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Standard_Type DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Standard_Type { - Standard_Type* _get_reference() { - return (Standard_Type*)$self->Access(); - } -}; - -%extend Handle_Standard_Type { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Standard_Type) %extend Standard_Type { %pythoncode { diff --git a/src/SWIG_files/wrapper/StdFail.i b/src/SWIG_files/wrapper/StdFail.i index 3644bec63..0a560970c 100644 --- a/src/SWIG_files/wrapper/StdFail.i +++ b/src/SWIG_files/wrapper/StdFail.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define STDFAILDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=STDFAILDOCSTRING) StdFail @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StdFail_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/StdMeshers.i b/src/SWIG_files/wrapper/StdMeshers.i index 82608fb0e..d9edcfc5b 100644 --- a/src/SWIG_files/wrapper/StdMeshers.i +++ b/src/SWIG_files/wrapper/StdMeshers.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StdMeshers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef std::map TNode2ColumnMap; typedef std::map TParam2ColumnMap; @@ -78,6 +64,7 @@ enum TSideID { /* end public enums declaration */ + %nodefaultctor StdMeshers_Arithmetic1D; class StdMeshers_Arithmetic1D : public SMESH_Hypothesis { public: diff --git a/src/SWIG_files/wrapper/StdMeshers_headers.i b/src/SWIG_files/wrapper/StdMeshers_headers.i index f85faab60..72f8c78fa 100644 --- a/src/SWIG_files/wrapper/StdMeshers_headers.i +++ b/src/SWIG_files/wrapper/StdMeshers_headers.i @@ -384,6 +384,653 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/StdPrs.i b/src/SWIG_files/wrapper/StdPrs.i index ca4ca68cf..97729e2e4 100644 --- a/src/SWIG_files/wrapper/StdPrs.i +++ b/src/SWIG_files/wrapper/StdPrs.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define STDPRSDOCSTRING -"No docstring provided." +"for specific geometries and topologies whereas +Prs3d provides those for generic objects. Among +these classes are definitions of the display of the +specific geometry or topology in various display +modes such as wireframe, shading or hidden line removal mode. +" %enddef %module (package="OCC.Core", docstring=STDPRSDOCSTRING) StdPrs @@ -34,25 +39,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StdPrs_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Prs3d_Point StdPrs_Vertex; typedef Prs3d_Point StdPrs_Point; @@ -67,6 +58,7 @@ enum StdPrs_Volume { /* end public enums declaration */ + class StdPrs_Curve : public Prs3d_Root { public: %feature("compactdefaultargs") Add; diff --git a/src/SWIG_files/wrapper/StdPrs_headers.i b/src/SWIG_files/wrapper/StdPrs_headers.i index 4ad97b76d..eb0f01b3a 100644 --- a/src/SWIG_files/wrapper/StdPrs_headers.i +++ b/src/SWIG_files/wrapper/StdPrs_headers.i @@ -662,6 +662,313 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/StdSelect.i b/src/SWIG_files/wrapper/StdSelect.i index 92efe3a3f..90e5e4ed2 100644 --- a/src/SWIG_files/wrapper/StdSelect.i +++ b/src/SWIG_files/wrapper/StdSelect.i @@ -18,7 +18,26 @@ along with pythonOCC. If not, see . */ %define STDSELECTDOCSTRING -"No docstring provided." +"The StdSelect package provides the following services +- the definition of selection modes for topological shapes +- the definition of several concrete filtertandard +Selection2d.ap classes +- 2D and 3D viewer selectors. +Note that each new Interactive Object must have all +its selection modes defined. +Standard Classes is useful to build +3D Selectable Objects, and to process +3D Selections: + +- Implementation of View Selector for dynamic selection +in Views from V3d. + +- Implementation of Tool class to decompose 3D BRep Objects +into sensitive Primitives for every desired mode of selection +(selection of vertex,edges,wires,faces,...) + +- Implementation of dedicated Sensitives Entities: +Text for 2D Views (linked to Specific 2D projectors.)" %enddef %module (package="OCC.Core", docstring=STDSELECTDOCSTRING) StdSelect @@ -34,25 +53,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StdSelect_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ diff --git a/src/SWIG_files/wrapper/StepAP203.i b/src/SWIG_files/wrapper/StepAP203.i index 317084f72..04277c54e 100644 --- a/src/SWIG_files/wrapper/StepAP203.i +++ b/src/SWIG_files/wrapper/StepAP203.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define STEPAP203DOCSTRING -"No docstring provided." +"Contains implementation of STEP entities specific for AP203 +" %enddef %module (package="OCC.Core", docstring=STEPAP203DOCSTRING) StepAP203 @@ -34,31 +35,39 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepAP203_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(StepAP203_CcDesignApproval) +%wrap_handle(StepAP203_CcDesignCertification) +%wrap_handle(StepAP203_CcDesignContract) +%wrap_handle(StepAP203_CcDesignDateAndTimeAssignment) +%wrap_handle(StepAP203_CcDesignPersonAndOrganizationAssignment) +%wrap_handle(StepAP203_CcDesignSecurityClassification) +%wrap_handle(StepAP203_CcDesignSpecificationReference) +%wrap_handle(StepAP203_Change) +%wrap_handle(StepAP203_ChangeRequest) +%wrap_handle(StepAP203_HArray1OfApprovedItem) +%wrap_handle(StepAP203_HArray1OfCertifiedItem) +%wrap_handle(StepAP203_HArray1OfChangeRequestItem) +%wrap_handle(StepAP203_HArray1OfClassifiedItem) +%wrap_handle(StepAP203_HArray1OfContractedItem) +%wrap_handle(StepAP203_HArray1OfDateTimeItem) +%wrap_handle(StepAP203_HArray1OfPersonOrganizationItem) +%wrap_handle(StepAP203_HArray1OfSpecifiedItem) +%wrap_handle(StepAP203_HArray1OfStartRequestItem) +%wrap_handle(StepAP203_HArray1OfWorkItem) +%wrap_handle(StepAP203_StartRequest) +%wrap_handle(StepAP203_StartWork) + %nodefaultctor StepAP203_ApprovedItem; class StepAP203_ApprovedItem : public StepData_SelectType { public: @@ -1056,51 +1065,7 @@ class StepAP203_CcDesignApproval : public StepBasic_ApprovalAssignment { }; -%extend StepAP203_CcDesignApproval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignApproval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignApproval::Handle_StepAP203_CcDesignApproval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignApproval; -class Handle_StepAP203_CcDesignApproval : public Handle_StepBasic_ApprovalAssignment { - - public: - // constructors - Handle_StepAP203_CcDesignApproval(); - Handle_StepAP203_CcDesignApproval(const Handle_StepAP203_CcDesignApproval &aHandle); - Handle_StepAP203_CcDesignApproval(const StepAP203_CcDesignApproval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignApproval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignApproval { - StepAP203_CcDesignApproval* _get_reference() { - return (StepAP203_CcDesignApproval*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignApproval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignApproval) %extend StepAP203_CcDesignApproval { %pythoncode { @@ -1143,51 +1108,7 @@ class StepAP203_CcDesignCertification : public StepBasic_CertificationAssignment }; -%extend StepAP203_CcDesignCertification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignCertification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignCertification::Handle_StepAP203_CcDesignCertification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignCertification; -class Handle_StepAP203_CcDesignCertification : public Handle_StepBasic_CertificationAssignment { - - public: - // constructors - Handle_StepAP203_CcDesignCertification(); - Handle_StepAP203_CcDesignCertification(const Handle_StepAP203_CcDesignCertification &aHandle); - Handle_StepAP203_CcDesignCertification(const StepAP203_CcDesignCertification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignCertification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignCertification { - StepAP203_CcDesignCertification* _get_reference() { - return (StepAP203_CcDesignCertification*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignCertification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignCertification) %extend StepAP203_CcDesignCertification { %pythoncode { @@ -1230,51 +1151,7 @@ class StepAP203_CcDesignContract : public StepBasic_ContractAssignment { }; -%extend StepAP203_CcDesignContract { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignContract(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignContract::Handle_StepAP203_CcDesignContract %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignContract; -class Handle_StepAP203_CcDesignContract : public Handle_StepBasic_ContractAssignment { - - public: - // constructors - Handle_StepAP203_CcDesignContract(); - Handle_StepAP203_CcDesignContract(const Handle_StepAP203_CcDesignContract &aHandle); - Handle_StepAP203_CcDesignContract(const StepAP203_CcDesignContract *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignContract DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignContract { - StepAP203_CcDesignContract* _get_reference() { - return (StepAP203_CcDesignContract*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignContract { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignContract) %extend StepAP203_CcDesignContract { %pythoncode { @@ -1319,51 +1196,7 @@ class StepAP203_CcDesignDateAndTimeAssignment : public StepBasic_DateAndTimeAssi }; -%extend StepAP203_CcDesignDateAndTimeAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignDateAndTimeAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignDateAndTimeAssignment::Handle_StepAP203_CcDesignDateAndTimeAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignDateAndTimeAssignment; -class Handle_StepAP203_CcDesignDateAndTimeAssignment : public Handle_StepBasic_DateAndTimeAssignment { - - public: - // constructors - Handle_StepAP203_CcDesignDateAndTimeAssignment(); - Handle_StepAP203_CcDesignDateAndTimeAssignment(const Handle_StepAP203_CcDesignDateAndTimeAssignment &aHandle); - Handle_StepAP203_CcDesignDateAndTimeAssignment(const StepAP203_CcDesignDateAndTimeAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignDateAndTimeAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignDateAndTimeAssignment { - StepAP203_CcDesignDateAndTimeAssignment* _get_reference() { - return (StepAP203_CcDesignDateAndTimeAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignDateAndTimeAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignDateAndTimeAssignment) %extend StepAP203_CcDesignDateAndTimeAssignment { %pythoncode { @@ -1408,51 +1241,7 @@ class StepAP203_CcDesignPersonAndOrganizationAssignment : public StepBasic_Perso }; -%extend StepAP203_CcDesignPersonAndOrganizationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignPersonAndOrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignPersonAndOrganizationAssignment::Handle_StepAP203_CcDesignPersonAndOrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignPersonAndOrganizationAssignment; -class Handle_StepAP203_CcDesignPersonAndOrganizationAssignment : public Handle_StepBasic_PersonAndOrganizationAssignment { - - public: - // constructors - Handle_StepAP203_CcDesignPersonAndOrganizationAssignment(); - Handle_StepAP203_CcDesignPersonAndOrganizationAssignment(const Handle_StepAP203_CcDesignPersonAndOrganizationAssignment &aHandle); - Handle_StepAP203_CcDesignPersonAndOrganizationAssignment(const StepAP203_CcDesignPersonAndOrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignPersonAndOrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignPersonAndOrganizationAssignment { - StepAP203_CcDesignPersonAndOrganizationAssignment* _get_reference() { - return (StepAP203_CcDesignPersonAndOrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignPersonAndOrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignPersonAndOrganizationAssignment) %extend StepAP203_CcDesignPersonAndOrganizationAssignment { %pythoncode { @@ -1495,51 +1284,7 @@ class StepAP203_CcDesignSecurityClassification : public StepBasic_SecurityClassi }; -%extend StepAP203_CcDesignSecurityClassification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignSecurityClassification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignSecurityClassification::Handle_StepAP203_CcDesignSecurityClassification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignSecurityClassification; -class Handle_StepAP203_CcDesignSecurityClassification : public Handle_StepBasic_SecurityClassificationAssignment { - - public: - // constructors - Handle_StepAP203_CcDesignSecurityClassification(); - Handle_StepAP203_CcDesignSecurityClassification(const Handle_StepAP203_CcDesignSecurityClassification &aHandle); - Handle_StepAP203_CcDesignSecurityClassification(const StepAP203_CcDesignSecurityClassification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignSecurityClassification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignSecurityClassification { - StepAP203_CcDesignSecurityClassification* _get_reference() { - return (StepAP203_CcDesignSecurityClassification*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignSecurityClassification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignSecurityClassification) %extend StepAP203_CcDesignSecurityClassification { %pythoncode { @@ -1584,51 +1329,7 @@ class StepAP203_CcDesignSpecificationReference : public StepBasic_DocumentRefere }; -%extend StepAP203_CcDesignSpecificationReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_CcDesignSpecificationReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_CcDesignSpecificationReference::Handle_StepAP203_CcDesignSpecificationReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_CcDesignSpecificationReference; -class Handle_StepAP203_CcDesignSpecificationReference : public Handle_StepBasic_DocumentReference { - - public: - // constructors - Handle_StepAP203_CcDesignSpecificationReference(); - Handle_StepAP203_CcDesignSpecificationReference(const Handle_StepAP203_CcDesignSpecificationReference &aHandle); - Handle_StepAP203_CcDesignSpecificationReference(const StepAP203_CcDesignSpecificationReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_CcDesignSpecificationReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_CcDesignSpecificationReference { - StepAP203_CcDesignSpecificationReference* _get_reference() { - return (StepAP203_CcDesignSpecificationReference*)$self->Access(); - } -}; - -%extend Handle_StepAP203_CcDesignSpecificationReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_CcDesignSpecificationReference) %extend StepAP203_CcDesignSpecificationReference { %pythoncode { @@ -1702,51 +1403,7 @@ class StepAP203_Change : public StepBasic_ActionAssignment { }; -%extend StepAP203_Change { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_Change(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_Change::Handle_StepAP203_Change %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_Change; -class Handle_StepAP203_Change : public Handle_StepBasic_ActionAssignment { - - public: - // constructors - Handle_StepAP203_Change(); - Handle_StepAP203_Change(const Handle_StepAP203_Change &aHandle); - Handle_StepAP203_Change(const StepAP203_Change *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_Change DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_Change { - StepAP203_Change* _get_reference() { - return (StepAP203_Change*)$self->Access(); - } -}; - -%extend Handle_StepAP203_Change { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_Change) %extend StepAP203_Change { %pythoncode { @@ -1789,51 +1446,7 @@ class StepAP203_ChangeRequest : public StepBasic_ActionRequestAssignment { }; -%extend StepAP203_ChangeRequest { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_ChangeRequest(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_ChangeRequest::Handle_StepAP203_ChangeRequest %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_ChangeRequest; -class Handle_StepAP203_ChangeRequest : public Handle_StepBasic_ActionRequestAssignment { - - public: - // constructors - Handle_StepAP203_ChangeRequest(); - Handle_StepAP203_ChangeRequest(const Handle_StepAP203_ChangeRequest &aHandle); - Handle_StepAP203_ChangeRequest(const StepAP203_ChangeRequest *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_ChangeRequest DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_ChangeRequest { - StepAP203_ChangeRequest* _get_reference() { - return (StepAP203_ChangeRequest*)$self->Access(); - } -}; - -%extend Handle_StepAP203_ChangeRequest { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_ChangeRequest) %extend StepAP203_ChangeRequest { %pythoncode { @@ -2088,51 +1701,7 @@ class StepAP203_HArray1OfApprovedItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfApprovedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfApprovedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfApprovedItem::Handle_StepAP203_HArray1OfApprovedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfApprovedItem; -class Handle_StepAP203_HArray1OfApprovedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfApprovedItem(); - Handle_StepAP203_HArray1OfApprovedItem(const Handle_StepAP203_HArray1OfApprovedItem &aHandle); - Handle_StepAP203_HArray1OfApprovedItem(const StepAP203_HArray1OfApprovedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfApprovedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfApprovedItem { - StepAP203_HArray1OfApprovedItem* _get_reference() { - return (StepAP203_HArray1OfApprovedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfApprovedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfApprovedItem) %extend StepAP203_HArray1OfApprovedItem { %pythoncode { @@ -2209,51 +1778,7 @@ class StepAP203_HArray1OfCertifiedItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfCertifiedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfCertifiedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfCertifiedItem::Handle_StepAP203_HArray1OfCertifiedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfCertifiedItem; -class Handle_StepAP203_HArray1OfCertifiedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfCertifiedItem(); - Handle_StepAP203_HArray1OfCertifiedItem(const Handle_StepAP203_HArray1OfCertifiedItem &aHandle); - Handle_StepAP203_HArray1OfCertifiedItem(const StepAP203_HArray1OfCertifiedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfCertifiedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfCertifiedItem { - StepAP203_HArray1OfCertifiedItem* _get_reference() { - return (StepAP203_HArray1OfCertifiedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfCertifiedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfCertifiedItem) %extend StepAP203_HArray1OfCertifiedItem { %pythoncode { @@ -2330,51 +1855,7 @@ class StepAP203_HArray1OfChangeRequestItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfChangeRequestItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfChangeRequestItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfChangeRequestItem::Handle_StepAP203_HArray1OfChangeRequestItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfChangeRequestItem; -class Handle_StepAP203_HArray1OfChangeRequestItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfChangeRequestItem(); - Handle_StepAP203_HArray1OfChangeRequestItem(const Handle_StepAP203_HArray1OfChangeRequestItem &aHandle); - Handle_StepAP203_HArray1OfChangeRequestItem(const StepAP203_HArray1OfChangeRequestItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfChangeRequestItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfChangeRequestItem { - StepAP203_HArray1OfChangeRequestItem* _get_reference() { - return (StepAP203_HArray1OfChangeRequestItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfChangeRequestItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfChangeRequestItem) %extend StepAP203_HArray1OfChangeRequestItem { %pythoncode { @@ -2451,51 +1932,7 @@ class StepAP203_HArray1OfClassifiedItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfClassifiedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfClassifiedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfClassifiedItem::Handle_StepAP203_HArray1OfClassifiedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfClassifiedItem; -class Handle_StepAP203_HArray1OfClassifiedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfClassifiedItem(); - Handle_StepAP203_HArray1OfClassifiedItem(const Handle_StepAP203_HArray1OfClassifiedItem &aHandle); - Handle_StepAP203_HArray1OfClassifiedItem(const StepAP203_HArray1OfClassifiedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfClassifiedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfClassifiedItem { - StepAP203_HArray1OfClassifiedItem* _get_reference() { - return (StepAP203_HArray1OfClassifiedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfClassifiedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfClassifiedItem) %extend StepAP203_HArray1OfClassifiedItem { %pythoncode { @@ -2572,51 +2009,7 @@ class StepAP203_HArray1OfContractedItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfContractedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfContractedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfContractedItem::Handle_StepAP203_HArray1OfContractedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfContractedItem; -class Handle_StepAP203_HArray1OfContractedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfContractedItem(); - Handle_StepAP203_HArray1OfContractedItem(const Handle_StepAP203_HArray1OfContractedItem &aHandle); - Handle_StepAP203_HArray1OfContractedItem(const StepAP203_HArray1OfContractedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfContractedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfContractedItem { - StepAP203_HArray1OfContractedItem* _get_reference() { - return (StepAP203_HArray1OfContractedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfContractedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfContractedItem) %extend StepAP203_HArray1OfContractedItem { %pythoncode { @@ -2693,51 +2086,7 @@ class StepAP203_HArray1OfDateTimeItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfDateTimeItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfDateTimeItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfDateTimeItem::Handle_StepAP203_HArray1OfDateTimeItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfDateTimeItem; -class Handle_StepAP203_HArray1OfDateTimeItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfDateTimeItem(); - Handle_StepAP203_HArray1OfDateTimeItem(const Handle_StepAP203_HArray1OfDateTimeItem &aHandle); - Handle_StepAP203_HArray1OfDateTimeItem(const StepAP203_HArray1OfDateTimeItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfDateTimeItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfDateTimeItem { - StepAP203_HArray1OfDateTimeItem* _get_reference() { - return (StepAP203_HArray1OfDateTimeItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfDateTimeItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfDateTimeItem) %extend StepAP203_HArray1OfDateTimeItem { %pythoncode { @@ -2814,51 +2163,7 @@ class StepAP203_HArray1OfPersonOrganizationItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfPersonOrganizationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfPersonOrganizationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfPersonOrganizationItem::Handle_StepAP203_HArray1OfPersonOrganizationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfPersonOrganizationItem; -class Handle_StepAP203_HArray1OfPersonOrganizationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfPersonOrganizationItem(); - Handle_StepAP203_HArray1OfPersonOrganizationItem(const Handle_StepAP203_HArray1OfPersonOrganizationItem &aHandle); - Handle_StepAP203_HArray1OfPersonOrganizationItem(const StepAP203_HArray1OfPersonOrganizationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfPersonOrganizationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfPersonOrganizationItem { - StepAP203_HArray1OfPersonOrganizationItem* _get_reference() { - return (StepAP203_HArray1OfPersonOrganizationItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfPersonOrganizationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfPersonOrganizationItem) %extend StepAP203_HArray1OfPersonOrganizationItem { %pythoncode { @@ -2935,51 +2240,7 @@ class StepAP203_HArray1OfSpecifiedItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfSpecifiedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfSpecifiedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfSpecifiedItem::Handle_StepAP203_HArray1OfSpecifiedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfSpecifiedItem; -class Handle_StepAP203_HArray1OfSpecifiedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfSpecifiedItem(); - Handle_StepAP203_HArray1OfSpecifiedItem(const Handle_StepAP203_HArray1OfSpecifiedItem &aHandle); - Handle_StepAP203_HArray1OfSpecifiedItem(const StepAP203_HArray1OfSpecifiedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfSpecifiedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfSpecifiedItem { - StepAP203_HArray1OfSpecifiedItem* _get_reference() { - return (StepAP203_HArray1OfSpecifiedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfSpecifiedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfSpecifiedItem) %extend StepAP203_HArray1OfSpecifiedItem { %pythoncode { @@ -3056,51 +2317,7 @@ class StepAP203_HArray1OfStartRequestItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfStartRequestItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfStartRequestItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfStartRequestItem::Handle_StepAP203_HArray1OfStartRequestItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfStartRequestItem; -class Handle_StepAP203_HArray1OfStartRequestItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfStartRequestItem(); - Handle_StepAP203_HArray1OfStartRequestItem(const Handle_StepAP203_HArray1OfStartRequestItem &aHandle); - Handle_StepAP203_HArray1OfStartRequestItem(const StepAP203_HArray1OfStartRequestItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfStartRequestItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfStartRequestItem { - StepAP203_HArray1OfStartRequestItem* _get_reference() { - return (StepAP203_HArray1OfStartRequestItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfStartRequestItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfStartRequestItem) %extend StepAP203_HArray1OfStartRequestItem { %pythoncode { @@ -3177,51 +2394,7 @@ class StepAP203_HArray1OfWorkItem : public MMgt_TShared { }; -%extend StepAP203_HArray1OfWorkItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_HArray1OfWorkItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_HArray1OfWorkItem::Handle_StepAP203_HArray1OfWorkItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_HArray1OfWorkItem; -class Handle_StepAP203_HArray1OfWorkItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP203_HArray1OfWorkItem(); - Handle_StepAP203_HArray1OfWorkItem(const Handle_StepAP203_HArray1OfWorkItem &aHandle); - Handle_StepAP203_HArray1OfWorkItem(const StepAP203_HArray1OfWorkItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_HArray1OfWorkItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_HArray1OfWorkItem { - StepAP203_HArray1OfWorkItem* _get_reference() { - return (StepAP203_HArray1OfWorkItem*)$self->Access(); - } -}; - -%extend Handle_StepAP203_HArray1OfWorkItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_HArray1OfWorkItem) %extend StepAP203_HArray1OfWorkItem { %pythoncode { @@ -3386,51 +2559,7 @@ class StepAP203_StartRequest : public StepBasic_ActionRequestAssignment { }; -%extend StepAP203_StartRequest { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_StartRequest(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_StartRequest::Handle_StepAP203_StartRequest %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_StartRequest; -class Handle_StepAP203_StartRequest : public Handle_StepBasic_ActionRequestAssignment { - - public: - // constructors - Handle_StepAP203_StartRequest(); - Handle_StepAP203_StartRequest(const Handle_StepAP203_StartRequest &aHandle); - Handle_StepAP203_StartRequest(const StepAP203_StartRequest *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_StartRequest DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_StartRequest { - StepAP203_StartRequest* _get_reference() { - return (StepAP203_StartRequest*)$self->Access(); - } -}; - -%extend Handle_StepAP203_StartRequest { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_StartRequest) %extend StepAP203_StartRequest { %pythoncode { @@ -3504,51 +2633,7 @@ class StepAP203_StartWork : public StepBasic_ActionAssignment { }; -%extend StepAP203_StartWork { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP203_StartWork(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP203_StartWork::Handle_StepAP203_StartWork %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP203_StartWork; -class Handle_StepAP203_StartWork : public Handle_StepBasic_ActionAssignment { - - public: - // constructors - Handle_StepAP203_StartWork(); - Handle_StepAP203_StartWork(const Handle_StepAP203_StartWork &aHandle); - Handle_StepAP203_StartWork(const StepAP203_StartWork *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP203_StartWork DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP203_StartWork { - StepAP203_StartWork* _get_reference() { - return (StepAP203_StartWork*)$self->Access(); - } -}; - -%extend Handle_StepAP203_StartWork { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP203_StartWork) %extend StepAP203_StartWork { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepAP209.i b/src/SWIG_files/wrapper/StepAP209.i index 2e209e2e9..104191f52 100644 --- a/src/SWIG_files/wrapper/StepAP209.i +++ b/src/SWIG_files/wrapper/StepAP209.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define STEPAP209DOCSTRING -"No docstring provided." +"-Purpose: +" %enddef %module (package="OCC.Core", docstring=STEPAP209DOCSTRING) StepAP209 @@ -34,31 +35,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepAP209_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor StepAP209_Construct; class StepAP209_Construct : public STEPConstruct_Tool { public: diff --git a/src/SWIG_files/wrapper/StepAP209_headers.i b/src/SWIG_files/wrapper/StepAP209_headers.i index 7644e25e4..a30565fd5 100644 --- a/src/SWIG_files/wrapper/StepAP209_headers.i +++ b/src/SWIG_files/wrapper/StepAP209_headers.i @@ -830,7 +830,683 @@ along with pythonOCC. If not, see . #include #include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/StepAP214.i b/src/SWIG_files/wrapper/StepAP214.i index b38ff0068..66bc57ad0 100644 --- a/src/SWIG_files/wrapper/StepAP214.i +++ b/src/SWIG_files/wrapper/StepAP214.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define STEPAP214DOCSTRING -"No docstring provided." +"-Purpose : Complete AP214 CC1 , Revision 4 +Upgrading from Revision 2 to Revision 4 : 26 Mar 1997 +Splitting in sub-schemas : 5 Nov 1997 +" %enddef %module (package="OCC.Core", docstring=STEPAP214DOCSTRING) StepAP214 @@ -34,31 +37,62 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepAP214_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(StepAP214_AppliedApprovalAssignment) +%wrap_handle(StepAP214_AppliedDateAndTimeAssignment) +%wrap_handle(StepAP214_AppliedDateAssignment) +%wrap_handle(StepAP214_AppliedDocumentReference) +%wrap_handle(StepAP214_AppliedExternalIdentificationAssignment) +%wrap_handle(StepAP214_AppliedGroupAssignment) +%wrap_handle(StepAP214_AppliedOrganizationAssignment) +%wrap_handle(StepAP214_AppliedPersonAndOrganizationAssignment) +%wrap_handle(StepAP214_AppliedPresentedItem) +%wrap_handle(StepAP214_AppliedSecurityClassificationAssignment) +%wrap_handle(StepAP214_AutoDesignActualDateAndTimeAssignment) +%wrap_handle(StepAP214_AutoDesignActualDateAssignment) +%wrap_handle(StepAP214_AutoDesignApprovalAssignment) +%wrap_handle(StepAP214_AutoDesignDateAndPersonAssignment) +%wrap_handle(StepAP214_AutoDesignDocumentReference) +%wrap_handle(StepAP214_AutoDesignGroupAssignment) +%wrap_handle(StepAP214_AutoDesignNominalDateAndTimeAssignment) +%wrap_handle(StepAP214_AutoDesignNominalDateAssignment) +%wrap_handle(StepAP214_AutoDesignOrganizationAssignment) +%wrap_handle(StepAP214_AutoDesignPersonAndOrganizationAssignment) +%wrap_handle(StepAP214_AutoDesignPresentedItem) +%wrap_handle(StepAP214_AutoDesignSecurityClassificationAssignment) +%wrap_handle(StepAP214_Class) +%wrap_handle(StepAP214_ExternallyDefinedGeneralProperty) +%wrap_handle(StepAP214_HArray1OfApprovalItem) +%wrap_handle(StepAP214_HArray1OfAutoDesignDateAndPersonItem) +%wrap_handle(StepAP214_HArray1OfAutoDesignDateAndTimeItem) +%wrap_handle(StepAP214_HArray1OfAutoDesignDatedItem) +%wrap_handle(StepAP214_HArray1OfAutoDesignGeneralOrgItem) +%wrap_handle(StepAP214_HArray1OfAutoDesignGroupedItem) +%wrap_handle(StepAP214_HArray1OfAutoDesignPresentedItemSelect) +%wrap_handle(StepAP214_HArray1OfAutoDesignReferencingItem) +%wrap_handle(StepAP214_HArray1OfDateAndTimeItem) +%wrap_handle(StepAP214_HArray1OfDateItem) +%wrap_handle(StepAP214_HArray1OfDocumentReferenceItem) +%wrap_handle(StepAP214_HArray1OfExternalIdentificationItem) +%wrap_handle(StepAP214_HArray1OfGroupItem) +%wrap_handle(StepAP214_HArray1OfOrganizationItem) +%wrap_handle(StepAP214_HArray1OfPersonAndOrganizationItem) +%wrap_handle(StepAP214_HArray1OfPresentedItemSelect) +%wrap_handle(StepAP214_HArray1OfSecurityClassificationItem) +%wrap_handle(StepAP214_Protocol) +%wrap_handle(StepAP214_RepItemGroup) +%wrap_handle(StepAP214_ExternallyDefinedClass) + %rename(stepap214) StepAP214; class StepAP214 { public: @@ -122,51 +156,7 @@ class StepAP214_AppliedApprovalAssignment : public StepBasic_ApprovalAssignment }; -%extend StepAP214_AppliedApprovalAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedApprovalAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedApprovalAssignment::Handle_StepAP214_AppliedApprovalAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedApprovalAssignment; -class Handle_StepAP214_AppliedApprovalAssignment : public Handle_StepBasic_ApprovalAssignment { - - public: - // constructors - Handle_StepAP214_AppliedApprovalAssignment(); - Handle_StepAP214_AppliedApprovalAssignment(const Handle_StepAP214_AppliedApprovalAssignment &aHandle); - Handle_StepAP214_AppliedApprovalAssignment(const StepAP214_AppliedApprovalAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedApprovalAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedApprovalAssignment { - StepAP214_AppliedApprovalAssignment* _get_reference() { - return (StepAP214_AppliedApprovalAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedApprovalAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedApprovalAssignment) %extend StepAP214_AppliedApprovalAssignment { %pythoncode { @@ -223,51 +213,7 @@ class StepAP214_AppliedDateAndTimeAssignment : public StepBasic_DateAndTimeAssig }; -%extend StepAP214_AppliedDateAndTimeAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedDateAndTimeAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedDateAndTimeAssignment::Handle_StepAP214_AppliedDateAndTimeAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedDateAndTimeAssignment; -class Handle_StepAP214_AppliedDateAndTimeAssignment : public Handle_StepBasic_DateAndTimeAssignment { - - public: - // constructors - Handle_StepAP214_AppliedDateAndTimeAssignment(); - Handle_StepAP214_AppliedDateAndTimeAssignment(const Handle_StepAP214_AppliedDateAndTimeAssignment &aHandle); - Handle_StepAP214_AppliedDateAndTimeAssignment(const StepAP214_AppliedDateAndTimeAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedDateAndTimeAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedDateAndTimeAssignment { - StepAP214_AppliedDateAndTimeAssignment* _get_reference() { - return (StepAP214_AppliedDateAndTimeAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedDateAndTimeAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedDateAndTimeAssignment) %extend StepAP214_AppliedDateAndTimeAssignment { %pythoncode { @@ -324,51 +270,7 @@ class StepAP214_AppliedDateAssignment : public StepBasic_DateAssignment { }; -%extend StepAP214_AppliedDateAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedDateAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedDateAssignment::Handle_StepAP214_AppliedDateAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedDateAssignment; -class Handle_StepAP214_AppliedDateAssignment : public Handle_StepBasic_DateAssignment { - - public: - // constructors - Handle_StepAP214_AppliedDateAssignment(); - Handle_StepAP214_AppliedDateAssignment(const Handle_StepAP214_AppliedDateAssignment &aHandle); - Handle_StepAP214_AppliedDateAssignment(const StepAP214_AppliedDateAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedDateAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedDateAssignment { - StepAP214_AppliedDateAssignment* _get_reference() { - return (StepAP214_AppliedDateAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedDateAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedDateAssignment) %extend StepAP214_AppliedDateAssignment { %pythoncode { @@ -415,51 +317,7 @@ class StepAP214_AppliedDocumentReference : public StepBasic_DocumentReference { }; -%extend StepAP214_AppliedDocumentReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedDocumentReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedDocumentReference::Handle_StepAP214_AppliedDocumentReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedDocumentReference; -class Handle_StepAP214_AppliedDocumentReference : public Handle_StepBasic_DocumentReference { - - public: - // constructors - Handle_StepAP214_AppliedDocumentReference(); - Handle_StepAP214_AppliedDocumentReference(const Handle_StepAP214_AppliedDocumentReference &aHandle); - Handle_StepAP214_AppliedDocumentReference(const StepAP214_AppliedDocumentReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedDocumentReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedDocumentReference { - StepAP214_AppliedDocumentReference* _get_reference() { - return (StepAP214_AppliedDocumentReference*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedDocumentReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedDocumentReference) %extend StepAP214_AppliedDocumentReference { %pythoncode { @@ -506,51 +364,7 @@ class StepAP214_AppliedExternalIdentificationAssignment : public StepBasic_Exter }; -%extend StepAP214_AppliedExternalIdentificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedExternalIdentificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedExternalIdentificationAssignment::Handle_StepAP214_AppliedExternalIdentificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedExternalIdentificationAssignment; -class Handle_StepAP214_AppliedExternalIdentificationAssignment : public Handle_StepBasic_ExternalIdentificationAssignment { - - public: - // constructors - Handle_StepAP214_AppliedExternalIdentificationAssignment(); - Handle_StepAP214_AppliedExternalIdentificationAssignment(const Handle_StepAP214_AppliedExternalIdentificationAssignment &aHandle); - Handle_StepAP214_AppliedExternalIdentificationAssignment(const StepAP214_AppliedExternalIdentificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedExternalIdentificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedExternalIdentificationAssignment { - StepAP214_AppliedExternalIdentificationAssignment* _get_reference() { - return (StepAP214_AppliedExternalIdentificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedExternalIdentificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedExternalIdentificationAssignment) %extend StepAP214_AppliedExternalIdentificationAssignment { %pythoncode { @@ -593,51 +407,7 @@ class StepAP214_AppliedGroupAssignment : public StepBasic_GroupAssignment { }; -%extend StepAP214_AppliedGroupAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedGroupAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedGroupAssignment::Handle_StepAP214_AppliedGroupAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedGroupAssignment; -class Handle_StepAP214_AppliedGroupAssignment : public Handle_StepBasic_GroupAssignment { - - public: - // constructors - Handle_StepAP214_AppliedGroupAssignment(); - Handle_StepAP214_AppliedGroupAssignment(const Handle_StepAP214_AppliedGroupAssignment &aHandle); - Handle_StepAP214_AppliedGroupAssignment(const StepAP214_AppliedGroupAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedGroupAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedGroupAssignment { - StepAP214_AppliedGroupAssignment* _get_reference() { - return (StepAP214_AppliedGroupAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedGroupAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedGroupAssignment) %extend StepAP214_AppliedGroupAssignment { %pythoncode { @@ -694,51 +464,7 @@ class StepAP214_AppliedOrganizationAssignment : public StepBasic_OrganizationAss }; -%extend StepAP214_AppliedOrganizationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedOrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedOrganizationAssignment::Handle_StepAP214_AppliedOrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedOrganizationAssignment; -class Handle_StepAP214_AppliedOrganizationAssignment : public Handle_StepBasic_OrganizationAssignment { - - public: - // constructors - Handle_StepAP214_AppliedOrganizationAssignment(); - Handle_StepAP214_AppliedOrganizationAssignment(const Handle_StepAP214_AppliedOrganizationAssignment &aHandle); - Handle_StepAP214_AppliedOrganizationAssignment(const StepAP214_AppliedOrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedOrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedOrganizationAssignment { - StepAP214_AppliedOrganizationAssignment* _get_reference() { - return (StepAP214_AppliedOrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedOrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedOrganizationAssignment) %extend StepAP214_AppliedOrganizationAssignment { %pythoncode { @@ -795,51 +521,7 @@ class StepAP214_AppliedPersonAndOrganizationAssignment : public StepBasic_Person }; -%extend StepAP214_AppliedPersonAndOrganizationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedPersonAndOrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedPersonAndOrganizationAssignment::Handle_StepAP214_AppliedPersonAndOrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedPersonAndOrganizationAssignment; -class Handle_StepAP214_AppliedPersonAndOrganizationAssignment : public Handle_StepBasic_PersonAndOrganizationAssignment { - - public: - // constructors - Handle_StepAP214_AppliedPersonAndOrganizationAssignment(); - Handle_StepAP214_AppliedPersonAndOrganizationAssignment(const Handle_StepAP214_AppliedPersonAndOrganizationAssignment &aHandle); - Handle_StepAP214_AppliedPersonAndOrganizationAssignment(const StepAP214_AppliedPersonAndOrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedPersonAndOrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedPersonAndOrganizationAssignment { - StepAP214_AppliedPersonAndOrganizationAssignment* _get_reference() { - return (StepAP214_AppliedPersonAndOrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedPersonAndOrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedPersonAndOrganizationAssignment) %extend StepAP214_AppliedPersonAndOrganizationAssignment { %pythoncode { @@ -884,51 +566,7 @@ class StepAP214_AppliedPresentedItem : public StepVisual_PresentedItem { }; -%extend StepAP214_AppliedPresentedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedPresentedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedPresentedItem::Handle_StepAP214_AppliedPresentedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedPresentedItem; -class Handle_StepAP214_AppliedPresentedItem : public Handle_StepVisual_PresentedItem { - - public: - // constructors - Handle_StepAP214_AppliedPresentedItem(); - Handle_StepAP214_AppliedPresentedItem(const Handle_StepAP214_AppliedPresentedItem &aHandle); - Handle_StepAP214_AppliedPresentedItem(const StepAP214_AppliedPresentedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedPresentedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedPresentedItem { - StepAP214_AppliedPresentedItem* _get_reference() { - return (StepAP214_AppliedPresentedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedPresentedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedPresentedItem) %extend StepAP214_AppliedPresentedItem { %pythoncode { @@ -981,51 +619,7 @@ class StepAP214_AppliedSecurityClassificationAssignment : public StepBasic_Secur }; -%extend StepAP214_AppliedSecurityClassificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AppliedSecurityClassificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AppliedSecurityClassificationAssignment::Handle_StepAP214_AppliedSecurityClassificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AppliedSecurityClassificationAssignment; -class Handle_StepAP214_AppliedSecurityClassificationAssignment : public Handle_StepBasic_SecurityClassificationAssignment { - - public: - // constructors - Handle_StepAP214_AppliedSecurityClassificationAssignment(); - Handle_StepAP214_AppliedSecurityClassificationAssignment(const Handle_StepAP214_AppliedSecurityClassificationAssignment &aHandle); - Handle_StepAP214_AppliedSecurityClassificationAssignment(const StepAP214_AppliedSecurityClassificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AppliedSecurityClassificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AppliedSecurityClassificationAssignment { - StepAP214_AppliedSecurityClassificationAssignment* _get_reference() { - return (StepAP214_AppliedSecurityClassificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AppliedSecurityClassificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AppliedSecurityClassificationAssignment) %extend StepAP214_AppliedSecurityClassificationAssignment { %pythoncode { @@ -2658,51 +2252,7 @@ class StepAP214_AutoDesignActualDateAndTimeAssignment : public StepBasic_DateAnd }; -%extend StepAP214_AutoDesignActualDateAndTimeAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignActualDateAndTimeAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignActualDateAndTimeAssignment::Handle_StepAP214_AutoDesignActualDateAndTimeAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignActualDateAndTimeAssignment; -class Handle_StepAP214_AutoDesignActualDateAndTimeAssignment : public Handle_StepBasic_DateAndTimeAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignActualDateAndTimeAssignment(); - Handle_StepAP214_AutoDesignActualDateAndTimeAssignment(const Handle_StepAP214_AutoDesignActualDateAndTimeAssignment &aHandle); - Handle_StepAP214_AutoDesignActualDateAndTimeAssignment(const StepAP214_AutoDesignActualDateAndTimeAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignActualDateAndTimeAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignActualDateAndTimeAssignment { - StepAP214_AutoDesignActualDateAndTimeAssignment* _get_reference() { - return (StepAP214_AutoDesignActualDateAndTimeAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignActualDateAndTimeAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignActualDateAndTimeAssignment) %extend StepAP214_AutoDesignActualDateAndTimeAssignment { %pythoncode { @@ -2759,51 +2309,7 @@ class StepAP214_AutoDesignActualDateAssignment : public StepBasic_DateAssignment }; -%extend StepAP214_AutoDesignActualDateAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignActualDateAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignActualDateAssignment::Handle_StepAP214_AutoDesignActualDateAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignActualDateAssignment; -class Handle_StepAP214_AutoDesignActualDateAssignment : public Handle_StepBasic_DateAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignActualDateAssignment(); - Handle_StepAP214_AutoDesignActualDateAssignment(const Handle_StepAP214_AutoDesignActualDateAssignment &aHandle); - Handle_StepAP214_AutoDesignActualDateAssignment(const StepAP214_AutoDesignActualDateAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignActualDateAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignActualDateAssignment { - StepAP214_AutoDesignActualDateAssignment* _get_reference() { - return (StepAP214_AutoDesignActualDateAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignActualDateAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignActualDateAssignment) %extend StepAP214_AutoDesignActualDateAssignment { %pythoncode { @@ -2856,51 +2362,7 @@ class StepAP214_AutoDesignApprovalAssignment : public StepBasic_ApprovalAssignme }; -%extend StepAP214_AutoDesignApprovalAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignApprovalAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignApprovalAssignment::Handle_StepAP214_AutoDesignApprovalAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignApprovalAssignment; -class Handle_StepAP214_AutoDesignApprovalAssignment : public Handle_StepBasic_ApprovalAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignApprovalAssignment(); - Handle_StepAP214_AutoDesignApprovalAssignment(const Handle_StepAP214_AutoDesignApprovalAssignment &aHandle); - Handle_StepAP214_AutoDesignApprovalAssignment(const StepAP214_AutoDesignApprovalAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignApprovalAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignApprovalAssignment { - StepAP214_AutoDesignApprovalAssignment* _get_reference() { - return (StepAP214_AutoDesignApprovalAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignApprovalAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignApprovalAssignment) %extend StepAP214_AutoDesignApprovalAssignment { %pythoncode { @@ -2957,51 +2419,7 @@ class StepAP214_AutoDesignDateAndPersonAssignment : public StepBasic_PersonAndOr }; -%extend StepAP214_AutoDesignDateAndPersonAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignDateAndPersonAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignDateAndPersonAssignment::Handle_StepAP214_AutoDesignDateAndPersonAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignDateAndPersonAssignment; -class Handle_StepAP214_AutoDesignDateAndPersonAssignment : public Handle_StepBasic_PersonAndOrganizationAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignDateAndPersonAssignment(); - Handle_StepAP214_AutoDesignDateAndPersonAssignment(const Handle_StepAP214_AutoDesignDateAndPersonAssignment &aHandle); - Handle_StepAP214_AutoDesignDateAndPersonAssignment(const StepAP214_AutoDesignDateAndPersonAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignDateAndPersonAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignDateAndPersonAssignment { - StepAP214_AutoDesignDateAndPersonAssignment* _get_reference() { - return (StepAP214_AutoDesignDateAndPersonAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignDateAndPersonAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignDateAndPersonAssignment) %extend StepAP214_AutoDesignDateAndPersonAssignment { %pythoncode { @@ -3193,51 +2611,7 @@ class StepAP214_AutoDesignDocumentReference : public StepBasic_DocumentReference }; -%extend StepAP214_AutoDesignDocumentReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignDocumentReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignDocumentReference::Handle_StepAP214_AutoDesignDocumentReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignDocumentReference; -class Handle_StepAP214_AutoDesignDocumentReference : public Handle_StepBasic_DocumentReference { - - public: - // constructors - Handle_StepAP214_AutoDesignDocumentReference(); - Handle_StepAP214_AutoDesignDocumentReference(const Handle_StepAP214_AutoDesignDocumentReference &aHandle); - Handle_StepAP214_AutoDesignDocumentReference(const StepAP214_AutoDesignDocumentReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignDocumentReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignDocumentReference { - StepAP214_AutoDesignDocumentReference* _get_reference() { - return (StepAP214_AutoDesignDocumentReference*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignDocumentReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignDocumentReference) %extend StepAP214_AutoDesignDocumentReference { %pythoncode { @@ -3355,51 +2729,7 @@ class StepAP214_AutoDesignGroupAssignment : public StepBasic_GroupAssignment { }; -%extend StepAP214_AutoDesignGroupAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignGroupAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignGroupAssignment::Handle_StepAP214_AutoDesignGroupAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignGroupAssignment; -class Handle_StepAP214_AutoDesignGroupAssignment : public Handle_StepBasic_GroupAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignGroupAssignment(); - Handle_StepAP214_AutoDesignGroupAssignment(const Handle_StepAP214_AutoDesignGroupAssignment &aHandle); - Handle_StepAP214_AutoDesignGroupAssignment(const StepAP214_AutoDesignGroupAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignGroupAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignGroupAssignment { - StepAP214_AutoDesignGroupAssignment* _get_reference() { - return (StepAP214_AutoDesignGroupAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignGroupAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignGroupAssignment) %extend StepAP214_AutoDesignGroupAssignment { %pythoncode { @@ -3547,51 +2877,7 @@ class StepAP214_AutoDesignNominalDateAndTimeAssignment : public StepBasic_DateAn }; -%extend StepAP214_AutoDesignNominalDateAndTimeAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment::Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment; -class Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment : public Handle_StepBasic_DateAndTimeAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment(); - Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment(const Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment &aHandle); - Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment(const StepAP214_AutoDesignNominalDateAndTimeAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment { - StepAP214_AutoDesignNominalDateAndTimeAssignment* _get_reference() { - return (StepAP214_AutoDesignNominalDateAndTimeAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignNominalDateAndTimeAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignNominalDateAndTimeAssignment) %extend StepAP214_AutoDesignNominalDateAndTimeAssignment { %pythoncode { @@ -3648,51 +2934,7 @@ class StepAP214_AutoDesignNominalDateAssignment : public StepBasic_DateAssignmen }; -%extend StepAP214_AutoDesignNominalDateAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignNominalDateAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignNominalDateAssignment::Handle_StepAP214_AutoDesignNominalDateAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignNominalDateAssignment; -class Handle_StepAP214_AutoDesignNominalDateAssignment : public Handle_StepBasic_DateAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignNominalDateAssignment(); - Handle_StepAP214_AutoDesignNominalDateAssignment(const Handle_StepAP214_AutoDesignNominalDateAssignment &aHandle); - Handle_StepAP214_AutoDesignNominalDateAssignment(const StepAP214_AutoDesignNominalDateAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignNominalDateAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignNominalDateAssignment { - StepAP214_AutoDesignNominalDateAssignment* _get_reference() { - return (StepAP214_AutoDesignNominalDateAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignNominalDateAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignNominalDateAssignment) %extend StepAP214_AutoDesignNominalDateAssignment { %pythoncode { @@ -3749,51 +2991,7 @@ class StepAP214_AutoDesignOrganizationAssignment : public StepBasic_Organization }; -%extend StepAP214_AutoDesignOrganizationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignOrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignOrganizationAssignment::Handle_StepAP214_AutoDesignOrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignOrganizationAssignment; -class Handle_StepAP214_AutoDesignOrganizationAssignment : public Handle_StepBasic_OrganizationAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignOrganizationAssignment(); - Handle_StepAP214_AutoDesignOrganizationAssignment(const Handle_StepAP214_AutoDesignOrganizationAssignment &aHandle); - Handle_StepAP214_AutoDesignOrganizationAssignment(const StepAP214_AutoDesignOrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignOrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignOrganizationAssignment { - StepAP214_AutoDesignOrganizationAssignment* _get_reference() { - return (StepAP214_AutoDesignOrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignOrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignOrganizationAssignment) %extend StepAP214_AutoDesignOrganizationAssignment { %pythoncode { @@ -3850,55 +3048,11 @@ class StepAP214_AutoDesignPersonAndOrganizationAssignment : public StepBasic_Per }; +%make_alias(StepAP214_AutoDesignPersonAndOrganizationAssignment) + %extend StepAP214_AutoDesignPersonAndOrganizationAssignment { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment::Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment; -class Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment : public Handle_StepBasic_PersonAndOrganizationAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment(); - Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment(const Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment &aHandle); - Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment(const StepAP214_AutoDesignPersonAndOrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment { - StepAP214_AutoDesignPersonAndOrganizationAssignment* _get_reference() { - return (StepAP214_AutoDesignPersonAndOrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignPersonAndOrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepAP214_AutoDesignPersonAndOrganizationAssignment { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepAP214_AutoDesignPresentedItem; @@ -3939,51 +3093,7 @@ class StepAP214_AutoDesignPresentedItem : public StepVisual_PresentedItem { }; -%extend StepAP214_AutoDesignPresentedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignPresentedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignPresentedItem::Handle_StepAP214_AutoDesignPresentedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignPresentedItem; -class Handle_StepAP214_AutoDesignPresentedItem : public Handle_StepVisual_PresentedItem { - - public: - // constructors - Handle_StepAP214_AutoDesignPresentedItem(); - Handle_StepAP214_AutoDesignPresentedItem(const Handle_StepAP214_AutoDesignPresentedItem &aHandle); - Handle_StepAP214_AutoDesignPresentedItem(const StepAP214_AutoDesignPresentedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignPresentedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignPresentedItem { - StepAP214_AutoDesignPresentedItem* _get_reference() { - return (StepAP214_AutoDesignPresentedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignPresentedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignPresentedItem) %extend StepAP214_AutoDesignPresentedItem { %pythoncode { @@ -4178,51 +3288,7 @@ class StepAP214_AutoDesignSecurityClassificationAssignment : public StepBasic_Se }; -%extend StepAP214_AutoDesignSecurityClassificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_AutoDesignSecurityClassificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_AutoDesignSecurityClassificationAssignment::Handle_StepAP214_AutoDesignSecurityClassificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_AutoDesignSecurityClassificationAssignment; -class Handle_StepAP214_AutoDesignSecurityClassificationAssignment : public Handle_StepBasic_SecurityClassificationAssignment { - - public: - // constructors - Handle_StepAP214_AutoDesignSecurityClassificationAssignment(); - Handle_StepAP214_AutoDesignSecurityClassificationAssignment(const Handle_StepAP214_AutoDesignSecurityClassificationAssignment &aHandle); - Handle_StepAP214_AutoDesignSecurityClassificationAssignment(const StepAP214_AutoDesignSecurityClassificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_AutoDesignSecurityClassificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_AutoDesignSecurityClassificationAssignment { - StepAP214_AutoDesignSecurityClassificationAssignment* _get_reference() { - return (StepAP214_AutoDesignSecurityClassificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepAP214_AutoDesignSecurityClassificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_AutoDesignSecurityClassificationAssignment) %extend StepAP214_AutoDesignSecurityClassificationAssignment { %pythoncode { @@ -4241,51 +3307,7 @@ class StepAP214_Class : public StepBasic_Group { }; -%extend StepAP214_Class { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_Class(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_Class::Handle_StepAP214_Class %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_Class; -class Handle_StepAP214_Class : public Handle_StepBasic_Group { - - public: - // constructors - Handle_StepAP214_Class(); - Handle_StepAP214_Class(const Handle_StepAP214_Class &aHandle); - Handle_StepAP214_Class(const StepAP214_Class *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_Class DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_Class { - StepAP214_Class* _get_reference() { - return (StepAP214_Class*)$self->Access(); - } -}; - -%extend Handle_StepAP214_Class { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_Class) %extend StepAP214_Class { %pythoncode { @@ -4464,51 +3486,7 @@ class StepAP214_ExternallyDefinedGeneralProperty : public StepBasic_GeneralPrope }; -%extend StepAP214_ExternallyDefinedGeneralProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_ExternallyDefinedGeneralProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_ExternallyDefinedGeneralProperty::Handle_StepAP214_ExternallyDefinedGeneralProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_ExternallyDefinedGeneralProperty; -class Handle_StepAP214_ExternallyDefinedGeneralProperty : public Handle_StepBasic_GeneralProperty { - - public: - // constructors - Handle_StepAP214_ExternallyDefinedGeneralProperty(); - Handle_StepAP214_ExternallyDefinedGeneralProperty(const Handle_StepAP214_ExternallyDefinedGeneralProperty &aHandle); - Handle_StepAP214_ExternallyDefinedGeneralProperty(const StepAP214_ExternallyDefinedGeneralProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_ExternallyDefinedGeneralProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_ExternallyDefinedGeneralProperty { - StepAP214_ExternallyDefinedGeneralProperty* _get_reference() { - return (StepAP214_ExternallyDefinedGeneralProperty*)$self->Access(); - } -}; - -%extend Handle_StepAP214_ExternallyDefinedGeneralProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_ExternallyDefinedGeneralProperty) %extend StepAP214_ExternallyDefinedGeneralProperty { %pythoncode { @@ -4616,51 +3594,7 @@ class StepAP214_HArray1OfApprovalItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfApprovalItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfApprovalItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfApprovalItem::Handle_StepAP214_HArray1OfApprovalItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfApprovalItem; -class Handle_StepAP214_HArray1OfApprovalItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfApprovalItem(); - Handle_StepAP214_HArray1OfApprovalItem(const Handle_StepAP214_HArray1OfApprovalItem &aHandle); - Handle_StepAP214_HArray1OfApprovalItem(const StepAP214_HArray1OfApprovalItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfApprovalItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfApprovalItem { - StepAP214_HArray1OfApprovalItem* _get_reference() { - return (StepAP214_HArray1OfApprovalItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfApprovalItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfApprovalItem) %extend StepAP214_HArray1OfApprovalItem { %pythoncode { @@ -4737,51 +3671,7 @@ class StepAP214_HArray1OfAutoDesignDateAndPersonItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignDateAndPersonItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem::Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem; -class Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem(); - Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem(const Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem &aHandle); - Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem(const StepAP214_HArray1OfAutoDesignDateAndPersonItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem { - StepAP214_HArray1OfAutoDesignDateAndPersonItem* _get_reference() { - return (StepAP214_HArray1OfAutoDesignDateAndPersonItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignDateAndPersonItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignDateAndPersonItem) %extend StepAP214_HArray1OfAutoDesignDateAndPersonItem { %pythoncode { @@ -4858,51 +3748,7 @@ class StepAP214_HArray1OfAutoDesignDateAndTimeItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignDateAndTimeItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem::Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem; -class Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem(); - Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem(const Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem &aHandle); - Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem(const StepAP214_HArray1OfAutoDesignDateAndTimeItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem { - StepAP214_HArray1OfAutoDesignDateAndTimeItem* _get_reference() { - return (StepAP214_HArray1OfAutoDesignDateAndTimeItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignDateAndTimeItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignDateAndTimeItem) %extend StepAP214_HArray1OfAutoDesignDateAndTimeItem { %pythoncode { @@ -4979,51 +3825,7 @@ class StepAP214_HArray1OfAutoDesignDatedItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignDatedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignDatedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignDatedItem::Handle_StepAP214_HArray1OfAutoDesignDatedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignDatedItem; -class Handle_StepAP214_HArray1OfAutoDesignDatedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignDatedItem(); - Handle_StepAP214_HArray1OfAutoDesignDatedItem(const Handle_StepAP214_HArray1OfAutoDesignDatedItem &aHandle); - Handle_StepAP214_HArray1OfAutoDesignDatedItem(const StepAP214_HArray1OfAutoDesignDatedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignDatedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignDatedItem { - StepAP214_HArray1OfAutoDesignDatedItem* _get_reference() { - return (StepAP214_HArray1OfAutoDesignDatedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignDatedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignDatedItem) %extend StepAP214_HArray1OfAutoDesignDatedItem { %pythoncode { @@ -5100,51 +3902,7 @@ class StepAP214_HArray1OfAutoDesignGeneralOrgItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignGeneralOrgItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem::Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem; -class Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem(); - Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem(const Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem &aHandle); - Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem(const StepAP214_HArray1OfAutoDesignGeneralOrgItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem { - StepAP214_HArray1OfAutoDesignGeneralOrgItem* _get_reference() { - return (StepAP214_HArray1OfAutoDesignGeneralOrgItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignGeneralOrgItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignGeneralOrgItem) %extend StepAP214_HArray1OfAutoDesignGeneralOrgItem { %pythoncode { @@ -5221,51 +3979,7 @@ class StepAP214_HArray1OfAutoDesignGroupedItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignGroupedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignGroupedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignGroupedItem::Handle_StepAP214_HArray1OfAutoDesignGroupedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignGroupedItem; -class Handle_StepAP214_HArray1OfAutoDesignGroupedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignGroupedItem(); - Handle_StepAP214_HArray1OfAutoDesignGroupedItem(const Handle_StepAP214_HArray1OfAutoDesignGroupedItem &aHandle); - Handle_StepAP214_HArray1OfAutoDesignGroupedItem(const StepAP214_HArray1OfAutoDesignGroupedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignGroupedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignGroupedItem { - StepAP214_HArray1OfAutoDesignGroupedItem* _get_reference() { - return (StepAP214_HArray1OfAutoDesignGroupedItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignGroupedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignGroupedItem) %extend StepAP214_HArray1OfAutoDesignGroupedItem { %pythoncode { @@ -5342,51 +4056,7 @@ class StepAP214_HArray1OfAutoDesignPresentedItemSelect : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignPresentedItemSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect::Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect; -class Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect(); - Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect(const Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect &aHandle); - Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect(const StepAP214_HArray1OfAutoDesignPresentedItemSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect { - StepAP214_HArray1OfAutoDesignPresentedItemSelect* _get_reference() { - return (StepAP214_HArray1OfAutoDesignPresentedItemSelect*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignPresentedItemSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignPresentedItemSelect) %extend StepAP214_HArray1OfAutoDesignPresentedItemSelect { %pythoncode { @@ -5463,51 +4133,7 @@ class StepAP214_HArray1OfAutoDesignReferencingItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfAutoDesignReferencingItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfAutoDesignReferencingItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfAutoDesignReferencingItem::Handle_StepAP214_HArray1OfAutoDesignReferencingItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfAutoDesignReferencingItem; -class Handle_StepAP214_HArray1OfAutoDesignReferencingItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfAutoDesignReferencingItem(); - Handle_StepAP214_HArray1OfAutoDesignReferencingItem(const Handle_StepAP214_HArray1OfAutoDesignReferencingItem &aHandle); - Handle_StepAP214_HArray1OfAutoDesignReferencingItem(const StepAP214_HArray1OfAutoDesignReferencingItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfAutoDesignReferencingItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfAutoDesignReferencingItem { - StepAP214_HArray1OfAutoDesignReferencingItem* _get_reference() { - return (StepAP214_HArray1OfAutoDesignReferencingItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfAutoDesignReferencingItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfAutoDesignReferencingItem) %extend StepAP214_HArray1OfAutoDesignReferencingItem { %pythoncode { @@ -5584,51 +4210,7 @@ class StepAP214_HArray1OfDateAndTimeItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfDateAndTimeItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfDateAndTimeItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfDateAndTimeItem::Handle_StepAP214_HArray1OfDateAndTimeItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfDateAndTimeItem; -class Handle_StepAP214_HArray1OfDateAndTimeItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfDateAndTimeItem(); - Handle_StepAP214_HArray1OfDateAndTimeItem(const Handle_StepAP214_HArray1OfDateAndTimeItem &aHandle); - Handle_StepAP214_HArray1OfDateAndTimeItem(const StepAP214_HArray1OfDateAndTimeItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfDateAndTimeItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfDateAndTimeItem { - StepAP214_HArray1OfDateAndTimeItem* _get_reference() { - return (StepAP214_HArray1OfDateAndTimeItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfDateAndTimeItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfDateAndTimeItem) %extend StepAP214_HArray1OfDateAndTimeItem { %pythoncode { @@ -5705,51 +4287,7 @@ class StepAP214_HArray1OfDateItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfDateItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfDateItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfDateItem::Handle_StepAP214_HArray1OfDateItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfDateItem; -class Handle_StepAP214_HArray1OfDateItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfDateItem(); - Handle_StepAP214_HArray1OfDateItem(const Handle_StepAP214_HArray1OfDateItem &aHandle); - Handle_StepAP214_HArray1OfDateItem(const StepAP214_HArray1OfDateItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfDateItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfDateItem { - StepAP214_HArray1OfDateItem* _get_reference() { - return (StepAP214_HArray1OfDateItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfDateItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfDateItem) %extend StepAP214_HArray1OfDateItem { %pythoncode { @@ -5826,51 +4364,7 @@ class StepAP214_HArray1OfDocumentReferenceItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfDocumentReferenceItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfDocumentReferenceItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfDocumentReferenceItem::Handle_StepAP214_HArray1OfDocumentReferenceItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfDocumentReferenceItem; -class Handle_StepAP214_HArray1OfDocumentReferenceItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfDocumentReferenceItem(); - Handle_StepAP214_HArray1OfDocumentReferenceItem(const Handle_StepAP214_HArray1OfDocumentReferenceItem &aHandle); - Handle_StepAP214_HArray1OfDocumentReferenceItem(const StepAP214_HArray1OfDocumentReferenceItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfDocumentReferenceItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfDocumentReferenceItem { - StepAP214_HArray1OfDocumentReferenceItem* _get_reference() { - return (StepAP214_HArray1OfDocumentReferenceItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfDocumentReferenceItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfDocumentReferenceItem) %extend StepAP214_HArray1OfDocumentReferenceItem { %pythoncode { @@ -5947,51 +4441,7 @@ class StepAP214_HArray1OfExternalIdentificationItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfExternalIdentificationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfExternalIdentificationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfExternalIdentificationItem::Handle_StepAP214_HArray1OfExternalIdentificationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfExternalIdentificationItem; -class Handle_StepAP214_HArray1OfExternalIdentificationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfExternalIdentificationItem(); - Handle_StepAP214_HArray1OfExternalIdentificationItem(const Handle_StepAP214_HArray1OfExternalIdentificationItem &aHandle); - Handle_StepAP214_HArray1OfExternalIdentificationItem(const StepAP214_HArray1OfExternalIdentificationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfExternalIdentificationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfExternalIdentificationItem { - StepAP214_HArray1OfExternalIdentificationItem* _get_reference() { - return (StepAP214_HArray1OfExternalIdentificationItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfExternalIdentificationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfExternalIdentificationItem) %extend StepAP214_HArray1OfExternalIdentificationItem { %pythoncode { @@ -6068,51 +4518,7 @@ class StepAP214_HArray1OfGroupItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfGroupItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfGroupItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfGroupItem::Handle_StepAP214_HArray1OfGroupItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfGroupItem; -class Handle_StepAP214_HArray1OfGroupItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfGroupItem(); - Handle_StepAP214_HArray1OfGroupItem(const Handle_StepAP214_HArray1OfGroupItem &aHandle); - Handle_StepAP214_HArray1OfGroupItem(const StepAP214_HArray1OfGroupItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfGroupItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfGroupItem { - StepAP214_HArray1OfGroupItem* _get_reference() { - return (StepAP214_HArray1OfGroupItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfGroupItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfGroupItem) %extend StepAP214_HArray1OfGroupItem { %pythoncode { @@ -6189,51 +4595,7 @@ class StepAP214_HArray1OfOrganizationItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfOrganizationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfOrganizationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfOrganizationItem::Handle_StepAP214_HArray1OfOrganizationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfOrganizationItem; -class Handle_StepAP214_HArray1OfOrganizationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfOrganizationItem(); - Handle_StepAP214_HArray1OfOrganizationItem(const Handle_StepAP214_HArray1OfOrganizationItem &aHandle); - Handle_StepAP214_HArray1OfOrganizationItem(const StepAP214_HArray1OfOrganizationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfOrganizationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfOrganizationItem { - StepAP214_HArray1OfOrganizationItem* _get_reference() { - return (StepAP214_HArray1OfOrganizationItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfOrganizationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfOrganizationItem) %extend StepAP214_HArray1OfOrganizationItem { %pythoncode { @@ -6310,51 +4672,7 @@ class StepAP214_HArray1OfPersonAndOrganizationItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfPersonAndOrganizationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfPersonAndOrganizationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfPersonAndOrganizationItem::Handle_StepAP214_HArray1OfPersonAndOrganizationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfPersonAndOrganizationItem; -class Handle_StepAP214_HArray1OfPersonAndOrganizationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfPersonAndOrganizationItem(); - Handle_StepAP214_HArray1OfPersonAndOrganizationItem(const Handle_StepAP214_HArray1OfPersonAndOrganizationItem &aHandle); - Handle_StepAP214_HArray1OfPersonAndOrganizationItem(const StepAP214_HArray1OfPersonAndOrganizationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfPersonAndOrganizationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfPersonAndOrganizationItem { - StepAP214_HArray1OfPersonAndOrganizationItem* _get_reference() { - return (StepAP214_HArray1OfPersonAndOrganizationItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfPersonAndOrganizationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfPersonAndOrganizationItem) %extend StepAP214_HArray1OfPersonAndOrganizationItem { %pythoncode { @@ -6431,51 +4749,7 @@ class StepAP214_HArray1OfPresentedItemSelect : public MMgt_TShared { }; -%extend StepAP214_HArray1OfPresentedItemSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfPresentedItemSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfPresentedItemSelect::Handle_StepAP214_HArray1OfPresentedItemSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfPresentedItemSelect; -class Handle_StepAP214_HArray1OfPresentedItemSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfPresentedItemSelect(); - Handle_StepAP214_HArray1OfPresentedItemSelect(const Handle_StepAP214_HArray1OfPresentedItemSelect &aHandle); - Handle_StepAP214_HArray1OfPresentedItemSelect(const StepAP214_HArray1OfPresentedItemSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfPresentedItemSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfPresentedItemSelect { - StepAP214_HArray1OfPresentedItemSelect* _get_reference() { - return (StepAP214_HArray1OfPresentedItemSelect*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfPresentedItemSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfPresentedItemSelect) %extend StepAP214_HArray1OfPresentedItemSelect { %pythoncode { @@ -6552,51 +4826,7 @@ class StepAP214_HArray1OfSecurityClassificationItem : public MMgt_TShared { }; -%extend StepAP214_HArray1OfSecurityClassificationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_HArray1OfSecurityClassificationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_HArray1OfSecurityClassificationItem::Handle_StepAP214_HArray1OfSecurityClassificationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_HArray1OfSecurityClassificationItem; -class Handle_StepAP214_HArray1OfSecurityClassificationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepAP214_HArray1OfSecurityClassificationItem(); - Handle_StepAP214_HArray1OfSecurityClassificationItem(const Handle_StepAP214_HArray1OfSecurityClassificationItem &aHandle); - Handle_StepAP214_HArray1OfSecurityClassificationItem(const StepAP214_HArray1OfSecurityClassificationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_HArray1OfSecurityClassificationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_HArray1OfSecurityClassificationItem { - StepAP214_HArray1OfSecurityClassificationItem* _get_reference() { - return (StepAP214_HArray1OfSecurityClassificationItem*)$self->Access(); - } -}; - -%extend Handle_StepAP214_HArray1OfSecurityClassificationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_HArray1OfSecurityClassificationItem) %extend StepAP214_HArray1OfSecurityClassificationItem { %pythoncode { @@ -6676,51 +4906,7 @@ class StepAP214_Protocol : public StepData_Protocol { }; -%extend StepAP214_Protocol { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_Protocol(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_Protocol::Handle_StepAP214_Protocol %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_Protocol; -class Handle_StepAP214_Protocol : public Handle_StepData_Protocol { - - public: - // constructors - Handle_StepAP214_Protocol(); - Handle_StepAP214_Protocol(const Handle_StepAP214_Protocol &aHandle); - Handle_StepAP214_Protocol(const StepAP214_Protocol *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_Protocol DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_Protocol { - StepAP214_Protocol* _get_reference() { - return (StepAP214_Protocol*)$self->Access(); - } -}; - -%extend Handle_StepAP214_Protocol { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_Protocol) %extend StepAP214_Protocol { %pythoncode { @@ -6767,51 +4953,7 @@ class StepAP214_RepItemGroup : public StepBasic_Group { }; -%extend StepAP214_RepItemGroup { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_RepItemGroup(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_RepItemGroup::Handle_StepAP214_RepItemGroup %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_RepItemGroup; -class Handle_StepAP214_RepItemGroup : public Handle_StepBasic_Group { - - public: - // constructors - Handle_StepAP214_RepItemGroup(); - Handle_StepAP214_RepItemGroup(const Handle_StepAP214_RepItemGroup &aHandle); - Handle_StepAP214_RepItemGroup(const StepAP214_RepItemGroup *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_RepItemGroup DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_RepItemGroup { - StepAP214_RepItemGroup* _get_reference() { - return (StepAP214_RepItemGroup*)$self->Access(); - } -}; - -%extend Handle_StepAP214_RepItemGroup { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_RepItemGroup) %extend StepAP214_RepItemGroup { %pythoncode { @@ -6987,51 +5129,7 @@ class StepAP214_ExternallyDefinedClass : public StepAP214_Class { }; -%extend StepAP214_ExternallyDefinedClass { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepAP214_ExternallyDefinedClass(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepAP214_ExternallyDefinedClass::Handle_StepAP214_ExternallyDefinedClass %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepAP214_ExternallyDefinedClass; -class Handle_StepAP214_ExternallyDefinedClass : public Handle_StepAP214_Class { - - public: - // constructors - Handle_StepAP214_ExternallyDefinedClass(); - Handle_StepAP214_ExternallyDefinedClass(const Handle_StepAP214_ExternallyDefinedClass &aHandle); - Handle_StepAP214_ExternallyDefinedClass(const StepAP214_ExternallyDefinedClass *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepAP214_ExternallyDefinedClass DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepAP214_ExternallyDefinedClass { - StepAP214_ExternallyDefinedClass* _get_reference() { - return (StepAP214_ExternallyDefinedClass*)$self->Access(); - } -}; - -%extend Handle_StepAP214_ExternallyDefinedClass { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepAP214_ExternallyDefinedClass) %extend StepAP214_ExternallyDefinedClass { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepBasic.i b/src/SWIG_files/wrapper/StepBasic.i index 41a69fb48..e0b0c242a 100644 --- a/src/SWIG_files/wrapper/StepBasic.i +++ b/src/SWIG_files/wrapper/StepBasic.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define STEPBASICDOCSTRING -"No docstring provided." +"-Purpose : Collects definitions of STEP entities from Part 41 of ISO10303 +" %enddef %module (package="OCC.Core", docstring=STEPBASICDOCSTRING) StepBasic @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepBasic_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -121,6 +108,149 @@ enum StepBasic_SiPrefix { /* end public enums declaration */ +%wrap_handle(StepBasic_Action) +%wrap_handle(StepBasic_ActionAssignment) +%wrap_handle(StepBasic_ActionMethod) +%wrap_handle(StepBasic_ActionRequestAssignment) +%wrap_handle(StepBasic_ActionRequestSolution) +%wrap_handle(StepBasic_Address) +%wrap_handle(StepBasic_ApplicationContext) +%wrap_handle(StepBasic_ApplicationContextElement) +%wrap_handle(StepBasic_ApplicationProtocolDefinition) +%wrap_handle(StepBasic_Approval) +%wrap_handle(StepBasic_ApprovalAssignment) +%wrap_handle(StepBasic_ApprovalDateTime) +%wrap_handle(StepBasic_ApprovalPersonOrganization) +%wrap_handle(StepBasic_ApprovalRelationship) +%wrap_handle(StepBasic_ApprovalRole) +%wrap_handle(StepBasic_ApprovalStatus) +%wrap_handle(StepBasic_Certification) +%wrap_handle(StepBasic_CertificationAssignment) +%wrap_handle(StepBasic_CertificationType) +%wrap_handle(StepBasic_CharacterizedObject) +%wrap_handle(StepBasic_Contract) +%wrap_handle(StepBasic_ContractAssignment) +%wrap_handle(StepBasic_ContractType) +%wrap_handle(StepBasic_CoordinatedUniversalTimeOffset) +%wrap_handle(StepBasic_Date) +%wrap_handle(StepBasic_DateAndTime) +%wrap_handle(StepBasic_DateAndTimeAssignment) +%wrap_handle(StepBasic_DateAssignment) +%wrap_handle(StepBasic_DateRole) +%wrap_handle(StepBasic_DateTimeRole) +%wrap_handle(StepBasic_DerivedUnit) +%wrap_handle(StepBasic_DerivedUnitElement) +%wrap_handle(StepBasic_DimensionalExponents) +%wrap_handle(StepBasic_Document) +%wrap_handle(StepBasic_DocumentProductAssociation) +%wrap_handle(StepBasic_DocumentReference) +%wrap_handle(StepBasic_DocumentRelationship) +%wrap_handle(StepBasic_DocumentRepresentationType) +%wrap_handle(StepBasic_DocumentType) +%wrap_handle(StepBasic_DocumentUsageConstraint) +%wrap_handle(StepBasic_Effectivity) +%wrap_handle(StepBasic_EffectivityAssignment) +%wrap_handle(StepBasic_EulerAngles) +%wrap_handle(StepBasic_ExternalSource) +%wrap_handle(StepBasic_ExternallyDefinedItem) +%wrap_handle(StepBasic_GeneralProperty) +%wrap_handle(StepBasic_Group) +%wrap_handle(StepBasic_GroupAssignment) +%wrap_handle(StepBasic_GroupRelationship) +%wrap_handle(StepBasic_HArray1OfApproval) +%wrap_handle(StepBasic_HArray1OfDerivedUnitElement) +%wrap_handle(StepBasic_HArray1OfDocument) +%wrap_handle(StepBasic_HArray1OfNamedUnit) +%wrap_handle(StepBasic_HArray1OfOrganization) +%wrap_handle(StepBasic_HArray1OfPerson) +%wrap_handle(StepBasic_HArray1OfProduct) +%wrap_handle(StepBasic_HArray1OfProductContext) +%wrap_handle(StepBasic_HArray1OfProductDefinition) +%wrap_handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit) +%wrap_handle(StepBasic_IdentificationAssignment) +%wrap_handle(StepBasic_IdentificationRole) +%wrap_handle(StepBasic_LocalTime) +%wrap_handle(StepBasic_MeasureValueMember) +%wrap_handle(StepBasic_MeasureWithUnit) +%wrap_handle(StepBasic_NameAssignment) +%wrap_handle(StepBasic_NamedUnit) +%wrap_handle(StepBasic_ObjectRole) +%wrap_handle(StepBasic_Organization) +%wrap_handle(StepBasic_OrganizationAssignment) +%wrap_handle(StepBasic_OrganizationRole) +%wrap_handle(StepBasic_Person) +%wrap_handle(StepBasic_PersonAndOrganization) +%wrap_handle(StepBasic_PersonAndOrganizationAssignment) +%wrap_handle(StepBasic_PersonAndOrganizationRole) +%wrap_handle(StepBasic_Product) +%wrap_handle(StepBasic_ProductCategory) +%wrap_handle(StepBasic_ProductCategoryRelationship) +%wrap_handle(StepBasic_ProductDefinition) +%wrap_handle(StepBasic_ProductDefinitionFormation) +%wrap_handle(StepBasic_ProductDefinitionFormationRelationship) +%wrap_handle(StepBasic_ProductDefinitionRelationship) +%wrap_handle(StepBasic_RoleAssociation) +%wrap_handle(StepBasic_SecurityClassification) +%wrap_handle(StepBasic_SecurityClassificationAssignment) +%wrap_handle(StepBasic_SecurityClassificationLevel) +%wrap_handle(StepBasic_SizeMember) +%wrap_handle(StepBasic_VersionedActionRequest) +%wrap_handle(StepBasic_AreaUnit) +%wrap_handle(StepBasic_CalendarDate) +%wrap_handle(StepBasic_ConversionBasedUnit) +%wrap_handle(StepBasic_DigitalDocument) +%wrap_handle(StepBasic_DocumentFile) +%wrap_handle(StepBasic_DocumentProductEquivalence) +%wrap_handle(StepBasic_ExternalIdentificationAssignment) +%wrap_handle(StepBasic_LengthMeasureWithUnit) +%wrap_handle(StepBasic_LengthUnit) +%wrap_handle(StepBasic_MassMeasureWithUnit) +%wrap_handle(StepBasic_MassUnit) +%wrap_handle(StepBasic_OrdinalDate) +%wrap_handle(StepBasic_OrganizationalAddress) +%wrap_handle(StepBasic_PersonalAddress) +%wrap_handle(StepBasic_PhysicallyModeledProductDefinition) +%wrap_handle(StepBasic_PlaneAngleMeasureWithUnit) +%wrap_handle(StepBasic_PlaneAngleUnit) +%wrap_handle(StepBasic_ProductConceptContext) +%wrap_handle(StepBasic_ProductContext) +%wrap_handle(StepBasic_ProductDefinitionContext) +%wrap_handle(StepBasic_ProductDefinitionEffectivity) +%wrap_handle(StepBasic_ProductDefinitionFormationWithSpecifiedSource) +%wrap_handle(StepBasic_ProductDefinitionWithAssociatedDocuments) +%wrap_handle(StepBasic_ProductRelatedProductCategory) +%wrap_handle(StepBasic_RatioMeasureWithUnit) +%wrap_handle(StepBasic_RatioUnit) +%wrap_handle(StepBasic_SiUnit) +%wrap_handle(StepBasic_SolidAngleMeasureWithUnit) +%wrap_handle(StepBasic_SolidAngleUnit) +%wrap_handle(StepBasic_ThermodynamicTemperatureUnit) +%wrap_handle(StepBasic_TimeMeasureWithUnit) +%wrap_handle(StepBasic_TimeUnit) +%wrap_handle(StepBasic_UncertaintyMeasureWithUnit) +%wrap_handle(StepBasic_VolumeUnit) +%wrap_handle(StepBasic_WeekOfYearAndDayDate) +%wrap_handle(StepBasic_ConversionBasedUnitAndAreaUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndLengthUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndMassUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndPlaneAngleUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndRatioUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndSolidAngleUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndTimeUnit) +%wrap_handle(StepBasic_ConversionBasedUnitAndVolumeUnit) +%wrap_handle(StepBasic_DesignContext) +%wrap_handle(StepBasic_MechanicalContext) +%wrap_handle(StepBasic_ProductType) +%wrap_handle(StepBasic_SiUnitAndAreaUnit) +%wrap_handle(StepBasic_SiUnitAndLengthUnit) +%wrap_handle(StepBasic_SiUnitAndMassUnit) +%wrap_handle(StepBasic_SiUnitAndPlaneAngleUnit) +%wrap_handle(StepBasic_SiUnitAndRatioUnit) +%wrap_handle(StepBasic_SiUnitAndSolidAngleUnit) +%wrap_handle(StepBasic_SiUnitAndThermodynamicTemperatureUnit) +%wrap_handle(StepBasic_SiUnitAndTimeUnit) +%wrap_handle(StepBasic_SiUnitAndVolumeUnit) + %nodefaultctor StepBasic_Action; class StepBasic_Action : public MMgt_TShared { public: @@ -195,51 +325,7 @@ class StepBasic_Action : public MMgt_TShared { }; -%extend StepBasic_Action { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Action(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Action::Handle_StepBasic_Action %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Action; -class Handle_StepBasic_Action : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Action(); - Handle_StepBasic_Action(const Handle_StepBasic_Action &aHandle); - Handle_StepBasic_Action(const StepBasic_Action *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Action DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Action { - StepBasic_Action* _get_reference() { - return (StepBasic_Action*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Action { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Action) %extend StepBasic_Action { %pythoncode { @@ -280,51 +366,7 @@ class StepBasic_ActionAssignment : public MMgt_TShared { }; -%extend StepBasic_ActionAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ActionAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ActionAssignment::Handle_StepBasic_ActionAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ActionAssignment; -class Handle_StepBasic_ActionAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ActionAssignment(); - Handle_StepBasic_ActionAssignment(const Handle_StepBasic_ActionAssignment &aHandle); - Handle_StepBasic_ActionAssignment(const StepBasic_ActionAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ActionAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ActionAssignment { - StepBasic_ActionAssignment* _get_reference() { - return (StepBasic_ActionAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ActionAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ActionAssignment) %extend StepBasic_ActionAssignment { %pythoncode { @@ -421,51 +463,7 @@ class StepBasic_ActionMethod : public MMgt_TShared { }; -%extend StepBasic_ActionMethod { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ActionMethod(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ActionMethod::Handle_StepBasic_ActionMethod %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ActionMethod; -class Handle_StepBasic_ActionMethod : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ActionMethod(); - Handle_StepBasic_ActionMethod(const Handle_StepBasic_ActionMethod &aHandle); - Handle_StepBasic_ActionMethod(const StepBasic_ActionMethod *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ActionMethod DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ActionMethod { - StepBasic_ActionMethod* _get_reference() { - return (StepBasic_ActionMethod*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ActionMethod { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ActionMethod) %extend StepBasic_ActionMethod { %pythoncode { @@ -506,51 +504,7 @@ class StepBasic_ActionRequestAssignment : public MMgt_TShared { }; -%extend StepBasic_ActionRequestAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ActionRequestAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ActionRequestAssignment::Handle_StepBasic_ActionRequestAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ActionRequestAssignment; -class Handle_StepBasic_ActionRequestAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ActionRequestAssignment(); - Handle_StepBasic_ActionRequestAssignment(const Handle_StepBasic_ActionRequestAssignment &aHandle); - Handle_StepBasic_ActionRequestAssignment(const StepBasic_ActionRequestAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ActionRequestAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ActionRequestAssignment { - StepBasic_ActionRequestAssignment* _get_reference() { - return (StepBasic_ActionRequestAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ActionRequestAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ActionRequestAssignment) %extend StepBasic_ActionRequestAssignment { %pythoncode { @@ -607,51 +561,7 @@ class StepBasic_ActionRequestSolution : public MMgt_TShared { }; -%extend StepBasic_ActionRequestSolution { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ActionRequestSolution(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ActionRequestSolution::Handle_StepBasic_ActionRequestSolution %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ActionRequestSolution; -class Handle_StepBasic_ActionRequestSolution : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ActionRequestSolution(); - Handle_StepBasic_ActionRequestSolution(const Handle_StepBasic_ActionRequestSolution &aHandle); - Handle_StepBasic_ActionRequestSolution(const StepBasic_ActionRequestSolution *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ActionRequestSolution DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ActionRequestSolution { - StepBasic_ActionRequestSolution* _get_reference() { - return (StepBasic_ActionRequestSolution*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ActionRequestSolution { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ActionRequestSolution) %extend StepBasic_ActionRequestSolution { %pythoncode { @@ -938,51 +848,7 @@ class StepBasic_Address : public MMgt_TShared { }; -%extend StepBasic_Address { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Address(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Address::Handle_StepBasic_Address %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Address; -class Handle_StepBasic_Address : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Address(); - Handle_StepBasic_Address(const Handle_StepBasic_Address &aHandle); - Handle_StepBasic_Address(const StepBasic_Address *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Address DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Address { - StepBasic_Address* _get_reference() { - return (StepBasic_Address*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Address { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Address) %extend StepBasic_Address { %pythoncode { @@ -1017,51 +883,7 @@ class StepBasic_ApplicationContext : public MMgt_TShared { }; -%extend StepBasic_ApplicationContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApplicationContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApplicationContext::Handle_StepBasic_ApplicationContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApplicationContext; -class Handle_StepBasic_ApplicationContext : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApplicationContext(); - Handle_StepBasic_ApplicationContext(const Handle_StepBasic_ApplicationContext &aHandle); - Handle_StepBasic_ApplicationContext(const StepBasic_ApplicationContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApplicationContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApplicationContext { - StepBasic_ApplicationContext* _get_reference() { - return (StepBasic_ApplicationContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApplicationContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApplicationContext) %extend StepBasic_ApplicationContext { %pythoncode { @@ -1108,51 +930,7 @@ class StepBasic_ApplicationContextElement : public MMgt_TShared { }; -%extend StepBasic_ApplicationContextElement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApplicationContextElement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApplicationContextElement::Handle_StepBasic_ApplicationContextElement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApplicationContextElement; -class Handle_StepBasic_ApplicationContextElement : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApplicationContextElement(); - Handle_StepBasic_ApplicationContextElement(const Handle_StepBasic_ApplicationContextElement &aHandle); - Handle_StepBasic_ApplicationContextElement(const StepBasic_ApplicationContextElement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApplicationContextElement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApplicationContextElement { - StepBasic_ApplicationContextElement* _get_reference() { - return (StepBasic_ApplicationContextElement*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApplicationContextElement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApplicationContextElement) %extend StepBasic_ApplicationContextElement { %pythoncode { @@ -1223,51 +1001,7 @@ class StepBasic_ApplicationProtocolDefinition : public MMgt_TShared { }; -%extend StepBasic_ApplicationProtocolDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApplicationProtocolDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApplicationProtocolDefinition::Handle_StepBasic_ApplicationProtocolDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApplicationProtocolDefinition; -class Handle_StepBasic_ApplicationProtocolDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApplicationProtocolDefinition(); - Handle_StepBasic_ApplicationProtocolDefinition(const Handle_StepBasic_ApplicationProtocolDefinition &aHandle); - Handle_StepBasic_ApplicationProtocolDefinition(const StepBasic_ApplicationProtocolDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApplicationProtocolDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApplicationProtocolDefinition { - StepBasic_ApplicationProtocolDefinition* _get_reference() { - return (StepBasic_ApplicationProtocolDefinition*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApplicationProtocolDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApplicationProtocolDefinition) %extend StepBasic_ApplicationProtocolDefinition { %pythoncode { @@ -1314,51 +1048,7 @@ class StepBasic_Approval : public MMgt_TShared { }; -%extend StepBasic_Approval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Approval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Approval::Handle_StepBasic_Approval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Approval; -class Handle_StepBasic_Approval : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Approval(); - Handle_StepBasic_Approval(const Handle_StepBasic_Approval &aHandle); - Handle_StepBasic_Approval(const StepBasic_Approval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Approval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Approval { - StepBasic_Approval* _get_reference() { - return (StepBasic_Approval*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Approval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Approval) %extend StepBasic_Approval { %pythoncode { @@ -1387,51 +1077,7 @@ class StepBasic_ApprovalAssignment : public MMgt_TShared { }; -%extend StepBasic_ApprovalAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApprovalAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApprovalAssignment::Handle_StepBasic_ApprovalAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApprovalAssignment; -class Handle_StepBasic_ApprovalAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApprovalAssignment(); - Handle_StepBasic_ApprovalAssignment(const Handle_StepBasic_ApprovalAssignment &aHandle); - Handle_StepBasic_ApprovalAssignment(const StepBasic_ApprovalAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApprovalAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApprovalAssignment { - StepBasic_ApprovalAssignment* _get_reference() { - return (StepBasic_ApprovalAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApprovalAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApprovalAssignment) %extend StepBasic_ApprovalAssignment { %pythoncode { @@ -1476,51 +1122,7 @@ class StepBasic_ApprovalDateTime : public MMgt_TShared { }; -%extend StepBasic_ApprovalDateTime { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApprovalDateTime(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApprovalDateTime::Handle_StepBasic_ApprovalDateTime %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApprovalDateTime; -class Handle_StepBasic_ApprovalDateTime : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApprovalDateTime(); - Handle_StepBasic_ApprovalDateTime(const Handle_StepBasic_ApprovalDateTime &aHandle); - Handle_StepBasic_ApprovalDateTime(const StepBasic_ApprovalDateTime *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApprovalDateTime DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApprovalDateTime { - StepBasic_ApprovalDateTime* _get_reference() { - return (StepBasic_ApprovalDateTime*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApprovalDateTime { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApprovalDateTime) %extend StepBasic_ApprovalDateTime { %pythoncode { @@ -1579,51 +1181,7 @@ class StepBasic_ApprovalPersonOrganization : public MMgt_TShared { }; -%extend StepBasic_ApprovalPersonOrganization { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApprovalPersonOrganization(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApprovalPersonOrganization::Handle_StepBasic_ApprovalPersonOrganization %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApprovalPersonOrganization; -class Handle_StepBasic_ApprovalPersonOrganization : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApprovalPersonOrganization(); - Handle_StepBasic_ApprovalPersonOrganization(const Handle_StepBasic_ApprovalPersonOrganization &aHandle); - Handle_StepBasic_ApprovalPersonOrganization(const StepBasic_ApprovalPersonOrganization *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApprovalPersonOrganization DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApprovalPersonOrganization { - StepBasic_ApprovalPersonOrganization* _get_reference() { - return (StepBasic_ApprovalPersonOrganization*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApprovalPersonOrganization { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApprovalPersonOrganization) %extend StepBasic_ApprovalPersonOrganization { %pythoncode { @@ -1694,51 +1252,7 @@ class StepBasic_ApprovalRelationship : public MMgt_TShared { }; -%extend StepBasic_ApprovalRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApprovalRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApprovalRelationship::Handle_StepBasic_ApprovalRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApprovalRelationship; -class Handle_StepBasic_ApprovalRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApprovalRelationship(); - Handle_StepBasic_ApprovalRelationship(const Handle_StepBasic_ApprovalRelationship &aHandle); - Handle_StepBasic_ApprovalRelationship(const StepBasic_ApprovalRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApprovalRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApprovalRelationship { - StepBasic_ApprovalRelationship* _get_reference() { - return (StepBasic_ApprovalRelationship*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApprovalRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApprovalRelationship) %extend StepBasic_ApprovalRelationship { %pythoncode { @@ -1773,51 +1287,7 @@ class StepBasic_ApprovalRole : public MMgt_TShared { }; -%extend StepBasic_ApprovalRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApprovalRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApprovalRole::Handle_StepBasic_ApprovalRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApprovalRole; -class Handle_StepBasic_ApprovalRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApprovalRole(); - Handle_StepBasic_ApprovalRole(const Handle_StepBasic_ApprovalRole &aHandle); - Handle_StepBasic_ApprovalRole(const StepBasic_ApprovalRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApprovalRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApprovalRole { - StepBasic_ApprovalRole* _get_reference() { - return (StepBasic_ApprovalRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApprovalRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApprovalRole) %extend StepBasic_ApprovalRole { %pythoncode { @@ -1852,51 +1322,7 @@ class StepBasic_ApprovalStatus : public MMgt_TShared { }; -%extend StepBasic_ApprovalStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ApprovalStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ApprovalStatus::Handle_StepBasic_ApprovalStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ApprovalStatus; -class Handle_StepBasic_ApprovalStatus : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ApprovalStatus(); - Handle_StepBasic_ApprovalStatus(const Handle_StepBasic_ApprovalStatus &aHandle); - Handle_StepBasic_ApprovalStatus(const StepBasic_ApprovalStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ApprovalStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ApprovalStatus { - StepBasic_ApprovalStatus* _get_reference() { - return (StepBasic_ApprovalStatus*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ApprovalStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ApprovalStatus) %extend StepBasic_ApprovalStatus { %pythoncode { @@ -2839,51 +2265,7 @@ class StepBasic_Certification : public MMgt_TShared { }; -%extend StepBasic_Certification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Certification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Certification::Handle_StepBasic_Certification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Certification; -class Handle_StepBasic_Certification : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Certification(); - Handle_StepBasic_Certification(const Handle_StepBasic_Certification &aHandle); - Handle_StepBasic_Certification(const StepBasic_Certification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Certification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Certification { - StepBasic_Certification* _get_reference() { - return (StepBasic_Certification*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Certification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Certification) %extend StepBasic_Certification { %pythoncode { @@ -2924,51 +2306,7 @@ class StepBasic_CertificationAssignment : public MMgt_TShared { }; -%extend StepBasic_CertificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_CertificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_CertificationAssignment::Handle_StepBasic_CertificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_CertificationAssignment; -class Handle_StepBasic_CertificationAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_CertificationAssignment(); - Handle_StepBasic_CertificationAssignment(const Handle_StepBasic_CertificationAssignment &aHandle); - Handle_StepBasic_CertificationAssignment(const StepBasic_CertificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_CertificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_CertificationAssignment { - StepBasic_CertificationAssignment* _get_reference() { - return (StepBasic_CertificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_CertificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_CertificationAssignment) %extend StepBasic_CertificationAssignment { %pythoncode { @@ -3009,51 +2347,7 @@ class StepBasic_CertificationType : public MMgt_TShared { }; -%extend StepBasic_CertificationType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_CertificationType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_CertificationType::Handle_StepBasic_CertificationType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_CertificationType; -class Handle_StepBasic_CertificationType : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_CertificationType(); - Handle_StepBasic_CertificationType(const Handle_StepBasic_CertificationType &aHandle); - Handle_StepBasic_CertificationType(const StepBasic_CertificationType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_CertificationType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_CertificationType { - StepBasic_CertificationType* _get_reference() { - return (StepBasic_CertificationType*)$self->Access(); - } -}; - -%extend Handle_StepBasic_CertificationType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_CertificationType) %extend StepBasic_CertificationType { %pythoncode { @@ -3118,55 +2412,11 @@ class StepBasic_CharacterizedObject : public MMgt_TShared { }; +%make_alias(StepBasic_CharacterizedObject) + %extend StepBasic_CharacterizedObject { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_CharacterizedObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_CharacterizedObject::Handle_StepBasic_CharacterizedObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_CharacterizedObject; -class Handle_StepBasic_CharacterizedObject : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_CharacterizedObject(); - Handle_StepBasic_CharacterizedObject(const Handle_StepBasic_CharacterizedObject &aHandle); - Handle_StepBasic_CharacterizedObject(const StepBasic_CharacterizedObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_CharacterizedObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_CharacterizedObject { - StepBasic_CharacterizedObject* _get_reference() { - return (StepBasic_CharacterizedObject*)$self->Access(); - } -}; - -%extend Handle_StepBasic_CharacterizedObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepBasic_CharacterizedObject { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepBasic_Contract; @@ -3235,51 +2485,7 @@ class StepBasic_Contract : public MMgt_TShared { }; -%extend StepBasic_Contract { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Contract(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Contract::Handle_StepBasic_Contract %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Contract; -class Handle_StepBasic_Contract : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Contract(); - Handle_StepBasic_Contract(const Handle_StepBasic_Contract &aHandle); - Handle_StepBasic_Contract(const StepBasic_Contract *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Contract DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Contract { - StepBasic_Contract* _get_reference() { - return (StepBasic_Contract*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Contract { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Contract) %extend StepBasic_Contract { %pythoncode { @@ -3320,51 +2526,7 @@ class StepBasic_ContractAssignment : public MMgt_TShared { }; -%extend StepBasic_ContractAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ContractAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ContractAssignment::Handle_StepBasic_ContractAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ContractAssignment; -class Handle_StepBasic_ContractAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ContractAssignment(); - Handle_StepBasic_ContractAssignment(const Handle_StepBasic_ContractAssignment &aHandle); - Handle_StepBasic_ContractAssignment(const StepBasic_ContractAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ContractAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ContractAssignment { - StepBasic_ContractAssignment* _get_reference() { - return (StepBasic_ContractAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ContractAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ContractAssignment) %extend StepBasic_ContractAssignment { %pythoncode { @@ -3405,51 +2567,7 @@ class StepBasic_ContractType : public MMgt_TShared { }; -%extend StepBasic_ContractType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ContractType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ContractType::Handle_StepBasic_ContractType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ContractType; -class Handle_StepBasic_ContractType : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ContractType(); - Handle_StepBasic_ContractType(const Handle_StepBasic_ContractType &aHandle); - Handle_StepBasic_ContractType(const StepBasic_ContractType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ContractType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ContractType { - StepBasic_ContractType* _get_reference() { - return (StepBasic_ContractType*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ContractType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ContractType) %extend StepBasic_ContractType { %pythoncode { @@ -3518,51 +2636,7 @@ class StepBasic_CoordinatedUniversalTimeOffset : public MMgt_TShared { }; -%extend StepBasic_CoordinatedUniversalTimeOffset { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_CoordinatedUniversalTimeOffset(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_CoordinatedUniversalTimeOffset::Handle_StepBasic_CoordinatedUniversalTimeOffset %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_CoordinatedUniversalTimeOffset; -class Handle_StepBasic_CoordinatedUniversalTimeOffset : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_CoordinatedUniversalTimeOffset(); - Handle_StepBasic_CoordinatedUniversalTimeOffset(const Handle_StepBasic_CoordinatedUniversalTimeOffset &aHandle); - Handle_StepBasic_CoordinatedUniversalTimeOffset(const StepBasic_CoordinatedUniversalTimeOffset *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_CoordinatedUniversalTimeOffset DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_CoordinatedUniversalTimeOffset { - StepBasic_CoordinatedUniversalTimeOffset* _get_reference() { - return (StepBasic_CoordinatedUniversalTimeOffset*)$self->Access(); - } -}; - -%extend Handle_StepBasic_CoordinatedUniversalTimeOffset { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_CoordinatedUniversalTimeOffset) %extend StepBasic_CoordinatedUniversalTimeOffset { %pythoncode { @@ -3597,51 +2671,7 @@ class StepBasic_Date : public MMgt_TShared { }; -%extend StepBasic_Date { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Date(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Date::Handle_StepBasic_Date %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Date; -class Handle_StepBasic_Date : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Date(); - Handle_StepBasic_Date(const Handle_StepBasic_Date &aHandle); - Handle_StepBasic_Date(const StepBasic_Date *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Date DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Date { - StepBasic_Date* _get_reference() { - return (StepBasic_Date*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Date { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Date) %extend StepBasic_Date { %pythoncode { @@ -3688,51 +2718,7 @@ class StepBasic_DateAndTime : public MMgt_TShared { }; -%extend StepBasic_DateAndTime { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DateAndTime(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DateAndTime::Handle_StepBasic_DateAndTime %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DateAndTime; -class Handle_StepBasic_DateAndTime : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DateAndTime(); - Handle_StepBasic_DateAndTime(const Handle_StepBasic_DateAndTime &aHandle); - Handle_StepBasic_DateAndTime(const StepBasic_DateAndTime *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DateAndTime DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DateAndTime { - StepBasic_DateAndTime* _get_reference() { - return (StepBasic_DateAndTime*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DateAndTime { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DateAndTime) %extend StepBasic_DateAndTime { %pythoncode { @@ -3773,51 +2759,7 @@ class StepBasic_DateAndTimeAssignment : public MMgt_TShared { }; -%extend StepBasic_DateAndTimeAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DateAndTimeAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DateAndTimeAssignment::Handle_StepBasic_DateAndTimeAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DateAndTimeAssignment; -class Handle_StepBasic_DateAndTimeAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DateAndTimeAssignment(); - Handle_StepBasic_DateAndTimeAssignment(const Handle_StepBasic_DateAndTimeAssignment &aHandle); - Handle_StepBasic_DateAndTimeAssignment(const StepBasic_DateAndTimeAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DateAndTimeAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DateAndTimeAssignment { - StepBasic_DateAndTimeAssignment* _get_reference() { - return (StepBasic_DateAndTimeAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DateAndTimeAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DateAndTimeAssignment) %extend StepBasic_DateAndTimeAssignment { %pythoncode { @@ -3858,51 +2800,7 @@ class StepBasic_DateAssignment : public MMgt_TShared { }; -%extend StepBasic_DateAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DateAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DateAssignment::Handle_StepBasic_DateAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DateAssignment; -class Handle_StepBasic_DateAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DateAssignment(); - Handle_StepBasic_DateAssignment(const Handle_StepBasic_DateAssignment &aHandle); - Handle_StepBasic_DateAssignment(const StepBasic_DateAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DateAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DateAssignment { - StepBasic_DateAssignment* _get_reference() { - return (StepBasic_DateAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DateAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DateAssignment) %extend StepBasic_DateAssignment { %pythoncode { @@ -3937,51 +2835,7 @@ class StepBasic_DateRole : public MMgt_TShared { }; -%extend StepBasic_DateRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DateRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DateRole::Handle_StepBasic_DateRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DateRole; -class Handle_StepBasic_DateRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DateRole(); - Handle_StepBasic_DateRole(const Handle_StepBasic_DateRole &aHandle); - Handle_StepBasic_DateRole(const StepBasic_DateRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DateRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DateRole { - StepBasic_DateRole* _get_reference() { - return (StepBasic_DateRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DateRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DateRole) %extend StepBasic_DateRole { %pythoncode { @@ -4016,51 +2870,7 @@ class StepBasic_DateTimeRole : public MMgt_TShared { }; -%extend StepBasic_DateTimeRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DateTimeRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DateTimeRole::Handle_StepBasic_DateTimeRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DateTimeRole; -class Handle_StepBasic_DateTimeRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DateTimeRole(); - Handle_StepBasic_DateTimeRole(const Handle_StepBasic_DateTimeRole &aHandle); - Handle_StepBasic_DateTimeRole(const StepBasic_DateTimeRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DateTimeRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DateTimeRole { - StepBasic_DateTimeRole* _get_reference() { - return (StepBasic_DateTimeRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DateTimeRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DateTimeRole) %extend StepBasic_DateTimeRole { %pythoncode { @@ -4146,51 +2956,7 @@ class StepBasic_DerivedUnit : public MMgt_TShared { }; -%extend StepBasic_DerivedUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DerivedUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DerivedUnit::Handle_StepBasic_DerivedUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DerivedUnit; -class Handle_StepBasic_DerivedUnit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DerivedUnit(); - Handle_StepBasic_DerivedUnit(const Handle_StepBasic_DerivedUnit &aHandle); - Handle_StepBasic_DerivedUnit(const StepBasic_DerivedUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DerivedUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DerivedUnit { - StepBasic_DerivedUnit* _get_reference() { - return (StepBasic_DerivedUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DerivedUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DerivedUnit) %extend StepBasic_DerivedUnit { %pythoncode { @@ -4235,51 +3001,7 @@ class StepBasic_DerivedUnitElement : public MMgt_TShared { }; -%extend StepBasic_DerivedUnitElement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DerivedUnitElement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DerivedUnitElement::Handle_StepBasic_DerivedUnitElement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DerivedUnitElement; -class Handle_StepBasic_DerivedUnitElement : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DerivedUnitElement(); - Handle_StepBasic_DerivedUnitElement(const Handle_StepBasic_DerivedUnitElement &aHandle); - Handle_StepBasic_DerivedUnitElement(const StepBasic_DerivedUnitElement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DerivedUnitElement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DerivedUnitElement { - StepBasic_DerivedUnitElement* _get_reference() { - return (StepBasic_DerivedUnitElement*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DerivedUnitElement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DerivedUnitElement) %extend StepBasic_DerivedUnitElement { %pythoncode { @@ -4386,51 +3108,7 @@ class StepBasic_DimensionalExponents : public MMgt_TShared { }; -%extend StepBasic_DimensionalExponents { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DimensionalExponents(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DimensionalExponents::Handle_StepBasic_DimensionalExponents %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DimensionalExponents; -class Handle_StepBasic_DimensionalExponents : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DimensionalExponents(); - Handle_StepBasic_DimensionalExponents(const Handle_StepBasic_DimensionalExponents &aHandle); - Handle_StepBasic_DimensionalExponents(const StepBasic_DimensionalExponents *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DimensionalExponents DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DimensionalExponents { - StepBasic_DimensionalExponents* _get_reference() { - return (StepBasic_DimensionalExponents*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DimensionalExponents { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DimensionalExponents) %extend StepBasic_DimensionalExponents { %pythoncode { @@ -4527,51 +3205,7 @@ class StepBasic_Document : public MMgt_TShared { }; -%extend StepBasic_Document { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Document(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Document::Handle_StepBasic_Document %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Document; -class Handle_StepBasic_Document : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Document(); - Handle_StepBasic_Document(const Handle_StepBasic_Document &aHandle); - Handle_StepBasic_Document(const StepBasic_Document *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Document DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Document { - StepBasic_Document* _get_reference() { - return (StepBasic_Document*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Document { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Document) %extend StepBasic_Document { %pythoncode { @@ -4668,51 +3302,7 @@ class StepBasic_DocumentProductAssociation : public MMgt_TShared { }; -%extend StepBasic_DocumentProductAssociation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentProductAssociation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentProductAssociation::Handle_StepBasic_DocumentProductAssociation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentProductAssociation; -class Handle_StepBasic_DocumentProductAssociation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DocumentProductAssociation(); - Handle_StepBasic_DocumentProductAssociation(const Handle_StepBasic_DocumentProductAssociation &aHandle); - Handle_StepBasic_DocumentProductAssociation(const StepBasic_DocumentProductAssociation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentProductAssociation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentProductAssociation { - StepBasic_DocumentProductAssociation* _get_reference() { - return (StepBasic_DocumentProductAssociation*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentProductAssociation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentProductAssociation) %extend StepBasic_DocumentProductAssociation { %pythoncode { @@ -4753,51 +3343,7 @@ class StepBasic_DocumentReference : public MMgt_TShared { }; -%extend StepBasic_DocumentReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentReference::Handle_StepBasic_DocumentReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentReference; -class Handle_StepBasic_DocumentReference : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DocumentReference(); - Handle_StepBasic_DocumentReference(const Handle_StepBasic_DocumentReference &aHandle); - Handle_StepBasic_DocumentReference(const StepBasic_DocumentReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentReference { - StepBasic_DocumentReference* _get_reference() { - return (StepBasic_DocumentReference*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentReference) %extend StepBasic_DocumentReference { %pythoncode { @@ -4866,51 +3412,7 @@ class StepBasic_DocumentRelationship : public MMgt_TShared { }; -%extend StepBasic_DocumentRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentRelationship::Handle_StepBasic_DocumentRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentRelationship; -class Handle_StepBasic_DocumentRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DocumentRelationship(); - Handle_StepBasic_DocumentRelationship(const Handle_StepBasic_DocumentRelationship &aHandle); - Handle_StepBasic_DocumentRelationship(const StepBasic_DocumentRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentRelationship { - StepBasic_DocumentRelationship* _get_reference() { - return (StepBasic_DocumentRelationship*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentRelationship) %extend StepBasic_DocumentRelationship { %pythoncode { @@ -4967,51 +3469,7 @@ class StepBasic_DocumentRepresentationType : public MMgt_TShared { }; -%extend StepBasic_DocumentRepresentationType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentRepresentationType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentRepresentationType::Handle_StepBasic_DocumentRepresentationType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentRepresentationType; -class Handle_StepBasic_DocumentRepresentationType : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DocumentRepresentationType(); - Handle_StepBasic_DocumentRepresentationType(const Handle_StepBasic_DocumentRepresentationType &aHandle); - Handle_StepBasic_DocumentRepresentationType(const StepBasic_DocumentRepresentationType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentRepresentationType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentRepresentationType { - StepBasic_DocumentRepresentationType* _get_reference() { - return (StepBasic_DocumentRepresentationType*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentRepresentationType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentRepresentationType) %extend StepBasic_DocumentRepresentationType { %pythoncode { @@ -5044,55 +3502,11 @@ class StepBasic_DocumentType : public MMgt_TShared { }; +%make_alias(StepBasic_DocumentType) + %extend StepBasic_DocumentType { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentType::Handle_StepBasic_DocumentType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentType; -class Handle_StepBasic_DocumentType : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DocumentType(); - Handle_StepBasic_DocumentType(const Handle_StepBasic_DocumentType &aHandle); - Handle_StepBasic_DocumentType(const StepBasic_DocumentType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentType { - StepBasic_DocumentType* _get_reference() { - return (StepBasic_DocumentType*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepBasic_DocumentType { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepBasic_DocumentUsageConstraint; @@ -5145,51 +3559,7 @@ class StepBasic_DocumentUsageConstraint : public MMgt_TShared { }; -%extend StepBasic_DocumentUsageConstraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentUsageConstraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentUsageConstraint::Handle_StepBasic_DocumentUsageConstraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentUsageConstraint; -class Handle_StepBasic_DocumentUsageConstraint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_DocumentUsageConstraint(); - Handle_StepBasic_DocumentUsageConstraint(const Handle_StepBasic_DocumentUsageConstraint &aHandle); - Handle_StepBasic_DocumentUsageConstraint(const StepBasic_DocumentUsageConstraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentUsageConstraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentUsageConstraint { - StepBasic_DocumentUsageConstraint* _get_reference() { - return (StepBasic_DocumentUsageConstraint*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentUsageConstraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentUsageConstraint) %extend StepBasic_DocumentUsageConstraint { %pythoncode { @@ -5222,51 +3592,7 @@ class StepBasic_Effectivity : public MMgt_TShared { }; -%extend StepBasic_Effectivity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Effectivity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Effectivity::Handle_StepBasic_Effectivity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Effectivity; -class Handle_StepBasic_Effectivity : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Effectivity(); - Handle_StepBasic_Effectivity(const Handle_StepBasic_Effectivity &aHandle); - Handle_StepBasic_Effectivity(const StepBasic_Effectivity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Effectivity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Effectivity { - StepBasic_Effectivity* _get_reference() { - return (StepBasic_Effectivity*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Effectivity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Effectivity) %extend StepBasic_Effectivity { %pythoncode { @@ -5307,51 +3633,7 @@ class StepBasic_EffectivityAssignment : public MMgt_TShared { }; -%extend StepBasic_EffectivityAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_EffectivityAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_EffectivityAssignment::Handle_StepBasic_EffectivityAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_EffectivityAssignment; -class Handle_StepBasic_EffectivityAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_EffectivityAssignment(); - Handle_StepBasic_EffectivityAssignment(const Handle_StepBasic_EffectivityAssignment &aHandle); - Handle_StepBasic_EffectivityAssignment(const StepBasic_EffectivityAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_EffectivityAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_EffectivityAssignment { - StepBasic_EffectivityAssignment* _get_reference() { - return (StepBasic_EffectivityAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_EffectivityAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_EffectivityAssignment) %extend StepBasic_EffectivityAssignment { %pythoncode { @@ -5392,51 +3674,7 @@ class StepBasic_EulerAngles : public MMgt_TShared { }; -%extend StepBasic_EulerAngles { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_EulerAngles(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_EulerAngles::Handle_StepBasic_EulerAngles %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_EulerAngles; -class Handle_StepBasic_EulerAngles : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_EulerAngles(); - Handle_StepBasic_EulerAngles(const Handle_StepBasic_EulerAngles &aHandle); - Handle_StepBasic_EulerAngles(const StepBasic_EulerAngles *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_EulerAngles DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_EulerAngles { - StepBasic_EulerAngles* _get_reference() { - return (StepBasic_EulerAngles*)$self->Access(); - } -}; - -%extend Handle_StepBasic_EulerAngles { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_EulerAngles) %extend StepBasic_EulerAngles { %pythoncode { @@ -5477,51 +3715,7 @@ class StepBasic_ExternalSource : public MMgt_TShared { }; -%extend StepBasic_ExternalSource { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ExternalSource(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ExternalSource::Handle_StepBasic_ExternalSource %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ExternalSource; -class Handle_StepBasic_ExternalSource : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ExternalSource(); - Handle_StepBasic_ExternalSource(const Handle_StepBasic_ExternalSource &aHandle); - Handle_StepBasic_ExternalSource(const StepBasic_ExternalSource *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ExternalSource DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ExternalSource { - StepBasic_ExternalSource* _get_reference() { - return (StepBasic_ExternalSource*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ExternalSource { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ExternalSource) %extend StepBasic_ExternalSource { %pythoncode { @@ -5578,51 +3772,7 @@ class StepBasic_ExternallyDefinedItem : public MMgt_TShared { }; -%extend StepBasic_ExternallyDefinedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ExternallyDefinedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ExternallyDefinedItem::Handle_StepBasic_ExternallyDefinedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ExternallyDefinedItem; -class Handle_StepBasic_ExternallyDefinedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ExternallyDefinedItem(); - Handle_StepBasic_ExternallyDefinedItem(const Handle_StepBasic_ExternallyDefinedItem &aHandle); - Handle_StepBasic_ExternallyDefinedItem(const StepBasic_ExternallyDefinedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ExternallyDefinedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ExternallyDefinedItem { - StepBasic_ExternallyDefinedItem* _get_reference() { - return (StepBasic_ExternallyDefinedItem*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ExternallyDefinedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ExternallyDefinedItem) %extend StepBasic_ExternallyDefinedItem { %pythoncode { @@ -5703,51 +3853,7 @@ class StepBasic_GeneralProperty : public MMgt_TShared { }; -%extend StepBasic_GeneralProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_GeneralProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_GeneralProperty::Handle_StepBasic_GeneralProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_GeneralProperty; -class Handle_StepBasic_GeneralProperty : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_GeneralProperty(); - Handle_StepBasic_GeneralProperty(const Handle_StepBasic_GeneralProperty &aHandle); - Handle_StepBasic_GeneralProperty(const StepBasic_GeneralProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_GeneralProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_GeneralProperty { - StepBasic_GeneralProperty* _get_reference() { - return (StepBasic_GeneralProperty*)$self->Access(); - } -}; - -%extend Handle_StepBasic_GeneralProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_GeneralProperty) %extend StepBasic_GeneralProperty { %pythoncode { @@ -5812,51 +3918,7 @@ class StepBasic_Group : public MMgt_TShared { }; -%extend StepBasic_Group { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Group(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Group::Handle_StepBasic_Group %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Group; -class Handle_StepBasic_Group : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Group(); - Handle_StepBasic_Group(const Handle_StepBasic_Group &aHandle); - Handle_StepBasic_Group(const StepBasic_Group *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Group DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Group { - StepBasic_Group* _get_reference() { - return (StepBasic_Group*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Group { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Group) %extend StepBasic_Group { %pythoncode { @@ -5897,51 +3959,7 @@ class StepBasic_GroupAssignment : public MMgt_TShared { }; -%extend StepBasic_GroupAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_GroupAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_GroupAssignment::Handle_StepBasic_GroupAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_GroupAssignment; -class Handle_StepBasic_GroupAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_GroupAssignment(); - Handle_StepBasic_GroupAssignment(const Handle_StepBasic_GroupAssignment &aHandle); - Handle_StepBasic_GroupAssignment(const StepBasic_GroupAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_GroupAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_GroupAssignment { - StepBasic_GroupAssignment* _get_reference() { - return (StepBasic_GroupAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_GroupAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_GroupAssignment) %extend StepBasic_GroupAssignment { %pythoncode { @@ -6038,51 +4056,7 @@ class StepBasic_GroupRelationship : public MMgt_TShared { }; -%extend StepBasic_GroupRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_GroupRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_GroupRelationship::Handle_StepBasic_GroupRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_GroupRelationship; -class Handle_StepBasic_GroupRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_GroupRelationship(); - Handle_StepBasic_GroupRelationship(const Handle_StepBasic_GroupRelationship &aHandle); - Handle_StepBasic_GroupRelationship(const StepBasic_GroupRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_GroupRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_GroupRelationship { - StepBasic_GroupRelationship* _get_reference() { - return (StepBasic_GroupRelationship*)$self->Access(); - } -}; - -%extend Handle_StepBasic_GroupRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_GroupRelationship) %extend StepBasic_GroupRelationship { %pythoncode { @@ -6159,51 +4133,7 @@ class StepBasic_HArray1OfApproval : public MMgt_TShared { }; -%extend StepBasic_HArray1OfApproval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfApproval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfApproval::Handle_StepBasic_HArray1OfApproval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfApproval; -class Handle_StepBasic_HArray1OfApproval : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfApproval(); - Handle_StepBasic_HArray1OfApproval(const Handle_StepBasic_HArray1OfApproval &aHandle); - Handle_StepBasic_HArray1OfApproval(const StepBasic_HArray1OfApproval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfApproval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfApproval { - StepBasic_HArray1OfApproval* _get_reference() { - return (StepBasic_HArray1OfApproval*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfApproval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfApproval) %extend StepBasic_HArray1OfApproval { %pythoncode { @@ -6280,51 +4210,7 @@ class StepBasic_HArray1OfDerivedUnitElement : public MMgt_TShared { }; -%extend StepBasic_HArray1OfDerivedUnitElement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfDerivedUnitElement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfDerivedUnitElement::Handle_StepBasic_HArray1OfDerivedUnitElement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfDerivedUnitElement; -class Handle_StepBasic_HArray1OfDerivedUnitElement : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfDerivedUnitElement(); - Handle_StepBasic_HArray1OfDerivedUnitElement(const Handle_StepBasic_HArray1OfDerivedUnitElement &aHandle); - Handle_StepBasic_HArray1OfDerivedUnitElement(const StepBasic_HArray1OfDerivedUnitElement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfDerivedUnitElement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfDerivedUnitElement { - StepBasic_HArray1OfDerivedUnitElement* _get_reference() { - return (StepBasic_HArray1OfDerivedUnitElement*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfDerivedUnitElement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfDerivedUnitElement) %extend StepBasic_HArray1OfDerivedUnitElement { %pythoncode { @@ -6401,51 +4287,7 @@ class StepBasic_HArray1OfDocument : public MMgt_TShared { }; -%extend StepBasic_HArray1OfDocument { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfDocument(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfDocument::Handle_StepBasic_HArray1OfDocument %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfDocument; -class Handle_StepBasic_HArray1OfDocument : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfDocument(); - Handle_StepBasic_HArray1OfDocument(const Handle_StepBasic_HArray1OfDocument &aHandle); - Handle_StepBasic_HArray1OfDocument(const StepBasic_HArray1OfDocument *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfDocument DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfDocument { - StepBasic_HArray1OfDocument* _get_reference() { - return (StepBasic_HArray1OfDocument*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfDocument { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfDocument) %extend StepBasic_HArray1OfDocument { %pythoncode { @@ -6522,51 +4364,7 @@ class StepBasic_HArray1OfNamedUnit : public MMgt_TShared { }; -%extend StepBasic_HArray1OfNamedUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfNamedUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfNamedUnit::Handle_StepBasic_HArray1OfNamedUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfNamedUnit; -class Handle_StepBasic_HArray1OfNamedUnit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfNamedUnit(); - Handle_StepBasic_HArray1OfNamedUnit(const Handle_StepBasic_HArray1OfNamedUnit &aHandle); - Handle_StepBasic_HArray1OfNamedUnit(const StepBasic_HArray1OfNamedUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfNamedUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfNamedUnit { - StepBasic_HArray1OfNamedUnit* _get_reference() { - return (StepBasic_HArray1OfNamedUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfNamedUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfNamedUnit) %extend StepBasic_HArray1OfNamedUnit { %pythoncode { @@ -6643,51 +4441,7 @@ class StepBasic_HArray1OfOrganization : public MMgt_TShared { }; -%extend StepBasic_HArray1OfOrganization { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfOrganization(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfOrganization::Handle_StepBasic_HArray1OfOrganization %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfOrganization; -class Handle_StepBasic_HArray1OfOrganization : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfOrganization(); - Handle_StepBasic_HArray1OfOrganization(const Handle_StepBasic_HArray1OfOrganization &aHandle); - Handle_StepBasic_HArray1OfOrganization(const StepBasic_HArray1OfOrganization *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfOrganization DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfOrganization { - StepBasic_HArray1OfOrganization* _get_reference() { - return (StepBasic_HArray1OfOrganization*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfOrganization { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfOrganization) %extend StepBasic_HArray1OfOrganization { %pythoncode { @@ -6764,51 +4518,7 @@ class StepBasic_HArray1OfPerson : public MMgt_TShared { }; -%extend StepBasic_HArray1OfPerson { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfPerson(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfPerson::Handle_StepBasic_HArray1OfPerson %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfPerson; -class Handle_StepBasic_HArray1OfPerson : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfPerson(); - Handle_StepBasic_HArray1OfPerson(const Handle_StepBasic_HArray1OfPerson &aHandle); - Handle_StepBasic_HArray1OfPerson(const StepBasic_HArray1OfPerson *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfPerson DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfPerson { - StepBasic_HArray1OfPerson* _get_reference() { - return (StepBasic_HArray1OfPerson*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfPerson { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfPerson) %extend StepBasic_HArray1OfPerson { %pythoncode { @@ -6885,51 +4595,7 @@ class StepBasic_HArray1OfProduct : public MMgt_TShared { }; -%extend StepBasic_HArray1OfProduct { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfProduct(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfProduct::Handle_StepBasic_HArray1OfProduct %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfProduct; -class Handle_StepBasic_HArray1OfProduct : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfProduct(); - Handle_StepBasic_HArray1OfProduct(const Handle_StepBasic_HArray1OfProduct &aHandle); - Handle_StepBasic_HArray1OfProduct(const StepBasic_HArray1OfProduct *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfProduct DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfProduct { - StepBasic_HArray1OfProduct* _get_reference() { - return (StepBasic_HArray1OfProduct*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfProduct { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfProduct) %extend StepBasic_HArray1OfProduct { %pythoncode { @@ -7006,51 +4672,7 @@ class StepBasic_HArray1OfProductContext : public MMgt_TShared { }; -%extend StepBasic_HArray1OfProductContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfProductContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfProductContext::Handle_StepBasic_HArray1OfProductContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfProductContext; -class Handle_StepBasic_HArray1OfProductContext : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfProductContext(); - Handle_StepBasic_HArray1OfProductContext(const Handle_StepBasic_HArray1OfProductContext &aHandle); - Handle_StepBasic_HArray1OfProductContext(const StepBasic_HArray1OfProductContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfProductContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfProductContext { - StepBasic_HArray1OfProductContext* _get_reference() { - return (StepBasic_HArray1OfProductContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfProductContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfProductContext) %extend StepBasic_HArray1OfProductContext { %pythoncode { @@ -7127,51 +4749,7 @@ class StepBasic_HArray1OfProductDefinition : public MMgt_TShared { }; -%extend StepBasic_HArray1OfProductDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfProductDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfProductDefinition::Handle_StepBasic_HArray1OfProductDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfProductDefinition; -class Handle_StepBasic_HArray1OfProductDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfProductDefinition(); - Handle_StepBasic_HArray1OfProductDefinition(const Handle_StepBasic_HArray1OfProductDefinition &aHandle); - Handle_StepBasic_HArray1OfProductDefinition(const StepBasic_HArray1OfProductDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfProductDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfProductDefinition { - StepBasic_HArray1OfProductDefinition* _get_reference() { - return (StepBasic_HArray1OfProductDefinition*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfProductDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_HArray1OfProductDefinition) %extend StepBasic_HArray1OfProductDefinition { %pythoncode { @@ -7248,55 +4826,11 @@ class StepBasic_HArray1OfUncertaintyMeasureWithUnit : public MMgt_TShared { }; +%make_alias(StepBasic_HArray1OfUncertaintyMeasureWithUnit) + %extend StepBasic_HArray1OfUncertaintyMeasureWithUnit { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit::Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit; -class Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit(); - Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit(const Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit &aHandle); - Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit(const StepBasic_HArray1OfUncertaintyMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit { - StepBasic_HArray1OfUncertaintyMeasureWithUnit* _get_reference() { - return (StepBasic_HArray1OfUncertaintyMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_HArray1OfUncertaintyMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepBasic_HArray1OfUncertaintyMeasureWithUnit { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepBasic_IdentificationAssignment; @@ -7349,51 +4883,7 @@ class StepBasic_IdentificationAssignment : public MMgt_TShared { }; -%extend StepBasic_IdentificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_IdentificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_IdentificationAssignment::Handle_StepBasic_IdentificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_IdentificationAssignment; -class Handle_StepBasic_IdentificationAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_IdentificationAssignment(); - Handle_StepBasic_IdentificationAssignment(const Handle_StepBasic_IdentificationAssignment &aHandle); - Handle_StepBasic_IdentificationAssignment(const StepBasic_IdentificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_IdentificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_IdentificationAssignment { - StepBasic_IdentificationAssignment* _get_reference() { - return (StepBasic_IdentificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_IdentificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_IdentificationAssignment) %extend StepBasic_IdentificationAssignment { %pythoncode { @@ -7458,51 +4948,7 @@ class StepBasic_IdentificationRole : public MMgt_TShared { }; -%extend StepBasic_IdentificationRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_IdentificationRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_IdentificationRole::Handle_StepBasic_IdentificationRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_IdentificationRole; -class Handle_StepBasic_IdentificationRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_IdentificationRole(); - Handle_StepBasic_IdentificationRole(const Handle_StepBasic_IdentificationRole &aHandle); - Handle_StepBasic_IdentificationRole(const StepBasic_IdentificationRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_IdentificationRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_IdentificationRole { - StepBasic_IdentificationRole* _get_reference() { - return (StepBasic_IdentificationRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_IdentificationRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_IdentificationRole) %extend StepBasic_IdentificationRole { %pythoncode { @@ -7593,51 +5039,7 @@ class StepBasic_LocalTime : public MMgt_TShared { }; -%extend StepBasic_LocalTime { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_LocalTime(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_LocalTime::Handle_StepBasic_LocalTime %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_LocalTime; -class Handle_StepBasic_LocalTime : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_LocalTime(); - Handle_StepBasic_LocalTime(const Handle_StepBasic_LocalTime &aHandle); - Handle_StepBasic_LocalTime(const StepBasic_LocalTime *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_LocalTime DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_LocalTime { - StepBasic_LocalTime* _get_reference() { - return (StepBasic_LocalTime*)$self->Access(); - } -}; - -%extend Handle_StepBasic_LocalTime { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_LocalTime) %extend StepBasic_LocalTime { %pythoncode { @@ -7668,51 +5070,7 @@ class StepBasic_MeasureValueMember : public StepData_SelectReal { }; -%extend StepBasic_MeasureValueMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_MeasureValueMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_MeasureValueMember::Handle_StepBasic_MeasureValueMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_MeasureValueMember; -class Handle_StepBasic_MeasureValueMember : public Handle_StepData_SelectReal { - - public: - // constructors - Handle_StepBasic_MeasureValueMember(); - Handle_StepBasic_MeasureValueMember(const Handle_StepBasic_MeasureValueMember &aHandle); - Handle_StepBasic_MeasureValueMember(const StepBasic_MeasureValueMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_MeasureValueMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_MeasureValueMember { - StepBasic_MeasureValueMember* _get_reference() { - return (StepBasic_MeasureValueMember*)$self->Access(); - } -}; - -%extend Handle_StepBasic_MeasureValueMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_MeasureValueMember) %extend StepBasic_MeasureValueMember { %pythoncode { @@ -7769,51 +5127,7 @@ class StepBasic_MeasureWithUnit : public MMgt_TShared { }; -%extend StepBasic_MeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_MeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_MeasureWithUnit::Handle_StepBasic_MeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_MeasureWithUnit; -class Handle_StepBasic_MeasureWithUnit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_MeasureWithUnit(); - Handle_StepBasic_MeasureWithUnit(const Handle_StepBasic_MeasureWithUnit &aHandle); - Handle_StepBasic_MeasureWithUnit(const StepBasic_MeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_MeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_MeasureWithUnit { - StepBasic_MeasureWithUnit* _get_reference() { - return (StepBasic_MeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_MeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_MeasureWithUnit) %extend StepBasic_MeasureWithUnit { %pythoncode { @@ -7854,51 +5168,7 @@ class StepBasic_NameAssignment : public MMgt_TShared { }; -%extend StepBasic_NameAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_NameAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_NameAssignment::Handle_StepBasic_NameAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_NameAssignment; -class Handle_StepBasic_NameAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_NameAssignment(); - Handle_StepBasic_NameAssignment(const Handle_StepBasic_NameAssignment &aHandle); - Handle_StepBasic_NameAssignment(const StepBasic_NameAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_NameAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_NameAssignment { - StepBasic_NameAssignment* _get_reference() { - return (StepBasic_NameAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_NameAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_NameAssignment) %extend StepBasic_NameAssignment { %pythoncode { @@ -7933,51 +5203,7 @@ class StepBasic_NamedUnit : public MMgt_TShared { }; -%extend StepBasic_NamedUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_NamedUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_NamedUnit::Handle_StepBasic_NamedUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_NamedUnit; -class Handle_StepBasic_NamedUnit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_NamedUnit(); - Handle_StepBasic_NamedUnit(const Handle_StepBasic_NamedUnit &aHandle); - Handle_StepBasic_NamedUnit(const StepBasic_NamedUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_NamedUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_NamedUnit { - StepBasic_NamedUnit* _get_reference() { - return (StepBasic_NamedUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_NamedUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_NamedUnit) %extend StepBasic_NamedUnit { %pythoncode { @@ -8042,51 +5268,7 @@ class StepBasic_ObjectRole : public MMgt_TShared { }; -%extend StepBasic_ObjectRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ObjectRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ObjectRole::Handle_StepBasic_ObjectRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ObjectRole; -class Handle_StepBasic_ObjectRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ObjectRole(); - Handle_StepBasic_ObjectRole(const Handle_StepBasic_ObjectRole &aHandle); - Handle_StepBasic_ObjectRole(const StepBasic_ObjectRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ObjectRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ObjectRole { - StepBasic_ObjectRole* _get_reference() { - return (StepBasic_ObjectRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ObjectRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ObjectRole) %extend StepBasic_ObjectRole { %pythoncode { @@ -8155,51 +5337,7 @@ class StepBasic_Organization : public MMgt_TShared { }; -%extend StepBasic_Organization { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Organization(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Organization::Handle_StepBasic_Organization %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Organization; -class Handle_StepBasic_Organization : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Organization(); - Handle_StepBasic_Organization(const Handle_StepBasic_Organization &aHandle); - Handle_StepBasic_Organization(const StepBasic_Organization *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Organization DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Organization { - StepBasic_Organization* _get_reference() { - return (StepBasic_Organization*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Organization { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Organization) %extend StepBasic_Organization { %pythoncode { @@ -8240,51 +5378,7 @@ class StepBasic_OrganizationAssignment : public MMgt_TShared { }; -%extend StepBasic_OrganizationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_OrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_OrganizationAssignment::Handle_StepBasic_OrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_OrganizationAssignment; -class Handle_StepBasic_OrganizationAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_OrganizationAssignment(); - Handle_StepBasic_OrganizationAssignment(const Handle_StepBasic_OrganizationAssignment &aHandle); - Handle_StepBasic_OrganizationAssignment(const StepBasic_OrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_OrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_OrganizationAssignment { - StepBasic_OrganizationAssignment* _get_reference() { - return (StepBasic_OrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_OrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_OrganizationAssignment) %extend StepBasic_OrganizationAssignment { %pythoncode { @@ -8319,51 +5413,7 @@ class StepBasic_OrganizationRole : public MMgt_TShared { }; -%extend StepBasic_OrganizationRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_OrganizationRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_OrganizationRole::Handle_StepBasic_OrganizationRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_OrganizationRole; -class Handle_StepBasic_OrganizationRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_OrganizationRole(); - Handle_StepBasic_OrganizationRole(const Handle_StepBasic_OrganizationRole &aHandle); - Handle_StepBasic_OrganizationRole(const StepBasic_OrganizationRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_OrganizationRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_OrganizationRole { - StepBasic_OrganizationRole* _get_reference() { - return (StepBasic_OrganizationRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_OrganizationRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_OrganizationRole) %extend StepBasic_OrganizationRole { %pythoncode { @@ -8538,51 +5588,7 @@ class StepBasic_Person : public MMgt_TShared { }; -%extend StepBasic_Person { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Person(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Person::Handle_StepBasic_Person %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Person; -class Handle_StepBasic_Person : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Person(); - Handle_StepBasic_Person(const Handle_StepBasic_Person &aHandle); - Handle_StepBasic_Person(const StepBasic_Person *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Person DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Person { - StepBasic_Person* _get_reference() { - return (StepBasic_Person*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Person { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Person) %extend StepBasic_Person { %pythoncode { @@ -8629,51 +5635,7 @@ class StepBasic_PersonAndOrganization : public MMgt_TShared { }; -%extend StepBasic_PersonAndOrganization { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PersonAndOrganization(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PersonAndOrganization::Handle_StepBasic_PersonAndOrganization %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PersonAndOrganization; -class Handle_StepBasic_PersonAndOrganization : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_PersonAndOrganization(); - Handle_StepBasic_PersonAndOrganization(const Handle_StepBasic_PersonAndOrganization &aHandle); - Handle_StepBasic_PersonAndOrganization(const StepBasic_PersonAndOrganization *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PersonAndOrganization DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PersonAndOrganization { - StepBasic_PersonAndOrganization* _get_reference() { - return (StepBasic_PersonAndOrganization*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PersonAndOrganization { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PersonAndOrganization) %extend StepBasic_PersonAndOrganization { %pythoncode { @@ -8714,51 +5676,7 @@ class StepBasic_PersonAndOrganizationAssignment : public MMgt_TShared { }; -%extend StepBasic_PersonAndOrganizationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PersonAndOrganizationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PersonAndOrganizationAssignment::Handle_StepBasic_PersonAndOrganizationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PersonAndOrganizationAssignment; -class Handle_StepBasic_PersonAndOrganizationAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_PersonAndOrganizationAssignment(); - Handle_StepBasic_PersonAndOrganizationAssignment(const Handle_StepBasic_PersonAndOrganizationAssignment &aHandle); - Handle_StepBasic_PersonAndOrganizationAssignment(const StepBasic_PersonAndOrganizationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PersonAndOrganizationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PersonAndOrganizationAssignment { - StepBasic_PersonAndOrganizationAssignment* _get_reference() { - return (StepBasic_PersonAndOrganizationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PersonAndOrganizationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PersonAndOrganizationAssignment) %extend StepBasic_PersonAndOrganizationAssignment { %pythoncode { @@ -8793,51 +5711,7 @@ class StepBasic_PersonAndOrganizationRole : public MMgt_TShared { }; -%extend StepBasic_PersonAndOrganizationRole { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PersonAndOrganizationRole(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PersonAndOrganizationRole::Handle_StepBasic_PersonAndOrganizationRole %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PersonAndOrganizationRole; -class Handle_StepBasic_PersonAndOrganizationRole : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_PersonAndOrganizationRole(); - Handle_StepBasic_PersonAndOrganizationRole(const Handle_StepBasic_PersonAndOrganizationRole &aHandle); - Handle_StepBasic_PersonAndOrganizationRole(const StepBasic_PersonAndOrganizationRole *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PersonAndOrganizationRole DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PersonAndOrganizationRole { - StepBasic_PersonAndOrganizationRole* _get_reference() { - return (StepBasic_PersonAndOrganizationRole*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PersonAndOrganizationRole { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PersonAndOrganizationRole) %extend StepBasic_PersonAndOrganizationRole { %pythoncode { @@ -8961,51 +5835,7 @@ class StepBasic_Product : public MMgt_TShared { }; -%extend StepBasic_Product { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_Product(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_Product::Handle_StepBasic_Product %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_Product; -class Handle_StepBasic_Product : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_Product(); - Handle_StepBasic_Product(const Handle_StepBasic_Product &aHandle); - Handle_StepBasic_Product(const StepBasic_Product *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_Product DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_Product { - StepBasic_Product* _get_reference() { - return (StepBasic_Product*)$self->Access(); - } -}; - -%extend Handle_StepBasic_Product { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_Product) %extend StepBasic_Product { %pythoncode { @@ -9062,51 +5892,7 @@ class StepBasic_ProductCategory : public MMgt_TShared { }; -%extend StepBasic_ProductCategory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductCategory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductCategory::Handle_StepBasic_ProductCategory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductCategory; -class Handle_StepBasic_ProductCategory : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ProductCategory(); - Handle_StepBasic_ProductCategory(const Handle_StepBasic_ProductCategory &aHandle); - Handle_StepBasic_ProductCategory(const StepBasic_ProductCategory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductCategory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductCategory { - StepBasic_ProductCategory* _get_reference() { - return (StepBasic_ProductCategory*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductCategory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductCategory) %extend StepBasic_ProductCategory { %pythoncode { @@ -9203,51 +5989,7 @@ class StepBasic_ProductCategoryRelationship : public MMgt_TShared { }; -%extend StepBasic_ProductCategoryRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductCategoryRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductCategoryRelationship::Handle_StepBasic_ProductCategoryRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductCategoryRelationship; -class Handle_StepBasic_ProductCategoryRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ProductCategoryRelationship(); - Handle_StepBasic_ProductCategoryRelationship(const Handle_StepBasic_ProductCategoryRelationship &aHandle); - Handle_StepBasic_ProductCategoryRelationship(const StepBasic_ProductCategoryRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductCategoryRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductCategoryRelationship { - StepBasic_ProductCategoryRelationship* _get_reference() { - return (StepBasic_ProductCategoryRelationship*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductCategoryRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductCategoryRelationship) %extend StepBasic_ProductCategoryRelationship { %pythoncode { @@ -9318,62 +6060,18 @@ class StepBasic_ProductDefinition : public MMgt_TShared { }; +%make_alias(StepBasic_ProductDefinition) + %extend StepBasic_ProductDefinition { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinition(self) - self.thisown = False - return self.thisHandle + __repr__ = _dumps_object } }; - -%pythonappend Handle_StepBasic_ProductDefinition::Handle_StepBasic_ProductDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinition; -class Handle_StepBasic_ProductDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ProductDefinition(); - Handle_StepBasic_ProductDefinition(const Handle_StepBasic_ProductDefinition &aHandle); - Handle_StepBasic_ProductDefinition(const StepBasic_ProductDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinition { - StepBasic_ProductDefinition* _get_reference() { - return (StepBasic_ProductDefinition*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepBasic_ProductDefinition { - %pythoncode { - __repr__ = _dumps_object - } -}; -%nodefaultctor StepBasic_ProductDefinitionFormation; -class StepBasic_ProductDefinitionFormation : public MMgt_TShared { - public: - %feature("compactdefaultargs") StepBasic_ProductDefinitionFormation; - %feature("autodoc", " * Returns a ProductDefinitionFormation +%nodefaultctor StepBasic_ProductDefinitionFormation; +class StepBasic_ProductDefinitionFormation : public MMgt_TShared { + public: + %feature("compactdefaultargs") StepBasic_ProductDefinitionFormation; + %feature("autodoc", " * Returns a ProductDefinitionFormation :rtype: None ") StepBasic_ProductDefinitionFormation; @@ -9421,51 +6119,7 @@ class StepBasic_ProductDefinitionFormation : public MMgt_TShared { }; -%extend StepBasic_ProductDefinitionFormation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionFormation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionFormation::Handle_StepBasic_ProductDefinitionFormation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionFormation; -class Handle_StepBasic_ProductDefinitionFormation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ProductDefinitionFormation(); - Handle_StepBasic_ProductDefinitionFormation(const Handle_StepBasic_ProductDefinitionFormation &aHandle); - Handle_StepBasic_ProductDefinitionFormation(const StepBasic_ProductDefinitionFormation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionFormation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionFormation { - StepBasic_ProductDefinitionFormation* _get_reference() { - return (StepBasic_ProductDefinitionFormation*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionFormation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionFormation) %extend StepBasic_ProductDefinitionFormation { %pythoncode { @@ -9570,51 +6224,7 @@ class StepBasic_ProductDefinitionFormationRelationship : public MMgt_TShared { }; -%extend StepBasic_ProductDefinitionFormationRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionFormationRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionFormationRelationship::Handle_StepBasic_ProductDefinitionFormationRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionFormationRelationship; -class Handle_StepBasic_ProductDefinitionFormationRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ProductDefinitionFormationRelationship(); - Handle_StepBasic_ProductDefinitionFormationRelationship(const Handle_StepBasic_ProductDefinitionFormationRelationship &aHandle); - Handle_StepBasic_ProductDefinitionFormationRelationship(const StepBasic_ProductDefinitionFormationRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionFormationRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionFormationRelationship { - StepBasic_ProductDefinitionFormationRelationship* _get_reference() { - return (StepBasic_ProductDefinitionFormationRelationship*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionFormationRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionFormationRelationship) %extend StepBasic_ProductDefinitionFormationRelationship { %pythoncode { @@ -9727,51 +6337,7 @@ class StepBasic_ProductDefinitionRelationship : public MMgt_TShared { }; -%extend StepBasic_ProductDefinitionRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionRelationship::Handle_StepBasic_ProductDefinitionRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionRelationship; -class Handle_StepBasic_ProductDefinitionRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_ProductDefinitionRelationship(); - Handle_StepBasic_ProductDefinitionRelationship(const Handle_StepBasic_ProductDefinitionRelationship &aHandle); - Handle_StepBasic_ProductDefinitionRelationship(const StepBasic_ProductDefinitionRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionRelationship { - StepBasic_ProductDefinitionRelationship* _get_reference() { - return (StepBasic_ProductDefinitionRelationship*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionRelationship) %extend StepBasic_ProductDefinitionRelationship { %pythoncode { @@ -9871,51 +6437,7 @@ class StepBasic_RoleAssociation : public MMgt_TShared { }; -%extend StepBasic_RoleAssociation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_RoleAssociation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_RoleAssociation::Handle_StepBasic_RoleAssociation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_RoleAssociation; -class Handle_StepBasic_RoleAssociation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_RoleAssociation(); - Handle_StepBasic_RoleAssociation(const Handle_StepBasic_RoleAssociation &aHandle); - Handle_StepBasic_RoleAssociation(const StepBasic_RoleAssociation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_RoleAssociation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_RoleAssociation { - StepBasic_RoleAssociation* _get_reference() { - return (StepBasic_RoleAssociation*)$self->Access(); - } -}; - -%extend Handle_StepBasic_RoleAssociation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_RoleAssociation) %extend StepBasic_RoleAssociation { %pythoncode { @@ -10065,51 +6587,7 @@ class StepBasic_SecurityClassification : public MMgt_TShared { }; -%extend StepBasic_SecurityClassification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SecurityClassification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SecurityClassification::Handle_StepBasic_SecurityClassification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SecurityClassification; -class Handle_StepBasic_SecurityClassification : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_SecurityClassification(); - Handle_StepBasic_SecurityClassification(const Handle_StepBasic_SecurityClassification &aHandle); - Handle_StepBasic_SecurityClassification(const StepBasic_SecurityClassification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SecurityClassification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SecurityClassification { - StepBasic_SecurityClassification* _get_reference() { - return (StepBasic_SecurityClassification*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SecurityClassification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SecurityClassification) %extend StepBasic_SecurityClassification { %pythoncode { @@ -10138,51 +6616,7 @@ class StepBasic_SecurityClassificationAssignment : public MMgt_TShared { }; -%extend StepBasic_SecurityClassificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SecurityClassificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SecurityClassificationAssignment::Handle_StepBasic_SecurityClassificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SecurityClassificationAssignment; -class Handle_StepBasic_SecurityClassificationAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_SecurityClassificationAssignment(); - Handle_StepBasic_SecurityClassificationAssignment(const Handle_StepBasic_SecurityClassificationAssignment &aHandle); - Handle_StepBasic_SecurityClassificationAssignment(const StepBasic_SecurityClassificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SecurityClassificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SecurityClassificationAssignment { - StepBasic_SecurityClassificationAssignment* _get_reference() { - return (StepBasic_SecurityClassificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SecurityClassificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SecurityClassificationAssignment) %extend StepBasic_SecurityClassificationAssignment { %pythoncode { @@ -10217,51 +6651,7 @@ class StepBasic_SecurityClassificationLevel : public MMgt_TShared { }; -%extend StepBasic_SecurityClassificationLevel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SecurityClassificationLevel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SecurityClassificationLevel::Handle_StepBasic_SecurityClassificationLevel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SecurityClassificationLevel; -class Handle_StepBasic_SecurityClassificationLevel : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_SecurityClassificationLevel(); - Handle_StepBasic_SecurityClassificationLevel(const Handle_StepBasic_SecurityClassificationLevel &aHandle); - Handle_StepBasic_SecurityClassificationLevel(const StepBasic_SecurityClassificationLevel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SecurityClassificationLevel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SecurityClassificationLevel { - StepBasic_SecurityClassificationLevel* _get_reference() { - return (StepBasic_SecurityClassificationLevel*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SecurityClassificationLevel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SecurityClassificationLevel) %extend StepBasic_SecurityClassificationLevel { %pythoncode { @@ -10292,51 +6682,7 @@ class StepBasic_SizeMember : public StepData_SelectReal { }; -%extend StepBasic_SizeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SizeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SizeMember::Handle_StepBasic_SizeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SizeMember; -class Handle_StepBasic_SizeMember : public Handle_StepData_SelectReal { - - public: - // constructors - Handle_StepBasic_SizeMember(); - Handle_StepBasic_SizeMember(const Handle_StepBasic_SizeMember &aHandle); - Handle_StepBasic_SizeMember(const StepBasic_SizeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SizeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SizeMember { - StepBasic_SizeMember* _get_reference() { - return (StepBasic_SizeMember*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SizeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SizeMember) %extend StepBasic_SizeMember { %pythoncode { @@ -10556,51 +6902,7 @@ class StepBasic_VersionedActionRequest : public MMgt_TShared { }; -%extend StepBasic_VersionedActionRequest { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_VersionedActionRequest(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_VersionedActionRequest::Handle_StepBasic_VersionedActionRequest %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_VersionedActionRequest; -class Handle_StepBasic_VersionedActionRequest : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepBasic_VersionedActionRequest(); - Handle_StepBasic_VersionedActionRequest(const Handle_StepBasic_VersionedActionRequest &aHandle); - Handle_StepBasic_VersionedActionRequest(const StepBasic_VersionedActionRequest *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_VersionedActionRequest DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_VersionedActionRequest { - StepBasic_VersionedActionRequest* _get_reference() { - return (StepBasic_VersionedActionRequest*)$self->Access(); - } -}; - -%extend Handle_StepBasic_VersionedActionRequest { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_VersionedActionRequest) %extend StepBasic_VersionedActionRequest { %pythoncode { @@ -10617,51 +6919,7 @@ class StepBasic_AreaUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_AreaUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_AreaUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_AreaUnit::Handle_StepBasic_AreaUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_AreaUnit; -class Handle_StepBasic_AreaUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_AreaUnit(); - Handle_StepBasic_AreaUnit(const Handle_StepBasic_AreaUnit &aHandle); - Handle_StepBasic_AreaUnit(const StepBasic_AreaUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_AreaUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_AreaUnit { - StepBasic_AreaUnit* _get_reference() { - return (StepBasic_AreaUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_AreaUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_AreaUnit) %extend StepBasic_AreaUnit { %pythoncode { @@ -10716,51 +6974,7 @@ class StepBasic_CalendarDate : public StepBasic_Date { }; -%extend StepBasic_CalendarDate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_CalendarDate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_CalendarDate::Handle_StepBasic_CalendarDate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_CalendarDate; -class Handle_StepBasic_CalendarDate : public Handle_StepBasic_Date { - - public: - // constructors - Handle_StepBasic_CalendarDate(); - Handle_StepBasic_CalendarDate(const Handle_StepBasic_CalendarDate &aHandle); - Handle_StepBasic_CalendarDate(const StepBasic_CalendarDate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_CalendarDate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_CalendarDate { - StepBasic_CalendarDate* _get_reference() { - return (StepBasic_CalendarDate*)$self->Access(); - } -}; - -%extend Handle_StepBasic_CalendarDate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_CalendarDate) %extend StepBasic_CalendarDate { %pythoncode { @@ -10815,51 +7029,7 @@ class StepBasic_ConversionBasedUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_ConversionBasedUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnit::Handle_StepBasic_ConversionBasedUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnit; -class Handle_StepBasic_ConversionBasedUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnit(); - Handle_StepBasic_ConversionBasedUnit(const Handle_StepBasic_ConversionBasedUnit &aHandle); - Handle_StepBasic_ConversionBasedUnit(const StepBasic_ConversionBasedUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnit { - StepBasic_ConversionBasedUnit* _get_reference() { - return (StepBasic_ConversionBasedUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnit) %extend StepBasic_ConversionBasedUnit { %pythoncode { @@ -10876,51 +7046,7 @@ class StepBasic_DigitalDocument : public StepBasic_Document { }; -%extend StepBasic_DigitalDocument { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DigitalDocument(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DigitalDocument::Handle_StepBasic_DigitalDocument %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DigitalDocument; -class Handle_StepBasic_DigitalDocument : public Handle_StepBasic_Document { - - public: - // constructors - Handle_StepBasic_DigitalDocument(); - Handle_StepBasic_DigitalDocument(const Handle_StepBasic_DigitalDocument &aHandle); - Handle_StepBasic_DigitalDocument(const StepBasic_DigitalDocument *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DigitalDocument DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DigitalDocument { - StepBasic_DigitalDocument* _get_reference() { - return (StepBasic_DigitalDocument*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DigitalDocument { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DigitalDocument) %extend StepBasic_DigitalDocument { %pythoncode { @@ -10975,51 +7101,7 @@ class StepBasic_DocumentFile : public StepBasic_Document { }; -%extend StepBasic_DocumentFile { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentFile(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentFile::Handle_StepBasic_DocumentFile %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentFile; -class Handle_StepBasic_DocumentFile : public Handle_StepBasic_Document { - - public: - // constructors - Handle_StepBasic_DocumentFile(); - Handle_StepBasic_DocumentFile(const Handle_StepBasic_DocumentFile &aHandle); - Handle_StepBasic_DocumentFile(const StepBasic_DocumentFile *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentFile DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentFile { - StepBasic_DocumentFile* _get_reference() { - return (StepBasic_DocumentFile*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentFile { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentFile) %extend StepBasic_DocumentFile { %pythoncode { @@ -11038,51 +7120,7 @@ class StepBasic_DocumentProductEquivalence : public StepBasic_DocumentProductAss }; -%extend StepBasic_DocumentProductEquivalence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DocumentProductEquivalence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DocumentProductEquivalence::Handle_StepBasic_DocumentProductEquivalence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DocumentProductEquivalence; -class Handle_StepBasic_DocumentProductEquivalence : public Handle_StepBasic_DocumentProductAssociation { - - public: - // constructors - Handle_StepBasic_DocumentProductEquivalence(); - Handle_StepBasic_DocumentProductEquivalence(const Handle_StepBasic_DocumentProductEquivalence &aHandle); - Handle_StepBasic_DocumentProductEquivalence(const StepBasic_DocumentProductEquivalence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DocumentProductEquivalence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DocumentProductEquivalence { - StepBasic_DocumentProductEquivalence* _get_reference() { - return (StepBasic_DocumentProductEquivalence*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DocumentProductEquivalence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DocumentProductEquivalence) %extend StepBasic_DocumentProductEquivalence { %pythoncode { @@ -11127,51 +7165,7 @@ class StepBasic_ExternalIdentificationAssignment : public StepBasic_Identificati }; -%extend StepBasic_ExternalIdentificationAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ExternalIdentificationAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ExternalIdentificationAssignment::Handle_StepBasic_ExternalIdentificationAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ExternalIdentificationAssignment; -class Handle_StepBasic_ExternalIdentificationAssignment : public Handle_StepBasic_IdentificationAssignment { - - public: - // constructors - Handle_StepBasic_ExternalIdentificationAssignment(); - Handle_StepBasic_ExternalIdentificationAssignment(const Handle_StepBasic_ExternalIdentificationAssignment &aHandle); - Handle_StepBasic_ExternalIdentificationAssignment(const StepBasic_ExternalIdentificationAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ExternalIdentificationAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ExternalIdentificationAssignment { - StepBasic_ExternalIdentificationAssignment* _get_reference() { - return (StepBasic_ExternalIdentificationAssignment*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ExternalIdentificationAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ExternalIdentificationAssignment) %extend StepBasic_ExternalIdentificationAssignment { %pythoncode { @@ -11190,51 +7184,7 @@ class StepBasic_LengthMeasureWithUnit : public StepBasic_MeasureWithUnit { }; -%extend StepBasic_LengthMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_LengthMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_LengthMeasureWithUnit::Handle_StepBasic_LengthMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_LengthMeasureWithUnit; -class Handle_StepBasic_LengthMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_LengthMeasureWithUnit(); - Handle_StepBasic_LengthMeasureWithUnit(const Handle_StepBasic_LengthMeasureWithUnit &aHandle); - Handle_StepBasic_LengthMeasureWithUnit(const StepBasic_LengthMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_LengthMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_LengthMeasureWithUnit { - StepBasic_LengthMeasureWithUnit* _get_reference() { - return (StepBasic_LengthMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_LengthMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_LengthMeasureWithUnit) %extend StepBasic_LengthMeasureWithUnit { %pythoncode { @@ -11253,51 +7203,7 @@ class StepBasic_LengthUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_LengthUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_LengthUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_LengthUnit::Handle_StepBasic_LengthUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_LengthUnit; -class Handle_StepBasic_LengthUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_LengthUnit(); - Handle_StepBasic_LengthUnit(const Handle_StepBasic_LengthUnit &aHandle); - Handle_StepBasic_LengthUnit(const StepBasic_LengthUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_LengthUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_LengthUnit { - StepBasic_LengthUnit* _get_reference() { - return (StepBasic_LengthUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_LengthUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_LengthUnit) %extend StepBasic_LengthUnit { %pythoncode { @@ -11316,55 +7222,11 @@ class StepBasic_MassMeasureWithUnit : public StepBasic_MeasureWithUnit { }; +%make_alias(StepBasic_MassMeasureWithUnit) + %extend StepBasic_MassMeasureWithUnit { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_MassMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_MassMeasureWithUnit::Handle_StepBasic_MassMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_MassMeasureWithUnit; -class Handle_StepBasic_MassMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_MassMeasureWithUnit(); - Handle_StepBasic_MassMeasureWithUnit(const Handle_StepBasic_MassMeasureWithUnit &aHandle); - Handle_StepBasic_MassMeasureWithUnit(const StepBasic_MassMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_MassMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_MassMeasureWithUnit { - StepBasic_MassMeasureWithUnit* _get_reference() { - return (StepBasic_MassMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_MassMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepBasic_MassMeasureWithUnit { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepBasic_MassUnit; @@ -11379,51 +7241,7 @@ class StepBasic_MassUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_MassUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_MassUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_MassUnit::Handle_StepBasic_MassUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_MassUnit; -class Handle_StepBasic_MassUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_MassUnit(); - Handle_StepBasic_MassUnit(const Handle_StepBasic_MassUnit &aHandle); - Handle_StepBasic_MassUnit(const StepBasic_MassUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_MassUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_MassUnit { - StepBasic_MassUnit* _get_reference() { - return (StepBasic_MassUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_MassUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_MassUnit) %extend StepBasic_MassUnit { %pythoncode { @@ -11466,51 +7284,7 @@ class StepBasic_OrdinalDate : public StepBasic_Date { }; -%extend StepBasic_OrdinalDate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_OrdinalDate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_OrdinalDate::Handle_StepBasic_OrdinalDate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_OrdinalDate; -class Handle_StepBasic_OrdinalDate : public Handle_StepBasic_Date { - - public: - // constructors - Handle_StepBasic_OrdinalDate(); - Handle_StepBasic_OrdinalDate(const Handle_StepBasic_OrdinalDate &aHandle); - Handle_StepBasic_OrdinalDate(const StepBasic_OrdinalDate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_OrdinalDate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_OrdinalDate { - StepBasic_OrdinalDate* _get_reference() { - return (StepBasic_OrdinalDate*)$self->Access(); - } -}; - -%extend Handle_StepBasic_OrdinalDate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_OrdinalDate) %extend StepBasic_OrdinalDate { %pythoncode { @@ -11667,51 +7441,7 @@ class StepBasic_OrganizationalAddress : public StepBasic_Address { }; -%extend StepBasic_OrganizationalAddress { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_OrganizationalAddress(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_OrganizationalAddress::Handle_StepBasic_OrganizationalAddress %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_OrganizationalAddress; -class Handle_StepBasic_OrganizationalAddress : public Handle_StepBasic_Address { - - public: - // constructors - Handle_StepBasic_OrganizationalAddress(); - Handle_StepBasic_OrganizationalAddress(const Handle_StepBasic_OrganizationalAddress &aHandle); - Handle_StepBasic_OrganizationalAddress(const StepBasic_OrganizationalAddress *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_OrganizationalAddress DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_OrganizationalAddress { - StepBasic_OrganizationalAddress* _get_reference() { - return (StepBasic_OrganizationalAddress*)$self->Access(); - } -}; - -%extend Handle_StepBasic_OrganizationalAddress { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_OrganizationalAddress) %extend StepBasic_OrganizationalAddress { %pythoncode { @@ -11868,51 +7598,7 @@ class StepBasic_PersonalAddress : public StepBasic_Address { }; -%extend StepBasic_PersonalAddress { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PersonalAddress(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PersonalAddress::Handle_StepBasic_PersonalAddress %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PersonalAddress; -class Handle_StepBasic_PersonalAddress : public Handle_StepBasic_Address { - - public: - // constructors - Handle_StepBasic_PersonalAddress(); - Handle_StepBasic_PersonalAddress(const Handle_StepBasic_PersonalAddress &aHandle); - Handle_StepBasic_PersonalAddress(const StepBasic_PersonalAddress *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PersonalAddress DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PersonalAddress { - StepBasic_PersonalAddress* _get_reference() { - return (StepBasic_PersonalAddress*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PersonalAddress { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PersonalAddress) %extend StepBasic_PersonalAddress { %pythoncode { @@ -11929,51 +7615,7 @@ class StepBasic_PhysicallyModeledProductDefinition : public StepBasic_ProductDef }; -%extend StepBasic_PhysicallyModeledProductDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PhysicallyModeledProductDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PhysicallyModeledProductDefinition::Handle_StepBasic_PhysicallyModeledProductDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PhysicallyModeledProductDefinition; -class Handle_StepBasic_PhysicallyModeledProductDefinition : public Handle_StepBasic_ProductDefinition { - - public: - // constructors - Handle_StepBasic_PhysicallyModeledProductDefinition(); - Handle_StepBasic_PhysicallyModeledProductDefinition(const Handle_StepBasic_PhysicallyModeledProductDefinition &aHandle); - Handle_StepBasic_PhysicallyModeledProductDefinition(const StepBasic_PhysicallyModeledProductDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PhysicallyModeledProductDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PhysicallyModeledProductDefinition { - StepBasic_PhysicallyModeledProductDefinition* _get_reference() { - return (StepBasic_PhysicallyModeledProductDefinition*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PhysicallyModeledProductDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PhysicallyModeledProductDefinition) %extend StepBasic_PhysicallyModeledProductDefinition { %pythoncode { @@ -11992,51 +7634,7 @@ class StepBasic_PlaneAngleMeasureWithUnit : public StepBasic_MeasureWithUnit { }; -%extend StepBasic_PlaneAngleMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PlaneAngleMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PlaneAngleMeasureWithUnit::Handle_StepBasic_PlaneAngleMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PlaneAngleMeasureWithUnit; -class Handle_StepBasic_PlaneAngleMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_PlaneAngleMeasureWithUnit(); - Handle_StepBasic_PlaneAngleMeasureWithUnit(const Handle_StepBasic_PlaneAngleMeasureWithUnit &aHandle); - Handle_StepBasic_PlaneAngleMeasureWithUnit(const StepBasic_PlaneAngleMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PlaneAngleMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PlaneAngleMeasureWithUnit { - StepBasic_PlaneAngleMeasureWithUnit* _get_reference() { - return (StepBasic_PlaneAngleMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PlaneAngleMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PlaneAngleMeasureWithUnit) %extend StepBasic_PlaneAngleMeasureWithUnit { %pythoncode { @@ -12055,51 +7653,7 @@ class StepBasic_PlaneAngleUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_PlaneAngleUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_PlaneAngleUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_PlaneAngleUnit::Handle_StepBasic_PlaneAngleUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_PlaneAngleUnit; -class Handle_StepBasic_PlaneAngleUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_PlaneAngleUnit(); - Handle_StepBasic_PlaneAngleUnit(const Handle_StepBasic_PlaneAngleUnit &aHandle); - Handle_StepBasic_PlaneAngleUnit(const StepBasic_PlaneAngleUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_PlaneAngleUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_PlaneAngleUnit { - StepBasic_PlaneAngleUnit* _get_reference() { - return (StepBasic_PlaneAngleUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_PlaneAngleUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_PlaneAngleUnit) %extend StepBasic_PlaneAngleUnit { %pythoncode { @@ -12144,51 +7698,7 @@ class StepBasic_ProductConceptContext : public StepBasic_ApplicationContextEleme }; -%extend StepBasic_ProductConceptContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductConceptContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductConceptContext::Handle_StepBasic_ProductConceptContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductConceptContext; -class Handle_StepBasic_ProductConceptContext : public Handle_StepBasic_ApplicationContextElement { - - public: - // constructors - Handle_StepBasic_ProductConceptContext(); - Handle_StepBasic_ProductConceptContext(const Handle_StepBasic_ProductConceptContext &aHandle); - Handle_StepBasic_ProductConceptContext(const StepBasic_ProductConceptContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductConceptContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductConceptContext { - StepBasic_ProductConceptContext* _get_reference() { - return (StepBasic_ProductConceptContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductConceptContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductConceptContext) %extend StepBasic_ProductConceptContext { %pythoncode { @@ -12235,51 +7745,7 @@ class StepBasic_ProductContext : public StepBasic_ApplicationContextElement { }; -%extend StepBasic_ProductContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductContext::Handle_StepBasic_ProductContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductContext; -class Handle_StepBasic_ProductContext : public Handle_StepBasic_ApplicationContextElement { - - public: - // constructors - Handle_StepBasic_ProductContext(); - Handle_StepBasic_ProductContext(const Handle_StepBasic_ProductContext &aHandle); - Handle_StepBasic_ProductContext(const StepBasic_ProductContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductContext { - StepBasic_ProductContext* _get_reference() { - return (StepBasic_ProductContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductContext) %extend StepBasic_ProductContext { %pythoncode { @@ -12326,51 +7792,7 @@ class StepBasic_ProductDefinitionContext : public StepBasic_ApplicationContextEl }; -%extend StepBasic_ProductDefinitionContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionContext::Handle_StepBasic_ProductDefinitionContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionContext; -class Handle_StepBasic_ProductDefinitionContext : public Handle_StepBasic_ApplicationContextElement { - - public: - // constructors - Handle_StepBasic_ProductDefinitionContext(); - Handle_StepBasic_ProductDefinitionContext(const Handle_StepBasic_ProductDefinitionContext &aHandle); - Handle_StepBasic_ProductDefinitionContext(const StepBasic_ProductDefinitionContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionContext { - StepBasic_ProductDefinitionContext* _get_reference() { - return (StepBasic_ProductDefinitionContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionContext) %extend StepBasic_ProductDefinitionContext { %pythoncode { @@ -12405,51 +7827,7 @@ class StepBasic_ProductDefinitionEffectivity : public StepBasic_Effectivity { }; -%extend StepBasic_ProductDefinitionEffectivity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionEffectivity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionEffectivity::Handle_StepBasic_ProductDefinitionEffectivity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionEffectivity; -class Handle_StepBasic_ProductDefinitionEffectivity : public Handle_StepBasic_Effectivity { - - public: - // constructors - Handle_StepBasic_ProductDefinitionEffectivity(); - Handle_StepBasic_ProductDefinitionEffectivity(const Handle_StepBasic_ProductDefinitionEffectivity &aHandle); - Handle_StepBasic_ProductDefinitionEffectivity(const StepBasic_ProductDefinitionEffectivity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionEffectivity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionEffectivity { - StepBasic_ProductDefinitionEffectivity* _get_reference() { - return (StepBasic_ProductDefinitionEffectivity*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionEffectivity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionEffectivity) %extend StepBasic_ProductDefinitionEffectivity { %pythoncode { @@ -12500,51 +7878,7 @@ class StepBasic_ProductDefinitionFormationWithSpecifiedSource : public StepBasic }; -%extend StepBasic_ProductDefinitionFormationWithSpecifiedSource { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource::Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource; -class Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource : public Handle_StepBasic_ProductDefinitionFormation { - - public: - // constructors - Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource(); - Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource(const Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource &aHandle); - Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource(const StepBasic_ProductDefinitionFormationWithSpecifiedSource *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource { - StepBasic_ProductDefinitionFormationWithSpecifiedSource* _get_reference() { - return (StepBasic_ProductDefinitionFormationWithSpecifiedSource*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionFormationWithSpecifiedSource { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionFormationWithSpecifiedSource) %extend StepBasic_ProductDefinitionFormationWithSpecifiedSource { %pythoncode { @@ -12603,51 +7937,7 @@ class StepBasic_ProductDefinitionWithAssociatedDocuments : public StepBasic_Prod }; -%extend StepBasic_ProductDefinitionWithAssociatedDocuments { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductDefinitionWithAssociatedDocuments(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductDefinitionWithAssociatedDocuments::Handle_StepBasic_ProductDefinitionWithAssociatedDocuments %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductDefinitionWithAssociatedDocuments; -class Handle_StepBasic_ProductDefinitionWithAssociatedDocuments : public Handle_StepBasic_ProductDefinition { - - public: - // constructors - Handle_StepBasic_ProductDefinitionWithAssociatedDocuments(); - Handle_StepBasic_ProductDefinitionWithAssociatedDocuments(const Handle_StepBasic_ProductDefinitionWithAssociatedDocuments &aHandle); - Handle_StepBasic_ProductDefinitionWithAssociatedDocuments(const StepBasic_ProductDefinitionWithAssociatedDocuments *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductDefinitionWithAssociatedDocuments DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductDefinitionWithAssociatedDocuments { - StepBasic_ProductDefinitionWithAssociatedDocuments* _get_reference() { - return (StepBasic_ProductDefinitionWithAssociatedDocuments*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductDefinitionWithAssociatedDocuments { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductDefinitionWithAssociatedDocuments) %extend StepBasic_ProductDefinitionWithAssociatedDocuments { %pythoncode { @@ -12708,51 +7998,7 @@ class StepBasic_ProductRelatedProductCategory : public StepBasic_ProductCategory }; -%extend StepBasic_ProductRelatedProductCategory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductRelatedProductCategory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductRelatedProductCategory::Handle_StepBasic_ProductRelatedProductCategory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductRelatedProductCategory; -class Handle_StepBasic_ProductRelatedProductCategory : public Handle_StepBasic_ProductCategory { - - public: - // constructors - Handle_StepBasic_ProductRelatedProductCategory(); - Handle_StepBasic_ProductRelatedProductCategory(const Handle_StepBasic_ProductRelatedProductCategory &aHandle); - Handle_StepBasic_ProductRelatedProductCategory(const StepBasic_ProductRelatedProductCategory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductRelatedProductCategory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductRelatedProductCategory { - StepBasic_ProductRelatedProductCategory* _get_reference() { - return (StepBasic_ProductRelatedProductCategory*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductRelatedProductCategory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductRelatedProductCategory) %extend StepBasic_ProductRelatedProductCategory { %pythoncode { @@ -12771,51 +8017,7 @@ class StepBasic_RatioMeasureWithUnit : public StepBasic_MeasureWithUnit { }; -%extend StepBasic_RatioMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_RatioMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_RatioMeasureWithUnit::Handle_StepBasic_RatioMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_RatioMeasureWithUnit; -class Handle_StepBasic_RatioMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_RatioMeasureWithUnit(); - Handle_StepBasic_RatioMeasureWithUnit(const Handle_StepBasic_RatioMeasureWithUnit &aHandle); - Handle_StepBasic_RatioMeasureWithUnit(const StepBasic_RatioMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_RatioMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_RatioMeasureWithUnit { - StepBasic_RatioMeasureWithUnit* _get_reference() { - return (StepBasic_RatioMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_RatioMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_RatioMeasureWithUnit) %extend StepBasic_RatioMeasureWithUnit { %pythoncode { @@ -12834,51 +8036,7 @@ class StepBasic_RatioUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_RatioUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_RatioUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_RatioUnit::Handle_StepBasic_RatioUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_RatioUnit; -class Handle_StepBasic_RatioUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_RatioUnit(); - Handle_StepBasic_RatioUnit(const Handle_StepBasic_RatioUnit &aHandle); - Handle_StepBasic_RatioUnit(const StepBasic_RatioUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_RatioUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_RatioUnit { - StepBasic_RatioUnit* _get_reference() { - return (StepBasic_RatioUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_RatioUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_RatioUnit) %extend StepBasic_RatioUnit { %pythoncode { @@ -12951,51 +8109,7 @@ class StepBasic_SiUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_SiUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnit::Handle_StepBasic_SiUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnit; -class Handle_StepBasic_SiUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_SiUnit(); - Handle_StepBasic_SiUnit(const Handle_StepBasic_SiUnit &aHandle); - Handle_StepBasic_SiUnit(const StepBasic_SiUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnit { - StepBasic_SiUnit* _get_reference() { - return (StepBasic_SiUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnit) %extend StepBasic_SiUnit { %pythoncode { @@ -13014,51 +8128,7 @@ class StepBasic_SolidAngleMeasureWithUnit : public StepBasic_MeasureWithUnit { }; -%extend StepBasic_SolidAngleMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SolidAngleMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SolidAngleMeasureWithUnit::Handle_StepBasic_SolidAngleMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SolidAngleMeasureWithUnit; -class Handle_StepBasic_SolidAngleMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_SolidAngleMeasureWithUnit(); - Handle_StepBasic_SolidAngleMeasureWithUnit(const Handle_StepBasic_SolidAngleMeasureWithUnit &aHandle); - Handle_StepBasic_SolidAngleMeasureWithUnit(const StepBasic_SolidAngleMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SolidAngleMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SolidAngleMeasureWithUnit { - StepBasic_SolidAngleMeasureWithUnit* _get_reference() { - return (StepBasic_SolidAngleMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SolidAngleMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SolidAngleMeasureWithUnit) %extend StepBasic_SolidAngleMeasureWithUnit { %pythoncode { @@ -13077,62 +8147,18 @@ class StepBasic_SolidAngleUnit : public StepBasic_NamedUnit { }; +%make_alias(StepBasic_SolidAngleUnit) + %extend StepBasic_SolidAngleUnit { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SolidAngleUnit(self) - self.thisown = False - return self.thisHandle + __repr__ = _dumps_object } }; - -%pythonappend Handle_StepBasic_SolidAngleUnit::Handle_StepBasic_SolidAngleUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SolidAngleUnit; -class Handle_StepBasic_SolidAngleUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_SolidAngleUnit(); - Handle_StepBasic_SolidAngleUnit(const Handle_StepBasic_SolidAngleUnit &aHandle); - Handle_StepBasic_SolidAngleUnit(const StepBasic_SolidAngleUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SolidAngleUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SolidAngleUnit { - StepBasic_SolidAngleUnit* _get_reference() { - return (StepBasic_SolidAngleUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SolidAngleUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepBasic_SolidAngleUnit { - %pythoncode { - __repr__ = _dumps_object - } -}; -%nodefaultctor StepBasic_ThermodynamicTemperatureUnit; -class StepBasic_ThermodynamicTemperatureUnit : public StepBasic_NamedUnit { - public: - %feature("compactdefaultargs") StepBasic_ThermodynamicTemperatureUnit; - %feature("autodoc", " * Empty constructor +%nodefaultctor StepBasic_ThermodynamicTemperatureUnit; +class StepBasic_ThermodynamicTemperatureUnit : public StepBasic_NamedUnit { + public: + %feature("compactdefaultargs") StepBasic_ThermodynamicTemperatureUnit; + %feature("autodoc", " * Empty constructor :rtype: None ") StepBasic_ThermodynamicTemperatureUnit; @@ -13140,51 +8166,7 @@ class StepBasic_ThermodynamicTemperatureUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_ThermodynamicTemperatureUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ThermodynamicTemperatureUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ThermodynamicTemperatureUnit::Handle_StepBasic_ThermodynamicTemperatureUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ThermodynamicTemperatureUnit; -class Handle_StepBasic_ThermodynamicTemperatureUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_ThermodynamicTemperatureUnit(); - Handle_StepBasic_ThermodynamicTemperatureUnit(const Handle_StepBasic_ThermodynamicTemperatureUnit &aHandle); - Handle_StepBasic_ThermodynamicTemperatureUnit(const StepBasic_ThermodynamicTemperatureUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ThermodynamicTemperatureUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ThermodynamicTemperatureUnit { - StepBasic_ThermodynamicTemperatureUnit* _get_reference() { - return (StepBasic_ThermodynamicTemperatureUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ThermodynamicTemperatureUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ThermodynamicTemperatureUnit) %extend StepBasic_ThermodynamicTemperatureUnit { %pythoncode { @@ -13203,51 +8185,7 @@ class StepBasic_TimeMeasureWithUnit : public StepBasic_MeasureWithUnit { }; -%extend StepBasic_TimeMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_TimeMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_TimeMeasureWithUnit::Handle_StepBasic_TimeMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_TimeMeasureWithUnit; -class Handle_StepBasic_TimeMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_TimeMeasureWithUnit(); - Handle_StepBasic_TimeMeasureWithUnit(const Handle_StepBasic_TimeMeasureWithUnit &aHandle); - Handle_StepBasic_TimeMeasureWithUnit(const StepBasic_TimeMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_TimeMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_TimeMeasureWithUnit { - StepBasic_TimeMeasureWithUnit* _get_reference() { - return (StepBasic_TimeMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_TimeMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_TimeMeasureWithUnit) %extend StepBasic_TimeMeasureWithUnit { %pythoncode { @@ -13266,51 +8204,7 @@ class StepBasic_TimeUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_TimeUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_TimeUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_TimeUnit::Handle_StepBasic_TimeUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_TimeUnit; -class Handle_StepBasic_TimeUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_TimeUnit(); - Handle_StepBasic_TimeUnit(const Handle_StepBasic_TimeUnit &aHandle); - Handle_StepBasic_TimeUnit(const StepBasic_TimeUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_TimeUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_TimeUnit { - StepBasic_TimeUnit* _get_reference() { - return (StepBasic_TimeUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_TimeUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_TimeUnit) %extend StepBasic_TimeUnit { %pythoncode { @@ -13369,51 +8263,7 @@ class StepBasic_UncertaintyMeasureWithUnit : public StepBasic_MeasureWithUnit { }; -%extend StepBasic_UncertaintyMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_UncertaintyMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_UncertaintyMeasureWithUnit::Handle_StepBasic_UncertaintyMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_UncertaintyMeasureWithUnit; -class Handle_StepBasic_UncertaintyMeasureWithUnit : public Handle_StepBasic_MeasureWithUnit { - - public: - // constructors - Handle_StepBasic_UncertaintyMeasureWithUnit(); - Handle_StepBasic_UncertaintyMeasureWithUnit(const Handle_StepBasic_UncertaintyMeasureWithUnit &aHandle); - Handle_StepBasic_UncertaintyMeasureWithUnit(const StepBasic_UncertaintyMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_UncertaintyMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_UncertaintyMeasureWithUnit { - StepBasic_UncertaintyMeasureWithUnit* _get_reference() { - return (StepBasic_UncertaintyMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_UncertaintyMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_UncertaintyMeasureWithUnit) %extend StepBasic_UncertaintyMeasureWithUnit { %pythoncode { @@ -13430,51 +8280,7 @@ class StepBasic_VolumeUnit : public StepBasic_NamedUnit { }; -%extend StepBasic_VolumeUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_VolumeUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_VolumeUnit::Handle_StepBasic_VolumeUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_VolumeUnit; -class Handle_StepBasic_VolumeUnit : public Handle_StepBasic_NamedUnit { - - public: - // constructors - Handle_StepBasic_VolumeUnit(); - Handle_StepBasic_VolumeUnit(const Handle_StepBasic_VolumeUnit &aHandle); - Handle_StepBasic_VolumeUnit(const StepBasic_VolumeUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_VolumeUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_VolumeUnit { - StepBasic_VolumeUnit* _get_reference() { - return (StepBasic_VolumeUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_VolumeUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_VolumeUnit) %extend StepBasic_VolumeUnit { %pythoncode { @@ -13539,51 +8345,7 @@ class StepBasic_WeekOfYearAndDayDate : public StepBasic_Date { }; -%extend StepBasic_WeekOfYearAndDayDate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_WeekOfYearAndDayDate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_WeekOfYearAndDayDate::Handle_StepBasic_WeekOfYearAndDayDate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_WeekOfYearAndDayDate; -class Handle_StepBasic_WeekOfYearAndDayDate : public Handle_StepBasic_Date { - - public: - // constructors - Handle_StepBasic_WeekOfYearAndDayDate(); - Handle_StepBasic_WeekOfYearAndDayDate(const Handle_StepBasic_WeekOfYearAndDayDate &aHandle); - Handle_StepBasic_WeekOfYearAndDayDate(const StepBasic_WeekOfYearAndDayDate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_WeekOfYearAndDayDate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_WeekOfYearAndDayDate { - StepBasic_WeekOfYearAndDayDate* _get_reference() { - return (StepBasic_WeekOfYearAndDayDate*)$self->Access(); - } -}; - -%extend Handle_StepBasic_WeekOfYearAndDayDate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_WeekOfYearAndDayDate) %extend StepBasic_WeekOfYearAndDayDate { %pythoncode { @@ -13612,51 +8374,7 @@ class StepBasic_ConversionBasedUnitAndAreaUnit : public StepBasic_ConversionBase }; -%extend StepBasic_ConversionBasedUnitAndAreaUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndAreaUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndAreaUnit::Handle_StepBasic_ConversionBasedUnitAndAreaUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndAreaUnit; -class Handle_StepBasic_ConversionBasedUnitAndAreaUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndAreaUnit(); - Handle_StepBasic_ConversionBasedUnitAndAreaUnit(const Handle_StepBasic_ConversionBasedUnitAndAreaUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndAreaUnit(const StepBasic_ConversionBasedUnitAndAreaUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndAreaUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndAreaUnit { - StepBasic_ConversionBasedUnitAndAreaUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndAreaUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndAreaUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndAreaUnit) %extend StepBasic_ConversionBasedUnitAndAreaUnit { %pythoncode { @@ -13701,51 +8419,7 @@ class StepBasic_ConversionBasedUnitAndLengthUnit : public StepBasic_ConversionBa }; -%extend StepBasic_ConversionBasedUnitAndLengthUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndLengthUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndLengthUnit::Handle_StepBasic_ConversionBasedUnitAndLengthUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndLengthUnit; -class Handle_StepBasic_ConversionBasedUnitAndLengthUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndLengthUnit(); - Handle_StepBasic_ConversionBasedUnitAndLengthUnit(const Handle_StepBasic_ConversionBasedUnitAndLengthUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndLengthUnit(const StepBasic_ConversionBasedUnitAndLengthUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndLengthUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndLengthUnit { - StepBasic_ConversionBasedUnitAndLengthUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndLengthUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndLengthUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndLengthUnit) %extend StepBasic_ConversionBasedUnitAndLengthUnit { %pythoncode { @@ -13790,51 +8464,7 @@ class StepBasic_ConversionBasedUnitAndMassUnit : public StepBasic_ConversionBase }; -%extend StepBasic_ConversionBasedUnitAndMassUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndMassUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndMassUnit::Handle_StepBasic_ConversionBasedUnitAndMassUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndMassUnit; -class Handle_StepBasic_ConversionBasedUnitAndMassUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndMassUnit(); - Handle_StepBasic_ConversionBasedUnitAndMassUnit(const Handle_StepBasic_ConversionBasedUnitAndMassUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndMassUnit(const StepBasic_ConversionBasedUnitAndMassUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndMassUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndMassUnit { - StepBasic_ConversionBasedUnitAndMassUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndMassUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndMassUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndMassUnit) %extend StepBasic_ConversionBasedUnitAndMassUnit { %pythoncode { @@ -13879,51 +8509,7 @@ class StepBasic_ConversionBasedUnitAndPlaneAngleUnit : public StepBasic_Conversi }; -%extend StepBasic_ConversionBasedUnitAndPlaneAngleUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit::Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit; -class Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit(); - Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit(const Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit(const StepBasic_ConversionBasedUnitAndPlaneAngleUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit { - StepBasic_ConversionBasedUnitAndPlaneAngleUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndPlaneAngleUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndPlaneAngleUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndPlaneAngleUnit) %extend StepBasic_ConversionBasedUnitAndPlaneAngleUnit { %pythoncode { @@ -13968,51 +8554,7 @@ class StepBasic_ConversionBasedUnitAndRatioUnit : public StepBasic_ConversionBas }; -%extend StepBasic_ConversionBasedUnitAndRatioUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndRatioUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndRatioUnit::Handle_StepBasic_ConversionBasedUnitAndRatioUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndRatioUnit; -class Handle_StepBasic_ConversionBasedUnitAndRatioUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndRatioUnit(); - Handle_StepBasic_ConversionBasedUnitAndRatioUnit(const Handle_StepBasic_ConversionBasedUnitAndRatioUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndRatioUnit(const StepBasic_ConversionBasedUnitAndRatioUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndRatioUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndRatioUnit { - StepBasic_ConversionBasedUnitAndRatioUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndRatioUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndRatioUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndRatioUnit) %extend StepBasic_ConversionBasedUnitAndRatioUnit { %pythoncode { @@ -14057,51 +8599,7 @@ class StepBasic_ConversionBasedUnitAndSolidAngleUnit : public StepBasic_Conversi }; -%extend StepBasic_ConversionBasedUnitAndSolidAngleUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit::Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit; -class Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit(); - Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit(const Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit(const StepBasic_ConversionBasedUnitAndSolidAngleUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit { - StepBasic_ConversionBasedUnitAndSolidAngleUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndSolidAngleUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndSolidAngleUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndSolidAngleUnit) %extend StepBasic_ConversionBasedUnitAndSolidAngleUnit { %pythoncode { @@ -14146,51 +8644,7 @@ class StepBasic_ConversionBasedUnitAndTimeUnit : public StepBasic_ConversionBase }; -%extend StepBasic_ConversionBasedUnitAndTimeUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndTimeUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndTimeUnit::Handle_StepBasic_ConversionBasedUnitAndTimeUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndTimeUnit; -class Handle_StepBasic_ConversionBasedUnitAndTimeUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndTimeUnit(); - Handle_StepBasic_ConversionBasedUnitAndTimeUnit(const Handle_StepBasic_ConversionBasedUnitAndTimeUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndTimeUnit(const StepBasic_ConversionBasedUnitAndTimeUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndTimeUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndTimeUnit { - StepBasic_ConversionBasedUnitAndTimeUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndTimeUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndTimeUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndTimeUnit) %extend StepBasic_ConversionBasedUnitAndTimeUnit { %pythoncode { @@ -14219,51 +8673,7 @@ class StepBasic_ConversionBasedUnitAndVolumeUnit : public StepBasic_ConversionBa }; -%extend StepBasic_ConversionBasedUnitAndVolumeUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ConversionBasedUnitAndVolumeUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ConversionBasedUnitAndVolumeUnit::Handle_StepBasic_ConversionBasedUnitAndVolumeUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ConversionBasedUnitAndVolumeUnit; -class Handle_StepBasic_ConversionBasedUnitAndVolumeUnit : public Handle_StepBasic_ConversionBasedUnit { - - public: - // constructors - Handle_StepBasic_ConversionBasedUnitAndVolumeUnit(); - Handle_StepBasic_ConversionBasedUnitAndVolumeUnit(const Handle_StepBasic_ConversionBasedUnitAndVolumeUnit &aHandle); - Handle_StepBasic_ConversionBasedUnitAndVolumeUnit(const StepBasic_ConversionBasedUnitAndVolumeUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ConversionBasedUnitAndVolumeUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ConversionBasedUnitAndVolumeUnit { - StepBasic_ConversionBasedUnitAndVolumeUnit* _get_reference() { - return (StepBasic_ConversionBasedUnitAndVolumeUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ConversionBasedUnitAndVolumeUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ConversionBasedUnitAndVolumeUnit) %extend StepBasic_ConversionBasedUnitAndVolumeUnit { %pythoncode { @@ -14280,51 +8690,7 @@ class StepBasic_DesignContext : public StepBasic_ProductDefinitionContext { }; -%extend StepBasic_DesignContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_DesignContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_DesignContext::Handle_StepBasic_DesignContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_DesignContext; -class Handle_StepBasic_DesignContext : public Handle_StepBasic_ProductDefinitionContext { - - public: - // constructors - Handle_StepBasic_DesignContext(); - Handle_StepBasic_DesignContext(const Handle_StepBasic_DesignContext &aHandle); - Handle_StepBasic_DesignContext(const StepBasic_DesignContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_DesignContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_DesignContext { - StepBasic_DesignContext* _get_reference() { - return (StepBasic_DesignContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_DesignContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_DesignContext) %extend StepBasic_DesignContext { %pythoncode { @@ -14343,51 +8709,7 @@ class StepBasic_MechanicalContext : public StepBasic_ProductContext { }; -%extend StepBasic_MechanicalContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_MechanicalContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_MechanicalContext::Handle_StepBasic_MechanicalContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_MechanicalContext; -class Handle_StepBasic_MechanicalContext : public Handle_StepBasic_ProductContext { - - public: - // constructors - Handle_StepBasic_MechanicalContext(); - Handle_StepBasic_MechanicalContext(const Handle_StepBasic_MechanicalContext &aHandle); - Handle_StepBasic_MechanicalContext(const StepBasic_MechanicalContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_MechanicalContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_MechanicalContext { - StepBasic_MechanicalContext* _get_reference() { - return (StepBasic_MechanicalContext*)$self->Access(); - } -}; - -%extend Handle_StepBasic_MechanicalContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_MechanicalContext) %extend StepBasic_MechanicalContext { %pythoncode { @@ -14406,51 +8728,7 @@ class StepBasic_ProductType : public StepBasic_ProductRelatedProductCategory { }; -%extend StepBasic_ProductType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_ProductType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_ProductType::Handle_StepBasic_ProductType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_ProductType; -class Handle_StepBasic_ProductType : public Handle_StepBasic_ProductRelatedProductCategory { - - public: - // constructors - Handle_StepBasic_ProductType(); - Handle_StepBasic_ProductType(const Handle_StepBasic_ProductType &aHandle); - Handle_StepBasic_ProductType(const StepBasic_ProductType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_ProductType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_ProductType { - StepBasic_ProductType* _get_reference() { - return (StepBasic_ProductType*)$self->Access(); - } -}; - -%extend Handle_StepBasic_ProductType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_ProductType) %extend StepBasic_ProductType { %pythoncode { @@ -14489,51 +8767,7 @@ class StepBasic_SiUnitAndAreaUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndAreaUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndAreaUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndAreaUnit::Handle_StepBasic_SiUnitAndAreaUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndAreaUnit; -class Handle_StepBasic_SiUnitAndAreaUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndAreaUnit(); - Handle_StepBasic_SiUnitAndAreaUnit(const Handle_StepBasic_SiUnitAndAreaUnit &aHandle); - Handle_StepBasic_SiUnitAndAreaUnit(const StepBasic_SiUnitAndAreaUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndAreaUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndAreaUnit { - StepBasic_SiUnitAndAreaUnit* _get_reference() { - return (StepBasic_SiUnitAndAreaUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndAreaUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndAreaUnit) %extend StepBasic_SiUnitAndAreaUnit { %pythoncode { @@ -14578,51 +8812,7 @@ class StepBasic_SiUnitAndLengthUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndLengthUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndLengthUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndLengthUnit::Handle_StepBasic_SiUnitAndLengthUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndLengthUnit; -class Handle_StepBasic_SiUnitAndLengthUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndLengthUnit(); - Handle_StepBasic_SiUnitAndLengthUnit(const Handle_StepBasic_SiUnitAndLengthUnit &aHandle); - Handle_StepBasic_SiUnitAndLengthUnit(const StepBasic_SiUnitAndLengthUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndLengthUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndLengthUnit { - StepBasic_SiUnitAndLengthUnit* _get_reference() { - return (StepBasic_SiUnitAndLengthUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndLengthUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndLengthUnit) %extend StepBasic_SiUnitAndLengthUnit { %pythoncode { @@ -14667,51 +8857,7 @@ class StepBasic_SiUnitAndMassUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndMassUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndMassUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndMassUnit::Handle_StepBasic_SiUnitAndMassUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndMassUnit; -class Handle_StepBasic_SiUnitAndMassUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndMassUnit(); - Handle_StepBasic_SiUnitAndMassUnit(const Handle_StepBasic_SiUnitAndMassUnit &aHandle); - Handle_StepBasic_SiUnitAndMassUnit(const StepBasic_SiUnitAndMassUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndMassUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndMassUnit { - StepBasic_SiUnitAndMassUnit* _get_reference() { - return (StepBasic_SiUnitAndMassUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndMassUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndMassUnit) %extend StepBasic_SiUnitAndMassUnit { %pythoncode { @@ -14756,51 +8902,7 @@ class StepBasic_SiUnitAndPlaneAngleUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndPlaneAngleUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndPlaneAngleUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndPlaneAngleUnit::Handle_StepBasic_SiUnitAndPlaneAngleUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndPlaneAngleUnit; -class Handle_StepBasic_SiUnitAndPlaneAngleUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndPlaneAngleUnit(); - Handle_StepBasic_SiUnitAndPlaneAngleUnit(const Handle_StepBasic_SiUnitAndPlaneAngleUnit &aHandle); - Handle_StepBasic_SiUnitAndPlaneAngleUnit(const StepBasic_SiUnitAndPlaneAngleUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndPlaneAngleUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndPlaneAngleUnit { - StepBasic_SiUnitAndPlaneAngleUnit* _get_reference() { - return (StepBasic_SiUnitAndPlaneAngleUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndPlaneAngleUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndPlaneAngleUnit) %extend StepBasic_SiUnitAndPlaneAngleUnit { %pythoncode { @@ -14845,51 +8947,7 @@ class StepBasic_SiUnitAndRatioUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndRatioUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndRatioUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndRatioUnit::Handle_StepBasic_SiUnitAndRatioUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndRatioUnit; -class Handle_StepBasic_SiUnitAndRatioUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndRatioUnit(); - Handle_StepBasic_SiUnitAndRatioUnit(const Handle_StepBasic_SiUnitAndRatioUnit &aHandle); - Handle_StepBasic_SiUnitAndRatioUnit(const StepBasic_SiUnitAndRatioUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndRatioUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndRatioUnit { - StepBasic_SiUnitAndRatioUnit* _get_reference() { - return (StepBasic_SiUnitAndRatioUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndRatioUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndRatioUnit) %extend StepBasic_SiUnitAndRatioUnit { %pythoncode { @@ -14934,51 +8992,7 @@ class StepBasic_SiUnitAndSolidAngleUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndSolidAngleUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndSolidAngleUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndSolidAngleUnit::Handle_StepBasic_SiUnitAndSolidAngleUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndSolidAngleUnit; -class Handle_StepBasic_SiUnitAndSolidAngleUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndSolidAngleUnit(); - Handle_StepBasic_SiUnitAndSolidAngleUnit(const Handle_StepBasic_SiUnitAndSolidAngleUnit &aHandle); - Handle_StepBasic_SiUnitAndSolidAngleUnit(const StepBasic_SiUnitAndSolidAngleUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndSolidAngleUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndSolidAngleUnit { - StepBasic_SiUnitAndSolidAngleUnit* _get_reference() { - return (StepBasic_SiUnitAndSolidAngleUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndSolidAngleUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndSolidAngleUnit) %extend StepBasic_SiUnitAndSolidAngleUnit { %pythoncode { @@ -15023,51 +9037,7 @@ class StepBasic_SiUnitAndThermodynamicTemperatureUnit : public StepBasic_SiUnit }; -%extend StepBasic_SiUnitAndThermodynamicTemperatureUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit::Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit; -class Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit(); - Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit(const Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit &aHandle); - Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit(const StepBasic_SiUnitAndThermodynamicTemperatureUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit { - StepBasic_SiUnitAndThermodynamicTemperatureUnit* _get_reference() { - return (StepBasic_SiUnitAndThermodynamicTemperatureUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndThermodynamicTemperatureUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndThermodynamicTemperatureUnit) %extend StepBasic_SiUnitAndThermodynamicTemperatureUnit { %pythoncode { @@ -15112,51 +9082,7 @@ class StepBasic_SiUnitAndTimeUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndTimeUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndTimeUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndTimeUnit::Handle_StepBasic_SiUnitAndTimeUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndTimeUnit; -class Handle_StepBasic_SiUnitAndTimeUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndTimeUnit(); - Handle_StepBasic_SiUnitAndTimeUnit(const Handle_StepBasic_SiUnitAndTimeUnit &aHandle); - Handle_StepBasic_SiUnitAndTimeUnit(const StepBasic_SiUnitAndTimeUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndTimeUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndTimeUnit { - StepBasic_SiUnitAndTimeUnit* _get_reference() { - return (StepBasic_SiUnitAndTimeUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndTimeUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndTimeUnit) %extend StepBasic_SiUnitAndTimeUnit { %pythoncode { @@ -15195,51 +9121,7 @@ class StepBasic_SiUnitAndVolumeUnit : public StepBasic_SiUnit { }; -%extend StepBasic_SiUnitAndVolumeUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepBasic_SiUnitAndVolumeUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepBasic_SiUnitAndVolumeUnit::Handle_StepBasic_SiUnitAndVolumeUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepBasic_SiUnitAndVolumeUnit; -class Handle_StepBasic_SiUnitAndVolumeUnit : public Handle_StepBasic_SiUnit { - - public: - // constructors - Handle_StepBasic_SiUnitAndVolumeUnit(); - Handle_StepBasic_SiUnitAndVolumeUnit(const Handle_StepBasic_SiUnitAndVolumeUnit &aHandle); - Handle_StepBasic_SiUnitAndVolumeUnit(const StepBasic_SiUnitAndVolumeUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepBasic_SiUnitAndVolumeUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepBasic_SiUnitAndVolumeUnit { - StepBasic_SiUnitAndVolumeUnit* _get_reference() { - return (StepBasic_SiUnitAndVolumeUnit*)$self->Access(); - } -}; - -%extend Handle_StepBasic_SiUnitAndVolumeUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepBasic_SiUnitAndVolumeUnit) %extend StepBasic_SiUnitAndVolumeUnit { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepDimTol.i b/src/SWIG_files/wrapper/StepDimTol.i index 5decd69e5..12182587f 100644 --- a/src/SWIG_files/wrapper/StepDimTol.i +++ b/src/SWIG_files/wrapper/StepDimTol.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define STEPDIMTOLDOCSTRING -"No docstring provided." +" +-Purpose :Collects definition of STEP GD&T entities TR12J + +" %enddef %module (package="OCC.Core", docstring=STEPDIMTOLDOCSTRING) StepDimTol @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepDimTol_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +54,34 @@ enum StepDimTol_LimitCondition { /* end public enums declaration */ +%wrap_handle(StepDimTol_CommonDatum) +%wrap_handle(StepDimTol_Datum) +%wrap_handle(StepDimTol_DatumFeature) +%wrap_handle(StepDimTol_DatumReference) +%wrap_handle(StepDimTol_DatumTarget) +%wrap_handle(StepDimTol_GeometricTolerance) +%wrap_handle(StepDimTol_GeometricToleranceRelationship) +%wrap_handle(StepDimTol_HArray1OfDatumReference) +%wrap_handle(StepDimTol_CylindricityTolerance) +%wrap_handle(StepDimTol_FlatnessTolerance) +%wrap_handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol) +%wrap_handle(StepDimTol_GeometricToleranceWithDatumReference) +%wrap_handle(StepDimTol_LineProfileTolerance) +%wrap_handle(StepDimTol_ModifiedGeometricTolerance) +%wrap_handle(StepDimTol_PlacedDatumTargetFeature) +%wrap_handle(StepDimTol_PositionTolerance) +%wrap_handle(StepDimTol_RoundnessTolerance) +%wrap_handle(StepDimTol_StraightnessTolerance) +%wrap_handle(StepDimTol_SurfaceProfileTolerance) +%wrap_handle(StepDimTol_AngularityTolerance) +%wrap_handle(StepDimTol_CircularRunoutTolerance) +%wrap_handle(StepDimTol_CoaxialityTolerance) +%wrap_handle(StepDimTol_ConcentricityTolerance) +%wrap_handle(StepDimTol_ParallelismTolerance) +%wrap_handle(StepDimTol_PerpendicularityTolerance) +%wrap_handle(StepDimTol_SymmetryTolerance) +%wrap_handle(StepDimTol_TotalRunoutTolerance) + %nodefaultctor StepDimTol_Array1OfDatumReference; class StepDimTol_Array1OfDatumReference { public: @@ -202,51 +219,7 @@ class StepDimTol_CommonDatum : public StepRepr_CompositeShapeAspect { }; -%extend StepDimTol_CommonDatum { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_CommonDatum(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_CommonDatum::Handle_StepDimTol_CommonDatum %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_CommonDatum; -class Handle_StepDimTol_CommonDatum : public Handle_StepRepr_CompositeShapeAspect { - - public: - // constructors - Handle_StepDimTol_CommonDatum(); - Handle_StepDimTol_CommonDatum(const Handle_StepDimTol_CommonDatum &aHandle); - Handle_StepDimTol_CommonDatum(const StepDimTol_CommonDatum *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_CommonDatum DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_CommonDatum { - StepDimTol_CommonDatum* _get_reference() { - return (StepDimTol_CommonDatum*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_CommonDatum { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_CommonDatum) %extend StepDimTol_CommonDatum { %pythoncode { @@ -295,51 +268,7 @@ class StepDimTol_Datum : public StepRepr_ShapeAspect { }; -%extend StepDimTol_Datum { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_Datum(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_Datum::Handle_StepDimTol_Datum %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_Datum; -class Handle_StepDimTol_Datum : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepDimTol_Datum(); - Handle_StepDimTol_Datum(const Handle_StepDimTol_Datum &aHandle); - Handle_StepDimTol_Datum(const StepDimTol_Datum *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_Datum DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_Datum { - StepDimTol_Datum* _get_reference() { - return (StepDimTol_Datum*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_Datum { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_Datum) %extend StepDimTol_Datum { %pythoncode { @@ -358,51 +287,7 @@ class StepDimTol_DatumFeature : public StepRepr_ShapeAspect { }; -%extend StepDimTol_DatumFeature { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_DatumFeature(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_DatumFeature::Handle_StepDimTol_DatumFeature %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_DatumFeature; -class Handle_StepDimTol_DatumFeature : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepDimTol_DatumFeature(); - Handle_StepDimTol_DatumFeature(const Handle_StepDimTol_DatumFeature &aHandle); - Handle_StepDimTol_DatumFeature(const StepDimTol_DatumFeature *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_DatumFeature DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_DatumFeature { - StepDimTol_DatumFeature* _get_reference() { - return (StepDimTol_DatumFeature*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_DatumFeature { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_DatumFeature) %extend StepDimTol_DatumFeature { %pythoncode { @@ -459,51 +344,7 @@ class StepDimTol_DatumReference : public MMgt_TShared { }; -%extend StepDimTol_DatumReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_DatumReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_DatumReference::Handle_StepDimTol_DatumReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_DatumReference; -class Handle_StepDimTol_DatumReference : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepDimTol_DatumReference(); - Handle_StepDimTol_DatumReference(const Handle_StepDimTol_DatumReference &aHandle); - Handle_StepDimTol_DatumReference(const StepDimTol_DatumReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_DatumReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_DatumReference { - StepDimTol_DatumReference* _get_reference() { - return (StepDimTol_DatumReference*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_DatumReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_DatumReference) %extend StepDimTol_DatumReference { %pythoncode { @@ -552,51 +393,7 @@ class StepDimTol_DatumTarget : public StepRepr_ShapeAspect { }; -%extend StepDimTol_DatumTarget { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_DatumTarget(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_DatumTarget::Handle_StepDimTol_DatumTarget %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_DatumTarget; -class Handle_StepDimTol_DatumTarget : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepDimTol_DatumTarget(); - Handle_StepDimTol_DatumTarget(const Handle_StepDimTol_DatumTarget &aHandle); - Handle_StepDimTol_DatumTarget(const StepDimTol_DatumTarget *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_DatumTarget DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_DatumTarget { - StepDimTol_DatumTarget* _get_reference() { - return (StepDimTol_DatumTarget*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_DatumTarget { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_DatumTarget) %extend StepDimTol_DatumTarget { %pythoncode { @@ -685,51 +482,7 @@ class StepDimTol_GeometricTolerance : public MMgt_TShared { }; -%extend StepDimTol_GeometricTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_GeometricTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_GeometricTolerance::Handle_StepDimTol_GeometricTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_GeometricTolerance; -class Handle_StepDimTol_GeometricTolerance : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepDimTol_GeometricTolerance(); - Handle_StepDimTol_GeometricTolerance(const Handle_StepDimTol_GeometricTolerance &aHandle); - Handle_StepDimTol_GeometricTolerance(const StepDimTol_GeometricTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_GeometricTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_GeometricTolerance { - StepDimTol_GeometricTolerance* _get_reference() { - return (StepDimTol_GeometricTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_GeometricTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_GeometricTolerance) %extend StepDimTol_GeometricTolerance { %pythoncode { @@ -818,51 +571,7 @@ class StepDimTol_GeometricToleranceRelationship : public MMgt_TShared { }; -%extend StepDimTol_GeometricToleranceRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_GeometricToleranceRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_GeometricToleranceRelationship::Handle_StepDimTol_GeometricToleranceRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_GeometricToleranceRelationship; -class Handle_StepDimTol_GeometricToleranceRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepDimTol_GeometricToleranceRelationship(); - Handle_StepDimTol_GeometricToleranceRelationship(const Handle_StepDimTol_GeometricToleranceRelationship &aHandle); - Handle_StepDimTol_GeometricToleranceRelationship(const StepDimTol_GeometricToleranceRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_GeometricToleranceRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_GeometricToleranceRelationship { - StepDimTol_GeometricToleranceRelationship* _get_reference() { - return (StepDimTol_GeometricToleranceRelationship*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_GeometricToleranceRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_GeometricToleranceRelationship) %extend StepDimTol_GeometricToleranceRelationship { %pythoncode { @@ -939,51 +648,7 @@ class StepDimTol_HArray1OfDatumReference : public MMgt_TShared { }; -%extend StepDimTol_HArray1OfDatumReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_HArray1OfDatumReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_HArray1OfDatumReference::Handle_StepDimTol_HArray1OfDatumReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_HArray1OfDatumReference; -class Handle_StepDimTol_HArray1OfDatumReference : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepDimTol_HArray1OfDatumReference(); - Handle_StepDimTol_HArray1OfDatumReference(const Handle_StepDimTol_HArray1OfDatumReference &aHandle); - Handle_StepDimTol_HArray1OfDatumReference(const StepDimTol_HArray1OfDatumReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_HArray1OfDatumReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_HArray1OfDatumReference { - StepDimTol_HArray1OfDatumReference* _get_reference() { - return (StepDimTol_HArray1OfDatumReference*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_HArray1OfDatumReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_HArray1OfDatumReference) %extend StepDimTol_HArray1OfDatumReference { %pythoncode { @@ -1039,51 +704,7 @@ class StepDimTol_CylindricityTolerance : public StepDimTol_GeometricTolerance { }; -%extend StepDimTol_CylindricityTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_CylindricityTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_CylindricityTolerance::Handle_StepDimTol_CylindricityTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_CylindricityTolerance; -class Handle_StepDimTol_CylindricityTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_CylindricityTolerance(); - Handle_StepDimTol_CylindricityTolerance(const Handle_StepDimTol_CylindricityTolerance &aHandle); - Handle_StepDimTol_CylindricityTolerance(const StepDimTol_CylindricityTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_CylindricityTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_CylindricityTolerance { - StepDimTol_CylindricityTolerance* _get_reference() { - return (StepDimTol_CylindricityTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_CylindricityTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_CylindricityTolerance) %extend StepDimTol_CylindricityTolerance { %pythoncode { @@ -1102,51 +723,7 @@ class StepDimTol_FlatnessTolerance : public StepDimTol_GeometricTolerance { }; -%extend StepDimTol_FlatnessTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_FlatnessTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_FlatnessTolerance::Handle_StepDimTol_FlatnessTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_FlatnessTolerance; -class Handle_StepDimTol_FlatnessTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_FlatnessTolerance(); - Handle_StepDimTol_FlatnessTolerance(const Handle_StepDimTol_FlatnessTolerance &aHandle); - Handle_StepDimTol_FlatnessTolerance(const StepDimTol_FlatnessTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_FlatnessTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_FlatnessTolerance { - StepDimTol_FlatnessTolerance* _get_reference() { - return (StepDimTol_FlatnessTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_FlatnessTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_FlatnessTolerance) %extend StepDimTol_FlatnessTolerance { %pythoncode { @@ -1209,51 +786,7 @@ class StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol : public StepDimT }; -%extend StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol::Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol; -class Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol(); - Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol(const Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol &aHandle); - Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol(const StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol { - StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol* _get_reference() { - return (StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol) %extend StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol { %pythoncode { @@ -1302,51 +835,7 @@ class StepDimTol_GeometricToleranceWithDatumReference : public StepDimTol_Geomet }; -%extend StepDimTol_GeometricToleranceWithDatumReference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_GeometricToleranceWithDatumReference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_GeometricToleranceWithDatumReference::Handle_StepDimTol_GeometricToleranceWithDatumReference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_GeometricToleranceWithDatumReference; -class Handle_StepDimTol_GeometricToleranceWithDatumReference : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_GeometricToleranceWithDatumReference(); - Handle_StepDimTol_GeometricToleranceWithDatumReference(const Handle_StepDimTol_GeometricToleranceWithDatumReference &aHandle); - Handle_StepDimTol_GeometricToleranceWithDatumReference(const StepDimTol_GeometricToleranceWithDatumReference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_GeometricToleranceWithDatumReference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_GeometricToleranceWithDatumReference { - StepDimTol_GeometricToleranceWithDatumReference* _get_reference() { - return (StepDimTol_GeometricToleranceWithDatumReference*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_GeometricToleranceWithDatumReference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_GeometricToleranceWithDatumReference) %extend StepDimTol_GeometricToleranceWithDatumReference { %pythoncode { @@ -1365,51 +854,7 @@ class StepDimTol_LineProfileTolerance : public StepDimTol_GeometricTolerance { }; -%extend StepDimTol_LineProfileTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_LineProfileTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_LineProfileTolerance::Handle_StepDimTol_LineProfileTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_LineProfileTolerance; -class Handle_StepDimTol_LineProfileTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_LineProfileTolerance(); - Handle_StepDimTol_LineProfileTolerance(const Handle_StepDimTol_LineProfileTolerance &aHandle); - Handle_StepDimTol_LineProfileTolerance(const StepDimTol_LineProfileTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_LineProfileTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_LineProfileTolerance { - StepDimTol_LineProfileTolerance* _get_reference() { - return (StepDimTol_LineProfileTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_LineProfileTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_LineProfileTolerance) %extend StepDimTol_LineProfileTolerance { %pythoncode { @@ -1458,51 +903,7 @@ class StepDimTol_ModifiedGeometricTolerance : public StepDimTol_GeometricToleran }; -%extend StepDimTol_ModifiedGeometricTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_ModifiedGeometricTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_ModifiedGeometricTolerance::Handle_StepDimTol_ModifiedGeometricTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_ModifiedGeometricTolerance; -class Handle_StepDimTol_ModifiedGeometricTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_ModifiedGeometricTolerance(); - Handle_StepDimTol_ModifiedGeometricTolerance(const Handle_StepDimTol_ModifiedGeometricTolerance &aHandle); - Handle_StepDimTol_ModifiedGeometricTolerance(const StepDimTol_ModifiedGeometricTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_ModifiedGeometricTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_ModifiedGeometricTolerance { - StepDimTol_ModifiedGeometricTolerance* _get_reference() { - return (StepDimTol_ModifiedGeometricTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_ModifiedGeometricTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_ModifiedGeometricTolerance) %extend StepDimTol_ModifiedGeometricTolerance { %pythoncode { @@ -1521,51 +922,7 @@ class StepDimTol_PlacedDatumTargetFeature : public StepDimTol_DatumTarget { }; -%extend StepDimTol_PlacedDatumTargetFeature { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_PlacedDatumTargetFeature(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_PlacedDatumTargetFeature::Handle_StepDimTol_PlacedDatumTargetFeature %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_PlacedDatumTargetFeature; -class Handle_StepDimTol_PlacedDatumTargetFeature : public Handle_StepDimTol_DatumTarget { - - public: - // constructors - Handle_StepDimTol_PlacedDatumTargetFeature(); - Handle_StepDimTol_PlacedDatumTargetFeature(const Handle_StepDimTol_PlacedDatumTargetFeature &aHandle); - Handle_StepDimTol_PlacedDatumTargetFeature(const StepDimTol_PlacedDatumTargetFeature *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_PlacedDatumTargetFeature DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_PlacedDatumTargetFeature { - StepDimTol_PlacedDatumTargetFeature* _get_reference() { - return (StepDimTol_PlacedDatumTargetFeature*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_PlacedDatumTargetFeature { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_PlacedDatumTargetFeature) %extend StepDimTol_PlacedDatumTargetFeature { %pythoncode { @@ -1584,51 +941,7 @@ class StepDimTol_PositionTolerance : public StepDimTol_GeometricTolerance { }; -%extend StepDimTol_PositionTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_PositionTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_PositionTolerance::Handle_StepDimTol_PositionTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_PositionTolerance; -class Handle_StepDimTol_PositionTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_PositionTolerance(); - Handle_StepDimTol_PositionTolerance(const Handle_StepDimTol_PositionTolerance &aHandle); - Handle_StepDimTol_PositionTolerance(const StepDimTol_PositionTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_PositionTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_PositionTolerance { - StepDimTol_PositionTolerance* _get_reference() { - return (StepDimTol_PositionTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_PositionTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_PositionTolerance) %extend StepDimTol_PositionTolerance { %pythoncode { @@ -1647,51 +960,7 @@ class StepDimTol_RoundnessTolerance : public StepDimTol_GeometricTolerance { }; -%extend StepDimTol_RoundnessTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_RoundnessTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_RoundnessTolerance::Handle_StepDimTol_RoundnessTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_RoundnessTolerance; -class Handle_StepDimTol_RoundnessTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_RoundnessTolerance(); - Handle_StepDimTol_RoundnessTolerance(const Handle_StepDimTol_RoundnessTolerance &aHandle); - Handle_StepDimTol_RoundnessTolerance(const StepDimTol_RoundnessTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_RoundnessTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_RoundnessTolerance { - StepDimTol_RoundnessTolerance* _get_reference() { - return (StepDimTol_RoundnessTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_RoundnessTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_RoundnessTolerance) %extend StepDimTol_RoundnessTolerance { %pythoncode { @@ -1710,51 +979,7 @@ class StepDimTol_StraightnessTolerance : public StepDimTol_GeometricTolerance { }; -%extend StepDimTol_StraightnessTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_StraightnessTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_StraightnessTolerance::Handle_StepDimTol_StraightnessTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_StraightnessTolerance; -class Handle_StepDimTol_StraightnessTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_StraightnessTolerance(); - Handle_StepDimTol_StraightnessTolerance(const Handle_StepDimTol_StraightnessTolerance &aHandle); - Handle_StepDimTol_StraightnessTolerance(const StepDimTol_StraightnessTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_StraightnessTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_StraightnessTolerance { - StepDimTol_StraightnessTolerance* _get_reference() { - return (StepDimTol_StraightnessTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_StraightnessTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_StraightnessTolerance) %extend StepDimTol_StraightnessTolerance { %pythoncode { @@ -1773,51 +998,7 @@ class StepDimTol_SurfaceProfileTolerance : public StepDimTol_GeometricTolerance }; -%extend StepDimTol_SurfaceProfileTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_SurfaceProfileTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_SurfaceProfileTolerance::Handle_StepDimTol_SurfaceProfileTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_SurfaceProfileTolerance; -class Handle_StepDimTol_SurfaceProfileTolerance : public Handle_StepDimTol_GeometricTolerance { - - public: - // constructors - Handle_StepDimTol_SurfaceProfileTolerance(); - Handle_StepDimTol_SurfaceProfileTolerance(const Handle_StepDimTol_SurfaceProfileTolerance &aHandle); - Handle_StepDimTol_SurfaceProfileTolerance(const StepDimTol_SurfaceProfileTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_SurfaceProfileTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_SurfaceProfileTolerance { - StepDimTol_SurfaceProfileTolerance* _get_reference() { - return (StepDimTol_SurfaceProfileTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_SurfaceProfileTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_SurfaceProfileTolerance) %extend StepDimTol_SurfaceProfileTolerance { %pythoncode { @@ -1836,51 +1017,7 @@ class StepDimTol_AngularityTolerance : public StepDimTol_GeometricToleranceWithD }; -%extend StepDimTol_AngularityTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_AngularityTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_AngularityTolerance::Handle_StepDimTol_AngularityTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_AngularityTolerance; -class Handle_StepDimTol_AngularityTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_AngularityTolerance(); - Handle_StepDimTol_AngularityTolerance(const Handle_StepDimTol_AngularityTolerance &aHandle); - Handle_StepDimTol_AngularityTolerance(const StepDimTol_AngularityTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_AngularityTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_AngularityTolerance { - StepDimTol_AngularityTolerance* _get_reference() { - return (StepDimTol_AngularityTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_AngularityTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_AngularityTolerance) %extend StepDimTol_AngularityTolerance { %pythoncode { @@ -1899,51 +1036,7 @@ class StepDimTol_CircularRunoutTolerance : public StepDimTol_GeometricToleranceW }; -%extend StepDimTol_CircularRunoutTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_CircularRunoutTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_CircularRunoutTolerance::Handle_StepDimTol_CircularRunoutTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_CircularRunoutTolerance; -class Handle_StepDimTol_CircularRunoutTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_CircularRunoutTolerance(); - Handle_StepDimTol_CircularRunoutTolerance(const Handle_StepDimTol_CircularRunoutTolerance &aHandle); - Handle_StepDimTol_CircularRunoutTolerance(const StepDimTol_CircularRunoutTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_CircularRunoutTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_CircularRunoutTolerance { - StepDimTol_CircularRunoutTolerance* _get_reference() { - return (StepDimTol_CircularRunoutTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_CircularRunoutTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_CircularRunoutTolerance) %extend StepDimTol_CircularRunoutTolerance { %pythoncode { @@ -1962,51 +1055,7 @@ class StepDimTol_CoaxialityTolerance : public StepDimTol_GeometricToleranceWithD }; -%extend StepDimTol_CoaxialityTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_CoaxialityTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_CoaxialityTolerance::Handle_StepDimTol_CoaxialityTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_CoaxialityTolerance; -class Handle_StepDimTol_CoaxialityTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_CoaxialityTolerance(); - Handle_StepDimTol_CoaxialityTolerance(const Handle_StepDimTol_CoaxialityTolerance &aHandle); - Handle_StepDimTol_CoaxialityTolerance(const StepDimTol_CoaxialityTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_CoaxialityTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_CoaxialityTolerance { - StepDimTol_CoaxialityTolerance* _get_reference() { - return (StepDimTol_CoaxialityTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_CoaxialityTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_CoaxialityTolerance) %extend StepDimTol_CoaxialityTolerance { %pythoncode { @@ -2025,51 +1074,7 @@ class StepDimTol_ConcentricityTolerance : public StepDimTol_GeometricToleranceWi }; -%extend StepDimTol_ConcentricityTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_ConcentricityTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_ConcentricityTolerance::Handle_StepDimTol_ConcentricityTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_ConcentricityTolerance; -class Handle_StepDimTol_ConcentricityTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_ConcentricityTolerance(); - Handle_StepDimTol_ConcentricityTolerance(const Handle_StepDimTol_ConcentricityTolerance &aHandle); - Handle_StepDimTol_ConcentricityTolerance(const StepDimTol_ConcentricityTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_ConcentricityTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_ConcentricityTolerance { - StepDimTol_ConcentricityTolerance* _get_reference() { - return (StepDimTol_ConcentricityTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_ConcentricityTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_ConcentricityTolerance) %extend StepDimTol_ConcentricityTolerance { %pythoncode { @@ -2088,51 +1093,7 @@ class StepDimTol_ParallelismTolerance : public StepDimTol_GeometricToleranceWith }; -%extend StepDimTol_ParallelismTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_ParallelismTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_ParallelismTolerance::Handle_StepDimTol_ParallelismTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_ParallelismTolerance; -class Handle_StepDimTol_ParallelismTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_ParallelismTolerance(); - Handle_StepDimTol_ParallelismTolerance(const Handle_StepDimTol_ParallelismTolerance &aHandle); - Handle_StepDimTol_ParallelismTolerance(const StepDimTol_ParallelismTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_ParallelismTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_ParallelismTolerance { - StepDimTol_ParallelismTolerance* _get_reference() { - return (StepDimTol_ParallelismTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_ParallelismTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_ParallelismTolerance) %extend StepDimTol_ParallelismTolerance { %pythoncode { @@ -2151,51 +1112,7 @@ class StepDimTol_PerpendicularityTolerance : public StepDimTol_GeometricToleranc }; -%extend StepDimTol_PerpendicularityTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_PerpendicularityTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_PerpendicularityTolerance::Handle_StepDimTol_PerpendicularityTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_PerpendicularityTolerance; -class Handle_StepDimTol_PerpendicularityTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_PerpendicularityTolerance(); - Handle_StepDimTol_PerpendicularityTolerance(const Handle_StepDimTol_PerpendicularityTolerance &aHandle); - Handle_StepDimTol_PerpendicularityTolerance(const StepDimTol_PerpendicularityTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_PerpendicularityTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_PerpendicularityTolerance { - StepDimTol_PerpendicularityTolerance* _get_reference() { - return (StepDimTol_PerpendicularityTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_PerpendicularityTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_PerpendicularityTolerance) %extend StepDimTol_PerpendicularityTolerance { %pythoncode { @@ -2214,51 +1131,7 @@ class StepDimTol_SymmetryTolerance : public StepDimTol_GeometricToleranceWithDat }; -%extend StepDimTol_SymmetryTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_SymmetryTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_SymmetryTolerance::Handle_StepDimTol_SymmetryTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_SymmetryTolerance; -class Handle_StepDimTol_SymmetryTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_SymmetryTolerance(); - Handle_StepDimTol_SymmetryTolerance(const Handle_StepDimTol_SymmetryTolerance &aHandle); - Handle_StepDimTol_SymmetryTolerance(const StepDimTol_SymmetryTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_SymmetryTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_SymmetryTolerance { - StepDimTol_SymmetryTolerance* _get_reference() { - return (StepDimTol_SymmetryTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_SymmetryTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_SymmetryTolerance) %extend StepDimTol_SymmetryTolerance { %pythoncode { @@ -2277,51 +1150,7 @@ class StepDimTol_TotalRunoutTolerance : public StepDimTol_GeometricToleranceWith }; -%extend StepDimTol_TotalRunoutTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepDimTol_TotalRunoutTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepDimTol_TotalRunoutTolerance::Handle_StepDimTol_TotalRunoutTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepDimTol_TotalRunoutTolerance; -class Handle_StepDimTol_TotalRunoutTolerance : public Handle_StepDimTol_GeometricToleranceWithDatumReference { - - public: - // constructors - Handle_StepDimTol_TotalRunoutTolerance(); - Handle_StepDimTol_TotalRunoutTolerance(const Handle_StepDimTol_TotalRunoutTolerance &aHandle); - Handle_StepDimTol_TotalRunoutTolerance(const StepDimTol_TotalRunoutTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepDimTol_TotalRunoutTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepDimTol_TotalRunoutTolerance { - StepDimTol_TotalRunoutTolerance* _get_reference() { - return (StepDimTol_TotalRunoutTolerance*)$self->Access(); - } -}; - -%extend Handle_StepDimTol_TotalRunoutTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepDimTol_TotalRunoutTolerance) %extend StepDimTol_TotalRunoutTolerance { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepElement.i b/src/SWIG_files/wrapper/StepElement.i index 9dac4ca91..e629f9202 100644 --- a/src/SWIG_files/wrapper/StepElement.i +++ b/src/SWIG_files/wrapper/StepElement.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define STEPELEMENTDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=STEPELEMENTDOCSTRING) StepElement @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepElement_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -122,6 +108,47 @@ enum StepElement_EnumeratedCurveElementPurpose { /* end public enums declaration */ +%wrap_handle(StepElement_AnalysisItemWithinRepresentation) +%wrap_handle(StepElement_CurveElementEndReleasePacket) +%wrap_handle(StepElement_CurveElementFreedomMember) +%wrap_handle(StepElement_CurveElementPurposeMember) +%wrap_handle(StepElement_CurveElementSectionDefinition) +%wrap_handle(StepElement_ElementAspectMember) +%wrap_handle(StepElement_ElementDescriptor) +%wrap_handle(StepElement_ElementMaterial) +%wrap_handle(StepElement_HArray1OfCurveElementEndReleasePacket) +%wrap_handle(StepElement_HArray1OfCurveElementSectionDefinition) +%wrap_handle(StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) +%wrap_handle(StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) +%wrap_handle(StepElement_HArray1OfMeasureOrUnspecifiedValue) +%wrap_handle(StepElement_HArray1OfSurfaceSection) +%wrap_handle(StepElement_HArray1OfVolumeElementPurpose) +%wrap_handle(StepElement_HArray1OfVolumeElementPurposeMember) +%wrap_handle(StepElement_HArray2OfCurveElementPurposeMember) +%wrap_handle(StepElement_HArray2OfSurfaceElementPurpose) +%wrap_handle(StepElement_HArray2OfSurfaceElementPurposeMember) +%wrap_handle(StepElement_HSequenceOfCurveElementPurposeMember) +%wrap_handle(StepElement_HSequenceOfCurveElementSectionDefinition) +%wrap_handle(StepElement_HSequenceOfElementMaterial) +%wrap_handle(StepElement_HSequenceOfSurfaceElementPurposeMember) +%wrap_handle(StepElement_MeasureOrUnspecifiedValueMember) +%wrap_handle(StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember) +%wrap_handle(StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition) +%wrap_handle(StepElement_SequenceNodeOfSequenceOfElementMaterial) +%wrap_handle(StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember) +%wrap_handle(StepElement_SurfaceElementProperty) +%wrap_handle(StepElement_SurfaceElementPurposeMember) +%wrap_handle(StepElement_SurfaceSection) +%wrap_handle(StepElement_SurfaceSectionField) +%wrap_handle(StepElement_VolumeElementPurposeMember) +%wrap_handle(StepElement_Curve3dElementDescriptor) +%wrap_handle(StepElement_CurveElementSectionDerivedDefinitions) +%wrap_handle(StepElement_Surface3dElementDescriptor) +%wrap_handle(StepElement_SurfaceSectionFieldConstant) +%wrap_handle(StepElement_SurfaceSectionFieldVarying) +%wrap_handle(StepElement_UniformSurfaceSection) +%wrap_handle(StepElement_Volume3dElementDescriptor) + %nodefaultctor StepElement_AnalysisItemWithinRepresentation; class StepElement_AnalysisItemWithinRepresentation : public MMgt_TShared { public: @@ -204,51 +231,7 @@ class StepElement_AnalysisItemWithinRepresentation : public MMgt_TShared { }; -%extend StepElement_AnalysisItemWithinRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_AnalysisItemWithinRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_AnalysisItemWithinRepresentation::Handle_StepElement_AnalysisItemWithinRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_AnalysisItemWithinRepresentation; -class Handle_StepElement_AnalysisItemWithinRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_AnalysisItemWithinRepresentation(); - Handle_StepElement_AnalysisItemWithinRepresentation(const Handle_StepElement_AnalysisItemWithinRepresentation &aHandle); - Handle_StepElement_AnalysisItemWithinRepresentation(const StepElement_AnalysisItemWithinRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_AnalysisItemWithinRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_AnalysisItemWithinRepresentation { - StepElement_AnalysisItemWithinRepresentation* _get_reference() { - return (StepElement_AnalysisItemWithinRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepElement_AnalysisItemWithinRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_AnalysisItemWithinRepresentation) %extend StepElement_AnalysisItemWithinRepresentation { %pythoncode { @@ -1328,51 +1311,7 @@ class StepElement_CurveElementEndReleasePacket : public MMgt_TShared { }; -%extend StepElement_CurveElementEndReleasePacket { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_CurveElementEndReleasePacket(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_CurveElementEndReleasePacket::Handle_StepElement_CurveElementEndReleasePacket %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_CurveElementEndReleasePacket; -class Handle_StepElement_CurveElementEndReleasePacket : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_CurveElementEndReleasePacket(); - Handle_StepElement_CurveElementEndReleasePacket(const Handle_StepElement_CurveElementEndReleasePacket &aHandle); - Handle_StepElement_CurveElementEndReleasePacket(const StepElement_CurveElementEndReleasePacket *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_CurveElementEndReleasePacket DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_CurveElementEndReleasePacket { - StepElement_CurveElementEndReleasePacket* _get_reference() { - return (StepElement_CurveElementEndReleasePacket*)$self->Access(); - } -}; - -%extend Handle_StepElement_CurveElementEndReleasePacket { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_CurveElementEndReleasePacket) %extend StepElement_CurveElementEndReleasePacket { %pythoncode { @@ -1486,51 +1425,7 @@ class StepElement_CurveElementFreedomMember : public StepData_SelectNamed { }; -%extend StepElement_CurveElementFreedomMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_CurveElementFreedomMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_CurveElementFreedomMember::Handle_StepElement_CurveElementFreedomMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_CurveElementFreedomMember; -class Handle_StepElement_CurveElementFreedomMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepElement_CurveElementFreedomMember(); - Handle_StepElement_CurveElementFreedomMember(const Handle_StepElement_CurveElementFreedomMember &aHandle); - Handle_StepElement_CurveElementFreedomMember(const StepElement_CurveElementFreedomMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_CurveElementFreedomMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_CurveElementFreedomMember { - StepElement_CurveElementFreedomMember* _get_reference() { - return (StepElement_CurveElementFreedomMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_CurveElementFreedomMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_CurveElementFreedomMember) %extend StepElement_CurveElementFreedomMember { %pythoncode { @@ -1644,51 +1539,7 @@ class StepElement_CurveElementPurposeMember : public StepData_SelectNamed { }; -%extend StepElement_CurveElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_CurveElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_CurveElementPurposeMember::Handle_StepElement_CurveElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_CurveElementPurposeMember; -class Handle_StepElement_CurveElementPurposeMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepElement_CurveElementPurposeMember(); - Handle_StepElement_CurveElementPurposeMember(const Handle_StepElement_CurveElementPurposeMember &aHandle); - Handle_StepElement_CurveElementPurposeMember(const StepElement_CurveElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_CurveElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_CurveElementPurposeMember { - StepElement_CurveElementPurposeMember* _get_reference() { - return (StepElement_CurveElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_CurveElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_CurveElementPurposeMember) %extend StepElement_CurveElementPurposeMember { %pythoncode { @@ -1745,51 +1596,7 @@ class StepElement_CurveElementSectionDefinition : public MMgt_TShared { }; -%extend StepElement_CurveElementSectionDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_CurveElementSectionDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_CurveElementSectionDefinition::Handle_StepElement_CurveElementSectionDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_CurveElementSectionDefinition; -class Handle_StepElement_CurveElementSectionDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_CurveElementSectionDefinition(); - Handle_StepElement_CurveElementSectionDefinition(const Handle_StepElement_CurveElementSectionDefinition &aHandle); - Handle_StepElement_CurveElementSectionDefinition(const StepElement_CurveElementSectionDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_CurveElementSectionDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_CurveElementSectionDefinition { - StepElement_CurveElementSectionDefinition* _get_reference() { - return (StepElement_CurveElementSectionDefinition*)$self->Access(); - } -}; - -%extend Handle_StepElement_CurveElementSectionDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_CurveElementSectionDefinition) %extend StepElement_CurveElementSectionDefinition { %pythoncode { @@ -2015,51 +1822,7 @@ class StepElement_ElementAspectMember : public StepData_SelectNamed { }; -%extend StepElement_ElementAspectMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_ElementAspectMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_ElementAspectMember::Handle_StepElement_ElementAspectMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_ElementAspectMember; -class Handle_StepElement_ElementAspectMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepElement_ElementAspectMember(); - Handle_StepElement_ElementAspectMember(const Handle_StepElement_ElementAspectMember &aHandle); - Handle_StepElement_ElementAspectMember(const StepElement_ElementAspectMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_ElementAspectMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_ElementAspectMember { - StepElement_ElementAspectMember* _get_reference() { - return (StepElement_ElementAspectMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_ElementAspectMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_ElementAspectMember) %extend StepElement_ElementAspectMember { %pythoncode { @@ -2116,51 +1879,7 @@ class StepElement_ElementDescriptor : public MMgt_TShared { }; -%extend StepElement_ElementDescriptor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_ElementDescriptor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_ElementDescriptor::Handle_StepElement_ElementDescriptor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_ElementDescriptor; -class Handle_StepElement_ElementDescriptor : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_ElementDescriptor(); - Handle_StepElement_ElementDescriptor(const Handle_StepElement_ElementDescriptor &aHandle); - Handle_StepElement_ElementDescriptor(const StepElement_ElementDescriptor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_ElementDescriptor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_ElementDescriptor { - StepElement_ElementDescriptor* _get_reference() { - return (StepElement_ElementDescriptor*)$self->Access(); - } -}; - -%extend Handle_StepElement_ElementDescriptor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_ElementDescriptor) %extend StepElement_ElementDescriptor { %pythoncode { @@ -2233,51 +1952,7 @@ class StepElement_ElementMaterial : public MMgt_TShared { }; -%extend StepElement_ElementMaterial { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_ElementMaterial(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_ElementMaterial::Handle_StepElement_ElementMaterial %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_ElementMaterial; -class Handle_StepElement_ElementMaterial : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_ElementMaterial(); - Handle_StepElement_ElementMaterial(const Handle_StepElement_ElementMaterial &aHandle); - Handle_StepElement_ElementMaterial(const StepElement_ElementMaterial *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_ElementMaterial DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_ElementMaterial { - StepElement_ElementMaterial* _get_reference() { - return (StepElement_ElementMaterial*)$self->Access(); - } -}; - -%extend Handle_StepElement_ElementMaterial { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_ElementMaterial) %extend StepElement_ElementMaterial { %pythoncode { @@ -2354,51 +2029,7 @@ class StepElement_HArray1OfCurveElementEndReleasePacket : public MMgt_TShared { }; -%extend StepElement_HArray1OfCurveElementEndReleasePacket { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfCurveElementEndReleasePacket(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfCurveElementEndReleasePacket::Handle_StepElement_HArray1OfCurveElementEndReleasePacket %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfCurveElementEndReleasePacket; -class Handle_StepElement_HArray1OfCurveElementEndReleasePacket : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfCurveElementEndReleasePacket(); - Handle_StepElement_HArray1OfCurveElementEndReleasePacket(const Handle_StepElement_HArray1OfCurveElementEndReleasePacket &aHandle); - Handle_StepElement_HArray1OfCurveElementEndReleasePacket(const StepElement_HArray1OfCurveElementEndReleasePacket *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfCurveElementEndReleasePacket DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfCurveElementEndReleasePacket { - StepElement_HArray1OfCurveElementEndReleasePacket* _get_reference() { - return (StepElement_HArray1OfCurveElementEndReleasePacket*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfCurveElementEndReleasePacket { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfCurveElementEndReleasePacket) %extend StepElement_HArray1OfCurveElementEndReleasePacket { %pythoncode { @@ -2475,51 +2106,7 @@ class StepElement_HArray1OfCurveElementSectionDefinition : public MMgt_TShared { }; -%extend StepElement_HArray1OfCurveElementSectionDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfCurveElementSectionDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfCurveElementSectionDefinition::Handle_StepElement_HArray1OfCurveElementSectionDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfCurveElementSectionDefinition; -class Handle_StepElement_HArray1OfCurveElementSectionDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfCurveElementSectionDefinition(); - Handle_StepElement_HArray1OfCurveElementSectionDefinition(const Handle_StepElement_HArray1OfCurveElementSectionDefinition &aHandle); - Handle_StepElement_HArray1OfCurveElementSectionDefinition(const StepElement_HArray1OfCurveElementSectionDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfCurveElementSectionDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfCurveElementSectionDefinition { - StepElement_HArray1OfCurveElementSectionDefinition* _get_reference() { - return (StepElement_HArray1OfCurveElementSectionDefinition*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfCurveElementSectionDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfCurveElementSectionDefinition) %extend StepElement_HArray1OfCurveElementSectionDefinition { %pythoncode { @@ -2596,51 +2183,7 @@ class StepElement_HArray1OfHSequenceOfCurveElementPurposeMember : public MMgt_TS }; -%extend StepElement_HArray1OfHSequenceOfCurveElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember::Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember; -class Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember(); - Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember(const Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember &aHandle); - Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember(const StepElement_HArray1OfHSequenceOfCurveElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember { - StepElement_HArray1OfHSequenceOfCurveElementPurposeMember* _get_reference() { - return (StepElement_HArray1OfHSequenceOfCurveElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfHSequenceOfCurveElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) %extend StepElement_HArray1OfHSequenceOfCurveElementPurposeMember { %pythoncode { @@ -2717,51 +2260,7 @@ class StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember : public MMgt_ }; -%extend StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember::Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember; -class Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember(); - Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember(const Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember &aHandle); - Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember(const StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember { - StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember* _get_reference() { - return (StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) %extend StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember { %pythoncode { @@ -2838,51 +2337,7 @@ class StepElement_HArray1OfMeasureOrUnspecifiedValue : public MMgt_TShared { }; -%extend StepElement_HArray1OfMeasureOrUnspecifiedValue { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue::Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue; -class Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue(); - Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue(const Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue &aHandle); - Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue(const StepElement_HArray1OfMeasureOrUnspecifiedValue *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue { - StepElement_HArray1OfMeasureOrUnspecifiedValue* _get_reference() { - return (StepElement_HArray1OfMeasureOrUnspecifiedValue*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfMeasureOrUnspecifiedValue { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfMeasureOrUnspecifiedValue) %extend StepElement_HArray1OfMeasureOrUnspecifiedValue { %pythoncode { @@ -2959,51 +2414,7 @@ class StepElement_HArray1OfSurfaceSection : public MMgt_TShared { }; -%extend StepElement_HArray1OfSurfaceSection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfSurfaceSection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfSurfaceSection::Handle_StepElement_HArray1OfSurfaceSection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfSurfaceSection; -class Handle_StepElement_HArray1OfSurfaceSection : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfSurfaceSection(); - Handle_StepElement_HArray1OfSurfaceSection(const Handle_StepElement_HArray1OfSurfaceSection &aHandle); - Handle_StepElement_HArray1OfSurfaceSection(const StepElement_HArray1OfSurfaceSection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfSurfaceSection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfSurfaceSection { - StepElement_HArray1OfSurfaceSection* _get_reference() { - return (StepElement_HArray1OfSurfaceSection*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfSurfaceSection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfSurfaceSection) %extend StepElement_HArray1OfSurfaceSection { %pythoncode { @@ -3080,51 +2491,7 @@ class StepElement_HArray1OfVolumeElementPurpose : public MMgt_TShared { }; -%extend StepElement_HArray1OfVolumeElementPurpose { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfVolumeElementPurpose(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfVolumeElementPurpose::Handle_StepElement_HArray1OfVolumeElementPurpose %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfVolumeElementPurpose; -class Handle_StepElement_HArray1OfVolumeElementPurpose : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfVolumeElementPurpose(); - Handle_StepElement_HArray1OfVolumeElementPurpose(const Handle_StepElement_HArray1OfVolumeElementPurpose &aHandle); - Handle_StepElement_HArray1OfVolumeElementPurpose(const StepElement_HArray1OfVolumeElementPurpose *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfVolumeElementPurpose DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfVolumeElementPurpose { - StepElement_HArray1OfVolumeElementPurpose* _get_reference() { - return (StepElement_HArray1OfVolumeElementPurpose*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfVolumeElementPurpose { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfVolumeElementPurpose) %extend StepElement_HArray1OfVolumeElementPurpose { %pythoncode { @@ -3201,51 +2568,7 @@ class StepElement_HArray1OfVolumeElementPurposeMember : public MMgt_TShared { }; -%extend StepElement_HArray1OfVolumeElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray1OfVolumeElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray1OfVolumeElementPurposeMember::Handle_StepElement_HArray1OfVolumeElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray1OfVolumeElementPurposeMember; -class Handle_StepElement_HArray1OfVolumeElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray1OfVolumeElementPurposeMember(); - Handle_StepElement_HArray1OfVolumeElementPurposeMember(const Handle_StepElement_HArray1OfVolumeElementPurposeMember &aHandle); - Handle_StepElement_HArray1OfVolumeElementPurposeMember(const StepElement_HArray1OfVolumeElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray1OfVolumeElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray1OfVolumeElementPurposeMember { - StepElement_HArray1OfVolumeElementPurposeMember* _get_reference() { - return (StepElement_HArray1OfVolumeElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray1OfVolumeElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray1OfVolumeElementPurposeMember) %extend StepElement_HArray1OfVolumeElementPurposeMember { %pythoncode { @@ -3348,51 +2671,7 @@ class StepElement_HArray2OfCurveElementPurposeMember : public MMgt_TShared { }; -%extend StepElement_HArray2OfCurveElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray2OfCurveElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray2OfCurveElementPurposeMember::Handle_StepElement_HArray2OfCurveElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray2OfCurveElementPurposeMember; -class Handle_StepElement_HArray2OfCurveElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray2OfCurveElementPurposeMember(); - Handle_StepElement_HArray2OfCurveElementPurposeMember(const Handle_StepElement_HArray2OfCurveElementPurposeMember &aHandle); - Handle_StepElement_HArray2OfCurveElementPurposeMember(const StepElement_HArray2OfCurveElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray2OfCurveElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray2OfCurveElementPurposeMember { - StepElement_HArray2OfCurveElementPurposeMember* _get_reference() { - return (StepElement_HArray2OfCurveElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray2OfCurveElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray2OfCurveElementPurposeMember) %extend StepElement_HArray2OfCurveElementPurposeMember { %pythoncode { @@ -3495,51 +2774,7 @@ class StepElement_HArray2OfSurfaceElementPurpose : public MMgt_TShared { }; -%extend StepElement_HArray2OfSurfaceElementPurpose { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray2OfSurfaceElementPurpose(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray2OfSurfaceElementPurpose::Handle_StepElement_HArray2OfSurfaceElementPurpose %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray2OfSurfaceElementPurpose; -class Handle_StepElement_HArray2OfSurfaceElementPurpose : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray2OfSurfaceElementPurpose(); - Handle_StepElement_HArray2OfSurfaceElementPurpose(const Handle_StepElement_HArray2OfSurfaceElementPurpose &aHandle); - Handle_StepElement_HArray2OfSurfaceElementPurpose(const StepElement_HArray2OfSurfaceElementPurpose *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray2OfSurfaceElementPurpose DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray2OfSurfaceElementPurpose { - StepElement_HArray2OfSurfaceElementPurpose* _get_reference() { - return (StepElement_HArray2OfSurfaceElementPurpose*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray2OfSurfaceElementPurpose { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray2OfSurfaceElementPurpose) %extend StepElement_HArray2OfSurfaceElementPurpose { %pythoncode { @@ -3642,51 +2877,7 @@ class StepElement_HArray2OfSurfaceElementPurposeMember : public MMgt_TShared { }; -%extend StepElement_HArray2OfSurfaceElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HArray2OfSurfaceElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HArray2OfSurfaceElementPurposeMember::Handle_StepElement_HArray2OfSurfaceElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HArray2OfSurfaceElementPurposeMember; -class Handle_StepElement_HArray2OfSurfaceElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HArray2OfSurfaceElementPurposeMember(); - Handle_StepElement_HArray2OfSurfaceElementPurposeMember(const Handle_StepElement_HArray2OfSurfaceElementPurposeMember &aHandle); - Handle_StepElement_HArray2OfSurfaceElementPurposeMember(const StepElement_HArray2OfSurfaceElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HArray2OfSurfaceElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HArray2OfSurfaceElementPurposeMember { - StepElement_HArray2OfSurfaceElementPurposeMember* _get_reference() { - return (StepElement_HArray2OfSurfaceElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HArray2OfSurfaceElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HArray2OfSurfaceElementPurposeMember) %extend StepElement_HArray2OfSurfaceElementPurposeMember { %pythoncode { @@ -3831,55 +3022,11 @@ class StepElement_HSequenceOfCurveElementPurposeMember : public MMgt_TShared { }; +%make_alias(StepElement_HSequenceOfCurveElementPurposeMember) + %extend StepElement_HSequenceOfCurveElementPurposeMember { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HSequenceOfCurveElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HSequenceOfCurveElementPurposeMember::Handle_StepElement_HSequenceOfCurveElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HSequenceOfCurveElementPurposeMember; -class Handle_StepElement_HSequenceOfCurveElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HSequenceOfCurveElementPurposeMember(); - Handle_StepElement_HSequenceOfCurveElementPurposeMember(const Handle_StepElement_HSequenceOfCurveElementPurposeMember &aHandle); - Handle_StepElement_HSequenceOfCurveElementPurposeMember(const StepElement_HSequenceOfCurveElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HSequenceOfCurveElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HSequenceOfCurveElementPurposeMember { - StepElement_HSequenceOfCurveElementPurposeMember* _get_reference() { - return (StepElement_HSequenceOfCurveElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HSequenceOfCurveElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepElement_HSequenceOfCurveElementPurposeMember { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepElement_HSequenceOfCurveElementSectionDefinition; @@ -4020,51 +3167,7 @@ class StepElement_HSequenceOfCurveElementSectionDefinition : public MMgt_TShared }; -%extend StepElement_HSequenceOfCurveElementSectionDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HSequenceOfCurveElementSectionDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HSequenceOfCurveElementSectionDefinition::Handle_StepElement_HSequenceOfCurveElementSectionDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HSequenceOfCurveElementSectionDefinition; -class Handle_StepElement_HSequenceOfCurveElementSectionDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HSequenceOfCurveElementSectionDefinition(); - Handle_StepElement_HSequenceOfCurveElementSectionDefinition(const Handle_StepElement_HSequenceOfCurveElementSectionDefinition &aHandle); - Handle_StepElement_HSequenceOfCurveElementSectionDefinition(const StepElement_HSequenceOfCurveElementSectionDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HSequenceOfCurveElementSectionDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HSequenceOfCurveElementSectionDefinition { - StepElement_HSequenceOfCurveElementSectionDefinition* _get_reference() { - return (StepElement_HSequenceOfCurveElementSectionDefinition*)$self->Access(); - } -}; - -%extend Handle_StepElement_HSequenceOfCurveElementSectionDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HSequenceOfCurveElementSectionDefinition) %extend StepElement_HSequenceOfCurveElementSectionDefinition { %pythoncode { @@ -4209,51 +3312,7 @@ class StepElement_HSequenceOfElementMaterial : public MMgt_TShared { }; -%extend StepElement_HSequenceOfElementMaterial { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HSequenceOfElementMaterial(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HSequenceOfElementMaterial::Handle_StepElement_HSequenceOfElementMaterial %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HSequenceOfElementMaterial; -class Handle_StepElement_HSequenceOfElementMaterial : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HSequenceOfElementMaterial(); - Handle_StepElement_HSequenceOfElementMaterial(const Handle_StepElement_HSequenceOfElementMaterial &aHandle); - Handle_StepElement_HSequenceOfElementMaterial(const StepElement_HSequenceOfElementMaterial *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HSequenceOfElementMaterial DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HSequenceOfElementMaterial { - StepElement_HSequenceOfElementMaterial* _get_reference() { - return (StepElement_HSequenceOfElementMaterial*)$self->Access(); - } -}; - -%extend Handle_StepElement_HSequenceOfElementMaterial { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HSequenceOfElementMaterial) %extend StepElement_HSequenceOfElementMaterial { %pythoncode { @@ -4398,51 +3457,7 @@ class StepElement_HSequenceOfSurfaceElementPurposeMember : public MMgt_TShared { }; -%extend StepElement_HSequenceOfSurfaceElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_HSequenceOfSurfaceElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_HSequenceOfSurfaceElementPurposeMember::Handle_StepElement_HSequenceOfSurfaceElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_HSequenceOfSurfaceElementPurposeMember; -class Handle_StepElement_HSequenceOfSurfaceElementPurposeMember : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_HSequenceOfSurfaceElementPurposeMember(); - Handle_StepElement_HSequenceOfSurfaceElementPurposeMember(const Handle_StepElement_HSequenceOfSurfaceElementPurposeMember &aHandle); - Handle_StepElement_HSequenceOfSurfaceElementPurposeMember(const StepElement_HSequenceOfSurfaceElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_HSequenceOfSurfaceElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_HSequenceOfSurfaceElementPurposeMember { - StepElement_HSequenceOfSurfaceElementPurposeMember* _get_reference() { - return (StepElement_HSequenceOfSurfaceElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_HSequenceOfSurfaceElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_HSequenceOfSurfaceElementPurposeMember) %extend StepElement_HSequenceOfSurfaceElementPurposeMember { %pythoncode { @@ -4556,51 +3571,7 @@ class StepElement_MeasureOrUnspecifiedValueMember : public StepData_SelectNamed }; -%extend StepElement_MeasureOrUnspecifiedValueMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_MeasureOrUnspecifiedValueMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_MeasureOrUnspecifiedValueMember::Handle_StepElement_MeasureOrUnspecifiedValueMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_MeasureOrUnspecifiedValueMember; -class Handle_StepElement_MeasureOrUnspecifiedValueMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepElement_MeasureOrUnspecifiedValueMember(); - Handle_StepElement_MeasureOrUnspecifiedValueMember(const Handle_StepElement_MeasureOrUnspecifiedValueMember &aHandle); - Handle_StepElement_MeasureOrUnspecifiedValueMember(const StepElement_MeasureOrUnspecifiedValueMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_MeasureOrUnspecifiedValueMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_MeasureOrUnspecifiedValueMember { - StepElement_MeasureOrUnspecifiedValueMember* _get_reference() { - return (StepElement_MeasureOrUnspecifiedValueMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_MeasureOrUnspecifiedValueMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_MeasureOrUnspecifiedValueMember) %extend StepElement_MeasureOrUnspecifiedValueMember { %pythoncode { @@ -4627,51 +3598,7 @@ class StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember : public TCo }; -%extend StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember::Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember; -class Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember(); - Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember(const Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember &aHandle); - Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember(const StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember { - StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember* _get_reference() { - return (StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember) %extend StepElement_SequenceNodeOfSequenceOfCurveElementPurposeMember { %pythoncode { @@ -4698,51 +3625,7 @@ class StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition : public }; -%extend StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition::Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition; -class Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition(); - Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition(const Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition &aHandle); - Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition(const StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition { - StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition* _get_reference() { - return (StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition*)$self->Access(); - } -}; - -%extend Handle_StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition) %extend StepElement_SequenceNodeOfSequenceOfCurveElementSectionDefinition { %pythoncode { @@ -4769,51 +3652,7 @@ class StepElement_SequenceNodeOfSequenceOfElementMaterial : public TCollection_S }; -%extend StepElement_SequenceNodeOfSequenceOfElementMaterial { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial::Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial; -class Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial(); - Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial(const Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial &aHandle); - Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial(const StepElement_SequenceNodeOfSequenceOfElementMaterial *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial { - StepElement_SequenceNodeOfSequenceOfElementMaterial* _get_reference() { - return (StepElement_SequenceNodeOfSequenceOfElementMaterial*)$self->Access(); - } -}; - -%extend Handle_StepElement_SequenceNodeOfSequenceOfElementMaterial { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SequenceNodeOfSequenceOfElementMaterial) %extend StepElement_SequenceNodeOfSequenceOfElementMaterial { %pythoncode { @@ -4840,51 +3679,7 @@ class StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember : public T }; -%extend StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember::Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember; -class Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember(); - Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember(const Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember &aHandle); - Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember(const StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember { - StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember* _get_reference() { - return (StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember) %extend StepElement_SequenceNodeOfSequenceOfSurfaceElementPurposeMember { %pythoncode { @@ -5529,51 +4324,7 @@ class StepElement_SurfaceElementProperty : public MMgt_TShared { }; -%extend StepElement_SurfaceElementProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SurfaceElementProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SurfaceElementProperty::Handle_StepElement_SurfaceElementProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SurfaceElementProperty; -class Handle_StepElement_SurfaceElementProperty : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_SurfaceElementProperty(); - Handle_StepElement_SurfaceElementProperty(const Handle_StepElement_SurfaceElementProperty &aHandle); - Handle_StepElement_SurfaceElementProperty(const StepElement_SurfaceElementProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SurfaceElementProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SurfaceElementProperty { - StepElement_SurfaceElementProperty* _get_reference() { - return (StepElement_SurfaceElementProperty*)$self->Access(); - } -}; - -%extend Handle_StepElement_SurfaceElementProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SurfaceElementProperty) %extend StepElement_SurfaceElementProperty { %pythoncode { @@ -5687,51 +4438,7 @@ class StepElement_SurfaceElementPurposeMember : public StepData_SelectNamed { }; -%extend StepElement_SurfaceElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SurfaceElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SurfaceElementPurposeMember::Handle_StepElement_SurfaceElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SurfaceElementPurposeMember; -class Handle_StepElement_SurfaceElementPurposeMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepElement_SurfaceElementPurposeMember(); - Handle_StepElement_SurfaceElementPurposeMember(const Handle_StepElement_SurfaceElementPurposeMember &aHandle); - Handle_StepElement_SurfaceElementPurposeMember(const StepElement_SurfaceElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SurfaceElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SurfaceElementPurposeMember { - StepElement_SurfaceElementPurposeMember* _get_reference() { - return (StepElement_SurfaceElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_SurfaceElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SurfaceElementPurposeMember) %extend StepElement_SurfaceElementPurposeMember { %pythoncode { @@ -5804,51 +4511,7 @@ class StepElement_SurfaceSection : public MMgt_TShared { }; -%extend StepElement_SurfaceSection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SurfaceSection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SurfaceSection::Handle_StepElement_SurfaceSection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SurfaceSection; -class Handle_StepElement_SurfaceSection : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_SurfaceSection(); - Handle_StepElement_SurfaceSection(const Handle_StepElement_SurfaceSection &aHandle); - Handle_StepElement_SurfaceSection(const StepElement_SurfaceSection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SurfaceSection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SurfaceSection { - StepElement_SurfaceSection* _get_reference() { - return (StepElement_SurfaceSection*)$self->Access(); - } -}; - -%extend Handle_StepElement_SurfaceSection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SurfaceSection) %extend StepElement_SurfaceSection { %pythoncode { @@ -5867,51 +4530,7 @@ class StepElement_SurfaceSectionField : public MMgt_TShared { }; -%extend StepElement_SurfaceSectionField { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SurfaceSectionField(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SurfaceSectionField::Handle_StepElement_SurfaceSectionField %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SurfaceSectionField; -class Handle_StepElement_SurfaceSectionField : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepElement_SurfaceSectionField(); - Handle_StepElement_SurfaceSectionField(const Handle_StepElement_SurfaceSectionField &aHandle); - Handle_StepElement_SurfaceSectionField(const StepElement_SurfaceSectionField *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SurfaceSectionField DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SurfaceSectionField { - StepElement_SurfaceSectionField* _get_reference() { - return (StepElement_SurfaceSectionField*)$self->Access(); - } -}; - -%extend Handle_StepElement_SurfaceSectionField { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SurfaceSectionField) %extend StepElement_SurfaceSectionField { %pythoncode { @@ -6025,51 +4644,7 @@ class StepElement_VolumeElementPurposeMember : public StepData_SelectNamed { }; -%extend StepElement_VolumeElementPurposeMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_VolumeElementPurposeMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_VolumeElementPurposeMember::Handle_StepElement_VolumeElementPurposeMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_VolumeElementPurposeMember; -class Handle_StepElement_VolumeElementPurposeMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepElement_VolumeElementPurposeMember(); - Handle_StepElement_VolumeElementPurposeMember(const Handle_StepElement_VolumeElementPurposeMember &aHandle); - Handle_StepElement_VolumeElementPurposeMember(const StepElement_VolumeElementPurposeMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_VolumeElementPurposeMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_VolumeElementPurposeMember { - StepElement_VolumeElementPurposeMember* _get_reference() { - return (StepElement_VolumeElementPurposeMember*)$self->Access(); - } -}; - -%extend Handle_StepElement_VolumeElementPurposeMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_VolumeElementPurposeMember) %extend StepElement_VolumeElementPurposeMember { %pythoncode { @@ -6114,51 +4689,7 @@ class StepElement_Curve3dElementDescriptor : public StepElement_ElementDescripto }; -%extend StepElement_Curve3dElementDescriptor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_Curve3dElementDescriptor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_Curve3dElementDescriptor::Handle_StepElement_Curve3dElementDescriptor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_Curve3dElementDescriptor; -class Handle_StepElement_Curve3dElementDescriptor : public Handle_StepElement_ElementDescriptor { - - public: - // constructors - Handle_StepElement_Curve3dElementDescriptor(); - Handle_StepElement_Curve3dElementDescriptor(const Handle_StepElement_Curve3dElementDescriptor &aHandle); - Handle_StepElement_Curve3dElementDescriptor(const StepElement_Curve3dElementDescriptor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_Curve3dElementDescriptor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_Curve3dElementDescriptor { - StepElement_Curve3dElementDescriptor* _get_reference() { - return (StepElement_Curve3dElementDescriptor*)$self->Access(); - } -}; - -%extend Handle_StepElement_Curve3dElementDescriptor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_Curve3dElementDescriptor) %extend StepElement_Curve3dElementDescriptor { %pythoncode { @@ -6347,51 +4878,7 @@ class StepElement_CurveElementSectionDerivedDefinitions : public StepElement_Cur }; -%extend StepElement_CurveElementSectionDerivedDefinitions { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_CurveElementSectionDerivedDefinitions(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_CurveElementSectionDerivedDefinitions::Handle_StepElement_CurveElementSectionDerivedDefinitions %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_CurveElementSectionDerivedDefinitions; -class Handle_StepElement_CurveElementSectionDerivedDefinitions : public Handle_StepElement_CurveElementSectionDefinition { - - public: - // constructors - Handle_StepElement_CurveElementSectionDerivedDefinitions(); - Handle_StepElement_CurveElementSectionDerivedDefinitions(const Handle_StepElement_CurveElementSectionDerivedDefinitions &aHandle); - Handle_StepElement_CurveElementSectionDerivedDefinitions(const StepElement_CurveElementSectionDerivedDefinitions *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_CurveElementSectionDerivedDefinitions DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_CurveElementSectionDerivedDefinitions { - StepElement_CurveElementSectionDerivedDefinitions* _get_reference() { - return (StepElement_CurveElementSectionDerivedDefinitions*)$self->Access(); - } -}; - -%extend Handle_StepElement_CurveElementSectionDerivedDefinitions { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_CurveElementSectionDerivedDefinitions) %extend StepElement_CurveElementSectionDerivedDefinitions { %pythoncode { @@ -6452,51 +4939,7 @@ class StepElement_Surface3dElementDescriptor : public StepElement_ElementDescrip }; -%extend StepElement_Surface3dElementDescriptor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_Surface3dElementDescriptor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_Surface3dElementDescriptor::Handle_StepElement_Surface3dElementDescriptor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_Surface3dElementDescriptor; -class Handle_StepElement_Surface3dElementDescriptor : public Handle_StepElement_ElementDescriptor { - - public: - // constructors - Handle_StepElement_Surface3dElementDescriptor(); - Handle_StepElement_Surface3dElementDescriptor(const Handle_StepElement_Surface3dElementDescriptor &aHandle); - Handle_StepElement_Surface3dElementDescriptor(const StepElement_Surface3dElementDescriptor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_Surface3dElementDescriptor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_Surface3dElementDescriptor { - StepElement_Surface3dElementDescriptor* _get_reference() { - return (StepElement_Surface3dElementDescriptor*)$self->Access(); - } -}; - -%extend Handle_StepElement_Surface3dElementDescriptor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_Surface3dElementDescriptor) %extend StepElement_Surface3dElementDescriptor { %pythoncode { @@ -6537,51 +4980,7 @@ class StepElement_SurfaceSectionFieldConstant : public StepElement_SurfaceSectio }; -%extend StepElement_SurfaceSectionFieldConstant { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SurfaceSectionFieldConstant(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SurfaceSectionFieldConstant::Handle_StepElement_SurfaceSectionFieldConstant %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SurfaceSectionFieldConstant; -class Handle_StepElement_SurfaceSectionFieldConstant : public Handle_StepElement_SurfaceSectionField { - - public: - // constructors - Handle_StepElement_SurfaceSectionFieldConstant(); - Handle_StepElement_SurfaceSectionFieldConstant(const Handle_StepElement_SurfaceSectionFieldConstant &aHandle); - Handle_StepElement_SurfaceSectionFieldConstant(const StepElement_SurfaceSectionFieldConstant *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SurfaceSectionFieldConstant DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SurfaceSectionFieldConstant { - StepElement_SurfaceSectionFieldConstant* _get_reference() { - return (StepElement_SurfaceSectionFieldConstant*)$self->Access(); - } -}; - -%extend Handle_StepElement_SurfaceSectionFieldConstant { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SurfaceSectionFieldConstant) %extend StepElement_SurfaceSectionFieldConstant { %pythoncode { @@ -6638,51 +5037,7 @@ class StepElement_SurfaceSectionFieldVarying : public StepElement_SurfaceSection }; -%extend StepElement_SurfaceSectionFieldVarying { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_SurfaceSectionFieldVarying(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_SurfaceSectionFieldVarying::Handle_StepElement_SurfaceSectionFieldVarying %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_SurfaceSectionFieldVarying; -class Handle_StepElement_SurfaceSectionFieldVarying : public Handle_StepElement_SurfaceSectionField { - - public: - // constructors - Handle_StepElement_SurfaceSectionFieldVarying(); - Handle_StepElement_SurfaceSectionFieldVarying(const Handle_StepElement_SurfaceSectionFieldVarying &aHandle); - Handle_StepElement_SurfaceSectionFieldVarying(const StepElement_SurfaceSectionFieldVarying *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_SurfaceSectionFieldVarying DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_SurfaceSectionFieldVarying { - StepElement_SurfaceSectionFieldVarying* _get_reference() { - return (StepElement_SurfaceSectionFieldVarying*)$self->Access(); - } -}; - -%extend Handle_StepElement_SurfaceSectionFieldVarying { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_SurfaceSectionFieldVarying) %extend StepElement_SurfaceSectionFieldVarying { %pythoncode { @@ -6761,51 +5116,7 @@ class StepElement_UniformSurfaceSection : public StepElement_SurfaceSection { }; -%extend StepElement_UniformSurfaceSection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_UniformSurfaceSection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_UniformSurfaceSection::Handle_StepElement_UniformSurfaceSection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_UniformSurfaceSection; -class Handle_StepElement_UniformSurfaceSection : public Handle_StepElement_SurfaceSection { - - public: - // constructors - Handle_StepElement_UniformSurfaceSection(); - Handle_StepElement_UniformSurfaceSection(const Handle_StepElement_UniformSurfaceSection &aHandle); - Handle_StepElement_UniformSurfaceSection(const StepElement_UniformSurfaceSection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_UniformSurfaceSection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_UniformSurfaceSection { - StepElement_UniformSurfaceSection* _get_reference() { - return (StepElement_UniformSurfaceSection*)$self->Access(); - } -}; - -%extend Handle_StepElement_UniformSurfaceSection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_UniformSurfaceSection) %extend StepElement_UniformSurfaceSection { %pythoncode { @@ -6866,51 +5177,7 @@ class StepElement_Volume3dElementDescriptor : public StepElement_ElementDescript }; -%extend StepElement_Volume3dElementDescriptor { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepElement_Volume3dElementDescriptor(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepElement_Volume3dElementDescriptor::Handle_StepElement_Volume3dElementDescriptor %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepElement_Volume3dElementDescriptor; -class Handle_StepElement_Volume3dElementDescriptor : public Handle_StepElement_ElementDescriptor { - - public: - // constructors - Handle_StepElement_Volume3dElementDescriptor(); - Handle_StepElement_Volume3dElementDescriptor(const Handle_StepElement_Volume3dElementDescriptor &aHandle); - Handle_StepElement_Volume3dElementDescriptor(const StepElement_Volume3dElementDescriptor *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepElement_Volume3dElementDescriptor DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepElement_Volume3dElementDescriptor { - StepElement_Volume3dElementDescriptor* _get_reference() { - return (StepElement_Volume3dElementDescriptor*)$self->Access(); - } -}; - -%extend Handle_StepElement_Volume3dElementDescriptor { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepElement_Volume3dElementDescriptor) %extend StepElement_Volume3dElementDescriptor { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepFEA.i b/src/SWIG_files/wrapper/StepFEA.i index 2817b794a..13e2a10bd 100644 --- a/src/SWIG_files/wrapper/StepFEA.i +++ b/src/SWIG_files/wrapper/StepFEA.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define STEPFEADOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=STEPFEADOCSTRING) StepFEA @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepFEA_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -87,6 +73,76 @@ enum StepFEA_UnspecifiedValue { /* end public enums declaration */ +%wrap_handle(StepFEA_Curve3dElementProperty) +%wrap_handle(StepFEA_CurveElementEndOffset) +%wrap_handle(StepFEA_CurveElementEndRelease) +%wrap_handle(StepFEA_CurveElementInterval) +%wrap_handle(StepFEA_CurveElementLocation) +%wrap_handle(StepFEA_DegreeOfFreedomMember) +%wrap_handle(StepFEA_ElementGeometricRelationship) +%wrap_handle(StepFEA_ElementRepresentation) +%wrap_handle(StepFEA_FeaAxis2Placement3d) +%wrap_handle(StepFEA_FeaCurveSectionGeometricRelationship) +%wrap_handle(StepFEA_FeaGroup) +%wrap_handle(StepFEA_FeaMaterialPropertyRepresentation) +%wrap_handle(StepFEA_FeaMaterialPropertyRepresentationItem) +%wrap_handle(StepFEA_FeaModel) +%wrap_handle(StepFEA_FeaModelDefinition) +%wrap_handle(StepFEA_FeaParametricPoint) +%wrap_handle(StepFEA_FeaRepresentationItem) +%wrap_handle(StepFEA_FeaSurfaceSectionGeometricRelationship) +%wrap_handle(StepFEA_FreedomAndCoefficient) +%wrap_handle(StepFEA_FreedomsList) +%wrap_handle(StepFEA_HArray1OfCurveElementEndOffset) +%wrap_handle(StepFEA_HArray1OfCurveElementEndRelease) +%wrap_handle(StepFEA_HArray1OfCurveElementInterval) +%wrap_handle(StepFEA_HArray1OfDegreeOfFreedom) +%wrap_handle(StepFEA_HArray1OfElementRepresentation) +%wrap_handle(StepFEA_HArray1OfNodeRepresentation) +%wrap_handle(StepFEA_HSequenceOfCurve3dElementProperty) +%wrap_handle(StepFEA_HSequenceOfElementGeometricRelationship) +%wrap_handle(StepFEA_HSequenceOfElementRepresentation) +%wrap_handle(StepFEA_HSequenceOfNodeRepresentation) +%wrap_handle(StepFEA_NodeDefinition) +%wrap_handle(StepFEA_NodeRepresentation) +%wrap_handle(StepFEA_NodeSet) +%wrap_handle(StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty) +%wrap_handle(StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship) +%wrap_handle(StepFEA_SequenceNodeOfSequenceOfElementRepresentation) +%wrap_handle(StepFEA_SequenceNodeOfSequenceOfNodeRepresentation) +%wrap_handle(StepFEA_SymmetricTensor23dMember) +%wrap_handle(StepFEA_SymmetricTensor43dMember) +%wrap_handle(StepFEA_AlignedCurve3dElementCoordinateSystem) +%wrap_handle(StepFEA_AlignedSurface3dElementCoordinateSystem) +%wrap_handle(StepFEA_ArbitraryVolume3dElementCoordinateSystem) +%wrap_handle(StepFEA_ConstantSurface3dElementCoordinateSystem) +%wrap_handle(StepFEA_Curve3dElementRepresentation) +%wrap_handle(StepFEA_CurveElementIntervalConstant) +%wrap_handle(StepFEA_CurveElementIntervalLinearlyVarying) +%wrap_handle(StepFEA_DummyNode) +%wrap_handle(StepFEA_ElementGroup) +%wrap_handle(StepFEA_FeaAreaDensity) +%wrap_handle(StepFEA_FeaLinearElasticity) +%wrap_handle(StepFEA_FeaMassDensity) +%wrap_handle(StepFEA_FeaModel3d) +%wrap_handle(StepFEA_FeaMoistureAbsorption) +%wrap_handle(StepFEA_FeaSecantCoefficientOfLinearThermalExpansion) +%wrap_handle(StepFEA_FeaShellBendingStiffness) +%wrap_handle(StepFEA_FeaShellMembraneBendingCouplingStiffness) +%wrap_handle(StepFEA_FeaShellMembraneStiffness) +%wrap_handle(StepFEA_FeaShellShearStiffness) +%wrap_handle(StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion) +%wrap_handle(StepFEA_GeometricNode) +%wrap_handle(StepFEA_Node) +%wrap_handle(StepFEA_NodeGroup) +%wrap_handle(StepFEA_ParametricCurve3dElementCoordinateDirection) +%wrap_handle(StepFEA_ParametricCurve3dElementCoordinateSystem) +%wrap_handle(StepFEA_ParametricSurface3dElementCoordinateSystem) +%wrap_handle(StepFEA_Surface3dElementRepresentation) +%wrap_handle(StepFEA_Volume3dElementRepresentation) +%wrap_handle(StepFEA_NodeWithSolutionCoordinateSystem) +%wrap_handle(StepFEA_NodeWithVector) + %nodefaultctor StepFEA_Array1OfCurveElementEndOffset; class StepFEA_Array1OfCurveElementEndOffset { public: @@ -707,51 +763,7 @@ class StepFEA_Curve3dElementProperty : public MMgt_TShared { }; -%extend StepFEA_Curve3dElementProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_Curve3dElementProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_Curve3dElementProperty::Handle_StepFEA_Curve3dElementProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_Curve3dElementProperty; -class Handle_StepFEA_Curve3dElementProperty : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_Curve3dElementProperty(); - Handle_StepFEA_Curve3dElementProperty(const Handle_StepFEA_Curve3dElementProperty &aHandle); - Handle_StepFEA_Curve3dElementProperty(const StepFEA_Curve3dElementProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_Curve3dElementProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_Curve3dElementProperty { - StepFEA_Curve3dElementProperty* _get_reference() { - return (StepFEA_Curve3dElementProperty*)$self->Access(); - } -}; - -%extend Handle_StepFEA_Curve3dElementProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_Curve3dElementProperty) %extend StepFEA_Curve3dElementProperty { %pythoncode { @@ -851,51 +863,7 @@ class StepFEA_CurveElementEndOffset : public MMgt_TShared { }; -%extend StepFEA_CurveElementEndOffset { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_CurveElementEndOffset(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_CurveElementEndOffset::Handle_StepFEA_CurveElementEndOffset %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_CurveElementEndOffset; -class Handle_StepFEA_CurveElementEndOffset : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_CurveElementEndOffset(); - Handle_StepFEA_CurveElementEndOffset(const Handle_StepFEA_CurveElementEndOffset &aHandle); - Handle_StepFEA_CurveElementEndOffset(const StepFEA_CurveElementEndOffset *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_CurveElementEndOffset DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_CurveElementEndOffset { - StepFEA_CurveElementEndOffset* _get_reference() { - return (StepFEA_CurveElementEndOffset*)$self->Access(); - } -}; - -%extend Handle_StepFEA_CurveElementEndOffset { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_CurveElementEndOffset) %extend StepFEA_CurveElementEndOffset { %pythoncode { @@ -952,51 +920,7 @@ class StepFEA_CurveElementEndRelease : public MMgt_TShared { }; -%extend StepFEA_CurveElementEndRelease { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_CurveElementEndRelease(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_CurveElementEndRelease::Handle_StepFEA_CurveElementEndRelease %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_CurveElementEndRelease; -class Handle_StepFEA_CurveElementEndRelease : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_CurveElementEndRelease(); - Handle_StepFEA_CurveElementEndRelease(const Handle_StepFEA_CurveElementEndRelease &aHandle); - Handle_StepFEA_CurveElementEndRelease(const StepFEA_CurveElementEndRelease *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_CurveElementEndRelease DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_CurveElementEndRelease { - StepFEA_CurveElementEndRelease* _get_reference() { - return (StepFEA_CurveElementEndRelease*)$self->Access(); - } -}; - -%extend Handle_StepFEA_CurveElementEndRelease { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_CurveElementEndRelease) %extend StepFEA_CurveElementEndRelease { %pythoncode { @@ -1053,51 +977,7 @@ class StepFEA_CurveElementInterval : public MMgt_TShared { }; -%extend StepFEA_CurveElementInterval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_CurveElementInterval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_CurveElementInterval::Handle_StepFEA_CurveElementInterval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_CurveElementInterval; -class Handle_StepFEA_CurveElementInterval : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_CurveElementInterval(); - Handle_StepFEA_CurveElementInterval(const Handle_StepFEA_CurveElementInterval &aHandle); - Handle_StepFEA_CurveElementInterval(const StepFEA_CurveElementInterval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_CurveElementInterval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_CurveElementInterval { - StepFEA_CurveElementInterval* _get_reference() { - return (StepFEA_CurveElementInterval*)$self->Access(); - } -}; - -%extend Handle_StepFEA_CurveElementInterval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_CurveElementInterval) %extend StepFEA_CurveElementInterval { %pythoncode { @@ -1138,51 +1018,7 @@ class StepFEA_CurveElementLocation : public MMgt_TShared { }; -%extend StepFEA_CurveElementLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_CurveElementLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_CurveElementLocation::Handle_StepFEA_CurveElementLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_CurveElementLocation; -class Handle_StepFEA_CurveElementLocation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_CurveElementLocation(); - Handle_StepFEA_CurveElementLocation(const Handle_StepFEA_CurveElementLocation &aHandle); - Handle_StepFEA_CurveElementLocation(const StepFEA_CurveElementLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_CurveElementLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_CurveElementLocation { - StepFEA_CurveElementLocation* _get_reference() { - return (StepFEA_CurveElementLocation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_CurveElementLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_CurveElementLocation) %extend StepFEA_CurveElementLocation { %pythoncode { @@ -1296,51 +1132,7 @@ class StepFEA_DegreeOfFreedomMember : public StepData_SelectNamed { }; -%extend StepFEA_DegreeOfFreedomMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_DegreeOfFreedomMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_DegreeOfFreedomMember::Handle_StepFEA_DegreeOfFreedomMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_DegreeOfFreedomMember; -class Handle_StepFEA_DegreeOfFreedomMember : public Handle_StepData_SelectNamed { - - public: - // constructors - Handle_StepFEA_DegreeOfFreedomMember(); - Handle_StepFEA_DegreeOfFreedomMember(const Handle_StepFEA_DegreeOfFreedomMember &aHandle); - Handle_StepFEA_DegreeOfFreedomMember(const StepFEA_DegreeOfFreedomMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_DegreeOfFreedomMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_DegreeOfFreedomMember { - StepFEA_DegreeOfFreedomMember* _get_reference() { - return (StepFEA_DegreeOfFreedomMember*)$self->Access(); - } -}; - -%extend Handle_StepFEA_DegreeOfFreedomMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_DegreeOfFreedomMember) %extend StepFEA_DegreeOfFreedomMember { %pythoncode { @@ -1413,51 +1205,7 @@ class StepFEA_ElementGeometricRelationship : public MMgt_TShared { }; -%extend StepFEA_ElementGeometricRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ElementGeometricRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ElementGeometricRelationship::Handle_StepFEA_ElementGeometricRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ElementGeometricRelationship; -class Handle_StepFEA_ElementGeometricRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_ElementGeometricRelationship(); - Handle_StepFEA_ElementGeometricRelationship(const Handle_StepFEA_ElementGeometricRelationship &aHandle); - Handle_StepFEA_ElementGeometricRelationship(const StepFEA_ElementGeometricRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ElementGeometricRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ElementGeometricRelationship { - StepFEA_ElementGeometricRelationship* _get_reference() { - return (StepFEA_ElementGeometricRelationship*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ElementGeometricRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ElementGeometricRelationship) %extend StepFEA_ElementGeometricRelationship { %pythoncode { @@ -1541,51 +1289,7 @@ class StepFEA_ElementRepresentation : public StepRepr_Representation { }; -%extend StepFEA_ElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ElementRepresentation::Handle_StepFEA_ElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ElementRepresentation; -class Handle_StepFEA_ElementRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepFEA_ElementRepresentation(); - Handle_StepFEA_ElementRepresentation(const Handle_StepFEA_ElementRepresentation &aHandle); - Handle_StepFEA_ElementRepresentation(const StepFEA_ElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ElementRepresentation { - StepFEA_ElementRepresentation* _get_reference() { - return (StepFEA_ElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ElementRepresentation) %extend StepFEA_ElementRepresentation { %pythoncode { @@ -1654,51 +1358,7 @@ class StepFEA_FeaAxis2Placement3d : public StepGeom_Axis2Placement3d { }; -%extend StepFEA_FeaAxis2Placement3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaAxis2Placement3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaAxis2Placement3d::Handle_StepFEA_FeaAxis2Placement3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaAxis2Placement3d; -class Handle_StepFEA_FeaAxis2Placement3d : public Handle_StepGeom_Axis2Placement3d { - - public: - // constructors - Handle_StepFEA_FeaAxis2Placement3d(); - Handle_StepFEA_FeaAxis2Placement3d(const Handle_StepFEA_FeaAxis2Placement3d &aHandle); - Handle_StepFEA_FeaAxis2Placement3d(const StepFEA_FeaAxis2Placement3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaAxis2Placement3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaAxis2Placement3d { - StepFEA_FeaAxis2Placement3d* _get_reference() { - return (StepFEA_FeaAxis2Placement3d*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaAxis2Placement3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaAxis2Placement3d) %extend StepFEA_FeaAxis2Placement3d { %pythoncode { @@ -1755,51 +1415,7 @@ class StepFEA_FeaCurveSectionGeometricRelationship : public MMgt_TShared { }; -%extend StepFEA_FeaCurveSectionGeometricRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaCurveSectionGeometricRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaCurveSectionGeometricRelationship::Handle_StepFEA_FeaCurveSectionGeometricRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaCurveSectionGeometricRelationship; -class Handle_StepFEA_FeaCurveSectionGeometricRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_FeaCurveSectionGeometricRelationship(); - Handle_StepFEA_FeaCurveSectionGeometricRelationship(const Handle_StepFEA_FeaCurveSectionGeometricRelationship &aHandle); - Handle_StepFEA_FeaCurveSectionGeometricRelationship(const StepFEA_FeaCurveSectionGeometricRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaCurveSectionGeometricRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaCurveSectionGeometricRelationship { - StepFEA_FeaCurveSectionGeometricRelationship* _get_reference() { - return (StepFEA_FeaCurveSectionGeometricRelationship*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaCurveSectionGeometricRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaCurveSectionGeometricRelationship) %extend StepFEA_FeaCurveSectionGeometricRelationship { %pythoncode { @@ -1844,51 +1460,7 @@ class StepFEA_FeaGroup : public StepBasic_Group { }; -%extend StepFEA_FeaGroup { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaGroup(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaGroup::Handle_StepFEA_FeaGroup %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaGroup; -class Handle_StepFEA_FeaGroup : public Handle_StepBasic_Group { - - public: - // constructors - Handle_StepFEA_FeaGroup(); - Handle_StepFEA_FeaGroup(const Handle_StepFEA_FeaGroup &aHandle); - Handle_StepFEA_FeaGroup(const StepFEA_FeaGroup *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaGroup DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaGroup { - StepFEA_FeaGroup* _get_reference() { - return (StepFEA_FeaGroup*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaGroup { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaGroup) %extend StepFEA_FeaGroup { %pythoncode { @@ -1907,51 +1479,7 @@ class StepFEA_FeaMaterialPropertyRepresentation : public StepRepr_MaterialProper }; -%extend StepFEA_FeaMaterialPropertyRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaMaterialPropertyRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaMaterialPropertyRepresentation::Handle_StepFEA_FeaMaterialPropertyRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaMaterialPropertyRepresentation; -class Handle_StepFEA_FeaMaterialPropertyRepresentation : public Handle_StepRepr_MaterialPropertyRepresentation { - - public: - // constructors - Handle_StepFEA_FeaMaterialPropertyRepresentation(); - Handle_StepFEA_FeaMaterialPropertyRepresentation(const Handle_StepFEA_FeaMaterialPropertyRepresentation &aHandle); - Handle_StepFEA_FeaMaterialPropertyRepresentation(const StepFEA_FeaMaterialPropertyRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaMaterialPropertyRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaMaterialPropertyRepresentation { - StepFEA_FeaMaterialPropertyRepresentation* _get_reference() { - return (StepFEA_FeaMaterialPropertyRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaMaterialPropertyRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaMaterialPropertyRepresentation) %extend StepFEA_FeaMaterialPropertyRepresentation { %pythoncode { @@ -1970,51 +1498,7 @@ class StepFEA_FeaMaterialPropertyRepresentationItem : public StepRepr_Representa }; -%extend StepFEA_FeaMaterialPropertyRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaMaterialPropertyRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaMaterialPropertyRepresentationItem::Handle_StepFEA_FeaMaterialPropertyRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaMaterialPropertyRepresentationItem; -class Handle_StepFEA_FeaMaterialPropertyRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaMaterialPropertyRepresentationItem(); - Handle_StepFEA_FeaMaterialPropertyRepresentationItem(const Handle_StepFEA_FeaMaterialPropertyRepresentationItem &aHandle); - Handle_StepFEA_FeaMaterialPropertyRepresentationItem(const StepFEA_FeaMaterialPropertyRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaMaterialPropertyRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - StepFEA_FeaMaterialPropertyRepresentationItem* _get_reference() { - return (StepFEA_FeaMaterialPropertyRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaMaterialPropertyRepresentationItem) %extend StepFEA_FeaMaterialPropertyRepresentationItem { %pythoncode { @@ -2109,51 +1593,7 @@ class StepFEA_FeaModel : public StepRepr_Representation { }; -%extend StepFEA_FeaModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaModel::Handle_StepFEA_FeaModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaModel; -class Handle_StepFEA_FeaModel : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepFEA_FeaModel(); - Handle_StepFEA_FeaModel(const Handle_StepFEA_FeaModel &aHandle); - Handle_StepFEA_FeaModel(const StepFEA_FeaModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaModel { - StepFEA_FeaModel* _get_reference() { - return (StepFEA_FeaModel*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaModel) %extend StepFEA_FeaModel { %pythoncode { @@ -2172,51 +1612,7 @@ class StepFEA_FeaModelDefinition : public StepRepr_ShapeAspect { }; -%extend StepFEA_FeaModelDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaModelDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaModelDefinition::Handle_StepFEA_FeaModelDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaModelDefinition; -class Handle_StepFEA_FeaModelDefinition : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepFEA_FeaModelDefinition(); - Handle_StepFEA_FeaModelDefinition(const Handle_StepFEA_FeaModelDefinition &aHandle); - Handle_StepFEA_FeaModelDefinition(const StepFEA_FeaModelDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaModelDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaModelDefinition { - StepFEA_FeaModelDefinition* _get_reference() { - return (StepFEA_FeaModelDefinition*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaModelDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaModelDefinition) %extend StepFEA_FeaModelDefinition { %pythoncode { @@ -2259,51 +1655,7 @@ class StepFEA_FeaParametricPoint : public StepGeom_Point { }; -%extend StepFEA_FeaParametricPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaParametricPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaParametricPoint::Handle_StepFEA_FeaParametricPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaParametricPoint; -class Handle_StepFEA_FeaParametricPoint : public Handle_StepGeom_Point { - - public: - // constructors - Handle_StepFEA_FeaParametricPoint(); - Handle_StepFEA_FeaParametricPoint(const Handle_StepFEA_FeaParametricPoint &aHandle); - Handle_StepFEA_FeaParametricPoint(const StepFEA_FeaParametricPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaParametricPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaParametricPoint { - StepFEA_FeaParametricPoint* _get_reference() { - return (StepFEA_FeaParametricPoint*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaParametricPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaParametricPoint) %extend StepFEA_FeaParametricPoint { %pythoncode { @@ -2322,51 +1674,7 @@ class StepFEA_FeaRepresentationItem : public StepRepr_RepresentationItem { }; -%extend StepFEA_FeaRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaRepresentationItem::Handle_StepFEA_FeaRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaRepresentationItem; -class Handle_StepFEA_FeaRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaRepresentationItem(); - Handle_StepFEA_FeaRepresentationItem(const Handle_StepFEA_FeaRepresentationItem &aHandle); - Handle_StepFEA_FeaRepresentationItem(const StepFEA_FeaRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaRepresentationItem { - StepFEA_FeaRepresentationItem* _get_reference() { - return (StepFEA_FeaRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaRepresentationItem) %extend StepFEA_FeaRepresentationItem { %pythoncode { @@ -2423,51 +1731,7 @@ class StepFEA_FeaSurfaceSectionGeometricRelationship : public MMgt_TShared { }; -%extend StepFEA_FeaSurfaceSectionGeometricRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaSurfaceSectionGeometricRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaSurfaceSectionGeometricRelationship::Handle_StepFEA_FeaSurfaceSectionGeometricRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaSurfaceSectionGeometricRelationship; -class Handle_StepFEA_FeaSurfaceSectionGeometricRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_FeaSurfaceSectionGeometricRelationship(); - Handle_StepFEA_FeaSurfaceSectionGeometricRelationship(const Handle_StepFEA_FeaSurfaceSectionGeometricRelationship &aHandle); - Handle_StepFEA_FeaSurfaceSectionGeometricRelationship(const StepFEA_FeaSurfaceSectionGeometricRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaSurfaceSectionGeometricRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaSurfaceSectionGeometricRelationship { - StepFEA_FeaSurfaceSectionGeometricRelationship* _get_reference() { - return (StepFEA_FeaSurfaceSectionGeometricRelationship*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaSurfaceSectionGeometricRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaSurfaceSectionGeometricRelationship) %extend StepFEA_FeaSurfaceSectionGeometricRelationship { %pythoncode { @@ -2524,51 +1788,7 @@ class StepFEA_FreedomAndCoefficient : public MMgt_TShared { }; -%extend StepFEA_FreedomAndCoefficient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FreedomAndCoefficient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FreedomAndCoefficient::Handle_StepFEA_FreedomAndCoefficient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FreedomAndCoefficient; -class Handle_StepFEA_FreedomAndCoefficient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_FreedomAndCoefficient(); - Handle_StepFEA_FreedomAndCoefficient(const Handle_StepFEA_FreedomAndCoefficient &aHandle); - Handle_StepFEA_FreedomAndCoefficient(const StepFEA_FreedomAndCoefficient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FreedomAndCoefficient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FreedomAndCoefficient { - StepFEA_FreedomAndCoefficient* _get_reference() { - return (StepFEA_FreedomAndCoefficient*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FreedomAndCoefficient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FreedomAndCoefficient) %extend StepFEA_FreedomAndCoefficient { %pythoncode { @@ -2609,55 +1829,11 @@ class StepFEA_FreedomsList : public MMgt_TShared { }; +%make_alias(StepFEA_FreedomsList) + %extend StepFEA_FreedomsList { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FreedomsList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FreedomsList::Handle_StepFEA_FreedomsList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FreedomsList; -class Handle_StepFEA_FreedomsList : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_FreedomsList(); - Handle_StepFEA_FreedomsList(const Handle_StepFEA_FreedomsList &aHandle); - Handle_StepFEA_FreedomsList(const StepFEA_FreedomsList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FreedomsList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FreedomsList { - StepFEA_FreedomsList* _get_reference() { - return (StepFEA_FreedomsList*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FreedomsList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepFEA_FreedomsList { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepFEA_HArray1OfCurveElementEndOffset; @@ -2730,51 +1906,7 @@ class StepFEA_HArray1OfCurveElementEndOffset : public MMgt_TShared { }; -%extend StepFEA_HArray1OfCurveElementEndOffset { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HArray1OfCurveElementEndOffset(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HArray1OfCurveElementEndOffset::Handle_StepFEA_HArray1OfCurveElementEndOffset %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HArray1OfCurveElementEndOffset; -class Handle_StepFEA_HArray1OfCurveElementEndOffset : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HArray1OfCurveElementEndOffset(); - Handle_StepFEA_HArray1OfCurveElementEndOffset(const Handle_StepFEA_HArray1OfCurveElementEndOffset &aHandle); - Handle_StepFEA_HArray1OfCurveElementEndOffset(const StepFEA_HArray1OfCurveElementEndOffset *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HArray1OfCurveElementEndOffset DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HArray1OfCurveElementEndOffset { - StepFEA_HArray1OfCurveElementEndOffset* _get_reference() { - return (StepFEA_HArray1OfCurveElementEndOffset*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HArray1OfCurveElementEndOffset { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HArray1OfCurveElementEndOffset) %extend StepFEA_HArray1OfCurveElementEndOffset { %pythoncode { @@ -2851,51 +1983,7 @@ class StepFEA_HArray1OfCurveElementEndRelease : public MMgt_TShared { }; -%extend StepFEA_HArray1OfCurveElementEndRelease { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HArray1OfCurveElementEndRelease(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HArray1OfCurveElementEndRelease::Handle_StepFEA_HArray1OfCurveElementEndRelease %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HArray1OfCurveElementEndRelease; -class Handle_StepFEA_HArray1OfCurveElementEndRelease : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HArray1OfCurveElementEndRelease(); - Handle_StepFEA_HArray1OfCurveElementEndRelease(const Handle_StepFEA_HArray1OfCurveElementEndRelease &aHandle); - Handle_StepFEA_HArray1OfCurveElementEndRelease(const StepFEA_HArray1OfCurveElementEndRelease *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HArray1OfCurveElementEndRelease DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HArray1OfCurveElementEndRelease { - StepFEA_HArray1OfCurveElementEndRelease* _get_reference() { - return (StepFEA_HArray1OfCurveElementEndRelease*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HArray1OfCurveElementEndRelease { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HArray1OfCurveElementEndRelease) %extend StepFEA_HArray1OfCurveElementEndRelease { %pythoncode { @@ -2972,51 +2060,7 @@ class StepFEA_HArray1OfCurveElementInterval : public MMgt_TShared { }; -%extend StepFEA_HArray1OfCurveElementInterval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HArray1OfCurveElementInterval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HArray1OfCurveElementInterval::Handle_StepFEA_HArray1OfCurveElementInterval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HArray1OfCurveElementInterval; -class Handle_StepFEA_HArray1OfCurveElementInterval : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HArray1OfCurveElementInterval(); - Handle_StepFEA_HArray1OfCurveElementInterval(const Handle_StepFEA_HArray1OfCurveElementInterval &aHandle); - Handle_StepFEA_HArray1OfCurveElementInterval(const StepFEA_HArray1OfCurveElementInterval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HArray1OfCurveElementInterval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HArray1OfCurveElementInterval { - StepFEA_HArray1OfCurveElementInterval* _get_reference() { - return (StepFEA_HArray1OfCurveElementInterval*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HArray1OfCurveElementInterval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HArray1OfCurveElementInterval) %extend StepFEA_HArray1OfCurveElementInterval { %pythoncode { @@ -3093,51 +2137,7 @@ class StepFEA_HArray1OfDegreeOfFreedom : public MMgt_TShared { }; -%extend StepFEA_HArray1OfDegreeOfFreedom { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HArray1OfDegreeOfFreedom(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HArray1OfDegreeOfFreedom::Handle_StepFEA_HArray1OfDegreeOfFreedom %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HArray1OfDegreeOfFreedom; -class Handle_StepFEA_HArray1OfDegreeOfFreedom : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HArray1OfDegreeOfFreedom(); - Handle_StepFEA_HArray1OfDegreeOfFreedom(const Handle_StepFEA_HArray1OfDegreeOfFreedom &aHandle); - Handle_StepFEA_HArray1OfDegreeOfFreedom(const StepFEA_HArray1OfDegreeOfFreedom *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HArray1OfDegreeOfFreedom DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HArray1OfDegreeOfFreedom { - StepFEA_HArray1OfDegreeOfFreedom* _get_reference() { - return (StepFEA_HArray1OfDegreeOfFreedom*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HArray1OfDegreeOfFreedom { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HArray1OfDegreeOfFreedom) %extend StepFEA_HArray1OfDegreeOfFreedom { %pythoncode { @@ -3214,51 +2214,7 @@ class StepFEA_HArray1OfElementRepresentation : public MMgt_TShared { }; -%extend StepFEA_HArray1OfElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HArray1OfElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HArray1OfElementRepresentation::Handle_StepFEA_HArray1OfElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HArray1OfElementRepresentation; -class Handle_StepFEA_HArray1OfElementRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HArray1OfElementRepresentation(); - Handle_StepFEA_HArray1OfElementRepresentation(const Handle_StepFEA_HArray1OfElementRepresentation &aHandle); - Handle_StepFEA_HArray1OfElementRepresentation(const StepFEA_HArray1OfElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HArray1OfElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HArray1OfElementRepresentation { - StepFEA_HArray1OfElementRepresentation* _get_reference() { - return (StepFEA_HArray1OfElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HArray1OfElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HArray1OfElementRepresentation) %extend StepFEA_HArray1OfElementRepresentation { %pythoncode { @@ -3335,51 +2291,7 @@ class StepFEA_HArray1OfNodeRepresentation : public MMgt_TShared { }; -%extend StepFEA_HArray1OfNodeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HArray1OfNodeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HArray1OfNodeRepresentation::Handle_StepFEA_HArray1OfNodeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HArray1OfNodeRepresentation; -class Handle_StepFEA_HArray1OfNodeRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HArray1OfNodeRepresentation(); - Handle_StepFEA_HArray1OfNodeRepresentation(const Handle_StepFEA_HArray1OfNodeRepresentation &aHandle); - Handle_StepFEA_HArray1OfNodeRepresentation(const StepFEA_HArray1OfNodeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HArray1OfNodeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HArray1OfNodeRepresentation { - StepFEA_HArray1OfNodeRepresentation* _get_reference() { - return (StepFEA_HArray1OfNodeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HArray1OfNodeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HArray1OfNodeRepresentation) %extend StepFEA_HArray1OfNodeRepresentation { %pythoncode { @@ -3524,51 +2436,7 @@ class StepFEA_HSequenceOfCurve3dElementProperty : public MMgt_TShared { }; -%extend StepFEA_HSequenceOfCurve3dElementProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HSequenceOfCurve3dElementProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HSequenceOfCurve3dElementProperty::Handle_StepFEA_HSequenceOfCurve3dElementProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HSequenceOfCurve3dElementProperty; -class Handle_StepFEA_HSequenceOfCurve3dElementProperty : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HSequenceOfCurve3dElementProperty(); - Handle_StepFEA_HSequenceOfCurve3dElementProperty(const Handle_StepFEA_HSequenceOfCurve3dElementProperty &aHandle); - Handle_StepFEA_HSequenceOfCurve3dElementProperty(const StepFEA_HSequenceOfCurve3dElementProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HSequenceOfCurve3dElementProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HSequenceOfCurve3dElementProperty { - StepFEA_HSequenceOfCurve3dElementProperty* _get_reference() { - return (StepFEA_HSequenceOfCurve3dElementProperty*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HSequenceOfCurve3dElementProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HSequenceOfCurve3dElementProperty) %extend StepFEA_HSequenceOfCurve3dElementProperty { %pythoncode { @@ -3713,51 +2581,7 @@ class StepFEA_HSequenceOfElementGeometricRelationship : public MMgt_TShared { }; -%extend StepFEA_HSequenceOfElementGeometricRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HSequenceOfElementGeometricRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HSequenceOfElementGeometricRelationship::Handle_StepFEA_HSequenceOfElementGeometricRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HSequenceOfElementGeometricRelationship; -class Handle_StepFEA_HSequenceOfElementGeometricRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HSequenceOfElementGeometricRelationship(); - Handle_StepFEA_HSequenceOfElementGeometricRelationship(const Handle_StepFEA_HSequenceOfElementGeometricRelationship &aHandle); - Handle_StepFEA_HSequenceOfElementGeometricRelationship(const StepFEA_HSequenceOfElementGeometricRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HSequenceOfElementGeometricRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HSequenceOfElementGeometricRelationship { - StepFEA_HSequenceOfElementGeometricRelationship* _get_reference() { - return (StepFEA_HSequenceOfElementGeometricRelationship*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HSequenceOfElementGeometricRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HSequenceOfElementGeometricRelationship) %extend StepFEA_HSequenceOfElementGeometricRelationship { %pythoncode { @@ -3902,51 +2726,7 @@ class StepFEA_HSequenceOfElementRepresentation : public MMgt_TShared { }; -%extend StepFEA_HSequenceOfElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HSequenceOfElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HSequenceOfElementRepresentation::Handle_StepFEA_HSequenceOfElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HSequenceOfElementRepresentation; -class Handle_StepFEA_HSequenceOfElementRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HSequenceOfElementRepresentation(); - Handle_StepFEA_HSequenceOfElementRepresentation(const Handle_StepFEA_HSequenceOfElementRepresentation &aHandle); - Handle_StepFEA_HSequenceOfElementRepresentation(const StepFEA_HSequenceOfElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HSequenceOfElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HSequenceOfElementRepresentation { - StepFEA_HSequenceOfElementRepresentation* _get_reference() { - return (StepFEA_HSequenceOfElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HSequenceOfElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HSequenceOfElementRepresentation) %extend StepFEA_HSequenceOfElementRepresentation { %pythoncode { @@ -4091,51 +2871,7 @@ class StepFEA_HSequenceOfNodeRepresentation : public MMgt_TShared { }; -%extend StepFEA_HSequenceOfNodeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_HSequenceOfNodeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_HSequenceOfNodeRepresentation::Handle_StepFEA_HSequenceOfNodeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_HSequenceOfNodeRepresentation; -class Handle_StepFEA_HSequenceOfNodeRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepFEA_HSequenceOfNodeRepresentation(); - Handle_StepFEA_HSequenceOfNodeRepresentation(const Handle_StepFEA_HSequenceOfNodeRepresentation &aHandle); - Handle_StepFEA_HSequenceOfNodeRepresentation(const StepFEA_HSequenceOfNodeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_HSequenceOfNodeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_HSequenceOfNodeRepresentation { - StepFEA_HSequenceOfNodeRepresentation* _get_reference() { - return (StepFEA_HSequenceOfNodeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_HSequenceOfNodeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_HSequenceOfNodeRepresentation) %extend StepFEA_HSequenceOfNodeRepresentation { %pythoncode { @@ -4154,51 +2890,7 @@ class StepFEA_NodeDefinition : public StepRepr_ShapeAspect { }; -%extend StepFEA_NodeDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_NodeDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_NodeDefinition::Handle_StepFEA_NodeDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_NodeDefinition; -class Handle_StepFEA_NodeDefinition : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepFEA_NodeDefinition(); - Handle_StepFEA_NodeDefinition(const Handle_StepFEA_NodeDefinition &aHandle); - Handle_StepFEA_NodeDefinition(const StepFEA_NodeDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_NodeDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_NodeDefinition { - StepFEA_NodeDefinition* _get_reference() { - return (StepFEA_NodeDefinition*)$self->Access(); - } -}; - -%extend Handle_StepFEA_NodeDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_NodeDefinition) %extend StepFEA_NodeDefinition { %pythoncode { @@ -4245,51 +2937,7 @@ class StepFEA_NodeRepresentation : public StepRepr_Representation { }; -%extend StepFEA_NodeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_NodeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_NodeRepresentation::Handle_StepFEA_NodeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_NodeRepresentation; -class Handle_StepFEA_NodeRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepFEA_NodeRepresentation(); - Handle_StepFEA_NodeRepresentation(const Handle_StepFEA_NodeRepresentation &aHandle); - Handle_StepFEA_NodeRepresentation(const StepFEA_NodeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_NodeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_NodeRepresentation { - StepFEA_NodeRepresentation* _get_reference() { - return (StepFEA_NodeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_NodeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_NodeRepresentation) %extend StepFEA_NodeRepresentation { %pythoncode { @@ -4332,51 +2980,7 @@ class StepFEA_NodeSet : public StepGeom_GeometricRepresentationItem { }; -%extend StepFEA_NodeSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_NodeSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_NodeSet::Handle_StepFEA_NodeSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_NodeSet; -class Handle_StepFEA_NodeSet : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepFEA_NodeSet(); - Handle_StepFEA_NodeSet(const Handle_StepFEA_NodeSet &aHandle); - Handle_StepFEA_NodeSet(const StepFEA_NodeSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_NodeSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_NodeSet { - StepFEA_NodeSet* _get_reference() { - return (StepFEA_NodeSet*)$self->Access(); - } -}; - -%extend Handle_StepFEA_NodeSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_NodeSet) %extend StepFEA_NodeSet { %pythoncode { @@ -4403,51 +3007,7 @@ class StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty : public TCollectio }; -%extend StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty::Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty; -class Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty(); - Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty(const Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty &aHandle); - Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty(const StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty { - StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty* _get_reference() { - return (StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty*)$self->Access(); - } -}; - -%extend Handle_StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty) %extend StepFEA_SequenceNodeOfSequenceOfCurve3dElementProperty { %pythoncode { @@ -4474,51 +3034,7 @@ class StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship : public TCol }; -%extend StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship::Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship; -class Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship(); - Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship(const Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship &aHandle); - Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship(const StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship { - StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship* _get_reference() { - return (StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship*)$self->Access(); - } -}; - -%extend Handle_StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship) %extend StepFEA_SequenceNodeOfSequenceOfElementGeometricRelationship { %pythoncode { @@ -4545,51 +3061,7 @@ class StepFEA_SequenceNodeOfSequenceOfElementRepresentation : public TCollection }; -%extend StepFEA_SequenceNodeOfSequenceOfElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation::Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation; -class Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation(); - Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation(const Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation &aHandle); - Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation(const StepFEA_SequenceNodeOfSequenceOfElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation { - StepFEA_SequenceNodeOfSequenceOfElementRepresentation* _get_reference() { - return (StepFEA_SequenceNodeOfSequenceOfElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_SequenceNodeOfSequenceOfElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_SequenceNodeOfSequenceOfElementRepresentation) %extend StepFEA_SequenceNodeOfSequenceOfElementRepresentation { %pythoncode { @@ -4616,51 +3088,7 @@ class StepFEA_SequenceNodeOfSequenceOfNodeRepresentation : public TCollection_Se }; -%extend StepFEA_SequenceNodeOfSequenceOfNodeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation::Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation; -class Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation(); - Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation(const Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation &aHandle); - Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation(const StepFEA_SequenceNodeOfSequenceOfNodeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation { - StepFEA_SequenceNodeOfSequenceOfNodeRepresentation* _get_reference() { - return (StepFEA_SequenceNodeOfSequenceOfNodeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_SequenceNodeOfSequenceOfNodeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_SequenceNodeOfSequenceOfNodeRepresentation) %extend StepFEA_SequenceNodeOfSequenceOfNodeRepresentation { %pythoncode { @@ -5391,51 +3819,7 @@ class StepFEA_SymmetricTensor23dMember : public StepData_SelectArrReal { }; -%extend StepFEA_SymmetricTensor23dMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_SymmetricTensor23dMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_SymmetricTensor23dMember::Handle_StepFEA_SymmetricTensor23dMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_SymmetricTensor23dMember; -class Handle_StepFEA_SymmetricTensor23dMember : public Handle_StepData_SelectArrReal { - - public: - // constructors - Handle_StepFEA_SymmetricTensor23dMember(); - Handle_StepFEA_SymmetricTensor23dMember(const Handle_StepFEA_SymmetricTensor23dMember &aHandle); - Handle_StepFEA_SymmetricTensor23dMember(const StepFEA_SymmetricTensor23dMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_SymmetricTensor23dMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_SymmetricTensor23dMember { - StepFEA_SymmetricTensor23dMember* _get_reference() { - return (StepFEA_SymmetricTensor23dMember*)$self->Access(); - } -}; - -%extend Handle_StepFEA_SymmetricTensor23dMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_SymmetricTensor23dMember) %extend StepFEA_SymmetricTensor23dMember { %pythoncode { @@ -5580,62 +3964,18 @@ class StepFEA_SymmetricTensor43dMember : public StepData_SelectArrReal { }; +%make_alias(StepFEA_SymmetricTensor43dMember) + %extend StepFEA_SymmetricTensor43dMember { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_SymmetricTensor43dMember(self) - self.thisown = False - return self.thisHandle + __repr__ = _dumps_object } }; - -%pythonappend Handle_StepFEA_SymmetricTensor43dMember::Handle_StepFEA_SymmetricTensor43dMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_SymmetricTensor43dMember; -class Handle_StepFEA_SymmetricTensor43dMember : public Handle_StepData_SelectArrReal { - - public: - // constructors - Handle_StepFEA_SymmetricTensor43dMember(); - Handle_StepFEA_SymmetricTensor43dMember(const Handle_StepFEA_SymmetricTensor43dMember &aHandle); - Handle_StepFEA_SymmetricTensor43dMember(const StepFEA_SymmetricTensor43dMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_SymmetricTensor43dMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_SymmetricTensor43dMember { - StepFEA_SymmetricTensor43dMember* _get_reference() { - return (StepFEA_SymmetricTensor43dMember*)$self->Access(); - } -}; - -%extend Handle_StepFEA_SymmetricTensor43dMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepFEA_SymmetricTensor43dMember { - %pythoncode { - __repr__ = _dumps_object - } -}; -%nodefaultctor StepFEA_AlignedCurve3dElementCoordinateSystem; -class StepFEA_AlignedCurve3dElementCoordinateSystem : public StepFEA_FeaRepresentationItem { - public: - %feature("compactdefaultargs") StepFEA_AlignedCurve3dElementCoordinateSystem; - %feature("autodoc", " * Empty constructor +%nodefaultctor StepFEA_AlignedCurve3dElementCoordinateSystem; +class StepFEA_AlignedCurve3dElementCoordinateSystem : public StepFEA_FeaRepresentationItem { + public: + %feature("compactdefaultargs") StepFEA_AlignedCurve3dElementCoordinateSystem; + %feature("autodoc", " * Empty constructor :rtype: None ") StepFEA_AlignedCurve3dElementCoordinateSystem; @@ -5667,51 +4007,7 @@ class StepFEA_AlignedCurve3dElementCoordinateSystem : public StepFEA_FeaRepresen }; -%extend StepFEA_AlignedCurve3dElementCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_AlignedCurve3dElementCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_AlignedCurve3dElementCoordinateSystem::Handle_StepFEA_AlignedCurve3dElementCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_AlignedCurve3dElementCoordinateSystem; -class Handle_StepFEA_AlignedCurve3dElementCoordinateSystem : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_AlignedCurve3dElementCoordinateSystem(); - Handle_StepFEA_AlignedCurve3dElementCoordinateSystem(const Handle_StepFEA_AlignedCurve3dElementCoordinateSystem &aHandle); - Handle_StepFEA_AlignedCurve3dElementCoordinateSystem(const StepFEA_AlignedCurve3dElementCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_AlignedCurve3dElementCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_AlignedCurve3dElementCoordinateSystem { - StepFEA_AlignedCurve3dElementCoordinateSystem* _get_reference() { - return (StepFEA_AlignedCurve3dElementCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_AlignedCurve3dElementCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_AlignedCurve3dElementCoordinateSystem) %extend StepFEA_AlignedCurve3dElementCoordinateSystem { %pythoncode { @@ -5754,51 +4050,7 @@ class StepFEA_AlignedSurface3dElementCoordinateSystem : public StepFEA_FeaRepres }; -%extend StepFEA_AlignedSurface3dElementCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_AlignedSurface3dElementCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_AlignedSurface3dElementCoordinateSystem::Handle_StepFEA_AlignedSurface3dElementCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_AlignedSurface3dElementCoordinateSystem; -class Handle_StepFEA_AlignedSurface3dElementCoordinateSystem : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_AlignedSurface3dElementCoordinateSystem(); - Handle_StepFEA_AlignedSurface3dElementCoordinateSystem(const Handle_StepFEA_AlignedSurface3dElementCoordinateSystem &aHandle); - Handle_StepFEA_AlignedSurface3dElementCoordinateSystem(const StepFEA_AlignedSurface3dElementCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_AlignedSurface3dElementCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_AlignedSurface3dElementCoordinateSystem { - StepFEA_AlignedSurface3dElementCoordinateSystem* _get_reference() { - return (StepFEA_AlignedSurface3dElementCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_AlignedSurface3dElementCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_AlignedSurface3dElementCoordinateSystem) %extend StepFEA_AlignedSurface3dElementCoordinateSystem { %pythoncode { @@ -5841,51 +4093,7 @@ class StepFEA_ArbitraryVolume3dElementCoordinateSystem : public StepFEA_FeaRepre }; -%extend StepFEA_ArbitraryVolume3dElementCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem::Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem; -class Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem(); - Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem(const Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem &aHandle); - Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem(const StepFEA_ArbitraryVolume3dElementCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem { - StepFEA_ArbitraryVolume3dElementCoordinateSystem* _get_reference() { - return (StepFEA_ArbitraryVolume3dElementCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ArbitraryVolume3dElementCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ArbitraryVolume3dElementCoordinateSystem) %extend StepFEA_ArbitraryVolume3dElementCoordinateSystem { %pythoncode { @@ -5944,51 +4152,7 @@ class StepFEA_ConstantSurface3dElementCoordinateSystem : public StepFEA_FeaRepre }; -%extend StepFEA_ConstantSurface3dElementCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ConstantSurface3dElementCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ConstantSurface3dElementCoordinateSystem::Handle_StepFEA_ConstantSurface3dElementCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ConstantSurface3dElementCoordinateSystem; -class Handle_StepFEA_ConstantSurface3dElementCoordinateSystem : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_ConstantSurface3dElementCoordinateSystem(); - Handle_StepFEA_ConstantSurface3dElementCoordinateSystem(const Handle_StepFEA_ConstantSurface3dElementCoordinateSystem &aHandle); - Handle_StepFEA_ConstantSurface3dElementCoordinateSystem(const StepFEA_ConstantSurface3dElementCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ConstantSurface3dElementCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ConstantSurface3dElementCoordinateSystem { - StepFEA_ConstantSurface3dElementCoordinateSystem* _get_reference() { - return (StepFEA_ConstantSurface3dElementCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ConstantSurface3dElementCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ConstantSurface3dElementCoordinateSystem) %extend StepFEA_ConstantSurface3dElementCoordinateSystem { %pythoncode { @@ -6085,51 +4249,7 @@ class StepFEA_Curve3dElementRepresentation : public StepFEA_ElementRepresentatio }; -%extend StepFEA_Curve3dElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_Curve3dElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_Curve3dElementRepresentation::Handle_StepFEA_Curve3dElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_Curve3dElementRepresentation; -class Handle_StepFEA_Curve3dElementRepresentation : public Handle_StepFEA_ElementRepresentation { - - public: - // constructors - Handle_StepFEA_Curve3dElementRepresentation(); - Handle_StepFEA_Curve3dElementRepresentation(const Handle_StepFEA_Curve3dElementRepresentation &aHandle); - Handle_StepFEA_Curve3dElementRepresentation(const StepFEA_Curve3dElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_Curve3dElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_Curve3dElementRepresentation { - StepFEA_Curve3dElementRepresentation* _get_reference() { - return (StepFEA_Curve3dElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_Curve3dElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_Curve3dElementRepresentation) %extend StepFEA_Curve3dElementRepresentation { %pythoncode { @@ -6174,51 +4294,7 @@ class StepFEA_CurveElementIntervalConstant : public StepFEA_CurveElementInterval }; -%extend StepFEA_CurveElementIntervalConstant { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_CurveElementIntervalConstant(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_CurveElementIntervalConstant::Handle_StepFEA_CurveElementIntervalConstant %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_CurveElementIntervalConstant; -class Handle_StepFEA_CurveElementIntervalConstant : public Handle_StepFEA_CurveElementInterval { - - public: - // constructors - Handle_StepFEA_CurveElementIntervalConstant(); - Handle_StepFEA_CurveElementIntervalConstant(const Handle_StepFEA_CurveElementIntervalConstant &aHandle); - Handle_StepFEA_CurveElementIntervalConstant(const StepFEA_CurveElementIntervalConstant *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_CurveElementIntervalConstant DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_CurveElementIntervalConstant { - StepFEA_CurveElementIntervalConstant* _get_reference() { - return (StepFEA_CurveElementIntervalConstant*)$self->Access(); - } -}; - -%extend Handle_StepFEA_CurveElementIntervalConstant { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_CurveElementIntervalConstant) %extend StepFEA_CurveElementIntervalConstant { %pythoncode { @@ -6263,51 +4339,7 @@ class StepFEA_CurveElementIntervalLinearlyVarying : public StepFEA_CurveElementI }; -%extend StepFEA_CurveElementIntervalLinearlyVarying { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_CurveElementIntervalLinearlyVarying(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_CurveElementIntervalLinearlyVarying::Handle_StepFEA_CurveElementIntervalLinearlyVarying %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_CurveElementIntervalLinearlyVarying; -class Handle_StepFEA_CurveElementIntervalLinearlyVarying : public Handle_StepFEA_CurveElementInterval { - - public: - // constructors - Handle_StepFEA_CurveElementIntervalLinearlyVarying(); - Handle_StepFEA_CurveElementIntervalLinearlyVarying(const Handle_StepFEA_CurveElementIntervalLinearlyVarying &aHandle); - Handle_StepFEA_CurveElementIntervalLinearlyVarying(const StepFEA_CurveElementIntervalLinearlyVarying *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_CurveElementIntervalLinearlyVarying DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_CurveElementIntervalLinearlyVarying { - StepFEA_CurveElementIntervalLinearlyVarying* _get_reference() { - return (StepFEA_CurveElementIntervalLinearlyVarying*)$self->Access(); - } -}; - -%extend Handle_StepFEA_CurveElementIntervalLinearlyVarying { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_CurveElementIntervalLinearlyVarying) %extend StepFEA_CurveElementIntervalLinearlyVarying { %pythoncode { @@ -6326,51 +4358,7 @@ class StepFEA_DummyNode : public StepFEA_NodeRepresentation { }; -%extend StepFEA_DummyNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_DummyNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_DummyNode::Handle_StepFEA_DummyNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_DummyNode; -class Handle_StepFEA_DummyNode : public Handle_StepFEA_NodeRepresentation { - - public: - // constructors - Handle_StepFEA_DummyNode(); - Handle_StepFEA_DummyNode(const Handle_StepFEA_DummyNode &aHandle); - Handle_StepFEA_DummyNode(const StepFEA_DummyNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_DummyNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_DummyNode { - StepFEA_DummyNode* _get_reference() { - return (StepFEA_DummyNode*)$self->Access(); - } -}; - -%extend Handle_StepFEA_DummyNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_DummyNode) %extend StepFEA_DummyNode { %pythoncode { @@ -6417,51 +4405,7 @@ class StepFEA_ElementGroup : public StepFEA_FeaGroup { }; -%extend StepFEA_ElementGroup { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ElementGroup(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ElementGroup::Handle_StepFEA_ElementGroup %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ElementGroup; -class Handle_StepFEA_ElementGroup : public Handle_StepFEA_FeaGroup { - - public: - // constructors - Handle_StepFEA_ElementGroup(); - Handle_StepFEA_ElementGroup(const Handle_StepFEA_ElementGroup &aHandle); - Handle_StepFEA_ElementGroup(const StepFEA_ElementGroup *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ElementGroup DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ElementGroup { - StepFEA_ElementGroup* _get_reference() { - return (StepFEA_ElementGroup*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ElementGroup { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ElementGroup) %extend StepFEA_ElementGroup { %pythoncode { @@ -6504,51 +4448,7 @@ class StepFEA_FeaAreaDensity : public StepFEA_FeaMaterialPropertyRepresentationI }; -%extend StepFEA_FeaAreaDensity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaAreaDensity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaAreaDensity::Handle_StepFEA_FeaAreaDensity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaAreaDensity; -class Handle_StepFEA_FeaAreaDensity : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaAreaDensity(); - Handle_StepFEA_FeaAreaDensity(const Handle_StepFEA_FeaAreaDensity &aHandle); - Handle_StepFEA_FeaAreaDensity(const StepFEA_FeaAreaDensity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaAreaDensity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaAreaDensity { - StepFEA_FeaAreaDensity* _get_reference() { - return (StepFEA_FeaAreaDensity*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaAreaDensity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaAreaDensity) %extend StepFEA_FeaAreaDensity { %pythoncode { @@ -6591,51 +4491,7 @@ class StepFEA_FeaLinearElasticity : public StepFEA_FeaMaterialPropertyRepresenta }; -%extend StepFEA_FeaLinearElasticity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaLinearElasticity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaLinearElasticity::Handle_StepFEA_FeaLinearElasticity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaLinearElasticity; -class Handle_StepFEA_FeaLinearElasticity : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaLinearElasticity(); - Handle_StepFEA_FeaLinearElasticity(const Handle_StepFEA_FeaLinearElasticity &aHandle); - Handle_StepFEA_FeaLinearElasticity(const StepFEA_FeaLinearElasticity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaLinearElasticity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaLinearElasticity { - StepFEA_FeaLinearElasticity* _get_reference() { - return (StepFEA_FeaLinearElasticity*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaLinearElasticity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaLinearElasticity) %extend StepFEA_FeaLinearElasticity { %pythoncode { @@ -6678,51 +4534,7 @@ class StepFEA_FeaMassDensity : public StepFEA_FeaMaterialPropertyRepresentationI }; -%extend StepFEA_FeaMassDensity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaMassDensity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaMassDensity::Handle_StepFEA_FeaMassDensity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaMassDensity; -class Handle_StepFEA_FeaMassDensity : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaMassDensity(); - Handle_StepFEA_FeaMassDensity(const Handle_StepFEA_FeaMassDensity &aHandle); - Handle_StepFEA_FeaMassDensity(const StepFEA_FeaMassDensity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaMassDensity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaMassDensity { - StepFEA_FeaMassDensity* _get_reference() { - return (StepFEA_FeaMassDensity*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaMassDensity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaMassDensity) %extend StepFEA_FeaMassDensity { %pythoncode { @@ -6741,51 +4553,7 @@ class StepFEA_FeaModel3d : public StepFEA_FeaModel { }; -%extend StepFEA_FeaModel3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaModel3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaModel3d::Handle_StepFEA_FeaModel3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaModel3d; -class Handle_StepFEA_FeaModel3d : public Handle_StepFEA_FeaModel { - - public: - // constructors - Handle_StepFEA_FeaModel3d(); - Handle_StepFEA_FeaModel3d(const Handle_StepFEA_FeaModel3d &aHandle); - Handle_StepFEA_FeaModel3d(const StepFEA_FeaModel3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaModel3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaModel3d { - StepFEA_FeaModel3d* _get_reference() { - return (StepFEA_FeaModel3d*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaModel3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaModel3d) %extend StepFEA_FeaModel3d { %pythoncode { @@ -6828,51 +4596,7 @@ class StepFEA_FeaMoistureAbsorption : public StepFEA_FeaMaterialPropertyRepresen }; -%extend StepFEA_FeaMoistureAbsorption { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaMoistureAbsorption(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaMoistureAbsorption::Handle_StepFEA_FeaMoistureAbsorption %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaMoistureAbsorption; -class Handle_StepFEA_FeaMoistureAbsorption : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaMoistureAbsorption(); - Handle_StepFEA_FeaMoistureAbsorption(const Handle_StepFEA_FeaMoistureAbsorption &aHandle); - Handle_StepFEA_FeaMoistureAbsorption(const StepFEA_FeaMoistureAbsorption *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaMoistureAbsorption DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaMoistureAbsorption { - StepFEA_FeaMoistureAbsorption* _get_reference() { - return (StepFEA_FeaMoistureAbsorption*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaMoistureAbsorption { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaMoistureAbsorption) %extend StepFEA_FeaMoistureAbsorption { %pythoncode { @@ -6931,51 +4655,7 @@ class StepFEA_FeaSecantCoefficientOfLinearThermalExpansion : public StepFEA_FeaM }; -%extend StepFEA_FeaSecantCoefficientOfLinearThermalExpansion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion::Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion; -class Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion(); - Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion(const Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion &aHandle); - Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion(const StepFEA_FeaSecantCoefficientOfLinearThermalExpansion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion { - StepFEA_FeaSecantCoefficientOfLinearThermalExpansion* _get_reference() { - return (StepFEA_FeaSecantCoefficientOfLinearThermalExpansion*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaSecantCoefficientOfLinearThermalExpansion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaSecantCoefficientOfLinearThermalExpansion) %extend StepFEA_FeaSecantCoefficientOfLinearThermalExpansion { %pythoncode { @@ -7018,51 +4698,7 @@ class StepFEA_FeaShellBendingStiffness : public StepFEA_FeaMaterialPropertyRepre }; -%extend StepFEA_FeaShellBendingStiffness { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaShellBendingStiffness(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaShellBendingStiffness::Handle_StepFEA_FeaShellBendingStiffness %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaShellBendingStiffness; -class Handle_StepFEA_FeaShellBendingStiffness : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaShellBendingStiffness(); - Handle_StepFEA_FeaShellBendingStiffness(const Handle_StepFEA_FeaShellBendingStiffness &aHandle); - Handle_StepFEA_FeaShellBendingStiffness(const StepFEA_FeaShellBendingStiffness *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaShellBendingStiffness DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaShellBendingStiffness { - StepFEA_FeaShellBendingStiffness* _get_reference() { - return (StepFEA_FeaShellBendingStiffness*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaShellBendingStiffness { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaShellBendingStiffness) %extend StepFEA_FeaShellBendingStiffness { %pythoncode { @@ -7105,51 +4741,7 @@ class StepFEA_FeaShellMembraneBendingCouplingStiffness : public StepFEA_FeaMater }; -%extend StepFEA_FeaShellMembraneBendingCouplingStiffness { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness::Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness; -class Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness(); - Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness(const Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness &aHandle); - Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness(const StepFEA_FeaShellMembraneBendingCouplingStiffness *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness { - StepFEA_FeaShellMembraneBendingCouplingStiffness* _get_reference() { - return (StepFEA_FeaShellMembraneBendingCouplingStiffness*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaShellMembraneBendingCouplingStiffness { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaShellMembraneBendingCouplingStiffness) %extend StepFEA_FeaShellMembraneBendingCouplingStiffness { %pythoncode { @@ -7192,51 +4784,7 @@ class StepFEA_FeaShellMembraneStiffness : public StepFEA_FeaMaterialPropertyRepr }; -%extend StepFEA_FeaShellMembraneStiffness { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaShellMembraneStiffness(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaShellMembraneStiffness::Handle_StepFEA_FeaShellMembraneStiffness %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaShellMembraneStiffness; -class Handle_StepFEA_FeaShellMembraneStiffness : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaShellMembraneStiffness(); - Handle_StepFEA_FeaShellMembraneStiffness(const Handle_StepFEA_FeaShellMembraneStiffness &aHandle); - Handle_StepFEA_FeaShellMembraneStiffness(const StepFEA_FeaShellMembraneStiffness *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaShellMembraneStiffness DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaShellMembraneStiffness { - StepFEA_FeaShellMembraneStiffness* _get_reference() { - return (StepFEA_FeaShellMembraneStiffness*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaShellMembraneStiffness { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaShellMembraneStiffness) %extend StepFEA_FeaShellMembraneStiffness { %pythoncode { @@ -7279,51 +4827,7 @@ class StepFEA_FeaShellShearStiffness : public StepFEA_FeaMaterialPropertyReprese }; -%extend StepFEA_FeaShellShearStiffness { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaShellShearStiffness(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaShellShearStiffness::Handle_StepFEA_FeaShellShearStiffness %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaShellShearStiffness; -class Handle_StepFEA_FeaShellShearStiffness : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaShellShearStiffness(); - Handle_StepFEA_FeaShellShearStiffness(const Handle_StepFEA_FeaShellShearStiffness &aHandle); - Handle_StepFEA_FeaShellShearStiffness(const StepFEA_FeaShellShearStiffness *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaShellShearStiffness DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaShellShearStiffness { - StepFEA_FeaShellShearStiffness* _get_reference() { - return (StepFEA_FeaShellShearStiffness*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaShellShearStiffness { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaShellShearStiffness) %extend StepFEA_FeaShellShearStiffness { %pythoncode { @@ -7366,51 +4870,7 @@ class StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion : public StepFEA_ }; -%extend StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion::Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion; -class Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion : public Handle_StepFEA_FeaMaterialPropertyRepresentationItem { - - public: - // constructors - Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion(); - Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion(const Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion &aHandle); - Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion(const StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion { - StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion* _get_reference() { - return (StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion*)$self->Access(); - } -}; - -%extend Handle_StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion) %extend StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion { %pythoncode { @@ -7429,51 +4889,7 @@ class StepFEA_GeometricNode : public StepFEA_NodeRepresentation { }; -%extend StepFEA_GeometricNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_GeometricNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_GeometricNode::Handle_StepFEA_GeometricNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_GeometricNode; -class Handle_StepFEA_GeometricNode : public Handle_StepFEA_NodeRepresentation { - - public: - // constructors - Handle_StepFEA_GeometricNode(); - Handle_StepFEA_GeometricNode(const Handle_StepFEA_GeometricNode &aHandle); - Handle_StepFEA_GeometricNode(const StepFEA_GeometricNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_GeometricNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_GeometricNode { - StepFEA_GeometricNode* _get_reference() { - return (StepFEA_GeometricNode*)$self->Access(); - } -}; - -%extend Handle_StepFEA_GeometricNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_GeometricNode) %extend StepFEA_GeometricNode { %pythoncode { @@ -7492,51 +4908,7 @@ class StepFEA_Node : public StepFEA_NodeRepresentation { }; -%extend StepFEA_Node { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_Node(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_Node::Handle_StepFEA_Node %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_Node; -class Handle_StepFEA_Node : public Handle_StepFEA_NodeRepresentation { - - public: - // constructors - Handle_StepFEA_Node(); - Handle_StepFEA_Node(const Handle_StepFEA_Node &aHandle); - Handle_StepFEA_Node(const StepFEA_Node *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_Node DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_Node { - StepFEA_Node* _get_reference() { - return (StepFEA_Node*)$self->Access(); - } -}; - -%extend Handle_StepFEA_Node { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_Node) %extend StepFEA_Node { %pythoncode { @@ -7583,51 +4955,7 @@ class StepFEA_NodeGroup : public StepFEA_FeaGroup { }; -%extend StepFEA_NodeGroup { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_NodeGroup(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_NodeGroup::Handle_StepFEA_NodeGroup %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_NodeGroup; -class Handle_StepFEA_NodeGroup : public Handle_StepFEA_FeaGroup { - - public: - // constructors - Handle_StepFEA_NodeGroup(); - Handle_StepFEA_NodeGroup(const Handle_StepFEA_NodeGroup &aHandle); - Handle_StepFEA_NodeGroup(const StepFEA_NodeGroup *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_NodeGroup DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_NodeGroup { - StepFEA_NodeGroup* _get_reference() { - return (StepFEA_NodeGroup*)$self->Access(); - } -}; - -%extend Handle_StepFEA_NodeGroup { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_NodeGroup) %extend StepFEA_NodeGroup { %pythoncode { @@ -7670,51 +4998,7 @@ class StepFEA_ParametricCurve3dElementCoordinateDirection : public StepFEA_FeaRe }; -%extend StepFEA_ParametricCurve3dElementCoordinateDirection { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ParametricCurve3dElementCoordinateDirection(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ParametricCurve3dElementCoordinateDirection::Handle_StepFEA_ParametricCurve3dElementCoordinateDirection %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ParametricCurve3dElementCoordinateDirection; -class Handle_StepFEA_ParametricCurve3dElementCoordinateDirection : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_ParametricCurve3dElementCoordinateDirection(); - Handle_StepFEA_ParametricCurve3dElementCoordinateDirection(const Handle_StepFEA_ParametricCurve3dElementCoordinateDirection &aHandle); - Handle_StepFEA_ParametricCurve3dElementCoordinateDirection(const StepFEA_ParametricCurve3dElementCoordinateDirection *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ParametricCurve3dElementCoordinateDirection DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ParametricCurve3dElementCoordinateDirection { - StepFEA_ParametricCurve3dElementCoordinateDirection* _get_reference() { - return (StepFEA_ParametricCurve3dElementCoordinateDirection*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ParametricCurve3dElementCoordinateDirection { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ParametricCurve3dElementCoordinateDirection) %extend StepFEA_ParametricCurve3dElementCoordinateDirection { %pythoncode { @@ -7757,51 +5041,7 @@ class StepFEA_ParametricCurve3dElementCoordinateSystem : public StepFEA_FeaRepre }; -%extend StepFEA_ParametricCurve3dElementCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ParametricCurve3dElementCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ParametricCurve3dElementCoordinateSystem::Handle_StepFEA_ParametricCurve3dElementCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ParametricCurve3dElementCoordinateSystem; -class Handle_StepFEA_ParametricCurve3dElementCoordinateSystem : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_ParametricCurve3dElementCoordinateSystem(); - Handle_StepFEA_ParametricCurve3dElementCoordinateSystem(const Handle_StepFEA_ParametricCurve3dElementCoordinateSystem &aHandle); - Handle_StepFEA_ParametricCurve3dElementCoordinateSystem(const StepFEA_ParametricCurve3dElementCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ParametricCurve3dElementCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ParametricCurve3dElementCoordinateSystem { - StepFEA_ParametricCurve3dElementCoordinateSystem* _get_reference() { - return (StepFEA_ParametricCurve3dElementCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ParametricCurve3dElementCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ParametricCurve3dElementCoordinateSystem) %extend StepFEA_ParametricCurve3dElementCoordinateSystem { %pythoncode { @@ -7860,51 +5100,7 @@ class StepFEA_ParametricSurface3dElementCoordinateSystem : public StepFEA_FeaRep }; -%extend StepFEA_ParametricSurface3dElementCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_ParametricSurface3dElementCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_ParametricSurface3dElementCoordinateSystem::Handle_StepFEA_ParametricSurface3dElementCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_ParametricSurface3dElementCoordinateSystem; -class Handle_StepFEA_ParametricSurface3dElementCoordinateSystem : public Handle_StepFEA_FeaRepresentationItem { - - public: - // constructors - Handle_StepFEA_ParametricSurface3dElementCoordinateSystem(); - Handle_StepFEA_ParametricSurface3dElementCoordinateSystem(const Handle_StepFEA_ParametricSurface3dElementCoordinateSystem &aHandle); - Handle_StepFEA_ParametricSurface3dElementCoordinateSystem(const StepFEA_ParametricSurface3dElementCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_ParametricSurface3dElementCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_ParametricSurface3dElementCoordinateSystem { - StepFEA_ParametricSurface3dElementCoordinateSystem* _get_reference() { - return (StepFEA_ParametricSurface3dElementCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_ParametricSurface3dElementCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_ParametricSurface3dElementCoordinateSystem) %extend StepFEA_ParametricSurface3dElementCoordinateSystem { %pythoncode { @@ -8001,51 +5197,7 @@ class StepFEA_Surface3dElementRepresentation : public StepFEA_ElementRepresentat }; -%extend StepFEA_Surface3dElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_Surface3dElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_Surface3dElementRepresentation::Handle_StepFEA_Surface3dElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_Surface3dElementRepresentation; -class Handle_StepFEA_Surface3dElementRepresentation : public Handle_StepFEA_ElementRepresentation { - - public: - // constructors - Handle_StepFEA_Surface3dElementRepresentation(); - Handle_StepFEA_Surface3dElementRepresentation(const Handle_StepFEA_Surface3dElementRepresentation &aHandle); - Handle_StepFEA_Surface3dElementRepresentation(const StepFEA_Surface3dElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_Surface3dElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_Surface3dElementRepresentation { - StepFEA_Surface3dElementRepresentation* _get_reference() { - return (StepFEA_Surface3dElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_Surface3dElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_Surface3dElementRepresentation) %extend StepFEA_Surface3dElementRepresentation { %pythoncode { @@ -8126,51 +5278,7 @@ class StepFEA_Volume3dElementRepresentation : public StepFEA_ElementRepresentati }; -%extend StepFEA_Volume3dElementRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_Volume3dElementRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_Volume3dElementRepresentation::Handle_StepFEA_Volume3dElementRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_Volume3dElementRepresentation; -class Handle_StepFEA_Volume3dElementRepresentation : public Handle_StepFEA_ElementRepresentation { - - public: - // constructors - Handle_StepFEA_Volume3dElementRepresentation(); - Handle_StepFEA_Volume3dElementRepresentation(const Handle_StepFEA_Volume3dElementRepresentation &aHandle); - Handle_StepFEA_Volume3dElementRepresentation(const StepFEA_Volume3dElementRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_Volume3dElementRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_Volume3dElementRepresentation { - StepFEA_Volume3dElementRepresentation* _get_reference() { - return (StepFEA_Volume3dElementRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepFEA_Volume3dElementRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_Volume3dElementRepresentation) %extend StepFEA_Volume3dElementRepresentation { %pythoncode { @@ -8189,51 +5297,7 @@ class StepFEA_NodeWithSolutionCoordinateSystem : public StepFEA_Node { }; -%extend StepFEA_NodeWithSolutionCoordinateSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_NodeWithSolutionCoordinateSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_NodeWithSolutionCoordinateSystem::Handle_StepFEA_NodeWithSolutionCoordinateSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_NodeWithSolutionCoordinateSystem; -class Handle_StepFEA_NodeWithSolutionCoordinateSystem : public Handle_StepFEA_Node { - - public: - // constructors - Handle_StepFEA_NodeWithSolutionCoordinateSystem(); - Handle_StepFEA_NodeWithSolutionCoordinateSystem(const Handle_StepFEA_NodeWithSolutionCoordinateSystem &aHandle); - Handle_StepFEA_NodeWithSolutionCoordinateSystem(const StepFEA_NodeWithSolutionCoordinateSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_NodeWithSolutionCoordinateSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_NodeWithSolutionCoordinateSystem { - StepFEA_NodeWithSolutionCoordinateSystem* _get_reference() { - return (StepFEA_NodeWithSolutionCoordinateSystem*)$self->Access(); - } -}; - -%extend Handle_StepFEA_NodeWithSolutionCoordinateSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_NodeWithSolutionCoordinateSystem) %extend StepFEA_NodeWithSolutionCoordinateSystem { %pythoncode { @@ -8252,51 +5316,7 @@ class StepFEA_NodeWithVector : public StepFEA_Node { }; -%extend StepFEA_NodeWithVector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepFEA_NodeWithVector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepFEA_NodeWithVector::Handle_StepFEA_NodeWithVector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepFEA_NodeWithVector; -class Handle_StepFEA_NodeWithVector : public Handle_StepFEA_Node { - - public: - // constructors - Handle_StepFEA_NodeWithVector(); - Handle_StepFEA_NodeWithVector(const Handle_StepFEA_NodeWithVector &aHandle); - Handle_StepFEA_NodeWithVector(const StepFEA_NodeWithVector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepFEA_NodeWithVector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepFEA_NodeWithVector { - StepFEA_NodeWithVector* _get_reference() { - return (StepFEA_NodeWithVector*)$self->Access(); - } -}; - -%extend Handle_StepFEA_NodeWithVector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepFEA_NodeWithVector) %extend StepFEA_NodeWithVector { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepGeom.i b/src/SWIG_files/wrapper/StepGeom.i index 5908377a3..c62c4ae44 100644 --- a/src/SWIG_files/wrapper/StepGeom.i +++ b/src/SWIG_files/wrapper/StepGeom.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STEPGEOMDOCSTRING -"No docstring provided." +"-Purpose : AP214 CC1 , Revision 4 for Geom (Part42, geometric) +Upgrading from Revision 2 to Revision 4 : 26 Mar 1997 +" %enddef %module (package="OCC.Core", docstring=STEPGEOMDOCSTRING) StepGeom @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepGeom_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -108,6 +96,100 @@ enum StepGeom_TransitionCode { /* end public enums declaration */ +%wrap_handle(StepGeom_CompositeCurveSegment) +%wrap_handle(StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx) +%wrap_handle(StepGeom_GeometricRepresentationContext) +%wrap_handle(StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext) +%wrap_handle(StepGeom_GeometricRepresentationContextAndParametricRepresentationContext) +%wrap_handle(StepGeom_GeometricRepresentationItem) +%wrap_handle(StepGeom_HArray1OfBoundaryCurve) +%wrap_handle(StepGeom_HArray1OfCartesianPoint) +%wrap_handle(StepGeom_HArray1OfCompositeCurveSegment) +%wrap_handle(StepGeom_HArray1OfCurve) +%wrap_handle(StepGeom_HArray1OfPcurveOrSurface) +%wrap_handle(StepGeom_HArray1OfSurfaceBoundary) +%wrap_handle(StepGeom_HArray1OfTrimmingSelect) +%wrap_handle(StepGeom_HArray2OfCartesianPoint) +%wrap_handle(StepGeom_HArray2OfSurfacePatch) +%wrap_handle(StepGeom_SurfacePatch) +%wrap_handle(StepGeom_TrimmingMember) +%wrap_handle(StepGeom_CartesianTransformationOperator) +%wrap_handle(StepGeom_Curve) +%wrap_handle(StepGeom_Direction) +%wrap_handle(StepGeom_Placement) +%wrap_handle(StepGeom_Point) +%wrap_handle(StepGeom_ReparametrisedCompositeCurveSegment) +%wrap_handle(StepGeom_Surface) +%wrap_handle(StepGeom_Vector) +%wrap_handle(StepGeom_Axis1Placement) +%wrap_handle(StepGeom_Axis2Placement2d) +%wrap_handle(StepGeom_Axis2Placement3d) +%wrap_handle(StepGeom_BoundedCurve) +%wrap_handle(StepGeom_BoundedSurface) +%wrap_handle(StepGeom_CartesianPoint) +%wrap_handle(StepGeom_CartesianTransformationOperator2d) +%wrap_handle(StepGeom_CartesianTransformationOperator3d) +%wrap_handle(StepGeom_Conic) +%wrap_handle(StepGeom_CurveReplica) +%wrap_handle(StepGeom_DegeneratePcurve) +%wrap_handle(StepGeom_ElementarySurface) +%wrap_handle(StepGeom_Line) +%wrap_handle(StepGeom_OffsetCurve3d) +%wrap_handle(StepGeom_OffsetSurface) +%wrap_handle(StepGeom_OrientedSurface) +%wrap_handle(StepGeom_Pcurve) +%wrap_handle(StepGeom_PointOnCurve) +%wrap_handle(StepGeom_PointOnSurface) +%wrap_handle(StepGeom_PointReplica) +%wrap_handle(StepGeom_SurfaceCurve) +%wrap_handle(StepGeom_SurfaceReplica) +%wrap_handle(StepGeom_SweptSurface) +%wrap_handle(StepGeom_BSplineCurve) +%wrap_handle(StepGeom_BSplineSurface) +%wrap_handle(StepGeom_Circle) +%wrap_handle(StepGeom_CompositeCurve) +%wrap_handle(StepGeom_ConicalSurface) +%wrap_handle(StepGeom_CurveBoundedSurface) +%wrap_handle(StepGeom_CylindricalSurface) +%wrap_handle(StepGeom_Ellipse) +%wrap_handle(StepGeom_EvaluatedDegeneratePcurve) +%wrap_handle(StepGeom_Hyperbola) +%wrap_handle(StepGeom_IntersectionCurve) +%wrap_handle(StepGeom_Parabola) +%wrap_handle(StepGeom_Plane) +%wrap_handle(StepGeom_Polyline) +%wrap_handle(StepGeom_RectangularCompositeSurface) +%wrap_handle(StepGeom_RectangularTrimmedSurface) +%wrap_handle(StepGeom_SeamCurve) +%wrap_handle(StepGeom_SphericalSurface) +%wrap_handle(StepGeom_SurfaceCurveAndBoundedCurve) +%wrap_handle(StepGeom_SurfaceOfLinearExtrusion) +%wrap_handle(StepGeom_SurfaceOfRevolution) +%wrap_handle(StepGeom_ToroidalSurface) +%wrap_handle(StepGeom_TrimmedCurve) +%wrap_handle(StepGeom_BSplineCurveWithKnots) +%wrap_handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) +%wrap_handle(StepGeom_BSplineSurfaceWithKnots) +%wrap_handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) +%wrap_handle(StepGeom_BezierCurve) +%wrap_handle(StepGeom_BezierCurveAndRationalBSplineCurve) +%wrap_handle(StepGeom_BezierSurface) +%wrap_handle(StepGeom_BezierSurfaceAndRationalBSplineSurface) +%wrap_handle(StepGeom_CompositeCurveOnSurface) +%wrap_handle(StepGeom_DegenerateToroidalSurface) +%wrap_handle(StepGeom_QuasiUniformCurve) +%wrap_handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve) +%wrap_handle(StepGeom_QuasiUniformSurface) +%wrap_handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface) +%wrap_handle(StepGeom_RationalBSplineCurve) +%wrap_handle(StepGeom_RationalBSplineSurface) +%wrap_handle(StepGeom_UniformCurve) +%wrap_handle(StepGeom_UniformCurveAndRationalBSplineCurve) +%wrap_handle(StepGeom_UniformSurface) +%wrap_handle(StepGeom_UniformSurfaceAndRationalBSplineSurface) +%wrap_handle(StepGeom_BoundaryCurve) +%wrap_handle(StepGeom_OuterBoundaryCurve) + %nodefaultctor StepGeom_Array1OfBoundaryCurve; class StepGeom_Array1OfBoundaryCurve { public: @@ -1024,51 +1106,7 @@ class StepGeom_CompositeCurveSegment : public MMgt_TShared { }; -%extend StepGeom_CompositeCurveSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CompositeCurveSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CompositeCurveSegment::Handle_StepGeom_CompositeCurveSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CompositeCurveSegment; -class Handle_StepGeom_CompositeCurveSegment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_CompositeCurveSegment(); - Handle_StepGeom_CompositeCurveSegment(const Handle_StepGeom_CompositeCurveSegment &aHandle); - Handle_StepGeom_CompositeCurveSegment(const StepGeom_CompositeCurveSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CompositeCurveSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CompositeCurveSegment { - StepGeom_CompositeCurveSegment* _get_reference() { - return (StepGeom_CompositeCurveSegment*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CompositeCurveSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CompositeCurveSegment) %extend StepGeom_CompositeCurveSegment { %pythoncode { @@ -1244,51 +1282,7 @@ class StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx : public }; -%extend StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx::Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx; -class Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx(); - Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx(const Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx &aHandle); - Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx(const StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx { - StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx* _get_reference() { - return (StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx*)$self->Access(); - } -}; - -%extend Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx) %extend StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx { %pythoncode { @@ -1335,51 +1329,7 @@ class StepGeom_GeometricRepresentationContext : public StepRepr_RepresentationCo }; -%extend StepGeom_GeometricRepresentationContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_GeometricRepresentationContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_GeometricRepresentationContext::Handle_StepGeom_GeometricRepresentationContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_GeometricRepresentationContext; -class Handle_StepGeom_GeometricRepresentationContext : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepGeom_GeometricRepresentationContext(); - Handle_StepGeom_GeometricRepresentationContext(const Handle_StepGeom_GeometricRepresentationContext &aHandle); - Handle_StepGeom_GeometricRepresentationContext(const StepGeom_GeometricRepresentationContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_GeometricRepresentationContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_GeometricRepresentationContext { - StepGeom_GeometricRepresentationContext* _get_reference() { - return (StepGeom_GeometricRepresentationContext*)$self->Access(); - } -}; - -%extend Handle_StepGeom_GeometricRepresentationContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_GeometricRepresentationContext) %extend StepGeom_GeometricRepresentationContext { %pythoncode { @@ -1480,51 +1430,7 @@ class StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext : publ }; -%extend StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext::Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext; -class Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext(); - Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext(const Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext &aHandle); - Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext(const StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext { - StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext* _get_reference() { - return (StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext*)$self->Access(); - } -}; - -%extend Handle_StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext) %extend StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext { %pythoncode { @@ -1603,51 +1509,7 @@ class StepGeom_GeometricRepresentationContextAndParametricRepresentationContext }; -%extend StepGeom_GeometricRepresentationContextAndParametricRepresentationContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext::Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext; -class Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext(); - Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext(const Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext &aHandle); - Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext(const StepGeom_GeometricRepresentationContextAndParametricRepresentationContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext { - StepGeom_GeometricRepresentationContextAndParametricRepresentationContext* _get_reference() { - return (StepGeom_GeometricRepresentationContextAndParametricRepresentationContext*)$self->Access(); - } -}; - -%extend Handle_StepGeom_GeometricRepresentationContextAndParametricRepresentationContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_GeometricRepresentationContextAndParametricRepresentationContext) %extend StepGeom_GeometricRepresentationContextAndParametricRepresentationContext { %pythoncode { @@ -1666,51 +1528,7 @@ class StepGeom_GeometricRepresentationItem : public StepRepr_RepresentationItem }; -%extend StepGeom_GeometricRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_GeometricRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_GeometricRepresentationItem::Handle_StepGeom_GeometricRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_GeometricRepresentationItem; -class Handle_StepGeom_GeometricRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepGeom_GeometricRepresentationItem(); - Handle_StepGeom_GeometricRepresentationItem(const Handle_StepGeom_GeometricRepresentationItem &aHandle); - Handle_StepGeom_GeometricRepresentationItem(const StepGeom_GeometricRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_GeometricRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_GeometricRepresentationItem { - StepGeom_GeometricRepresentationItem* _get_reference() { - return (StepGeom_GeometricRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepGeom_GeometricRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_GeometricRepresentationItem) %extend StepGeom_GeometricRepresentationItem { %pythoncode { @@ -1787,51 +1605,7 @@ class StepGeom_HArray1OfBoundaryCurve : public MMgt_TShared { }; -%extend StepGeom_HArray1OfBoundaryCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfBoundaryCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfBoundaryCurve::Handle_StepGeom_HArray1OfBoundaryCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfBoundaryCurve; -class Handle_StepGeom_HArray1OfBoundaryCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfBoundaryCurve(); - Handle_StepGeom_HArray1OfBoundaryCurve(const Handle_StepGeom_HArray1OfBoundaryCurve &aHandle); - Handle_StepGeom_HArray1OfBoundaryCurve(const StepGeom_HArray1OfBoundaryCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfBoundaryCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfBoundaryCurve { - StepGeom_HArray1OfBoundaryCurve* _get_reference() { - return (StepGeom_HArray1OfBoundaryCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfBoundaryCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfBoundaryCurve) %extend StepGeom_HArray1OfBoundaryCurve { %pythoncode { @@ -1908,51 +1682,7 @@ class StepGeom_HArray1OfCartesianPoint : public MMgt_TShared { }; -%extend StepGeom_HArray1OfCartesianPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfCartesianPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfCartesianPoint::Handle_StepGeom_HArray1OfCartesianPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfCartesianPoint; -class Handle_StepGeom_HArray1OfCartesianPoint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfCartesianPoint(); - Handle_StepGeom_HArray1OfCartesianPoint(const Handle_StepGeom_HArray1OfCartesianPoint &aHandle); - Handle_StepGeom_HArray1OfCartesianPoint(const StepGeom_HArray1OfCartesianPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfCartesianPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfCartesianPoint { - StepGeom_HArray1OfCartesianPoint* _get_reference() { - return (StepGeom_HArray1OfCartesianPoint*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfCartesianPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfCartesianPoint) %extend StepGeom_HArray1OfCartesianPoint { %pythoncode { @@ -2029,51 +1759,7 @@ class StepGeom_HArray1OfCompositeCurveSegment : public MMgt_TShared { }; -%extend StepGeom_HArray1OfCompositeCurveSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfCompositeCurveSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfCompositeCurveSegment::Handle_StepGeom_HArray1OfCompositeCurveSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfCompositeCurveSegment; -class Handle_StepGeom_HArray1OfCompositeCurveSegment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfCompositeCurveSegment(); - Handle_StepGeom_HArray1OfCompositeCurveSegment(const Handle_StepGeom_HArray1OfCompositeCurveSegment &aHandle); - Handle_StepGeom_HArray1OfCompositeCurveSegment(const StepGeom_HArray1OfCompositeCurveSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfCompositeCurveSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfCompositeCurveSegment { - StepGeom_HArray1OfCompositeCurveSegment* _get_reference() { - return (StepGeom_HArray1OfCompositeCurveSegment*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfCompositeCurveSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfCompositeCurveSegment) %extend StepGeom_HArray1OfCompositeCurveSegment { %pythoncode { @@ -2150,51 +1836,7 @@ class StepGeom_HArray1OfCurve : public MMgt_TShared { }; -%extend StepGeom_HArray1OfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfCurve::Handle_StepGeom_HArray1OfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfCurve; -class Handle_StepGeom_HArray1OfCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfCurve(); - Handle_StepGeom_HArray1OfCurve(const Handle_StepGeom_HArray1OfCurve &aHandle); - Handle_StepGeom_HArray1OfCurve(const StepGeom_HArray1OfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfCurve { - StepGeom_HArray1OfCurve* _get_reference() { - return (StepGeom_HArray1OfCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfCurve) %extend StepGeom_HArray1OfCurve { %pythoncode { @@ -2271,51 +1913,7 @@ class StepGeom_HArray1OfPcurveOrSurface : public MMgt_TShared { }; -%extend StepGeom_HArray1OfPcurveOrSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfPcurveOrSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfPcurveOrSurface::Handle_StepGeom_HArray1OfPcurveOrSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfPcurveOrSurface; -class Handle_StepGeom_HArray1OfPcurveOrSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfPcurveOrSurface(); - Handle_StepGeom_HArray1OfPcurveOrSurface(const Handle_StepGeom_HArray1OfPcurveOrSurface &aHandle); - Handle_StepGeom_HArray1OfPcurveOrSurface(const StepGeom_HArray1OfPcurveOrSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfPcurveOrSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfPcurveOrSurface { - StepGeom_HArray1OfPcurveOrSurface* _get_reference() { - return (StepGeom_HArray1OfPcurveOrSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfPcurveOrSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfPcurveOrSurface) %extend StepGeom_HArray1OfPcurveOrSurface { %pythoncode { @@ -2392,51 +1990,7 @@ class StepGeom_HArray1OfSurfaceBoundary : public MMgt_TShared { }; -%extend StepGeom_HArray1OfSurfaceBoundary { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfSurfaceBoundary(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfSurfaceBoundary::Handle_StepGeom_HArray1OfSurfaceBoundary %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfSurfaceBoundary; -class Handle_StepGeom_HArray1OfSurfaceBoundary : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfSurfaceBoundary(); - Handle_StepGeom_HArray1OfSurfaceBoundary(const Handle_StepGeom_HArray1OfSurfaceBoundary &aHandle); - Handle_StepGeom_HArray1OfSurfaceBoundary(const StepGeom_HArray1OfSurfaceBoundary *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfSurfaceBoundary DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfSurfaceBoundary { - StepGeom_HArray1OfSurfaceBoundary* _get_reference() { - return (StepGeom_HArray1OfSurfaceBoundary*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfSurfaceBoundary { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfSurfaceBoundary) %extend StepGeom_HArray1OfSurfaceBoundary { %pythoncode { @@ -2513,51 +2067,7 @@ class StepGeom_HArray1OfTrimmingSelect : public MMgt_TShared { }; -%extend StepGeom_HArray1OfTrimmingSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray1OfTrimmingSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray1OfTrimmingSelect::Handle_StepGeom_HArray1OfTrimmingSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray1OfTrimmingSelect; -class Handle_StepGeom_HArray1OfTrimmingSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray1OfTrimmingSelect(); - Handle_StepGeom_HArray1OfTrimmingSelect(const Handle_StepGeom_HArray1OfTrimmingSelect &aHandle); - Handle_StepGeom_HArray1OfTrimmingSelect(const StepGeom_HArray1OfTrimmingSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray1OfTrimmingSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray1OfTrimmingSelect { - StepGeom_HArray1OfTrimmingSelect* _get_reference() { - return (StepGeom_HArray1OfTrimmingSelect*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray1OfTrimmingSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray1OfTrimmingSelect) %extend StepGeom_HArray1OfTrimmingSelect { %pythoncode { @@ -2660,51 +2170,7 @@ class StepGeom_HArray2OfCartesianPoint : public MMgt_TShared { }; -%extend StepGeom_HArray2OfCartesianPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray2OfCartesianPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray2OfCartesianPoint::Handle_StepGeom_HArray2OfCartesianPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray2OfCartesianPoint; -class Handle_StepGeom_HArray2OfCartesianPoint : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray2OfCartesianPoint(); - Handle_StepGeom_HArray2OfCartesianPoint(const Handle_StepGeom_HArray2OfCartesianPoint &aHandle); - Handle_StepGeom_HArray2OfCartesianPoint(const StepGeom_HArray2OfCartesianPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray2OfCartesianPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray2OfCartesianPoint { - StepGeom_HArray2OfCartesianPoint* _get_reference() { - return (StepGeom_HArray2OfCartesianPoint*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray2OfCartesianPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray2OfCartesianPoint) %extend StepGeom_HArray2OfCartesianPoint { %pythoncode { @@ -2807,51 +2273,7 @@ class StepGeom_HArray2OfSurfacePatch : public MMgt_TShared { }; -%extend StepGeom_HArray2OfSurfacePatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_HArray2OfSurfacePatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_HArray2OfSurfacePatch::Handle_StepGeom_HArray2OfSurfacePatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_HArray2OfSurfacePatch; -class Handle_StepGeom_HArray2OfSurfacePatch : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_HArray2OfSurfacePatch(); - Handle_StepGeom_HArray2OfSurfacePatch(const Handle_StepGeom_HArray2OfSurfacePatch &aHandle); - Handle_StepGeom_HArray2OfSurfacePatch(const StepGeom_HArray2OfSurfacePatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_HArray2OfSurfacePatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_HArray2OfSurfacePatch { - StepGeom_HArray2OfSurfacePatch* _get_reference() { - return (StepGeom_HArray2OfSurfacePatch*)$self->Access(); - } -}; - -%extend Handle_StepGeom_HArray2OfSurfacePatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_HArray2OfSurfacePatch) %extend StepGeom_HArray2OfSurfacePatch { %pythoncode { @@ -3008,51 +2430,7 @@ class StepGeom_SurfacePatch : public MMgt_TShared { }; -%extend StepGeom_SurfacePatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SurfacePatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SurfacePatch::Handle_StepGeom_SurfacePatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SurfacePatch; -class Handle_StepGeom_SurfacePatch : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepGeom_SurfacePatch(); - Handle_StepGeom_SurfacePatch(const Handle_StepGeom_SurfacePatch &aHandle); - Handle_StepGeom_SurfacePatch(const StepGeom_SurfacePatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SurfacePatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SurfacePatch { - StepGeom_SurfacePatch* _get_reference() { - return (StepGeom_SurfacePatch*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SurfacePatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SurfacePatch) %extend StepGeom_SurfacePatch { %pythoncode { @@ -3083,51 +2461,7 @@ class StepGeom_TrimmingMember : public StepData_SelectReal { }; -%extend StepGeom_TrimmingMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_TrimmingMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_TrimmingMember::Handle_StepGeom_TrimmingMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_TrimmingMember; -class Handle_StepGeom_TrimmingMember : public Handle_StepData_SelectReal { - - public: - // constructors - Handle_StepGeom_TrimmingMember(); - Handle_StepGeom_TrimmingMember(const Handle_StepGeom_TrimmingMember &aHandle); - Handle_StepGeom_TrimmingMember(const StepGeom_TrimmingMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_TrimmingMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_TrimmingMember { - StepGeom_TrimmingMember* _get_reference() { - return (StepGeom_TrimmingMember*)$self->Access(); - } -}; - -%extend Handle_StepGeom_TrimmingMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_TrimmingMember) %extend StepGeom_TrimmingMember { %pythoncode { @@ -3332,51 +2666,7 @@ class StepGeom_CartesianTransformationOperator : public StepGeom_GeometricRepres }; -%extend StepGeom_CartesianTransformationOperator { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CartesianTransformationOperator(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CartesianTransformationOperator::Handle_StepGeom_CartesianTransformationOperator %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CartesianTransformationOperator; -class Handle_StepGeom_CartesianTransformationOperator : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_CartesianTransformationOperator(); - Handle_StepGeom_CartesianTransformationOperator(const Handle_StepGeom_CartesianTransformationOperator &aHandle); - Handle_StepGeom_CartesianTransformationOperator(const StepGeom_CartesianTransformationOperator *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CartesianTransformationOperator DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CartesianTransformationOperator { - StepGeom_CartesianTransformationOperator* _get_reference() { - return (StepGeom_CartesianTransformationOperator*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CartesianTransformationOperator { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CartesianTransformationOperator) %extend StepGeom_CartesianTransformationOperator { %pythoncode { @@ -3395,51 +2685,7 @@ class StepGeom_Curve : public StepGeom_GeometricRepresentationItem { }; -%extend StepGeom_Curve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Curve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Curve::Handle_StepGeom_Curve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Curve; -class Handle_StepGeom_Curve : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_Curve(); - Handle_StepGeom_Curve(const Handle_StepGeom_Curve &aHandle); - Handle_StepGeom_Curve(const StepGeom_Curve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Curve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Curve { - StepGeom_Curve* _get_reference() { - return (StepGeom_Curve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Curve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Curve) %extend StepGeom_Curve { %pythoncode { @@ -3492,55 +2738,11 @@ class StepGeom_Direction : public StepGeom_GeometricRepresentationItem { }; +%make_alias(StepGeom_Direction) + %extend StepGeom_Direction { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Direction(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Direction::Handle_StepGeom_Direction %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Direction; -class Handle_StepGeom_Direction : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_Direction(); - Handle_StepGeom_Direction(const Handle_StepGeom_Direction &aHandle); - Handle_StepGeom_Direction(const StepGeom_Direction *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Direction DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Direction { - StepGeom_Direction* _get_reference() { - return (StepGeom_Direction*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Direction { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepGeom_Direction { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepGeom_Placement; @@ -3579,51 +2781,7 @@ class StepGeom_Placement : public StepGeom_GeometricRepresentationItem { }; -%extend StepGeom_Placement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Placement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Placement::Handle_StepGeom_Placement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Placement; -class Handle_StepGeom_Placement : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_Placement(); - Handle_StepGeom_Placement(const Handle_StepGeom_Placement &aHandle); - Handle_StepGeom_Placement(const StepGeom_Placement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Placement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Placement { - StepGeom_Placement* _get_reference() { - return (StepGeom_Placement*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Placement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Placement) %extend StepGeom_Placement { %pythoncode { @@ -3642,51 +2800,7 @@ class StepGeom_Point : public StepGeom_GeometricRepresentationItem { }; -%extend StepGeom_Point { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Point(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Point::Handle_StepGeom_Point %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Point; -class Handle_StepGeom_Point : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_Point(); - Handle_StepGeom_Point(const Handle_StepGeom_Point &aHandle); - Handle_StepGeom_Point(const StepGeom_Point *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Point DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Point { - StepGeom_Point* _get_reference() { - return (StepGeom_Point*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Point { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Point) %extend StepGeom_Point { %pythoncode { @@ -3737,51 +2851,7 @@ class StepGeom_ReparametrisedCompositeCurveSegment : public StepGeom_CompositeCu }; -%extend StepGeom_ReparametrisedCompositeCurveSegment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_ReparametrisedCompositeCurveSegment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_ReparametrisedCompositeCurveSegment::Handle_StepGeom_ReparametrisedCompositeCurveSegment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_ReparametrisedCompositeCurveSegment; -class Handle_StepGeom_ReparametrisedCompositeCurveSegment : public Handle_StepGeom_CompositeCurveSegment { - - public: - // constructors - Handle_StepGeom_ReparametrisedCompositeCurveSegment(); - Handle_StepGeom_ReparametrisedCompositeCurveSegment(const Handle_StepGeom_ReparametrisedCompositeCurveSegment &aHandle); - Handle_StepGeom_ReparametrisedCompositeCurveSegment(const StepGeom_ReparametrisedCompositeCurveSegment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_ReparametrisedCompositeCurveSegment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_ReparametrisedCompositeCurveSegment { - StepGeom_ReparametrisedCompositeCurveSegment* _get_reference() { - return (StepGeom_ReparametrisedCompositeCurveSegment*)$self->Access(); - } -}; - -%extend Handle_StepGeom_ReparametrisedCompositeCurveSegment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_ReparametrisedCompositeCurveSegment) %extend StepGeom_ReparametrisedCompositeCurveSegment { %pythoncode { @@ -3800,51 +2870,7 @@ class StepGeom_Surface : public StepGeom_GeometricRepresentationItem { }; -%extend StepGeom_Surface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Surface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Surface::Handle_StepGeom_Surface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Surface; -class Handle_StepGeom_Surface : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_Surface(); - Handle_StepGeom_Surface(const Handle_StepGeom_Surface &aHandle); - Handle_StepGeom_Surface(const StepGeom_Surface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Surface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Surface { - StepGeom_Surface* _get_reference() { - return (StepGeom_Surface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Surface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Surface) %extend StepGeom_Surface { %pythoncode { @@ -3899,51 +2925,7 @@ class StepGeom_Vector : public StepGeom_GeometricRepresentationItem { }; -%extend StepGeom_Vector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Vector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Vector::Handle_StepGeom_Vector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Vector; -class Handle_StepGeom_Vector : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepGeom_Vector(); - Handle_StepGeom_Vector(const Handle_StepGeom_Vector &aHandle); - Handle_StepGeom_Vector(const StepGeom_Vector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Vector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Vector { - StepGeom_Vector* _get_reference() { - return (StepGeom_Vector*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Vector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Vector) %extend StepGeom_Vector { %pythoncode { @@ -4000,51 +2982,7 @@ class StepGeom_Axis1Placement : public StepGeom_Placement { }; -%extend StepGeom_Axis1Placement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Axis1Placement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Axis1Placement::Handle_StepGeom_Axis1Placement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Axis1Placement; -class Handle_StepGeom_Axis1Placement : public Handle_StepGeom_Placement { - - public: - // constructors - Handle_StepGeom_Axis1Placement(); - Handle_StepGeom_Axis1Placement(const Handle_StepGeom_Axis1Placement &aHandle); - Handle_StepGeom_Axis1Placement(const StepGeom_Axis1Placement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Axis1Placement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Axis1Placement { - StepGeom_Axis1Placement* _get_reference() { - return (StepGeom_Axis1Placement*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Axis1Placement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Axis1Placement) %extend StepGeom_Axis1Placement { %pythoncode { @@ -4101,51 +3039,7 @@ class StepGeom_Axis2Placement2d : public StepGeom_Placement { }; -%extend StepGeom_Axis2Placement2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Axis2Placement2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Axis2Placement2d::Handle_StepGeom_Axis2Placement2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Axis2Placement2d; -class Handle_StepGeom_Axis2Placement2d : public Handle_StepGeom_Placement { - - public: - // constructors - Handle_StepGeom_Axis2Placement2d(); - Handle_StepGeom_Axis2Placement2d(const Handle_StepGeom_Axis2Placement2d &aHandle); - Handle_StepGeom_Axis2Placement2d(const StepGeom_Axis2Placement2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Axis2Placement2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Axis2Placement2d { - StepGeom_Axis2Placement2d* _get_reference() { - return (StepGeom_Axis2Placement2d*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Axis2Placement2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Axis2Placement2d) %extend StepGeom_Axis2Placement2d { %pythoncode { @@ -4224,51 +3118,7 @@ class StepGeom_Axis2Placement3d : public StepGeom_Placement { }; -%extend StepGeom_Axis2Placement3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Axis2Placement3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Axis2Placement3d::Handle_StepGeom_Axis2Placement3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Axis2Placement3d; -class Handle_StepGeom_Axis2Placement3d : public Handle_StepGeom_Placement { - - public: - // constructors - Handle_StepGeom_Axis2Placement3d(); - Handle_StepGeom_Axis2Placement3d(const Handle_StepGeom_Axis2Placement3d &aHandle); - Handle_StepGeom_Axis2Placement3d(const StepGeom_Axis2Placement3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Axis2Placement3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Axis2Placement3d { - StepGeom_Axis2Placement3d* _get_reference() { - return (StepGeom_Axis2Placement3d*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Axis2Placement3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Axis2Placement3d) %extend StepGeom_Axis2Placement3d { %pythoncode { @@ -4287,51 +3137,7 @@ class StepGeom_BoundedCurve : public StepGeom_Curve { }; -%extend StepGeom_BoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BoundedCurve::Handle_StepGeom_BoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BoundedCurve; -class Handle_StepGeom_BoundedCurve : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_BoundedCurve(); - Handle_StepGeom_BoundedCurve(const Handle_StepGeom_BoundedCurve &aHandle); - Handle_StepGeom_BoundedCurve(const StepGeom_BoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BoundedCurve { - StepGeom_BoundedCurve* _get_reference() { - return (StepGeom_BoundedCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BoundedCurve) %extend StepGeom_BoundedCurve { %pythoncode { @@ -4350,51 +3156,7 @@ class StepGeom_BoundedSurface : public StepGeom_Surface { }; -%extend StepGeom_BoundedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BoundedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BoundedSurface::Handle_StepGeom_BoundedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BoundedSurface; -class Handle_StepGeom_BoundedSurface : public Handle_StepGeom_Surface { - - public: - // constructors - Handle_StepGeom_BoundedSurface(); - Handle_StepGeom_BoundedSurface(const Handle_StepGeom_BoundedSurface &aHandle); - Handle_StepGeom_BoundedSurface(const StepGeom_BoundedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BoundedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BoundedSurface { - StepGeom_BoundedSurface* _get_reference() { - return (StepGeom_BoundedSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BoundedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BoundedSurface) %extend StepGeom_BoundedSurface { %pythoncode { @@ -4469,51 +3231,7 @@ class StepGeom_CartesianPoint : public StepGeom_Point { }; -%extend StepGeom_CartesianPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CartesianPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CartesianPoint::Handle_StepGeom_CartesianPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CartesianPoint; -class Handle_StepGeom_CartesianPoint : public Handle_StepGeom_Point { - - public: - // constructors - Handle_StepGeom_CartesianPoint(); - Handle_StepGeom_CartesianPoint(const Handle_StepGeom_CartesianPoint &aHandle); - Handle_StepGeom_CartesianPoint(const StepGeom_CartesianPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CartesianPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CartesianPoint { - StepGeom_CartesianPoint* _get_reference() { - return (StepGeom_CartesianPoint*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CartesianPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CartesianPoint) %extend StepGeom_CartesianPoint { %pythoncode { @@ -4530,51 +3248,7 @@ class StepGeom_CartesianTransformationOperator2d : public StepGeom_CartesianTran }; -%extend StepGeom_CartesianTransformationOperator2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CartesianTransformationOperator2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CartesianTransformationOperator2d::Handle_StepGeom_CartesianTransformationOperator2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CartesianTransformationOperator2d; -class Handle_StepGeom_CartesianTransformationOperator2d : public Handle_StepGeom_CartesianTransformationOperator { - - public: - // constructors - Handle_StepGeom_CartesianTransformationOperator2d(); - Handle_StepGeom_CartesianTransformationOperator2d(const Handle_StepGeom_CartesianTransformationOperator2d &aHandle); - Handle_StepGeom_CartesianTransformationOperator2d(const StepGeom_CartesianTransformationOperator2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CartesianTransformationOperator2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CartesianTransformationOperator2d { - StepGeom_CartesianTransformationOperator2d* _get_reference() { - return (StepGeom_CartesianTransformationOperator2d*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CartesianTransformationOperator2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CartesianTransformationOperator2d) %extend StepGeom_CartesianTransformationOperator2d { %pythoncode { @@ -4655,51 +3329,7 @@ class StepGeom_CartesianTransformationOperator3d : public StepGeom_CartesianTran }; -%extend StepGeom_CartesianTransformationOperator3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CartesianTransformationOperator3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CartesianTransformationOperator3d::Handle_StepGeom_CartesianTransformationOperator3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CartesianTransformationOperator3d; -class Handle_StepGeom_CartesianTransformationOperator3d : public Handle_StepGeom_CartesianTransformationOperator { - - public: - // constructors - Handle_StepGeom_CartesianTransformationOperator3d(); - Handle_StepGeom_CartesianTransformationOperator3d(const Handle_StepGeom_CartesianTransformationOperator3d &aHandle); - Handle_StepGeom_CartesianTransformationOperator3d(const StepGeom_CartesianTransformationOperator3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CartesianTransformationOperator3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CartesianTransformationOperator3d { - StepGeom_CartesianTransformationOperator3d* _get_reference() { - return (StepGeom_CartesianTransformationOperator3d*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CartesianTransformationOperator3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CartesianTransformationOperator3d) %extend StepGeom_CartesianTransformationOperator3d { %pythoncode { @@ -4742,51 +3372,7 @@ class StepGeom_Conic : public StepGeom_Curve { }; -%extend StepGeom_Conic { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Conic(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Conic::Handle_StepGeom_Conic %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Conic; -class Handle_StepGeom_Conic : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_Conic(); - Handle_StepGeom_Conic(const Handle_StepGeom_Conic &aHandle); - Handle_StepGeom_Conic(const StepGeom_Conic *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Conic DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Conic { - StepGeom_Conic* _get_reference() { - return (StepGeom_Conic*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Conic { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Conic) %extend StepGeom_Conic { %pythoncode { @@ -4841,51 +3427,7 @@ class StepGeom_CurveReplica : public StepGeom_Curve { }; -%extend StepGeom_CurveReplica { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CurveReplica(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CurveReplica::Handle_StepGeom_CurveReplica %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CurveReplica; -class Handle_StepGeom_CurveReplica : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_CurveReplica(); - Handle_StepGeom_CurveReplica(const Handle_StepGeom_CurveReplica &aHandle); - Handle_StepGeom_CurveReplica(const StepGeom_CurveReplica *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CurveReplica DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CurveReplica { - StepGeom_CurveReplica* _get_reference() { - return (StepGeom_CurveReplica*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CurveReplica { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CurveReplica) %extend StepGeom_CurveReplica { %pythoncode { @@ -4940,51 +3482,7 @@ class StepGeom_DegeneratePcurve : public StepGeom_Point { }; -%extend StepGeom_DegeneratePcurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_DegeneratePcurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_DegeneratePcurve::Handle_StepGeom_DegeneratePcurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_DegeneratePcurve; -class Handle_StepGeom_DegeneratePcurve : public Handle_StepGeom_Point { - - public: - // constructors - Handle_StepGeom_DegeneratePcurve(); - Handle_StepGeom_DegeneratePcurve(const Handle_StepGeom_DegeneratePcurve &aHandle); - Handle_StepGeom_DegeneratePcurve(const StepGeom_DegeneratePcurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_DegeneratePcurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_DegeneratePcurve { - StepGeom_DegeneratePcurve* _get_reference() { - return (StepGeom_DegeneratePcurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_DegeneratePcurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_DegeneratePcurve) %extend StepGeom_DegeneratePcurve { %pythoncode { @@ -5027,51 +3525,7 @@ class StepGeom_ElementarySurface : public StepGeom_Surface { }; -%extend StepGeom_ElementarySurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_ElementarySurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_ElementarySurface::Handle_StepGeom_ElementarySurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_ElementarySurface; -class Handle_StepGeom_ElementarySurface : public Handle_StepGeom_Surface { - - public: - // constructors - Handle_StepGeom_ElementarySurface(); - Handle_StepGeom_ElementarySurface(const Handle_StepGeom_ElementarySurface &aHandle); - Handle_StepGeom_ElementarySurface(const StepGeom_ElementarySurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_ElementarySurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_ElementarySurface { - StepGeom_ElementarySurface* _get_reference() { - return (StepGeom_ElementarySurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_ElementarySurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_ElementarySurface) %extend StepGeom_ElementarySurface { %pythoncode { @@ -5126,51 +3580,7 @@ class StepGeom_Line : public StepGeom_Curve { }; -%extend StepGeom_Line { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Line(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Line::Handle_StepGeom_Line %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Line; -class Handle_StepGeom_Line : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_Line(); - Handle_StepGeom_Line(const Handle_StepGeom_Line &aHandle); - Handle_StepGeom_Line(const StepGeom_Line *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Line DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Line { - StepGeom_Line* _get_reference() { - return (StepGeom_Line*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Line { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Line) %extend StepGeom_Line { %pythoncode { @@ -5249,51 +3659,7 @@ class StepGeom_OffsetCurve3d : public StepGeom_Curve { }; -%extend StepGeom_OffsetCurve3d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_OffsetCurve3d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_OffsetCurve3d::Handle_StepGeom_OffsetCurve3d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_OffsetCurve3d; -class Handle_StepGeom_OffsetCurve3d : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_OffsetCurve3d(); - Handle_StepGeom_OffsetCurve3d(const Handle_StepGeom_OffsetCurve3d &aHandle); - Handle_StepGeom_OffsetCurve3d(const StepGeom_OffsetCurve3d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_OffsetCurve3d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_OffsetCurve3d { - StepGeom_OffsetCurve3d* _get_reference() { - return (StepGeom_OffsetCurve3d*)$self->Access(); - } -}; - -%extend Handle_StepGeom_OffsetCurve3d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_OffsetCurve3d) %extend StepGeom_OffsetCurve3d { %pythoncode { @@ -5360,51 +3726,7 @@ class StepGeom_OffsetSurface : public StepGeom_Surface { }; -%extend StepGeom_OffsetSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_OffsetSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_OffsetSurface::Handle_StepGeom_OffsetSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_OffsetSurface; -class Handle_StepGeom_OffsetSurface : public Handle_StepGeom_Surface { - - public: - // constructors - Handle_StepGeom_OffsetSurface(); - Handle_StepGeom_OffsetSurface(const Handle_StepGeom_OffsetSurface &aHandle); - Handle_StepGeom_OffsetSurface(const StepGeom_OffsetSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_OffsetSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_OffsetSurface { - StepGeom_OffsetSurface* _get_reference() { - return (StepGeom_OffsetSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_OffsetSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_OffsetSurface) %extend StepGeom_OffsetSurface { %pythoncode { @@ -5447,51 +3769,7 @@ class StepGeom_OrientedSurface : public StepGeom_Surface { }; -%extend StepGeom_OrientedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_OrientedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_OrientedSurface::Handle_StepGeom_OrientedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_OrientedSurface; -class Handle_StepGeom_OrientedSurface : public Handle_StepGeom_Surface { - - public: - // constructors - Handle_StepGeom_OrientedSurface(); - Handle_StepGeom_OrientedSurface(const Handle_StepGeom_OrientedSurface &aHandle); - Handle_StepGeom_OrientedSurface(const StepGeom_OrientedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_OrientedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_OrientedSurface { - StepGeom_OrientedSurface* _get_reference() { - return (StepGeom_OrientedSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_OrientedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_OrientedSurface) %extend StepGeom_OrientedSurface { %pythoncode { @@ -5546,51 +3824,7 @@ class StepGeom_Pcurve : public StepGeom_Curve { }; -%extend StepGeom_Pcurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Pcurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Pcurve::Handle_StepGeom_Pcurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Pcurve; -class Handle_StepGeom_Pcurve : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_Pcurve(); - Handle_StepGeom_Pcurve(const Handle_StepGeom_Pcurve &aHandle); - Handle_StepGeom_Pcurve(const StepGeom_Pcurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Pcurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Pcurve { - StepGeom_Pcurve* _get_reference() { - return (StepGeom_Pcurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Pcurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Pcurve) %extend StepGeom_Pcurve { %pythoncode { @@ -5645,51 +3879,7 @@ class StepGeom_PointOnCurve : public StepGeom_Point { }; -%extend StepGeom_PointOnCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_PointOnCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_PointOnCurve::Handle_StepGeom_PointOnCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_PointOnCurve; -class Handle_StepGeom_PointOnCurve : public Handle_StepGeom_Point { - - public: - // constructors - Handle_StepGeom_PointOnCurve(); - Handle_StepGeom_PointOnCurve(const Handle_StepGeom_PointOnCurve &aHandle); - Handle_StepGeom_PointOnCurve(const StepGeom_PointOnCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_PointOnCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_PointOnCurve { - StepGeom_PointOnCurve* _get_reference() { - return (StepGeom_PointOnCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_PointOnCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_PointOnCurve) %extend StepGeom_PointOnCurve { %pythoncode { @@ -5756,51 +3946,7 @@ class StepGeom_PointOnSurface : public StepGeom_Point { }; -%extend StepGeom_PointOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_PointOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_PointOnSurface::Handle_StepGeom_PointOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_PointOnSurface; -class Handle_StepGeom_PointOnSurface : public Handle_StepGeom_Point { - - public: - // constructors - Handle_StepGeom_PointOnSurface(); - Handle_StepGeom_PointOnSurface(const Handle_StepGeom_PointOnSurface &aHandle); - Handle_StepGeom_PointOnSurface(const StepGeom_PointOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_PointOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_PointOnSurface { - StepGeom_PointOnSurface* _get_reference() { - return (StepGeom_PointOnSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_PointOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_PointOnSurface) %extend StepGeom_PointOnSurface { %pythoncode { @@ -5855,51 +4001,7 @@ class StepGeom_PointReplica : public StepGeom_Point { }; -%extend StepGeom_PointReplica { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_PointReplica(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_PointReplica::Handle_StepGeom_PointReplica %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_PointReplica; -class Handle_StepGeom_PointReplica : public Handle_StepGeom_Point { - - public: - // constructors - Handle_StepGeom_PointReplica(); - Handle_StepGeom_PointReplica(const Handle_StepGeom_PointReplica &aHandle); - Handle_StepGeom_PointReplica(const StepGeom_PointReplica *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_PointReplica DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_PointReplica { - StepGeom_PointReplica* _get_reference() { - return (StepGeom_PointReplica*)$self->Access(); - } -}; - -%extend Handle_StepGeom_PointReplica { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_PointReplica) %extend StepGeom_PointReplica { %pythoncode { @@ -5976,51 +4078,7 @@ class StepGeom_SurfaceCurve : public StepGeom_Curve { }; -%extend StepGeom_SurfaceCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SurfaceCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SurfaceCurve::Handle_StepGeom_SurfaceCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SurfaceCurve; -class Handle_StepGeom_SurfaceCurve : public Handle_StepGeom_Curve { - - public: - // constructors - Handle_StepGeom_SurfaceCurve(); - Handle_StepGeom_SurfaceCurve(const Handle_StepGeom_SurfaceCurve &aHandle); - Handle_StepGeom_SurfaceCurve(const StepGeom_SurfaceCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SurfaceCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SurfaceCurve { - StepGeom_SurfaceCurve* _get_reference() { - return (StepGeom_SurfaceCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SurfaceCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SurfaceCurve) %extend StepGeom_SurfaceCurve { %pythoncode { @@ -6075,51 +4133,7 @@ class StepGeom_SurfaceReplica : public StepGeom_Surface { }; -%extend StepGeom_SurfaceReplica { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SurfaceReplica(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SurfaceReplica::Handle_StepGeom_SurfaceReplica %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SurfaceReplica; -class Handle_StepGeom_SurfaceReplica : public Handle_StepGeom_Surface { - - public: - // constructors - Handle_StepGeom_SurfaceReplica(); - Handle_StepGeom_SurfaceReplica(const Handle_StepGeom_SurfaceReplica &aHandle); - Handle_StepGeom_SurfaceReplica(const StepGeom_SurfaceReplica *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SurfaceReplica DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SurfaceReplica { - StepGeom_SurfaceReplica* _get_reference() { - return (StepGeom_SurfaceReplica*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SurfaceReplica { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SurfaceReplica) %extend StepGeom_SurfaceReplica { %pythoncode { @@ -6162,51 +4176,7 @@ class StepGeom_SweptSurface : public StepGeom_Surface { }; -%extend StepGeom_SweptSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SweptSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SweptSurface::Handle_StepGeom_SweptSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SweptSurface; -class Handle_StepGeom_SweptSurface : public Handle_StepGeom_Surface { - - public: - // constructors - Handle_StepGeom_SweptSurface(); - Handle_StepGeom_SweptSurface(const Handle_StepGeom_SweptSurface &aHandle); - Handle_StepGeom_SweptSurface(const StepGeom_SweptSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SweptSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SweptSurface { - StepGeom_SweptSurface* _get_reference() { - return (StepGeom_SweptSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SweptSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SweptSurface) %extend StepGeom_SweptSurface { %pythoncode { @@ -6307,51 +4277,7 @@ class StepGeom_BSplineCurve : public StepGeom_BoundedCurve { }; -%extend StepGeom_BSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BSplineCurve::Handle_StepGeom_BSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BSplineCurve; -class Handle_StepGeom_BSplineCurve : public Handle_StepGeom_BoundedCurve { - - public: - // constructors - Handle_StepGeom_BSplineCurve(); - Handle_StepGeom_BSplineCurve(const Handle_StepGeom_BSplineCurve &aHandle); - Handle_StepGeom_BSplineCurve(const StepGeom_BSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BSplineCurve { - StepGeom_BSplineCurve* _get_reference() { - return (StepGeom_BSplineCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BSplineCurve) %extend StepGeom_BSplineCurve { %pythoncode { @@ -6482,51 +4408,7 @@ class StepGeom_BSplineSurface : public StepGeom_BoundedSurface { }; -%extend StepGeom_BSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BSplineSurface::Handle_StepGeom_BSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BSplineSurface; -class Handle_StepGeom_BSplineSurface : public Handle_StepGeom_BoundedSurface { - - public: - // constructors - Handle_StepGeom_BSplineSurface(); - Handle_StepGeom_BSplineSurface(const Handle_StepGeom_BSplineSurface &aHandle); - Handle_StepGeom_BSplineSurface(const StepGeom_BSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BSplineSurface { - StepGeom_BSplineSurface* _get_reference() { - return (StepGeom_BSplineSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BSplineSurface) %extend StepGeom_BSplineSurface { %pythoncode { @@ -6573,51 +4455,7 @@ class StepGeom_Circle : public StepGeom_Conic { }; -%extend StepGeom_Circle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Circle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Circle::Handle_StepGeom_Circle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Circle; -class Handle_StepGeom_Circle : public Handle_StepGeom_Conic { - - public: - // constructors - Handle_StepGeom_Circle(); - Handle_StepGeom_Circle(const Handle_StepGeom_Circle &aHandle); - Handle_StepGeom_Circle(const StepGeom_Circle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Circle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Circle { - StepGeom_Circle* _get_reference() { - return (StepGeom_Circle*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Circle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Circle) %extend StepGeom_Circle { %pythoncode { @@ -6682,51 +4520,7 @@ class StepGeom_CompositeCurve : public StepGeom_BoundedCurve { }; -%extend StepGeom_CompositeCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CompositeCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CompositeCurve::Handle_StepGeom_CompositeCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CompositeCurve; -class Handle_StepGeom_CompositeCurve : public Handle_StepGeom_BoundedCurve { - - public: - // constructors - Handle_StepGeom_CompositeCurve(); - Handle_StepGeom_CompositeCurve(const Handle_StepGeom_CompositeCurve &aHandle); - Handle_StepGeom_CompositeCurve(const StepGeom_CompositeCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CompositeCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CompositeCurve { - StepGeom_CompositeCurve* _get_reference() { - return (StepGeom_CompositeCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CompositeCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CompositeCurve) %extend StepGeom_CompositeCurve { %pythoncode { @@ -6785,51 +4579,7 @@ class StepGeom_ConicalSurface : public StepGeom_ElementarySurface { }; -%extend StepGeom_ConicalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_ConicalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_ConicalSurface::Handle_StepGeom_ConicalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_ConicalSurface; -class Handle_StepGeom_ConicalSurface : public Handle_StepGeom_ElementarySurface { - - public: - // constructors - Handle_StepGeom_ConicalSurface(); - Handle_StepGeom_ConicalSurface(const Handle_StepGeom_ConicalSurface &aHandle); - Handle_StepGeom_ConicalSurface(const StepGeom_ConicalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_ConicalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_ConicalSurface { - StepGeom_ConicalSurface* _get_reference() { - return (StepGeom_ConicalSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_ConicalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_ConicalSurface) %extend StepGeom_ConicalSurface { %pythoncode { @@ -6904,51 +4654,7 @@ class StepGeom_CurveBoundedSurface : public StepGeom_BoundedSurface { }; -%extend StepGeom_CurveBoundedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CurveBoundedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CurveBoundedSurface::Handle_StepGeom_CurveBoundedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CurveBoundedSurface; -class Handle_StepGeom_CurveBoundedSurface : public Handle_StepGeom_BoundedSurface { - - public: - // constructors - Handle_StepGeom_CurveBoundedSurface(); - Handle_StepGeom_CurveBoundedSurface(const Handle_StepGeom_CurveBoundedSurface &aHandle); - Handle_StepGeom_CurveBoundedSurface(const StepGeom_CurveBoundedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CurveBoundedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CurveBoundedSurface { - StepGeom_CurveBoundedSurface* _get_reference() { - return (StepGeom_CurveBoundedSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CurveBoundedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CurveBoundedSurface) %extend StepGeom_CurveBoundedSurface { %pythoncode { @@ -6995,51 +4701,7 @@ class StepGeom_CylindricalSurface : public StepGeom_ElementarySurface { }; -%extend StepGeom_CylindricalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CylindricalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CylindricalSurface::Handle_StepGeom_CylindricalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CylindricalSurface; -class Handle_StepGeom_CylindricalSurface : public Handle_StepGeom_ElementarySurface { - - public: - // constructors - Handle_StepGeom_CylindricalSurface(); - Handle_StepGeom_CylindricalSurface(const Handle_StepGeom_CylindricalSurface &aHandle); - Handle_StepGeom_CylindricalSurface(const StepGeom_CylindricalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CylindricalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CylindricalSurface { - StepGeom_CylindricalSurface* _get_reference() { - return (StepGeom_CylindricalSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CylindricalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CylindricalSurface) %extend StepGeom_CylindricalSurface { %pythoncode { @@ -7098,51 +4760,7 @@ class StepGeom_Ellipse : public StepGeom_Conic { }; -%extend StepGeom_Ellipse { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Ellipse(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Ellipse::Handle_StepGeom_Ellipse %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Ellipse; -class Handle_StepGeom_Ellipse : public Handle_StepGeom_Conic { - - public: - // constructors - Handle_StepGeom_Ellipse(); - Handle_StepGeom_Ellipse(const Handle_StepGeom_Ellipse &aHandle); - Handle_StepGeom_Ellipse(const StepGeom_Ellipse *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Ellipse DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Ellipse { - StepGeom_Ellipse* _get_reference() { - return (StepGeom_Ellipse*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Ellipse { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Ellipse) %extend StepGeom_Ellipse { %pythoncode { @@ -7193,51 +4811,7 @@ class StepGeom_EvaluatedDegeneratePcurve : public StepGeom_DegeneratePcurve { }; -%extend StepGeom_EvaluatedDegeneratePcurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_EvaluatedDegeneratePcurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_EvaluatedDegeneratePcurve::Handle_StepGeom_EvaluatedDegeneratePcurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_EvaluatedDegeneratePcurve; -class Handle_StepGeom_EvaluatedDegeneratePcurve : public Handle_StepGeom_DegeneratePcurve { - - public: - // constructors - Handle_StepGeom_EvaluatedDegeneratePcurve(); - Handle_StepGeom_EvaluatedDegeneratePcurve(const Handle_StepGeom_EvaluatedDegeneratePcurve &aHandle); - Handle_StepGeom_EvaluatedDegeneratePcurve(const StepGeom_EvaluatedDegeneratePcurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_EvaluatedDegeneratePcurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_EvaluatedDegeneratePcurve { - StepGeom_EvaluatedDegeneratePcurve* _get_reference() { - return (StepGeom_EvaluatedDegeneratePcurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_EvaluatedDegeneratePcurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_EvaluatedDegeneratePcurve) %extend StepGeom_EvaluatedDegeneratePcurve { %pythoncode { @@ -7296,51 +4870,7 @@ class StepGeom_Hyperbola : public StepGeom_Conic { }; -%extend StepGeom_Hyperbola { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Hyperbola(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Hyperbola::Handle_StepGeom_Hyperbola %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Hyperbola; -class Handle_StepGeom_Hyperbola : public Handle_StepGeom_Conic { - - public: - // constructors - Handle_StepGeom_Hyperbola(); - Handle_StepGeom_Hyperbola(const Handle_StepGeom_Hyperbola &aHandle); - Handle_StepGeom_Hyperbola(const StepGeom_Hyperbola *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Hyperbola DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Hyperbola { - StepGeom_Hyperbola* _get_reference() { - return (StepGeom_Hyperbola*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Hyperbola { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Hyperbola) %extend StepGeom_Hyperbola { %pythoncode { @@ -7359,51 +4889,7 @@ class StepGeom_IntersectionCurve : public StepGeom_SurfaceCurve { }; -%extend StepGeom_IntersectionCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_IntersectionCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_IntersectionCurve::Handle_StepGeom_IntersectionCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_IntersectionCurve; -class Handle_StepGeom_IntersectionCurve : public Handle_StepGeom_SurfaceCurve { - - public: - // constructors - Handle_StepGeom_IntersectionCurve(); - Handle_StepGeom_IntersectionCurve(const Handle_StepGeom_IntersectionCurve &aHandle); - Handle_StepGeom_IntersectionCurve(const StepGeom_IntersectionCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_IntersectionCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_IntersectionCurve { - StepGeom_IntersectionCurve* _get_reference() { - return (StepGeom_IntersectionCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_IntersectionCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_IntersectionCurve) %extend StepGeom_IntersectionCurve { %pythoncode { @@ -7450,51 +4936,7 @@ class StepGeom_Parabola : public StepGeom_Conic { }; -%extend StepGeom_Parabola { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Parabola(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Parabola::Handle_StepGeom_Parabola %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Parabola; -class Handle_StepGeom_Parabola : public Handle_StepGeom_Conic { - - public: - // constructors - Handle_StepGeom_Parabola(); - Handle_StepGeom_Parabola(const Handle_StepGeom_Parabola &aHandle); - Handle_StepGeom_Parabola(const StepGeom_Parabola *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Parabola DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Parabola { - StepGeom_Parabola* _get_reference() { - return (StepGeom_Parabola*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Parabola { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Parabola) %extend StepGeom_Parabola { %pythoncode { @@ -7513,51 +4955,7 @@ class StepGeom_Plane : public StepGeom_ElementarySurface { }; -%extend StepGeom_Plane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Plane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Plane::Handle_StepGeom_Plane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Plane; -class Handle_StepGeom_Plane : public Handle_StepGeom_ElementarySurface { - - public: - // constructors - Handle_StepGeom_Plane(); - Handle_StepGeom_Plane(const Handle_StepGeom_Plane &aHandle); - Handle_StepGeom_Plane(const StepGeom_Plane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Plane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Plane { - StepGeom_Plane* _get_reference() { - return (StepGeom_Plane*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Plane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Plane) %extend StepGeom_Plane { %pythoncode { @@ -7610,51 +5008,7 @@ class StepGeom_Polyline : public StepGeom_BoundedCurve { }; -%extend StepGeom_Polyline { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_Polyline(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_Polyline::Handle_StepGeom_Polyline %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_Polyline; -class Handle_StepGeom_Polyline : public Handle_StepGeom_BoundedCurve { - - public: - // constructors - Handle_StepGeom_Polyline(); - Handle_StepGeom_Polyline(const Handle_StepGeom_Polyline &aHandle); - Handle_StepGeom_Polyline(const StepGeom_Polyline *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_Polyline DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_Polyline { - StepGeom_Polyline* _get_reference() { - return (StepGeom_Polyline*)$self->Access(); - } -}; - -%extend Handle_StepGeom_Polyline { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_Polyline) %extend StepGeom_Polyline { %pythoncode { @@ -7713,51 +5067,7 @@ class StepGeom_RectangularCompositeSurface : public StepGeom_BoundedSurface { }; -%extend StepGeom_RectangularCompositeSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_RectangularCompositeSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_RectangularCompositeSurface::Handle_StepGeom_RectangularCompositeSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_RectangularCompositeSurface; -class Handle_StepGeom_RectangularCompositeSurface : public Handle_StepGeom_BoundedSurface { - - public: - // constructors - Handle_StepGeom_RectangularCompositeSurface(); - Handle_StepGeom_RectangularCompositeSurface(const Handle_StepGeom_RectangularCompositeSurface &aHandle); - Handle_StepGeom_RectangularCompositeSurface(const StepGeom_RectangularCompositeSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_RectangularCompositeSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_RectangularCompositeSurface { - StepGeom_RectangularCompositeSurface* _get_reference() { - return (StepGeom_RectangularCompositeSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_RectangularCompositeSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_RectangularCompositeSurface) %extend StepGeom_RectangularCompositeSurface { %pythoncode { @@ -7872,51 +5182,7 @@ class StepGeom_RectangularTrimmedSurface : public StepGeom_BoundedSurface { }; -%extend StepGeom_RectangularTrimmedSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_RectangularTrimmedSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_RectangularTrimmedSurface::Handle_StepGeom_RectangularTrimmedSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_RectangularTrimmedSurface; -class Handle_StepGeom_RectangularTrimmedSurface : public Handle_StepGeom_BoundedSurface { - - public: - // constructors - Handle_StepGeom_RectangularTrimmedSurface(); - Handle_StepGeom_RectangularTrimmedSurface(const Handle_StepGeom_RectangularTrimmedSurface &aHandle); - Handle_StepGeom_RectangularTrimmedSurface(const StepGeom_RectangularTrimmedSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_RectangularTrimmedSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_RectangularTrimmedSurface { - StepGeom_RectangularTrimmedSurface* _get_reference() { - return (StepGeom_RectangularTrimmedSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_RectangularTrimmedSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_RectangularTrimmedSurface) %extend StepGeom_RectangularTrimmedSurface { %pythoncode { @@ -7935,51 +5201,7 @@ class StepGeom_SeamCurve : public StepGeom_SurfaceCurve { }; -%extend StepGeom_SeamCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SeamCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SeamCurve::Handle_StepGeom_SeamCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SeamCurve; -class Handle_StepGeom_SeamCurve : public Handle_StepGeom_SurfaceCurve { - - public: - // constructors - Handle_StepGeom_SeamCurve(); - Handle_StepGeom_SeamCurve(const Handle_StepGeom_SeamCurve &aHandle); - Handle_StepGeom_SeamCurve(const StepGeom_SeamCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SeamCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SeamCurve { - StepGeom_SeamCurve* _get_reference() { - return (StepGeom_SeamCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SeamCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SeamCurve) %extend StepGeom_SeamCurve { %pythoncode { @@ -8026,51 +5248,7 @@ class StepGeom_SphericalSurface : public StepGeom_ElementarySurface { }; -%extend StepGeom_SphericalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SphericalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SphericalSurface::Handle_StepGeom_SphericalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SphericalSurface; -class Handle_StepGeom_SphericalSurface : public Handle_StepGeom_ElementarySurface { - - public: - // constructors - Handle_StepGeom_SphericalSurface(); - Handle_StepGeom_SphericalSurface(const Handle_StepGeom_SphericalSurface &aHandle); - Handle_StepGeom_SphericalSurface(const StepGeom_SphericalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SphericalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SphericalSurface { - StepGeom_SphericalSurface* _get_reference() { - return (StepGeom_SphericalSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SphericalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SphericalSurface) %extend StepGeom_SphericalSurface { %pythoncode { @@ -8095,51 +5273,7 @@ class StepGeom_SurfaceCurveAndBoundedCurve : public StepGeom_SurfaceCurve { }; -%extend StepGeom_SurfaceCurveAndBoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SurfaceCurveAndBoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SurfaceCurveAndBoundedCurve::Handle_StepGeom_SurfaceCurveAndBoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SurfaceCurveAndBoundedCurve; -class Handle_StepGeom_SurfaceCurveAndBoundedCurve : public Handle_StepGeom_SurfaceCurve { - - public: - // constructors - Handle_StepGeom_SurfaceCurveAndBoundedCurve(); - Handle_StepGeom_SurfaceCurveAndBoundedCurve(const Handle_StepGeom_SurfaceCurveAndBoundedCurve &aHandle); - Handle_StepGeom_SurfaceCurveAndBoundedCurve(const StepGeom_SurfaceCurveAndBoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SurfaceCurveAndBoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SurfaceCurveAndBoundedCurve { - StepGeom_SurfaceCurveAndBoundedCurve* _get_reference() { - return (StepGeom_SurfaceCurveAndBoundedCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SurfaceCurveAndBoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SurfaceCurveAndBoundedCurve) %extend StepGeom_SurfaceCurveAndBoundedCurve { %pythoncode { @@ -8186,51 +5320,7 @@ class StepGeom_SurfaceOfLinearExtrusion : public StepGeom_SweptSurface { }; -%extend StepGeom_SurfaceOfLinearExtrusion { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SurfaceOfLinearExtrusion(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SurfaceOfLinearExtrusion::Handle_StepGeom_SurfaceOfLinearExtrusion %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SurfaceOfLinearExtrusion; -class Handle_StepGeom_SurfaceOfLinearExtrusion : public Handle_StepGeom_SweptSurface { - - public: - // constructors - Handle_StepGeom_SurfaceOfLinearExtrusion(); - Handle_StepGeom_SurfaceOfLinearExtrusion(const Handle_StepGeom_SurfaceOfLinearExtrusion &aHandle); - Handle_StepGeom_SurfaceOfLinearExtrusion(const StepGeom_SurfaceOfLinearExtrusion *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SurfaceOfLinearExtrusion DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SurfaceOfLinearExtrusion { - StepGeom_SurfaceOfLinearExtrusion* _get_reference() { - return (StepGeom_SurfaceOfLinearExtrusion*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SurfaceOfLinearExtrusion { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SurfaceOfLinearExtrusion) %extend StepGeom_SurfaceOfLinearExtrusion { %pythoncode { @@ -8277,51 +5367,7 @@ class StepGeom_SurfaceOfRevolution : public StepGeom_SweptSurface { }; -%extend StepGeom_SurfaceOfRevolution { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_SurfaceOfRevolution(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_SurfaceOfRevolution::Handle_StepGeom_SurfaceOfRevolution %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_SurfaceOfRevolution; -class Handle_StepGeom_SurfaceOfRevolution : public Handle_StepGeom_SweptSurface { - - public: - // constructors - Handle_StepGeom_SurfaceOfRevolution(); - Handle_StepGeom_SurfaceOfRevolution(const Handle_StepGeom_SurfaceOfRevolution &aHandle); - Handle_StepGeom_SurfaceOfRevolution(const StepGeom_SurfaceOfRevolution *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_SurfaceOfRevolution DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_SurfaceOfRevolution { - StepGeom_SurfaceOfRevolution* _get_reference() { - return (StepGeom_SurfaceOfRevolution*)$self->Access(); - } -}; - -%extend Handle_StepGeom_SurfaceOfRevolution { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_SurfaceOfRevolution) %extend StepGeom_SurfaceOfRevolution { %pythoncode { @@ -8380,51 +5426,7 @@ class StepGeom_ToroidalSurface : public StepGeom_ElementarySurface { }; -%extend StepGeom_ToroidalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_ToroidalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_ToroidalSurface::Handle_StepGeom_ToroidalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_ToroidalSurface; -class Handle_StepGeom_ToroidalSurface : public Handle_StepGeom_ElementarySurface { - - public: - // constructors - Handle_StepGeom_ToroidalSurface(); - Handle_StepGeom_ToroidalSurface(const Handle_StepGeom_ToroidalSurface &aHandle); - Handle_StepGeom_ToroidalSurface(const StepGeom_ToroidalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_ToroidalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_ToroidalSurface { - StepGeom_ToroidalSurface* _get_reference() { - return (StepGeom_ToroidalSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_ToroidalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_ToroidalSurface) %extend StepGeom_ToroidalSurface { %pythoncode { @@ -8535,51 +5537,7 @@ class StepGeom_TrimmedCurve : public StepGeom_BoundedCurve { }; -%extend StepGeom_TrimmedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_TrimmedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_TrimmedCurve::Handle_StepGeom_TrimmedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_TrimmedCurve; -class Handle_StepGeom_TrimmedCurve : public Handle_StepGeom_BoundedCurve { - - public: - // constructors - Handle_StepGeom_TrimmedCurve(); - Handle_StepGeom_TrimmedCurve(const Handle_StepGeom_TrimmedCurve &aHandle); - Handle_StepGeom_TrimmedCurve(const StepGeom_TrimmedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_TrimmedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_TrimmedCurve { - StepGeom_TrimmedCurve* _get_reference() { - return (StepGeom_TrimmedCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_TrimmedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_TrimmedCurve) %extend StepGeom_TrimmedCurve { %pythoncode { @@ -8686,51 +5644,7 @@ class StepGeom_BSplineCurveWithKnots : public StepGeom_BSplineCurve { }; -%extend StepGeom_BSplineCurveWithKnots { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BSplineCurveWithKnots(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BSplineCurveWithKnots::Handle_StepGeom_BSplineCurveWithKnots %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BSplineCurveWithKnots; -class Handle_StepGeom_BSplineCurveWithKnots : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_BSplineCurveWithKnots(); - Handle_StepGeom_BSplineCurveWithKnots(const Handle_StepGeom_BSplineCurveWithKnots &aHandle); - Handle_StepGeom_BSplineCurveWithKnots(const StepGeom_BSplineCurveWithKnots *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BSplineCurveWithKnots DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BSplineCurveWithKnots { - StepGeom_BSplineCurveWithKnots* _get_reference() { - return (StepGeom_BSplineCurveWithKnots*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BSplineCurveWithKnots { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BSplineCurveWithKnots) %extend StepGeom_BSplineCurveWithKnots { %pythoncode { @@ -8899,51 +5813,7 @@ class StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve : public StepGeom_BS }; -%extend StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve::Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve; -class Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve(); - Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve(const Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve &aHandle); - Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve(const StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve { - StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve* _get_reference() { - return (StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) %extend StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve { %pythoncode { @@ -9097,56 +5967,12 @@ class StepGeom_BSplineSurfaceWithKnots : public StepGeom_BSplineSurface { void SetKnotSpec (const StepGeom_KnotType aKnotSpec); %feature("compactdefaultargs") KnotSpec; %feature("autodoc", " :rtype: StepGeom_KnotType -") KnotSpec; - StepGeom_KnotType KnotSpec (); -}; - - -%extend StepGeom_BSplineSurfaceWithKnots { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BSplineSurfaceWithKnots(self) - self.thisown = False - return self.thisHandle - } +") KnotSpec; + StepGeom_KnotType KnotSpec (); }; -%pythonappend Handle_StepGeom_BSplineSurfaceWithKnots::Handle_StepGeom_BSplineSurfaceWithKnots %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BSplineSurfaceWithKnots; -class Handle_StepGeom_BSplineSurfaceWithKnots : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_BSplineSurfaceWithKnots(); - Handle_StepGeom_BSplineSurfaceWithKnots(const Handle_StepGeom_BSplineSurfaceWithKnots &aHandle); - Handle_StepGeom_BSplineSurfaceWithKnots(const StepGeom_BSplineSurfaceWithKnots *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BSplineSurfaceWithKnots DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BSplineSurfaceWithKnots { - StepGeom_BSplineSurfaceWithKnots* _get_reference() { - return (StepGeom_BSplineSurfaceWithKnots*)$self->Access(); - } -}; -%extend Handle_StepGeom_BSplineSurfaceWithKnots { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BSplineSurfaceWithKnots) %extend StepGeom_BSplineSurfaceWithKnots { %pythoncode { @@ -9377,51 +6203,7 @@ class StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface : public StepGeo }; -%extend StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface::Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface; -class Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface(); - Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface(const Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface &aHandle); - Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface(const StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface { - StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface* _get_reference() { - return (StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) %extend StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface { %pythoncode { @@ -9440,51 +6222,7 @@ class StepGeom_BezierCurve : public StepGeom_BSplineCurve { }; -%extend StepGeom_BezierCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BezierCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BezierCurve::Handle_StepGeom_BezierCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BezierCurve; -class Handle_StepGeom_BezierCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_BezierCurve(); - Handle_StepGeom_BezierCurve(const Handle_StepGeom_BezierCurve &aHandle); - Handle_StepGeom_BezierCurve(const StepGeom_BezierCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BezierCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BezierCurve { - StepGeom_BezierCurve* _get_reference() { - return (StepGeom_BezierCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BezierCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BezierCurve) %extend StepGeom_BezierCurve { %pythoncode { @@ -9597,51 +6335,7 @@ class StepGeom_BezierCurveAndRationalBSplineCurve : public StepGeom_BSplineCurve }; -%extend StepGeom_BezierCurveAndRationalBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BezierCurveAndRationalBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BezierCurveAndRationalBSplineCurve::Handle_StepGeom_BezierCurveAndRationalBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BezierCurveAndRationalBSplineCurve; -class Handle_StepGeom_BezierCurveAndRationalBSplineCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_BezierCurveAndRationalBSplineCurve(); - Handle_StepGeom_BezierCurveAndRationalBSplineCurve(const Handle_StepGeom_BezierCurveAndRationalBSplineCurve &aHandle); - Handle_StepGeom_BezierCurveAndRationalBSplineCurve(const StepGeom_BezierCurveAndRationalBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BezierCurveAndRationalBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BezierCurveAndRationalBSplineCurve { - StepGeom_BezierCurveAndRationalBSplineCurve* _get_reference() { - return (StepGeom_BezierCurveAndRationalBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BezierCurveAndRationalBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BezierCurveAndRationalBSplineCurve) %extend StepGeom_BezierCurveAndRationalBSplineCurve { %pythoncode { @@ -9660,51 +6354,7 @@ class StepGeom_BezierSurface : public StepGeom_BSplineSurface { }; -%extend StepGeom_BezierSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BezierSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BezierSurface::Handle_StepGeom_BezierSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BezierSurface; -class Handle_StepGeom_BezierSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_BezierSurface(); - Handle_StepGeom_BezierSurface(const Handle_StepGeom_BezierSurface &aHandle); - Handle_StepGeom_BezierSurface(const StepGeom_BezierSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BezierSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BezierSurface { - StepGeom_BezierSurface* _get_reference() { - return (StepGeom_BezierSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BezierSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BezierSurface) %extend StepGeom_BezierSurface { %pythoncode { @@ -9835,51 +6485,7 @@ class StepGeom_BezierSurfaceAndRationalBSplineSurface : public StepGeom_BSplineS }; -%extend StepGeom_BezierSurfaceAndRationalBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface::Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface; -class Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface(); - Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface(const Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface &aHandle); - Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface(const StepGeom_BezierSurfaceAndRationalBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface { - StepGeom_BezierSurfaceAndRationalBSplineSurface* _get_reference() { - return (StepGeom_BezierSurfaceAndRationalBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BezierSurfaceAndRationalBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BezierSurfaceAndRationalBSplineSurface) %extend StepGeom_BezierSurfaceAndRationalBSplineSurface { %pythoncode { @@ -9898,51 +6504,7 @@ class StepGeom_CompositeCurveOnSurface : public StepGeom_CompositeCurve { }; -%extend StepGeom_CompositeCurveOnSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_CompositeCurveOnSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_CompositeCurveOnSurface::Handle_StepGeom_CompositeCurveOnSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_CompositeCurveOnSurface; -class Handle_StepGeom_CompositeCurveOnSurface : public Handle_StepGeom_CompositeCurve { - - public: - // constructors - Handle_StepGeom_CompositeCurveOnSurface(); - Handle_StepGeom_CompositeCurveOnSurface(const Handle_StepGeom_CompositeCurveOnSurface &aHandle); - Handle_StepGeom_CompositeCurveOnSurface(const StepGeom_CompositeCurveOnSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_CompositeCurveOnSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_CompositeCurveOnSurface { - StepGeom_CompositeCurveOnSurface* _get_reference() { - return (StepGeom_CompositeCurveOnSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_CompositeCurveOnSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_CompositeCurveOnSurface) %extend StepGeom_CompositeCurveOnSurface { %pythoncode { @@ -9997,51 +6559,7 @@ class StepGeom_DegenerateToroidalSurface : public StepGeom_ToroidalSurface { }; -%extend StepGeom_DegenerateToroidalSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_DegenerateToroidalSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_DegenerateToroidalSurface::Handle_StepGeom_DegenerateToroidalSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_DegenerateToroidalSurface; -class Handle_StepGeom_DegenerateToroidalSurface : public Handle_StepGeom_ToroidalSurface { - - public: - // constructors - Handle_StepGeom_DegenerateToroidalSurface(); - Handle_StepGeom_DegenerateToroidalSurface(const Handle_StepGeom_DegenerateToroidalSurface &aHandle); - Handle_StepGeom_DegenerateToroidalSurface(const StepGeom_DegenerateToroidalSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_DegenerateToroidalSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_DegenerateToroidalSurface { - StepGeom_DegenerateToroidalSurface* _get_reference() { - return (StepGeom_DegenerateToroidalSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_DegenerateToroidalSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_DegenerateToroidalSurface) %extend StepGeom_DegenerateToroidalSurface { %pythoncode { @@ -10060,51 +6578,7 @@ class StepGeom_QuasiUniformCurve : public StepGeom_BSplineCurve { }; -%extend StepGeom_QuasiUniformCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_QuasiUniformCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_QuasiUniformCurve::Handle_StepGeom_QuasiUniformCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_QuasiUniformCurve; -class Handle_StepGeom_QuasiUniformCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_QuasiUniformCurve(); - Handle_StepGeom_QuasiUniformCurve(const Handle_StepGeom_QuasiUniformCurve &aHandle); - Handle_StepGeom_QuasiUniformCurve(const StepGeom_QuasiUniformCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_QuasiUniformCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_QuasiUniformCurve { - StepGeom_QuasiUniformCurve* _get_reference() { - return (StepGeom_QuasiUniformCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_QuasiUniformCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_QuasiUniformCurve) %extend StepGeom_QuasiUniformCurve { %pythoncode { @@ -10217,51 +6691,7 @@ class StepGeom_QuasiUniformCurveAndRationalBSplineCurve : public StepGeom_BSplin }; -%extend StepGeom_QuasiUniformCurveAndRationalBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve::Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve; -class Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve(); - Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve(const Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve &aHandle); - Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve(const StepGeom_QuasiUniformCurveAndRationalBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve { - StepGeom_QuasiUniformCurveAndRationalBSplineCurve* _get_reference() { - return (StepGeom_QuasiUniformCurveAndRationalBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_QuasiUniformCurveAndRationalBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_QuasiUniformCurveAndRationalBSplineCurve) %extend StepGeom_QuasiUniformCurveAndRationalBSplineCurve { %pythoncode { @@ -10280,51 +6710,7 @@ class StepGeom_QuasiUniformSurface : public StepGeom_BSplineSurface { }; -%extend StepGeom_QuasiUniformSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_QuasiUniformSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_QuasiUniformSurface::Handle_StepGeom_QuasiUniformSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_QuasiUniformSurface; -class Handle_StepGeom_QuasiUniformSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_QuasiUniformSurface(); - Handle_StepGeom_QuasiUniformSurface(const Handle_StepGeom_QuasiUniformSurface &aHandle); - Handle_StepGeom_QuasiUniformSurface(const StepGeom_QuasiUniformSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_QuasiUniformSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_QuasiUniformSurface { - StepGeom_QuasiUniformSurface* _get_reference() { - return (StepGeom_QuasiUniformSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_QuasiUniformSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_QuasiUniformSurface) %extend StepGeom_QuasiUniformSurface { %pythoncode { @@ -10455,51 +6841,7 @@ class StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface : public StepGeom_BS }; -%extend StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface::Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface; -class Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface(); - Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface(const Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface &aHandle); - Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface(const StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface { - StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface* _get_reference() { - return (StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface) %extend StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface { %pythoncode { @@ -10572,51 +6914,7 @@ class StepGeom_RationalBSplineCurve : public StepGeom_BSplineCurve { }; -%extend StepGeom_RationalBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_RationalBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_RationalBSplineCurve::Handle_StepGeom_RationalBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_RationalBSplineCurve; -class Handle_StepGeom_RationalBSplineCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_RationalBSplineCurve(); - Handle_StepGeom_RationalBSplineCurve(const Handle_StepGeom_RationalBSplineCurve &aHandle); - Handle_StepGeom_RationalBSplineCurve(const StepGeom_RationalBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_RationalBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_RationalBSplineCurve { - StepGeom_RationalBSplineCurve* _get_reference() { - return (StepGeom_RationalBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_RationalBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_RationalBSplineCurve) %extend StepGeom_RationalBSplineCurve { %pythoncode { @@ -10703,51 +7001,7 @@ class StepGeom_RationalBSplineSurface : public StepGeom_BSplineSurface { }; -%extend StepGeom_RationalBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_RationalBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_RationalBSplineSurface::Handle_StepGeom_RationalBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_RationalBSplineSurface; -class Handle_StepGeom_RationalBSplineSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_RationalBSplineSurface(); - Handle_StepGeom_RationalBSplineSurface(const Handle_StepGeom_RationalBSplineSurface &aHandle); - Handle_StepGeom_RationalBSplineSurface(const StepGeom_RationalBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_RationalBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_RationalBSplineSurface { - StepGeom_RationalBSplineSurface* _get_reference() { - return (StepGeom_RationalBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_RationalBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_RationalBSplineSurface) %extend StepGeom_RationalBSplineSurface { %pythoncode { @@ -10766,51 +7020,7 @@ class StepGeom_UniformCurve : public StepGeom_BSplineCurve { }; -%extend StepGeom_UniformCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_UniformCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_UniformCurve::Handle_StepGeom_UniformCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_UniformCurve; -class Handle_StepGeom_UniformCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_UniformCurve(); - Handle_StepGeom_UniformCurve(const Handle_StepGeom_UniformCurve &aHandle); - Handle_StepGeom_UniformCurve(const StepGeom_UniformCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_UniformCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_UniformCurve { - StepGeom_UniformCurve* _get_reference() { - return (StepGeom_UniformCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_UniformCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_UniformCurve) %extend StepGeom_UniformCurve { %pythoncode { @@ -10923,51 +7133,7 @@ class StepGeom_UniformCurveAndRationalBSplineCurve : public StepGeom_BSplineCurv }; -%extend StepGeom_UniformCurveAndRationalBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_UniformCurveAndRationalBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_UniformCurveAndRationalBSplineCurve::Handle_StepGeom_UniformCurveAndRationalBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_UniformCurveAndRationalBSplineCurve; -class Handle_StepGeom_UniformCurveAndRationalBSplineCurve : public Handle_StepGeom_BSplineCurve { - - public: - // constructors - Handle_StepGeom_UniformCurveAndRationalBSplineCurve(); - Handle_StepGeom_UniformCurveAndRationalBSplineCurve(const Handle_StepGeom_UniformCurveAndRationalBSplineCurve &aHandle); - Handle_StepGeom_UniformCurveAndRationalBSplineCurve(const StepGeom_UniformCurveAndRationalBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_UniformCurveAndRationalBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_UniformCurveAndRationalBSplineCurve { - StepGeom_UniformCurveAndRationalBSplineCurve* _get_reference() { - return (StepGeom_UniformCurveAndRationalBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_UniformCurveAndRationalBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_UniformCurveAndRationalBSplineCurve) %extend StepGeom_UniformCurveAndRationalBSplineCurve { %pythoncode { @@ -10986,51 +7152,7 @@ class StepGeom_UniformSurface : public StepGeom_BSplineSurface { }; -%extend StepGeom_UniformSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_UniformSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_UniformSurface::Handle_StepGeom_UniformSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_UniformSurface; -class Handle_StepGeom_UniformSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_UniformSurface(); - Handle_StepGeom_UniformSurface(const Handle_StepGeom_UniformSurface &aHandle); - Handle_StepGeom_UniformSurface(const StepGeom_UniformSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_UniformSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_UniformSurface { - StepGeom_UniformSurface* _get_reference() { - return (StepGeom_UniformSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_UniformSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_UniformSurface) %extend StepGeom_UniformSurface { %pythoncode { @@ -11161,51 +7283,7 @@ class StepGeom_UniformSurfaceAndRationalBSplineSurface : public StepGeom_BSpline }; -%extend StepGeom_UniformSurfaceAndRationalBSplineSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface::Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface; -class Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface : public Handle_StepGeom_BSplineSurface { - - public: - // constructors - Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface(); - Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface(const Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface &aHandle); - Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface(const StepGeom_UniformSurfaceAndRationalBSplineSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface { - StepGeom_UniformSurfaceAndRationalBSplineSurface* _get_reference() { - return (StepGeom_UniformSurfaceAndRationalBSplineSurface*)$self->Access(); - } -}; - -%extend Handle_StepGeom_UniformSurfaceAndRationalBSplineSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_UniformSurfaceAndRationalBSplineSurface) %extend StepGeom_UniformSurfaceAndRationalBSplineSurface { %pythoncode { @@ -11224,51 +7302,7 @@ class StepGeom_BoundaryCurve : public StepGeom_CompositeCurveOnSurface { }; -%extend StepGeom_BoundaryCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_BoundaryCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_BoundaryCurve::Handle_StepGeom_BoundaryCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_BoundaryCurve; -class Handle_StepGeom_BoundaryCurve : public Handle_StepGeom_CompositeCurveOnSurface { - - public: - // constructors - Handle_StepGeom_BoundaryCurve(); - Handle_StepGeom_BoundaryCurve(const Handle_StepGeom_BoundaryCurve &aHandle); - Handle_StepGeom_BoundaryCurve(const StepGeom_BoundaryCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_BoundaryCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_BoundaryCurve { - StepGeom_BoundaryCurve* _get_reference() { - return (StepGeom_BoundaryCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_BoundaryCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_BoundaryCurve) %extend StepGeom_BoundaryCurve { %pythoncode { @@ -11287,51 +7321,7 @@ class StepGeom_OuterBoundaryCurve : public StepGeom_BoundaryCurve { }; -%extend StepGeom_OuterBoundaryCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepGeom_OuterBoundaryCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepGeom_OuterBoundaryCurve::Handle_StepGeom_OuterBoundaryCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepGeom_OuterBoundaryCurve; -class Handle_StepGeom_OuterBoundaryCurve : public Handle_StepGeom_BoundaryCurve { - - public: - // constructors - Handle_StepGeom_OuterBoundaryCurve(); - Handle_StepGeom_OuterBoundaryCurve(const Handle_StepGeom_OuterBoundaryCurve &aHandle); - Handle_StepGeom_OuterBoundaryCurve(const StepGeom_OuterBoundaryCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepGeom_OuterBoundaryCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepGeom_OuterBoundaryCurve { - StepGeom_OuterBoundaryCurve* _get_reference() { - return (StepGeom_OuterBoundaryCurve*)$self->Access(); - } -}; - -%extend Handle_StepGeom_OuterBoundaryCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepGeom_OuterBoundaryCurve) %extend StepGeom_OuterBoundaryCurve { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepRepr.i b/src/SWIG_files/wrapper/StepRepr.i index 74f7fe504..ae55719b3 100644 --- a/src/SWIG_files/wrapper/StepRepr.i +++ b/src/SWIG_files/wrapper/StepRepr.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define STEPREPRDOCSTRING -"No docstring provided." +"-Purpose : Sub-Schema of Step for Representations +Collects definitions of STEP entities used for describing +representation structures (from Parts 41, 43, 44 of ISO10303) +" %enddef %module (package="OCC.Core", docstring=STEPREPRDOCSTRING) StepRepr @@ -34,31 +37,76 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepRepr_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(StepRepr_AssemblyComponentUsageSubstitute) +%wrap_handle(StepRepr_ConfigurationDesign) +%wrap_handle(StepRepr_ConfigurationEffectivity) +%wrap_handle(StepRepr_ConfigurationItem) +%wrap_handle(StepRepr_DataEnvironment) +%wrap_handle(StepRepr_FunctionallyDefinedTransformation) +%wrap_handle(StepRepr_HArray1OfMaterialPropertyRepresentation) +%wrap_handle(StepRepr_HArray1OfPropertyDefinitionRepresentation) +%wrap_handle(StepRepr_HArray1OfRepresentationItem) +%wrap_handle(StepRepr_HSequenceOfMaterialPropertyRepresentation) +%wrap_handle(StepRepr_HSequenceOfRepresentationItem) +%wrap_handle(StepRepr_ItemDefinedTransformation) +%wrap_handle(StepRepr_MaterialDesignation) +%wrap_handle(StepRepr_ProductConcept) +%wrap_handle(StepRepr_ProductDefinitionUsage) +%wrap_handle(StepRepr_PropertyDefinition) +%wrap_handle(StepRepr_PropertyDefinitionRelationship) +%wrap_handle(StepRepr_PropertyDefinitionRepresentation) +%wrap_handle(StepRepr_Representation) +%wrap_handle(StepRepr_RepresentationContext) +%wrap_handle(StepRepr_RepresentationItem) +%wrap_handle(StepRepr_RepresentationMap) +%wrap_handle(StepRepr_RepresentationRelationship) +%wrap_handle(StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation) +%wrap_handle(StepRepr_SequenceNodeOfSequenceOfRepresentationItem) +%wrap_handle(StepRepr_ShapeAspect) +%wrap_handle(StepRepr_ShapeAspectRelationship) +%wrap_handle(StepRepr_SuppliedPartRelationship) +%wrap_handle(StepRepr_AssemblyComponentUsage) +%wrap_handle(StepRepr_CompositeShapeAspect) +%wrap_handle(StepRepr_CompoundRepresentationItem) +%wrap_handle(StepRepr_DefinitionalRepresentation) +%wrap_handle(StepRepr_DerivedShapeAspect) +%wrap_handle(StepRepr_DescriptiveRepresentationItem) +%wrap_handle(StepRepr_ExternallyDefinedRepresentation) +%wrap_handle(StepRepr_GlobalUncertaintyAssignedContext) +%wrap_handle(StepRepr_GlobalUnitAssignedContext) +%wrap_handle(StepRepr_MakeFromUsageOption) +%wrap_handle(StepRepr_MappedItem) +%wrap_handle(StepRepr_MaterialProperty) +%wrap_handle(StepRepr_MaterialPropertyRepresentation) +%wrap_handle(StepRepr_MeasureRepresentationItem) +%wrap_handle(StepRepr_ParametricRepresentationContext) +%wrap_handle(StepRepr_ProductDefinitionShape) +%wrap_handle(StepRepr_ReprItemAndLengthMeasureWithUnit) +%wrap_handle(StepRepr_ShapeAspectDerivingRelationship) +%wrap_handle(StepRepr_ShapeAspectTransition) +%wrap_handle(StepRepr_ShapeRepresentationRelationship) +%wrap_handle(StepRepr_StructuralResponseProperty) +%wrap_handle(StepRepr_StructuralResponsePropertyDefinitionRepresentation) +%wrap_handle(StepRepr_Extension) +%wrap_handle(StepRepr_NextAssemblyUsageOccurrence) +%wrap_handle(StepRepr_PromissoryUsageOccurrence) +%wrap_handle(StepRepr_QuantifiedAssemblyComponentUsage) +%wrap_handle(StepRepr_RepresentationRelationshipWithTransformation) +%wrap_handle(StepRepr_SpecifiedHigherUsageOccurrence) +%wrap_handle(StepRepr_ValueRange) +%wrap_handle(StepRepr_ShapeRepresentationRelationshipWithTransformation) + %nodefaultctor StepRepr_Array1OfMaterialPropertyRepresentation; class StepRepr_Array1OfMaterialPropertyRepresentation { public: @@ -382,51 +430,7 @@ class StepRepr_AssemblyComponentUsageSubstitute : public MMgt_TShared { }; -%extend StepRepr_AssemblyComponentUsageSubstitute { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_AssemblyComponentUsageSubstitute(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_AssemblyComponentUsageSubstitute::Handle_StepRepr_AssemblyComponentUsageSubstitute %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_AssemblyComponentUsageSubstitute; -class Handle_StepRepr_AssemblyComponentUsageSubstitute : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_AssemblyComponentUsageSubstitute(); - Handle_StepRepr_AssemblyComponentUsageSubstitute(const Handle_StepRepr_AssemblyComponentUsageSubstitute &aHandle); - Handle_StepRepr_AssemblyComponentUsageSubstitute(const StepRepr_AssemblyComponentUsageSubstitute *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_AssemblyComponentUsageSubstitute DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_AssemblyComponentUsageSubstitute { - StepRepr_AssemblyComponentUsageSubstitute* _get_reference() { - return (StepRepr_AssemblyComponentUsageSubstitute*)$self->Access(); - } -}; - -%extend Handle_StepRepr_AssemblyComponentUsageSubstitute { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_AssemblyComponentUsageSubstitute) %extend StepRepr_AssemblyComponentUsageSubstitute { %pythoncode { @@ -550,51 +554,7 @@ class StepRepr_ConfigurationDesign : public MMgt_TShared { }; -%extend StepRepr_ConfigurationDesign { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ConfigurationDesign(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ConfigurationDesign::Handle_StepRepr_ConfigurationDesign %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ConfigurationDesign; -class Handle_StepRepr_ConfigurationDesign : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_ConfigurationDesign(); - Handle_StepRepr_ConfigurationDesign(const Handle_StepRepr_ConfigurationDesign &aHandle); - Handle_StepRepr_ConfigurationDesign(const StepRepr_ConfigurationDesign *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ConfigurationDesign DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ConfigurationDesign { - StepRepr_ConfigurationDesign* _get_reference() { - return (StepRepr_ConfigurationDesign*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ConfigurationDesign { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ConfigurationDesign) %extend StepRepr_ConfigurationDesign { %pythoncode { @@ -676,51 +636,7 @@ class StepRepr_ConfigurationEffectivity : public StepBasic_ProductDefinitionEffe }; -%extend StepRepr_ConfigurationEffectivity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ConfigurationEffectivity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ConfigurationEffectivity::Handle_StepRepr_ConfigurationEffectivity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ConfigurationEffectivity; -class Handle_StepRepr_ConfigurationEffectivity : public Handle_StepBasic_ProductDefinitionEffectivity { - - public: - // constructors - Handle_StepRepr_ConfigurationEffectivity(); - Handle_StepRepr_ConfigurationEffectivity(const Handle_StepRepr_ConfigurationEffectivity &aHandle); - Handle_StepRepr_ConfigurationEffectivity(const StepRepr_ConfigurationEffectivity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ConfigurationEffectivity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ConfigurationEffectivity { - StepRepr_ConfigurationEffectivity* _get_reference() { - return (StepRepr_ConfigurationEffectivity*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ConfigurationEffectivity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ConfigurationEffectivity) %extend StepRepr_ConfigurationEffectivity { %pythoncode { @@ -841,51 +757,7 @@ class StepRepr_ConfigurationItem : public MMgt_TShared { }; -%extend StepRepr_ConfigurationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ConfigurationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ConfigurationItem::Handle_StepRepr_ConfigurationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ConfigurationItem; -class Handle_StepRepr_ConfigurationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_ConfigurationItem(); - Handle_StepRepr_ConfigurationItem(const Handle_StepRepr_ConfigurationItem &aHandle); - Handle_StepRepr_ConfigurationItem(const StepRepr_ConfigurationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ConfigurationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ConfigurationItem { - StepRepr_ConfigurationItem* _get_reference() { - return (StepRepr_ConfigurationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ConfigurationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ConfigurationItem) %extend StepRepr_ConfigurationItem { %pythoncode { @@ -958,51 +830,7 @@ class StepRepr_DataEnvironment : public MMgt_TShared { }; -%extend StepRepr_DataEnvironment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_DataEnvironment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_DataEnvironment::Handle_StepRepr_DataEnvironment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_DataEnvironment; -class Handle_StepRepr_DataEnvironment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_DataEnvironment(); - Handle_StepRepr_DataEnvironment(const Handle_StepRepr_DataEnvironment &aHandle); - Handle_StepRepr_DataEnvironment(const StepRepr_DataEnvironment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_DataEnvironment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_DataEnvironment { - StepRepr_DataEnvironment* _get_reference() { - return (StepRepr_DataEnvironment*)$self->Access(); - } -}; - -%extend Handle_StepRepr_DataEnvironment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_DataEnvironment) %extend StepRepr_DataEnvironment { %pythoncode { @@ -1049,51 +877,7 @@ class StepRepr_FunctionallyDefinedTransformation : public MMgt_TShared { }; -%extend StepRepr_FunctionallyDefinedTransformation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_FunctionallyDefinedTransformation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_FunctionallyDefinedTransformation::Handle_StepRepr_FunctionallyDefinedTransformation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_FunctionallyDefinedTransformation; -class Handle_StepRepr_FunctionallyDefinedTransformation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_FunctionallyDefinedTransformation(); - Handle_StepRepr_FunctionallyDefinedTransformation(const Handle_StepRepr_FunctionallyDefinedTransformation &aHandle); - Handle_StepRepr_FunctionallyDefinedTransformation(const StepRepr_FunctionallyDefinedTransformation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_FunctionallyDefinedTransformation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_FunctionallyDefinedTransformation { - StepRepr_FunctionallyDefinedTransformation* _get_reference() { - return (StepRepr_FunctionallyDefinedTransformation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_FunctionallyDefinedTransformation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_FunctionallyDefinedTransformation) %extend StepRepr_FunctionallyDefinedTransformation { %pythoncode { @@ -1170,51 +954,7 @@ class StepRepr_HArray1OfMaterialPropertyRepresentation : public MMgt_TShared { }; -%extend StepRepr_HArray1OfMaterialPropertyRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_HArray1OfMaterialPropertyRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_HArray1OfMaterialPropertyRepresentation::Handle_StepRepr_HArray1OfMaterialPropertyRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_HArray1OfMaterialPropertyRepresentation; -class Handle_StepRepr_HArray1OfMaterialPropertyRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_HArray1OfMaterialPropertyRepresentation(); - Handle_StepRepr_HArray1OfMaterialPropertyRepresentation(const Handle_StepRepr_HArray1OfMaterialPropertyRepresentation &aHandle); - Handle_StepRepr_HArray1OfMaterialPropertyRepresentation(const StepRepr_HArray1OfMaterialPropertyRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_HArray1OfMaterialPropertyRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_HArray1OfMaterialPropertyRepresentation { - StepRepr_HArray1OfMaterialPropertyRepresentation* _get_reference() { - return (StepRepr_HArray1OfMaterialPropertyRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_HArray1OfMaterialPropertyRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_HArray1OfMaterialPropertyRepresentation) %extend StepRepr_HArray1OfMaterialPropertyRepresentation { %pythoncode { @@ -1291,51 +1031,7 @@ class StepRepr_HArray1OfPropertyDefinitionRepresentation : public MMgt_TShared { }; -%extend StepRepr_HArray1OfPropertyDefinitionRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation::Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation; -class Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation(); - Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation(const Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation &aHandle); - Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation(const StepRepr_HArray1OfPropertyDefinitionRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation { - StepRepr_HArray1OfPropertyDefinitionRepresentation* _get_reference() { - return (StepRepr_HArray1OfPropertyDefinitionRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_HArray1OfPropertyDefinitionRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_HArray1OfPropertyDefinitionRepresentation) %extend StepRepr_HArray1OfPropertyDefinitionRepresentation { %pythoncode { @@ -1412,51 +1108,7 @@ class StepRepr_HArray1OfRepresentationItem : public MMgt_TShared { }; -%extend StepRepr_HArray1OfRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_HArray1OfRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_HArray1OfRepresentationItem::Handle_StepRepr_HArray1OfRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_HArray1OfRepresentationItem; -class Handle_StepRepr_HArray1OfRepresentationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_HArray1OfRepresentationItem(); - Handle_StepRepr_HArray1OfRepresentationItem(const Handle_StepRepr_HArray1OfRepresentationItem &aHandle); - Handle_StepRepr_HArray1OfRepresentationItem(const StepRepr_HArray1OfRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_HArray1OfRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_HArray1OfRepresentationItem { - StepRepr_HArray1OfRepresentationItem* _get_reference() { - return (StepRepr_HArray1OfRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_HArray1OfRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_HArray1OfRepresentationItem) %extend StepRepr_HArray1OfRepresentationItem { %pythoncode { @@ -1601,51 +1253,7 @@ class StepRepr_HSequenceOfMaterialPropertyRepresentation : public MMgt_TShared { }; -%extend StepRepr_HSequenceOfMaterialPropertyRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation::Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation; -class Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation(); - Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation(const Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation &aHandle); - Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation(const StepRepr_HSequenceOfMaterialPropertyRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation { - StepRepr_HSequenceOfMaterialPropertyRepresentation* _get_reference() { - return (StepRepr_HSequenceOfMaterialPropertyRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_HSequenceOfMaterialPropertyRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_HSequenceOfMaterialPropertyRepresentation) %extend StepRepr_HSequenceOfMaterialPropertyRepresentation { %pythoncode { @@ -1790,51 +1398,7 @@ class StepRepr_HSequenceOfRepresentationItem : public MMgt_TShared { }; -%extend StepRepr_HSequenceOfRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_HSequenceOfRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_HSequenceOfRepresentationItem::Handle_StepRepr_HSequenceOfRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_HSequenceOfRepresentationItem; -class Handle_StepRepr_HSequenceOfRepresentationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_HSequenceOfRepresentationItem(); - Handle_StepRepr_HSequenceOfRepresentationItem(const Handle_StepRepr_HSequenceOfRepresentationItem &aHandle); - Handle_StepRepr_HSequenceOfRepresentationItem(const StepRepr_HSequenceOfRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_HSequenceOfRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_HSequenceOfRepresentationItem { - StepRepr_HSequenceOfRepresentationItem* _get_reference() { - return (StepRepr_HSequenceOfRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_HSequenceOfRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_HSequenceOfRepresentationItem) %extend StepRepr_HSequenceOfRepresentationItem { %pythoncode { @@ -1903,51 +1467,7 @@ class StepRepr_ItemDefinedTransformation : public MMgt_TShared { }; -%extend StepRepr_ItemDefinedTransformation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ItemDefinedTransformation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ItemDefinedTransformation::Handle_StepRepr_ItemDefinedTransformation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ItemDefinedTransformation; -class Handle_StepRepr_ItemDefinedTransformation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_ItemDefinedTransformation(); - Handle_StepRepr_ItemDefinedTransformation(const Handle_StepRepr_ItemDefinedTransformation &aHandle); - Handle_StepRepr_ItemDefinedTransformation(const StepRepr_ItemDefinedTransformation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ItemDefinedTransformation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ItemDefinedTransformation { - StepRepr_ItemDefinedTransformation* _get_reference() { - return (StepRepr_ItemDefinedTransformation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ItemDefinedTransformation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ItemDefinedTransformation) %extend StepRepr_ItemDefinedTransformation { %pythoncode { @@ -1992,51 +1512,7 @@ class StepRepr_MaterialDesignation : public MMgt_TShared { }; -%extend StepRepr_MaterialDesignation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_MaterialDesignation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_MaterialDesignation::Handle_StepRepr_MaterialDesignation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_MaterialDesignation; -class Handle_StepRepr_MaterialDesignation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_MaterialDesignation(); - Handle_StepRepr_MaterialDesignation(const Handle_StepRepr_MaterialDesignation &aHandle); - Handle_StepRepr_MaterialDesignation(const StepRepr_MaterialDesignation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_MaterialDesignation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_MaterialDesignation { - StepRepr_MaterialDesignation* _get_reference() { - return (StepRepr_MaterialDesignation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_MaterialDesignation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_MaterialDesignation) %extend StepRepr_MaterialDesignation { %pythoncode { @@ -2133,51 +1609,7 @@ class StepRepr_ProductConcept : public MMgt_TShared { }; -%extend StepRepr_ProductConcept { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ProductConcept(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ProductConcept::Handle_StepRepr_ProductConcept %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ProductConcept; -class Handle_StepRepr_ProductConcept : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_ProductConcept(); - Handle_StepRepr_ProductConcept(const Handle_StepRepr_ProductConcept &aHandle); - Handle_StepRepr_ProductConcept(const StepRepr_ProductConcept *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ProductConcept DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ProductConcept { - StepRepr_ProductConcept* _get_reference() { - return (StepRepr_ProductConcept*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ProductConcept { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ProductConcept) %extend StepRepr_ProductConcept { %pythoncode { @@ -2196,51 +1628,7 @@ class StepRepr_ProductDefinitionUsage : public StepBasic_ProductDefinitionRelati }; -%extend StepRepr_ProductDefinitionUsage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ProductDefinitionUsage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ProductDefinitionUsage::Handle_StepRepr_ProductDefinitionUsage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ProductDefinitionUsage; -class Handle_StepRepr_ProductDefinitionUsage : public Handle_StepBasic_ProductDefinitionRelationship { - - public: - // constructors - Handle_StepRepr_ProductDefinitionUsage(); - Handle_StepRepr_ProductDefinitionUsage(const Handle_StepRepr_ProductDefinitionUsage &aHandle); - Handle_StepRepr_ProductDefinitionUsage(const StepRepr_ProductDefinitionUsage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ProductDefinitionUsage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ProductDefinitionUsage { - StepRepr_ProductDefinitionUsage* _get_reference() { - return (StepRepr_ProductDefinitionUsage*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ProductDefinitionUsage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ProductDefinitionUsage) %extend StepRepr_ProductDefinitionUsage { %pythoncode { @@ -2321,51 +1709,7 @@ class StepRepr_PropertyDefinition : public MMgt_TShared { }; -%extend StepRepr_PropertyDefinition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_PropertyDefinition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_PropertyDefinition::Handle_StepRepr_PropertyDefinition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_PropertyDefinition; -class Handle_StepRepr_PropertyDefinition : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_PropertyDefinition(); - Handle_StepRepr_PropertyDefinition(const Handle_StepRepr_PropertyDefinition &aHandle); - Handle_StepRepr_PropertyDefinition(const StepRepr_PropertyDefinition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_PropertyDefinition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_PropertyDefinition { - StepRepr_PropertyDefinition* _get_reference() { - return (StepRepr_PropertyDefinition*)$self->Access(); - } -}; - -%extend Handle_StepRepr_PropertyDefinition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_PropertyDefinition) %extend StepRepr_PropertyDefinition { %pythoncode { @@ -2454,51 +1798,7 @@ class StepRepr_PropertyDefinitionRelationship : public MMgt_TShared { }; -%extend StepRepr_PropertyDefinitionRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_PropertyDefinitionRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_PropertyDefinitionRelationship::Handle_StepRepr_PropertyDefinitionRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_PropertyDefinitionRelationship; -class Handle_StepRepr_PropertyDefinitionRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_PropertyDefinitionRelationship(); - Handle_StepRepr_PropertyDefinitionRelationship(const Handle_StepRepr_PropertyDefinitionRelationship &aHandle); - Handle_StepRepr_PropertyDefinitionRelationship(const StepRepr_PropertyDefinitionRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_PropertyDefinitionRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_PropertyDefinitionRelationship { - StepRepr_PropertyDefinitionRelationship* _get_reference() { - return (StepRepr_PropertyDefinitionRelationship*)$self->Access(); - } -}; - -%extend Handle_StepRepr_PropertyDefinitionRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_PropertyDefinitionRelationship) %extend StepRepr_PropertyDefinitionRelationship { %pythoncode { @@ -2555,51 +1855,7 @@ class StepRepr_PropertyDefinitionRepresentation : public MMgt_TShared { }; -%extend StepRepr_PropertyDefinitionRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_PropertyDefinitionRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_PropertyDefinitionRepresentation::Handle_StepRepr_PropertyDefinitionRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_PropertyDefinitionRepresentation; -class Handle_StepRepr_PropertyDefinitionRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_PropertyDefinitionRepresentation(); - Handle_StepRepr_PropertyDefinitionRepresentation(const Handle_StepRepr_PropertyDefinitionRepresentation &aHandle); - Handle_StepRepr_PropertyDefinitionRepresentation(const StepRepr_PropertyDefinitionRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_PropertyDefinitionRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_PropertyDefinitionRepresentation { - StepRepr_PropertyDefinitionRepresentation* _get_reference() { - return (StepRepr_PropertyDefinitionRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_PropertyDefinitionRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_PropertyDefinitionRepresentation) %extend StepRepr_PropertyDefinitionRepresentation { %pythoncode { @@ -2668,51 +1924,7 @@ class StepRepr_Representation : public MMgt_TShared { }; -%extend StepRepr_Representation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_Representation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_Representation::Handle_StepRepr_Representation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_Representation; -class Handle_StepRepr_Representation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_Representation(); - Handle_StepRepr_Representation(const Handle_StepRepr_Representation &aHandle); - Handle_StepRepr_Representation(const StepRepr_Representation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_Representation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_Representation { - StepRepr_Representation* _get_reference() { - return (StepRepr_Representation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_Representation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_Representation) %extend StepRepr_Representation { %pythoncode { @@ -2759,55 +1971,11 @@ class StepRepr_RepresentationContext : public MMgt_TShared { }; +%make_alias(StepRepr_RepresentationContext) + %extend StepRepr_RepresentationContext { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_RepresentationContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_RepresentationContext::Handle_StepRepr_RepresentationContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_RepresentationContext; -class Handle_StepRepr_RepresentationContext : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_RepresentationContext(); - Handle_StepRepr_RepresentationContext(const Handle_StepRepr_RepresentationContext &aHandle); - Handle_StepRepr_RepresentationContext(const StepRepr_RepresentationContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_RepresentationContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_RepresentationContext { - StepRepr_RepresentationContext* _get_reference() { - return (StepRepr_RepresentationContext*)$self->Access(); - } -}; - -%extend Handle_StepRepr_RepresentationContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepRepr_RepresentationContext { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepRepr_RepresentationItem; @@ -2838,51 +2006,7 @@ class StepRepr_RepresentationItem : public MMgt_TShared { }; -%extend StepRepr_RepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_RepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_RepresentationItem::Handle_StepRepr_RepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_RepresentationItem; -class Handle_StepRepr_RepresentationItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_RepresentationItem(); - Handle_StepRepr_RepresentationItem(const Handle_StepRepr_RepresentationItem &aHandle); - Handle_StepRepr_RepresentationItem(const StepRepr_RepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_RepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_RepresentationItem { - StepRepr_RepresentationItem* _get_reference() { - return (StepRepr_RepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_RepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_RepresentationItem) %extend StepRepr_RepresentationItem { %pythoncode { @@ -2929,51 +2053,7 @@ class StepRepr_RepresentationMap : public MMgt_TShared { }; -%extend StepRepr_RepresentationMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_RepresentationMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_RepresentationMap::Handle_StepRepr_RepresentationMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_RepresentationMap; -class Handle_StepRepr_RepresentationMap : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_RepresentationMap(); - Handle_StepRepr_RepresentationMap(const Handle_StepRepr_RepresentationMap &aHandle); - Handle_StepRepr_RepresentationMap(const StepRepr_RepresentationMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_RepresentationMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_RepresentationMap { - StepRepr_RepresentationMap* _get_reference() { - return (StepRepr_RepresentationMap*)$self->Access(); - } -}; - -%extend Handle_StepRepr_RepresentationMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_RepresentationMap) %extend StepRepr_RepresentationMap { %pythoncode { @@ -3044,51 +2124,7 @@ class StepRepr_RepresentationRelationship : public MMgt_TShared { }; -%extend StepRepr_RepresentationRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_RepresentationRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_RepresentationRelationship::Handle_StepRepr_RepresentationRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_RepresentationRelationship; -class Handle_StepRepr_RepresentationRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_RepresentationRelationship(); - Handle_StepRepr_RepresentationRelationship(const Handle_StepRepr_RepresentationRelationship &aHandle); - Handle_StepRepr_RepresentationRelationship(const StepRepr_RepresentationRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_RepresentationRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_RepresentationRelationship { - StepRepr_RepresentationRelationship* _get_reference() { - return (StepRepr_RepresentationRelationship*)$self->Access(); - } -}; - -%extend Handle_StepRepr_RepresentationRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_RepresentationRelationship) %extend StepRepr_RepresentationRelationship { %pythoncode { @@ -3170,51 +2206,7 @@ class StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation : public T }; -%extend StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation::Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation; -class Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation(); - Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation(const Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation &aHandle); - Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation(const StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation { - StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation* _get_reference() { - return (StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation) %extend StepRepr_SequenceNodeOfSequenceOfMaterialPropertyRepresentation { %pythoncode { @@ -3241,51 +2233,7 @@ class StepRepr_SequenceNodeOfSequenceOfRepresentationItem : public TCollection_S }; -%extend StepRepr_SequenceNodeOfSequenceOfRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem::Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem; -class Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem(); - Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem(const Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem &aHandle); - Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem(const StepRepr_SequenceNodeOfSequenceOfRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem { - StepRepr_SequenceNodeOfSequenceOfRepresentationItem* _get_reference() { - return (StepRepr_SequenceNodeOfSequenceOfRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_SequenceNodeOfSequenceOfRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_SequenceNodeOfSequenceOfRepresentationItem) %extend StepRepr_SequenceNodeOfSequenceOfRepresentationItem { %pythoncode { @@ -3642,51 +2590,7 @@ class StepRepr_ShapeAspect : public MMgt_TShared { }; -%extend StepRepr_ShapeAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ShapeAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ShapeAspect::Handle_StepRepr_ShapeAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ShapeAspect; -class Handle_StepRepr_ShapeAspect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_ShapeAspect(); - Handle_StepRepr_ShapeAspect(const Handle_StepRepr_ShapeAspect &aHandle); - Handle_StepRepr_ShapeAspect(const StepRepr_ShapeAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ShapeAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ShapeAspect { - StepRepr_ShapeAspect* _get_reference() { - return (StepRepr_ShapeAspect*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ShapeAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ShapeAspect) %extend StepRepr_ShapeAspect { %pythoncode { @@ -3783,51 +2687,7 @@ class StepRepr_ShapeAspectRelationship : public MMgt_TShared { }; -%extend StepRepr_ShapeAspectRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ShapeAspectRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ShapeAspectRelationship::Handle_StepRepr_ShapeAspectRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ShapeAspectRelationship; -class Handle_StepRepr_ShapeAspectRelationship : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepRepr_ShapeAspectRelationship(); - Handle_StepRepr_ShapeAspectRelationship(const Handle_StepRepr_ShapeAspectRelationship &aHandle); - Handle_StepRepr_ShapeAspectRelationship(const StepRepr_ShapeAspectRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ShapeAspectRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ShapeAspectRelationship { - StepRepr_ShapeAspectRelationship* _get_reference() { - return (StepRepr_ShapeAspectRelationship*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ShapeAspectRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ShapeAspectRelationship) %extend StepRepr_ShapeAspectRelationship { %pythoncode { @@ -3887,51 +2747,7 @@ class StepRepr_SuppliedPartRelationship : public StepBasic_ProductDefinitionRela }; -%extend StepRepr_SuppliedPartRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_SuppliedPartRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_SuppliedPartRelationship::Handle_StepRepr_SuppliedPartRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_SuppliedPartRelationship; -class Handle_StepRepr_SuppliedPartRelationship : public Handle_StepBasic_ProductDefinitionRelationship { - - public: - // constructors - Handle_StepRepr_SuppliedPartRelationship(); - Handle_StepRepr_SuppliedPartRelationship(const Handle_StepRepr_SuppliedPartRelationship &aHandle); - Handle_StepRepr_SuppliedPartRelationship(const StepRepr_SuppliedPartRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_SuppliedPartRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_SuppliedPartRelationship { - StepRepr_SuppliedPartRelationship* _get_reference() { - return (StepRepr_SuppliedPartRelationship*)$self->Access(); - } -}; - -%extend Handle_StepRepr_SuppliedPartRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_SuppliedPartRelationship) %extend StepRepr_SuppliedPartRelationship { %pythoncode { @@ -4029,51 +2845,7 @@ class StepRepr_AssemblyComponentUsage : public StepRepr_ProductDefinitionUsage { }; -%extend StepRepr_AssemblyComponentUsage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_AssemblyComponentUsage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_AssemblyComponentUsage::Handle_StepRepr_AssemblyComponentUsage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_AssemblyComponentUsage; -class Handle_StepRepr_AssemblyComponentUsage : public Handle_StepRepr_ProductDefinitionUsage { - - public: - // constructors - Handle_StepRepr_AssemblyComponentUsage(); - Handle_StepRepr_AssemblyComponentUsage(const Handle_StepRepr_AssemblyComponentUsage &aHandle); - Handle_StepRepr_AssemblyComponentUsage(const StepRepr_AssemblyComponentUsage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_AssemblyComponentUsage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_AssemblyComponentUsage { - StepRepr_AssemblyComponentUsage* _get_reference() { - return (StepRepr_AssemblyComponentUsage*)$self->Access(); - } -}; - -%extend Handle_StepRepr_AssemblyComponentUsage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_AssemblyComponentUsage) %extend StepRepr_AssemblyComponentUsage { %pythoncode { @@ -4090,51 +2862,7 @@ class StepRepr_CompositeShapeAspect : public StepRepr_ShapeAspect { }; -%extend StepRepr_CompositeShapeAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_CompositeShapeAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_CompositeShapeAspect::Handle_StepRepr_CompositeShapeAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_CompositeShapeAspect; -class Handle_StepRepr_CompositeShapeAspect : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepRepr_CompositeShapeAspect(); - Handle_StepRepr_CompositeShapeAspect(const Handle_StepRepr_CompositeShapeAspect &aHandle); - Handle_StepRepr_CompositeShapeAspect(const StepRepr_CompositeShapeAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_CompositeShapeAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_CompositeShapeAspect { - StepRepr_CompositeShapeAspect* _get_reference() { - return (StepRepr_CompositeShapeAspect*)$self->Access(); - } -}; - -%extend Handle_StepRepr_CompositeShapeAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_CompositeShapeAspect) %extend StepRepr_CompositeShapeAspect { %pythoncode { @@ -4187,51 +2915,7 @@ class StepRepr_CompoundRepresentationItem : public StepRepr_RepresentationItem { }; -%extend StepRepr_CompoundRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_CompoundRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_CompoundRepresentationItem::Handle_StepRepr_CompoundRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_CompoundRepresentationItem; -class Handle_StepRepr_CompoundRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepRepr_CompoundRepresentationItem(); - Handle_StepRepr_CompoundRepresentationItem(const Handle_StepRepr_CompoundRepresentationItem &aHandle); - Handle_StepRepr_CompoundRepresentationItem(const StepRepr_CompoundRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_CompoundRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_CompoundRepresentationItem { - StepRepr_CompoundRepresentationItem* _get_reference() { - return (StepRepr_CompoundRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_CompoundRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_CompoundRepresentationItem) %extend StepRepr_CompoundRepresentationItem { %pythoncode { @@ -4250,51 +2934,7 @@ class StepRepr_DefinitionalRepresentation : public StepRepr_Representation { }; -%extend StepRepr_DefinitionalRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_DefinitionalRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_DefinitionalRepresentation::Handle_StepRepr_DefinitionalRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_DefinitionalRepresentation; -class Handle_StepRepr_DefinitionalRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepRepr_DefinitionalRepresentation(); - Handle_StepRepr_DefinitionalRepresentation(const Handle_StepRepr_DefinitionalRepresentation &aHandle); - Handle_StepRepr_DefinitionalRepresentation(const StepRepr_DefinitionalRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_DefinitionalRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_DefinitionalRepresentation { - StepRepr_DefinitionalRepresentation* _get_reference() { - return (StepRepr_DefinitionalRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_DefinitionalRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_DefinitionalRepresentation) %extend StepRepr_DefinitionalRepresentation { %pythoncode { @@ -4311,51 +2951,7 @@ class StepRepr_DerivedShapeAspect : public StepRepr_ShapeAspect { }; -%extend StepRepr_DerivedShapeAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_DerivedShapeAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_DerivedShapeAspect::Handle_StepRepr_DerivedShapeAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_DerivedShapeAspect; -class Handle_StepRepr_DerivedShapeAspect : public Handle_StepRepr_ShapeAspect { - - public: - // constructors - Handle_StepRepr_DerivedShapeAspect(); - Handle_StepRepr_DerivedShapeAspect(const Handle_StepRepr_DerivedShapeAspect &aHandle); - Handle_StepRepr_DerivedShapeAspect(const StepRepr_DerivedShapeAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_DerivedShapeAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_DerivedShapeAspect { - StepRepr_DerivedShapeAspect* _get_reference() { - return (StepRepr_DerivedShapeAspect*)$self->Access(); - } -}; - -%extend Handle_StepRepr_DerivedShapeAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_DerivedShapeAspect) %extend StepRepr_DerivedShapeAspect { %pythoncode { @@ -4398,51 +2994,7 @@ class StepRepr_DescriptiveRepresentationItem : public StepRepr_RepresentationIte }; -%extend StepRepr_DescriptiveRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_DescriptiveRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_DescriptiveRepresentationItem::Handle_StepRepr_DescriptiveRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_DescriptiveRepresentationItem; -class Handle_StepRepr_DescriptiveRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepRepr_DescriptiveRepresentationItem(); - Handle_StepRepr_DescriptiveRepresentationItem(const Handle_StepRepr_DescriptiveRepresentationItem &aHandle); - Handle_StepRepr_DescriptiveRepresentationItem(const StepRepr_DescriptiveRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_DescriptiveRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_DescriptiveRepresentationItem { - StepRepr_DescriptiveRepresentationItem* _get_reference() { - return (StepRepr_DescriptiveRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_DescriptiveRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_DescriptiveRepresentationItem) %extend StepRepr_DescriptiveRepresentationItem { %pythoncode { @@ -4459,51 +3011,7 @@ class StepRepr_ExternallyDefinedRepresentation : public StepRepr_Representation }; -%extend StepRepr_ExternallyDefinedRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ExternallyDefinedRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ExternallyDefinedRepresentation::Handle_StepRepr_ExternallyDefinedRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ExternallyDefinedRepresentation; -class Handle_StepRepr_ExternallyDefinedRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepRepr_ExternallyDefinedRepresentation(); - Handle_StepRepr_ExternallyDefinedRepresentation(const Handle_StepRepr_ExternallyDefinedRepresentation &aHandle); - Handle_StepRepr_ExternallyDefinedRepresentation(const StepRepr_ExternallyDefinedRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ExternallyDefinedRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ExternallyDefinedRepresentation { - StepRepr_ExternallyDefinedRepresentation* _get_reference() { - return (StepRepr_ExternallyDefinedRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ExternallyDefinedRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ExternallyDefinedRepresentation) %extend StepRepr_ExternallyDefinedRepresentation { %pythoncode { @@ -4560,51 +3068,7 @@ class StepRepr_GlobalUncertaintyAssignedContext : public StepRepr_Representation }; -%extend StepRepr_GlobalUncertaintyAssignedContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_GlobalUncertaintyAssignedContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_GlobalUncertaintyAssignedContext::Handle_StepRepr_GlobalUncertaintyAssignedContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_GlobalUncertaintyAssignedContext; -class Handle_StepRepr_GlobalUncertaintyAssignedContext : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepRepr_GlobalUncertaintyAssignedContext(); - Handle_StepRepr_GlobalUncertaintyAssignedContext(const Handle_StepRepr_GlobalUncertaintyAssignedContext &aHandle); - Handle_StepRepr_GlobalUncertaintyAssignedContext(const StepRepr_GlobalUncertaintyAssignedContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_GlobalUncertaintyAssignedContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_GlobalUncertaintyAssignedContext { - StepRepr_GlobalUncertaintyAssignedContext* _get_reference() { - return (StepRepr_GlobalUncertaintyAssignedContext*)$self->Access(); - } -}; - -%extend Handle_StepRepr_GlobalUncertaintyAssignedContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_GlobalUncertaintyAssignedContext) %extend StepRepr_GlobalUncertaintyAssignedContext { %pythoncode { @@ -4661,51 +3125,7 @@ class StepRepr_GlobalUnitAssignedContext : public StepRepr_RepresentationContext }; -%extend StepRepr_GlobalUnitAssignedContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_GlobalUnitAssignedContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_GlobalUnitAssignedContext::Handle_StepRepr_GlobalUnitAssignedContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_GlobalUnitAssignedContext; -class Handle_StepRepr_GlobalUnitAssignedContext : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepRepr_GlobalUnitAssignedContext(); - Handle_StepRepr_GlobalUnitAssignedContext(const Handle_StepRepr_GlobalUnitAssignedContext &aHandle); - Handle_StepRepr_GlobalUnitAssignedContext(const StepRepr_GlobalUnitAssignedContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_GlobalUnitAssignedContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_GlobalUnitAssignedContext { - StepRepr_GlobalUnitAssignedContext* _get_reference() { - return (StepRepr_GlobalUnitAssignedContext*)$self->Access(); - } -}; - -%extend Handle_StepRepr_GlobalUnitAssignedContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_GlobalUnitAssignedContext) %extend StepRepr_GlobalUnitAssignedContext { %pythoncode { @@ -4790,51 +3210,7 @@ class StepRepr_MakeFromUsageOption : public StepRepr_ProductDefinitionUsage { }; -%extend StepRepr_MakeFromUsageOption { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_MakeFromUsageOption(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_MakeFromUsageOption::Handle_StepRepr_MakeFromUsageOption %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_MakeFromUsageOption; -class Handle_StepRepr_MakeFromUsageOption : public Handle_StepRepr_ProductDefinitionUsage { - - public: - // constructors - Handle_StepRepr_MakeFromUsageOption(); - Handle_StepRepr_MakeFromUsageOption(const Handle_StepRepr_MakeFromUsageOption &aHandle); - Handle_StepRepr_MakeFromUsageOption(const StepRepr_MakeFromUsageOption *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_MakeFromUsageOption DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_MakeFromUsageOption { - StepRepr_MakeFromUsageOption* _get_reference() { - return (StepRepr_MakeFromUsageOption*)$self->Access(); - } -}; - -%extend Handle_StepRepr_MakeFromUsageOption { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_MakeFromUsageOption) %extend StepRepr_MakeFromUsageOption { %pythoncode { @@ -4889,51 +3265,7 @@ class StepRepr_MappedItem : public StepRepr_RepresentationItem { }; -%extend StepRepr_MappedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_MappedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_MappedItem::Handle_StepRepr_MappedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_MappedItem; -class Handle_StepRepr_MappedItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepRepr_MappedItem(); - Handle_StepRepr_MappedItem(const Handle_StepRepr_MappedItem &aHandle); - Handle_StepRepr_MappedItem(const StepRepr_MappedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_MappedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_MappedItem { - StepRepr_MappedItem* _get_reference() { - return (StepRepr_MappedItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_MappedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_MappedItem) %extend StepRepr_MappedItem { %pythoncode { @@ -4952,51 +3284,7 @@ class StepRepr_MaterialProperty : public StepRepr_PropertyDefinition { }; -%extend StepRepr_MaterialProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_MaterialProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_MaterialProperty::Handle_StepRepr_MaterialProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_MaterialProperty; -class Handle_StepRepr_MaterialProperty : public Handle_StepRepr_PropertyDefinition { - - public: - // constructors - Handle_StepRepr_MaterialProperty(); - Handle_StepRepr_MaterialProperty(const Handle_StepRepr_MaterialProperty &aHandle); - Handle_StepRepr_MaterialProperty(const StepRepr_MaterialProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_MaterialProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_MaterialProperty { - StepRepr_MaterialProperty* _get_reference() { - return (StepRepr_MaterialProperty*)$self->Access(); - } -}; - -%extend Handle_StepRepr_MaterialProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_MaterialProperty) %extend StepRepr_MaterialProperty { %pythoncode { @@ -5041,51 +3329,7 @@ class StepRepr_MaterialPropertyRepresentation : public StepRepr_PropertyDefiniti }; -%extend StepRepr_MaterialPropertyRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_MaterialPropertyRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_MaterialPropertyRepresentation::Handle_StepRepr_MaterialPropertyRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_MaterialPropertyRepresentation; -class Handle_StepRepr_MaterialPropertyRepresentation : public Handle_StepRepr_PropertyDefinitionRepresentation { - - public: - // constructors - Handle_StepRepr_MaterialPropertyRepresentation(); - Handle_StepRepr_MaterialPropertyRepresentation(const Handle_StepRepr_MaterialPropertyRepresentation &aHandle); - Handle_StepRepr_MaterialPropertyRepresentation(const StepRepr_MaterialPropertyRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_MaterialPropertyRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_MaterialPropertyRepresentation { - StepRepr_MaterialPropertyRepresentation* _get_reference() { - return (StepRepr_MaterialPropertyRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_MaterialPropertyRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_MaterialPropertyRepresentation) %extend StepRepr_MaterialPropertyRepresentation { %pythoncode { @@ -5126,51 +3370,7 @@ class StepRepr_MeasureRepresentationItem : public StepRepr_RepresentationItem { }; -%extend StepRepr_MeasureRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_MeasureRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_MeasureRepresentationItem::Handle_StepRepr_MeasureRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_MeasureRepresentationItem; -class Handle_StepRepr_MeasureRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepRepr_MeasureRepresentationItem(); - Handle_StepRepr_MeasureRepresentationItem(const Handle_StepRepr_MeasureRepresentationItem &aHandle); - Handle_StepRepr_MeasureRepresentationItem(const StepRepr_MeasureRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_MeasureRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_MeasureRepresentationItem { - StepRepr_MeasureRepresentationItem* _get_reference() { - return (StepRepr_MeasureRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepRepr_MeasureRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_MeasureRepresentationItem) %extend StepRepr_MeasureRepresentationItem { %pythoncode { @@ -5189,51 +3389,7 @@ class StepRepr_ParametricRepresentationContext : public StepRepr_RepresentationC }; -%extend StepRepr_ParametricRepresentationContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ParametricRepresentationContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ParametricRepresentationContext::Handle_StepRepr_ParametricRepresentationContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ParametricRepresentationContext; -class Handle_StepRepr_ParametricRepresentationContext : public Handle_StepRepr_RepresentationContext { - - public: - // constructors - Handle_StepRepr_ParametricRepresentationContext(); - Handle_StepRepr_ParametricRepresentationContext(const Handle_StepRepr_ParametricRepresentationContext &aHandle); - Handle_StepRepr_ParametricRepresentationContext(const StepRepr_ParametricRepresentationContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ParametricRepresentationContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ParametricRepresentationContext { - StepRepr_ParametricRepresentationContext* _get_reference() { - return (StepRepr_ParametricRepresentationContext*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ParametricRepresentationContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ParametricRepresentationContext) %extend StepRepr_ParametricRepresentationContext { %pythoncode { @@ -5252,51 +3408,7 @@ class StepRepr_ProductDefinitionShape : public StepRepr_PropertyDefinition { }; -%extend StepRepr_ProductDefinitionShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ProductDefinitionShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ProductDefinitionShape::Handle_StepRepr_ProductDefinitionShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ProductDefinitionShape; -class Handle_StepRepr_ProductDefinitionShape : public Handle_StepRepr_PropertyDefinition { - - public: - // constructors - Handle_StepRepr_ProductDefinitionShape(); - Handle_StepRepr_ProductDefinitionShape(const Handle_StepRepr_ProductDefinitionShape &aHandle); - Handle_StepRepr_ProductDefinitionShape(const StepRepr_ProductDefinitionShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ProductDefinitionShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ProductDefinitionShape { - StepRepr_ProductDefinitionShape* _get_reference() { - return (StepRepr_ProductDefinitionShape*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ProductDefinitionShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ProductDefinitionShape) %extend StepRepr_ProductDefinitionShape { %pythoncode { @@ -5349,51 +3461,7 @@ class StepRepr_ReprItemAndLengthMeasureWithUnit : public StepRepr_Representation }; -%extend StepRepr_ReprItemAndLengthMeasureWithUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ReprItemAndLengthMeasureWithUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ReprItemAndLengthMeasureWithUnit::Handle_StepRepr_ReprItemAndLengthMeasureWithUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ReprItemAndLengthMeasureWithUnit; -class Handle_StepRepr_ReprItemAndLengthMeasureWithUnit : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepRepr_ReprItemAndLengthMeasureWithUnit(); - Handle_StepRepr_ReprItemAndLengthMeasureWithUnit(const Handle_StepRepr_ReprItemAndLengthMeasureWithUnit &aHandle); - Handle_StepRepr_ReprItemAndLengthMeasureWithUnit(const StepRepr_ReprItemAndLengthMeasureWithUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ReprItemAndLengthMeasureWithUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ReprItemAndLengthMeasureWithUnit { - StepRepr_ReprItemAndLengthMeasureWithUnit* _get_reference() { - return (StepRepr_ReprItemAndLengthMeasureWithUnit*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ReprItemAndLengthMeasureWithUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ReprItemAndLengthMeasureWithUnit) %extend StepRepr_ReprItemAndLengthMeasureWithUnit { %pythoncode { @@ -5410,51 +3478,7 @@ class StepRepr_ShapeAspectDerivingRelationship : public StepRepr_ShapeAspectRela }; -%extend StepRepr_ShapeAspectDerivingRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ShapeAspectDerivingRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ShapeAspectDerivingRelationship::Handle_StepRepr_ShapeAspectDerivingRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ShapeAspectDerivingRelationship; -class Handle_StepRepr_ShapeAspectDerivingRelationship : public Handle_StepRepr_ShapeAspectRelationship { - - public: - // constructors - Handle_StepRepr_ShapeAspectDerivingRelationship(); - Handle_StepRepr_ShapeAspectDerivingRelationship(const Handle_StepRepr_ShapeAspectDerivingRelationship &aHandle); - Handle_StepRepr_ShapeAspectDerivingRelationship(const StepRepr_ShapeAspectDerivingRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ShapeAspectDerivingRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ShapeAspectDerivingRelationship { - StepRepr_ShapeAspectDerivingRelationship* _get_reference() { - return (StepRepr_ShapeAspectDerivingRelationship*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ShapeAspectDerivingRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ShapeAspectDerivingRelationship) %extend StepRepr_ShapeAspectDerivingRelationship { %pythoncode { @@ -5473,51 +3497,7 @@ class StepRepr_ShapeAspectTransition : public StepRepr_ShapeAspectRelationship { }; -%extend StepRepr_ShapeAspectTransition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ShapeAspectTransition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ShapeAspectTransition::Handle_StepRepr_ShapeAspectTransition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ShapeAspectTransition; -class Handle_StepRepr_ShapeAspectTransition : public Handle_StepRepr_ShapeAspectRelationship { - - public: - // constructors - Handle_StepRepr_ShapeAspectTransition(); - Handle_StepRepr_ShapeAspectTransition(const Handle_StepRepr_ShapeAspectTransition &aHandle); - Handle_StepRepr_ShapeAspectTransition(const StepRepr_ShapeAspectTransition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ShapeAspectTransition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ShapeAspectTransition { - StepRepr_ShapeAspectTransition* _get_reference() { - return (StepRepr_ShapeAspectTransition*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ShapeAspectTransition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ShapeAspectTransition) %extend StepRepr_ShapeAspectTransition { %pythoncode { @@ -5534,51 +3514,7 @@ class StepRepr_ShapeRepresentationRelationship : public StepRepr_RepresentationR }; -%extend StepRepr_ShapeRepresentationRelationship { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ShapeRepresentationRelationship(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ShapeRepresentationRelationship::Handle_StepRepr_ShapeRepresentationRelationship %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ShapeRepresentationRelationship; -class Handle_StepRepr_ShapeRepresentationRelationship : public Handle_StepRepr_RepresentationRelationship { - - public: - // constructors - Handle_StepRepr_ShapeRepresentationRelationship(); - Handle_StepRepr_ShapeRepresentationRelationship(const Handle_StepRepr_ShapeRepresentationRelationship &aHandle); - Handle_StepRepr_ShapeRepresentationRelationship(const StepRepr_ShapeRepresentationRelationship *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ShapeRepresentationRelationship DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ShapeRepresentationRelationship { - StepRepr_ShapeRepresentationRelationship* _get_reference() { - return (StepRepr_ShapeRepresentationRelationship*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ShapeRepresentationRelationship { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ShapeRepresentationRelationship) %extend StepRepr_ShapeRepresentationRelationship { %pythoncode { @@ -5597,51 +3533,7 @@ class StepRepr_StructuralResponseProperty : public StepRepr_PropertyDefinition { }; -%extend StepRepr_StructuralResponseProperty { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_StructuralResponseProperty(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_StructuralResponseProperty::Handle_StepRepr_StructuralResponseProperty %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_StructuralResponseProperty; -class Handle_StepRepr_StructuralResponseProperty : public Handle_StepRepr_PropertyDefinition { - - public: - // constructors - Handle_StepRepr_StructuralResponseProperty(); - Handle_StepRepr_StructuralResponseProperty(const Handle_StepRepr_StructuralResponseProperty &aHandle); - Handle_StepRepr_StructuralResponseProperty(const StepRepr_StructuralResponseProperty *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_StructuralResponseProperty DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_StructuralResponseProperty { - StepRepr_StructuralResponseProperty* _get_reference() { - return (StepRepr_StructuralResponseProperty*)$self->Access(); - } -}; - -%extend Handle_StepRepr_StructuralResponseProperty { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_StructuralResponseProperty) %extend StepRepr_StructuralResponseProperty { %pythoncode { @@ -5660,51 +3552,7 @@ class StepRepr_StructuralResponsePropertyDefinitionRepresentation : public StepR }; -%extend StepRepr_StructuralResponsePropertyDefinitionRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation::Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation; -class Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation : public Handle_StepRepr_PropertyDefinitionRepresentation { - - public: - // constructors - Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation(); - Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation(const Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation &aHandle); - Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation(const StepRepr_StructuralResponsePropertyDefinitionRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation { - StepRepr_StructuralResponsePropertyDefinitionRepresentation* _get_reference() { - return (StepRepr_StructuralResponsePropertyDefinitionRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_StructuralResponsePropertyDefinitionRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_StructuralResponsePropertyDefinitionRepresentation) %extend StepRepr_StructuralResponsePropertyDefinitionRepresentation { %pythoncode { @@ -5721,51 +3569,7 @@ class StepRepr_Extension : public StepRepr_DerivedShapeAspect { }; -%extend StepRepr_Extension { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_Extension(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_Extension::Handle_StepRepr_Extension %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_Extension; -class Handle_StepRepr_Extension : public Handle_StepRepr_DerivedShapeAspect { - - public: - // constructors - Handle_StepRepr_Extension(); - Handle_StepRepr_Extension(const Handle_StepRepr_Extension &aHandle); - Handle_StepRepr_Extension(const StepRepr_Extension *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_Extension DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_Extension { - StepRepr_Extension* _get_reference() { - return (StepRepr_Extension*)$self->Access(); - } -}; - -%extend Handle_StepRepr_Extension { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_Extension) %extend StepRepr_Extension { %pythoncode { @@ -5784,51 +3588,7 @@ class StepRepr_NextAssemblyUsageOccurrence : public StepRepr_AssemblyComponentUs }; -%extend StepRepr_NextAssemblyUsageOccurrence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_NextAssemblyUsageOccurrence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_NextAssemblyUsageOccurrence::Handle_StepRepr_NextAssemblyUsageOccurrence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_NextAssemblyUsageOccurrence; -class Handle_StepRepr_NextAssemblyUsageOccurrence : public Handle_StepRepr_AssemblyComponentUsage { - - public: - // constructors - Handle_StepRepr_NextAssemblyUsageOccurrence(); - Handle_StepRepr_NextAssemblyUsageOccurrence(const Handle_StepRepr_NextAssemblyUsageOccurrence &aHandle); - Handle_StepRepr_NextAssemblyUsageOccurrence(const StepRepr_NextAssemblyUsageOccurrence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_NextAssemblyUsageOccurrence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_NextAssemblyUsageOccurrence { - StepRepr_NextAssemblyUsageOccurrence* _get_reference() { - return (StepRepr_NextAssemblyUsageOccurrence*)$self->Access(); - } -}; - -%extend Handle_StepRepr_NextAssemblyUsageOccurrence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_NextAssemblyUsageOccurrence) %extend StepRepr_NextAssemblyUsageOccurrence { %pythoncode { @@ -5845,51 +3605,7 @@ class StepRepr_PromissoryUsageOccurrence : public StepRepr_AssemblyComponentUsag }; -%extend StepRepr_PromissoryUsageOccurrence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_PromissoryUsageOccurrence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_PromissoryUsageOccurrence::Handle_StepRepr_PromissoryUsageOccurrence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_PromissoryUsageOccurrence; -class Handle_StepRepr_PromissoryUsageOccurrence : public Handle_StepRepr_AssemblyComponentUsage { - - public: - // constructors - Handle_StepRepr_PromissoryUsageOccurrence(); - Handle_StepRepr_PromissoryUsageOccurrence(const Handle_StepRepr_PromissoryUsageOccurrence &aHandle); - Handle_StepRepr_PromissoryUsageOccurrence(const StepRepr_PromissoryUsageOccurrence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_PromissoryUsageOccurrence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_PromissoryUsageOccurrence { - StepRepr_PromissoryUsageOccurrence* _get_reference() { - return (StepRepr_PromissoryUsageOccurrence*)$self->Access(); - } -}; - -%extend Handle_StepRepr_PromissoryUsageOccurrence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_PromissoryUsageOccurrence) %extend StepRepr_PromissoryUsageOccurrence { %pythoncode { @@ -5946,51 +3662,7 @@ class StepRepr_QuantifiedAssemblyComponentUsage : public StepRepr_AssemblyCompon }; -%extend StepRepr_QuantifiedAssemblyComponentUsage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_QuantifiedAssemblyComponentUsage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_QuantifiedAssemblyComponentUsage::Handle_StepRepr_QuantifiedAssemblyComponentUsage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_QuantifiedAssemblyComponentUsage; -class Handle_StepRepr_QuantifiedAssemblyComponentUsage : public Handle_StepRepr_AssemblyComponentUsage { - - public: - // constructors - Handle_StepRepr_QuantifiedAssemblyComponentUsage(); - Handle_StepRepr_QuantifiedAssemblyComponentUsage(const Handle_StepRepr_QuantifiedAssemblyComponentUsage &aHandle); - Handle_StepRepr_QuantifiedAssemblyComponentUsage(const StepRepr_QuantifiedAssemblyComponentUsage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_QuantifiedAssemblyComponentUsage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_QuantifiedAssemblyComponentUsage { - StepRepr_QuantifiedAssemblyComponentUsage* _get_reference() { - return (StepRepr_QuantifiedAssemblyComponentUsage*)$self->Access(); - } -}; - -%extend Handle_StepRepr_QuantifiedAssemblyComponentUsage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_QuantifiedAssemblyComponentUsage) %extend StepRepr_QuantifiedAssemblyComponentUsage { %pythoncode { @@ -6031,51 +3703,7 @@ class StepRepr_RepresentationRelationshipWithTransformation : public StepRepr_Sh }; -%extend StepRepr_RepresentationRelationshipWithTransformation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_RepresentationRelationshipWithTransformation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_RepresentationRelationshipWithTransformation::Handle_StepRepr_RepresentationRelationshipWithTransformation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_RepresentationRelationshipWithTransformation; -class Handle_StepRepr_RepresentationRelationshipWithTransformation : public Handle_StepRepr_ShapeRepresentationRelationship { - - public: - // constructors - Handle_StepRepr_RepresentationRelationshipWithTransformation(); - Handle_StepRepr_RepresentationRelationshipWithTransformation(const Handle_StepRepr_RepresentationRelationshipWithTransformation &aHandle); - Handle_StepRepr_RepresentationRelationshipWithTransformation(const StepRepr_RepresentationRelationshipWithTransformation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_RepresentationRelationshipWithTransformation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_RepresentationRelationshipWithTransformation { - StepRepr_RepresentationRelationshipWithTransformation* _get_reference() { - return (StepRepr_RepresentationRelationshipWithTransformation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_RepresentationRelationshipWithTransformation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_RepresentationRelationshipWithTransformation) %extend StepRepr_RepresentationRelationshipWithTransformation { %pythoncode { @@ -6148,51 +3776,7 @@ class StepRepr_SpecifiedHigherUsageOccurrence : public StepRepr_AssemblyComponen }; -%extend StepRepr_SpecifiedHigherUsageOccurrence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_SpecifiedHigherUsageOccurrence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_SpecifiedHigherUsageOccurrence::Handle_StepRepr_SpecifiedHigherUsageOccurrence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_SpecifiedHigherUsageOccurrence; -class Handle_StepRepr_SpecifiedHigherUsageOccurrence : public Handle_StepRepr_AssemblyComponentUsage { - - public: - // constructors - Handle_StepRepr_SpecifiedHigherUsageOccurrence(); - Handle_StepRepr_SpecifiedHigherUsageOccurrence(const Handle_StepRepr_SpecifiedHigherUsageOccurrence &aHandle); - Handle_StepRepr_SpecifiedHigherUsageOccurrence(const StepRepr_SpecifiedHigherUsageOccurrence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_SpecifiedHigherUsageOccurrence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_SpecifiedHigherUsageOccurrence { - StepRepr_SpecifiedHigherUsageOccurrence* _get_reference() { - return (StepRepr_SpecifiedHigherUsageOccurrence*)$self->Access(); - } -}; - -%extend Handle_StepRepr_SpecifiedHigherUsageOccurrence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_SpecifiedHigherUsageOccurrence) %extend StepRepr_SpecifiedHigherUsageOccurrence { %pythoncode { @@ -6209,51 +3793,7 @@ class StepRepr_ValueRange : public StepRepr_CompoundRepresentationItem { }; -%extend StepRepr_ValueRange { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ValueRange(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ValueRange::Handle_StepRepr_ValueRange %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ValueRange; -class Handle_StepRepr_ValueRange : public Handle_StepRepr_CompoundRepresentationItem { - - public: - // constructors - Handle_StepRepr_ValueRange(); - Handle_StepRepr_ValueRange(const Handle_StepRepr_ValueRange &aHandle); - Handle_StepRepr_ValueRange(const StepRepr_ValueRange *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ValueRange DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ValueRange { - StepRepr_ValueRange* _get_reference() { - return (StepRepr_ValueRange*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ValueRange { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ValueRange) %extend StepRepr_ValueRange { %pythoncode { @@ -6270,51 +3810,7 @@ class StepRepr_ShapeRepresentationRelationshipWithTransformation : public StepRe }; -%extend StepRepr_ShapeRepresentationRelationshipWithTransformation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation::Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation; -class Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation : public Handle_StepRepr_RepresentationRelationshipWithTransformation { - - public: - // constructors - Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation(); - Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation(const Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation &aHandle); - Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation(const StepRepr_ShapeRepresentationRelationshipWithTransformation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation { - StepRepr_ShapeRepresentationRelationshipWithTransformation* _get_reference() { - return (StepRepr_ShapeRepresentationRelationshipWithTransformation*)$self->Access(); - } -}; - -%extend Handle_StepRepr_ShapeRepresentationRelationshipWithTransformation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepRepr_ShapeRepresentationRelationshipWithTransformation) %extend StepRepr_ShapeRepresentationRelationshipWithTransformation { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepShape.i b/src/SWIG_files/wrapper/StepShape.i index 0d202fbe3..7ecd6683c 100644 --- a/src/SWIG_files/wrapper/StepShape.i +++ b/src/SWIG_files/wrapper/StepShape.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STEPSHAPEDOCSTRING -"No docstring provided." +"Collects definitions of STEP topological entities +from Part 42 of ISO10303 (topology_schema) +" %enddef %module (package="OCC.Core", docstring=STEPSHAPEDOCSTRING) StepShape @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepShape_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -71,6 +59,108 @@ enum StepShape_BooleanOperator { /* end public enums declaration */ +%wrap_handle(StepShape_Block) +%wrap_handle(StepShape_BooleanResult) +%wrap_handle(StepShape_BoxDomain) +%wrap_handle(StepShape_ConnectedFaceShapeRepresentation) +%wrap_handle(StepShape_ContextDependentShapeRepresentation) +%wrap_handle(StepShape_DefinitionalRepresentationAndShapeRepresentation) +%wrap_handle(StepShape_DimensionalCharacteristicRepresentation) +%wrap_handle(StepShape_DimensionalLocation) +%wrap_handle(StepShape_DimensionalSize) +%wrap_handle(StepShape_EdgeBasedWireframeModel) +%wrap_handle(StepShape_FaceBasedSurfaceModel) +%wrap_handle(StepShape_GeometricSet) +%wrap_handle(StepShape_HArray1OfConnectedEdgeSet) +%wrap_handle(StepShape_HArray1OfConnectedFaceSet) +%wrap_handle(StepShape_HArray1OfEdge) +%wrap_handle(StepShape_HArray1OfFace) +%wrap_handle(StepShape_HArray1OfFaceBound) +%wrap_handle(StepShape_HArray1OfGeometricSetSelect) +%wrap_handle(StepShape_HArray1OfOrientedClosedShell) +%wrap_handle(StepShape_HArray1OfOrientedEdge) +%wrap_handle(StepShape_HArray1OfShell) +%wrap_handle(StepShape_HArray1OfValueQualifier) +%wrap_handle(StepShape_HalfSpaceSolid) +%wrap_handle(StepShape_LimitsAndFits) +%wrap_handle(StepShape_MeasureQualification) +%wrap_handle(StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem) +%wrap_handle(StepShape_PlusMinusTolerance) +%wrap_handle(StepShape_PrecisionQualifier) +%wrap_handle(StepShape_QualifiedRepresentationItem) +%wrap_handle(StepShape_RightAngularWedge) +%wrap_handle(StepShape_RightCircularCone) +%wrap_handle(StepShape_RightCircularCylinder) +%wrap_handle(StepShape_ShapeDefinitionRepresentation) +%wrap_handle(StepShape_ShapeRepresentation) +%wrap_handle(StepShape_ShellBasedSurfaceModel) +%wrap_handle(StepShape_SolidModel) +%wrap_handle(StepShape_Sphere) +%wrap_handle(StepShape_ToleranceValue) +%wrap_handle(StepShape_TopologicalRepresentationItem) +%wrap_handle(StepShape_Torus) +%wrap_handle(StepShape_TypeQualifier) +%wrap_handle(StepShape_AdvancedBrepShapeRepresentation) +%wrap_handle(StepShape_AngularLocation) +%wrap_handle(StepShape_AngularSize) +%wrap_handle(StepShape_BoxedHalfSpace) +%wrap_handle(StepShape_CompoundShapeRepresentation) +%wrap_handle(StepShape_ConnectedEdgeSet) +%wrap_handle(StepShape_ConnectedFaceSet) +%wrap_handle(StepShape_CsgShapeRepresentation) +%wrap_handle(StepShape_CsgSolid) +%wrap_handle(StepShape_DimensionalLocationWithPath) +%wrap_handle(StepShape_DimensionalSizeWithPath) +%wrap_handle(StepShape_DirectedDimensionalLocation) +%wrap_handle(StepShape_Edge) +%wrap_handle(StepShape_EdgeBasedWireframeShapeRepresentation) +%wrap_handle(StepShape_Face) +%wrap_handle(StepShape_FaceBound) +%wrap_handle(StepShape_FacetedBrepShapeRepresentation) +%wrap_handle(StepShape_GeometricCurveSet) +%wrap_handle(StepShape_GeometricallyBoundedSurfaceShapeRepresentation) +%wrap_handle(StepShape_GeometricallyBoundedWireframeShapeRepresentation) +%wrap_handle(StepShape_Loop) +%wrap_handle(StepShape_LoopAndPath) +%wrap_handle(StepShape_ManifoldSolidBrep) +%wrap_handle(StepShape_ManifoldSurfaceShapeRepresentation) +%wrap_handle(StepShape_NonManifoldSurfaceShapeRepresentation) +%wrap_handle(StepShape_Path) +%wrap_handle(StepShape_PointRepresentation) +%wrap_handle(StepShape_ShapeDimensionRepresentation) +%wrap_handle(StepShape_ShapeRepresentationWithParameters) +%wrap_handle(StepShape_SolidReplica) +%wrap_handle(StepShape_SweptAreaSolid) +%wrap_handle(StepShape_SweptFaceSolid) +%wrap_handle(StepShape_TransitionalShapeRepresentation) +%wrap_handle(StepShape_Vertex) +%wrap_handle(StepShape_BrepWithVoids) +%wrap_handle(StepShape_ClosedShell) +%wrap_handle(StepShape_ConnectedFaceSubSet) +%wrap_handle(StepShape_EdgeCurve) +%wrap_handle(StepShape_EdgeLoop) +%wrap_handle(StepShape_ExtrudedAreaSolid) +%wrap_handle(StepShape_ExtrudedFaceSolid) +%wrap_handle(StepShape_FaceOuterBound) +%wrap_handle(StepShape_FaceSurface) +%wrap_handle(StepShape_FacetedBrep) +%wrap_handle(StepShape_FacetedBrepAndBrepWithVoids) +%wrap_handle(StepShape_OpenShell) +%wrap_handle(StepShape_OrientedEdge) +%wrap_handle(StepShape_OrientedFace) +%wrap_handle(StepShape_OrientedPath) +%wrap_handle(StepShape_PolyLoop) +%wrap_handle(StepShape_RevolvedAreaSolid) +%wrap_handle(StepShape_RevolvedFaceSolid) +%wrap_handle(StepShape_Subedge) +%wrap_handle(StepShape_Subface) +%wrap_handle(StepShape_VertexLoop) +%wrap_handle(StepShape_VertexPoint) +%wrap_handle(StepShape_AdvancedFace) +%wrap_handle(StepShape_OrientedClosedShell) +%wrap_handle(StepShape_OrientedOpenShell) +%wrap_handle(StepShape_SeamEdge) + %nodefaultctor StepShape_Array1OfConnectedEdgeSet; class StepShape_Array1OfConnectedEdgeSet { public: @@ -1013,51 +1103,7 @@ class StepShape_Block : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_Block { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Block(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Block::Handle_StepShape_Block %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Block; -class Handle_StepShape_Block : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_Block(); - Handle_StepShape_Block(const Handle_StepShape_Block &aHandle); - Handle_StepShape_Block(const StepShape_Block *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Block DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Block { - StepShape_Block* _get_reference() { - return (StepShape_Block*)$self->Access(); - } -}; - -%extend Handle_StepShape_Block { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Block) %extend StepShape_Block { %pythoncode { @@ -1199,51 +1245,7 @@ class StepShape_BooleanResult : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_BooleanResult { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_BooleanResult(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_BooleanResult::Handle_StepShape_BooleanResult %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_BooleanResult; -class Handle_StepShape_BooleanResult : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_BooleanResult(); - Handle_StepShape_BooleanResult(const Handle_StepShape_BooleanResult &aHandle); - Handle_StepShape_BooleanResult(const StepShape_BooleanResult *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_BooleanResult DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_BooleanResult { - StepShape_BooleanResult* _get_reference() { - return (StepShape_BooleanResult*)$self->Access(); - } -}; - -%extend Handle_StepShape_BooleanResult { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_BooleanResult) %extend StepShape_BooleanResult { %pythoncode { @@ -1314,51 +1316,7 @@ class StepShape_BoxDomain : public MMgt_TShared { }; -%extend StepShape_BoxDomain { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_BoxDomain(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_BoxDomain::Handle_StepShape_BoxDomain %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_BoxDomain; -class Handle_StepShape_BoxDomain : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_BoxDomain(); - Handle_StepShape_BoxDomain(const Handle_StepShape_BoxDomain &aHandle); - Handle_StepShape_BoxDomain(const StepShape_BoxDomain *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_BoxDomain DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_BoxDomain { - StepShape_BoxDomain* _get_reference() { - return (StepShape_BoxDomain*)$self->Access(); - } -}; - -%extend Handle_StepShape_BoxDomain { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_BoxDomain) %extend StepShape_BoxDomain { %pythoncode { @@ -1377,51 +1335,7 @@ class StepShape_ConnectedFaceShapeRepresentation : public StepRepr_Representatio }; -%extend StepShape_ConnectedFaceShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ConnectedFaceShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ConnectedFaceShapeRepresentation::Handle_StepShape_ConnectedFaceShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ConnectedFaceShapeRepresentation; -class Handle_StepShape_ConnectedFaceShapeRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepShape_ConnectedFaceShapeRepresentation(); - Handle_StepShape_ConnectedFaceShapeRepresentation(const Handle_StepShape_ConnectedFaceShapeRepresentation &aHandle); - Handle_StepShape_ConnectedFaceShapeRepresentation(const StepShape_ConnectedFaceShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ConnectedFaceShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ConnectedFaceShapeRepresentation { - StepShape_ConnectedFaceShapeRepresentation* _get_reference() { - return (StepShape_ConnectedFaceShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_ConnectedFaceShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ConnectedFaceShapeRepresentation) %extend StepShape_ConnectedFaceShapeRepresentation { %pythoncode { @@ -1466,51 +1380,7 @@ class StepShape_ContextDependentShapeRepresentation : public MMgt_TShared { }; -%extend StepShape_ContextDependentShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ContextDependentShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ContextDependentShapeRepresentation::Handle_StepShape_ContextDependentShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ContextDependentShapeRepresentation; -class Handle_StepShape_ContextDependentShapeRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_ContextDependentShapeRepresentation(); - Handle_StepShape_ContextDependentShapeRepresentation(const Handle_StepShape_ContextDependentShapeRepresentation &aHandle); - Handle_StepShape_ContextDependentShapeRepresentation(const StepShape_ContextDependentShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ContextDependentShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ContextDependentShapeRepresentation { - StepShape_ContextDependentShapeRepresentation* _get_reference() { - return (StepShape_ContextDependentShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_ContextDependentShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ContextDependentShapeRepresentation) %extend StepShape_ContextDependentShapeRepresentation { %pythoncode { @@ -1639,51 +1509,7 @@ class StepShape_DefinitionalRepresentationAndShapeRepresentation : public StepRe }; -%extend StepShape_DefinitionalRepresentationAndShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation::Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation; -class Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation : public Handle_StepRepr_DefinitionalRepresentation { - - public: - // constructors - Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation(); - Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation(const Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation &aHandle); - Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation(const StepShape_DefinitionalRepresentationAndShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation { - StepShape_DefinitionalRepresentationAndShapeRepresentation* _get_reference() { - return (StepShape_DefinitionalRepresentationAndShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_DefinitionalRepresentationAndShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DefinitionalRepresentationAndShapeRepresentation) %extend StepShape_DefinitionalRepresentationAndShapeRepresentation { %pythoncode { @@ -1777,51 +1603,7 @@ class StepShape_DimensionalCharacteristicRepresentation : public MMgt_TShared { }; -%extend StepShape_DimensionalCharacteristicRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DimensionalCharacteristicRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DimensionalCharacteristicRepresentation::Handle_StepShape_DimensionalCharacteristicRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DimensionalCharacteristicRepresentation; -class Handle_StepShape_DimensionalCharacteristicRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_DimensionalCharacteristicRepresentation(); - Handle_StepShape_DimensionalCharacteristicRepresentation(const Handle_StepShape_DimensionalCharacteristicRepresentation &aHandle); - Handle_StepShape_DimensionalCharacteristicRepresentation(const StepShape_DimensionalCharacteristicRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DimensionalCharacteristicRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DimensionalCharacteristicRepresentation { - StepShape_DimensionalCharacteristicRepresentation* _get_reference() { - return (StepShape_DimensionalCharacteristicRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_DimensionalCharacteristicRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DimensionalCharacteristicRepresentation) %extend StepShape_DimensionalCharacteristicRepresentation { %pythoncode { @@ -1840,51 +1622,7 @@ class StepShape_DimensionalLocation : public StepRepr_ShapeAspectRelationship { }; -%extend StepShape_DimensionalLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DimensionalLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DimensionalLocation::Handle_StepShape_DimensionalLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DimensionalLocation; -class Handle_StepShape_DimensionalLocation : public Handle_StepRepr_ShapeAspectRelationship { - - public: - // constructors - Handle_StepShape_DimensionalLocation(); - Handle_StepShape_DimensionalLocation(const Handle_StepShape_DimensionalLocation &aHandle); - Handle_StepShape_DimensionalLocation(const StepShape_DimensionalLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DimensionalLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DimensionalLocation { - StepShape_DimensionalLocation* _get_reference() { - return (StepShape_DimensionalLocation*)$self->Access(); - } -}; - -%extend Handle_StepShape_DimensionalLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DimensionalLocation) %extend StepShape_DimensionalLocation { %pythoncode { @@ -1941,51 +1679,7 @@ class StepShape_DimensionalSize : public MMgt_TShared { }; -%extend StepShape_DimensionalSize { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DimensionalSize(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DimensionalSize::Handle_StepShape_DimensionalSize %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DimensionalSize; -class Handle_StepShape_DimensionalSize : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_DimensionalSize(); - Handle_StepShape_DimensionalSize(const Handle_StepShape_DimensionalSize &aHandle); - Handle_StepShape_DimensionalSize(const StepShape_DimensionalSize *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DimensionalSize DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DimensionalSize { - StepShape_DimensionalSize* _get_reference() { - return (StepShape_DimensionalSize*)$self->Access(); - } -}; - -%extend Handle_StepShape_DimensionalSize { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DimensionalSize) %extend StepShape_DimensionalSize { %pythoncode { @@ -2028,51 +1722,7 @@ class StepShape_EdgeBasedWireframeModel : public StepGeom_GeometricRepresentatio }; -%extend StepShape_EdgeBasedWireframeModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_EdgeBasedWireframeModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_EdgeBasedWireframeModel::Handle_StepShape_EdgeBasedWireframeModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_EdgeBasedWireframeModel; -class Handle_StepShape_EdgeBasedWireframeModel : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_EdgeBasedWireframeModel(); - Handle_StepShape_EdgeBasedWireframeModel(const Handle_StepShape_EdgeBasedWireframeModel &aHandle); - Handle_StepShape_EdgeBasedWireframeModel(const StepShape_EdgeBasedWireframeModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_EdgeBasedWireframeModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_EdgeBasedWireframeModel { - StepShape_EdgeBasedWireframeModel* _get_reference() { - return (StepShape_EdgeBasedWireframeModel*)$self->Access(); - } -}; - -%extend Handle_StepShape_EdgeBasedWireframeModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_EdgeBasedWireframeModel) %extend StepShape_EdgeBasedWireframeModel { %pythoncode { @@ -2115,51 +1765,7 @@ class StepShape_FaceBasedSurfaceModel : public StepGeom_GeometricRepresentationI }; -%extend StepShape_FaceBasedSurfaceModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FaceBasedSurfaceModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FaceBasedSurfaceModel::Handle_StepShape_FaceBasedSurfaceModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FaceBasedSurfaceModel; -class Handle_StepShape_FaceBasedSurfaceModel : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_FaceBasedSurfaceModel(); - Handle_StepShape_FaceBasedSurfaceModel(const Handle_StepShape_FaceBasedSurfaceModel &aHandle); - Handle_StepShape_FaceBasedSurfaceModel(const StepShape_FaceBasedSurfaceModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FaceBasedSurfaceModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FaceBasedSurfaceModel { - StepShape_FaceBasedSurfaceModel* _get_reference() { - return (StepShape_FaceBasedSurfaceModel*)$self->Access(); - } -}; - -%extend Handle_StepShape_FaceBasedSurfaceModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FaceBasedSurfaceModel) %extend StepShape_FaceBasedSurfaceModel { %pythoncode { @@ -2212,51 +1818,7 @@ class StepShape_GeometricSet : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_GeometricSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_GeometricSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_GeometricSet::Handle_StepShape_GeometricSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_GeometricSet; -class Handle_StepShape_GeometricSet : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_GeometricSet(); - Handle_StepShape_GeometricSet(const Handle_StepShape_GeometricSet &aHandle); - Handle_StepShape_GeometricSet(const StepShape_GeometricSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_GeometricSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_GeometricSet { - StepShape_GeometricSet* _get_reference() { - return (StepShape_GeometricSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_GeometricSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_GeometricSet) %extend StepShape_GeometricSet { %pythoncode { @@ -2376,51 +1938,7 @@ class StepShape_HArray1OfConnectedEdgeSet : public MMgt_TShared { }; -%extend StepShape_HArray1OfConnectedEdgeSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfConnectedEdgeSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfConnectedEdgeSet::Handle_StepShape_HArray1OfConnectedEdgeSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfConnectedEdgeSet; -class Handle_StepShape_HArray1OfConnectedEdgeSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfConnectedEdgeSet(); - Handle_StepShape_HArray1OfConnectedEdgeSet(const Handle_StepShape_HArray1OfConnectedEdgeSet &aHandle); - Handle_StepShape_HArray1OfConnectedEdgeSet(const StepShape_HArray1OfConnectedEdgeSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfConnectedEdgeSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfConnectedEdgeSet { - StepShape_HArray1OfConnectedEdgeSet* _get_reference() { - return (StepShape_HArray1OfConnectedEdgeSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfConnectedEdgeSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfConnectedEdgeSet) %extend StepShape_HArray1OfConnectedEdgeSet { %pythoncode { @@ -2497,51 +2015,7 @@ class StepShape_HArray1OfConnectedFaceSet : public MMgt_TShared { }; -%extend StepShape_HArray1OfConnectedFaceSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfConnectedFaceSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfConnectedFaceSet::Handle_StepShape_HArray1OfConnectedFaceSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfConnectedFaceSet; -class Handle_StepShape_HArray1OfConnectedFaceSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfConnectedFaceSet(); - Handle_StepShape_HArray1OfConnectedFaceSet(const Handle_StepShape_HArray1OfConnectedFaceSet &aHandle); - Handle_StepShape_HArray1OfConnectedFaceSet(const StepShape_HArray1OfConnectedFaceSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfConnectedFaceSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfConnectedFaceSet { - StepShape_HArray1OfConnectedFaceSet* _get_reference() { - return (StepShape_HArray1OfConnectedFaceSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfConnectedFaceSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfConnectedFaceSet) %extend StepShape_HArray1OfConnectedFaceSet { %pythoncode { @@ -2618,51 +2092,7 @@ class StepShape_HArray1OfEdge : public MMgt_TShared { }; -%extend StepShape_HArray1OfEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfEdge::Handle_StepShape_HArray1OfEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfEdge; -class Handle_StepShape_HArray1OfEdge : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfEdge(); - Handle_StepShape_HArray1OfEdge(const Handle_StepShape_HArray1OfEdge &aHandle); - Handle_StepShape_HArray1OfEdge(const StepShape_HArray1OfEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfEdge { - StepShape_HArray1OfEdge* _get_reference() { - return (StepShape_HArray1OfEdge*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfEdge) %extend StepShape_HArray1OfEdge { %pythoncode { @@ -2739,51 +2169,7 @@ class StepShape_HArray1OfFace : public MMgt_TShared { }; -%extend StepShape_HArray1OfFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfFace::Handle_StepShape_HArray1OfFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfFace; -class Handle_StepShape_HArray1OfFace : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfFace(); - Handle_StepShape_HArray1OfFace(const Handle_StepShape_HArray1OfFace &aHandle); - Handle_StepShape_HArray1OfFace(const StepShape_HArray1OfFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfFace { - StepShape_HArray1OfFace* _get_reference() { - return (StepShape_HArray1OfFace*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfFace) %extend StepShape_HArray1OfFace { %pythoncode { @@ -2860,51 +2246,7 @@ class StepShape_HArray1OfFaceBound : public MMgt_TShared { }; -%extend StepShape_HArray1OfFaceBound { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfFaceBound(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfFaceBound::Handle_StepShape_HArray1OfFaceBound %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfFaceBound; -class Handle_StepShape_HArray1OfFaceBound : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfFaceBound(); - Handle_StepShape_HArray1OfFaceBound(const Handle_StepShape_HArray1OfFaceBound &aHandle); - Handle_StepShape_HArray1OfFaceBound(const StepShape_HArray1OfFaceBound *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfFaceBound DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfFaceBound { - StepShape_HArray1OfFaceBound* _get_reference() { - return (StepShape_HArray1OfFaceBound*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfFaceBound { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfFaceBound) %extend StepShape_HArray1OfFaceBound { %pythoncode { @@ -2981,51 +2323,7 @@ class StepShape_HArray1OfGeometricSetSelect : public MMgt_TShared { }; -%extend StepShape_HArray1OfGeometricSetSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfGeometricSetSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfGeometricSetSelect::Handle_StepShape_HArray1OfGeometricSetSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfGeometricSetSelect; -class Handle_StepShape_HArray1OfGeometricSetSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfGeometricSetSelect(); - Handle_StepShape_HArray1OfGeometricSetSelect(const Handle_StepShape_HArray1OfGeometricSetSelect &aHandle); - Handle_StepShape_HArray1OfGeometricSetSelect(const StepShape_HArray1OfGeometricSetSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfGeometricSetSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfGeometricSetSelect { - StepShape_HArray1OfGeometricSetSelect* _get_reference() { - return (StepShape_HArray1OfGeometricSetSelect*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfGeometricSetSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfGeometricSetSelect) %extend StepShape_HArray1OfGeometricSetSelect { %pythoncode { @@ -3102,51 +2400,7 @@ class StepShape_HArray1OfOrientedClosedShell : public MMgt_TShared { }; -%extend StepShape_HArray1OfOrientedClosedShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfOrientedClosedShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfOrientedClosedShell::Handle_StepShape_HArray1OfOrientedClosedShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfOrientedClosedShell; -class Handle_StepShape_HArray1OfOrientedClosedShell : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfOrientedClosedShell(); - Handle_StepShape_HArray1OfOrientedClosedShell(const Handle_StepShape_HArray1OfOrientedClosedShell &aHandle); - Handle_StepShape_HArray1OfOrientedClosedShell(const StepShape_HArray1OfOrientedClosedShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfOrientedClosedShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfOrientedClosedShell { - StepShape_HArray1OfOrientedClosedShell* _get_reference() { - return (StepShape_HArray1OfOrientedClosedShell*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfOrientedClosedShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfOrientedClosedShell) %extend StepShape_HArray1OfOrientedClosedShell { %pythoncode { @@ -3223,55 +2477,11 @@ class StepShape_HArray1OfOrientedEdge : public MMgt_TShared { }; +%make_alias(StepShape_HArray1OfOrientedEdge) + %extend StepShape_HArray1OfOrientedEdge { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfOrientedEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfOrientedEdge::Handle_StepShape_HArray1OfOrientedEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfOrientedEdge; -class Handle_StepShape_HArray1OfOrientedEdge : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfOrientedEdge(); - Handle_StepShape_HArray1OfOrientedEdge(const Handle_StepShape_HArray1OfOrientedEdge &aHandle); - Handle_StepShape_HArray1OfOrientedEdge(const StepShape_HArray1OfOrientedEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfOrientedEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfOrientedEdge { - StepShape_HArray1OfOrientedEdge* _get_reference() { - return (StepShape_HArray1OfOrientedEdge*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfOrientedEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepShape_HArray1OfOrientedEdge { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepShape_HArray1OfShell; @@ -3344,51 +2554,7 @@ class StepShape_HArray1OfShell : public MMgt_TShared { }; -%extend StepShape_HArray1OfShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfShell::Handle_StepShape_HArray1OfShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfShell; -class Handle_StepShape_HArray1OfShell : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfShell(); - Handle_StepShape_HArray1OfShell(const Handle_StepShape_HArray1OfShell &aHandle); - Handle_StepShape_HArray1OfShell(const StepShape_HArray1OfShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfShell { - StepShape_HArray1OfShell* _get_reference() { - return (StepShape_HArray1OfShell*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfShell) %extend StepShape_HArray1OfShell { %pythoncode { @@ -3465,51 +2631,7 @@ class StepShape_HArray1OfValueQualifier : public MMgt_TShared { }; -%extend StepShape_HArray1OfValueQualifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HArray1OfValueQualifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HArray1OfValueQualifier::Handle_StepShape_HArray1OfValueQualifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HArray1OfValueQualifier; -class Handle_StepShape_HArray1OfValueQualifier : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_HArray1OfValueQualifier(); - Handle_StepShape_HArray1OfValueQualifier(const Handle_StepShape_HArray1OfValueQualifier &aHandle); - Handle_StepShape_HArray1OfValueQualifier(const StepShape_HArray1OfValueQualifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HArray1OfValueQualifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HArray1OfValueQualifier { - StepShape_HArray1OfValueQualifier* _get_reference() { - return (StepShape_HArray1OfValueQualifier*)$self->Access(); - } -}; - -%extend Handle_StepShape_HArray1OfValueQualifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HArray1OfValueQualifier) %extend StepShape_HArray1OfValueQualifier { %pythoncode { @@ -3564,51 +2686,7 @@ class StepShape_HalfSpaceSolid : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_HalfSpaceSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_HalfSpaceSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_HalfSpaceSolid::Handle_StepShape_HalfSpaceSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_HalfSpaceSolid; -class Handle_StepShape_HalfSpaceSolid : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_HalfSpaceSolid(); - Handle_StepShape_HalfSpaceSolid(const Handle_StepShape_HalfSpaceSolid &aHandle); - Handle_StepShape_HalfSpaceSolid(const StepShape_HalfSpaceSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_HalfSpaceSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_HalfSpaceSolid { - StepShape_HalfSpaceSolid* _get_reference() { - return (StepShape_HalfSpaceSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_HalfSpaceSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_HalfSpaceSolid) %extend StepShape_HalfSpaceSolid { %pythoncode { @@ -3677,51 +2755,7 @@ class StepShape_LimitsAndFits : public MMgt_TShared { }; -%extend StepShape_LimitsAndFits { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_LimitsAndFits(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_LimitsAndFits::Handle_StepShape_LimitsAndFits %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_LimitsAndFits; -class Handle_StepShape_LimitsAndFits : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_LimitsAndFits(); - Handle_StepShape_LimitsAndFits(const Handle_StepShape_LimitsAndFits &aHandle); - Handle_StepShape_LimitsAndFits(const StepShape_LimitsAndFits *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_LimitsAndFits DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_LimitsAndFits { - StepShape_LimitsAndFits* _get_reference() { - return (StepShape_LimitsAndFits*)$self->Access(); - } -}; - -%extend Handle_StepShape_LimitsAndFits { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_LimitsAndFits) %extend StepShape_LimitsAndFits { %pythoncode { @@ -3808,51 +2842,7 @@ class StepShape_MeasureQualification : public MMgt_TShared { }; -%extend StepShape_MeasureQualification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_MeasureQualification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_MeasureQualification::Handle_StepShape_MeasureQualification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_MeasureQualification; -class Handle_StepShape_MeasureQualification : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_MeasureQualification(); - Handle_StepShape_MeasureQualification(const Handle_StepShape_MeasureQualification &aHandle); - Handle_StepShape_MeasureQualification(const StepShape_MeasureQualification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_MeasureQualification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_MeasureQualification { - StepShape_MeasureQualification* _get_reference() { - return (StepShape_MeasureQualification*)$self->Access(); - } -}; - -%extend Handle_StepShape_MeasureQualification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_MeasureQualification) %extend StepShape_MeasureQualification { %pythoncode { @@ -3919,51 +2909,7 @@ class StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem : public }; -%extend StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem; -class Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem(); - Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem(const Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem &aHandle); - Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem(const StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem { - StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem* _get_reference() { - return (StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem) %extend StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem { %pythoncode { @@ -4008,51 +2954,7 @@ class StepShape_PlusMinusTolerance : public MMgt_TShared { }; -%extend StepShape_PlusMinusTolerance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_PlusMinusTolerance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_PlusMinusTolerance::Handle_StepShape_PlusMinusTolerance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_PlusMinusTolerance; -class Handle_StepShape_PlusMinusTolerance : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_PlusMinusTolerance(); - Handle_StepShape_PlusMinusTolerance(const Handle_StepShape_PlusMinusTolerance &aHandle); - Handle_StepShape_PlusMinusTolerance(const StepShape_PlusMinusTolerance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_PlusMinusTolerance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_PlusMinusTolerance { - StepShape_PlusMinusTolerance* _get_reference() { - return (StepShape_PlusMinusTolerance*)$self->Access(); - } -}; - -%extend Handle_StepShape_PlusMinusTolerance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_PlusMinusTolerance) %extend StepShape_PlusMinusTolerance { %pythoncode { @@ -4085,51 +2987,7 @@ class StepShape_PrecisionQualifier : public MMgt_TShared { }; -%extend StepShape_PrecisionQualifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_PrecisionQualifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_PrecisionQualifier::Handle_StepShape_PrecisionQualifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_PrecisionQualifier; -class Handle_StepShape_PrecisionQualifier : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_PrecisionQualifier(); - Handle_StepShape_PrecisionQualifier(const Handle_StepShape_PrecisionQualifier &aHandle); - Handle_StepShape_PrecisionQualifier(const StepShape_PrecisionQualifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_PrecisionQualifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_PrecisionQualifier { - StepShape_PrecisionQualifier* _get_reference() { - return (StepShape_PrecisionQualifier*)$self->Access(); - } -}; - -%extend Handle_StepShape_PrecisionQualifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_PrecisionQualifier) %extend StepShape_PrecisionQualifier { %pythoncode { @@ -4182,51 +3040,7 @@ class StepShape_QualifiedRepresentationItem : public StepRepr_RepresentationItem }; -%extend StepShape_QualifiedRepresentationItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_QualifiedRepresentationItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_QualifiedRepresentationItem::Handle_StepShape_QualifiedRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_QualifiedRepresentationItem; -class Handle_StepShape_QualifiedRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepShape_QualifiedRepresentationItem(); - Handle_StepShape_QualifiedRepresentationItem(const Handle_StepShape_QualifiedRepresentationItem &aHandle); - Handle_StepShape_QualifiedRepresentationItem(const StepShape_QualifiedRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_QualifiedRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_QualifiedRepresentationItem { - StepShape_QualifiedRepresentationItem* _get_reference() { - return (StepShape_QualifiedRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepShape_QualifiedRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_QualifiedRepresentationItem) %extend StepShape_QualifiedRepresentationItem { %pythoncode { @@ -4378,51 +3192,7 @@ class StepShape_RightAngularWedge : public StepGeom_GeometricRepresentationItem }; -%extend StepShape_RightAngularWedge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_RightAngularWedge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_RightAngularWedge::Handle_StepShape_RightAngularWedge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_RightAngularWedge; -class Handle_StepShape_RightAngularWedge : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_RightAngularWedge(); - Handle_StepShape_RightAngularWedge(const Handle_StepShape_RightAngularWedge &aHandle); - Handle_StepShape_RightAngularWedge(const StepShape_RightAngularWedge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_RightAngularWedge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_RightAngularWedge { - StepShape_RightAngularWedge* _get_reference() { - return (StepShape_RightAngularWedge*)$self->Access(); - } -}; - -%extend Handle_StepShape_RightAngularWedge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_RightAngularWedge) %extend StepShape_RightAngularWedge { %pythoncode { @@ -4501,51 +3271,7 @@ class StepShape_RightCircularCone : public StepGeom_GeometricRepresentationItem }; -%extend StepShape_RightCircularCone { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_RightCircularCone(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_RightCircularCone::Handle_StepShape_RightCircularCone %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_RightCircularCone; -class Handle_StepShape_RightCircularCone : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_RightCircularCone(); - Handle_StepShape_RightCircularCone(const Handle_StepShape_RightCircularCone &aHandle); - Handle_StepShape_RightCircularCone(const StepShape_RightCircularCone *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_RightCircularCone DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_RightCircularCone { - StepShape_RightCircularCone* _get_reference() { - return (StepShape_RightCircularCone*)$self->Access(); - } -}; - -%extend Handle_StepShape_RightCircularCone { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_RightCircularCone) %extend StepShape_RightCircularCone { %pythoncode { @@ -4612,51 +3338,7 @@ class StepShape_RightCircularCylinder : public StepGeom_GeometricRepresentationI }; -%extend StepShape_RightCircularCylinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_RightCircularCylinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_RightCircularCylinder::Handle_StepShape_RightCircularCylinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_RightCircularCylinder; -class Handle_StepShape_RightCircularCylinder : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_RightCircularCylinder(); - Handle_StepShape_RightCircularCylinder(const Handle_StepShape_RightCircularCylinder &aHandle); - Handle_StepShape_RightCircularCylinder(const StepShape_RightCircularCylinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_RightCircularCylinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_RightCircularCylinder { - StepShape_RightCircularCylinder* _get_reference() { - return (StepShape_RightCircularCylinder*)$self->Access(); - } -}; - -%extend Handle_StepShape_RightCircularCylinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_RightCircularCylinder) %extend StepShape_RightCircularCylinder { %pythoncode { @@ -4675,51 +3357,7 @@ class StepShape_ShapeDefinitionRepresentation : public StepRepr_PropertyDefiniti }; -%extend StepShape_ShapeDefinitionRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ShapeDefinitionRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ShapeDefinitionRepresentation::Handle_StepShape_ShapeDefinitionRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ShapeDefinitionRepresentation; -class Handle_StepShape_ShapeDefinitionRepresentation : public Handle_StepRepr_PropertyDefinitionRepresentation { - - public: - // constructors - Handle_StepShape_ShapeDefinitionRepresentation(); - Handle_StepShape_ShapeDefinitionRepresentation(const Handle_StepShape_ShapeDefinitionRepresentation &aHandle); - Handle_StepShape_ShapeDefinitionRepresentation(const StepShape_ShapeDefinitionRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ShapeDefinitionRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ShapeDefinitionRepresentation { - StepShape_ShapeDefinitionRepresentation* _get_reference() { - return (StepShape_ShapeDefinitionRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_ShapeDefinitionRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ShapeDefinitionRepresentation) %extend StepShape_ShapeDefinitionRepresentation { %pythoncode { @@ -4738,51 +3376,7 @@ class StepShape_ShapeRepresentation : public StepRepr_Representation { }; -%extend StepShape_ShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ShapeRepresentation::Handle_StepShape_ShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ShapeRepresentation; -class Handle_StepShape_ShapeRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepShape_ShapeRepresentation(); - Handle_StepShape_ShapeRepresentation(const Handle_StepShape_ShapeRepresentation &aHandle); - Handle_StepShape_ShapeRepresentation(const StepShape_ShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ShapeRepresentation { - StepShape_ShapeRepresentation* _get_reference() { - return (StepShape_ShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_ShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ShapeRepresentation) %extend StepShape_ShapeRepresentation { %pythoncode { @@ -4872,51 +3466,7 @@ class StepShape_ShellBasedSurfaceModel : public StepGeom_GeometricRepresentation }; -%extend StepShape_ShellBasedSurfaceModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ShellBasedSurfaceModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ShellBasedSurfaceModel::Handle_StepShape_ShellBasedSurfaceModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ShellBasedSurfaceModel; -class Handle_StepShape_ShellBasedSurfaceModel : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_ShellBasedSurfaceModel(); - Handle_StepShape_ShellBasedSurfaceModel(const Handle_StepShape_ShellBasedSurfaceModel &aHandle); - Handle_StepShape_ShellBasedSurfaceModel(const StepShape_ShellBasedSurfaceModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ShellBasedSurfaceModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ShellBasedSurfaceModel { - StepShape_ShellBasedSurfaceModel* _get_reference() { - return (StepShape_ShellBasedSurfaceModel*)$self->Access(); - } -}; - -%extend Handle_StepShape_ShellBasedSurfaceModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ShellBasedSurfaceModel) %extend StepShape_ShellBasedSurfaceModel { %pythoncode { @@ -4935,51 +3485,7 @@ class StepShape_SolidModel : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_SolidModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_SolidModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_SolidModel::Handle_StepShape_SolidModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_SolidModel; -class Handle_StepShape_SolidModel : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_SolidModel(); - Handle_StepShape_SolidModel(const Handle_StepShape_SolidModel &aHandle); - Handle_StepShape_SolidModel(const StepShape_SolidModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_SolidModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_SolidModel { - StepShape_SolidModel* _get_reference() { - return (StepShape_SolidModel*)$self->Access(); - } -}; - -%extend Handle_StepShape_SolidModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_SolidModel) %extend StepShape_SolidModel { %pythoncode { @@ -5034,51 +3540,7 @@ class StepShape_Sphere : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_Sphere { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Sphere(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Sphere::Handle_StepShape_Sphere %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Sphere; -class Handle_StepShape_Sphere : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_Sphere(); - Handle_StepShape_Sphere(const Handle_StepShape_Sphere &aHandle); - Handle_StepShape_Sphere(const StepShape_Sphere *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Sphere DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Sphere { - StepShape_Sphere* _get_reference() { - return (StepShape_Sphere*)$self->Access(); - } -}; - -%extend Handle_StepShape_Sphere { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Sphere) %extend StepShape_Sphere { %pythoncode { @@ -5189,51 +3651,7 @@ class StepShape_ToleranceValue : public MMgt_TShared { }; -%extend StepShape_ToleranceValue { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ToleranceValue(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ToleranceValue::Handle_StepShape_ToleranceValue %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ToleranceValue; -class Handle_StepShape_ToleranceValue : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_ToleranceValue(); - Handle_StepShape_ToleranceValue(const Handle_StepShape_ToleranceValue &aHandle); - Handle_StepShape_ToleranceValue(const StepShape_ToleranceValue *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ToleranceValue DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ToleranceValue { - StepShape_ToleranceValue* _get_reference() { - return (StepShape_ToleranceValue*)$self->Access(); - } -}; - -%extend Handle_StepShape_ToleranceValue { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ToleranceValue) %extend StepShape_ToleranceValue { %pythoncode { @@ -5252,62 +3670,18 @@ class StepShape_TopologicalRepresentationItem : public StepRepr_RepresentationIt }; +%make_alias(StepShape_TopologicalRepresentationItem) + %extend StepShape_TopologicalRepresentationItem { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_TopologicalRepresentationItem(self) - self.thisown = False - return self.thisHandle + __repr__ = _dumps_object } }; - -%pythonappend Handle_StepShape_TopologicalRepresentationItem::Handle_StepShape_TopologicalRepresentationItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_TopologicalRepresentationItem; -class Handle_StepShape_TopologicalRepresentationItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepShape_TopologicalRepresentationItem(); - Handle_StepShape_TopologicalRepresentationItem(const Handle_StepShape_TopologicalRepresentationItem &aHandle); - Handle_StepShape_TopologicalRepresentationItem(const StepShape_TopologicalRepresentationItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_TopologicalRepresentationItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_TopologicalRepresentationItem { - StepShape_TopologicalRepresentationItem* _get_reference() { - return (StepShape_TopologicalRepresentationItem*)$self->Access(); - } -}; - -%extend Handle_StepShape_TopologicalRepresentationItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepShape_TopologicalRepresentationItem { - %pythoncode { - __repr__ = _dumps_object - } -}; -%nodefaultctor StepShape_Torus; -class StepShape_Torus : public StepGeom_GeometricRepresentationItem { - public: - %feature("compactdefaultargs") StepShape_Torus; - %feature("autodoc", " * Returns a Torus +%nodefaultctor StepShape_Torus; +class StepShape_Torus : public StepGeom_GeometricRepresentationItem { + public: + %feature("compactdefaultargs") StepShape_Torus; + %feature("autodoc", " * Returns a Torus :rtype: None ") StepShape_Torus; @@ -5363,51 +3737,7 @@ class StepShape_Torus : public StepGeom_GeometricRepresentationItem { }; -%extend StepShape_Torus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Torus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Torus::Handle_StepShape_Torus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Torus; -class Handle_StepShape_Torus : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepShape_Torus(); - Handle_StepShape_Torus(const Handle_StepShape_Torus &aHandle); - Handle_StepShape_Torus(const StepShape_Torus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Torus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Torus { - StepShape_Torus* _get_reference() { - return (StepShape_Torus*)$self->Access(); - } -}; - -%extend Handle_StepShape_Torus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Torus) %extend StepShape_Torus { %pythoncode { @@ -5440,51 +3770,7 @@ class StepShape_TypeQualifier : public MMgt_TShared { }; -%extend StepShape_TypeQualifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_TypeQualifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_TypeQualifier::Handle_StepShape_TypeQualifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_TypeQualifier; -class Handle_StepShape_TypeQualifier : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepShape_TypeQualifier(); - Handle_StepShape_TypeQualifier(const Handle_StepShape_TypeQualifier &aHandle); - Handle_StepShape_TypeQualifier(const StepShape_TypeQualifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_TypeQualifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_TypeQualifier { - StepShape_TypeQualifier* _get_reference() { - return (StepShape_TypeQualifier*)$self->Access(); - } -}; - -%extend Handle_StepShape_TypeQualifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_TypeQualifier) %extend StepShape_TypeQualifier { %pythoncode { @@ -5538,51 +3824,7 @@ class StepShape_AdvancedBrepShapeRepresentation : public StepShape_ShapeRepresen }; -%extend StepShape_AdvancedBrepShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_AdvancedBrepShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_AdvancedBrepShapeRepresentation::Handle_StepShape_AdvancedBrepShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_AdvancedBrepShapeRepresentation; -class Handle_StepShape_AdvancedBrepShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_AdvancedBrepShapeRepresentation(); - Handle_StepShape_AdvancedBrepShapeRepresentation(const Handle_StepShape_AdvancedBrepShapeRepresentation &aHandle); - Handle_StepShape_AdvancedBrepShapeRepresentation(const StepShape_AdvancedBrepShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_AdvancedBrepShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_AdvancedBrepShapeRepresentation { - StepShape_AdvancedBrepShapeRepresentation* _get_reference() { - return (StepShape_AdvancedBrepShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_AdvancedBrepShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_AdvancedBrepShapeRepresentation) %extend StepShape_AdvancedBrepShapeRepresentation { %pythoncode { @@ -5633,51 +3875,7 @@ class StepShape_AngularLocation : public StepShape_DimensionalLocation { }; -%extend StepShape_AngularLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_AngularLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_AngularLocation::Handle_StepShape_AngularLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_AngularLocation; -class Handle_StepShape_AngularLocation : public Handle_StepShape_DimensionalLocation { - - public: - // constructors - Handle_StepShape_AngularLocation(); - Handle_StepShape_AngularLocation(const Handle_StepShape_AngularLocation &aHandle); - Handle_StepShape_AngularLocation(const StepShape_AngularLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_AngularLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_AngularLocation { - StepShape_AngularLocation* _get_reference() { - return (StepShape_AngularLocation*)$self->Access(); - } -}; - -%extend Handle_StepShape_AngularLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_AngularLocation) %extend StepShape_AngularLocation { %pythoncode { @@ -5722,51 +3920,7 @@ class StepShape_AngularSize : public StepShape_DimensionalSize { }; -%extend StepShape_AngularSize { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_AngularSize(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_AngularSize::Handle_StepShape_AngularSize %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_AngularSize; -class Handle_StepShape_AngularSize : public Handle_StepShape_DimensionalSize { - - public: - // constructors - Handle_StepShape_AngularSize(); - Handle_StepShape_AngularSize(const Handle_StepShape_AngularSize &aHandle); - Handle_StepShape_AngularSize(const StepShape_AngularSize *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_AngularSize DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_AngularSize { - StepShape_AngularSize* _get_reference() { - return (StepShape_AngularSize*)$self->Access(); - } -}; - -%extend Handle_StepShape_AngularSize { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_AngularSize) %extend StepShape_AngularSize { %pythoncode { @@ -5817,51 +3971,7 @@ class StepShape_BoxedHalfSpace : public StepShape_HalfSpaceSolid { }; -%extend StepShape_BoxedHalfSpace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_BoxedHalfSpace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_BoxedHalfSpace::Handle_StepShape_BoxedHalfSpace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_BoxedHalfSpace; -class Handle_StepShape_BoxedHalfSpace : public Handle_StepShape_HalfSpaceSolid { - - public: - // constructors - Handle_StepShape_BoxedHalfSpace(); - Handle_StepShape_BoxedHalfSpace(const Handle_StepShape_BoxedHalfSpace &aHandle); - Handle_StepShape_BoxedHalfSpace(const StepShape_BoxedHalfSpace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_BoxedHalfSpace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_BoxedHalfSpace { - StepShape_BoxedHalfSpace* _get_reference() { - return (StepShape_BoxedHalfSpace*)$self->Access(); - } -}; - -%extend Handle_StepShape_BoxedHalfSpace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_BoxedHalfSpace) %extend StepShape_BoxedHalfSpace { %pythoncode { @@ -5880,51 +3990,7 @@ class StepShape_CompoundShapeRepresentation : public StepShape_ShapeRepresentati }; -%extend StepShape_CompoundShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_CompoundShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_CompoundShapeRepresentation::Handle_StepShape_CompoundShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_CompoundShapeRepresentation; -class Handle_StepShape_CompoundShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_CompoundShapeRepresentation(); - Handle_StepShape_CompoundShapeRepresentation(const Handle_StepShape_CompoundShapeRepresentation &aHandle); - Handle_StepShape_CompoundShapeRepresentation(const StepShape_CompoundShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_CompoundShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_CompoundShapeRepresentation { - StepShape_CompoundShapeRepresentation* _get_reference() { - return (StepShape_CompoundShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_CompoundShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_CompoundShapeRepresentation) %extend StepShape_CompoundShapeRepresentation { %pythoncode { @@ -5967,51 +4033,7 @@ class StepShape_ConnectedEdgeSet : public StepShape_TopologicalRepresentationIte }; -%extend StepShape_ConnectedEdgeSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ConnectedEdgeSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ConnectedEdgeSet::Handle_StepShape_ConnectedEdgeSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ConnectedEdgeSet; -class Handle_StepShape_ConnectedEdgeSet : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_ConnectedEdgeSet(); - Handle_StepShape_ConnectedEdgeSet(const Handle_StepShape_ConnectedEdgeSet &aHandle); - Handle_StepShape_ConnectedEdgeSet(const StepShape_ConnectedEdgeSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ConnectedEdgeSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ConnectedEdgeSet { - StepShape_ConnectedEdgeSet* _get_reference() { - return (StepShape_ConnectedEdgeSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_ConnectedEdgeSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ConnectedEdgeSet) %extend StepShape_ConnectedEdgeSet { %pythoncode { @@ -6064,51 +4086,7 @@ class StepShape_ConnectedFaceSet : public StepShape_TopologicalRepresentationIte }; -%extend StepShape_ConnectedFaceSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ConnectedFaceSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ConnectedFaceSet::Handle_StepShape_ConnectedFaceSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ConnectedFaceSet; -class Handle_StepShape_ConnectedFaceSet : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_ConnectedFaceSet(); - Handle_StepShape_ConnectedFaceSet(const Handle_StepShape_ConnectedFaceSet &aHandle); - Handle_StepShape_ConnectedFaceSet(const StepShape_ConnectedFaceSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ConnectedFaceSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ConnectedFaceSet { - StepShape_ConnectedFaceSet* _get_reference() { - return (StepShape_ConnectedFaceSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_ConnectedFaceSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ConnectedFaceSet) %extend StepShape_ConnectedFaceSet { %pythoncode { @@ -6127,51 +4105,7 @@ class StepShape_CsgShapeRepresentation : public StepShape_ShapeRepresentation { }; -%extend StepShape_CsgShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_CsgShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_CsgShapeRepresentation::Handle_StepShape_CsgShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_CsgShapeRepresentation; -class Handle_StepShape_CsgShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_CsgShapeRepresentation(); - Handle_StepShape_CsgShapeRepresentation(const Handle_StepShape_CsgShapeRepresentation &aHandle); - Handle_StepShape_CsgShapeRepresentation(const StepShape_CsgShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_CsgShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_CsgShapeRepresentation { - StepShape_CsgShapeRepresentation* _get_reference() { - return (StepShape_CsgShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_CsgShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_CsgShapeRepresentation) %extend StepShape_CsgShapeRepresentation { %pythoncode { @@ -6214,51 +4148,7 @@ class StepShape_CsgSolid : public StepShape_SolidModel { }; -%extend StepShape_CsgSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_CsgSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_CsgSolid::Handle_StepShape_CsgSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_CsgSolid; -class Handle_StepShape_CsgSolid : public Handle_StepShape_SolidModel { - - public: - // constructors - Handle_StepShape_CsgSolid(); - Handle_StepShape_CsgSolid(const Handle_StepShape_CsgSolid &aHandle); - Handle_StepShape_CsgSolid(const StepShape_CsgSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_CsgSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_CsgSolid { - StepShape_CsgSolid* _get_reference() { - return (StepShape_CsgSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_CsgSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_CsgSolid) %extend StepShape_CsgSolid { %pythoncode { @@ -6309,51 +4199,7 @@ class StepShape_DimensionalLocationWithPath : public StepShape_DimensionalLocati }; -%extend StepShape_DimensionalLocationWithPath { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DimensionalLocationWithPath(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DimensionalLocationWithPath::Handle_StepShape_DimensionalLocationWithPath %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DimensionalLocationWithPath; -class Handle_StepShape_DimensionalLocationWithPath : public Handle_StepShape_DimensionalLocation { - - public: - // constructors - Handle_StepShape_DimensionalLocationWithPath(); - Handle_StepShape_DimensionalLocationWithPath(const Handle_StepShape_DimensionalLocationWithPath &aHandle); - Handle_StepShape_DimensionalLocationWithPath(const StepShape_DimensionalLocationWithPath *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DimensionalLocationWithPath DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DimensionalLocationWithPath { - StepShape_DimensionalLocationWithPath* _get_reference() { - return (StepShape_DimensionalLocationWithPath*)$self->Access(); - } -}; - -%extend Handle_StepShape_DimensionalLocationWithPath { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DimensionalLocationWithPath) %extend StepShape_DimensionalLocationWithPath { %pythoncode { @@ -6398,51 +4244,7 @@ class StepShape_DimensionalSizeWithPath : public StepShape_DimensionalSize { }; -%extend StepShape_DimensionalSizeWithPath { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DimensionalSizeWithPath(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DimensionalSizeWithPath::Handle_StepShape_DimensionalSizeWithPath %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DimensionalSizeWithPath; -class Handle_StepShape_DimensionalSizeWithPath : public Handle_StepShape_DimensionalSize { - - public: - // constructors - Handle_StepShape_DimensionalSizeWithPath(); - Handle_StepShape_DimensionalSizeWithPath(const Handle_StepShape_DimensionalSizeWithPath &aHandle); - Handle_StepShape_DimensionalSizeWithPath(const StepShape_DimensionalSizeWithPath *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DimensionalSizeWithPath DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DimensionalSizeWithPath { - StepShape_DimensionalSizeWithPath* _get_reference() { - return (StepShape_DimensionalSizeWithPath*)$self->Access(); - } -}; - -%extend Handle_StepShape_DimensionalSizeWithPath { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DimensionalSizeWithPath) %extend StepShape_DimensionalSizeWithPath { %pythoncode { @@ -6461,51 +4263,7 @@ class StepShape_DirectedDimensionalLocation : public StepShape_DimensionalLocati }; -%extend StepShape_DirectedDimensionalLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_DirectedDimensionalLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_DirectedDimensionalLocation::Handle_StepShape_DirectedDimensionalLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_DirectedDimensionalLocation; -class Handle_StepShape_DirectedDimensionalLocation : public Handle_StepShape_DimensionalLocation { - - public: - // constructors - Handle_StepShape_DirectedDimensionalLocation(); - Handle_StepShape_DirectedDimensionalLocation(const Handle_StepShape_DirectedDimensionalLocation &aHandle); - Handle_StepShape_DirectedDimensionalLocation(const StepShape_DirectedDimensionalLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_DirectedDimensionalLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_DirectedDimensionalLocation { - StepShape_DirectedDimensionalLocation* _get_reference() { - return (StepShape_DirectedDimensionalLocation*)$self->Access(); - } -}; - -%extend Handle_StepShape_DirectedDimensionalLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_DirectedDimensionalLocation) %extend StepShape_DirectedDimensionalLocation { %pythoncode { @@ -6560,51 +4318,7 @@ class StepShape_Edge : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_Edge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Edge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Edge::Handle_StepShape_Edge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Edge; -class Handle_StepShape_Edge : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_Edge(); - Handle_StepShape_Edge(const Handle_StepShape_Edge &aHandle); - Handle_StepShape_Edge(const StepShape_Edge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Edge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Edge { - StepShape_Edge* _get_reference() { - return (StepShape_Edge*)$self->Access(); - } -}; - -%extend Handle_StepShape_Edge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Edge) %extend StepShape_Edge { %pythoncode { @@ -6623,51 +4337,7 @@ class StepShape_EdgeBasedWireframeShapeRepresentation : public StepShape_ShapeRe }; -%extend StepShape_EdgeBasedWireframeShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_EdgeBasedWireframeShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_EdgeBasedWireframeShapeRepresentation::Handle_StepShape_EdgeBasedWireframeShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_EdgeBasedWireframeShapeRepresentation; -class Handle_StepShape_EdgeBasedWireframeShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_EdgeBasedWireframeShapeRepresentation(); - Handle_StepShape_EdgeBasedWireframeShapeRepresentation(const Handle_StepShape_EdgeBasedWireframeShapeRepresentation &aHandle); - Handle_StepShape_EdgeBasedWireframeShapeRepresentation(const StepShape_EdgeBasedWireframeShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_EdgeBasedWireframeShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_EdgeBasedWireframeShapeRepresentation { - StepShape_EdgeBasedWireframeShapeRepresentation* _get_reference() { - return (StepShape_EdgeBasedWireframeShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_EdgeBasedWireframeShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_EdgeBasedWireframeShapeRepresentation) %extend StepShape_EdgeBasedWireframeShapeRepresentation { %pythoncode { @@ -6720,51 +4390,7 @@ class StepShape_Face : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_Face { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Face(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Face::Handle_StepShape_Face %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Face; -class Handle_StepShape_Face : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_Face(); - Handle_StepShape_Face(const Handle_StepShape_Face &aHandle); - Handle_StepShape_Face(const StepShape_Face *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Face DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Face { - StepShape_Face* _get_reference() { - return (StepShape_Face*)$self->Access(); - } -}; - -%extend Handle_StepShape_Face { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Face) %extend StepShape_Face { %pythoncode { @@ -6819,51 +4445,7 @@ class StepShape_FaceBound : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_FaceBound { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FaceBound(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FaceBound::Handle_StepShape_FaceBound %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FaceBound; -class Handle_StepShape_FaceBound : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_FaceBound(); - Handle_StepShape_FaceBound(const Handle_StepShape_FaceBound &aHandle); - Handle_StepShape_FaceBound(const StepShape_FaceBound *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FaceBound DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FaceBound { - StepShape_FaceBound* _get_reference() { - return (StepShape_FaceBound*)$self->Access(); - } -}; - -%extend Handle_StepShape_FaceBound { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FaceBound) %extend StepShape_FaceBound { %pythoncode { @@ -6882,51 +4464,7 @@ class StepShape_FacetedBrepShapeRepresentation : public StepShape_ShapeRepresent }; -%extend StepShape_FacetedBrepShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FacetedBrepShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FacetedBrepShapeRepresentation::Handle_StepShape_FacetedBrepShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FacetedBrepShapeRepresentation; -class Handle_StepShape_FacetedBrepShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_FacetedBrepShapeRepresentation(); - Handle_StepShape_FacetedBrepShapeRepresentation(const Handle_StepShape_FacetedBrepShapeRepresentation &aHandle); - Handle_StepShape_FacetedBrepShapeRepresentation(const StepShape_FacetedBrepShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FacetedBrepShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FacetedBrepShapeRepresentation { - StepShape_FacetedBrepShapeRepresentation* _get_reference() { - return (StepShape_FacetedBrepShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_FacetedBrepShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FacetedBrepShapeRepresentation) %extend StepShape_FacetedBrepShapeRepresentation { %pythoncode { @@ -6945,51 +4483,7 @@ class StepShape_GeometricCurveSet : public StepShape_GeometricSet { }; -%extend StepShape_GeometricCurveSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_GeometricCurveSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_GeometricCurveSet::Handle_StepShape_GeometricCurveSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_GeometricCurveSet; -class Handle_StepShape_GeometricCurveSet : public Handle_StepShape_GeometricSet { - - public: - // constructors - Handle_StepShape_GeometricCurveSet(); - Handle_StepShape_GeometricCurveSet(const Handle_StepShape_GeometricCurveSet &aHandle); - Handle_StepShape_GeometricCurveSet(const StepShape_GeometricCurveSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_GeometricCurveSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_GeometricCurveSet { - StepShape_GeometricCurveSet* _get_reference() { - return (StepShape_GeometricCurveSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_GeometricCurveSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_GeometricCurveSet) %extend StepShape_GeometricCurveSet { %pythoncode { @@ -7008,51 +4502,7 @@ class StepShape_GeometricallyBoundedSurfaceShapeRepresentation : public StepShap }; -%extend StepShape_GeometricallyBoundedSurfaceShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation::Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation; -class Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation(); - Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation(const Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation &aHandle); - Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation(const StepShape_GeometricallyBoundedSurfaceShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation { - StepShape_GeometricallyBoundedSurfaceShapeRepresentation* _get_reference() { - return (StepShape_GeometricallyBoundedSurfaceShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_GeometricallyBoundedSurfaceShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_GeometricallyBoundedSurfaceShapeRepresentation) %extend StepShape_GeometricallyBoundedSurfaceShapeRepresentation { %pythoncode { @@ -7071,51 +4521,7 @@ class StepShape_GeometricallyBoundedWireframeShapeRepresentation : public StepSh }; -%extend StepShape_GeometricallyBoundedWireframeShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation::Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation; -class Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation(); - Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation(const Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation &aHandle); - Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation(const StepShape_GeometricallyBoundedWireframeShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation { - StepShape_GeometricallyBoundedWireframeShapeRepresentation* _get_reference() { - return (StepShape_GeometricallyBoundedWireframeShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_GeometricallyBoundedWireframeShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_GeometricallyBoundedWireframeShapeRepresentation) %extend StepShape_GeometricallyBoundedWireframeShapeRepresentation { %pythoncode { @@ -7134,51 +4540,7 @@ class StepShape_Loop : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_Loop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Loop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Loop::Handle_StepShape_Loop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Loop; -class Handle_StepShape_Loop : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_Loop(); - Handle_StepShape_Loop(const Handle_StepShape_Loop &aHandle); - Handle_StepShape_Loop(const StepShape_Loop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Loop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Loop { - StepShape_Loop* _get_reference() { - return (StepShape_Loop*)$self->Access(); - } -}; - -%extend Handle_StepShape_Loop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Loop) %extend StepShape_Loop { %pythoncode { @@ -7261,51 +4623,7 @@ class StepShape_LoopAndPath : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_LoopAndPath { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_LoopAndPath(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_LoopAndPath::Handle_StepShape_LoopAndPath %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_LoopAndPath; -class Handle_StepShape_LoopAndPath : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_LoopAndPath(); - Handle_StepShape_LoopAndPath(const Handle_StepShape_LoopAndPath &aHandle); - Handle_StepShape_LoopAndPath(const StepShape_LoopAndPath *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_LoopAndPath DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_LoopAndPath { - StepShape_LoopAndPath* _get_reference() { - return (StepShape_LoopAndPath*)$self->Access(); - } -}; - -%extend Handle_StepShape_LoopAndPath { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_LoopAndPath) %extend StepShape_LoopAndPath { %pythoncode { @@ -7356,51 +4674,7 @@ class StepShape_ManifoldSolidBrep : public StepShape_SolidModel { }; -%extend StepShape_ManifoldSolidBrep { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ManifoldSolidBrep(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ManifoldSolidBrep::Handle_StepShape_ManifoldSolidBrep %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ManifoldSolidBrep; -class Handle_StepShape_ManifoldSolidBrep : public Handle_StepShape_SolidModel { - - public: - // constructors - Handle_StepShape_ManifoldSolidBrep(); - Handle_StepShape_ManifoldSolidBrep(const Handle_StepShape_ManifoldSolidBrep &aHandle); - Handle_StepShape_ManifoldSolidBrep(const StepShape_ManifoldSolidBrep *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ManifoldSolidBrep DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ManifoldSolidBrep { - StepShape_ManifoldSolidBrep* _get_reference() { - return (StepShape_ManifoldSolidBrep*)$self->Access(); - } -}; - -%extend Handle_StepShape_ManifoldSolidBrep { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ManifoldSolidBrep) %extend StepShape_ManifoldSolidBrep { %pythoncode { @@ -7419,51 +4693,7 @@ class StepShape_ManifoldSurfaceShapeRepresentation : public StepShape_ShapeRepre }; -%extend StepShape_ManifoldSurfaceShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ManifoldSurfaceShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ManifoldSurfaceShapeRepresentation::Handle_StepShape_ManifoldSurfaceShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ManifoldSurfaceShapeRepresentation; -class Handle_StepShape_ManifoldSurfaceShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_ManifoldSurfaceShapeRepresentation(); - Handle_StepShape_ManifoldSurfaceShapeRepresentation(const Handle_StepShape_ManifoldSurfaceShapeRepresentation &aHandle); - Handle_StepShape_ManifoldSurfaceShapeRepresentation(const StepShape_ManifoldSurfaceShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ManifoldSurfaceShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ManifoldSurfaceShapeRepresentation { - StepShape_ManifoldSurfaceShapeRepresentation* _get_reference() { - return (StepShape_ManifoldSurfaceShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_ManifoldSurfaceShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ManifoldSurfaceShapeRepresentation) %extend StepShape_ManifoldSurfaceShapeRepresentation { %pythoncode { @@ -7482,51 +4712,7 @@ class StepShape_NonManifoldSurfaceShapeRepresentation : public StepShape_ShapeRe }; -%extend StepShape_NonManifoldSurfaceShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_NonManifoldSurfaceShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_NonManifoldSurfaceShapeRepresentation::Handle_StepShape_NonManifoldSurfaceShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_NonManifoldSurfaceShapeRepresentation; -class Handle_StepShape_NonManifoldSurfaceShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_NonManifoldSurfaceShapeRepresentation(); - Handle_StepShape_NonManifoldSurfaceShapeRepresentation(const Handle_StepShape_NonManifoldSurfaceShapeRepresentation &aHandle); - Handle_StepShape_NonManifoldSurfaceShapeRepresentation(const StepShape_NonManifoldSurfaceShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_NonManifoldSurfaceShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_NonManifoldSurfaceShapeRepresentation { - StepShape_NonManifoldSurfaceShapeRepresentation* _get_reference() { - return (StepShape_NonManifoldSurfaceShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_NonManifoldSurfaceShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_NonManifoldSurfaceShapeRepresentation) %extend StepShape_NonManifoldSurfaceShapeRepresentation { %pythoncode { @@ -7579,51 +4765,7 @@ class StepShape_Path : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_Path { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Path(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Path::Handle_StepShape_Path %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Path; -class Handle_StepShape_Path : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_Path(); - Handle_StepShape_Path(const Handle_StepShape_Path &aHandle); - Handle_StepShape_Path(const StepShape_Path *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Path DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Path { - StepShape_Path* _get_reference() { - return (StepShape_Path*)$self->Access(); - } -}; - -%extend Handle_StepShape_Path { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Path) %extend StepShape_Path { %pythoncode { @@ -7642,51 +4784,7 @@ class StepShape_PointRepresentation : public StepShape_ShapeRepresentation { }; -%extend StepShape_PointRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_PointRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_PointRepresentation::Handle_StepShape_PointRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_PointRepresentation; -class Handle_StepShape_PointRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_PointRepresentation(); - Handle_StepShape_PointRepresentation(const Handle_StepShape_PointRepresentation &aHandle); - Handle_StepShape_PointRepresentation(const StepShape_PointRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_PointRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_PointRepresentation { - StepShape_PointRepresentation* _get_reference() { - return (StepShape_PointRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_PointRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_PointRepresentation) %extend StepShape_PointRepresentation { %pythoncode { @@ -7705,51 +4803,7 @@ class StepShape_ShapeDimensionRepresentation : public StepShape_ShapeRepresentat }; -%extend StepShape_ShapeDimensionRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ShapeDimensionRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ShapeDimensionRepresentation::Handle_StepShape_ShapeDimensionRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ShapeDimensionRepresentation; -class Handle_StepShape_ShapeDimensionRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_ShapeDimensionRepresentation(); - Handle_StepShape_ShapeDimensionRepresentation(const Handle_StepShape_ShapeDimensionRepresentation &aHandle); - Handle_StepShape_ShapeDimensionRepresentation(const StepShape_ShapeDimensionRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ShapeDimensionRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ShapeDimensionRepresentation { - StepShape_ShapeDimensionRepresentation* _get_reference() { - return (StepShape_ShapeDimensionRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_ShapeDimensionRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ShapeDimensionRepresentation) %extend StepShape_ShapeDimensionRepresentation { %pythoncode { @@ -7768,51 +4822,7 @@ class StepShape_ShapeRepresentationWithParameters : public StepShape_ShapeRepres }; -%extend StepShape_ShapeRepresentationWithParameters { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ShapeRepresentationWithParameters(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ShapeRepresentationWithParameters::Handle_StepShape_ShapeRepresentationWithParameters %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ShapeRepresentationWithParameters; -class Handle_StepShape_ShapeRepresentationWithParameters : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_ShapeRepresentationWithParameters(); - Handle_StepShape_ShapeRepresentationWithParameters(const Handle_StepShape_ShapeRepresentationWithParameters &aHandle); - Handle_StepShape_ShapeRepresentationWithParameters(const StepShape_ShapeRepresentationWithParameters *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ShapeRepresentationWithParameters DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ShapeRepresentationWithParameters { - StepShape_ShapeRepresentationWithParameters* _get_reference() { - return (StepShape_ShapeRepresentationWithParameters*)$self->Access(); - } -}; - -%extend Handle_StepShape_ShapeRepresentationWithParameters { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ShapeRepresentationWithParameters) %extend StepShape_ShapeRepresentationWithParameters { %pythoncode { @@ -7867,51 +4877,7 @@ class StepShape_SolidReplica : public StepShape_SolidModel { }; -%extend StepShape_SolidReplica { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_SolidReplica(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_SolidReplica::Handle_StepShape_SolidReplica %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_SolidReplica; -class Handle_StepShape_SolidReplica : public Handle_StepShape_SolidModel { - - public: - // constructors - Handle_StepShape_SolidReplica(); - Handle_StepShape_SolidReplica(const Handle_StepShape_SolidReplica &aHandle); - Handle_StepShape_SolidReplica(const StepShape_SolidReplica *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_SolidReplica DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_SolidReplica { - StepShape_SolidReplica* _get_reference() { - return (StepShape_SolidReplica*)$self->Access(); - } -}; - -%extend Handle_StepShape_SolidReplica { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_SolidReplica) %extend StepShape_SolidReplica { %pythoncode { @@ -7954,51 +4920,7 @@ class StepShape_SweptAreaSolid : public StepShape_SolidModel { }; -%extend StepShape_SweptAreaSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_SweptAreaSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_SweptAreaSolid::Handle_StepShape_SweptAreaSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_SweptAreaSolid; -class Handle_StepShape_SweptAreaSolid : public Handle_StepShape_SolidModel { - - public: - // constructors - Handle_StepShape_SweptAreaSolid(); - Handle_StepShape_SweptAreaSolid(const Handle_StepShape_SweptAreaSolid &aHandle); - Handle_StepShape_SweptAreaSolid(const StepShape_SweptAreaSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_SweptAreaSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_SweptAreaSolid { - StepShape_SweptAreaSolid* _get_reference() { - return (StepShape_SweptAreaSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_SweptAreaSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_SweptAreaSolid) %extend StepShape_SweptAreaSolid { %pythoncode { @@ -8041,51 +4963,7 @@ class StepShape_SweptFaceSolid : public StepShape_SolidModel { }; -%extend StepShape_SweptFaceSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_SweptFaceSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_SweptFaceSolid::Handle_StepShape_SweptFaceSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_SweptFaceSolid; -class Handle_StepShape_SweptFaceSolid : public Handle_StepShape_SolidModel { - - public: - // constructors - Handle_StepShape_SweptFaceSolid(); - Handle_StepShape_SweptFaceSolid(const Handle_StepShape_SweptFaceSolid &aHandle); - Handle_StepShape_SweptFaceSolid(const StepShape_SweptFaceSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_SweptFaceSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_SweptFaceSolid { - StepShape_SweptFaceSolid* _get_reference() { - return (StepShape_SweptFaceSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_SweptFaceSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_SweptFaceSolid) %extend StepShape_SweptFaceSolid { %pythoncode { @@ -8104,51 +4982,7 @@ class StepShape_TransitionalShapeRepresentation : public StepShape_ShapeRepresen }; -%extend StepShape_TransitionalShapeRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_TransitionalShapeRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_TransitionalShapeRepresentation::Handle_StepShape_TransitionalShapeRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_TransitionalShapeRepresentation; -class Handle_StepShape_TransitionalShapeRepresentation : public Handle_StepShape_ShapeRepresentation { - - public: - // constructors - Handle_StepShape_TransitionalShapeRepresentation(); - Handle_StepShape_TransitionalShapeRepresentation(const Handle_StepShape_TransitionalShapeRepresentation &aHandle); - Handle_StepShape_TransitionalShapeRepresentation(const StepShape_TransitionalShapeRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_TransitionalShapeRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_TransitionalShapeRepresentation { - StepShape_TransitionalShapeRepresentation* _get_reference() { - return (StepShape_TransitionalShapeRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepShape_TransitionalShapeRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_TransitionalShapeRepresentation) %extend StepShape_TransitionalShapeRepresentation { %pythoncode { @@ -8167,51 +5001,7 @@ class StepShape_Vertex : public StepShape_TopologicalRepresentationItem { }; -%extend StepShape_Vertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Vertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Vertex::Handle_StepShape_Vertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Vertex; -class Handle_StepShape_Vertex : public Handle_StepShape_TopologicalRepresentationItem { - - public: - // constructors - Handle_StepShape_Vertex(); - Handle_StepShape_Vertex(const Handle_StepShape_Vertex &aHandle); - Handle_StepShape_Vertex(const StepShape_Vertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Vertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Vertex { - StepShape_Vertex* _get_reference() { - return (StepShape_Vertex*)$self->Access(); - } -}; - -%extend Handle_StepShape_Vertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Vertex) %extend StepShape_Vertex { %pythoncode { @@ -8268,51 +5058,7 @@ class StepShape_BrepWithVoids : public StepShape_ManifoldSolidBrep { }; -%extend StepShape_BrepWithVoids { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_BrepWithVoids(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_BrepWithVoids::Handle_StepShape_BrepWithVoids %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_BrepWithVoids; -class Handle_StepShape_BrepWithVoids : public Handle_StepShape_ManifoldSolidBrep { - - public: - // constructors - Handle_StepShape_BrepWithVoids(); - Handle_StepShape_BrepWithVoids(const Handle_StepShape_BrepWithVoids &aHandle); - Handle_StepShape_BrepWithVoids(const StepShape_BrepWithVoids *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_BrepWithVoids DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_BrepWithVoids { - StepShape_BrepWithVoids* _get_reference() { - return (StepShape_BrepWithVoids*)$self->Access(); - } -}; - -%extend Handle_StepShape_BrepWithVoids { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_BrepWithVoids) %extend StepShape_BrepWithVoids { %pythoncode { @@ -8331,51 +5077,7 @@ class StepShape_ClosedShell : public StepShape_ConnectedFaceSet { }; -%extend StepShape_ClosedShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ClosedShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ClosedShell::Handle_StepShape_ClosedShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ClosedShell; -class Handle_StepShape_ClosedShell : public Handle_StepShape_ConnectedFaceSet { - - public: - // constructors - Handle_StepShape_ClosedShell(); - Handle_StepShape_ClosedShell(const Handle_StepShape_ClosedShell &aHandle); - Handle_StepShape_ClosedShell(const StepShape_ClosedShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ClosedShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ClosedShell { - StepShape_ClosedShell* _get_reference() { - return (StepShape_ClosedShell*)$self->Access(); - } -}; - -%extend Handle_StepShape_ClosedShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ClosedShell) %extend StepShape_ClosedShell { %pythoncode { @@ -8420,51 +5122,7 @@ class StepShape_ConnectedFaceSubSet : public StepShape_ConnectedFaceSet { }; -%extend StepShape_ConnectedFaceSubSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ConnectedFaceSubSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ConnectedFaceSubSet::Handle_StepShape_ConnectedFaceSubSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ConnectedFaceSubSet; -class Handle_StepShape_ConnectedFaceSubSet : public Handle_StepShape_ConnectedFaceSet { - - public: - // constructors - Handle_StepShape_ConnectedFaceSubSet(); - Handle_StepShape_ConnectedFaceSubSet(const Handle_StepShape_ConnectedFaceSubSet &aHandle); - Handle_StepShape_ConnectedFaceSubSet(const StepShape_ConnectedFaceSubSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ConnectedFaceSubSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ConnectedFaceSubSet { - StepShape_ConnectedFaceSubSet* _get_reference() { - return (StepShape_ConnectedFaceSubSet*)$self->Access(); - } -}; - -%extend Handle_StepShape_ConnectedFaceSubSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ConnectedFaceSubSet) %extend StepShape_ConnectedFaceSubSet { %pythoncode { @@ -8527,51 +5185,7 @@ class StepShape_EdgeCurve : public StepShape_Edge { }; -%extend StepShape_EdgeCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_EdgeCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_EdgeCurve::Handle_StepShape_EdgeCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_EdgeCurve; -class Handle_StepShape_EdgeCurve : public Handle_StepShape_Edge { - - public: - // constructors - Handle_StepShape_EdgeCurve(); - Handle_StepShape_EdgeCurve(const Handle_StepShape_EdgeCurve &aHandle); - Handle_StepShape_EdgeCurve(const StepShape_EdgeCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_EdgeCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_EdgeCurve { - StepShape_EdgeCurve* _get_reference() { - return (StepShape_EdgeCurve*)$self->Access(); - } -}; - -%extend Handle_StepShape_EdgeCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_EdgeCurve) %extend StepShape_EdgeCurve { %pythoncode { @@ -8624,51 +5238,7 @@ class StepShape_EdgeLoop : public StepShape_Loop { }; -%extend StepShape_EdgeLoop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_EdgeLoop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_EdgeLoop::Handle_StepShape_EdgeLoop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_EdgeLoop; -class Handle_StepShape_EdgeLoop : public Handle_StepShape_Loop { - - public: - // constructors - Handle_StepShape_EdgeLoop(); - Handle_StepShape_EdgeLoop(const Handle_StepShape_EdgeLoop &aHandle); - Handle_StepShape_EdgeLoop(const StepShape_EdgeLoop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_EdgeLoop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_EdgeLoop { - StepShape_EdgeLoop* _get_reference() { - return (StepShape_EdgeLoop*)$self->Access(); - } -}; - -%extend Handle_StepShape_EdgeLoop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_EdgeLoop) %extend StepShape_EdgeLoop { %pythoncode { @@ -8727,51 +5297,7 @@ class StepShape_ExtrudedAreaSolid : public StepShape_SweptAreaSolid { }; -%extend StepShape_ExtrudedAreaSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ExtrudedAreaSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_ExtrudedAreaSolid::Handle_StepShape_ExtrudedAreaSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ExtrudedAreaSolid; -class Handle_StepShape_ExtrudedAreaSolid : public Handle_StepShape_SweptAreaSolid { - - public: - // constructors - Handle_StepShape_ExtrudedAreaSolid(); - Handle_StepShape_ExtrudedAreaSolid(const Handle_StepShape_ExtrudedAreaSolid &aHandle); - Handle_StepShape_ExtrudedAreaSolid(const StepShape_ExtrudedAreaSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ExtrudedAreaSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ExtrudedAreaSolid { - StepShape_ExtrudedAreaSolid* _get_reference() { - return (StepShape_ExtrudedAreaSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_ExtrudedAreaSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ExtrudedAreaSolid) %extend StepShape_ExtrudedAreaSolid { %pythoncode { @@ -8825,56 +5351,12 @@ class StepShape_ExtrudedFaceSolid : public StepShape_SweptFaceSolid { void SetDepth (const Standard_Real aDepth); %feature("compactdefaultargs") Depth; %feature("autodoc", " :rtype: float -") Depth; - Standard_Real Depth (); -}; - - -%extend StepShape_ExtrudedFaceSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_ExtrudedFaceSolid(self) - self.thisown = False - return self.thisHandle - } +") Depth; + Standard_Real Depth (); }; -%pythonappend Handle_StepShape_ExtrudedFaceSolid::Handle_StepShape_ExtrudedFaceSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_ExtrudedFaceSolid; -class Handle_StepShape_ExtrudedFaceSolid : public Handle_StepShape_SweptFaceSolid { - - public: - // constructors - Handle_StepShape_ExtrudedFaceSolid(); - Handle_StepShape_ExtrudedFaceSolid(const Handle_StepShape_ExtrudedFaceSolid &aHandle); - Handle_StepShape_ExtrudedFaceSolid(const StepShape_ExtrudedFaceSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_ExtrudedFaceSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_ExtrudedFaceSolid { - StepShape_ExtrudedFaceSolid* _get_reference() { - return (StepShape_ExtrudedFaceSolid*)$self->Access(); - } -}; -%extend Handle_StepShape_ExtrudedFaceSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_ExtrudedFaceSolid) %extend StepShape_ExtrudedFaceSolid { %pythoncode { @@ -8893,51 +5375,7 @@ class StepShape_FaceOuterBound : public StepShape_FaceBound { }; -%extend StepShape_FaceOuterBound { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FaceOuterBound(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FaceOuterBound::Handle_StepShape_FaceOuterBound %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FaceOuterBound; -class Handle_StepShape_FaceOuterBound : public Handle_StepShape_FaceBound { - - public: - // constructors - Handle_StepShape_FaceOuterBound(); - Handle_StepShape_FaceOuterBound(const Handle_StepShape_FaceOuterBound &aHandle); - Handle_StepShape_FaceOuterBound(const StepShape_FaceOuterBound *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FaceOuterBound DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FaceOuterBound { - StepShape_FaceOuterBound* _get_reference() { - return (StepShape_FaceOuterBound*)$self->Access(); - } -}; - -%extend Handle_StepShape_FaceOuterBound { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FaceOuterBound) %extend StepShape_FaceOuterBound { %pythoncode { @@ -8996,51 +5434,7 @@ class StepShape_FaceSurface : public StepShape_Face { }; -%extend StepShape_FaceSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FaceSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FaceSurface::Handle_StepShape_FaceSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FaceSurface; -class Handle_StepShape_FaceSurface : public Handle_StepShape_Face { - - public: - // constructors - Handle_StepShape_FaceSurface(); - Handle_StepShape_FaceSurface(const Handle_StepShape_FaceSurface &aHandle); - Handle_StepShape_FaceSurface(const StepShape_FaceSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FaceSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FaceSurface { - StepShape_FaceSurface* _get_reference() { - return (StepShape_FaceSurface*)$self->Access(); - } -}; - -%extend Handle_StepShape_FaceSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FaceSurface) %extend StepShape_FaceSurface { %pythoncode { @@ -9059,51 +5453,7 @@ class StepShape_FacetedBrep : public StepShape_ManifoldSolidBrep { }; -%extend StepShape_FacetedBrep { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FacetedBrep(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FacetedBrep::Handle_StepShape_FacetedBrep %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FacetedBrep; -class Handle_StepShape_FacetedBrep : public Handle_StepShape_ManifoldSolidBrep { - - public: - // constructors - Handle_StepShape_FacetedBrep(); - Handle_StepShape_FacetedBrep(const Handle_StepShape_FacetedBrep &aHandle); - Handle_StepShape_FacetedBrep(const StepShape_FacetedBrep *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FacetedBrep DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FacetedBrep { - StepShape_FacetedBrep* _get_reference() { - return (StepShape_FacetedBrep*)$self->Access(); - } -}; - -%extend Handle_StepShape_FacetedBrep { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FacetedBrep) %extend StepShape_FacetedBrep { %pythoncode { @@ -9192,51 +5542,7 @@ class StepShape_FacetedBrepAndBrepWithVoids : public StepShape_ManifoldSolidBrep }; -%extend StepShape_FacetedBrepAndBrepWithVoids { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_FacetedBrepAndBrepWithVoids(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_FacetedBrepAndBrepWithVoids::Handle_StepShape_FacetedBrepAndBrepWithVoids %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_FacetedBrepAndBrepWithVoids; -class Handle_StepShape_FacetedBrepAndBrepWithVoids : public Handle_StepShape_ManifoldSolidBrep { - - public: - // constructors - Handle_StepShape_FacetedBrepAndBrepWithVoids(); - Handle_StepShape_FacetedBrepAndBrepWithVoids(const Handle_StepShape_FacetedBrepAndBrepWithVoids &aHandle); - Handle_StepShape_FacetedBrepAndBrepWithVoids(const StepShape_FacetedBrepAndBrepWithVoids *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_FacetedBrepAndBrepWithVoids DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_FacetedBrepAndBrepWithVoids { - StepShape_FacetedBrepAndBrepWithVoids* _get_reference() { - return (StepShape_FacetedBrepAndBrepWithVoids*)$self->Access(); - } -}; - -%extend Handle_StepShape_FacetedBrepAndBrepWithVoids { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_FacetedBrepAndBrepWithVoids) %extend StepShape_FacetedBrepAndBrepWithVoids { %pythoncode { @@ -9255,51 +5561,7 @@ class StepShape_OpenShell : public StepShape_ConnectedFaceSet { }; -%extend StepShape_OpenShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_OpenShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_OpenShell::Handle_StepShape_OpenShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_OpenShell; -class Handle_StepShape_OpenShell : public Handle_StepShape_ConnectedFaceSet { - - public: - // constructors - Handle_StepShape_OpenShell(); - Handle_StepShape_OpenShell(const Handle_StepShape_OpenShell &aHandle); - Handle_StepShape_OpenShell(const StepShape_OpenShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_OpenShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_OpenShell { - StepShape_OpenShell* _get_reference() { - return (StepShape_OpenShell*)$self->Access(); - } -}; - -%extend Handle_StepShape_OpenShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_OpenShell) %extend StepShape_OpenShell { %pythoncode { @@ -9368,51 +5630,7 @@ class StepShape_OrientedEdge : public StepShape_Edge { }; -%extend StepShape_OrientedEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_OrientedEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_OrientedEdge::Handle_StepShape_OrientedEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_OrientedEdge; -class Handle_StepShape_OrientedEdge : public Handle_StepShape_Edge { - - public: - // constructors - Handle_StepShape_OrientedEdge(); - Handle_StepShape_OrientedEdge(const Handle_StepShape_OrientedEdge &aHandle); - Handle_StepShape_OrientedEdge(const StepShape_OrientedEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_OrientedEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_OrientedEdge { - StepShape_OrientedEdge* _get_reference() { - return (StepShape_OrientedEdge*)$self->Access(); - } -}; - -%extend Handle_StepShape_OrientedEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_OrientedEdge) %extend StepShape_OrientedEdge { %pythoncode { @@ -9489,51 +5707,7 @@ class StepShape_OrientedFace : public StepShape_Face { }; -%extend StepShape_OrientedFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_OrientedFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_OrientedFace::Handle_StepShape_OrientedFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_OrientedFace; -class Handle_StepShape_OrientedFace : public Handle_StepShape_Face { - - public: - // constructors - Handle_StepShape_OrientedFace(); - Handle_StepShape_OrientedFace(const Handle_StepShape_OrientedFace &aHandle); - Handle_StepShape_OrientedFace(const StepShape_OrientedFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_OrientedFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_OrientedFace { - StepShape_OrientedFace* _get_reference() { - return (StepShape_OrientedFace*)$self->Access(); - } -}; - -%extend Handle_StepShape_OrientedFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_OrientedFace) %extend StepShape_OrientedFace { %pythoncode { @@ -9610,51 +5784,7 @@ class StepShape_OrientedPath : public StepShape_Path { }; -%extend StepShape_OrientedPath { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_OrientedPath(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_OrientedPath::Handle_StepShape_OrientedPath %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_OrientedPath; -class Handle_StepShape_OrientedPath : public Handle_StepShape_Path { - - public: - // constructors - Handle_StepShape_OrientedPath(); - Handle_StepShape_OrientedPath(const Handle_StepShape_OrientedPath &aHandle); - Handle_StepShape_OrientedPath(const StepShape_OrientedPath *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_OrientedPath DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_OrientedPath { - StepShape_OrientedPath* _get_reference() { - return (StepShape_OrientedPath*)$self->Access(); - } -}; - -%extend Handle_StepShape_OrientedPath { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_OrientedPath) %extend StepShape_OrientedPath { %pythoncode { @@ -9707,51 +5837,7 @@ class StepShape_PolyLoop : public StepShape_Loop { }; -%extend StepShape_PolyLoop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_PolyLoop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_PolyLoop::Handle_StepShape_PolyLoop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_PolyLoop; -class Handle_StepShape_PolyLoop : public Handle_StepShape_Loop { - - public: - // constructors - Handle_StepShape_PolyLoop(); - Handle_StepShape_PolyLoop(const Handle_StepShape_PolyLoop &aHandle); - Handle_StepShape_PolyLoop(const StepShape_PolyLoop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_PolyLoop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_PolyLoop { - StepShape_PolyLoop* _get_reference() { - return (StepShape_PolyLoop*)$self->Access(); - } -}; - -%extend Handle_StepShape_PolyLoop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_PolyLoop) %extend StepShape_PolyLoop { %pythoncode { @@ -9810,51 +5896,7 @@ class StepShape_RevolvedAreaSolid : public StepShape_SweptAreaSolid { }; -%extend StepShape_RevolvedAreaSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_RevolvedAreaSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_RevolvedAreaSolid::Handle_StepShape_RevolvedAreaSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_RevolvedAreaSolid; -class Handle_StepShape_RevolvedAreaSolid : public Handle_StepShape_SweptAreaSolid { - - public: - // constructors - Handle_StepShape_RevolvedAreaSolid(); - Handle_StepShape_RevolvedAreaSolid(const Handle_StepShape_RevolvedAreaSolid &aHandle); - Handle_StepShape_RevolvedAreaSolid(const StepShape_RevolvedAreaSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_RevolvedAreaSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_RevolvedAreaSolid { - StepShape_RevolvedAreaSolid* _get_reference() { - return (StepShape_RevolvedAreaSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_RevolvedAreaSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_RevolvedAreaSolid) %extend StepShape_RevolvedAreaSolid { %pythoncode { @@ -9913,51 +5955,7 @@ class StepShape_RevolvedFaceSolid : public StepShape_SweptFaceSolid { }; -%extend StepShape_RevolvedFaceSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_RevolvedFaceSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_RevolvedFaceSolid::Handle_StepShape_RevolvedFaceSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_RevolvedFaceSolid; -class Handle_StepShape_RevolvedFaceSolid : public Handle_StepShape_SweptFaceSolid { - - public: - // constructors - Handle_StepShape_RevolvedFaceSolid(); - Handle_StepShape_RevolvedFaceSolid(const Handle_StepShape_RevolvedFaceSolid &aHandle); - Handle_StepShape_RevolvedFaceSolid(const StepShape_RevolvedFaceSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_RevolvedFaceSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_RevolvedFaceSolid { - StepShape_RevolvedFaceSolid* _get_reference() { - return (StepShape_RevolvedFaceSolid*)$self->Access(); - } -}; - -%extend Handle_StepShape_RevolvedFaceSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_RevolvedFaceSolid) %extend StepShape_RevolvedFaceSolid { %pythoncode { @@ -10004,51 +6002,7 @@ class StepShape_Subedge : public StepShape_Edge { }; -%extend StepShape_Subedge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Subedge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Subedge::Handle_StepShape_Subedge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Subedge; -class Handle_StepShape_Subedge : public Handle_StepShape_Edge { - - public: - // constructors - Handle_StepShape_Subedge(); - Handle_StepShape_Subedge(const Handle_StepShape_Subedge &aHandle); - Handle_StepShape_Subedge(const StepShape_Subedge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Subedge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Subedge { - StepShape_Subedge* _get_reference() { - return (StepShape_Subedge*)$self->Access(); - } -}; - -%extend Handle_StepShape_Subedge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Subedge) %extend StepShape_Subedge { %pythoncode { @@ -10093,51 +6047,7 @@ class StepShape_Subface : public StepShape_Face { }; -%extend StepShape_Subface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_Subface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_Subface::Handle_StepShape_Subface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_Subface; -class Handle_StepShape_Subface : public Handle_StepShape_Face { - - public: - // constructors - Handle_StepShape_Subface(); - Handle_StepShape_Subface(const Handle_StepShape_Subface &aHandle); - Handle_StepShape_Subface(const StepShape_Subface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_Subface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_Subface { - StepShape_Subface* _get_reference() { - return (StepShape_Subface*)$self->Access(); - } -}; - -%extend Handle_StepShape_Subface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_Subface) %extend StepShape_Subface { %pythoncode { @@ -10180,51 +6090,7 @@ class StepShape_VertexLoop : public StepShape_Loop { }; -%extend StepShape_VertexLoop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_VertexLoop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_VertexLoop::Handle_StepShape_VertexLoop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_VertexLoop; -class Handle_StepShape_VertexLoop : public Handle_StepShape_Loop { - - public: - // constructors - Handle_StepShape_VertexLoop(); - Handle_StepShape_VertexLoop(const Handle_StepShape_VertexLoop &aHandle); - Handle_StepShape_VertexLoop(const StepShape_VertexLoop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_VertexLoop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_VertexLoop { - StepShape_VertexLoop* _get_reference() { - return (StepShape_VertexLoop*)$self->Access(); - } -}; - -%extend Handle_StepShape_VertexLoop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_VertexLoop) %extend StepShape_VertexLoop { %pythoncode { @@ -10267,51 +6133,7 @@ class StepShape_VertexPoint : public StepShape_Vertex { }; -%extend StepShape_VertexPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_VertexPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_VertexPoint::Handle_StepShape_VertexPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_VertexPoint; -class Handle_StepShape_VertexPoint : public Handle_StepShape_Vertex { - - public: - // constructors - Handle_StepShape_VertexPoint(); - Handle_StepShape_VertexPoint(const Handle_StepShape_VertexPoint &aHandle); - Handle_StepShape_VertexPoint(const StepShape_VertexPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_VertexPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_VertexPoint { - StepShape_VertexPoint* _get_reference() { - return (StepShape_VertexPoint*)$self->Access(); - } -}; - -%extend Handle_StepShape_VertexPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_VertexPoint) %extend StepShape_VertexPoint { %pythoncode { @@ -10330,51 +6152,7 @@ class StepShape_AdvancedFace : public StepShape_FaceSurface { }; -%extend StepShape_AdvancedFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_AdvancedFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_AdvancedFace::Handle_StepShape_AdvancedFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_AdvancedFace; -class Handle_StepShape_AdvancedFace : public Handle_StepShape_FaceSurface { - - public: - // constructors - Handle_StepShape_AdvancedFace(); - Handle_StepShape_AdvancedFace(const Handle_StepShape_AdvancedFace &aHandle); - Handle_StepShape_AdvancedFace(const StepShape_AdvancedFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_AdvancedFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_AdvancedFace { - StepShape_AdvancedFace* _get_reference() { - return (StepShape_AdvancedFace*)$self->Access(); - } -}; - -%extend Handle_StepShape_AdvancedFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_AdvancedFace) %extend StepShape_AdvancedFace { %pythoncode { @@ -10451,51 +6229,7 @@ class StepShape_OrientedClosedShell : public StepShape_ClosedShell { }; -%extend StepShape_OrientedClosedShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_OrientedClosedShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_OrientedClosedShell::Handle_StepShape_OrientedClosedShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_OrientedClosedShell; -class Handle_StepShape_OrientedClosedShell : public Handle_StepShape_ClosedShell { - - public: - // constructors - Handle_StepShape_OrientedClosedShell(); - Handle_StepShape_OrientedClosedShell(const Handle_StepShape_OrientedClosedShell &aHandle); - Handle_StepShape_OrientedClosedShell(const StepShape_OrientedClosedShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_OrientedClosedShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_OrientedClosedShell { - StepShape_OrientedClosedShell* _get_reference() { - return (StepShape_OrientedClosedShell*)$self->Access(); - } -}; - -%extend Handle_StepShape_OrientedClosedShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_OrientedClosedShell) %extend StepShape_OrientedClosedShell { %pythoncode { @@ -10572,51 +6306,7 @@ class StepShape_OrientedOpenShell : public StepShape_OpenShell { }; -%extend StepShape_OrientedOpenShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_OrientedOpenShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_OrientedOpenShell::Handle_StepShape_OrientedOpenShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_OrientedOpenShell; -class Handle_StepShape_OrientedOpenShell : public Handle_StepShape_OpenShell { - - public: - // constructors - Handle_StepShape_OrientedOpenShell(); - Handle_StepShape_OrientedOpenShell(const Handle_StepShape_OrientedOpenShell &aHandle); - Handle_StepShape_OrientedOpenShell(const StepShape_OrientedOpenShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_OrientedOpenShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_OrientedOpenShell { - StepShape_OrientedOpenShell* _get_reference() { - return (StepShape_OrientedOpenShell*)$self->Access(); - } -}; - -%extend Handle_StepShape_OrientedOpenShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_OrientedOpenShell) %extend StepShape_OrientedOpenShell { %pythoncode { @@ -10663,51 +6353,7 @@ class StepShape_SeamEdge : public StepShape_OrientedEdge { }; -%extend StepShape_SeamEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepShape_SeamEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepShape_SeamEdge::Handle_StepShape_SeamEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepShape_SeamEdge; -class Handle_StepShape_SeamEdge : public Handle_StepShape_OrientedEdge { - - public: - // constructors - Handle_StepShape_SeamEdge(); - Handle_StepShape_SeamEdge(const Handle_StepShape_SeamEdge &aHandle); - Handle_StepShape_SeamEdge(const StepShape_SeamEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepShape_SeamEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepShape_SeamEdge { - StepShape_SeamEdge* _get_reference() { - return (StepShape_SeamEdge*)$self->Access(); - } -}; - -%extend Handle_StepShape_SeamEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepShape_SeamEdge) %extend StepShape_SeamEdge { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepToGeom.i b/src/SWIG_files/wrapper/StepToGeom.i index bd3de8f2a..922ff1ebd 100644 --- a/src/SWIG_files/wrapper/StepToGeom.i +++ b/src/SWIG_files/wrapper/StepToGeom.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STEPTOGEOMDOCSTRING -"No docstring provided." +"- Purpose: Creation des entites geometriques de Geom a partir du schema +StepGeom (Part42, geometric) +" %enddef %module (package="OCC.Core", docstring=STEPTOGEOMDOCSTRING) StepToGeom @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepToGeom_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + class StepToGeom_MakeAxis1Placement { public: %feature("compactdefaultargs") Convert; diff --git a/src/SWIG_files/wrapper/StepToGeom_headers.i b/src/SWIG_files/wrapper/StepToGeom_headers.i index 510458725..f97be8988 100644 --- a/src/SWIG_files/wrapper/StepToGeom_headers.i +++ b/src/SWIG_files/wrapper/StepToGeom_headers.i @@ -550,6 +550,142 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/StepToTopoDS.i b/src/SWIG_files/wrapper/StepToTopoDS.i index ce3b02745..94f8dfedd 100644 --- a/src/SWIG_files/wrapper/StepToTopoDS.i +++ b/src/SWIG_files/wrapper/StepToTopoDS.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define STEPTOTOPODSDOCSTRING -"No docstring provided." +"- Purpose: This package implements the mapping between AP214 +Shape representation and CAS.CAD Shape Representation. +The source schema is Part42 (which is included in AP214) +" %enddef %module (package="OCC.Core", docstring=STEPTOTOPODSDOCSTRING) StepToTopoDS @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepToTopoDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -108,6 +97,12 @@ enum StepToTopoDS_TranslateVertexError { /* end public enums declaration */ +%wrap_handle(StepToTopoDS_DataMapNodeOfDataMapOfRI) +%wrap_handle(StepToTopoDS_DataMapNodeOfDataMapOfRINames) +%wrap_handle(StepToTopoDS_DataMapNodeOfDataMapOfTRI) +%wrap_handle(StepToTopoDS_DataMapNodeOfPointEdgeMap) +%wrap_handle(StepToTopoDS_DataMapNodeOfPointVertexMap) + %rename(steptotopods) StepToTopoDS; class StepToTopoDS { public: @@ -396,51 +391,7 @@ class StepToTopoDS_DataMapNodeOfDataMapOfRI : public TCollection_MapNode { }; -%extend StepToTopoDS_DataMapNodeOfDataMapOfRI { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI::Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI; -class Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI(); - Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI(const Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI &aHandle); - Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI(const StepToTopoDS_DataMapNodeOfDataMapOfRI *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI { - StepToTopoDS_DataMapNodeOfDataMapOfRI* _get_reference() { - return (StepToTopoDS_DataMapNodeOfDataMapOfRI*)$self->Access(); - } -}; - -%extend Handle_StepToTopoDS_DataMapNodeOfDataMapOfRI { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepToTopoDS_DataMapNodeOfDataMapOfRI) %extend StepToTopoDS_DataMapNodeOfDataMapOfRI { %pythoncode { @@ -471,51 +422,7 @@ class StepToTopoDS_DataMapNodeOfDataMapOfRINames : public TCollection_MapNode { }; -%extend StepToTopoDS_DataMapNodeOfDataMapOfRINames { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames::Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames; -class Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames(); - Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames(const Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames &aHandle); - Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames(const StepToTopoDS_DataMapNodeOfDataMapOfRINames *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames { - StepToTopoDS_DataMapNodeOfDataMapOfRINames* _get_reference() { - return (StepToTopoDS_DataMapNodeOfDataMapOfRINames*)$self->Access(); - } -}; - -%extend Handle_StepToTopoDS_DataMapNodeOfDataMapOfRINames { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepToTopoDS_DataMapNodeOfDataMapOfRINames) %extend StepToTopoDS_DataMapNodeOfDataMapOfRINames { %pythoncode { @@ -546,51 +453,7 @@ class StepToTopoDS_DataMapNodeOfDataMapOfTRI : public TCollection_MapNode { }; -%extend StepToTopoDS_DataMapNodeOfDataMapOfTRI { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI::Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI; -class Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI(); - Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI(const Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI &aHandle); - Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI(const StepToTopoDS_DataMapNodeOfDataMapOfTRI *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI { - StepToTopoDS_DataMapNodeOfDataMapOfTRI* _get_reference() { - return (StepToTopoDS_DataMapNodeOfDataMapOfTRI*)$self->Access(); - } -}; - -%extend Handle_StepToTopoDS_DataMapNodeOfDataMapOfTRI { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepToTopoDS_DataMapNodeOfDataMapOfTRI) %extend StepToTopoDS_DataMapNodeOfDataMapOfTRI { %pythoncode { @@ -621,51 +484,7 @@ class StepToTopoDS_DataMapNodeOfPointEdgeMap : public TCollection_MapNode { }; -%extend StepToTopoDS_DataMapNodeOfPointEdgeMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap::Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap; -class Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap(); - Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap(const Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap &aHandle); - Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap(const StepToTopoDS_DataMapNodeOfPointEdgeMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap { - StepToTopoDS_DataMapNodeOfPointEdgeMap* _get_reference() { - return (StepToTopoDS_DataMapNodeOfPointEdgeMap*)$self->Access(); - } -}; - -%extend Handle_StepToTopoDS_DataMapNodeOfPointEdgeMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepToTopoDS_DataMapNodeOfPointEdgeMap) %extend StepToTopoDS_DataMapNodeOfPointEdgeMap { %pythoncode { @@ -696,51 +515,7 @@ class StepToTopoDS_DataMapNodeOfPointVertexMap : public TCollection_MapNode { }; -%extend StepToTopoDS_DataMapNodeOfPointVertexMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepToTopoDS_DataMapNodeOfPointVertexMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepToTopoDS_DataMapNodeOfPointVertexMap::Handle_StepToTopoDS_DataMapNodeOfPointVertexMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepToTopoDS_DataMapNodeOfPointVertexMap; -class Handle_StepToTopoDS_DataMapNodeOfPointVertexMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_StepToTopoDS_DataMapNodeOfPointVertexMap(); - Handle_StepToTopoDS_DataMapNodeOfPointVertexMap(const Handle_StepToTopoDS_DataMapNodeOfPointVertexMap &aHandle); - Handle_StepToTopoDS_DataMapNodeOfPointVertexMap(const StepToTopoDS_DataMapNodeOfPointVertexMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepToTopoDS_DataMapNodeOfPointVertexMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepToTopoDS_DataMapNodeOfPointVertexMap { - StepToTopoDS_DataMapNodeOfPointVertexMap* _get_reference() { - return (StepToTopoDS_DataMapNodeOfPointVertexMap*)$self->Access(); - } -}; - -%extend Handle_StepToTopoDS_DataMapNodeOfPointVertexMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepToTopoDS_DataMapNodeOfPointVertexMap) %extend StepToTopoDS_DataMapNodeOfPointVertexMap { %pythoncode { diff --git a/src/SWIG_files/wrapper/StepToTopoDS_headers.i b/src/SWIG_files/wrapper/StepToTopoDS_headers.i index 80f87b89a..219dbfbf0 100644 --- a/src/SWIG_files/wrapper/StepToTopoDS_headers.i +++ b/src/SWIG_files/wrapper/StepToTopoDS_headers.i @@ -529,6 +529,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -856,6 +900,12 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include #include #include #include @@ -1104,5 +1154,6 @@ along with pythonOCC. If not, see . %import TopoDS.i %import StepShape.i %import Geom.i +%import Transfer.i %import Geom2d.i %import gp.i diff --git a/src/SWIG_files/wrapper/StepVisual.i b/src/SWIG_files/wrapper/StepVisual.i index 40a5f90d2..26a3544b7 100644 --- a/src/SWIG_files/wrapper/StepVisual.i +++ b/src/SWIG_files/wrapper/StepVisual.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STEPVISUALDOCSTRING -"No docstring provided." +"Collects definitions of STEP entities for visual +presentations from Part 46 of ISO10303 +" %enddef %module (package="OCC.Core", docstring=STEPVISUALDOCSTRING) StepVisual @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StepVisual_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -87,6 +75,87 @@ enum StepVisual_MarkerType { /* end public enums declaration */ +%wrap_handle(StepVisual_AnnotationText) +%wrap_handle(StepVisual_AreaInSet) +%wrap_handle(StepVisual_CameraImage) +%wrap_handle(StepVisual_CameraModel) +%wrap_handle(StepVisual_CameraUsage) +%wrap_handle(StepVisual_Colour) +%wrap_handle(StepVisual_CompositeText) +%wrap_handle(StepVisual_CurveStyle) +%wrap_handle(StepVisual_CurveStyleFont) +%wrap_handle(StepVisual_CurveStyleFontPattern) +%wrap_handle(StepVisual_DraughtingModel) +%wrap_handle(StepVisual_ExternallyDefinedCurveFont) +%wrap_handle(StepVisual_ExternallyDefinedTextFont) +%wrap_handle(StepVisual_FillAreaStyle) +%wrap_handle(StepVisual_FillAreaStyleColour) +%wrap_handle(StepVisual_HArray1OfBoxCharacteristicSelect) +%wrap_handle(StepVisual_HArray1OfCurveStyleFontPattern) +%wrap_handle(StepVisual_HArray1OfDirectionCountSelect) +%wrap_handle(StepVisual_HArray1OfFillStyleSelect) +%wrap_handle(StepVisual_HArray1OfInvisibleItem) +%wrap_handle(StepVisual_HArray1OfLayeredItem) +%wrap_handle(StepVisual_HArray1OfPresentationStyleAssignment) +%wrap_handle(StepVisual_HArray1OfPresentationStyleSelect) +%wrap_handle(StepVisual_HArray1OfStyleContextSelect) +%wrap_handle(StepVisual_HArray1OfSurfaceStyleElementSelect) +%wrap_handle(StepVisual_HArray1OfTextOrCharacter) +%wrap_handle(StepVisual_Invisibility) +%wrap_handle(StepVisual_MarkerMember) +%wrap_handle(StepVisual_PlanarExtent) +%wrap_handle(StepVisual_PointStyle) +%wrap_handle(StepVisual_PreDefinedItem) +%wrap_handle(StepVisual_PresentationLayerAssignment) +%wrap_handle(StepVisual_PresentationLayerUsage) +%wrap_handle(StepVisual_PresentationRepresentation) +%wrap_handle(StepVisual_PresentationSet) +%wrap_handle(StepVisual_PresentationSize) +%wrap_handle(StepVisual_PresentationStyleAssignment) +%wrap_handle(StepVisual_PresentedItem) +%wrap_handle(StepVisual_PresentedItemRepresentation) +%wrap_handle(StepVisual_StyledItem) +%wrap_handle(StepVisual_SurfaceSideStyle) +%wrap_handle(StepVisual_SurfaceStyleBoundary) +%wrap_handle(StepVisual_SurfaceStyleControlGrid) +%wrap_handle(StepVisual_SurfaceStyleFillArea) +%wrap_handle(StepVisual_SurfaceStyleParameterLine) +%wrap_handle(StepVisual_SurfaceStyleSegmentationCurve) +%wrap_handle(StepVisual_SurfaceStyleSilhouette) +%wrap_handle(StepVisual_SurfaceStyleUsage) +%wrap_handle(StepVisual_Template) +%wrap_handle(StepVisual_TemplateInstance) +%wrap_handle(StepVisual_TextLiteral) +%wrap_handle(StepVisual_TextStyle) +%wrap_handle(StepVisual_TextStyleForDefinedFont) +%wrap_handle(StepVisual_ViewVolume) +%wrap_handle(StepVisual_AnnotationOccurrence) +%wrap_handle(StepVisual_BackgroundColour) +%wrap_handle(StepVisual_CameraImage2dWithScale) +%wrap_handle(StepVisual_CameraImage3dWithScale) +%wrap_handle(StepVisual_CameraModelD2) +%wrap_handle(StepVisual_CameraModelD3) +%wrap_handle(StepVisual_ColourSpecification) +%wrap_handle(StepVisual_CompositeTextWithExtent) +%wrap_handle(StepVisual_ContextDependentInvisibility) +%wrap_handle(StepVisual_MechanicalDesignGeometricPresentationRepresentation) +%wrap_handle(StepVisual_OverRidingStyledItem) +%wrap_handle(StepVisual_PlanarBox) +%wrap_handle(StepVisual_PreDefinedColour) +%wrap_handle(StepVisual_PreDefinedCurveFont) +%wrap_handle(StepVisual_PreDefinedTextFont) +%wrap_handle(StepVisual_PresentationArea) +%wrap_handle(StepVisual_PresentationStyleByContext) +%wrap_handle(StepVisual_PresentationView) +%wrap_handle(StepVisual_TextStyleWithBoxCharacteristics) +%wrap_handle(StepVisual_AnnotationTextOccurrence) +%wrap_handle(StepVisual_ColourRgb) +%wrap_handle(StepVisual_ContextDependentOverRidingStyledItem) +%wrap_handle(StepVisual_DraughtingAnnotationOccurrence) +%wrap_handle(StepVisual_DraughtingPreDefinedColour) +%wrap_handle(StepVisual_DraughtingPreDefinedCurveFont) +%wrap_handle(StepVisual_MechanicalDesignGeometricPresentationArea) + %nodefaultctor StepVisual_AnnotationText; class StepVisual_AnnotationText : public StepRepr_MappedItem { public: @@ -99,51 +168,7 @@ class StepVisual_AnnotationText : public StepRepr_MappedItem { }; -%extend StepVisual_AnnotationText { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_AnnotationText(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_AnnotationText::Handle_StepVisual_AnnotationText %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_AnnotationText; -class Handle_StepVisual_AnnotationText : public Handle_StepRepr_MappedItem { - - public: - // constructors - Handle_StepVisual_AnnotationText(); - Handle_StepVisual_AnnotationText(const Handle_StepVisual_AnnotationText &aHandle); - Handle_StepVisual_AnnotationText(const StepVisual_AnnotationText *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_AnnotationText DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_AnnotationText { - StepVisual_AnnotationText* _get_reference() { - return (StepVisual_AnnotationText*)$self->Access(); - } -}; - -%extend Handle_StepVisual_AnnotationText { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_AnnotationText) %extend StepVisual_AnnotationText { %pythoncode { @@ -190,51 +215,7 @@ class StepVisual_AreaInSet : public MMgt_TShared { }; -%extend StepVisual_AreaInSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_AreaInSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_AreaInSet::Handle_StepVisual_AreaInSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_AreaInSet; -class Handle_StepVisual_AreaInSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_AreaInSet(); - Handle_StepVisual_AreaInSet(const Handle_StepVisual_AreaInSet &aHandle); - Handle_StepVisual_AreaInSet(const StepVisual_AreaInSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_AreaInSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_AreaInSet { - StepVisual_AreaInSet* _get_reference() { - return (StepVisual_AreaInSet*)$self->Access(); - } -}; - -%extend Handle_StepVisual_AreaInSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_AreaInSet) %extend StepVisual_AreaInSet { %pythoncode { @@ -1282,51 +1263,7 @@ class StepVisual_CameraImage : public StepRepr_MappedItem { }; -%extend StepVisual_CameraImage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraImage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraImage::Handle_StepVisual_CameraImage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraImage; -class Handle_StepVisual_CameraImage : public Handle_StepRepr_MappedItem { - - public: - // constructors - Handle_StepVisual_CameraImage(); - Handle_StepVisual_CameraImage(const Handle_StepVisual_CameraImage &aHandle); - Handle_StepVisual_CameraImage(const StepVisual_CameraImage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraImage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraImage { - StepVisual_CameraImage* _get_reference() { - return (StepVisual_CameraImage*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraImage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CameraImage) %extend StepVisual_CameraImage { %pythoncode { @@ -1345,51 +1282,7 @@ class StepVisual_CameraModel : public StepGeom_GeometricRepresentationItem { }; -%extend StepVisual_CameraModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraModel::Handle_StepVisual_CameraModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraModel; -class Handle_StepVisual_CameraModel : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepVisual_CameraModel(); - Handle_StepVisual_CameraModel(const Handle_StepVisual_CameraModel &aHandle); - Handle_StepVisual_CameraModel(const StepVisual_CameraModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraModel { - StepVisual_CameraModel* _get_reference() { - return (StepVisual_CameraModel*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CameraModel) %extend StepVisual_CameraModel { %pythoncode { @@ -1408,51 +1301,7 @@ class StepVisual_CameraUsage : public StepRepr_RepresentationMap { }; -%extend StepVisual_CameraUsage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraUsage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraUsage::Handle_StepVisual_CameraUsage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraUsage; -class Handle_StepVisual_CameraUsage : public Handle_StepRepr_RepresentationMap { - - public: - // constructors - Handle_StepVisual_CameraUsage(); - Handle_StepVisual_CameraUsage(const Handle_StepVisual_CameraUsage &aHandle); - Handle_StepVisual_CameraUsage(const StepVisual_CameraUsage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraUsage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraUsage { - StepVisual_CameraUsage* _get_reference() { - return (StepVisual_CameraUsage*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraUsage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CameraUsage) %extend StepVisual_CameraUsage { %pythoncode { @@ -1471,51 +1320,7 @@ class StepVisual_Colour : public MMgt_TShared { }; -%extend StepVisual_Colour { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_Colour(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_Colour::Handle_StepVisual_Colour %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_Colour; -class Handle_StepVisual_Colour : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_Colour(); - Handle_StepVisual_Colour(const Handle_StepVisual_Colour &aHandle); - Handle_StepVisual_Colour(const StepVisual_Colour *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_Colour DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_Colour { - StepVisual_Colour* _get_reference() { - return (StepVisual_Colour*)$self->Access(); - } -}; - -%extend Handle_StepVisual_Colour { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_Colour) %extend StepVisual_Colour { %pythoncode { @@ -1568,51 +1373,7 @@ class StepVisual_CompositeText : public StepGeom_GeometricRepresentationItem { }; -%extend StepVisual_CompositeText { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CompositeText(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CompositeText::Handle_StepVisual_CompositeText %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CompositeText; -class Handle_StepVisual_CompositeText : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepVisual_CompositeText(); - Handle_StepVisual_CompositeText(const Handle_StepVisual_CompositeText &aHandle); - Handle_StepVisual_CompositeText(const StepVisual_CompositeText *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CompositeText DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CompositeText { - StepVisual_CompositeText* _get_reference() { - return (StepVisual_CompositeText*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CompositeText { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CompositeText) %extend StepVisual_CompositeText { %pythoncode { @@ -1683,51 +1444,7 @@ class StepVisual_CurveStyle : public MMgt_TShared { }; -%extend StepVisual_CurveStyle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CurveStyle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CurveStyle::Handle_StepVisual_CurveStyle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CurveStyle; -class Handle_StepVisual_CurveStyle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_CurveStyle(); - Handle_StepVisual_CurveStyle(const Handle_StepVisual_CurveStyle &aHandle); - Handle_StepVisual_CurveStyle(const StepVisual_CurveStyle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CurveStyle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CurveStyle { - StepVisual_CurveStyle* _get_reference() { - return (StepVisual_CurveStyle*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CurveStyle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CurveStyle) %extend StepVisual_CurveStyle { %pythoncode { @@ -1784,51 +1501,7 @@ class StepVisual_CurveStyleFont : public MMgt_TShared { }; -%extend StepVisual_CurveStyleFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CurveStyleFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CurveStyleFont::Handle_StepVisual_CurveStyleFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CurveStyleFont; -class Handle_StepVisual_CurveStyleFont : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_CurveStyleFont(); - Handle_StepVisual_CurveStyleFont(const Handle_StepVisual_CurveStyleFont &aHandle); - Handle_StepVisual_CurveStyleFont(const StepVisual_CurveStyleFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CurveStyleFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CurveStyleFont { - StepVisual_CurveStyleFont* _get_reference() { - return (StepVisual_CurveStyleFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CurveStyleFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CurveStyleFont) %extend StepVisual_CurveStyleFont { %pythoncode { @@ -1875,51 +1548,7 @@ class StepVisual_CurveStyleFontPattern : public MMgt_TShared { }; -%extend StepVisual_CurveStyleFontPattern { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CurveStyleFontPattern(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CurveStyleFontPattern::Handle_StepVisual_CurveStyleFontPattern %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CurveStyleFontPattern; -class Handle_StepVisual_CurveStyleFontPattern : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_CurveStyleFontPattern(); - Handle_StepVisual_CurveStyleFontPattern(const Handle_StepVisual_CurveStyleFontPattern &aHandle); - Handle_StepVisual_CurveStyleFontPattern(const StepVisual_CurveStyleFontPattern *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CurveStyleFontPattern DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CurveStyleFontPattern { - StepVisual_CurveStyleFontPattern* _get_reference() { - return (StepVisual_CurveStyleFontPattern*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CurveStyleFontPattern { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CurveStyleFontPattern) %extend StepVisual_CurveStyleFontPattern { %pythoncode { @@ -2026,51 +1655,7 @@ class StepVisual_DraughtingModel : public StepRepr_Representation { }; -%extend StepVisual_DraughtingModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_DraughtingModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_DraughtingModel::Handle_StepVisual_DraughtingModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_DraughtingModel; -class Handle_StepVisual_DraughtingModel : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepVisual_DraughtingModel(); - Handle_StepVisual_DraughtingModel(const Handle_StepVisual_DraughtingModel &aHandle); - Handle_StepVisual_DraughtingModel(const StepVisual_DraughtingModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_DraughtingModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_DraughtingModel { - StepVisual_DraughtingModel* _get_reference() { - return (StepVisual_DraughtingModel*)$self->Access(); - } -}; - -%extend Handle_StepVisual_DraughtingModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_DraughtingModel) %extend StepVisual_DraughtingModel { %pythoncode { @@ -2089,51 +1674,7 @@ class StepVisual_ExternallyDefinedCurveFont : public StepBasic_ExternallyDefined }; -%extend StepVisual_ExternallyDefinedCurveFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ExternallyDefinedCurveFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ExternallyDefinedCurveFont::Handle_StepVisual_ExternallyDefinedCurveFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ExternallyDefinedCurveFont; -class Handle_StepVisual_ExternallyDefinedCurveFont : public Handle_StepBasic_ExternallyDefinedItem { - - public: - // constructors - Handle_StepVisual_ExternallyDefinedCurveFont(); - Handle_StepVisual_ExternallyDefinedCurveFont(const Handle_StepVisual_ExternallyDefinedCurveFont &aHandle); - Handle_StepVisual_ExternallyDefinedCurveFont(const StepVisual_ExternallyDefinedCurveFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ExternallyDefinedCurveFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ExternallyDefinedCurveFont { - StepVisual_ExternallyDefinedCurveFont* _get_reference() { - return (StepVisual_ExternallyDefinedCurveFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ExternallyDefinedCurveFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ExternallyDefinedCurveFont) %extend StepVisual_ExternallyDefinedCurveFont { %pythoncode { @@ -2152,51 +1693,7 @@ class StepVisual_ExternallyDefinedTextFont : public StepBasic_ExternallyDefinedI }; -%extend StepVisual_ExternallyDefinedTextFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ExternallyDefinedTextFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ExternallyDefinedTextFont::Handle_StepVisual_ExternallyDefinedTextFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ExternallyDefinedTextFont; -class Handle_StepVisual_ExternallyDefinedTextFont : public Handle_StepBasic_ExternallyDefinedItem { - - public: - // constructors - Handle_StepVisual_ExternallyDefinedTextFont(); - Handle_StepVisual_ExternallyDefinedTextFont(const Handle_StepVisual_ExternallyDefinedTextFont &aHandle); - Handle_StepVisual_ExternallyDefinedTextFont(const StepVisual_ExternallyDefinedTextFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ExternallyDefinedTextFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ExternallyDefinedTextFont { - StepVisual_ExternallyDefinedTextFont* _get_reference() { - return (StepVisual_ExternallyDefinedTextFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ExternallyDefinedTextFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ExternallyDefinedTextFont) %extend StepVisual_ExternallyDefinedTextFont { %pythoncode { @@ -2253,51 +1750,7 @@ class StepVisual_FillAreaStyle : public MMgt_TShared { }; -%extend StepVisual_FillAreaStyle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_FillAreaStyle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_FillAreaStyle::Handle_StepVisual_FillAreaStyle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_FillAreaStyle; -class Handle_StepVisual_FillAreaStyle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_FillAreaStyle(); - Handle_StepVisual_FillAreaStyle(const Handle_StepVisual_FillAreaStyle &aHandle); - Handle_StepVisual_FillAreaStyle(const StepVisual_FillAreaStyle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_FillAreaStyle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_FillAreaStyle { - StepVisual_FillAreaStyle* _get_reference() { - return (StepVisual_FillAreaStyle*)$self->Access(); - } -}; - -%extend Handle_StepVisual_FillAreaStyle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_FillAreaStyle) %extend StepVisual_FillAreaStyle { %pythoncode { @@ -2344,51 +1797,7 @@ class StepVisual_FillAreaStyleColour : public MMgt_TShared { }; -%extend StepVisual_FillAreaStyleColour { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_FillAreaStyleColour(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_FillAreaStyleColour::Handle_StepVisual_FillAreaStyleColour %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_FillAreaStyleColour; -class Handle_StepVisual_FillAreaStyleColour : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_FillAreaStyleColour(); - Handle_StepVisual_FillAreaStyleColour(const Handle_StepVisual_FillAreaStyleColour &aHandle); - Handle_StepVisual_FillAreaStyleColour(const StepVisual_FillAreaStyleColour *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_FillAreaStyleColour DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_FillAreaStyleColour { - StepVisual_FillAreaStyleColour* _get_reference() { - return (StepVisual_FillAreaStyleColour*)$self->Access(); - } -}; - -%extend Handle_StepVisual_FillAreaStyleColour { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_FillAreaStyleColour) %extend StepVisual_FillAreaStyleColour { %pythoncode { @@ -2533,51 +1942,7 @@ class StepVisual_HArray1OfBoxCharacteristicSelect : public MMgt_TShared { }; -%extend StepVisual_HArray1OfBoxCharacteristicSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfBoxCharacteristicSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfBoxCharacteristicSelect::Handle_StepVisual_HArray1OfBoxCharacteristicSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfBoxCharacteristicSelect; -class Handle_StepVisual_HArray1OfBoxCharacteristicSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfBoxCharacteristicSelect(); - Handle_StepVisual_HArray1OfBoxCharacteristicSelect(const Handle_StepVisual_HArray1OfBoxCharacteristicSelect &aHandle); - Handle_StepVisual_HArray1OfBoxCharacteristicSelect(const StepVisual_HArray1OfBoxCharacteristicSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfBoxCharacteristicSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfBoxCharacteristicSelect { - StepVisual_HArray1OfBoxCharacteristicSelect* _get_reference() { - return (StepVisual_HArray1OfBoxCharacteristicSelect*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfBoxCharacteristicSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfBoxCharacteristicSelect) %extend StepVisual_HArray1OfBoxCharacteristicSelect { %pythoncode { @@ -2654,51 +2019,7 @@ class StepVisual_HArray1OfCurveStyleFontPattern : public MMgt_TShared { }; -%extend StepVisual_HArray1OfCurveStyleFontPattern { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfCurveStyleFontPattern(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfCurveStyleFontPattern::Handle_StepVisual_HArray1OfCurveStyleFontPattern %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfCurveStyleFontPattern; -class Handle_StepVisual_HArray1OfCurveStyleFontPattern : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfCurveStyleFontPattern(); - Handle_StepVisual_HArray1OfCurveStyleFontPattern(const Handle_StepVisual_HArray1OfCurveStyleFontPattern &aHandle); - Handle_StepVisual_HArray1OfCurveStyleFontPattern(const StepVisual_HArray1OfCurveStyleFontPattern *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfCurveStyleFontPattern DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfCurveStyleFontPattern { - StepVisual_HArray1OfCurveStyleFontPattern* _get_reference() { - return (StepVisual_HArray1OfCurveStyleFontPattern*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfCurveStyleFontPattern { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfCurveStyleFontPattern) %extend StepVisual_HArray1OfCurveStyleFontPattern { %pythoncode { @@ -2775,51 +2096,7 @@ class StepVisual_HArray1OfDirectionCountSelect : public MMgt_TShared { }; -%extend StepVisual_HArray1OfDirectionCountSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfDirectionCountSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfDirectionCountSelect::Handle_StepVisual_HArray1OfDirectionCountSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfDirectionCountSelect; -class Handle_StepVisual_HArray1OfDirectionCountSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfDirectionCountSelect(); - Handle_StepVisual_HArray1OfDirectionCountSelect(const Handle_StepVisual_HArray1OfDirectionCountSelect &aHandle); - Handle_StepVisual_HArray1OfDirectionCountSelect(const StepVisual_HArray1OfDirectionCountSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfDirectionCountSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfDirectionCountSelect { - StepVisual_HArray1OfDirectionCountSelect* _get_reference() { - return (StepVisual_HArray1OfDirectionCountSelect*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfDirectionCountSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfDirectionCountSelect) %extend StepVisual_HArray1OfDirectionCountSelect { %pythoncode { @@ -2896,51 +2173,7 @@ class StepVisual_HArray1OfFillStyleSelect : public MMgt_TShared { }; -%extend StepVisual_HArray1OfFillStyleSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfFillStyleSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfFillStyleSelect::Handle_StepVisual_HArray1OfFillStyleSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfFillStyleSelect; -class Handle_StepVisual_HArray1OfFillStyleSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfFillStyleSelect(); - Handle_StepVisual_HArray1OfFillStyleSelect(const Handle_StepVisual_HArray1OfFillStyleSelect &aHandle); - Handle_StepVisual_HArray1OfFillStyleSelect(const StepVisual_HArray1OfFillStyleSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfFillStyleSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfFillStyleSelect { - StepVisual_HArray1OfFillStyleSelect* _get_reference() { - return (StepVisual_HArray1OfFillStyleSelect*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfFillStyleSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfFillStyleSelect) %extend StepVisual_HArray1OfFillStyleSelect { %pythoncode { @@ -3017,55 +2250,11 @@ class StepVisual_HArray1OfInvisibleItem : public MMgt_TShared { }; +%make_alias(StepVisual_HArray1OfInvisibleItem) + %extend StepVisual_HArray1OfInvisibleItem { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfInvisibleItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfInvisibleItem::Handle_StepVisual_HArray1OfInvisibleItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfInvisibleItem; -class Handle_StepVisual_HArray1OfInvisibleItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfInvisibleItem(); - Handle_StepVisual_HArray1OfInvisibleItem(const Handle_StepVisual_HArray1OfInvisibleItem &aHandle); - Handle_StepVisual_HArray1OfInvisibleItem(const StepVisual_HArray1OfInvisibleItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfInvisibleItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfInvisibleItem { - StepVisual_HArray1OfInvisibleItem* _get_reference() { - return (StepVisual_HArray1OfInvisibleItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfInvisibleItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepVisual_HArray1OfInvisibleItem { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepVisual_HArray1OfLayeredItem; @@ -3138,51 +2327,7 @@ class StepVisual_HArray1OfLayeredItem : public MMgt_TShared { }; -%extend StepVisual_HArray1OfLayeredItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfLayeredItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfLayeredItem::Handle_StepVisual_HArray1OfLayeredItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfLayeredItem; -class Handle_StepVisual_HArray1OfLayeredItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfLayeredItem(); - Handle_StepVisual_HArray1OfLayeredItem(const Handle_StepVisual_HArray1OfLayeredItem &aHandle); - Handle_StepVisual_HArray1OfLayeredItem(const StepVisual_HArray1OfLayeredItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfLayeredItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfLayeredItem { - StepVisual_HArray1OfLayeredItem* _get_reference() { - return (StepVisual_HArray1OfLayeredItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfLayeredItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfLayeredItem) %extend StepVisual_HArray1OfLayeredItem { %pythoncode { @@ -3259,51 +2404,7 @@ class StepVisual_HArray1OfPresentationStyleAssignment : public MMgt_TShared { }; -%extend StepVisual_HArray1OfPresentationStyleAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfPresentationStyleAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfPresentationStyleAssignment::Handle_StepVisual_HArray1OfPresentationStyleAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfPresentationStyleAssignment; -class Handle_StepVisual_HArray1OfPresentationStyleAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfPresentationStyleAssignment(); - Handle_StepVisual_HArray1OfPresentationStyleAssignment(const Handle_StepVisual_HArray1OfPresentationStyleAssignment &aHandle); - Handle_StepVisual_HArray1OfPresentationStyleAssignment(const StepVisual_HArray1OfPresentationStyleAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfPresentationStyleAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfPresentationStyleAssignment { - StepVisual_HArray1OfPresentationStyleAssignment* _get_reference() { - return (StepVisual_HArray1OfPresentationStyleAssignment*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfPresentationStyleAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfPresentationStyleAssignment) %extend StepVisual_HArray1OfPresentationStyleAssignment { %pythoncode { @@ -3380,51 +2481,7 @@ class StepVisual_HArray1OfPresentationStyleSelect : public MMgt_TShared { }; -%extend StepVisual_HArray1OfPresentationStyleSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfPresentationStyleSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfPresentationStyleSelect::Handle_StepVisual_HArray1OfPresentationStyleSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfPresentationStyleSelect; -class Handle_StepVisual_HArray1OfPresentationStyleSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfPresentationStyleSelect(); - Handle_StepVisual_HArray1OfPresentationStyleSelect(const Handle_StepVisual_HArray1OfPresentationStyleSelect &aHandle); - Handle_StepVisual_HArray1OfPresentationStyleSelect(const StepVisual_HArray1OfPresentationStyleSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfPresentationStyleSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfPresentationStyleSelect { - StepVisual_HArray1OfPresentationStyleSelect* _get_reference() { - return (StepVisual_HArray1OfPresentationStyleSelect*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfPresentationStyleSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfPresentationStyleSelect) %extend StepVisual_HArray1OfPresentationStyleSelect { %pythoncode { @@ -3501,51 +2558,7 @@ class StepVisual_HArray1OfStyleContextSelect : public MMgt_TShared { }; -%extend StepVisual_HArray1OfStyleContextSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfStyleContextSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfStyleContextSelect::Handle_StepVisual_HArray1OfStyleContextSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfStyleContextSelect; -class Handle_StepVisual_HArray1OfStyleContextSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfStyleContextSelect(); - Handle_StepVisual_HArray1OfStyleContextSelect(const Handle_StepVisual_HArray1OfStyleContextSelect &aHandle); - Handle_StepVisual_HArray1OfStyleContextSelect(const StepVisual_HArray1OfStyleContextSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfStyleContextSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfStyleContextSelect { - StepVisual_HArray1OfStyleContextSelect* _get_reference() { - return (StepVisual_HArray1OfStyleContextSelect*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfStyleContextSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfStyleContextSelect) %extend StepVisual_HArray1OfStyleContextSelect { %pythoncode { @@ -3622,51 +2635,7 @@ class StepVisual_HArray1OfSurfaceStyleElementSelect : public MMgt_TShared { }; -%extend StepVisual_HArray1OfSurfaceStyleElementSelect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfSurfaceStyleElementSelect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfSurfaceStyleElementSelect::Handle_StepVisual_HArray1OfSurfaceStyleElementSelect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfSurfaceStyleElementSelect; -class Handle_StepVisual_HArray1OfSurfaceStyleElementSelect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfSurfaceStyleElementSelect(); - Handle_StepVisual_HArray1OfSurfaceStyleElementSelect(const Handle_StepVisual_HArray1OfSurfaceStyleElementSelect &aHandle); - Handle_StepVisual_HArray1OfSurfaceStyleElementSelect(const StepVisual_HArray1OfSurfaceStyleElementSelect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfSurfaceStyleElementSelect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfSurfaceStyleElementSelect { - StepVisual_HArray1OfSurfaceStyleElementSelect* _get_reference() { - return (StepVisual_HArray1OfSurfaceStyleElementSelect*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfSurfaceStyleElementSelect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfSurfaceStyleElementSelect) %extend StepVisual_HArray1OfSurfaceStyleElementSelect { %pythoncode { @@ -3743,51 +2712,7 @@ class StepVisual_HArray1OfTextOrCharacter : public MMgt_TShared { }; -%extend StepVisual_HArray1OfTextOrCharacter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_HArray1OfTextOrCharacter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_HArray1OfTextOrCharacter::Handle_StepVisual_HArray1OfTextOrCharacter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_HArray1OfTextOrCharacter; -class Handle_StepVisual_HArray1OfTextOrCharacter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_HArray1OfTextOrCharacter(); - Handle_StepVisual_HArray1OfTextOrCharacter(const Handle_StepVisual_HArray1OfTextOrCharacter &aHandle); - Handle_StepVisual_HArray1OfTextOrCharacter(const StepVisual_HArray1OfTextOrCharacter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_HArray1OfTextOrCharacter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_HArray1OfTextOrCharacter { - StepVisual_HArray1OfTextOrCharacter* _get_reference() { - return (StepVisual_HArray1OfTextOrCharacter*)$self->Access(); - } -}; - -%extend Handle_StepVisual_HArray1OfTextOrCharacter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_HArray1OfTextOrCharacter) %extend StepVisual_HArray1OfTextOrCharacter { %pythoncode { @@ -3832,51 +2757,7 @@ class StepVisual_Invisibility : public MMgt_TShared { }; -%extend StepVisual_Invisibility { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_Invisibility(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_Invisibility::Handle_StepVisual_Invisibility %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_Invisibility; -class Handle_StepVisual_Invisibility : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_Invisibility(); - Handle_StepVisual_Invisibility(const Handle_StepVisual_Invisibility &aHandle); - Handle_StepVisual_Invisibility(const StepVisual_Invisibility *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_Invisibility DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_Invisibility { - StepVisual_Invisibility* _get_reference() { - return (StepVisual_Invisibility*)$self->Access(); - } -}; - -%extend Handle_StepVisual_Invisibility { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_Invisibility) %extend StepVisual_Invisibility { %pythoncode { @@ -4046,51 +2927,7 @@ class StepVisual_MarkerMember : public StepData_SelectInt { }; -%extend StepVisual_MarkerMember { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_MarkerMember(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_MarkerMember::Handle_StepVisual_MarkerMember %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_MarkerMember; -class Handle_StepVisual_MarkerMember : public Handle_StepData_SelectInt { - - public: - // constructors - Handle_StepVisual_MarkerMember(); - Handle_StepVisual_MarkerMember(const Handle_StepVisual_MarkerMember &aHandle); - Handle_StepVisual_MarkerMember(const StepVisual_MarkerMember *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_MarkerMember DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_MarkerMember { - StepVisual_MarkerMember* _get_reference() { - return (StepVisual_MarkerMember*)$self->Access(); - } -}; - -%extend Handle_StepVisual_MarkerMember { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_MarkerMember) %extend StepVisual_MarkerMember { %pythoncode { @@ -4190,51 +3027,7 @@ class StepVisual_PlanarExtent : public StepGeom_GeometricRepresentationItem { }; -%extend StepVisual_PlanarExtent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PlanarExtent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PlanarExtent::Handle_StepVisual_PlanarExtent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PlanarExtent; -class Handle_StepVisual_PlanarExtent : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepVisual_PlanarExtent(); - Handle_StepVisual_PlanarExtent(const Handle_StepVisual_PlanarExtent &aHandle); - Handle_StepVisual_PlanarExtent(const StepVisual_PlanarExtent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PlanarExtent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PlanarExtent { - StepVisual_PlanarExtent* _get_reference() { - return (StepVisual_PlanarExtent*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PlanarExtent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PlanarExtent) %extend StepVisual_PlanarExtent { %pythoncode { @@ -4305,51 +3098,7 @@ class StepVisual_PointStyle : public MMgt_TShared { }; -%extend StepVisual_PointStyle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PointStyle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PointStyle::Handle_StepVisual_PointStyle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PointStyle; -class Handle_StepVisual_PointStyle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PointStyle(); - Handle_StepVisual_PointStyle(const Handle_StepVisual_PointStyle &aHandle); - Handle_StepVisual_PointStyle(const StepVisual_PointStyle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PointStyle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PointStyle { - StepVisual_PointStyle* _get_reference() { - return (StepVisual_PointStyle*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PointStyle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PointStyle) %extend StepVisual_PointStyle { %pythoncode { @@ -4384,51 +3133,7 @@ class StepVisual_PreDefinedItem : public MMgt_TShared { }; -%extend StepVisual_PreDefinedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PreDefinedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PreDefinedItem::Handle_StepVisual_PreDefinedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PreDefinedItem; -class Handle_StepVisual_PreDefinedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PreDefinedItem(); - Handle_StepVisual_PreDefinedItem(const Handle_StepVisual_PreDefinedItem &aHandle); - Handle_StepVisual_PreDefinedItem(const StepVisual_PreDefinedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PreDefinedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PreDefinedItem { - StepVisual_PreDefinedItem* _get_reference() { - return (StepVisual_PreDefinedItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PreDefinedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PreDefinedItem) %extend StepVisual_PreDefinedItem { %pythoncode { @@ -4497,51 +3202,7 @@ class StepVisual_PresentationLayerAssignment : public MMgt_TShared { }; -%extend StepVisual_PresentationLayerAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationLayerAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationLayerAssignment::Handle_StepVisual_PresentationLayerAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationLayerAssignment; -class Handle_StepVisual_PresentationLayerAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentationLayerAssignment(); - Handle_StepVisual_PresentationLayerAssignment(const Handle_StepVisual_PresentationLayerAssignment &aHandle); - Handle_StepVisual_PresentationLayerAssignment(const StepVisual_PresentationLayerAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationLayerAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationLayerAssignment { - StepVisual_PresentationLayerAssignment* _get_reference() { - return (StepVisual_PresentationLayerAssignment*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationLayerAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationLayerAssignment) %extend StepVisual_PresentationLayerAssignment { %pythoncode { @@ -4586,51 +3247,7 @@ class StepVisual_PresentationLayerUsage : public MMgt_TShared { }; -%extend StepVisual_PresentationLayerUsage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationLayerUsage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationLayerUsage::Handle_StepVisual_PresentationLayerUsage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationLayerUsage; -class Handle_StepVisual_PresentationLayerUsage : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentationLayerUsage(); - Handle_StepVisual_PresentationLayerUsage(const Handle_StepVisual_PresentationLayerUsage &aHandle); - Handle_StepVisual_PresentationLayerUsage(const StepVisual_PresentationLayerUsage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationLayerUsage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationLayerUsage { - StepVisual_PresentationLayerUsage* _get_reference() { - return (StepVisual_PresentationLayerUsage*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationLayerUsage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationLayerUsage) %extend StepVisual_PresentationLayerUsage { %pythoncode { @@ -4649,51 +3266,7 @@ class StepVisual_PresentationRepresentation : public StepRepr_Representation { }; -%extend StepVisual_PresentationRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationRepresentation::Handle_StepVisual_PresentationRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationRepresentation; -class Handle_StepVisual_PresentationRepresentation : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepVisual_PresentationRepresentation(); - Handle_StepVisual_PresentationRepresentation(const Handle_StepVisual_PresentationRepresentation &aHandle); - Handle_StepVisual_PresentationRepresentation(const StepVisual_PresentationRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationRepresentation { - StepVisual_PresentationRepresentation* _get_reference() { - return (StepVisual_PresentationRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationRepresentation) %extend StepVisual_PresentationRepresentation { %pythoncode { @@ -4749,51 +3322,7 @@ class StepVisual_PresentationSet : public MMgt_TShared { }; -%extend StepVisual_PresentationSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationSet::Handle_StepVisual_PresentationSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationSet; -class Handle_StepVisual_PresentationSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentationSet(); - Handle_StepVisual_PresentationSet(const Handle_StepVisual_PresentationSet &aHandle); - Handle_StepVisual_PresentationSet(const StepVisual_PresentationSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationSet { - StepVisual_PresentationSet* _get_reference() { - return (StepVisual_PresentationSet*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationSet) %extend StepVisual_PresentationSet { %pythoncode { @@ -4840,51 +3369,7 @@ class StepVisual_PresentationSize : public MMgt_TShared { }; -%extend StepVisual_PresentationSize { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationSize(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationSize::Handle_StepVisual_PresentationSize %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationSize; -class Handle_StepVisual_PresentationSize : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentationSize(); - Handle_StepVisual_PresentationSize(const Handle_StepVisual_PresentationSize &aHandle); - Handle_StepVisual_PresentationSize(const StepVisual_PresentationSize *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationSize DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationSize { - StepVisual_PresentationSize* _get_reference() { - return (StepVisual_PresentationSize*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationSize { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationSize) %extend StepVisual_PresentationSize { %pythoncode { @@ -4972,51 +3457,7 @@ class StepVisual_PresentationStyleAssignment : public MMgt_TShared { }; -%extend StepVisual_PresentationStyleAssignment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationStyleAssignment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationStyleAssignment::Handle_StepVisual_PresentationStyleAssignment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationStyleAssignment; -class Handle_StepVisual_PresentationStyleAssignment : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentationStyleAssignment(); - Handle_StepVisual_PresentationStyleAssignment(const Handle_StepVisual_PresentationStyleAssignment &aHandle); - Handle_StepVisual_PresentationStyleAssignment(const StepVisual_PresentationStyleAssignment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationStyleAssignment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationStyleAssignment { - StepVisual_PresentationStyleAssignment* _get_reference() { - return (StepVisual_PresentationStyleAssignment*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationStyleAssignment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationStyleAssignment) %extend StepVisual_PresentationStyleAssignment { %pythoncode { @@ -5072,51 +3513,7 @@ class StepVisual_PresentedItem : public MMgt_TShared { }; -%extend StepVisual_PresentedItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentedItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentedItem::Handle_StepVisual_PresentedItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentedItem; -class Handle_StepVisual_PresentedItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentedItem(); - Handle_StepVisual_PresentedItem(const Handle_StepVisual_PresentedItem &aHandle); - Handle_StepVisual_PresentedItem(const StepVisual_PresentedItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentedItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentedItem { - StepVisual_PresentedItem* _get_reference() { - return (StepVisual_PresentedItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentedItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentedItem) %extend StepVisual_PresentedItem { %pythoncode { @@ -5161,62 +3558,18 @@ class StepVisual_PresentedItemRepresentation : public MMgt_TShared { }; +%make_alias(StepVisual_PresentedItemRepresentation) + %extend StepVisual_PresentedItemRepresentation { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentedItemRepresentation(self) - self.thisown = False - return self.thisHandle + __repr__ = _dumps_object } }; - -%pythonappend Handle_StepVisual_PresentedItemRepresentation::Handle_StepVisual_PresentedItemRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentedItemRepresentation; -class Handle_StepVisual_PresentedItemRepresentation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_PresentedItemRepresentation(); - Handle_StepVisual_PresentedItemRepresentation(const Handle_StepVisual_PresentedItemRepresentation &aHandle); - Handle_StepVisual_PresentedItemRepresentation(const StepVisual_PresentedItemRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentedItemRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentedItemRepresentation { - StepVisual_PresentedItemRepresentation* _get_reference() { - return (StepVisual_PresentedItemRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentedItemRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepVisual_PresentedItemRepresentation { - %pythoncode { - __repr__ = _dumps_object - } -}; -%nodefaultctor StepVisual_StyleContextSelect; -class StepVisual_StyleContextSelect : public StepData_SelectType { - public: - %feature("compactdefaultargs") StepVisual_StyleContextSelect; - %feature("autodoc", " * Returns a StyleContextSelect SelectType +%nodefaultctor StepVisual_StyleContextSelect; +class StepVisual_StyleContextSelect : public StepData_SelectType { + public: + %feature("compactdefaultargs") StepVisual_StyleContextSelect; + %feature("autodoc", " * Returns a StyleContextSelect SelectType :rtype: None ") StepVisual_StyleContextSelect; @@ -5313,51 +3666,7 @@ class StepVisual_StyledItem : public StepRepr_RepresentationItem { }; -%extend StepVisual_StyledItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_StyledItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_StyledItem::Handle_StepVisual_StyledItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_StyledItem; -class Handle_StepVisual_StyledItem : public Handle_StepRepr_RepresentationItem { - - public: - // constructors - Handle_StepVisual_StyledItem(); - Handle_StepVisual_StyledItem(const Handle_StepVisual_StyledItem &aHandle); - Handle_StepVisual_StyledItem(const StepVisual_StyledItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_StyledItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_StyledItem { - StepVisual_StyledItem* _get_reference() { - return (StepVisual_StyledItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_StyledItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_StyledItem) %extend StepVisual_StyledItem { %pythoncode { @@ -5414,51 +3723,7 @@ class StepVisual_SurfaceSideStyle : public MMgt_TShared { }; -%extend StepVisual_SurfaceSideStyle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceSideStyle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceSideStyle::Handle_StepVisual_SurfaceSideStyle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceSideStyle; -class Handle_StepVisual_SurfaceSideStyle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceSideStyle(); - Handle_StepVisual_SurfaceSideStyle(const Handle_StepVisual_SurfaceSideStyle &aHandle); - Handle_StepVisual_SurfaceSideStyle(const StepVisual_SurfaceSideStyle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceSideStyle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceSideStyle { - StepVisual_SurfaceSideStyle* _get_reference() { - return (StepVisual_SurfaceSideStyle*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceSideStyle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceSideStyle) %extend StepVisual_SurfaceSideStyle { %pythoncode { @@ -5493,51 +3758,7 @@ class StepVisual_SurfaceStyleBoundary : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleBoundary { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleBoundary(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleBoundary::Handle_StepVisual_SurfaceStyleBoundary %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleBoundary; -class Handle_StepVisual_SurfaceStyleBoundary : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleBoundary(); - Handle_StepVisual_SurfaceStyleBoundary(const Handle_StepVisual_SurfaceStyleBoundary &aHandle); - Handle_StepVisual_SurfaceStyleBoundary(const StepVisual_SurfaceStyleBoundary *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleBoundary DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleBoundary { - StepVisual_SurfaceStyleBoundary* _get_reference() { - return (StepVisual_SurfaceStyleBoundary*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleBoundary { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleBoundary) %extend StepVisual_SurfaceStyleBoundary { %pythoncode { @@ -5572,51 +3793,7 @@ class StepVisual_SurfaceStyleControlGrid : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleControlGrid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleControlGrid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleControlGrid::Handle_StepVisual_SurfaceStyleControlGrid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleControlGrid; -class Handle_StepVisual_SurfaceStyleControlGrid : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleControlGrid(); - Handle_StepVisual_SurfaceStyleControlGrid(const Handle_StepVisual_SurfaceStyleControlGrid &aHandle); - Handle_StepVisual_SurfaceStyleControlGrid(const StepVisual_SurfaceStyleControlGrid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleControlGrid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleControlGrid { - StepVisual_SurfaceStyleControlGrid* _get_reference() { - return (StepVisual_SurfaceStyleControlGrid*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleControlGrid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleControlGrid) %extend StepVisual_SurfaceStyleControlGrid { %pythoncode { @@ -5694,51 +3871,7 @@ class StepVisual_SurfaceStyleFillArea : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleFillArea { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleFillArea(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleFillArea::Handle_StepVisual_SurfaceStyleFillArea %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleFillArea; -class Handle_StepVisual_SurfaceStyleFillArea : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleFillArea(); - Handle_StepVisual_SurfaceStyleFillArea(const Handle_StepVisual_SurfaceStyleFillArea &aHandle); - Handle_StepVisual_SurfaceStyleFillArea(const StepVisual_SurfaceStyleFillArea *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleFillArea DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleFillArea { - StepVisual_SurfaceStyleFillArea* _get_reference() { - return (StepVisual_SurfaceStyleFillArea*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleFillArea { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleFillArea) %extend StepVisual_SurfaceStyleFillArea { %pythoncode { @@ -5795,51 +3928,7 @@ class StepVisual_SurfaceStyleParameterLine : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleParameterLine { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleParameterLine(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleParameterLine::Handle_StepVisual_SurfaceStyleParameterLine %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleParameterLine; -class Handle_StepVisual_SurfaceStyleParameterLine : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleParameterLine(); - Handle_StepVisual_SurfaceStyleParameterLine(const Handle_StepVisual_SurfaceStyleParameterLine &aHandle); - Handle_StepVisual_SurfaceStyleParameterLine(const StepVisual_SurfaceStyleParameterLine *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleParameterLine DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleParameterLine { - StepVisual_SurfaceStyleParameterLine* _get_reference() { - return (StepVisual_SurfaceStyleParameterLine*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleParameterLine { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleParameterLine) %extend StepVisual_SurfaceStyleParameterLine { %pythoncode { @@ -5874,51 +3963,7 @@ class StepVisual_SurfaceStyleSegmentationCurve : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleSegmentationCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleSegmentationCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleSegmentationCurve::Handle_StepVisual_SurfaceStyleSegmentationCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleSegmentationCurve; -class Handle_StepVisual_SurfaceStyleSegmentationCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleSegmentationCurve(); - Handle_StepVisual_SurfaceStyleSegmentationCurve(const Handle_StepVisual_SurfaceStyleSegmentationCurve &aHandle); - Handle_StepVisual_SurfaceStyleSegmentationCurve(const StepVisual_SurfaceStyleSegmentationCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleSegmentationCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleSegmentationCurve { - StepVisual_SurfaceStyleSegmentationCurve* _get_reference() { - return (StepVisual_SurfaceStyleSegmentationCurve*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleSegmentationCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleSegmentationCurve) %extend StepVisual_SurfaceStyleSegmentationCurve { %pythoncode { @@ -5953,51 +3998,7 @@ class StepVisual_SurfaceStyleSilhouette : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleSilhouette { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleSilhouette(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleSilhouette::Handle_StepVisual_SurfaceStyleSilhouette %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleSilhouette; -class Handle_StepVisual_SurfaceStyleSilhouette : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleSilhouette(); - Handle_StepVisual_SurfaceStyleSilhouette(const Handle_StepVisual_SurfaceStyleSilhouette &aHandle); - Handle_StepVisual_SurfaceStyleSilhouette(const StepVisual_SurfaceStyleSilhouette *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleSilhouette DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleSilhouette { - StepVisual_SurfaceStyleSilhouette* _get_reference() { - return (StepVisual_SurfaceStyleSilhouette*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleSilhouette { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleSilhouette) %extend StepVisual_SurfaceStyleSilhouette { %pythoncode { @@ -6044,51 +4045,7 @@ class StepVisual_SurfaceStyleUsage : public MMgt_TShared { }; -%extend StepVisual_SurfaceStyleUsage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_SurfaceStyleUsage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_SurfaceStyleUsage::Handle_StepVisual_SurfaceStyleUsage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_SurfaceStyleUsage; -class Handle_StepVisual_SurfaceStyleUsage : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_SurfaceStyleUsage(); - Handle_StepVisual_SurfaceStyleUsage(const Handle_StepVisual_SurfaceStyleUsage &aHandle); - Handle_StepVisual_SurfaceStyleUsage(const StepVisual_SurfaceStyleUsage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_SurfaceStyleUsage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_SurfaceStyleUsage { - StepVisual_SurfaceStyleUsage* _get_reference() { - return (StepVisual_SurfaceStyleUsage*)$self->Access(); - } -}; - -%extend Handle_StepVisual_SurfaceStyleUsage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_SurfaceStyleUsage) %extend StepVisual_SurfaceStyleUsage { %pythoncode { @@ -6107,51 +4064,7 @@ class StepVisual_Template : public StepRepr_Representation { }; -%extend StepVisual_Template { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_Template(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_Template::Handle_StepVisual_Template %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_Template; -class Handle_StepVisual_Template : public Handle_StepRepr_Representation { - - public: - // constructors - Handle_StepVisual_Template(); - Handle_StepVisual_Template(const Handle_StepVisual_Template &aHandle); - Handle_StepVisual_Template(const StepVisual_Template *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_Template DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_Template { - StepVisual_Template* _get_reference() { - return (StepVisual_Template*)$self->Access(); - } -}; - -%extend Handle_StepVisual_Template { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_Template) %extend StepVisual_Template { %pythoncode { @@ -6170,51 +4083,7 @@ class StepVisual_TemplateInstance : public StepRepr_MappedItem { }; -%extend StepVisual_TemplateInstance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_TemplateInstance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_TemplateInstance::Handle_StepVisual_TemplateInstance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_TemplateInstance; -class Handle_StepVisual_TemplateInstance : public Handle_StepRepr_MappedItem { - - public: - // constructors - Handle_StepVisual_TemplateInstance(); - Handle_StepVisual_TemplateInstance(const Handle_StepVisual_TemplateInstance &aHandle); - Handle_StepVisual_TemplateInstance(const StepVisual_TemplateInstance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_TemplateInstance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_TemplateInstance { - StepVisual_TemplateInstance* _get_reference() { - return (StepVisual_TemplateInstance*)$self->Access(); - } -}; - -%extend Handle_StepVisual_TemplateInstance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_TemplateInstance) %extend StepVisual_TemplateInstance { %pythoncode { @@ -6305,51 +4174,7 @@ class StepVisual_TextLiteral : public StepGeom_GeometricRepresentationItem { }; -%extend StepVisual_TextLiteral { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_TextLiteral(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_TextLiteral::Handle_StepVisual_TextLiteral %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_TextLiteral; -class Handle_StepVisual_TextLiteral : public Handle_StepGeom_GeometricRepresentationItem { - - public: - // constructors - Handle_StepVisual_TextLiteral(); - Handle_StepVisual_TextLiteral(const Handle_StepVisual_TextLiteral &aHandle); - Handle_StepVisual_TextLiteral(const StepVisual_TextLiteral *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_TextLiteral DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_TextLiteral { - StepVisual_TextLiteral* _get_reference() { - return (StepVisual_TextLiteral*)$self->Access(); - } -}; - -%extend Handle_StepVisual_TextLiteral { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_TextLiteral) %extend StepVisual_TextLiteral { %pythoncode { @@ -6439,51 +4264,7 @@ class StepVisual_TextStyle : public MMgt_TShared { }; -%extend StepVisual_TextStyle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_TextStyle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_TextStyle::Handle_StepVisual_TextStyle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_TextStyle; -class Handle_StepVisual_TextStyle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_TextStyle(); - Handle_StepVisual_TextStyle(const Handle_StepVisual_TextStyle &aHandle); - Handle_StepVisual_TextStyle(const StepVisual_TextStyle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_TextStyle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_TextStyle { - StepVisual_TextStyle* _get_reference() { - return (StepVisual_TextStyle*)$self->Access(); - } -}; - -%extend Handle_StepVisual_TextStyle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_TextStyle) %extend StepVisual_TextStyle { %pythoncode { @@ -6518,51 +4299,7 @@ class StepVisual_TextStyleForDefinedFont : public MMgt_TShared { }; -%extend StepVisual_TextStyleForDefinedFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_TextStyleForDefinedFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_TextStyleForDefinedFont::Handle_StepVisual_TextStyleForDefinedFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_TextStyleForDefinedFont; -class Handle_StepVisual_TextStyleForDefinedFont : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_TextStyleForDefinedFont(); - Handle_StepVisual_TextStyleForDefinedFont(const Handle_StepVisual_TextStyleForDefinedFont &aHandle); - Handle_StepVisual_TextStyleForDefinedFont(const StepVisual_TextStyleForDefinedFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_TextStyleForDefinedFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_TextStyleForDefinedFont { - StepVisual_TextStyleForDefinedFont* _get_reference() { - return (StepVisual_TextStyleForDefinedFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_TextStyleForDefinedFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_TextStyleForDefinedFont) %extend StepVisual_TextStyleForDefinedFont { %pythoncode { @@ -6693,51 +4430,7 @@ class StepVisual_ViewVolume : public MMgt_TShared { }; -%extend StepVisual_ViewVolume { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ViewVolume(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ViewVolume::Handle_StepVisual_ViewVolume %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ViewVolume; -class Handle_StepVisual_ViewVolume : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StepVisual_ViewVolume(); - Handle_StepVisual_ViewVolume(const Handle_StepVisual_ViewVolume &aHandle); - Handle_StepVisual_ViewVolume(const StepVisual_ViewVolume *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ViewVolume DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ViewVolume { - StepVisual_ViewVolume* _get_reference() { - return (StepVisual_ViewVolume*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ViewVolume { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ViewVolume) %extend StepVisual_ViewVolume { %pythoncode { @@ -6756,51 +4449,7 @@ class StepVisual_AnnotationOccurrence : public StepVisual_StyledItem { }; -%extend StepVisual_AnnotationOccurrence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_AnnotationOccurrence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_AnnotationOccurrence::Handle_StepVisual_AnnotationOccurrence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_AnnotationOccurrence; -class Handle_StepVisual_AnnotationOccurrence : public Handle_StepVisual_StyledItem { - - public: - // constructors - Handle_StepVisual_AnnotationOccurrence(); - Handle_StepVisual_AnnotationOccurrence(const Handle_StepVisual_AnnotationOccurrence &aHandle); - Handle_StepVisual_AnnotationOccurrence(const StepVisual_AnnotationOccurrence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_AnnotationOccurrence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_AnnotationOccurrence { - StepVisual_AnnotationOccurrence* _get_reference() { - return (StepVisual_AnnotationOccurrence*)$self->Access(); - } -}; - -%extend Handle_StepVisual_AnnotationOccurrence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_AnnotationOccurrence) %extend StepVisual_AnnotationOccurrence { %pythoncode { @@ -6835,51 +4484,7 @@ class StepVisual_BackgroundColour : public StepVisual_Colour { }; -%extend StepVisual_BackgroundColour { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_BackgroundColour(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_BackgroundColour::Handle_StepVisual_BackgroundColour %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_BackgroundColour; -class Handle_StepVisual_BackgroundColour : public Handle_StepVisual_Colour { - - public: - // constructors - Handle_StepVisual_BackgroundColour(); - Handle_StepVisual_BackgroundColour(const Handle_StepVisual_BackgroundColour &aHandle); - Handle_StepVisual_BackgroundColour(const StepVisual_BackgroundColour *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_BackgroundColour DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_BackgroundColour { - StepVisual_BackgroundColour* _get_reference() { - return (StepVisual_BackgroundColour*)$self->Access(); - } -}; - -%extend Handle_StepVisual_BackgroundColour { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_BackgroundColour) %extend StepVisual_BackgroundColour { %pythoncode { @@ -6896,51 +4501,7 @@ class StepVisual_CameraImage2dWithScale : public StepVisual_CameraImage { }; -%extend StepVisual_CameraImage2dWithScale { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraImage2dWithScale(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraImage2dWithScale::Handle_StepVisual_CameraImage2dWithScale %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraImage2dWithScale; -class Handle_StepVisual_CameraImage2dWithScale : public Handle_StepVisual_CameraImage { - - public: - // constructors - Handle_StepVisual_CameraImage2dWithScale(); - Handle_StepVisual_CameraImage2dWithScale(const Handle_StepVisual_CameraImage2dWithScale &aHandle); - Handle_StepVisual_CameraImage2dWithScale(const StepVisual_CameraImage2dWithScale *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraImage2dWithScale DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraImage2dWithScale { - StepVisual_CameraImage2dWithScale* _get_reference() { - return (StepVisual_CameraImage2dWithScale*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraImage2dWithScale { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CameraImage2dWithScale) %extend StepVisual_CameraImage2dWithScale { %pythoncode { @@ -6957,55 +4518,11 @@ class StepVisual_CameraImage3dWithScale : public StepVisual_CameraImage { }; +%make_alias(StepVisual_CameraImage3dWithScale) + %extend StepVisual_CameraImage3dWithScale { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraImage3dWithScale(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraImage3dWithScale::Handle_StepVisual_CameraImage3dWithScale %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraImage3dWithScale; -class Handle_StepVisual_CameraImage3dWithScale : public Handle_StepVisual_CameraImage { - - public: - // constructors - Handle_StepVisual_CameraImage3dWithScale(); - Handle_StepVisual_CameraImage3dWithScale(const Handle_StepVisual_CameraImage3dWithScale &aHandle); - Handle_StepVisual_CameraImage3dWithScale(const StepVisual_CameraImage3dWithScale *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraImage3dWithScale DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraImage3dWithScale { - StepVisual_CameraImage3dWithScale* _get_reference() { - return (StepVisual_CameraImage3dWithScale*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraImage3dWithScale { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend StepVisual_CameraImage3dWithScale { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor StepVisual_CameraModelD2; @@ -7056,51 +4573,7 @@ class StepVisual_CameraModelD2 : public StepVisual_CameraModel { }; -%extend StepVisual_CameraModelD2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraModelD2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraModelD2::Handle_StepVisual_CameraModelD2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraModelD2; -class Handle_StepVisual_CameraModelD2 : public Handle_StepVisual_CameraModel { - - public: - // constructors - Handle_StepVisual_CameraModelD2(); - Handle_StepVisual_CameraModelD2(const Handle_StepVisual_CameraModelD2 &aHandle); - Handle_StepVisual_CameraModelD2(const StepVisual_CameraModelD2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraModelD2 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraModelD2 { - StepVisual_CameraModelD2* _get_reference() { - return (StepVisual_CameraModelD2*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraModelD2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CameraModelD2) %extend StepVisual_CameraModelD2 { %pythoncode { @@ -7155,51 +4628,7 @@ class StepVisual_CameraModelD3 : public StepVisual_CameraModel { }; -%extend StepVisual_CameraModelD3 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CameraModelD3(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CameraModelD3::Handle_StepVisual_CameraModelD3 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CameraModelD3; -class Handle_StepVisual_CameraModelD3 : public Handle_StepVisual_CameraModel { - - public: - // constructors - Handle_StepVisual_CameraModelD3(); - Handle_StepVisual_CameraModelD3(const Handle_StepVisual_CameraModelD3 &aHandle); - Handle_StepVisual_CameraModelD3(const StepVisual_CameraModelD3 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CameraModelD3 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CameraModelD3 { - StepVisual_CameraModelD3* _get_reference() { - return (StepVisual_CameraModelD3*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CameraModelD3 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CameraModelD3) %extend StepVisual_CameraModelD3 { %pythoncode { @@ -7234,51 +4663,7 @@ class StepVisual_ColourSpecification : public StepVisual_Colour { }; -%extend StepVisual_ColourSpecification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ColourSpecification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ColourSpecification::Handle_StepVisual_ColourSpecification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ColourSpecification; -class Handle_StepVisual_ColourSpecification : public Handle_StepVisual_Colour { - - public: - // constructors - Handle_StepVisual_ColourSpecification(); - Handle_StepVisual_ColourSpecification(const Handle_StepVisual_ColourSpecification &aHandle); - Handle_StepVisual_ColourSpecification(const StepVisual_ColourSpecification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ColourSpecification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ColourSpecification { - StepVisual_ColourSpecification* _get_reference() { - return (StepVisual_ColourSpecification*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ColourSpecification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ColourSpecification) %extend StepVisual_ColourSpecification { %pythoncode { @@ -7325,51 +4710,7 @@ class StepVisual_CompositeTextWithExtent : public StepVisual_CompositeText { }; -%extend StepVisual_CompositeTextWithExtent { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_CompositeTextWithExtent(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_CompositeTextWithExtent::Handle_StepVisual_CompositeTextWithExtent %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_CompositeTextWithExtent; -class Handle_StepVisual_CompositeTextWithExtent : public Handle_StepVisual_CompositeText { - - public: - // constructors - Handle_StepVisual_CompositeTextWithExtent(); - Handle_StepVisual_CompositeTextWithExtent(const Handle_StepVisual_CompositeTextWithExtent &aHandle); - Handle_StepVisual_CompositeTextWithExtent(const StepVisual_CompositeTextWithExtent *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_CompositeTextWithExtent DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_CompositeTextWithExtent { - StepVisual_CompositeTextWithExtent* _get_reference() { - return (StepVisual_CompositeTextWithExtent*)$self->Access(); - } -}; - -%extend Handle_StepVisual_CompositeTextWithExtent { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_CompositeTextWithExtent) %extend StepVisual_CompositeTextWithExtent { %pythoncode { @@ -7412,51 +4753,7 @@ class StepVisual_ContextDependentInvisibility : public StepVisual_Invisibility { }; -%extend StepVisual_ContextDependentInvisibility { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ContextDependentInvisibility(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ContextDependentInvisibility::Handle_StepVisual_ContextDependentInvisibility %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ContextDependentInvisibility; -class Handle_StepVisual_ContextDependentInvisibility : public Handle_StepVisual_Invisibility { - - public: - // constructors - Handle_StepVisual_ContextDependentInvisibility(); - Handle_StepVisual_ContextDependentInvisibility(const Handle_StepVisual_ContextDependentInvisibility &aHandle); - Handle_StepVisual_ContextDependentInvisibility(const StepVisual_ContextDependentInvisibility *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ContextDependentInvisibility DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ContextDependentInvisibility { - StepVisual_ContextDependentInvisibility* _get_reference() { - return (StepVisual_ContextDependentInvisibility*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ContextDependentInvisibility { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ContextDependentInvisibility) %extend StepVisual_ContextDependentInvisibility { %pythoncode { @@ -7475,51 +4772,7 @@ class StepVisual_MechanicalDesignGeometricPresentationRepresentation : public St }; -%extend StepVisual_MechanicalDesignGeometricPresentationRepresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation::Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation; -class Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation : public Handle_StepVisual_PresentationRepresentation { - - public: - // constructors - Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation(); - Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation(const Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation &aHandle); - Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation(const StepVisual_MechanicalDesignGeometricPresentationRepresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation { - StepVisual_MechanicalDesignGeometricPresentationRepresentation* _get_reference() { - return (StepVisual_MechanicalDesignGeometricPresentationRepresentation*)$self->Access(); - } -}; - -%extend Handle_StepVisual_MechanicalDesignGeometricPresentationRepresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_MechanicalDesignGeometricPresentationRepresentation) %extend StepVisual_MechanicalDesignGeometricPresentationRepresentation { %pythoncode { @@ -7570,51 +4823,7 @@ class StepVisual_OverRidingStyledItem : public StepVisual_StyledItem { }; -%extend StepVisual_OverRidingStyledItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_OverRidingStyledItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_OverRidingStyledItem::Handle_StepVisual_OverRidingStyledItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_OverRidingStyledItem; -class Handle_StepVisual_OverRidingStyledItem : public Handle_StepVisual_StyledItem { - - public: - // constructors - Handle_StepVisual_OverRidingStyledItem(); - Handle_StepVisual_OverRidingStyledItem(const Handle_StepVisual_OverRidingStyledItem &aHandle); - Handle_StepVisual_OverRidingStyledItem(const StepVisual_OverRidingStyledItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_OverRidingStyledItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_OverRidingStyledItem { - StepVisual_OverRidingStyledItem* _get_reference() { - return (StepVisual_OverRidingStyledItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_OverRidingStyledItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_OverRidingStyledItem) %extend StepVisual_OverRidingStyledItem { %pythoncode { @@ -7665,51 +4874,7 @@ class StepVisual_PlanarBox : public StepVisual_PlanarExtent { }; -%extend StepVisual_PlanarBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PlanarBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PlanarBox::Handle_StepVisual_PlanarBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PlanarBox; -class Handle_StepVisual_PlanarBox : public Handle_StepVisual_PlanarExtent { - - public: - // constructors - Handle_StepVisual_PlanarBox(); - Handle_StepVisual_PlanarBox(const Handle_StepVisual_PlanarBox &aHandle); - Handle_StepVisual_PlanarBox(const StepVisual_PlanarBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PlanarBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PlanarBox { - StepVisual_PlanarBox* _get_reference() { - return (StepVisual_PlanarBox*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PlanarBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PlanarBox) %extend StepVisual_PlanarBox { %pythoncode { @@ -7742,51 +4907,7 @@ class StepVisual_PreDefinedColour : public StepVisual_Colour { }; -%extend StepVisual_PreDefinedColour { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PreDefinedColour(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PreDefinedColour::Handle_StepVisual_PreDefinedColour %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PreDefinedColour; -class Handle_StepVisual_PreDefinedColour : public Handle_StepVisual_Colour { - - public: - // constructors - Handle_StepVisual_PreDefinedColour(); - Handle_StepVisual_PreDefinedColour(const Handle_StepVisual_PreDefinedColour &aHandle); - Handle_StepVisual_PreDefinedColour(const StepVisual_PreDefinedColour *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PreDefinedColour DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PreDefinedColour { - StepVisual_PreDefinedColour* _get_reference() { - return (StepVisual_PreDefinedColour*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PreDefinedColour { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PreDefinedColour) %extend StepVisual_PreDefinedColour { %pythoncode { @@ -7805,51 +4926,7 @@ class StepVisual_PreDefinedCurveFont : public StepVisual_PreDefinedItem { }; -%extend StepVisual_PreDefinedCurveFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PreDefinedCurveFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PreDefinedCurveFont::Handle_StepVisual_PreDefinedCurveFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PreDefinedCurveFont; -class Handle_StepVisual_PreDefinedCurveFont : public Handle_StepVisual_PreDefinedItem { - - public: - // constructors - Handle_StepVisual_PreDefinedCurveFont(); - Handle_StepVisual_PreDefinedCurveFont(const Handle_StepVisual_PreDefinedCurveFont &aHandle); - Handle_StepVisual_PreDefinedCurveFont(const StepVisual_PreDefinedCurveFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PreDefinedCurveFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PreDefinedCurveFont { - StepVisual_PreDefinedCurveFont* _get_reference() { - return (StepVisual_PreDefinedCurveFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PreDefinedCurveFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PreDefinedCurveFont) %extend StepVisual_PreDefinedCurveFont { %pythoncode { @@ -7868,51 +4945,7 @@ class StepVisual_PreDefinedTextFont : public StepVisual_PreDefinedItem { }; -%extend StepVisual_PreDefinedTextFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PreDefinedTextFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PreDefinedTextFont::Handle_StepVisual_PreDefinedTextFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PreDefinedTextFont; -class Handle_StepVisual_PreDefinedTextFont : public Handle_StepVisual_PreDefinedItem { - - public: - // constructors - Handle_StepVisual_PreDefinedTextFont(); - Handle_StepVisual_PreDefinedTextFont(const Handle_StepVisual_PreDefinedTextFont &aHandle); - Handle_StepVisual_PreDefinedTextFont(const StepVisual_PreDefinedTextFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PreDefinedTextFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PreDefinedTextFont { - StepVisual_PreDefinedTextFont* _get_reference() { - return (StepVisual_PreDefinedTextFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PreDefinedTextFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PreDefinedTextFont) %extend StepVisual_PreDefinedTextFont { %pythoncode { @@ -7931,51 +4964,7 @@ class StepVisual_PresentationArea : public StepVisual_PresentationRepresentation }; -%extend StepVisual_PresentationArea { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationArea(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationArea::Handle_StepVisual_PresentationArea %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationArea; -class Handle_StepVisual_PresentationArea : public Handle_StepVisual_PresentationRepresentation { - - public: - // constructors - Handle_StepVisual_PresentationArea(); - Handle_StepVisual_PresentationArea(const Handle_StepVisual_PresentationArea &aHandle); - Handle_StepVisual_PresentationArea(const StepVisual_PresentationArea *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationArea DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationArea { - StepVisual_PresentationArea* _get_reference() { - return (StepVisual_PresentationArea*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationArea { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationArea) %extend StepVisual_PresentationArea { %pythoncode { @@ -8018,51 +5007,7 @@ class StepVisual_PresentationStyleByContext : public StepVisual_PresentationStyl }; -%extend StepVisual_PresentationStyleByContext { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationStyleByContext(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationStyleByContext::Handle_StepVisual_PresentationStyleByContext %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationStyleByContext; -class Handle_StepVisual_PresentationStyleByContext : public Handle_StepVisual_PresentationStyleAssignment { - - public: - // constructors - Handle_StepVisual_PresentationStyleByContext(); - Handle_StepVisual_PresentationStyleByContext(const Handle_StepVisual_PresentationStyleByContext &aHandle); - Handle_StepVisual_PresentationStyleByContext(const StepVisual_PresentationStyleByContext *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationStyleByContext DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationStyleByContext { - StepVisual_PresentationStyleByContext* _get_reference() { - return (StepVisual_PresentationStyleByContext*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationStyleByContext { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationStyleByContext) %extend StepVisual_PresentationStyleByContext { %pythoncode { @@ -8081,51 +5026,7 @@ class StepVisual_PresentationView : public StepVisual_PresentationRepresentation }; -%extend StepVisual_PresentationView { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_PresentationView(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_PresentationView::Handle_StepVisual_PresentationView %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_PresentationView; -class Handle_StepVisual_PresentationView : public Handle_StepVisual_PresentationRepresentation { - - public: - // constructors - Handle_StepVisual_PresentationView(); - Handle_StepVisual_PresentationView(const Handle_StepVisual_PresentationView &aHandle); - Handle_StepVisual_PresentationView(const StepVisual_PresentationView *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_PresentationView DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_PresentationView { - StepVisual_PresentationView* _get_reference() { - return (StepVisual_PresentationView*)$self->Access(); - } -}; - -%extend Handle_StepVisual_PresentationView { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_PresentationView) %extend StepVisual_PresentationView { %pythoncode { @@ -8182,51 +5083,7 @@ class StepVisual_TextStyleWithBoxCharacteristics : public StepVisual_TextStyle { }; -%extend StepVisual_TextStyleWithBoxCharacteristics { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_TextStyleWithBoxCharacteristics(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_TextStyleWithBoxCharacteristics::Handle_StepVisual_TextStyleWithBoxCharacteristics %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_TextStyleWithBoxCharacteristics; -class Handle_StepVisual_TextStyleWithBoxCharacteristics : public Handle_StepVisual_TextStyle { - - public: - // constructors - Handle_StepVisual_TextStyleWithBoxCharacteristics(); - Handle_StepVisual_TextStyleWithBoxCharacteristics(const Handle_StepVisual_TextStyleWithBoxCharacteristics &aHandle); - Handle_StepVisual_TextStyleWithBoxCharacteristics(const StepVisual_TextStyleWithBoxCharacteristics *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_TextStyleWithBoxCharacteristics DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_TextStyleWithBoxCharacteristics { - StepVisual_TextStyleWithBoxCharacteristics* _get_reference() { - return (StepVisual_TextStyleWithBoxCharacteristics*)$self->Access(); - } -}; - -%extend Handle_StepVisual_TextStyleWithBoxCharacteristics { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_TextStyleWithBoxCharacteristics) %extend StepVisual_TextStyleWithBoxCharacteristics { %pythoncode { @@ -8245,51 +5102,7 @@ class StepVisual_AnnotationTextOccurrence : public StepVisual_AnnotationOccurren }; -%extend StepVisual_AnnotationTextOccurrence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_AnnotationTextOccurrence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_AnnotationTextOccurrence::Handle_StepVisual_AnnotationTextOccurrence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_AnnotationTextOccurrence; -class Handle_StepVisual_AnnotationTextOccurrence : public Handle_StepVisual_AnnotationOccurrence { - - public: - // constructors - Handle_StepVisual_AnnotationTextOccurrence(); - Handle_StepVisual_AnnotationTextOccurrence(const Handle_StepVisual_AnnotationTextOccurrence &aHandle); - Handle_StepVisual_AnnotationTextOccurrence(const StepVisual_AnnotationTextOccurrence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_AnnotationTextOccurrence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_AnnotationTextOccurrence { - StepVisual_AnnotationTextOccurrence* _get_reference() { - return (StepVisual_AnnotationTextOccurrence*)$self->Access(); - } -}; - -%extend Handle_StepVisual_AnnotationTextOccurrence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_AnnotationTextOccurrence) %extend StepVisual_AnnotationTextOccurrence { %pythoncode { @@ -8356,51 +5169,7 @@ class StepVisual_ColourRgb : public StepVisual_ColourSpecification { }; -%extend StepVisual_ColourRgb { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ColourRgb(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ColourRgb::Handle_StepVisual_ColourRgb %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ColourRgb; -class Handle_StepVisual_ColourRgb : public Handle_StepVisual_ColourSpecification { - - public: - // constructors - Handle_StepVisual_ColourRgb(); - Handle_StepVisual_ColourRgb(const Handle_StepVisual_ColourRgb &aHandle); - Handle_StepVisual_ColourRgb(const StepVisual_ColourRgb *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ColourRgb DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ColourRgb { - StepVisual_ColourRgb* _get_reference() { - return (StepVisual_ColourRgb*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ColourRgb { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ColourRgb) %extend StepVisual_ColourRgb { %pythoncode { @@ -8465,51 +5234,7 @@ class StepVisual_ContextDependentOverRidingStyledItem : public StepVisual_OverRi }; -%extend StepVisual_ContextDependentOverRidingStyledItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_ContextDependentOverRidingStyledItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_ContextDependentOverRidingStyledItem::Handle_StepVisual_ContextDependentOverRidingStyledItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_ContextDependentOverRidingStyledItem; -class Handle_StepVisual_ContextDependentOverRidingStyledItem : public Handle_StepVisual_OverRidingStyledItem { - - public: - // constructors - Handle_StepVisual_ContextDependentOverRidingStyledItem(); - Handle_StepVisual_ContextDependentOverRidingStyledItem(const Handle_StepVisual_ContextDependentOverRidingStyledItem &aHandle); - Handle_StepVisual_ContextDependentOverRidingStyledItem(const StepVisual_ContextDependentOverRidingStyledItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_ContextDependentOverRidingStyledItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_ContextDependentOverRidingStyledItem { - StepVisual_ContextDependentOverRidingStyledItem* _get_reference() { - return (StepVisual_ContextDependentOverRidingStyledItem*)$self->Access(); - } -}; - -%extend Handle_StepVisual_ContextDependentOverRidingStyledItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_ContextDependentOverRidingStyledItem) %extend StepVisual_ContextDependentOverRidingStyledItem { %pythoncode { @@ -8528,51 +5253,7 @@ class StepVisual_DraughtingAnnotationOccurrence : public StepVisual_AnnotationOc }; -%extend StepVisual_DraughtingAnnotationOccurrence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_DraughtingAnnotationOccurrence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_DraughtingAnnotationOccurrence::Handle_StepVisual_DraughtingAnnotationOccurrence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_DraughtingAnnotationOccurrence; -class Handle_StepVisual_DraughtingAnnotationOccurrence : public Handle_StepVisual_AnnotationOccurrence { - - public: - // constructors - Handle_StepVisual_DraughtingAnnotationOccurrence(); - Handle_StepVisual_DraughtingAnnotationOccurrence(const Handle_StepVisual_DraughtingAnnotationOccurrence &aHandle); - Handle_StepVisual_DraughtingAnnotationOccurrence(const StepVisual_DraughtingAnnotationOccurrence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_DraughtingAnnotationOccurrence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_DraughtingAnnotationOccurrence { - StepVisual_DraughtingAnnotationOccurrence* _get_reference() { - return (StepVisual_DraughtingAnnotationOccurrence*)$self->Access(); - } -}; - -%extend Handle_StepVisual_DraughtingAnnotationOccurrence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_DraughtingAnnotationOccurrence) %extend StepVisual_DraughtingAnnotationOccurrence { %pythoncode { @@ -8591,51 +5272,7 @@ class StepVisual_DraughtingPreDefinedColour : public StepVisual_PreDefinedColour }; -%extend StepVisual_DraughtingPreDefinedColour { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_DraughtingPreDefinedColour(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_DraughtingPreDefinedColour::Handle_StepVisual_DraughtingPreDefinedColour %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_DraughtingPreDefinedColour; -class Handle_StepVisual_DraughtingPreDefinedColour : public Handle_StepVisual_PreDefinedColour { - - public: - // constructors - Handle_StepVisual_DraughtingPreDefinedColour(); - Handle_StepVisual_DraughtingPreDefinedColour(const Handle_StepVisual_DraughtingPreDefinedColour &aHandle); - Handle_StepVisual_DraughtingPreDefinedColour(const StepVisual_DraughtingPreDefinedColour *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_DraughtingPreDefinedColour DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_DraughtingPreDefinedColour { - StepVisual_DraughtingPreDefinedColour* _get_reference() { - return (StepVisual_DraughtingPreDefinedColour*)$self->Access(); - } -}; - -%extend Handle_StepVisual_DraughtingPreDefinedColour { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_DraughtingPreDefinedColour) %extend StepVisual_DraughtingPreDefinedColour { %pythoncode { @@ -8654,51 +5291,7 @@ class StepVisual_DraughtingPreDefinedCurveFont : public StepVisual_PreDefinedCur }; -%extend StepVisual_DraughtingPreDefinedCurveFont { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_DraughtingPreDefinedCurveFont(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_DraughtingPreDefinedCurveFont::Handle_StepVisual_DraughtingPreDefinedCurveFont %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_DraughtingPreDefinedCurveFont; -class Handle_StepVisual_DraughtingPreDefinedCurveFont : public Handle_StepVisual_PreDefinedCurveFont { - - public: - // constructors - Handle_StepVisual_DraughtingPreDefinedCurveFont(); - Handle_StepVisual_DraughtingPreDefinedCurveFont(const Handle_StepVisual_DraughtingPreDefinedCurveFont &aHandle); - Handle_StepVisual_DraughtingPreDefinedCurveFont(const StepVisual_DraughtingPreDefinedCurveFont *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_DraughtingPreDefinedCurveFont DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_DraughtingPreDefinedCurveFont { - StepVisual_DraughtingPreDefinedCurveFont* _get_reference() { - return (StepVisual_DraughtingPreDefinedCurveFont*)$self->Access(); - } -}; - -%extend Handle_StepVisual_DraughtingPreDefinedCurveFont { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_DraughtingPreDefinedCurveFont) %extend StepVisual_DraughtingPreDefinedCurveFont { %pythoncode { @@ -8717,51 +5310,7 @@ class StepVisual_MechanicalDesignGeometricPresentationArea : public StepVisual_P }; -%extend StepVisual_MechanicalDesignGeometricPresentationArea { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StepVisual_MechanicalDesignGeometricPresentationArea(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StepVisual_MechanicalDesignGeometricPresentationArea::Handle_StepVisual_MechanicalDesignGeometricPresentationArea %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StepVisual_MechanicalDesignGeometricPresentationArea; -class Handle_StepVisual_MechanicalDesignGeometricPresentationArea : public Handle_StepVisual_PresentationArea { - - public: - // constructors - Handle_StepVisual_MechanicalDesignGeometricPresentationArea(); - Handle_StepVisual_MechanicalDesignGeometricPresentationArea(const Handle_StepVisual_MechanicalDesignGeometricPresentationArea &aHandle); - Handle_StepVisual_MechanicalDesignGeometricPresentationArea(const StepVisual_MechanicalDesignGeometricPresentationArea *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StepVisual_MechanicalDesignGeometricPresentationArea DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StepVisual_MechanicalDesignGeometricPresentationArea { - StepVisual_MechanicalDesignGeometricPresentationArea* _get_reference() { - return (StepVisual_MechanicalDesignGeometricPresentationArea*)$self->Access(); - } -}; - -%extend Handle_StepVisual_MechanicalDesignGeometricPresentationArea { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StepVisual_MechanicalDesignGeometricPresentationArea) %extend StepVisual_MechanicalDesignGeometricPresentationArea { %pythoncode { diff --git a/src/SWIG_files/wrapper/StlAPI.i b/src/SWIG_files/wrapper/StlAPI.i index 0c4dc757b..7d8ff6ff0 100644 --- a/src/SWIG_files/wrapper/StlAPI.i +++ b/src/SWIG_files/wrapper/StlAPI.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define STLAPIDOCSTRING -"No docstring provided." +"-Purpose : Offers the API for STL data manipulation. + +" %enddef %module (package="OCC.Core", docstring=STLAPIDOCSTRING) StlAPI @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StlAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +53,7 @@ enum StlAPI_ErrorStatus { /* end public enums declaration */ + %rename(stlapi) StlAPI; class StlAPI { public: diff --git a/src/SWIG_files/wrapper/StlAPI_headers.i b/src/SWIG_files/wrapper/StlAPI_headers.i index 02ae5c8d7..c01df00d4 100644 --- a/src/SWIG_files/wrapper/StlAPI_headers.i +++ b/src/SWIG_files/wrapper/StlAPI_headers.i @@ -130,6 +130,17 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/StlMesh.i b/src/SWIG_files/wrapper/StlMesh.i index 9e9844aa8..e9f71316e 100644 --- a/src/SWIG_files/wrapper/StlMesh.i +++ b/src/SWIG_files/wrapper/StlMesh.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define STLMESHDOCSTRING -"No docstring provided." +"Implements a basic mesh data-structure for the +needs of the application fast prototyping. + +" %enddef %module (package="OCC.Core", docstring=STLMESHDOCSTRING) StlMesh @@ -34,31 +37,24 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StlMesh_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(StlMesh_Mesh) +%wrap_handle(StlMesh_MeshDomain) +%wrap_handle(StlMesh_MeshTriangle) +%wrap_handle(StlMesh_SequenceNodeOfSequenceOfMesh) +%wrap_handle(StlMesh_SequenceNodeOfSequenceOfMeshDomain) +%wrap_handle(StlMesh_SequenceNodeOfSequenceOfMeshTriangle) + %rename(stlmesh) StlMesh; class StlMesh { public: @@ -224,51 +220,7 @@ class StlMesh_Mesh : public MMgt_TShared { }; -%extend StlMesh_Mesh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StlMesh_Mesh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StlMesh_Mesh::Handle_StlMesh_Mesh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StlMesh_Mesh; -class Handle_StlMesh_Mesh : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StlMesh_Mesh(); - Handle_StlMesh_Mesh(const Handle_StlMesh_Mesh &aHandle); - Handle_StlMesh_Mesh(const StlMesh_Mesh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StlMesh_Mesh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StlMesh_Mesh { - StlMesh_Mesh* _get_reference() { - return (StlMesh_Mesh*)$self->Access(); - } -}; - -%extend Handle_StlMesh_Mesh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StlMesh_Mesh) %extend StlMesh_Mesh { %pythoncode { @@ -367,51 +319,7 @@ class StlMesh_MeshDomain : public MMgt_TShared { }; -%extend StlMesh_MeshDomain { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StlMesh_MeshDomain(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StlMesh_MeshDomain::Handle_StlMesh_MeshDomain %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StlMesh_MeshDomain; -class Handle_StlMesh_MeshDomain : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StlMesh_MeshDomain(); - Handle_StlMesh_MeshDomain(const Handle_StlMesh_MeshDomain &aHandle); - Handle_StlMesh_MeshDomain(const StlMesh_MeshDomain *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StlMesh_MeshDomain DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StlMesh_MeshDomain { - StlMesh_MeshDomain* _get_reference() { - return (StlMesh_MeshDomain*)$self->Access(); - } -}; - -%extend Handle_StlMesh_MeshDomain { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StlMesh_MeshDomain) %extend StlMesh_MeshDomain { %pythoncode { @@ -585,51 +493,7 @@ class StlMesh_MeshTriangle : public MMgt_TShared { }; -%extend StlMesh_MeshTriangle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StlMesh_MeshTriangle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StlMesh_MeshTriangle::Handle_StlMesh_MeshTriangle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StlMesh_MeshTriangle; -class Handle_StlMesh_MeshTriangle : public Handle_MMgt_TShared { - - public: - // constructors - Handle_StlMesh_MeshTriangle(); - Handle_StlMesh_MeshTriangle(const Handle_StlMesh_MeshTriangle &aHandle); - Handle_StlMesh_MeshTriangle(const StlMesh_MeshTriangle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StlMesh_MeshTriangle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StlMesh_MeshTriangle { - StlMesh_MeshTriangle* _get_reference() { - return (StlMesh_MeshTriangle*)$self->Access(); - } -}; - -%extend Handle_StlMesh_MeshTriangle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StlMesh_MeshTriangle) %extend StlMesh_MeshTriangle { %pythoncode { @@ -656,51 +520,7 @@ class StlMesh_SequenceNodeOfSequenceOfMesh : public TCollection_SeqNode { }; -%extend StlMesh_SequenceNodeOfSequenceOfMesh { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StlMesh_SequenceNodeOfSequenceOfMesh(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StlMesh_SequenceNodeOfSequenceOfMesh::Handle_StlMesh_SequenceNodeOfSequenceOfMesh %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StlMesh_SequenceNodeOfSequenceOfMesh; -class Handle_StlMesh_SequenceNodeOfSequenceOfMesh : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StlMesh_SequenceNodeOfSequenceOfMesh(); - Handle_StlMesh_SequenceNodeOfSequenceOfMesh(const Handle_StlMesh_SequenceNodeOfSequenceOfMesh &aHandle); - Handle_StlMesh_SequenceNodeOfSequenceOfMesh(const StlMesh_SequenceNodeOfSequenceOfMesh *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StlMesh_SequenceNodeOfSequenceOfMesh DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StlMesh_SequenceNodeOfSequenceOfMesh { - StlMesh_SequenceNodeOfSequenceOfMesh* _get_reference() { - return (StlMesh_SequenceNodeOfSequenceOfMesh*)$self->Access(); - } -}; - -%extend Handle_StlMesh_SequenceNodeOfSequenceOfMesh { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StlMesh_SequenceNodeOfSequenceOfMesh) %extend StlMesh_SequenceNodeOfSequenceOfMesh { %pythoncode { @@ -727,51 +547,7 @@ class StlMesh_SequenceNodeOfSequenceOfMeshDomain : public TCollection_SeqNode { }; -%extend StlMesh_SequenceNodeOfSequenceOfMeshDomain { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain::Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain; -class Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain(); - Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain(const Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain &aHandle); - Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain(const StlMesh_SequenceNodeOfSequenceOfMeshDomain *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain { - StlMesh_SequenceNodeOfSequenceOfMeshDomain* _get_reference() { - return (StlMesh_SequenceNodeOfSequenceOfMeshDomain*)$self->Access(); - } -}; - -%extend Handle_StlMesh_SequenceNodeOfSequenceOfMeshDomain { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StlMesh_SequenceNodeOfSequenceOfMeshDomain) %extend StlMesh_SequenceNodeOfSequenceOfMeshDomain { %pythoncode { @@ -798,51 +574,7 @@ class StlMesh_SequenceNodeOfSequenceOfMeshTriangle : public TCollection_SeqNode }; -%extend StlMesh_SequenceNodeOfSequenceOfMeshTriangle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle::Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle; -class Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle(); - Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle(const Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle &aHandle); - Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle(const StlMesh_SequenceNodeOfSequenceOfMeshTriangle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle { - StlMesh_SequenceNodeOfSequenceOfMeshTriangle* _get_reference() { - return (StlMesh_SequenceNodeOfSequenceOfMeshTriangle*)$self->Access(); - } -}; - -%extend Handle_StlMesh_SequenceNodeOfSequenceOfMeshTriangle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(StlMesh_SequenceNodeOfSequenceOfMeshTriangle) %extend StlMesh_SequenceNodeOfSequenceOfMeshTriangle { %pythoncode { diff --git a/src/SWIG_files/wrapper/StlTransfer.i b/src/SWIG_files/wrapper/StlTransfer.i index deb7772d4..804b8458d 100644 --- a/src/SWIG_files/wrapper/StlTransfer.i +++ b/src/SWIG_files/wrapper/StlTransfer.i @@ -18,7 +18,13 @@ along with pythonOCC. If not, see . */ %define STLTRANSFERDOCSTRING -"No docstring provided." +"The package Algorithm for Meshing implements +facilities to retrieve the Mesh data-structure from a shape of package +TopoDS. The triangulation should be computed before. +The result is stored in the mesh +data-structure Mesh from package StlMesh. + +" %enddef %module (package="OCC.Core", docstring=STLTRANSFERDOCSTRING) StlTransfer @@ -34,31 +40,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include StlTransfer_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(stltransfer) StlTransfer; class StlTransfer { public: diff --git a/src/SWIG_files/wrapper/StlTransfer_headers.i b/src/SWIG_files/wrapper/StlTransfer_headers.i index a7486e0ce..5f92a4567 100644 --- a/src/SWIG_files/wrapper/StlTransfer_headers.i +++ b/src/SWIG_files/wrapper/StlTransfer_headers.i @@ -58,6 +58,17 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/Storage.i b/src/SWIG_files/wrapper/Storage.i index 135a2af62..b3faa49ee 100644 --- a/src/SWIG_files/wrapper/Storage.i +++ b/src/SWIG_files/wrapper/Storage.i @@ -18,7 +18,26 @@ along with pythonOCC. If not, see . */ %define STORAGEDOCSTRING -"No docstring provided." +"Storage package is used to write and read persistent objects. +These objects are read and written by a retrieval or storage +algorithm (Storage_Schema object) in a container (disk, memory, +network ...). Drivers (FSD_File objects) assign a physical +container for data to be stored or retrieved. +The standard procedure for an application in +reading a container is the following: +- open the driver in reading mode, +- call the Read function from the schema, +setting the driver as a parameter. This function returns +an instance of the Storage_Data class which contains the data being read, +- close the driver. +The standard procedure for an application in writing a container is the following: +- open the driver in writing mode, +- create an instance of the Storage_Data class, then +add the persistent data to write with the function AddRoot, +- call the function Write from the schema, +setting the driver and the Storage_Data instance as parameters, +- close the driver. +" %enddef %module (package="OCC.Core", docstring=STORAGEDOCSTRING) Storage @@ -34,25 +53,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Storage_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Storage_BaseDriver * Storage_Container; typedef long Storage_Position; @@ -91,6 +96,25 @@ enum Storage_OpenMode { /* end public enums declaration */ +%wrap_handle(Storage_CallBack) +%wrap_handle(Storage_Data) +%wrap_handle(Storage_DataMapNodeOfMapOfCallBack) +%wrap_handle(Storage_DataMapNodeOfMapOfPers) +%wrap_handle(Storage_HArrayOfCallBack) +%wrap_handle(Storage_HArrayOfSchema) +%wrap_handle(Storage_HPArray) +%wrap_handle(Storage_HSeqOfRoot) +%wrap_handle(Storage_HeaderData) +%wrap_handle(Storage_IndexedDataMapNodeOfPType) +%wrap_handle(Storage_InternalData) +%wrap_handle(Storage_Root) +%wrap_handle(Storage_RootData) +%wrap_handle(Storage_Schema) +%wrap_handle(Storage_SequenceNodeOfSeqOfRoot) +%wrap_handle(Storage_TypeData) +%wrap_handle(Storage_TypedCallBack) +%wrap_handle(Storage_DefaultCallBack) + %rename(storage) Storage; class Storage { public: @@ -773,51 +797,7 @@ class Storage_CallBack : public MMgt_TShared { }; -%extend Storage_CallBack { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_CallBack(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_CallBack::Handle_Storage_CallBack %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_CallBack; -class Handle_Storage_CallBack : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_CallBack(); - Handle_Storage_CallBack(const Handle_Storage_CallBack &aHandle); - Handle_Storage_CallBack(const Storage_CallBack *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_CallBack DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_CallBack { - Storage_CallBack* _get_reference() { - return (Storage_CallBack*)$self->Access(); - } -}; - -%extend Handle_Storage_CallBack { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_CallBack) %extend Storage_CallBack { %pythoncode { @@ -1026,51 +1006,7 @@ class Storage_Data : public MMgt_TShared { }; -%extend Storage_Data { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_Data(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_Data::Handle_Storage_Data %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_Data; -class Handle_Storage_Data : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_Data(); - Handle_Storage_Data(const Handle_Storage_Data &aHandle); - Handle_Storage_Data(const Storage_Data *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_Data DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_Data { - Storage_Data* _get_reference() { - return (Storage_Data*)$self->Access(); - } -}; - -%extend Handle_Storage_Data { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_Data) %extend Storage_Data { %pythoncode { @@ -1171,51 +1107,7 @@ class Storage_DataMapNodeOfMapOfCallBack : public TCollection_MapNode { }; -%extend Storage_DataMapNodeOfMapOfCallBack { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_DataMapNodeOfMapOfCallBack(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_DataMapNodeOfMapOfCallBack::Handle_Storage_DataMapNodeOfMapOfCallBack %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_DataMapNodeOfMapOfCallBack; -class Handle_Storage_DataMapNodeOfMapOfCallBack : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Storage_DataMapNodeOfMapOfCallBack(); - Handle_Storage_DataMapNodeOfMapOfCallBack(const Handle_Storage_DataMapNodeOfMapOfCallBack &aHandle); - Handle_Storage_DataMapNodeOfMapOfCallBack(const Storage_DataMapNodeOfMapOfCallBack *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_DataMapNodeOfMapOfCallBack DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_DataMapNodeOfMapOfCallBack { - Storage_DataMapNodeOfMapOfCallBack* _get_reference() { - return (Storage_DataMapNodeOfMapOfCallBack*)$self->Access(); - } -}; - -%extend Handle_Storage_DataMapNodeOfMapOfCallBack { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_DataMapNodeOfMapOfCallBack) %extend Storage_DataMapNodeOfMapOfCallBack { %pythoncode { @@ -1246,51 +1138,7 @@ class Storage_DataMapNodeOfMapOfPers : public TCollection_MapNode { }; -%extend Storage_DataMapNodeOfMapOfPers { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_DataMapNodeOfMapOfPers(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_DataMapNodeOfMapOfPers::Handle_Storage_DataMapNodeOfMapOfPers %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_DataMapNodeOfMapOfPers; -class Handle_Storage_DataMapNodeOfMapOfPers : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Storage_DataMapNodeOfMapOfPers(); - Handle_Storage_DataMapNodeOfMapOfPers(const Handle_Storage_DataMapNodeOfMapOfPers &aHandle); - Handle_Storage_DataMapNodeOfMapOfPers(const Storage_DataMapNodeOfMapOfPers *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_DataMapNodeOfMapOfPers DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_DataMapNodeOfMapOfPers { - Storage_DataMapNodeOfMapOfPers* _get_reference() { - return (Storage_DataMapNodeOfMapOfPers*)$self->Access(); - } -}; - -%extend Handle_Storage_DataMapNodeOfMapOfPers { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_DataMapNodeOfMapOfPers) %extend Storage_DataMapNodeOfMapOfPers { %pythoncode { @@ -1367,51 +1215,7 @@ class Storage_HArrayOfCallBack : public MMgt_TShared { }; -%extend Storage_HArrayOfCallBack { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_HArrayOfCallBack(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_HArrayOfCallBack::Handle_Storage_HArrayOfCallBack %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_HArrayOfCallBack; -class Handle_Storage_HArrayOfCallBack : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_HArrayOfCallBack(); - Handle_Storage_HArrayOfCallBack(const Handle_Storage_HArrayOfCallBack &aHandle); - Handle_Storage_HArrayOfCallBack(const Storage_HArrayOfCallBack *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_HArrayOfCallBack DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_HArrayOfCallBack { - Storage_HArrayOfCallBack* _get_reference() { - return (Storage_HArrayOfCallBack*)$self->Access(); - } -}; - -%extend Handle_Storage_HArrayOfCallBack { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_HArrayOfCallBack) %extend Storage_HArrayOfCallBack { %pythoncode { @@ -1488,51 +1292,7 @@ class Storage_HArrayOfSchema : public MMgt_TShared { }; -%extend Storage_HArrayOfSchema { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_HArrayOfSchema(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_HArrayOfSchema::Handle_Storage_HArrayOfSchema %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_HArrayOfSchema; -class Handle_Storage_HArrayOfSchema : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_HArrayOfSchema(); - Handle_Storage_HArrayOfSchema(const Handle_Storage_HArrayOfSchema &aHandle); - Handle_Storage_HArrayOfSchema(const Storage_HArrayOfSchema *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_HArrayOfSchema DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_HArrayOfSchema { - Storage_HArrayOfSchema* _get_reference() { - return (Storage_HArrayOfSchema*)$self->Access(); - } -}; - -%extend Handle_Storage_HArrayOfSchema { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_HArrayOfSchema) %extend Storage_HArrayOfSchema { %pythoncode { @@ -1609,51 +1369,7 @@ class Storage_HPArray : public MMgt_TShared { }; -%extend Storage_HPArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_HPArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_HPArray::Handle_Storage_HPArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_HPArray; -class Handle_Storage_HPArray : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_HPArray(); - Handle_Storage_HPArray(const Handle_Storage_HPArray &aHandle); - Handle_Storage_HPArray(const Storage_HPArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_HPArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_HPArray { - Storage_HPArray* _get_reference() { - return (Storage_HPArray*)$self->Access(); - } -}; - -%extend Handle_Storage_HPArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_HPArray) %extend Storage_HPArray { %pythoncode { @@ -1798,51 +1514,7 @@ class Storage_HSeqOfRoot : public MMgt_TShared { }; -%extend Storage_HSeqOfRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_HSeqOfRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_HSeqOfRoot::Handle_Storage_HSeqOfRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_HSeqOfRoot; -class Handle_Storage_HSeqOfRoot : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_HSeqOfRoot(); - Handle_Storage_HSeqOfRoot(const Handle_Storage_HSeqOfRoot &aHandle); - Handle_Storage_HSeqOfRoot(const Storage_HSeqOfRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_HSeqOfRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_HSeqOfRoot { - Storage_HSeqOfRoot* _get_reference() { - return (Storage_HSeqOfRoot*)$self->Access(); - } -}; - -%extend Handle_Storage_HSeqOfRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_HSeqOfRoot) %extend Storage_HSeqOfRoot { %pythoncode { @@ -1971,51 +1643,7 @@ class Storage_HeaderData : public MMgt_TShared { }; -%extend Storage_HeaderData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_HeaderData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_HeaderData::Handle_Storage_HeaderData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_HeaderData; -class Handle_Storage_HeaderData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_HeaderData(); - Handle_Storage_HeaderData(const Handle_Storage_HeaderData &aHandle); - Handle_Storage_HeaderData(const Storage_HeaderData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_HeaderData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_HeaderData { - Storage_HeaderData* _get_reference() { - return (Storage_HeaderData*)$self->Access(); - } -}; - -%extend Handle_Storage_HeaderData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_HeaderData) %extend Storage_HeaderData { %pythoncode { @@ -2076,51 +1704,7 @@ class Storage_IndexedDataMapNodeOfPType : public TCollection_MapNode { }; -%extend Storage_IndexedDataMapNodeOfPType { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_IndexedDataMapNodeOfPType(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_IndexedDataMapNodeOfPType::Handle_Storage_IndexedDataMapNodeOfPType %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_IndexedDataMapNodeOfPType; -class Handle_Storage_IndexedDataMapNodeOfPType : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Storage_IndexedDataMapNodeOfPType(); - Handle_Storage_IndexedDataMapNodeOfPType(const Handle_Storage_IndexedDataMapNodeOfPType &aHandle); - Handle_Storage_IndexedDataMapNodeOfPType(const Storage_IndexedDataMapNodeOfPType *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_IndexedDataMapNodeOfPType DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_IndexedDataMapNodeOfPType { - Storage_IndexedDataMapNodeOfPType* _get_reference() { - return (Storage_IndexedDataMapNodeOfPType*)$self->Access(); - } -}; - -%extend Handle_Storage_IndexedDataMapNodeOfPType { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_IndexedDataMapNodeOfPType) %extend Storage_IndexedDataMapNodeOfPType { %pythoncode { @@ -2141,51 +1725,7 @@ class Storage_InternalData : public MMgt_TShared { }; -%extend Storage_InternalData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_InternalData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_InternalData::Handle_Storage_InternalData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_InternalData; -class Handle_Storage_InternalData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_InternalData(); - Handle_Storage_InternalData(const Handle_Storage_InternalData &aHandle); - Handle_Storage_InternalData(const Storage_InternalData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_InternalData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_InternalData { - Storage_InternalData* _get_reference() { - return (Storage_InternalData*)$self->Access(); - } -}; - -%extend Handle_Storage_InternalData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_InternalData) %extend Storage_InternalData { %pythoncode { @@ -2608,51 +2148,7 @@ class Storage_Root : public MMgt_TShared { }; -%extend Storage_Root { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_Root(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_Root::Handle_Storage_Root %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_Root; -class Handle_Storage_Root : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_Root(); - Handle_Storage_Root(const Handle_Storage_Root &aHandle); - Handle_Storage_Root(const Storage_Root *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_Root DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_Root { - Storage_Root* _get_reference() { - return (Storage_Root*)$self->Access(); - } -}; - -%extend Handle_Storage_Root { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_Root) %extend Storage_Root { %pythoncode { @@ -2723,51 +2219,7 @@ class Storage_RootData : public MMgt_TShared { }; -%extend Storage_RootData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_RootData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_RootData::Handle_Storage_RootData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_RootData; -class Handle_Storage_RootData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_RootData(); - Handle_Storage_RootData(const Handle_Storage_RootData &aHandle); - Handle_Storage_RootData(const Storage_RootData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_RootData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_RootData { - Storage_RootData* _get_reference() { - return (Storage_RootData*)$self->Access(); - } -}; - -%extend Handle_Storage_RootData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_RootData) %extend Storage_RootData { %pythoncode { @@ -3032,51 +2484,7 @@ class Storage_Schema : public MMgt_TShared { }; -%extend Storage_Schema { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_Schema(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_Schema::Handle_Storage_Schema %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_Schema; -class Handle_Storage_Schema : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_Schema(); - Handle_Storage_Schema(const Handle_Storage_Schema &aHandle); - Handle_Storage_Schema(const Storage_Schema *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_Schema DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_Schema { - Storage_Schema* _get_reference() { - return (Storage_Schema*)$self->Access(); - } -}; - -%extend Handle_Storage_Schema { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_Schema) %extend Storage_Schema { %pythoncode { @@ -3246,51 +2654,7 @@ class Storage_SequenceNodeOfSeqOfRoot : public TCollection_SeqNode { }; -%extend Storage_SequenceNodeOfSeqOfRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_SequenceNodeOfSeqOfRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_SequenceNodeOfSeqOfRoot::Handle_Storage_SequenceNodeOfSeqOfRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_SequenceNodeOfSeqOfRoot; -class Handle_Storage_SequenceNodeOfSeqOfRoot : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Storage_SequenceNodeOfSeqOfRoot(); - Handle_Storage_SequenceNodeOfSeqOfRoot(const Handle_Storage_SequenceNodeOfSeqOfRoot &aHandle); - Handle_Storage_SequenceNodeOfSeqOfRoot(const Storage_SequenceNodeOfSeqOfRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_SequenceNodeOfSeqOfRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_SequenceNodeOfSeqOfRoot { - Storage_SequenceNodeOfSeqOfRoot* _get_reference() { - return (Storage_SequenceNodeOfSeqOfRoot*)$self->Access(); - } -}; - -%extend Handle_Storage_SequenceNodeOfSeqOfRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_SequenceNodeOfSeqOfRoot) %extend Storage_SequenceNodeOfSeqOfRoot { %pythoncode { @@ -3337,51 +2701,7 @@ class Storage_TypeData : public MMgt_TShared { }; -%extend Storage_TypeData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_TypeData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_TypeData::Handle_Storage_TypeData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_TypeData; -class Handle_Storage_TypeData : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_TypeData(); - Handle_Storage_TypeData(const Handle_Storage_TypeData &aHandle); - Handle_Storage_TypeData(const Storage_TypeData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_TypeData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_TypeData { - Storage_TypeData* _get_reference() { - return (Storage_TypeData*)$self->Access(); - } -}; - -%extend Handle_Storage_TypeData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_TypeData) %extend Storage_TypeData { %pythoncode { @@ -3436,51 +2756,7 @@ class Storage_TypedCallBack : public MMgt_TShared { }; -%extend Storage_TypedCallBack { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_TypedCallBack(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_TypedCallBack::Handle_Storage_TypedCallBack %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_TypedCallBack; -class Handle_Storage_TypedCallBack : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Storage_TypedCallBack(); - Handle_Storage_TypedCallBack(const Handle_Storage_TypedCallBack &aHandle); - Handle_Storage_TypedCallBack(const Storage_TypedCallBack *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_TypedCallBack DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_TypedCallBack { - Storage_TypedCallBack* _get_reference() { - return (Storage_TypedCallBack*)$self->Access(); - } -}; - -%extend Handle_Storage_TypedCallBack { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_TypedCallBack) %extend Storage_TypedCallBack { %pythoncode { @@ -3540,51 +2816,7 @@ class Storage_DefaultCallBack : public Storage_CallBack { }; -%extend Storage_DefaultCallBack { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Storage_DefaultCallBack(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Storage_DefaultCallBack::Handle_Storage_DefaultCallBack %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Storage_DefaultCallBack; -class Handle_Storage_DefaultCallBack : public Handle_Storage_CallBack { - - public: - // constructors - Handle_Storage_DefaultCallBack(); - Handle_Storage_DefaultCallBack(const Handle_Storage_DefaultCallBack &aHandle); - Handle_Storage_DefaultCallBack(const Storage_DefaultCallBack *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Storage_DefaultCallBack DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Storage_DefaultCallBack { - Storage_DefaultCallBack* _get_reference() { - return (Storage_DefaultCallBack*)$self->Access(); - } -}; - -%extend Handle_Storage_DefaultCallBack { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Storage_DefaultCallBack) %extend Storage_DefaultCallBack { %pythoncode { diff --git a/src/SWIG_files/wrapper/Sweep.i b/src/SWIG_files/wrapper/Sweep.i index 85d559ebf..3a761ad31 100644 --- a/src/SWIG_files/wrapper/Sweep.i +++ b/src/SWIG_files/wrapper/Sweep.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define SWEEPDOCSTRING -"No docstring provided." +"This package contains generic classes usefull to create +swept 3D primitives. +" %enddef %module (package="OCC.Core", docstring=SWEEPDOCSTRING) Sweep @@ -34,31 +36,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Sweep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor Sweep_NumShape; class Sweep_NumShape { public: diff --git a/src/SWIG_files/wrapper/TColGeom.i b/src/SWIG_files/wrapper/TColGeom.i index 2e7842b1e..03308d4bf 100644 --- a/src/SWIG_files/wrapper/TColGeom.i +++ b/src/SWIG_files/wrapper/TColGeom.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define TCOLGEOMDOCSTRING -"No docstring provided." +"-Purpose : This package is used to instantiate of several +generic classes from the package TCollection with +objects from the package Geom. +" %enddef %module (package="OCC.Core", docstring=TCOLGEOMDOCSTRING) TColGeom @@ -34,31 +37,28 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TColGeom_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TColGeom_HArray1OfBSplineCurve) +%wrap_handle(TColGeom_HArray1OfBezierCurve) +%wrap_handle(TColGeom_HArray1OfCurve) +%wrap_handle(TColGeom_HArray1OfSurface) +%wrap_handle(TColGeom_HArray2OfSurface) +%wrap_handle(TColGeom_HSequenceOfBoundedCurve) +%wrap_handle(TColGeom_HSequenceOfCurve) +%wrap_handle(TColGeom_SequenceNodeOfSequenceOfBoundedCurve) +%wrap_handle(TColGeom_SequenceNodeOfSequenceOfCurve) +%wrap_handle(TColGeom_SequenceNodeOfSequenceOfSurface) + %nodefaultctor TColGeom_Array1OfBSplineCurve; class TColGeom_Array1OfBSplineCurve { public: @@ -695,51 +695,7 @@ class TColGeom_HArray1OfBSplineCurve : public MMgt_TShared { }; -%extend TColGeom_HArray1OfBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HArray1OfBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HArray1OfBSplineCurve::Handle_TColGeom_HArray1OfBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HArray1OfBSplineCurve; -class Handle_TColGeom_HArray1OfBSplineCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HArray1OfBSplineCurve(); - Handle_TColGeom_HArray1OfBSplineCurve(const Handle_TColGeom_HArray1OfBSplineCurve &aHandle); - Handle_TColGeom_HArray1OfBSplineCurve(const TColGeom_HArray1OfBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HArray1OfBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HArray1OfBSplineCurve { - TColGeom_HArray1OfBSplineCurve* _get_reference() { - return (TColGeom_HArray1OfBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HArray1OfBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HArray1OfBSplineCurve) %extend TColGeom_HArray1OfBSplineCurve { %pythoncode { @@ -816,51 +772,7 @@ class TColGeom_HArray1OfBezierCurve : public MMgt_TShared { }; -%extend TColGeom_HArray1OfBezierCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HArray1OfBezierCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HArray1OfBezierCurve::Handle_TColGeom_HArray1OfBezierCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HArray1OfBezierCurve; -class Handle_TColGeom_HArray1OfBezierCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HArray1OfBezierCurve(); - Handle_TColGeom_HArray1OfBezierCurve(const Handle_TColGeom_HArray1OfBezierCurve &aHandle); - Handle_TColGeom_HArray1OfBezierCurve(const TColGeom_HArray1OfBezierCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HArray1OfBezierCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HArray1OfBezierCurve { - TColGeom_HArray1OfBezierCurve* _get_reference() { - return (TColGeom_HArray1OfBezierCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HArray1OfBezierCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HArray1OfBezierCurve) %extend TColGeom_HArray1OfBezierCurve { %pythoncode { @@ -937,51 +849,7 @@ class TColGeom_HArray1OfCurve : public MMgt_TShared { }; -%extend TColGeom_HArray1OfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HArray1OfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HArray1OfCurve::Handle_TColGeom_HArray1OfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HArray1OfCurve; -class Handle_TColGeom_HArray1OfCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HArray1OfCurve(); - Handle_TColGeom_HArray1OfCurve(const Handle_TColGeom_HArray1OfCurve &aHandle); - Handle_TColGeom_HArray1OfCurve(const TColGeom_HArray1OfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HArray1OfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HArray1OfCurve { - TColGeom_HArray1OfCurve* _get_reference() { - return (TColGeom_HArray1OfCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HArray1OfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HArray1OfCurve) %extend TColGeom_HArray1OfCurve { %pythoncode { @@ -1058,51 +926,7 @@ class TColGeom_HArray1OfSurface : public MMgt_TShared { }; -%extend TColGeom_HArray1OfSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HArray1OfSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HArray1OfSurface::Handle_TColGeom_HArray1OfSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HArray1OfSurface; -class Handle_TColGeom_HArray1OfSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HArray1OfSurface(); - Handle_TColGeom_HArray1OfSurface(const Handle_TColGeom_HArray1OfSurface &aHandle); - Handle_TColGeom_HArray1OfSurface(const TColGeom_HArray1OfSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HArray1OfSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HArray1OfSurface { - TColGeom_HArray1OfSurface* _get_reference() { - return (TColGeom_HArray1OfSurface*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HArray1OfSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HArray1OfSurface) %extend TColGeom_HArray1OfSurface { %pythoncode { @@ -1205,51 +1029,7 @@ class TColGeom_HArray2OfSurface : public MMgt_TShared { }; -%extend TColGeom_HArray2OfSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HArray2OfSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HArray2OfSurface::Handle_TColGeom_HArray2OfSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HArray2OfSurface; -class Handle_TColGeom_HArray2OfSurface : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HArray2OfSurface(); - Handle_TColGeom_HArray2OfSurface(const Handle_TColGeom_HArray2OfSurface &aHandle); - Handle_TColGeom_HArray2OfSurface(const TColGeom_HArray2OfSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HArray2OfSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HArray2OfSurface { - TColGeom_HArray2OfSurface* _get_reference() { - return (TColGeom_HArray2OfSurface*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HArray2OfSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HArray2OfSurface) %extend TColGeom_HArray2OfSurface { %pythoncode { @@ -1394,51 +1174,7 @@ class TColGeom_HSequenceOfBoundedCurve : public MMgt_TShared { }; -%extend TColGeom_HSequenceOfBoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HSequenceOfBoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HSequenceOfBoundedCurve::Handle_TColGeom_HSequenceOfBoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HSequenceOfBoundedCurve; -class Handle_TColGeom_HSequenceOfBoundedCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HSequenceOfBoundedCurve(); - Handle_TColGeom_HSequenceOfBoundedCurve(const Handle_TColGeom_HSequenceOfBoundedCurve &aHandle); - Handle_TColGeom_HSequenceOfBoundedCurve(const TColGeom_HSequenceOfBoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HSequenceOfBoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HSequenceOfBoundedCurve { - TColGeom_HSequenceOfBoundedCurve* _get_reference() { - return (TColGeom_HSequenceOfBoundedCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HSequenceOfBoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HSequenceOfBoundedCurve) %extend TColGeom_HSequenceOfBoundedCurve { %pythoncode { @@ -1583,51 +1319,7 @@ class TColGeom_HSequenceOfCurve : public MMgt_TShared { }; -%extend TColGeom_HSequenceOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_HSequenceOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_HSequenceOfCurve::Handle_TColGeom_HSequenceOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_HSequenceOfCurve; -class Handle_TColGeom_HSequenceOfCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom_HSequenceOfCurve(); - Handle_TColGeom_HSequenceOfCurve(const Handle_TColGeom_HSequenceOfCurve &aHandle); - Handle_TColGeom_HSequenceOfCurve(const TColGeom_HSequenceOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_HSequenceOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_HSequenceOfCurve { - TColGeom_HSequenceOfCurve* _get_reference() { - return (TColGeom_HSequenceOfCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_HSequenceOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_HSequenceOfCurve) %extend TColGeom_HSequenceOfCurve { %pythoncode { @@ -1654,51 +1346,7 @@ class TColGeom_SequenceNodeOfSequenceOfBoundedCurve : public TCollection_SeqNode }; -%extend TColGeom_SequenceNodeOfSequenceOfBoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve::Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve; -class Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve(); - Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve(const Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve &aHandle); - Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve(const TColGeom_SequenceNodeOfSequenceOfBoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve { - TColGeom_SequenceNodeOfSequenceOfBoundedCurve* _get_reference() { - return (TColGeom_SequenceNodeOfSequenceOfBoundedCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_SequenceNodeOfSequenceOfBoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_SequenceNodeOfSequenceOfBoundedCurve) %extend TColGeom_SequenceNodeOfSequenceOfBoundedCurve { %pythoncode { @@ -1725,51 +1373,7 @@ class TColGeom_SequenceNodeOfSequenceOfCurve : public TCollection_SeqNode { }; -%extend TColGeom_SequenceNodeOfSequenceOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_SequenceNodeOfSequenceOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_SequenceNodeOfSequenceOfCurve::Handle_TColGeom_SequenceNodeOfSequenceOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_SequenceNodeOfSequenceOfCurve; -class Handle_TColGeom_SequenceNodeOfSequenceOfCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColGeom_SequenceNodeOfSequenceOfCurve(); - Handle_TColGeom_SequenceNodeOfSequenceOfCurve(const Handle_TColGeom_SequenceNodeOfSequenceOfCurve &aHandle); - Handle_TColGeom_SequenceNodeOfSequenceOfCurve(const TColGeom_SequenceNodeOfSequenceOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_SequenceNodeOfSequenceOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_SequenceNodeOfSequenceOfCurve { - TColGeom_SequenceNodeOfSequenceOfCurve* _get_reference() { - return (TColGeom_SequenceNodeOfSequenceOfCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom_SequenceNodeOfSequenceOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_SequenceNodeOfSequenceOfCurve) %extend TColGeom_SequenceNodeOfSequenceOfCurve { %pythoncode { @@ -1796,51 +1400,7 @@ class TColGeom_SequenceNodeOfSequenceOfSurface : public TCollection_SeqNode { }; -%extend TColGeom_SequenceNodeOfSequenceOfSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom_SequenceNodeOfSequenceOfSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom_SequenceNodeOfSequenceOfSurface::Handle_TColGeom_SequenceNodeOfSequenceOfSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom_SequenceNodeOfSequenceOfSurface; -class Handle_TColGeom_SequenceNodeOfSequenceOfSurface : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColGeom_SequenceNodeOfSequenceOfSurface(); - Handle_TColGeom_SequenceNodeOfSequenceOfSurface(const Handle_TColGeom_SequenceNodeOfSequenceOfSurface &aHandle); - Handle_TColGeom_SequenceNodeOfSequenceOfSurface(const TColGeom_SequenceNodeOfSequenceOfSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom_SequenceNodeOfSequenceOfSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom_SequenceNodeOfSequenceOfSurface { - TColGeom_SequenceNodeOfSequenceOfSurface* _get_reference() { - return (TColGeom_SequenceNodeOfSequenceOfSurface*)$self->Access(); - } -}; - -%extend Handle_TColGeom_SequenceNodeOfSequenceOfSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom_SequenceNodeOfSequenceOfSurface) %extend TColGeom_SequenceNodeOfSequenceOfSurface { %pythoncode { diff --git a/src/SWIG_files/wrapper/TColGeom2d.i b/src/SWIG_files/wrapper/TColGeom2d.i index 5d61b9c64..abd5fb984 100644 --- a/src/SWIG_files/wrapper/TColGeom2d.i +++ b/src/SWIG_files/wrapper/TColGeom2d.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define TCOLGEOM2DDOCSTRING -"No docstring provided." +" +-Purpose : +The package TColGeom2d provides standard and +frequently used instantiations of generic classes from +the TCollection package with geometric objects from the Geom2d package. +" %enddef %module (package="OCC.Core", docstring=TCOLGEOM2DDOCSTRING) TColGeom2d @@ -34,31 +39,26 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TColGeom2d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TColGeom2d_HArray1OfBSplineCurve) +%wrap_handle(TColGeom2d_HArray1OfBezierCurve) +%wrap_handle(TColGeom2d_HArray1OfCurve) +%wrap_handle(TColGeom2d_HSequenceOfBoundedCurve) +%wrap_handle(TColGeom2d_HSequenceOfCurve) +%wrap_handle(TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve) +%wrap_handle(TColGeom2d_SequenceNodeOfSequenceOfCurve) +%wrap_handle(TColGeom2d_SequenceNodeOfSequenceOfGeometry) + %nodefaultctor TColGeom2d_Array1OfBSplineCurve; class TColGeom2d_Array1OfBSplineCurve { public: @@ -390,51 +390,7 @@ class TColGeom2d_HArray1OfBSplineCurve : public MMgt_TShared { }; -%extend TColGeom2d_HArray1OfBSplineCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_HArray1OfBSplineCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_HArray1OfBSplineCurve::Handle_TColGeom2d_HArray1OfBSplineCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_HArray1OfBSplineCurve; -class Handle_TColGeom2d_HArray1OfBSplineCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom2d_HArray1OfBSplineCurve(); - Handle_TColGeom2d_HArray1OfBSplineCurve(const Handle_TColGeom2d_HArray1OfBSplineCurve &aHandle); - Handle_TColGeom2d_HArray1OfBSplineCurve(const TColGeom2d_HArray1OfBSplineCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_HArray1OfBSplineCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_HArray1OfBSplineCurve { - TColGeom2d_HArray1OfBSplineCurve* _get_reference() { - return (TColGeom2d_HArray1OfBSplineCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_HArray1OfBSplineCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_HArray1OfBSplineCurve) %extend TColGeom2d_HArray1OfBSplineCurve { %pythoncode { @@ -511,51 +467,7 @@ class TColGeom2d_HArray1OfBezierCurve : public MMgt_TShared { }; -%extend TColGeom2d_HArray1OfBezierCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_HArray1OfBezierCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_HArray1OfBezierCurve::Handle_TColGeom2d_HArray1OfBezierCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_HArray1OfBezierCurve; -class Handle_TColGeom2d_HArray1OfBezierCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom2d_HArray1OfBezierCurve(); - Handle_TColGeom2d_HArray1OfBezierCurve(const Handle_TColGeom2d_HArray1OfBezierCurve &aHandle); - Handle_TColGeom2d_HArray1OfBezierCurve(const TColGeom2d_HArray1OfBezierCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_HArray1OfBezierCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_HArray1OfBezierCurve { - TColGeom2d_HArray1OfBezierCurve* _get_reference() { - return (TColGeom2d_HArray1OfBezierCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_HArray1OfBezierCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_HArray1OfBezierCurve) %extend TColGeom2d_HArray1OfBezierCurve { %pythoncode { @@ -632,51 +544,7 @@ class TColGeom2d_HArray1OfCurve : public MMgt_TShared { }; -%extend TColGeom2d_HArray1OfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_HArray1OfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_HArray1OfCurve::Handle_TColGeom2d_HArray1OfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_HArray1OfCurve; -class Handle_TColGeom2d_HArray1OfCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom2d_HArray1OfCurve(); - Handle_TColGeom2d_HArray1OfCurve(const Handle_TColGeom2d_HArray1OfCurve &aHandle); - Handle_TColGeom2d_HArray1OfCurve(const TColGeom2d_HArray1OfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_HArray1OfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_HArray1OfCurve { - TColGeom2d_HArray1OfCurve* _get_reference() { - return (TColGeom2d_HArray1OfCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_HArray1OfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_HArray1OfCurve) %extend TColGeom2d_HArray1OfCurve { %pythoncode { @@ -821,51 +689,7 @@ class TColGeom2d_HSequenceOfBoundedCurve : public MMgt_TShared { }; -%extend TColGeom2d_HSequenceOfBoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_HSequenceOfBoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_HSequenceOfBoundedCurve::Handle_TColGeom2d_HSequenceOfBoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_HSequenceOfBoundedCurve; -class Handle_TColGeom2d_HSequenceOfBoundedCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom2d_HSequenceOfBoundedCurve(); - Handle_TColGeom2d_HSequenceOfBoundedCurve(const Handle_TColGeom2d_HSequenceOfBoundedCurve &aHandle); - Handle_TColGeom2d_HSequenceOfBoundedCurve(const TColGeom2d_HSequenceOfBoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_HSequenceOfBoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_HSequenceOfBoundedCurve { - TColGeom2d_HSequenceOfBoundedCurve* _get_reference() { - return (TColGeom2d_HSequenceOfBoundedCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_HSequenceOfBoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_HSequenceOfBoundedCurve) %extend TColGeom2d_HSequenceOfBoundedCurve { %pythoncode { @@ -1010,51 +834,7 @@ class TColGeom2d_HSequenceOfCurve : public MMgt_TShared { }; -%extend TColGeom2d_HSequenceOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_HSequenceOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_HSequenceOfCurve::Handle_TColGeom2d_HSequenceOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_HSequenceOfCurve; -class Handle_TColGeom2d_HSequenceOfCurve : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColGeom2d_HSequenceOfCurve(); - Handle_TColGeom2d_HSequenceOfCurve(const Handle_TColGeom2d_HSequenceOfCurve &aHandle); - Handle_TColGeom2d_HSequenceOfCurve(const TColGeom2d_HSequenceOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_HSequenceOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_HSequenceOfCurve { - TColGeom2d_HSequenceOfCurve* _get_reference() { - return (TColGeom2d_HSequenceOfCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_HSequenceOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_HSequenceOfCurve) %extend TColGeom2d_HSequenceOfCurve { %pythoncode { @@ -1081,51 +861,7 @@ class TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve : public TCollection_SeqNo }; -%extend TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve::Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve; -class Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve(); - Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve(const Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve &aHandle); - Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve(const TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve { - TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve* _get_reference() { - return (TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve) %extend TColGeom2d_SequenceNodeOfSequenceOfBoundedCurve { %pythoncode { @@ -1152,51 +888,7 @@ class TColGeom2d_SequenceNodeOfSequenceOfCurve : public TCollection_SeqNode { }; -%extend TColGeom2d_SequenceNodeOfSequenceOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve::Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve; -class Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve(); - Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve(const Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve &aHandle); - Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve(const TColGeom2d_SequenceNodeOfSequenceOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve { - TColGeom2d_SequenceNodeOfSequenceOfCurve* _get_reference() { - return (TColGeom2d_SequenceNodeOfSequenceOfCurve*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_SequenceNodeOfSequenceOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_SequenceNodeOfSequenceOfCurve) %extend TColGeom2d_SequenceNodeOfSequenceOfCurve { %pythoncode { @@ -1223,51 +915,7 @@ class TColGeom2d_SequenceNodeOfSequenceOfGeometry : public TCollection_SeqNode { }; -%extend TColGeom2d_SequenceNodeOfSequenceOfGeometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry::Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry; -class Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry(); - Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry(const Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry &aHandle); - Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry(const TColGeom2d_SequenceNodeOfSequenceOfGeometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry { - TColGeom2d_SequenceNodeOfSequenceOfGeometry* _get_reference() { - return (TColGeom2d_SequenceNodeOfSequenceOfGeometry*)$self->Access(); - } -}; - -%extend Handle_TColGeom2d_SequenceNodeOfSequenceOfGeometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColGeom2d_SequenceNodeOfSequenceOfGeometry) %extend TColGeom2d_SequenceNodeOfSequenceOfGeometry { %pythoncode { diff --git a/src/SWIG_files/wrapper/TColQuantity.i b/src/SWIG_files/wrapper/TColQuantity.i index b761aa2aa..bfda3fbfe 100644 --- a/src/SWIG_files/wrapper/TColQuantity.i +++ b/src/SWIG_files/wrapper/TColQuantity.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define TCOLQUANTITYDOCSTRING -"No docstring provided." +"the classes of this package should be used +when exporting arrays of real representing lengths, +for having benefit of the unit conversion." %enddef %module (package="OCC.Core", docstring=TCOLQUANTITYDOCSTRING) TColQuantity @@ -34,31 +36,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TColQuantity_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TColQuantity_HArray1OfLength) +%wrap_handle(TColQuantity_HArray2OfLength) + %nodefaultctor TColQuantity_Array1OfLength; class TColQuantity_Array1OfLength { public: @@ -325,51 +316,7 @@ class TColQuantity_HArray1OfLength : public MMgt_TShared { }; -%extend TColQuantity_HArray1OfLength { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColQuantity_HArray1OfLength(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColQuantity_HArray1OfLength::Handle_TColQuantity_HArray1OfLength %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColQuantity_HArray1OfLength; -class Handle_TColQuantity_HArray1OfLength : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColQuantity_HArray1OfLength(); - Handle_TColQuantity_HArray1OfLength(const Handle_TColQuantity_HArray1OfLength &aHandle); - Handle_TColQuantity_HArray1OfLength(const TColQuantity_HArray1OfLength *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColQuantity_HArray1OfLength DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColQuantity_HArray1OfLength { - TColQuantity_HArray1OfLength* _get_reference() { - return (TColQuantity_HArray1OfLength*)$self->Access(); - } -}; - -%extend Handle_TColQuantity_HArray1OfLength { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColQuantity_HArray1OfLength) %extend TColQuantity_HArray1OfLength { %pythoncode { @@ -472,51 +419,7 @@ class TColQuantity_HArray2OfLength : public MMgt_TShared { }; -%extend TColQuantity_HArray2OfLength { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColQuantity_HArray2OfLength(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColQuantity_HArray2OfLength::Handle_TColQuantity_HArray2OfLength %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColQuantity_HArray2OfLength; -class Handle_TColQuantity_HArray2OfLength : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColQuantity_HArray2OfLength(); - Handle_TColQuantity_HArray2OfLength(const Handle_TColQuantity_HArray2OfLength &aHandle); - Handle_TColQuantity_HArray2OfLength(const TColQuantity_HArray2OfLength *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColQuantity_HArray2OfLength DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColQuantity_HArray2OfLength { - TColQuantity_HArray2OfLength* _get_reference() { - return (TColQuantity_HArray2OfLength*)$self->Access(); - } -}; - -%extend Handle_TColQuantity_HArray2OfLength { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColQuantity_HArray2OfLength) %extend TColQuantity_HArray2OfLength { %pythoncode { diff --git a/src/SWIG_files/wrapper/TColStd.i b/src/SWIG_files/wrapper/TColStd.i index 041898816..4af5ce78a 100644 --- a/src/SWIG_files/wrapper/TColStd.i +++ b/src/SWIG_files/wrapper/TColStd.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define TCOLSTDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=TCOLSTDDOCSTRING) TColStd @@ -34,31 +34,68 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TColStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TColStd_DataMapNodeOfDataMapOfAsciiStringInteger) +%wrap_handle(TColStd_DataMapNodeOfDataMapOfIntegerInteger) +%wrap_handle(TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger) +%wrap_handle(TColStd_DataMapNodeOfDataMapOfIntegerReal) +%wrap_handle(TColStd_DataMapNodeOfDataMapOfIntegerTransient) +%wrap_handle(TColStd_DataMapNodeOfDataMapOfStringInteger) +%wrap_handle(TColStd_DataMapNodeOfDataMapOfTransientTransient) +%wrap_handle(TColStd_HArray1OfAsciiString) +%wrap_handle(TColStd_HArray1OfBoolean) +%wrap_handle(TColStd_HArray1OfByte) +%wrap_handle(TColStd_HArray1OfCharacter) +%wrap_handle(TColStd_HArray1OfExtendedString) +%wrap_handle(TColStd_HArray1OfInteger) +%wrap_handle(TColStd_HArray1OfListOfInteger) +%wrap_handle(TColStd_HArray1OfReal) +%wrap_handle(TColStd_HArray1OfTransient) +%wrap_handle(TColStd_HArray2OfBoolean) +%wrap_handle(TColStd_HArray2OfCharacter) +%wrap_handle(TColStd_HArray2OfInteger) +%wrap_handle(TColStd_HArray2OfReal) +%wrap_handle(TColStd_HArray2OfTransient) +%wrap_handle(TColStd_HPackedMapOfInteger) +%wrap_handle(TColStd_HSequenceOfAsciiString) +%wrap_handle(TColStd_HSequenceOfExtendedString) +%wrap_handle(TColStd_HSequenceOfHAsciiString) +%wrap_handle(TColStd_HSequenceOfHExtendedString) +%wrap_handle(TColStd_HSequenceOfInteger) +%wrap_handle(TColStd_HSequenceOfReal) +%wrap_handle(TColStd_HSequenceOfTransient) +%wrap_handle(TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient) +%wrap_handle(TColStd_IndexedMapNodeOfIndexedMapOfInteger) +%wrap_handle(TColStd_IndexedMapNodeOfIndexedMapOfReal) +%wrap_handle(TColStd_IndexedMapNodeOfIndexedMapOfTransient) +%wrap_handle(TColStd_ListNodeOfListOfAsciiString) +%wrap_handle(TColStd_ListNodeOfListOfInteger) +%wrap_handle(TColStd_ListNodeOfListOfReal) +%wrap_handle(TColStd_ListNodeOfListOfTransient) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfAddress) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfAsciiString) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfBoolean) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfExtendedString) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfHAsciiString) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfHExtendedString) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfInteger) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfReal) +%wrap_handle(TColStd_SequenceNodeOfSequenceOfTransient) +%wrap_handle(TColStd_StdMapNodeOfMapOfAsciiString) +%wrap_handle(TColStd_StdMapNodeOfMapOfInteger) +%wrap_handle(TColStd_StdMapNodeOfMapOfReal) +%wrap_handle(TColStd_StdMapNodeOfMapOfTransient) + %nodefaultctor TColStd_Array1OfAsciiString; class TColStd_Array1OfAsciiString { public: @@ -1665,51 +1702,7 @@ class TColStd_DataMapNodeOfDataMapOfAsciiStringInteger : public TCollection_MapN }; -%extend TColStd_DataMapNodeOfDataMapOfAsciiStringInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger::Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger; -class Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger(); - Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger(const Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger(const TColStd_DataMapNodeOfDataMapOfAsciiStringInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger { - TColStd_DataMapNodeOfDataMapOfAsciiStringInteger* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfAsciiStringInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfAsciiStringInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfAsciiStringInteger) %extend TColStd_DataMapNodeOfDataMapOfAsciiStringInteger { %pythoncode { @@ -1758,51 +1751,7 @@ class TColStd_DataMapNodeOfDataMapOfIntegerInteger : public TCollection_MapNode }; -%extend TColStd_DataMapNodeOfDataMapOfIntegerInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger::Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger; -class Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger(); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger(const Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger(const TColStd_DataMapNodeOfDataMapOfIntegerInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger { - TColStd_DataMapNodeOfDataMapOfIntegerInteger* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfIntegerInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfIntegerInteger) %extend TColStd_DataMapNodeOfDataMapOfIntegerInteger { %pythoncode { @@ -1842,51 +1791,7 @@ class TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger : public TCollection_Ma }; -%extend TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger::Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger; -class Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger(); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger(const Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger(const TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger { - TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger) %extend TColStd_DataMapNodeOfDataMapOfIntegerListOfInteger { %pythoncode { @@ -1935,51 +1840,7 @@ class TColStd_DataMapNodeOfDataMapOfIntegerReal : public TCollection_MapNode { }; -%extend TColStd_DataMapNodeOfDataMapOfIntegerReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal::Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal; -class Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal(); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal(const Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal(const TColStd_DataMapNodeOfDataMapOfIntegerReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal { - TColStd_DataMapNodeOfDataMapOfIntegerReal* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfIntegerReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfIntegerReal) %extend TColStd_DataMapNodeOfDataMapOfIntegerReal { %pythoncode { @@ -2019,51 +1880,7 @@ class TColStd_DataMapNodeOfDataMapOfIntegerTransient : public TCollection_MapNod }; -%extend TColStd_DataMapNodeOfDataMapOfIntegerTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient::Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient; -class Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient(); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient(const Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient(const TColStd_DataMapNodeOfDataMapOfIntegerTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient { - TColStd_DataMapNodeOfDataMapOfIntegerTransient* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfIntegerTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfIntegerTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfIntegerTransient) %extend TColStd_DataMapNodeOfDataMapOfIntegerTransient { %pythoncode { @@ -2103,51 +1920,7 @@ class TColStd_DataMapNodeOfDataMapOfStringInteger : public TCollection_MapNode { }; -%extend TColStd_DataMapNodeOfDataMapOfStringInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfStringInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfStringInteger::Handle_TColStd_DataMapNodeOfDataMapOfStringInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfStringInteger; -class Handle_TColStd_DataMapNodeOfDataMapOfStringInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfStringInteger(); - Handle_TColStd_DataMapNodeOfDataMapOfStringInteger(const Handle_TColStd_DataMapNodeOfDataMapOfStringInteger &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfStringInteger(const TColStd_DataMapNodeOfDataMapOfStringInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfStringInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfStringInteger { - TColStd_DataMapNodeOfDataMapOfStringInteger* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfStringInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfStringInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfStringInteger) %extend TColStd_DataMapNodeOfDataMapOfStringInteger { %pythoncode { @@ -2178,51 +1951,7 @@ class TColStd_DataMapNodeOfDataMapOfTransientTransient : public TCollection_MapN }; -%extend TColStd_DataMapNodeOfDataMapOfTransientTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient::Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient; -class Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient(); - Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient(const Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient &aHandle); - Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient(const TColStd_DataMapNodeOfDataMapOfTransientTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient { - TColStd_DataMapNodeOfDataMapOfTransientTransient* _get_reference() { - return (TColStd_DataMapNodeOfDataMapOfTransientTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_DataMapNodeOfDataMapOfTransientTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_DataMapNodeOfDataMapOfTransientTransient) %extend TColStd_DataMapNodeOfDataMapOfTransientTransient { %pythoncode { @@ -2880,51 +2609,7 @@ class TColStd_HArray1OfAsciiString : public MMgt_TShared { }; -%extend TColStd_HArray1OfAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfAsciiString::Handle_TColStd_HArray1OfAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfAsciiString; -class Handle_TColStd_HArray1OfAsciiString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfAsciiString(); - Handle_TColStd_HArray1OfAsciiString(const Handle_TColStd_HArray1OfAsciiString &aHandle); - Handle_TColStd_HArray1OfAsciiString(const TColStd_HArray1OfAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfAsciiString { - TColStd_HArray1OfAsciiString* _get_reference() { - return (TColStd_HArray1OfAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfAsciiString) %extend TColStd_HArray1OfAsciiString { %pythoncode { @@ -3001,51 +2686,7 @@ class TColStd_HArray1OfBoolean : public MMgt_TShared { }; -%extend TColStd_HArray1OfBoolean { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfBoolean(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfBoolean::Handle_TColStd_HArray1OfBoolean %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfBoolean; -class Handle_TColStd_HArray1OfBoolean : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfBoolean(); - Handle_TColStd_HArray1OfBoolean(const Handle_TColStd_HArray1OfBoolean &aHandle); - Handle_TColStd_HArray1OfBoolean(const TColStd_HArray1OfBoolean *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfBoolean DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfBoolean { - TColStd_HArray1OfBoolean* _get_reference() { - return (TColStd_HArray1OfBoolean*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfBoolean { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfBoolean) %extend TColStd_HArray1OfBoolean { %pythoncode { @@ -3122,51 +2763,7 @@ class TColStd_HArray1OfByte : public MMgt_TShared { }; -%extend TColStd_HArray1OfByte { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfByte(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfByte::Handle_TColStd_HArray1OfByte %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfByte; -class Handle_TColStd_HArray1OfByte : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfByte(); - Handle_TColStd_HArray1OfByte(const Handle_TColStd_HArray1OfByte &aHandle); - Handle_TColStd_HArray1OfByte(const TColStd_HArray1OfByte *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfByte DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfByte { - TColStd_HArray1OfByte* _get_reference() { - return (TColStd_HArray1OfByte*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfByte { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfByte) %extend TColStd_HArray1OfByte { %pythoncode { @@ -3243,51 +2840,7 @@ class TColStd_HArray1OfCharacter : public MMgt_TShared { }; -%extend TColStd_HArray1OfCharacter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfCharacter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfCharacter::Handle_TColStd_HArray1OfCharacter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfCharacter; -class Handle_TColStd_HArray1OfCharacter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfCharacter(); - Handle_TColStd_HArray1OfCharacter(const Handle_TColStd_HArray1OfCharacter &aHandle); - Handle_TColStd_HArray1OfCharacter(const TColStd_HArray1OfCharacter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfCharacter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfCharacter { - TColStd_HArray1OfCharacter* _get_reference() { - return (TColStd_HArray1OfCharacter*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfCharacter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfCharacter) %extend TColStd_HArray1OfCharacter { %pythoncode { @@ -3364,51 +2917,7 @@ class TColStd_HArray1OfExtendedString : public MMgt_TShared { }; -%extend TColStd_HArray1OfExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfExtendedString::Handle_TColStd_HArray1OfExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfExtendedString; -class Handle_TColStd_HArray1OfExtendedString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfExtendedString(); - Handle_TColStd_HArray1OfExtendedString(const Handle_TColStd_HArray1OfExtendedString &aHandle); - Handle_TColStd_HArray1OfExtendedString(const TColStd_HArray1OfExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfExtendedString { - TColStd_HArray1OfExtendedString* _get_reference() { - return (TColStd_HArray1OfExtendedString*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfExtendedString) %extend TColStd_HArray1OfExtendedString { %pythoncode { @@ -3485,51 +2994,7 @@ class TColStd_HArray1OfInteger : public MMgt_TShared { }; -%extend TColStd_HArray1OfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfInteger::Handle_TColStd_HArray1OfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfInteger; -class Handle_TColStd_HArray1OfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfInteger(); - Handle_TColStd_HArray1OfInteger(const Handle_TColStd_HArray1OfInteger &aHandle); - Handle_TColStd_HArray1OfInteger(const TColStd_HArray1OfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfInteger { - TColStd_HArray1OfInteger* _get_reference() { - return (TColStd_HArray1OfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfInteger) %extend TColStd_HArray1OfInteger { %pythoncode { @@ -3606,51 +3071,7 @@ class TColStd_HArray1OfListOfInteger : public MMgt_TShared { }; -%extend TColStd_HArray1OfListOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfListOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfListOfInteger::Handle_TColStd_HArray1OfListOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfListOfInteger; -class Handle_TColStd_HArray1OfListOfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfListOfInteger(); - Handle_TColStd_HArray1OfListOfInteger(const Handle_TColStd_HArray1OfListOfInteger &aHandle); - Handle_TColStd_HArray1OfListOfInteger(const TColStd_HArray1OfListOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfListOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfListOfInteger { - TColStd_HArray1OfListOfInteger* _get_reference() { - return (TColStd_HArray1OfListOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfListOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfListOfInteger) %extend TColStd_HArray1OfListOfInteger { %pythoncode { @@ -3727,51 +3148,7 @@ class TColStd_HArray1OfReal : public MMgt_TShared { }; -%extend TColStd_HArray1OfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfReal::Handle_TColStd_HArray1OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfReal; -class Handle_TColStd_HArray1OfReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfReal(); - Handle_TColStd_HArray1OfReal(const Handle_TColStd_HArray1OfReal &aHandle); - Handle_TColStd_HArray1OfReal(const TColStd_HArray1OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfReal { - TColStd_HArray1OfReal* _get_reference() { - return (TColStd_HArray1OfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfReal) %extend TColStd_HArray1OfReal { %pythoncode { @@ -3848,51 +3225,7 @@ class TColStd_HArray1OfTransient : public MMgt_TShared { }; -%extend TColStd_HArray1OfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray1OfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray1OfTransient::Handle_TColStd_HArray1OfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray1OfTransient; -class Handle_TColStd_HArray1OfTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray1OfTransient(); - Handle_TColStd_HArray1OfTransient(const Handle_TColStd_HArray1OfTransient &aHandle); - Handle_TColStd_HArray1OfTransient(const TColStd_HArray1OfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray1OfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray1OfTransient { - TColStd_HArray1OfTransient* _get_reference() { - return (TColStd_HArray1OfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray1OfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray1OfTransient) %extend TColStd_HArray1OfTransient { %pythoncode { @@ -3995,51 +3328,7 @@ class TColStd_HArray2OfBoolean : public MMgt_TShared { }; -%extend TColStd_HArray2OfBoolean { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray2OfBoolean(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray2OfBoolean::Handle_TColStd_HArray2OfBoolean %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray2OfBoolean; -class Handle_TColStd_HArray2OfBoolean : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray2OfBoolean(); - Handle_TColStd_HArray2OfBoolean(const Handle_TColStd_HArray2OfBoolean &aHandle); - Handle_TColStd_HArray2OfBoolean(const TColStd_HArray2OfBoolean *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray2OfBoolean DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray2OfBoolean { - TColStd_HArray2OfBoolean* _get_reference() { - return (TColStd_HArray2OfBoolean*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray2OfBoolean { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray2OfBoolean) %extend TColStd_HArray2OfBoolean { %pythoncode { @@ -4142,51 +3431,7 @@ class TColStd_HArray2OfCharacter : public MMgt_TShared { }; -%extend TColStd_HArray2OfCharacter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray2OfCharacter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray2OfCharacter::Handle_TColStd_HArray2OfCharacter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray2OfCharacter; -class Handle_TColStd_HArray2OfCharacter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray2OfCharacter(); - Handle_TColStd_HArray2OfCharacter(const Handle_TColStd_HArray2OfCharacter &aHandle); - Handle_TColStd_HArray2OfCharacter(const TColStd_HArray2OfCharacter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray2OfCharacter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray2OfCharacter { - TColStd_HArray2OfCharacter* _get_reference() { - return (TColStd_HArray2OfCharacter*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray2OfCharacter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray2OfCharacter) %extend TColStd_HArray2OfCharacter { %pythoncode { @@ -4289,51 +3534,7 @@ class TColStd_HArray2OfInteger : public MMgt_TShared { }; -%extend TColStd_HArray2OfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray2OfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray2OfInteger::Handle_TColStd_HArray2OfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray2OfInteger; -class Handle_TColStd_HArray2OfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray2OfInteger(); - Handle_TColStd_HArray2OfInteger(const Handle_TColStd_HArray2OfInteger &aHandle); - Handle_TColStd_HArray2OfInteger(const TColStd_HArray2OfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray2OfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray2OfInteger { - TColStd_HArray2OfInteger* _get_reference() { - return (TColStd_HArray2OfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray2OfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray2OfInteger) %extend TColStd_HArray2OfInteger { %pythoncode { @@ -4436,55 +3637,11 @@ class TColStd_HArray2OfReal : public MMgt_TShared { }; +%make_alias(TColStd_HArray2OfReal) + %extend TColStd_HArray2OfReal { %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray2OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray2OfReal::Handle_TColStd_HArray2OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray2OfReal; -class Handle_TColStd_HArray2OfReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray2OfReal(); - Handle_TColStd_HArray2OfReal(const Handle_TColStd_HArray2OfReal &aHandle); - Handle_TColStd_HArray2OfReal(const TColStd_HArray2OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray2OfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray2OfReal { - TColStd_HArray2OfReal* _get_reference() { - return (TColStd_HArray2OfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray2OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend TColStd_HArray2OfReal { - %pythoncode { - __repr__ = _dumps_object + __repr__ = _dumps_object } }; %nodefaultctor TColStd_HArray2OfTransient; @@ -4583,51 +3740,7 @@ class TColStd_HArray2OfTransient : public MMgt_TShared { }; -%extend TColStd_HArray2OfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HArray2OfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HArray2OfTransient::Handle_TColStd_HArray2OfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HArray2OfTransient; -class Handle_TColStd_HArray2OfTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HArray2OfTransient(); - Handle_TColStd_HArray2OfTransient(const Handle_TColStd_HArray2OfTransient &aHandle); - Handle_TColStd_HArray2OfTransient(const TColStd_HArray2OfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HArray2OfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HArray2OfTransient { - TColStd_HArray2OfTransient* _get_reference() { - return (TColStd_HArray2OfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_HArray2OfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HArray2OfTransient) %extend TColStd_HArray2OfTransient { %pythoncode { @@ -4660,51 +3773,7 @@ class TColStd_HPackedMapOfInteger : public MMgt_TShared { }; -%extend TColStd_HPackedMapOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HPackedMapOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HPackedMapOfInteger::Handle_TColStd_HPackedMapOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HPackedMapOfInteger; -class Handle_TColStd_HPackedMapOfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HPackedMapOfInteger(); - Handle_TColStd_HPackedMapOfInteger(const Handle_TColStd_HPackedMapOfInteger &aHandle); - Handle_TColStd_HPackedMapOfInteger(const TColStd_HPackedMapOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HPackedMapOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HPackedMapOfInteger { - TColStd_HPackedMapOfInteger* _get_reference() { - return (TColStd_HPackedMapOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_HPackedMapOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HPackedMapOfInteger) %extend TColStd_HPackedMapOfInteger { %pythoncode { @@ -4849,51 +3918,7 @@ class TColStd_HSequenceOfAsciiString : public MMgt_TShared { }; -%extend TColStd_HSequenceOfAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfAsciiString::Handle_TColStd_HSequenceOfAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfAsciiString; -class Handle_TColStd_HSequenceOfAsciiString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfAsciiString(); - Handle_TColStd_HSequenceOfAsciiString(const Handle_TColStd_HSequenceOfAsciiString &aHandle); - Handle_TColStd_HSequenceOfAsciiString(const TColStd_HSequenceOfAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfAsciiString { - TColStd_HSequenceOfAsciiString* _get_reference() { - return (TColStd_HSequenceOfAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfAsciiString) %extend TColStd_HSequenceOfAsciiString { %pythoncode { @@ -5038,51 +4063,7 @@ class TColStd_HSequenceOfExtendedString : public MMgt_TShared { }; -%extend TColStd_HSequenceOfExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfExtendedString::Handle_TColStd_HSequenceOfExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfExtendedString; -class Handle_TColStd_HSequenceOfExtendedString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfExtendedString(); - Handle_TColStd_HSequenceOfExtendedString(const Handle_TColStd_HSequenceOfExtendedString &aHandle); - Handle_TColStd_HSequenceOfExtendedString(const TColStd_HSequenceOfExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfExtendedString { - TColStd_HSequenceOfExtendedString* _get_reference() { - return (TColStd_HSequenceOfExtendedString*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfExtendedString) %extend TColStd_HSequenceOfExtendedString { %pythoncode { @@ -5227,51 +4208,7 @@ class TColStd_HSequenceOfHAsciiString : public MMgt_TShared { }; -%extend TColStd_HSequenceOfHAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfHAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfHAsciiString::Handle_TColStd_HSequenceOfHAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfHAsciiString; -class Handle_TColStd_HSequenceOfHAsciiString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfHAsciiString(); - Handle_TColStd_HSequenceOfHAsciiString(const Handle_TColStd_HSequenceOfHAsciiString &aHandle); - Handle_TColStd_HSequenceOfHAsciiString(const TColStd_HSequenceOfHAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfHAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfHAsciiString { - TColStd_HSequenceOfHAsciiString* _get_reference() { - return (TColStd_HSequenceOfHAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfHAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfHAsciiString) %extend TColStd_HSequenceOfHAsciiString { %pythoncode { @@ -5416,51 +4353,7 @@ class TColStd_HSequenceOfHExtendedString : public MMgt_TShared { }; -%extend TColStd_HSequenceOfHExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfHExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfHExtendedString::Handle_TColStd_HSequenceOfHExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfHExtendedString; -class Handle_TColStd_HSequenceOfHExtendedString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfHExtendedString(); - Handle_TColStd_HSequenceOfHExtendedString(const Handle_TColStd_HSequenceOfHExtendedString &aHandle); - Handle_TColStd_HSequenceOfHExtendedString(const TColStd_HSequenceOfHExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfHExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfHExtendedString { - TColStd_HSequenceOfHExtendedString* _get_reference() { - return (TColStd_HSequenceOfHExtendedString*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfHExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfHExtendedString) %extend TColStd_HSequenceOfHExtendedString { %pythoncode { @@ -5605,51 +4498,7 @@ class TColStd_HSequenceOfInteger : public MMgt_TShared { }; -%extend TColStd_HSequenceOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfInteger::Handle_TColStd_HSequenceOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfInteger; -class Handle_TColStd_HSequenceOfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfInteger(); - Handle_TColStd_HSequenceOfInteger(const Handle_TColStd_HSequenceOfInteger &aHandle); - Handle_TColStd_HSequenceOfInteger(const TColStd_HSequenceOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfInteger { - TColStd_HSequenceOfInteger* _get_reference() { - return (TColStd_HSequenceOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfInteger) %extend TColStd_HSequenceOfInteger { %pythoncode { @@ -5794,51 +4643,7 @@ class TColStd_HSequenceOfReal : public MMgt_TShared { }; -%extend TColStd_HSequenceOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfReal::Handle_TColStd_HSequenceOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfReal; -class Handle_TColStd_HSequenceOfReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfReal(); - Handle_TColStd_HSequenceOfReal(const Handle_TColStd_HSequenceOfReal &aHandle); - Handle_TColStd_HSequenceOfReal(const TColStd_HSequenceOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfReal { - TColStd_HSequenceOfReal* _get_reference() { - return (TColStd_HSequenceOfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfReal) %extend TColStd_HSequenceOfReal { %pythoncode { @@ -5983,51 +4788,7 @@ class TColStd_HSequenceOfTransient : public MMgt_TShared { }; -%extend TColStd_HSequenceOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_HSequenceOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_HSequenceOfTransient::Handle_TColStd_HSequenceOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_HSequenceOfTransient; -class Handle_TColStd_HSequenceOfTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColStd_HSequenceOfTransient(); - Handle_TColStd_HSequenceOfTransient(const Handle_TColStd_HSequenceOfTransient &aHandle); - Handle_TColStd_HSequenceOfTransient(const TColStd_HSequenceOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_HSequenceOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_HSequenceOfTransient { - TColStd_HSequenceOfTransient* _get_reference() { - return (TColStd_HSequenceOfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_HSequenceOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_HSequenceOfTransient) %extend TColStd_HSequenceOfTransient { %pythoncode { @@ -6079,51 +4840,7 @@ class TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient : public TC }; -%extend TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient::Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient; -class Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient(); - Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient(const Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient &aHandle); - Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient(const TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient { - TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient* _get_reference() { - return (TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient) %extend TColStd_IndexedDataMapNodeOfIndexedDataMapOfTransientTransient { %pythoncode { @@ -6293,51 +5010,7 @@ class TColStd_IndexedMapNodeOfIndexedMapOfInteger : public TCollection_MapNode { }; -%extend TColStd_IndexedMapNodeOfIndexedMapOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger::Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger; -class Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger(); - Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger(const Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger &aHandle); - Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger(const TColStd_IndexedMapNodeOfIndexedMapOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger { - TColStd_IndexedMapNodeOfIndexedMapOfInteger* _get_reference() { - return (TColStd_IndexedMapNodeOfIndexedMapOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_IndexedMapNodeOfIndexedMapOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_IndexedMapNodeOfIndexedMapOfInteger) %extend TColStd_IndexedMapNodeOfIndexedMapOfInteger { %pythoncode { @@ -6392,51 +5065,7 @@ class TColStd_IndexedMapNodeOfIndexedMapOfReal : public TCollection_MapNode { }; -%extend TColStd_IndexedMapNodeOfIndexedMapOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal::Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal; -class Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal(); - Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal(const Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal &aHandle); - Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal(const TColStd_IndexedMapNodeOfIndexedMapOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal { - TColStd_IndexedMapNodeOfIndexedMapOfReal* _get_reference() { - return (TColStd_IndexedMapNodeOfIndexedMapOfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_IndexedMapNodeOfIndexedMapOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_IndexedMapNodeOfIndexedMapOfReal) %extend TColStd_IndexedMapNodeOfIndexedMapOfReal { %pythoncode { @@ -6482,51 +5111,7 @@ class TColStd_IndexedMapNodeOfIndexedMapOfTransient : public TCollection_MapNode }; -%extend TColStd_IndexedMapNodeOfIndexedMapOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient::Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient; -class Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient(); - Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient(const Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient &aHandle); - Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient(const TColStd_IndexedMapNodeOfIndexedMapOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient { - TColStd_IndexedMapNodeOfIndexedMapOfTransient* _get_reference() { - return (TColStd_IndexedMapNodeOfIndexedMapOfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_IndexedMapNodeOfIndexedMapOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_IndexedMapNodeOfIndexedMapOfTransient) %extend TColStd_IndexedMapNodeOfIndexedMapOfTransient { %pythoncode { @@ -6968,51 +5553,7 @@ class TColStd_ListNodeOfListOfAsciiString : public TCollection_MapNode { }; -%extend TColStd_ListNodeOfListOfAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_ListNodeOfListOfAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_ListNodeOfListOfAsciiString::Handle_TColStd_ListNodeOfListOfAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_ListNodeOfListOfAsciiString; -class Handle_TColStd_ListNodeOfListOfAsciiString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_ListNodeOfListOfAsciiString(); - Handle_TColStd_ListNodeOfListOfAsciiString(const Handle_TColStd_ListNodeOfListOfAsciiString &aHandle); - Handle_TColStd_ListNodeOfListOfAsciiString(const TColStd_ListNodeOfListOfAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_ListNodeOfListOfAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_ListNodeOfListOfAsciiString { - TColStd_ListNodeOfListOfAsciiString* _get_reference() { - return (TColStd_ListNodeOfListOfAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_ListNodeOfListOfAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_ListNodeOfListOfAsciiString) %extend TColStd_ListNodeOfListOfAsciiString { %pythoncode { @@ -7046,51 +5587,7 @@ class TColStd_ListNodeOfListOfInteger : public TCollection_MapNode { }; -%extend TColStd_ListNodeOfListOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_ListNodeOfListOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_ListNodeOfListOfInteger::Handle_TColStd_ListNodeOfListOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_ListNodeOfListOfInteger; -class Handle_TColStd_ListNodeOfListOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_ListNodeOfListOfInteger(); - Handle_TColStd_ListNodeOfListOfInteger(const Handle_TColStd_ListNodeOfListOfInteger &aHandle); - Handle_TColStd_ListNodeOfListOfInteger(const TColStd_ListNodeOfListOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_ListNodeOfListOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_ListNodeOfListOfInteger { - TColStd_ListNodeOfListOfInteger* _get_reference() { - return (TColStd_ListNodeOfListOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_ListNodeOfListOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_ListNodeOfListOfInteger) %extend TColStd_ListNodeOfListOfInteger { %pythoncode { @@ -7124,51 +5621,7 @@ class TColStd_ListNodeOfListOfReal : public TCollection_MapNode { }; -%extend TColStd_ListNodeOfListOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_ListNodeOfListOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_ListNodeOfListOfReal::Handle_TColStd_ListNodeOfListOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_ListNodeOfListOfReal; -class Handle_TColStd_ListNodeOfListOfReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_ListNodeOfListOfReal(); - Handle_TColStd_ListNodeOfListOfReal(const Handle_TColStd_ListNodeOfListOfReal &aHandle); - Handle_TColStd_ListNodeOfListOfReal(const TColStd_ListNodeOfListOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_ListNodeOfListOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_ListNodeOfListOfReal { - TColStd_ListNodeOfListOfReal* _get_reference() { - return (TColStd_ListNodeOfListOfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_ListNodeOfListOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_ListNodeOfListOfReal) %extend TColStd_ListNodeOfListOfReal { %pythoncode { @@ -7193,51 +5646,7 @@ class TColStd_ListNodeOfListOfTransient : public TCollection_MapNode { }; -%extend TColStd_ListNodeOfListOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_ListNodeOfListOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_ListNodeOfListOfTransient::Handle_TColStd_ListNodeOfListOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_ListNodeOfListOfTransient; -class Handle_TColStd_ListNodeOfListOfTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_ListNodeOfListOfTransient(); - Handle_TColStd_ListNodeOfListOfTransient(const Handle_TColStd_ListNodeOfListOfTransient &aHandle); - Handle_TColStd_ListNodeOfListOfTransient(const TColStd_ListNodeOfListOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_ListNodeOfListOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_ListNodeOfListOfTransient { - TColStd_ListNodeOfListOfTransient* _get_reference() { - return (TColStd_ListNodeOfListOfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_ListNodeOfListOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_ListNodeOfListOfTransient) %extend TColStd_ListNodeOfListOfTransient { %pythoncode { @@ -8345,51 +6754,7 @@ class TColStd_SequenceNodeOfSequenceOfAddress : public TCollection_SeqNode { }; -%extend TColStd_SequenceNodeOfSequenceOfAddress { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfAddress(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfAddress::Handle_TColStd_SequenceNodeOfSequenceOfAddress %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfAddress; -class Handle_TColStd_SequenceNodeOfSequenceOfAddress : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfAddress(); - Handle_TColStd_SequenceNodeOfSequenceOfAddress(const Handle_TColStd_SequenceNodeOfSequenceOfAddress &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfAddress(const TColStd_SequenceNodeOfSequenceOfAddress *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfAddress DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfAddress { - TColStd_SequenceNodeOfSequenceOfAddress* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfAddress*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfAddress { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfAddress) %extend TColStd_SequenceNodeOfSequenceOfAddress { %pythoncode { @@ -8416,51 +6781,7 @@ class TColStd_SequenceNodeOfSequenceOfAsciiString : public TCollection_SeqNode { }; -%extend TColStd_SequenceNodeOfSequenceOfAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfAsciiString::Handle_TColStd_SequenceNodeOfSequenceOfAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfAsciiString; -class Handle_TColStd_SequenceNodeOfSequenceOfAsciiString : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfAsciiString(); - Handle_TColStd_SequenceNodeOfSequenceOfAsciiString(const Handle_TColStd_SequenceNodeOfSequenceOfAsciiString &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfAsciiString(const TColStd_SequenceNodeOfSequenceOfAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfAsciiString { - TColStd_SequenceNodeOfSequenceOfAsciiString* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfAsciiString) %extend TColStd_SequenceNodeOfSequenceOfAsciiString { %pythoncode { @@ -8496,51 +6817,7 @@ class TColStd_SequenceNodeOfSequenceOfBoolean : public TCollection_SeqNode { }; -%extend TColStd_SequenceNodeOfSequenceOfBoolean { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfBoolean(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfBoolean::Handle_TColStd_SequenceNodeOfSequenceOfBoolean %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfBoolean; -class Handle_TColStd_SequenceNodeOfSequenceOfBoolean : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfBoolean(); - Handle_TColStd_SequenceNodeOfSequenceOfBoolean(const Handle_TColStd_SequenceNodeOfSequenceOfBoolean &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfBoolean(const TColStd_SequenceNodeOfSequenceOfBoolean *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfBoolean DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfBoolean { - TColStd_SequenceNodeOfSequenceOfBoolean* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfBoolean*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfBoolean { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfBoolean) %extend TColStd_SequenceNodeOfSequenceOfBoolean { %pythoncode { @@ -8567,51 +6844,7 @@ class TColStd_SequenceNodeOfSequenceOfExtendedString : public TCollection_SeqNod }; -%extend TColStd_SequenceNodeOfSequenceOfExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfExtendedString::Handle_TColStd_SequenceNodeOfSequenceOfExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfExtendedString; -class Handle_TColStd_SequenceNodeOfSequenceOfExtendedString : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfExtendedString(); - Handle_TColStd_SequenceNodeOfSequenceOfExtendedString(const Handle_TColStd_SequenceNodeOfSequenceOfExtendedString &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfExtendedString(const TColStd_SequenceNodeOfSequenceOfExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfExtendedString { - TColStd_SequenceNodeOfSequenceOfExtendedString* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfExtendedString*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfExtendedString) %extend TColStd_SequenceNodeOfSequenceOfExtendedString { %pythoncode { @@ -8638,51 +6871,7 @@ class TColStd_SequenceNodeOfSequenceOfHAsciiString : public TCollection_SeqNode }; -%extend TColStd_SequenceNodeOfSequenceOfHAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString::Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString; -class Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString(); - Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString(const Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString(const TColStd_SequenceNodeOfSequenceOfHAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString { - TColStd_SequenceNodeOfSequenceOfHAsciiString* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfHAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfHAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfHAsciiString) %extend TColStd_SequenceNodeOfSequenceOfHAsciiString { %pythoncode { @@ -8709,51 +6898,7 @@ class TColStd_SequenceNodeOfSequenceOfHExtendedString : public TCollection_SeqNo }; -%extend TColStd_SequenceNodeOfSequenceOfHExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString::Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString; -class Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString(); - Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString(const Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString(const TColStd_SequenceNodeOfSequenceOfHExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString { - TColStd_SequenceNodeOfSequenceOfHExtendedString* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfHExtendedString*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfHExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfHExtendedString) %extend TColStd_SequenceNodeOfSequenceOfHExtendedString { %pythoncode { @@ -8789,51 +6934,7 @@ class TColStd_SequenceNodeOfSequenceOfInteger : public TCollection_SeqNode { }; -%extend TColStd_SequenceNodeOfSequenceOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfInteger::Handle_TColStd_SequenceNodeOfSequenceOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfInteger; -class Handle_TColStd_SequenceNodeOfSequenceOfInteger : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfInteger(); - Handle_TColStd_SequenceNodeOfSequenceOfInteger(const Handle_TColStd_SequenceNodeOfSequenceOfInteger &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfInteger(const TColStd_SequenceNodeOfSequenceOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfInteger { - TColStd_SequenceNodeOfSequenceOfInteger* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfInteger) %extend TColStd_SequenceNodeOfSequenceOfInteger { %pythoncode { @@ -8869,51 +6970,7 @@ class TColStd_SequenceNodeOfSequenceOfReal : public TCollection_SeqNode { }; -%extend TColStd_SequenceNodeOfSequenceOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfReal::Handle_TColStd_SequenceNodeOfSequenceOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfReal; -class Handle_TColStd_SequenceNodeOfSequenceOfReal : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfReal(); - Handle_TColStd_SequenceNodeOfSequenceOfReal(const Handle_TColStd_SequenceNodeOfSequenceOfReal &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfReal(const TColStd_SequenceNodeOfSequenceOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfReal { - TColStd_SequenceNodeOfSequenceOfReal* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfReal) %extend TColStd_SequenceNodeOfSequenceOfReal { %pythoncode { @@ -8940,51 +6997,7 @@ class TColStd_SequenceNodeOfSequenceOfTransient : public TCollection_SeqNode { }; -%extend TColStd_SequenceNodeOfSequenceOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_SequenceNodeOfSequenceOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_SequenceNodeOfSequenceOfTransient::Handle_TColStd_SequenceNodeOfSequenceOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_SequenceNodeOfSequenceOfTransient; -class Handle_TColStd_SequenceNodeOfSequenceOfTransient : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColStd_SequenceNodeOfSequenceOfTransient(); - Handle_TColStd_SequenceNodeOfSequenceOfTransient(const Handle_TColStd_SequenceNodeOfSequenceOfTransient &aHandle); - Handle_TColStd_SequenceNodeOfSequenceOfTransient(const TColStd_SequenceNodeOfSequenceOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_SequenceNodeOfSequenceOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_SequenceNodeOfSequenceOfTransient { - TColStd_SequenceNodeOfSequenceOfTransient* _get_reference() { - return (TColStd_SequenceNodeOfSequenceOfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_SequenceNodeOfSequenceOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_SequenceNodeOfSequenceOfTransient) %extend TColStd_SequenceNodeOfSequenceOfTransient { %pythoncode { @@ -10296,51 +8309,7 @@ class TColStd_StdMapNodeOfMapOfAsciiString : public TCollection_MapNode { }; -%extend TColStd_StdMapNodeOfMapOfAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_StdMapNodeOfMapOfAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_StdMapNodeOfMapOfAsciiString::Handle_TColStd_StdMapNodeOfMapOfAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_StdMapNodeOfMapOfAsciiString; -class Handle_TColStd_StdMapNodeOfMapOfAsciiString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_StdMapNodeOfMapOfAsciiString(); - Handle_TColStd_StdMapNodeOfMapOfAsciiString(const Handle_TColStd_StdMapNodeOfMapOfAsciiString &aHandle); - Handle_TColStd_StdMapNodeOfMapOfAsciiString(const TColStd_StdMapNodeOfMapOfAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_StdMapNodeOfMapOfAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_StdMapNodeOfMapOfAsciiString { - TColStd_StdMapNodeOfMapOfAsciiString* _get_reference() { - return (TColStd_StdMapNodeOfMapOfAsciiString*)$self->Access(); - } -}; - -%extend Handle_TColStd_StdMapNodeOfMapOfAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_StdMapNodeOfMapOfAsciiString) %extend TColStd_StdMapNodeOfMapOfAsciiString { %pythoncode { @@ -10374,51 +8343,7 @@ class TColStd_StdMapNodeOfMapOfInteger : public TCollection_MapNode { }; -%extend TColStd_StdMapNodeOfMapOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_StdMapNodeOfMapOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_StdMapNodeOfMapOfInteger::Handle_TColStd_StdMapNodeOfMapOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_StdMapNodeOfMapOfInteger; -class Handle_TColStd_StdMapNodeOfMapOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_StdMapNodeOfMapOfInteger(); - Handle_TColStd_StdMapNodeOfMapOfInteger(const Handle_TColStd_StdMapNodeOfMapOfInteger &aHandle); - Handle_TColStd_StdMapNodeOfMapOfInteger(const TColStd_StdMapNodeOfMapOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_StdMapNodeOfMapOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_StdMapNodeOfMapOfInteger { - TColStd_StdMapNodeOfMapOfInteger* _get_reference() { - return (TColStd_StdMapNodeOfMapOfInteger*)$self->Access(); - } -}; - -%extend Handle_TColStd_StdMapNodeOfMapOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_StdMapNodeOfMapOfInteger) %extend TColStd_StdMapNodeOfMapOfInteger { %pythoncode { @@ -10452,51 +8377,7 @@ class TColStd_StdMapNodeOfMapOfReal : public TCollection_MapNode { }; -%extend TColStd_StdMapNodeOfMapOfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_StdMapNodeOfMapOfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_StdMapNodeOfMapOfReal::Handle_TColStd_StdMapNodeOfMapOfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_StdMapNodeOfMapOfReal; -class Handle_TColStd_StdMapNodeOfMapOfReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_StdMapNodeOfMapOfReal(); - Handle_TColStd_StdMapNodeOfMapOfReal(const Handle_TColStd_StdMapNodeOfMapOfReal &aHandle); - Handle_TColStd_StdMapNodeOfMapOfReal(const TColStd_StdMapNodeOfMapOfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_StdMapNodeOfMapOfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_StdMapNodeOfMapOfReal { - TColStd_StdMapNodeOfMapOfReal* _get_reference() { - return (TColStd_StdMapNodeOfMapOfReal*)$self->Access(); - } -}; - -%extend Handle_TColStd_StdMapNodeOfMapOfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_StdMapNodeOfMapOfReal) %extend TColStd_StdMapNodeOfMapOfReal { %pythoncode { @@ -10521,51 +8402,7 @@ class TColStd_StdMapNodeOfMapOfTransient : public TCollection_MapNode { }; -%extend TColStd_StdMapNodeOfMapOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColStd_StdMapNodeOfMapOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColStd_StdMapNodeOfMapOfTransient::Handle_TColStd_StdMapNodeOfMapOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColStd_StdMapNodeOfMapOfTransient; -class Handle_TColStd_StdMapNodeOfMapOfTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TColStd_StdMapNodeOfMapOfTransient(); - Handle_TColStd_StdMapNodeOfMapOfTransient(const Handle_TColStd_StdMapNodeOfMapOfTransient &aHandle); - Handle_TColStd_StdMapNodeOfMapOfTransient(const TColStd_StdMapNodeOfMapOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColStd_StdMapNodeOfMapOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColStd_StdMapNodeOfMapOfTransient { - TColStd_StdMapNodeOfMapOfTransient* _get_reference() { - return (TColStd_StdMapNodeOfMapOfTransient*)$self->Access(); - } -}; - -%extend Handle_TColStd_StdMapNodeOfMapOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColStd_StdMapNodeOfMapOfTransient) %extend TColStd_StdMapNodeOfMapOfTransient { %pythoncode { diff --git a/src/SWIG_files/wrapper/TColgp.i b/src/SWIG_files/wrapper/TColgp.i index e662b3363..baf5bc937 100644 --- a/src/SWIG_files/wrapper/TColgp.i +++ b/src/SWIG_files/wrapper/TColgp.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define TCOLGPDOCSTRING -"No docstring provided." +" +-Purpose : This package provides standard and frequently +used instantiations of generic classes from the +TCollection package with geometric objects from the gp package. +" %enddef %module (package="OCC.Core", docstring=TCOLGPDOCSTRING) TColgp @@ -34,31 +38,56 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TColgp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TColgp_HArray1OfCirc2d) +%wrap_handle(TColgp_HArray1OfDir) +%wrap_handle(TColgp_HArray1OfDir2d) +%wrap_handle(TColgp_HArray1OfLin2d) +%wrap_handle(TColgp_HArray1OfPnt) +%wrap_handle(TColgp_HArray1OfPnt2d) +%wrap_handle(TColgp_HArray1OfVec) +%wrap_handle(TColgp_HArray1OfVec2d) +%wrap_handle(TColgp_HArray1OfXY) +%wrap_handle(TColgp_HArray1OfXYZ) +%wrap_handle(TColgp_HArray2OfCirc2d) +%wrap_handle(TColgp_HArray2OfDir) +%wrap_handle(TColgp_HArray2OfDir2d) +%wrap_handle(TColgp_HArray2OfLin2d) +%wrap_handle(TColgp_HArray2OfPnt) +%wrap_handle(TColgp_HArray2OfPnt2d) +%wrap_handle(TColgp_HArray2OfVec) +%wrap_handle(TColgp_HArray2OfVec2d) +%wrap_handle(TColgp_HArray2OfXY) +%wrap_handle(TColgp_HArray2OfXYZ) +%wrap_handle(TColgp_HSequenceOfDir) +%wrap_handle(TColgp_HSequenceOfDir2d) +%wrap_handle(TColgp_HSequenceOfPnt) +%wrap_handle(TColgp_HSequenceOfPnt2d) +%wrap_handle(TColgp_HSequenceOfVec) +%wrap_handle(TColgp_HSequenceOfVec2d) +%wrap_handle(TColgp_HSequenceOfXY) +%wrap_handle(TColgp_HSequenceOfXYZ) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfAx1) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfDir) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfDir2d) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfPnt) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfPnt2d) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfVec) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfVec2d) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfXY) +%wrap_handle(TColgp_SequenceNodeOfSequenceOfXYZ) + %nodefaultctor TColgp_Array1OfCirc2d; class TColgp_Array1OfCirc2d { public: @@ -2089,51 +2118,7 @@ class TColgp_HArray1OfCirc2d : public MMgt_TShared { }; -%extend TColgp_HArray1OfCirc2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfCirc2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfCirc2d::Handle_TColgp_HArray1OfCirc2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfCirc2d; -class Handle_TColgp_HArray1OfCirc2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfCirc2d(); - Handle_TColgp_HArray1OfCirc2d(const Handle_TColgp_HArray1OfCirc2d &aHandle); - Handle_TColgp_HArray1OfCirc2d(const TColgp_HArray1OfCirc2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfCirc2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfCirc2d { - TColgp_HArray1OfCirc2d* _get_reference() { - return (TColgp_HArray1OfCirc2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfCirc2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfCirc2d) %extend TColgp_HArray1OfCirc2d { %pythoncode { @@ -2210,51 +2195,7 @@ class TColgp_HArray1OfDir : public MMgt_TShared { }; -%extend TColgp_HArray1OfDir { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfDir(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfDir::Handle_TColgp_HArray1OfDir %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfDir; -class Handle_TColgp_HArray1OfDir : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfDir(); - Handle_TColgp_HArray1OfDir(const Handle_TColgp_HArray1OfDir &aHandle); - Handle_TColgp_HArray1OfDir(const TColgp_HArray1OfDir *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfDir DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfDir { - TColgp_HArray1OfDir* _get_reference() { - return (TColgp_HArray1OfDir*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfDir { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfDir) %extend TColgp_HArray1OfDir { %pythoncode { @@ -2331,51 +2272,7 @@ class TColgp_HArray1OfDir2d : public MMgt_TShared { }; -%extend TColgp_HArray1OfDir2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfDir2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfDir2d::Handle_TColgp_HArray1OfDir2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfDir2d; -class Handle_TColgp_HArray1OfDir2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfDir2d(); - Handle_TColgp_HArray1OfDir2d(const Handle_TColgp_HArray1OfDir2d &aHandle); - Handle_TColgp_HArray1OfDir2d(const TColgp_HArray1OfDir2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfDir2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfDir2d { - TColgp_HArray1OfDir2d* _get_reference() { - return (TColgp_HArray1OfDir2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfDir2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfDir2d) %extend TColgp_HArray1OfDir2d { %pythoncode { @@ -2452,51 +2349,7 @@ class TColgp_HArray1OfLin2d : public MMgt_TShared { }; -%extend TColgp_HArray1OfLin2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfLin2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfLin2d::Handle_TColgp_HArray1OfLin2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfLin2d; -class Handle_TColgp_HArray1OfLin2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfLin2d(); - Handle_TColgp_HArray1OfLin2d(const Handle_TColgp_HArray1OfLin2d &aHandle); - Handle_TColgp_HArray1OfLin2d(const TColgp_HArray1OfLin2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfLin2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfLin2d { - TColgp_HArray1OfLin2d* _get_reference() { - return (TColgp_HArray1OfLin2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfLin2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfLin2d) %extend TColgp_HArray1OfLin2d { %pythoncode { @@ -2573,51 +2426,7 @@ class TColgp_HArray1OfPnt : public MMgt_TShared { }; -%extend TColgp_HArray1OfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfPnt::Handle_TColgp_HArray1OfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfPnt; -class Handle_TColgp_HArray1OfPnt : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfPnt(); - Handle_TColgp_HArray1OfPnt(const Handle_TColgp_HArray1OfPnt &aHandle); - Handle_TColgp_HArray1OfPnt(const TColgp_HArray1OfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfPnt { - TColgp_HArray1OfPnt* _get_reference() { - return (TColgp_HArray1OfPnt*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfPnt) %extend TColgp_HArray1OfPnt { %pythoncode { @@ -2694,51 +2503,7 @@ class TColgp_HArray1OfPnt2d : public MMgt_TShared { }; -%extend TColgp_HArray1OfPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfPnt2d::Handle_TColgp_HArray1OfPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfPnt2d; -class Handle_TColgp_HArray1OfPnt2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfPnt2d(); - Handle_TColgp_HArray1OfPnt2d(const Handle_TColgp_HArray1OfPnt2d &aHandle); - Handle_TColgp_HArray1OfPnt2d(const TColgp_HArray1OfPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfPnt2d { - TColgp_HArray1OfPnt2d* _get_reference() { - return (TColgp_HArray1OfPnt2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfPnt2d) %extend TColgp_HArray1OfPnt2d { %pythoncode { @@ -2815,51 +2580,7 @@ class TColgp_HArray1OfVec : public MMgt_TShared { }; -%extend TColgp_HArray1OfVec { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfVec(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfVec::Handle_TColgp_HArray1OfVec %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfVec; -class Handle_TColgp_HArray1OfVec : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfVec(); - Handle_TColgp_HArray1OfVec(const Handle_TColgp_HArray1OfVec &aHandle); - Handle_TColgp_HArray1OfVec(const TColgp_HArray1OfVec *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfVec DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfVec { - TColgp_HArray1OfVec* _get_reference() { - return (TColgp_HArray1OfVec*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfVec { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfVec) %extend TColgp_HArray1OfVec { %pythoncode { @@ -2936,51 +2657,7 @@ class TColgp_HArray1OfVec2d : public MMgt_TShared { }; -%extend TColgp_HArray1OfVec2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfVec2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfVec2d::Handle_TColgp_HArray1OfVec2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfVec2d; -class Handle_TColgp_HArray1OfVec2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfVec2d(); - Handle_TColgp_HArray1OfVec2d(const Handle_TColgp_HArray1OfVec2d &aHandle); - Handle_TColgp_HArray1OfVec2d(const TColgp_HArray1OfVec2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfVec2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfVec2d { - TColgp_HArray1OfVec2d* _get_reference() { - return (TColgp_HArray1OfVec2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfVec2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfVec2d) %extend TColgp_HArray1OfVec2d { %pythoncode { @@ -3057,51 +2734,7 @@ class TColgp_HArray1OfXY : public MMgt_TShared { }; -%extend TColgp_HArray1OfXY { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfXY(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfXY::Handle_TColgp_HArray1OfXY %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfXY; -class Handle_TColgp_HArray1OfXY : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfXY(); - Handle_TColgp_HArray1OfXY(const Handle_TColgp_HArray1OfXY &aHandle); - Handle_TColgp_HArray1OfXY(const TColgp_HArray1OfXY *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfXY DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfXY { - TColgp_HArray1OfXY* _get_reference() { - return (TColgp_HArray1OfXY*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfXY { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfXY) %extend TColgp_HArray1OfXY { %pythoncode { @@ -3178,51 +2811,7 @@ class TColgp_HArray1OfXYZ : public MMgt_TShared { }; -%extend TColgp_HArray1OfXYZ { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray1OfXYZ(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray1OfXYZ::Handle_TColgp_HArray1OfXYZ %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray1OfXYZ; -class Handle_TColgp_HArray1OfXYZ : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray1OfXYZ(); - Handle_TColgp_HArray1OfXYZ(const Handle_TColgp_HArray1OfXYZ &aHandle); - Handle_TColgp_HArray1OfXYZ(const TColgp_HArray1OfXYZ *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray1OfXYZ DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray1OfXYZ { - TColgp_HArray1OfXYZ* _get_reference() { - return (TColgp_HArray1OfXYZ*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray1OfXYZ { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray1OfXYZ) %extend TColgp_HArray1OfXYZ { %pythoncode { @@ -3325,51 +2914,7 @@ class TColgp_HArray2OfCirc2d : public MMgt_TShared { }; -%extend TColgp_HArray2OfCirc2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfCirc2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfCirc2d::Handle_TColgp_HArray2OfCirc2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfCirc2d; -class Handle_TColgp_HArray2OfCirc2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfCirc2d(); - Handle_TColgp_HArray2OfCirc2d(const Handle_TColgp_HArray2OfCirc2d &aHandle); - Handle_TColgp_HArray2OfCirc2d(const TColgp_HArray2OfCirc2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfCirc2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfCirc2d { - TColgp_HArray2OfCirc2d* _get_reference() { - return (TColgp_HArray2OfCirc2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfCirc2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfCirc2d) %extend TColgp_HArray2OfCirc2d { %pythoncode { @@ -3472,51 +3017,7 @@ class TColgp_HArray2OfDir : public MMgt_TShared { }; -%extend TColgp_HArray2OfDir { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfDir(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfDir::Handle_TColgp_HArray2OfDir %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfDir; -class Handle_TColgp_HArray2OfDir : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfDir(); - Handle_TColgp_HArray2OfDir(const Handle_TColgp_HArray2OfDir &aHandle); - Handle_TColgp_HArray2OfDir(const TColgp_HArray2OfDir *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfDir DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfDir { - TColgp_HArray2OfDir* _get_reference() { - return (TColgp_HArray2OfDir*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfDir { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfDir) %extend TColgp_HArray2OfDir { %pythoncode { @@ -3619,51 +3120,7 @@ class TColgp_HArray2OfDir2d : public MMgt_TShared { }; -%extend TColgp_HArray2OfDir2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfDir2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfDir2d::Handle_TColgp_HArray2OfDir2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfDir2d; -class Handle_TColgp_HArray2OfDir2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfDir2d(); - Handle_TColgp_HArray2OfDir2d(const Handle_TColgp_HArray2OfDir2d &aHandle); - Handle_TColgp_HArray2OfDir2d(const TColgp_HArray2OfDir2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfDir2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfDir2d { - TColgp_HArray2OfDir2d* _get_reference() { - return (TColgp_HArray2OfDir2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfDir2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfDir2d) %extend TColgp_HArray2OfDir2d { %pythoncode { @@ -3766,51 +3223,7 @@ class TColgp_HArray2OfLin2d : public MMgt_TShared { }; -%extend TColgp_HArray2OfLin2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfLin2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfLin2d::Handle_TColgp_HArray2OfLin2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfLin2d; -class Handle_TColgp_HArray2OfLin2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfLin2d(); - Handle_TColgp_HArray2OfLin2d(const Handle_TColgp_HArray2OfLin2d &aHandle); - Handle_TColgp_HArray2OfLin2d(const TColgp_HArray2OfLin2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfLin2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfLin2d { - TColgp_HArray2OfLin2d* _get_reference() { - return (TColgp_HArray2OfLin2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfLin2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfLin2d) %extend TColgp_HArray2OfLin2d { %pythoncode { @@ -3913,51 +3326,7 @@ class TColgp_HArray2OfPnt : public MMgt_TShared { }; -%extend TColgp_HArray2OfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfPnt::Handle_TColgp_HArray2OfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfPnt; -class Handle_TColgp_HArray2OfPnt : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfPnt(); - Handle_TColgp_HArray2OfPnt(const Handle_TColgp_HArray2OfPnt &aHandle); - Handle_TColgp_HArray2OfPnt(const TColgp_HArray2OfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfPnt { - TColgp_HArray2OfPnt* _get_reference() { - return (TColgp_HArray2OfPnt*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfPnt) %extend TColgp_HArray2OfPnt { %pythoncode { @@ -4060,51 +3429,7 @@ class TColgp_HArray2OfPnt2d : public MMgt_TShared { }; -%extend TColgp_HArray2OfPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfPnt2d::Handle_TColgp_HArray2OfPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfPnt2d; -class Handle_TColgp_HArray2OfPnt2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfPnt2d(); - Handle_TColgp_HArray2OfPnt2d(const Handle_TColgp_HArray2OfPnt2d &aHandle); - Handle_TColgp_HArray2OfPnt2d(const TColgp_HArray2OfPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfPnt2d { - TColgp_HArray2OfPnt2d* _get_reference() { - return (TColgp_HArray2OfPnt2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfPnt2d) %extend TColgp_HArray2OfPnt2d { %pythoncode { @@ -4207,51 +3532,7 @@ class TColgp_HArray2OfVec : public MMgt_TShared { }; -%extend TColgp_HArray2OfVec { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfVec(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfVec::Handle_TColgp_HArray2OfVec %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfVec; -class Handle_TColgp_HArray2OfVec : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfVec(); - Handle_TColgp_HArray2OfVec(const Handle_TColgp_HArray2OfVec &aHandle); - Handle_TColgp_HArray2OfVec(const TColgp_HArray2OfVec *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfVec DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfVec { - TColgp_HArray2OfVec* _get_reference() { - return (TColgp_HArray2OfVec*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfVec { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfVec) %extend TColgp_HArray2OfVec { %pythoncode { @@ -4354,51 +3635,7 @@ class TColgp_HArray2OfVec2d : public MMgt_TShared { }; -%extend TColgp_HArray2OfVec2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfVec2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfVec2d::Handle_TColgp_HArray2OfVec2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfVec2d; -class Handle_TColgp_HArray2OfVec2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfVec2d(); - Handle_TColgp_HArray2OfVec2d(const Handle_TColgp_HArray2OfVec2d &aHandle); - Handle_TColgp_HArray2OfVec2d(const TColgp_HArray2OfVec2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfVec2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfVec2d { - TColgp_HArray2OfVec2d* _get_reference() { - return (TColgp_HArray2OfVec2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfVec2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfVec2d) %extend TColgp_HArray2OfVec2d { %pythoncode { @@ -4501,51 +3738,7 @@ class TColgp_HArray2OfXY : public MMgt_TShared { }; -%extend TColgp_HArray2OfXY { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfXY(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfXY::Handle_TColgp_HArray2OfXY %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfXY; -class Handle_TColgp_HArray2OfXY : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfXY(); - Handle_TColgp_HArray2OfXY(const Handle_TColgp_HArray2OfXY &aHandle); - Handle_TColgp_HArray2OfXY(const TColgp_HArray2OfXY *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfXY DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfXY { - TColgp_HArray2OfXY* _get_reference() { - return (TColgp_HArray2OfXY*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfXY { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfXY) %extend TColgp_HArray2OfXY { %pythoncode { @@ -4648,51 +3841,7 @@ class TColgp_HArray2OfXYZ : public MMgt_TShared { }; -%extend TColgp_HArray2OfXYZ { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HArray2OfXYZ(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HArray2OfXYZ::Handle_TColgp_HArray2OfXYZ %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HArray2OfXYZ; -class Handle_TColgp_HArray2OfXYZ : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HArray2OfXYZ(); - Handle_TColgp_HArray2OfXYZ(const Handle_TColgp_HArray2OfXYZ &aHandle); - Handle_TColgp_HArray2OfXYZ(const TColgp_HArray2OfXYZ *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HArray2OfXYZ DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HArray2OfXYZ { - TColgp_HArray2OfXYZ* _get_reference() { - return (TColgp_HArray2OfXYZ*)$self->Access(); - } -}; - -%extend Handle_TColgp_HArray2OfXYZ { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HArray2OfXYZ) %extend TColgp_HArray2OfXYZ { %pythoncode { @@ -4837,51 +3986,7 @@ class TColgp_HSequenceOfDir : public MMgt_TShared { }; -%extend TColgp_HSequenceOfDir { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfDir(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfDir::Handle_TColgp_HSequenceOfDir %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfDir; -class Handle_TColgp_HSequenceOfDir : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfDir(); - Handle_TColgp_HSequenceOfDir(const Handle_TColgp_HSequenceOfDir &aHandle); - Handle_TColgp_HSequenceOfDir(const TColgp_HSequenceOfDir *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfDir DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfDir { - TColgp_HSequenceOfDir* _get_reference() { - return (TColgp_HSequenceOfDir*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfDir { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfDir) %extend TColgp_HSequenceOfDir { %pythoncode { @@ -5026,51 +4131,7 @@ class TColgp_HSequenceOfDir2d : public MMgt_TShared { }; -%extend TColgp_HSequenceOfDir2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfDir2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfDir2d::Handle_TColgp_HSequenceOfDir2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfDir2d; -class Handle_TColgp_HSequenceOfDir2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfDir2d(); - Handle_TColgp_HSequenceOfDir2d(const Handle_TColgp_HSequenceOfDir2d &aHandle); - Handle_TColgp_HSequenceOfDir2d(const TColgp_HSequenceOfDir2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfDir2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfDir2d { - TColgp_HSequenceOfDir2d* _get_reference() { - return (TColgp_HSequenceOfDir2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfDir2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfDir2d) %extend TColgp_HSequenceOfDir2d { %pythoncode { @@ -5215,51 +4276,7 @@ class TColgp_HSequenceOfPnt : public MMgt_TShared { }; -%extend TColgp_HSequenceOfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfPnt::Handle_TColgp_HSequenceOfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfPnt; -class Handle_TColgp_HSequenceOfPnt : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfPnt(); - Handle_TColgp_HSequenceOfPnt(const Handle_TColgp_HSequenceOfPnt &aHandle); - Handle_TColgp_HSequenceOfPnt(const TColgp_HSequenceOfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfPnt { - TColgp_HSequenceOfPnt* _get_reference() { - return (TColgp_HSequenceOfPnt*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfPnt) %extend TColgp_HSequenceOfPnt { %pythoncode { @@ -5404,51 +4421,7 @@ class TColgp_HSequenceOfPnt2d : public MMgt_TShared { }; -%extend TColgp_HSequenceOfPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfPnt2d::Handle_TColgp_HSequenceOfPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfPnt2d; -class Handle_TColgp_HSequenceOfPnt2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfPnt2d(); - Handle_TColgp_HSequenceOfPnt2d(const Handle_TColgp_HSequenceOfPnt2d &aHandle); - Handle_TColgp_HSequenceOfPnt2d(const TColgp_HSequenceOfPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfPnt2d { - TColgp_HSequenceOfPnt2d* _get_reference() { - return (TColgp_HSequenceOfPnt2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfPnt2d) %extend TColgp_HSequenceOfPnt2d { %pythoncode { @@ -5593,51 +4566,7 @@ class TColgp_HSequenceOfVec : public MMgt_TShared { }; -%extend TColgp_HSequenceOfVec { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfVec(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfVec::Handle_TColgp_HSequenceOfVec %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfVec; -class Handle_TColgp_HSequenceOfVec : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfVec(); - Handle_TColgp_HSequenceOfVec(const Handle_TColgp_HSequenceOfVec &aHandle); - Handle_TColgp_HSequenceOfVec(const TColgp_HSequenceOfVec *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfVec DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfVec { - TColgp_HSequenceOfVec* _get_reference() { - return (TColgp_HSequenceOfVec*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfVec { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfVec) %extend TColgp_HSequenceOfVec { %pythoncode { @@ -5782,51 +4711,7 @@ class TColgp_HSequenceOfVec2d : public MMgt_TShared { }; -%extend TColgp_HSequenceOfVec2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfVec2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfVec2d::Handle_TColgp_HSequenceOfVec2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfVec2d; -class Handle_TColgp_HSequenceOfVec2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfVec2d(); - Handle_TColgp_HSequenceOfVec2d(const Handle_TColgp_HSequenceOfVec2d &aHandle); - Handle_TColgp_HSequenceOfVec2d(const TColgp_HSequenceOfVec2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfVec2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfVec2d { - TColgp_HSequenceOfVec2d* _get_reference() { - return (TColgp_HSequenceOfVec2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfVec2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfVec2d) %extend TColgp_HSequenceOfVec2d { %pythoncode { @@ -5971,51 +4856,7 @@ class TColgp_HSequenceOfXY : public MMgt_TShared { }; -%extend TColgp_HSequenceOfXY { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfXY(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfXY::Handle_TColgp_HSequenceOfXY %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfXY; -class Handle_TColgp_HSequenceOfXY : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfXY(); - Handle_TColgp_HSequenceOfXY(const Handle_TColgp_HSequenceOfXY &aHandle); - Handle_TColgp_HSequenceOfXY(const TColgp_HSequenceOfXY *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfXY DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfXY { - TColgp_HSequenceOfXY* _get_reference() { - return (TColgp_HSequenceOfXY*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfXY { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfXY) %extend TColgp_HSequenceOfXY { %pythoncode { @@ -6160,51 +5001,7 @@ class TColgp_HSequenceOfXYZ : public MMgt_TShared { }; -%extend TColgp_HSequenceOfXYZ { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_HSequenceOfXYZ(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_HSequenceOfXYZ::Handle_TColgp_HSequenceOfXYZ %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_HSequenceOfXYZ; -class Handle_TColgp_HSequenceOfXYZ : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TColgp_HSequenceOfXYZ(); - Handle_TColgp_HSequenceOfXYZ(const Handle_TColgp_HSequenceOfXYZ &aHandle); - Handle_TColgp_HSequenceOfXYZ(const TColgp_HSequenceOfXYZ *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_HSequenceOfXYZ DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_HSequenceOfXYZ { - TColgp_HSequenceOfXYZ* _get_reference() { - return (TColgp_HSequenceOfXYZ*)$self->Access(); - } -}; - -%extend Handle_TColgp_HSequenceOfXYZ { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_HSequenceOfXYZ) %extend TColgp_HSequenceOfXYZ { %pythoncode { @@ -6231,51 +5028,7 @@ class TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d : public TCollection_SeqNode }; -%extend TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d::Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d; -class Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d(); - Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d(const Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d(const TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d { - TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d) %extend TColgp_SequenceNodeOfSequenceOfArray1OfPnt2d { %pythoncode { @@ -6302,51 +5055,7 @@ class TColgp_SequenceNodeOfSequenceOfAx1 : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfAx1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfAx1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfAx1::Handle_TColgp_SequenceNodeOfSequenceOfAx1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfAx1; -class Handle_TColgp_SequenceNodeOfSequenceOfAx1 : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfAx1(); - Handle_TColgp_SequenceNodeOfSequenceOfAx1(const Handle_TColgp_SequenceNodeOfSequenceOfAx1 &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfAx1(const TColgp_SequenceNodeOfSequenceOfAx1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfAx1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfAx1 { - TColgp_SequenceNodeOfSequenceOfAx1* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfAx1*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfAx1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfAx1) %extend TColgp_SequenceNodeOfSequenceOfAx1 { %pythoncode { @@ -6373,51 +5082,7 @@ class TColgp_SequenceNodeOfSequenceOfDir : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfDir { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfDir(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfDir::Handle_TColgp_SequenceNodeOfSequenceOfDir %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfDir; -class Handle_TColgp_SequenceNodeOfSequenceOfDir : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfDir(); - Handle_TColgp_SequenceNodeOfSequenceOfDir(const Handle_TColgp_SequenceNodeOfSequenceOfDir &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfDir(const TColgp_SequenceNodeOfSequenceOfDir *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfDir DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfDir { - TColgp_SequenceNodeOfSequenceOfDir* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfDir*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfDir { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfDir) %extend TColgp_SequenceNodeOfSequenceOfDir { %pythoncode { @@ -6444,51 +5109,7 @@ class TColgp_SequenceNodeOfSequenceOfDir2d : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfDir2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfDir2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfDir2d::Handle_TColgp_SequenceNodeOfSequenceOfDir2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfDir2d; -class Handle_TColgp_SequenceNodeOfSequenceOfDir2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfDir2d(); - Handle_TColgp_SequenceNodeOfSequenceOfDir2d(const Handle_TColgp_SequenceNodeOfSequenceOfDir2d &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfDir2d(const TColgp_SequenceNodeOfSequenceOfDir2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfDir2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfDir2d { - TColgp_SequenceNodeOfSequenceOfDir2d* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfDir2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfDir2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfDir2d) %extend TColgp_SequenceNodeOfSequenceOfDir2d { %pythoncode { @@ -6515,51 +5136,7 @@ class TColgp_SequenceNodeOfSequenceOfPnt : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfPnt { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfPnt(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfPnt::Handle_TColgp_SequenceNodeOfSequenceOfPnt %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfPnt; -class Handle_TColgp_SequenceNodeOfSequenceOfPnt : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfPnt(); - Handle_TColgp_SequenceNodeOfSequenceOfPnt(const Handle_TColgp_SequenceNodeOfSequenceOfPnt &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfPnt(const TColgp_SequenceNodeOfSequenceOfPnt *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfPnt DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfPnt { - TColgp_SequenceNodeOfSequenceOfPnt* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfPnt*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfPnt { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfPnt) %extend TColgp_SequenceNodeOfSequenceOfPnt { %pythoncode { @@ -6586,51 +5163,7 @@ class TColgp_SequenceNodeOfSequenceOfPnt2d : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfPnt2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfPnt2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfPnt2d::Handle_TColgp_SequenceNodeOfSequenceOfPnt2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfPnt2d; -class Handle_TColgp_SequenceNodeOfSequenceOfPnt2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfPnt2d(); - Handle_TColgp_SequenceNodeOfSequenceOfPnt2d(const Handle_TColgp_SequenceNodeOfSequenceOfPnt2d &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfPnt2d(const TColgp_SequenceNodeOfSequenceOfPnt2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfPnt2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfPnt2d { - TColgp_SequenceNodeOfSequenceOfPnt2d* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfPnt2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfPnt2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfPnt2d) %extend TColgp_SequenceNodeOfSequenceOfPnt2d { %pythoncode { @@ -6657,51 +5190,7 @@ class TColgp_SequenceNodeOfSequenceOfVec : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfVec { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfVec(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfVec::Handle_TColgp_SequenceNodeOfSequenceOfVec %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfVec; -class Handle_TColgp_SequenceNodeOfSequenceOfVec : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfVec(); - Handle_TColgp_SequenceNodeOfSequenceOfVec(const Handle_TColgp_SequenceNodeOfSequenceOfVec &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfVec(const TColgp_SequenceNodeOfSequenceOfVec *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfVec DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfVec { - TColgp_SequenceNodeOfSequenceOfVec* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfVec*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfVec { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfVec) %extend TColgp_SequenceNodeOfSequenceOfVec { %pythoncode { @@ -6728,51 +5217,7 @@ class TColgp_SequenceNodeOfSequenceOfVec2d : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfVec2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfVec2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfVec2d::Handle_TColgp_SequenceNodeOfSequenceOfVec2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfVec2d; -class Handle_TColgp_SequenceNodeOfSequenceOfVec2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfVec2d(); - Handle_TColgp_SequenceNodeOfSequenceOfVec2d(const Handle_TColgp_SequenceNodeOfSequenceOfVec2d &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfVec2d(const TColgp_SequenceNodeOfSequenceOfVec2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfVec2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfVec2d { - TColgp_SequenceNodeOfSequenceOfVec2d* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfVec2d*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfVec2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfVec2d) %extend TColgp_SequenceNodeOfSequenceOfVec2d { %pythoncode { @@ -6799,51 +5244,7 @@ class TColgp_SequenceNodeOfSequenceOfXY : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfXY { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfXY(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfXY::Handle_TColgp_SequenceNodeOfSequenceOfXY %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfXY; -class Handle_TColgp_SequenceNodeOfSequenceOfXY : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfXY(); - Handle_TColgp_SequenceNodeOfSequenceOfXY(const Handle_TColgp_SequenceNodeOfSequenceOfXY &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfXY(const TColgp_SequenceNodeOfSequenceOfXY *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfXY DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfXY { - TColgp_SequenceNodeOfSequenceOfXY* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfXY*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfXY { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfXY) %extend TColgp_SequenceNodeOfSequenceOfXY { %pythoncode { @@ -6870,51 +5271,7 @@ class TColgp_SequenceNodeOfSequenceOfXYZ : public TCollection_SeqNode { }; -%extend TColgp_SequenceNodeOfSequenceOfXYZ { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TColgp_SequenceNodeOfSequenceOfXYZ(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TColgp_SequenceNodeOfSequenceOfXYZ::Handle_TColgp_SequenceNodeOfSequenceOfXYZ %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TColgp_SequenceNodeOfSequenceOfXYZ; -class Handle_TColgp_SequenceNodeOfSequenceOfXYZ : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TColgp_SequenceNodeOfSequenceOfXYZ(); - Handle_TColgp_SequenceNodeOfSequenceOfXYZ(const Handle_TColgp_SequenceNodeOfSequenceOfXYZ &aHandle); - Handle_TColgp_SequenceNodeOfSequenceOfXYZ(const TColgp_SequenceNodeOfSequenceOfXYZ *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TColgp_SequenceNodeOfSequenceOfXYZ DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TColgp_SequenceNodeOfSequenceOfXYZ { - TColgp_SequenceNodeOfSequenceOfXYZ* _get_reference() { - return (TColgp_SequenceNodeOfSequenceOfXYZ*)$self->Access(); - } -}; - -%extend Handle_TColgp_SequenceNodeOfSequenceOfXYZ { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TColgp_SequenceNodeOfSequenceOfXYZ) %extend TColgp_SequenceNodeOfSequenceOfXYZ { %pythoncode { diff --git a/src/SWIG_files/wrapper/TCollection.i b/src/SWIG_files/wrapper/TCollection.i index 58c3d6a2b..d6bd9ca45 100644 --- a/src/SWIG_files/wrapper/TCollection.i +++ b/src/SWIG_files/wrapper/TCollection.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define TCOLLECTIONDOCSTRING -"No docstring provided." +"The package provides the services for the +transient basic data structures. +" %enddef %module (package="OCC.Core", docstring=TCOLLECTIONDOCSTRING) TCollection @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TCollection_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TCollection_SeqNode * TCollection_SeqNodePtr; typedef TCollection_MapNode * TCollection_MapNodePtr; @@ -66,6 +54,11 @@ enum TCollection_Side { /* end public enums declaration */ +%wrap_handle(TCollection_HAsciiString) +%wrap_handle(TCollection_HExtendedString) +%wrap_handle(TCollection_MapNode) +%wrap_handle(TCollection_SeqNode) + %rename(tcollection) TCollection; class TCollection { public: @@ -2067,51 +2060,7 @@ class TCollection_HAsciiString : public MMgt_TShared { }; -%extend TCollection_HAsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TCollection_HAsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TCollection_HAsciiString::Handle_TCollection_HAsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TCollection_HAsciiString; -class Handle_TCollection_HAsciiString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TCollection_HAsciiString(); - Handle_TCollection_HAsciiString(const Handle_TCollection_HAsciiString &aHandle); - Handle_TCollection_HAsciiString(const TCollection_HAsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TCollection_HAsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TCollection_HAsciiString { - TCollection_HAsciiString* _get_reference() { - return (TCollection_HAsciiString*)$self->Access(); - } -}; - -%extend Handle_TCollection_HAsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TCollection_HAsciiString) %extend TCollection_HAsciiString { %pythoncode { @@ -2388,51 +2337,7 @@ class TCollection_HExtendedString : public MMgt_TShared { }; -%extend TCollection_HExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TCollection_HExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TCollection_HExtendedString::Handle_TCollection_HExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TCollection_HExtendedString; -class Handle_TCollection_HExtendedString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TCollection_HExtendedString(); - Handle_TCollection_HExtendedString(const Handle_TCollection_HExtendedString &aHandle); - Handle_TCollection_HExtendedString(const TCollection_HExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TCollection_HExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TCollection_HExtendedString { - TCollection_HExtendedString* _get_reference() { - return (TCollection_HExtendedString*)$self->Access(); - } -}; - -%extend Handle_TCollection_HExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TCollection_HExtendedString) %extend TCollection_HExtendedString { %pythoncode { @@ -2455,51 +2360,7 @@ class TCollection_MapNode : public MMgt_TShared { }; -%extend TCollection_MapNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TCollection_MapNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TCollection_MapNode::Handle_TCollection_MapNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TCollection_MapNode; -class Handle_TCollection_MapNode : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TCollection_MapNode(); - Handle_TCollection_MapNode(const Handle_TCollection_MapNode &aHandle); - Handle_TCollection_MapNode(const TCollection_MapNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TCollection_MapNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TCollection_MapNode { - TCollection_MapNode* _get_reference() { - return (TCollection_MapNode*)$self->Access(); - } -}; - -%extend Handle_TCollection_MapNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TCollection_MapNode) %extend TCollection_MapNode { %pythoncode { @@ -2596,51 +2457,7 @@ class TCollection_SeqNode : public MMgt_TShared { }; -%extend TCollection_SeqNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TCollection_SeqNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TCollection_SeqNode::Handle_TCollection_SeqNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TCollection_SeqNode; -class Handle_TCollection_SeqNode : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TCollection_SeqNode(); - Handle_TCollection_SeqNode(const Handle_TCollection_SeqNode &aHandle); - Handle_TCollection_SeqNode(const TCollection_SeqNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TCollection_SeqNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TCollection_SeqNode { - TCollection_SeqNode* _get_reference() { - return (TCollection_SeqNode*)$self->Access(); - } -}; - -%extend Handle_TCollection_SeqNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TCollection_SeqNode) %extend TCollection_SeqNode { %pythoncode { diff --git a/src/SWIG_files/wrapper/TDF.i b/src/SWIG_files/wrapper/TDF.i index 8c08a2019..658cbea03 100644 --- a/src/SWIG_files/wrapper/TDF.i +++ b/src/SWIG_files/wrapper/TDF.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define TDFDOCSTRING -"No docstring provided." +"This package provides data framework for binding +features and data structures. + +The feature structure is a tree used to bind +semantic informations about each feature together. + +The only one concrete attribute defined in this +package is the TagSource attribute.This attribute +is used for random creation of child labels under +a given label. Tags are randomly delivered. + +-Category: GUID - AttributeID +2a96b611-ec8b-11d0-bee7-080009dc3333 TDataStd_TagSource + +" %enddef %module (package="OCC.Core", docstring=TDFDOCSTRING) TDF @@ -34,25 +48,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TDF_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef Handle_NCollection_BaseAllocator TDF_HAllocator; typedef TDF_LabelNode * TDF_LabelNodePtr; @@ -68,6 +68,41 @@ enum { /* end public enums declaration */ +%wrap_handle(TDF_Attribute) +%wrap_handle(TDF_AttributeDelta) +%wrap_handle(TDF_Data) +%wrap_handle(TDF_DataMapNodeOfAttributeDataMap) +%wrap_handle(TDF_DataMapNodeOfLabelDataMap) +%wrap_handle(TDF_DataMapNodeOfLabelIntegerMap) +%wrap_handle(TDF_DataSet) +%wrap_handle(TDF_Delta) +%wrap_handle(TDF_DoubleMapNodeOfAttributeDoubleMap) +%wrap_handle(TDF_DoubleMapNodeOfGUIDProgIDMap) +%wrap_handle(TDF_DoubleMapNodeOfLabelDoubleMap) +%wrap_handle(TDF_HAttributeArray1) +%wrap_handle(TDF_IndexedMapNodeOfAttributeIndexedMap) +%wrap_handle(TDF_IndexedMapNodeOfLabelIndexedMap) +%wrap_handle(TDF_ListNodeOfAttributeDeltaList) +%wrap_handle(TDF_ListNodeOfAttributeList) +%wrap_handle(TDF_ListNodeOfDeltaList) +%wrap_handle(TDF_ListNodeOfIDList) +%wrap_handle(TDF_ListNodeOfLabelList) +%wrap_handle(TDF_RelocationTable) +%wrap_handle(TDF_SequenceNodeOfAttributeSequence) +%wrap_handle(TDF_SequenceNodeOfLabelSequence) +%wrap_handle(TDF_StdMapNodeOfAttributeMap) +%wrap_handle(TDF_StdMapNodeOfIDMap) +%wrap_handle(TDF_StdMapNodeOfLabelMap) +%wrap_handle(TDF_DeltaOnAddition) +%wrap_handle(TDF_DeltaOnForget) +%wrap_handle(TDF_DeltaOnModification) +%wrap_handle(TDF_DeltaOnRemoval) +%wrap_handle(TDF_DeltaOnResume) +%wrap_handle(TDF_Reference) +%wrap_handle(TDF_TagSource) +%wrap_handle(TDF_DefaultDeltaOnModification) +%wrap_handle(TDF_DefaultDeltaOnRemoval) + %rename(tdf) TDF; class TDF { public: @@ -387,51 +422,7 @@ class TDF_Attribute : public MMgt_TShared { }; -%extend TDF_Attribute { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_Attribute(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_Attribute::Handle_TDF_Attribute %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_Attribute; -class Handle_TDF_Attribute : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_Attribute(); - Handle_TDF_Attribute(const Handle_TDF_Attribute &aHandle); - Handle_TDF_Attribute(const TDF_Attribute *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_Attribute DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_Attribute { - TDF_Attribute* _get_reference() { - return (TDF_Attribute*)$self->Access(); - } -}; - -%extend Handle_TDF_Attribute { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_Attribute) %extend TDF_Attribute { %pythoncode { @@ -646,51 +637,7 @@ class TDF_AttributeDelta : public MMgt_TShared { }; -%extend TDF_AttributeDelta { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_AttributeDelta(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_AttributeDelta::Handle_TDF_AttributeDelta %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_AttributeDelta; -class Handle_TDF_AttributeDelta : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_AttributeDelta(); - Handle_TDF_AttributeDelta(const Handle_TDF_AttributeDelta &aHandle); - Handle_TDF_AttributeDelta(const TDF_AttributeDelta *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_AttributeDelta DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_AttributeDelta { - TDF_AttributeDelta* _get_reference() { - return (TDF_AttributeDelta*)$self->Access(); - } -}; - -%extend Handle_TDF_AttributeDelta { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_AttributeDelta) %extend TDF_AttributeDelta { %pythoncode { @@ -1912,51 +1859,7 @@ class TDF_Data : public MMgt_TShared { }; -%extend TDF_Data { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_Data(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_Data::Handle_TDF_Data %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_Data; -class Handle_TDF_Data : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_Data(); - Handle_TDF_Data(const Handle_TDF_Data &aHandle); - Handle_TDF_Data(const TDF_Data *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_Data DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_Data { - TDF_Data* _get_reference() { - return (TDF_Data*)$self->Access(); - } -}; - -%extend Handle_TDF_Data { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_Data) %extend TDF_Data { %pythoncode { @@ -2092,51 +1995,7 @@ class TDF_DataMapNodeOfAttributeDataMap : public TCollection_MapNode { }; -%extend TDF_DataMapNodeOfAttributeDataMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DataMapNodeOfAttributeDataMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DataMapNodeOfAttributeDataMap::Handle_TDF_DataMapNodeOfAttributeDataMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DataMapNodeOfAttributeDataMap; -class Handle_TDF_DataMapNodeOfAttributeDataMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_DataMapNodeOfAttributeDataMap(); - Handle_TDF_DataMapNodeOfAttributeDataMap(const Handle_TDF_DataMapNodeOfAttributeDataMap &aHandle); - Handle_TDF_DataMapNodeOfAttributeDataMap(const TDF_DataMapNodeOfAttributeDataMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DataMapNodeOfAttributeDataMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DataMapNodeOfAttributeDataMap { - TDF_DataMapNodeOfAttributeDataMap* _get_reference() { - return (TDF_DataMapNodeOfAttributeDataMap*)$self->Access(); - } -}; - -%extend Handle_TDF_DataMapNodeOfAttributeDataMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DataMapNodeOfAttributeDataMap) %extend TDF_DataMapNodeOfAttributeDataMap { %pythoncode { @@ -2167,51 +2026,7 @@ class TDF_DataMapNodeOfLabelDataMap : public TCollection_MapNode { }; -%extend TDF_DataMapNodeOfLabelDataMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DataMapNodeOfLabelDataMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DataMapNodeOfLabelDataMap::Handle_TDF_DataMapNodeOfLabelDataMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DataMapNodeOfLabelDataMap; -class Handle_TDF_DataMapNodeOfLabelDataMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_DataMapNodeOfLabelDataMap(); - Handle_TDF_DataMapNodeOfLabelDataMap(const Handle_TDF_DataMapNodeOfLabelDataMap &aHandle); - Handle_TDF_DataMapNodeOfLabelDataMap(const TDF_DataMapNodeOfLabelDataMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DataMapNodeOfLabelDataMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DataMapNodeOfLabelDataMap { - TDF_DataMapNodeOfLabelDataMap* _get_reference() { - return (TDF_DataMapNodeOfLabelDataMap*)$self->Access(); - } -}; - -%extend Handle_TDF_DataMapNodeOfLabelDataMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DataMapNodeOfLabelDataMap) %extend TDF_DataMapNodeOfLabelDataMap { %pythoncode { @@ -2251,51 +2066,7 @@ class TDF_DataMapNodeOfLabelIntegerMap : public TCollection_MapNode { }; -%extend TDF_DataMapNodeOfLabelIntegerMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DataMapNodeOfLabelIntegerMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DataMapNodeOfLabelIntegerMap::Handle_TDF_DataMapNodeOfLabelIntegerMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DataMapNodeOfLabelIntegerMap; -class Handle_TDF_DataMapNodeOfLabelIntegerMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_DataMapNodeOfLabelIntegerMap(); - Handle_TDF_DataMapNodeOfLabelIntegerMap(const Handle_TDF_DataMapNodeOfLabelIntegerMap &aHandle); - Handle_TDF_DataMapNodeOfLabelIntegerMap(const TDF_DataMapNodeOfLabelIntegerMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DataMapNodeOfLabelIntegerMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DataMapNodeOfLabelIntegerMap { - TDF_DataMapNodeOfLabelIntegerMap* _get_reference() { - return (TDF_DataMapNodeOfLabelIntegerMap*)$self->Access(); - } -}; - -%extend Handle_TDF_DataMapNodeOfLabelIntegerMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DataMapNodeOfLabelIntegerMap) %extend TDF_DataMapNodeOfLabelIntegerMap { %pythoncode { @@ -2392,51 +2163,7 @@ class TDF_DataSet : public MMgt_TShared { }; -%extend TDF_DataSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DataSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DataSet::Handle_TDF_DataSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DataSet; -class Handle_TDF_DataSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_DataSet(); - Handle_TDF_DataSet(const Handle_TDF_DataSet &aHandle); - Handle_TDF_DataSet(const TDF_DataSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DataSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DataSet { - TDF_DataSet* _get_reference() { - return (TDF_DataSet*)$self->Access(); - } -}; - -%extend Handle_TDF_DataSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DataSet) %extend TDF_DataSet { %pythoncode { @@ -2517,51 +2244,7 @@ class TDF_Delta : public MMgt_TShared { }; -%extend TDF_Delta { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_Delta(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_Delta::Handle_TDF_Delta %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_Delta; -class Handle_TDF_Delta : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_Delta(); - Handle_TDF_Delta(const Handle_TDF_Delta &aHandle); - Handle_TDF_Delta(const TDF_Delta *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_Delta DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_Delta { - TDF_Delta* _get_reference() { - return (TDF_Delta*)$self->Access(); - } -}; - -%extend Handle_TDF_Delta { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_Delta) %extend TDF_Delta { %pythoncode { @@ -2838,51 +2521,7 @@ class TDF_DoubleMapNodeOfAttributeDoubleMap : public TCollection_MapNode { }; -%extend TDF_DoubleMapNodeOfAttributeDoubleMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DoubleMapNodeOfAttributeDoubleMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DoubleMapNodeOfAttributeDoubleMap::Handle_TDF_DoubleMapNodeOfAttributeDoubleMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DoubleMapNodeOfAttributeDoubleMap; -class Handle_TDF_DoubleMapNodeOfAttributeDoubleMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_DoubleMapNodeOfAttributeDoubleMap(); - Handle_TDF_DoubleMapNodeOfAttributeDoubleMap(const Handle_TDF_DoubleMapNodeOfAttributeDoubleMap &aHandle); - Handle_TDF_DoubleMapNodeOfAttributeDoubleMap(const TDF_DoubleMapNodeOfAttributeDoubleMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DoubleMapNodeOfAttributeDoubleMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DoubleMapNodeOfAttributeDoubleMap { - TDF_DoubleMapNodeOfAttributeDoubleMap* _get_reference() { - return (TDF_DoubleMapNodeOfAttributeDoubleMap*)$self->Access(); - } -}; - -%extend Handle_TDF_DoubleMapNodeOfAttributeDoubleMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DoubleMapNodeOfAttributeDoubleMap) %extend TDF_DoubleMapNodeOfAttributeDoubleMap { %pythoncode { @@ -2919,51 +2558,7 @@ class TDF_DoubleMapNodeOfGUIDProgIDMap : public TCollection_MapNode { }; -%extend TDF_DoubleMapNodeOfGUIDProgIDMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DoubleMapNodeOfGUIDProgIDMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DoubleMapNodeOfGUIDProgIDMap::Handle_TDF_DoubleMapNodeOfGUIDProgIDMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DoubleMapNodeOfGUIDProgIDMap; -class Handle_TDF_DoubleMapNodeOfGUIDProgIDMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_DoubleMapNodeOfGUIDProgIDMap(); - Handle_TDF_DoubleMapNodeOfGUIDProgIDMap(const Handle_TDF_DoubleMapNodeOfGUIDProgIDMap &aHandle); - Handle_TDF_DoubleMapNodeOfGUIDProgIDMap(const TDF_DoubleMapNodeOfGUIDProgIDMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DoubleMapNodeOfGUIDProgIDMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DoubleMapNodeOfGUIDProgIDMap { - TDF_DoubleMapNodeOfGUIDProgIDMap* _get_reference() { - return (TDF_DoubleMapNodeOfGUIDProgIDMap*)$self->Access(); - } -}; - -%extend Handle_TDF_DoubleMapNodeOfGUIDProgIDMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DoubleMapNodeOfGUIDProgIDMap) %extend TDF_DoubleMapNodeOfGUIDProgIDMap { %pythoncode { @@ -3000,51 +2595,7 @@ class TDF_DoubleMapNodeOfLabelDoubleMap : public TCollection_MapNode { }; -%extend TDF_DoubleMapNodeOfLabelDoubleMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DoubleMapNodeOfLabelDoubleMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DoubleMapNodeOfLabelDoubleMap::Handle_TDF_DoubleMapNodeOfLabelDoubleMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DoubleMapNodeOfLabelDoubleMap; -class Handle_TDF_DoubleMapNodeOfLabelDoubleMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_DoubleMapNodeOfLabelDoubleMap(); - Handle_TDF_DoubleMapNodeOfLabelDoubleMap(const Handle_TDF_DoubleMapNodeOfLabelDoubleMap &aHandle); - Handle_TDF_DoubleMapNodeOfLabelDoubleMap(const TDF_DoubleMapNodeOfLabelDoubleMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DoubleMapNodeOfLabelDoubleMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DoubleMapNodeOfLabelDoubleMap { - TDF_DoubleMapNodeOfLabelDoubleMap* _get_reference() { - return (TDF_DoubleMapNodeOfLabelDoubleMap*)$self->Access(); - } -}; - -%extend Handle_TDF_DoubleMapNodeOfLabelDoubleMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DoubleMapNodeOfLabelDoubleMap) %extend TDF_DoubleMapNodeOfLabelDoubleMap { %pythoncode { @@ -3212,51 +2763,7 @@ class TDF_HAttributeArray1 : public MMgt_TShared { }; -%extend TDF_HAttributeArray1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_HAttributeArray1(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_HAttributeArray1::Handle_TDF_HAttributeArray1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_HAttributeArray1; -class Handle_TDF_HAttributeArray1 : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_HAttributeArray1(); - Handle_TDF_HAttributeArray1(const Handle_TDF_HAttributeArray1 &aHandle); - Handle_TDF_HAttributeArray1(const TDF_HAttributeArray1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_HAttributeArray1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_HAttributeArray1 { - TDF_HAttributeArray1* _get_reference() { - return (TDF_HAttributeArray1*)$self->Access(); - } -}; - -%extend Handle_TDF_HAttributeArray1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_HAttributeArray1) %extend TDF_HAttributeArray1 { %pythoncode { @@ -3621,51 +3128,7 @@ class TDF_IndexedMapNodeOfAttributeIndexedMap : public TCollection_MapNode { }; -%extend TDF_IndexedMapNodeOfAttributeIndexedMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_IndexedMapNodeOfAttributeIndexedMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_IndexedMapNodeOfAttributeIndexedMap::Handle_TDF_IndexedMapNodeOfAttributeIndexedMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_IndexedMapNodeOfAttributeIndexedMap; -class Handle_TDF_IndexedMapNodeOfAttributeIndexedMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_IndexedMapNodeOfAttributeIndexedMap(); - Handle_TDF_IndexedMapNodeOfAttributeIndexedMap(const Handle_TDF_IndexedMapNodeOfAttributeIndexedMap &aHandle); - Handle_TDF_IndexedMapNodeOfAttributeIndexedMap(const TDF_IndexedMapNodeOfAttributeIndexedMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_IndexedMapNodeOfAttributeIndexedMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_IndexedMapNodeOfAttributeIndexedMap { - TDF_IndexedMapNodeOfAttributeIndexedMap* _get_reference() { - return (TDF_IndexedMapNodeOfAttributeIndexedMap*)$self->Access(); - } -}; - -%extend Handle_TDF_IndexedMapNodeOfAttributeIndexedMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_IndexedMapNodeOfAttributeIndexedMap) %extend TDF_IndexedMapNodeOfAttributeIndexedMap { %pythoncode { @@ -3711,51 +3174,7 @@ class TDF_IndexedMapNodeOfLabelIndexedMap : public TCollection_MapNode { }; -%extend TDF_IndexedMapNodeOfLabelIndexedMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_IndexedMapNodeOfLabelIndexedMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_IndexedMapNodeOfLabelIndexedMap::Handle_TDF_IndexedMapNodeOfLabelIndexedMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_IndexedMapNodeOfLabelIndexedMap; -class Handle_TDF_IndexedMapNodeOfLabelIndexedMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_IndexedMapNodeOfLabelIndexedMap(); - Handle_TDF_IndexedMapNodeOfLabelIndexedMap(const Handle_TDF_IndexedMapNodeOfLabelIndexedMap &aHandle); - Handle_TDF_IndexedMapNodeOfLabelIndexedMap(const TDF_IndexedMapNodeOfLabelIndexedMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_IndexedMapNodeOfLabelIndexedMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_IndexedMapNodeOfLabelIndexedMap { - TDF_IndexedMapNodeOfLabelIndexedMap* _get_reference() { - return (TDF_IndexedMapNodeOfLabelIndexedMap*)$self->Access(); - } -}; - -%extend Handle_TDF_IndexedMapNodeOfLabelIndexedMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_IndexedMapNodeOfLabelIndexedMap) %extend TDF_IndexedMapNodeOfLabelIndexedMap { %pythoncode { @@ -4953,51 +4372,7 @@ class TDF_ListNodeOfAttributeDeltaList : public TCollection_MapNode { }; -%extend TDF_ListNodeOfAttributeDeltaList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_ListNodeOfAttributeDeltaList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_ListNodeOfAttributeDeltaList::Handle_TDF_ListNodeOfAttributeDeltaList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_ListNodeOfAttributeDeltaList; -class Handle_TDF_ListNodeOfAttributeDeltaList : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_ListNodeOfAttributeDeltaList(); - Handle_TDF_ListNodeOfAttributeDeltaList(const Handle_TDF_ListNodeOfAttributeDeltaList &aHandle); - Handle_TDF_ListNodeOfAttributeDeltaList(const TDF_ListNodeOfAttributeDeltaList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_ListNodeOfAttributeDeltaList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_ListNodeOfAttributeDeltaList { - TDF_ListNodeOfAttributeDeltaList* _get_reference() { - return (TDF_ListNodeOfAttributeDeltaList*)$self->Access(); - } -}; - -%extend Handle_TDF_ListNodeOfAttributeDeltaList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_ListNodeOfAttributeDeltaList) %extend TDF_ListNodeOfAttributeDeltaList { %pythoncode { @@ -5022,51 +4397,7 @@ class TDF_ListNodeOfAttributeList : public TCollection_MapNode { }; -%extend TDF_ListNodeOfAttributeList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_ListNodeOfAttributeList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_ListNodeOfAttributeList::Handle_TDF_ListNodeOfAttributeList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_ListNodeOfAttributeList; -class Handle_TDF_ListNodeOfAttributeList : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_ListNodeOfAttributeList(); - Handle_TDF_ListNodeOfAttributeList(const Handle_TDF_ListNodeOfAttributeList &aHandle); - Handle_TDF_ListNodeOfAttributeList(const TDF_ListNodeOfAttributeList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_ListNodeOfAttributeList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_ListNodeOfAttributeList { - TDF_ListNodeOfAttributeList* _get_reference() { - return (TDF_ListNodeOfAttributeList*)$self->Access(); - } -}; - -%extend Handle_TDF_ListNodeOfAttributeList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_ListNodeOfAttributeList) %extend TDF_ListNodeOfAttributeList { %pythoncode { @@ -5091,51 +4422,7 @@ class TDF_ListNodeOfDeltaList : public TCollection_MapNode { }; -%extend TDF_ListNodeOfDeltaList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_ListNodeOfDeltaList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_ListNodeOfDeltaList::Handle_TDF_ListNodeOfDeltaList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_ListNodeOfDeltaList; -class Handle_TDF_ListNodeOfDeltaList : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_ListNodeOfDeltaList(); - Handle_TDF_ListNodeOfDeltaList(const Handle_TDF_ListNodeOfDeltaList &aHandle); - Handle_TDF_ListNodeOfDeltaList(const TDF_ListNodeOfDeltaList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_ListNodeOfDeltaList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_ListNodeOfDeltaList { - TDF_ListNodeOfDeltaList* _get_reference() { - return (TDF_ListNodeOfDeltaList*)$self->Access(); - } -}; - -%extend Handle_TDF_ListNodeOfDeltaList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_ListNodeOfDeltaList) %extend TDF_ListNodeOfDeltaList { %pythoncode { @@ -5160,51 +4447,7 @@ class TDF_ListNodeOfIDList : public TCollection_MapNode { }; -%extend TDF_ListNodeOfIDList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_ListNodeOfIDList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_ListNodeOfIDList::Handle_TDF_ListNodeOfIDList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_ListNodeOfIDList; -class Handle_TDF_ListNodeOfIDList : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_ListNodeOfIDList(); - Handle_TDF_ListNodeOfIDList(const Handle_TDF_ListNodeOfIDList &aHandle); - Handle_TDF_ListNodeOfIDList(const TDF_ListNodeOfIDList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_ListNodeOfIDList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_ListNodeOfIDList { - TDF_ListNodeOfIDList* _get_reference() { - return (TDF_ListNodeOfIDList*)$self->Access(); - } -}; - -%extend Handle_TDF_ListNodeOfIDList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_ListNodeOfIDList) %extend TDF_ListNodeOfIDList { %pythoncode { @@ -5229,51 +4472,7 @@ class TDF_ListNodeOfLabelList : public TCollection_MapNode { }; -%extend TDF_ListNodeOfLabelList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_ListNodeOfLabelList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_ListNodeOfLabelList::Handle_TDF_ListNodeOfLabelList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_ListNodeOfLabelList; -class Handle_TDF_ListNodeOfLabelList : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_ListNodeOfLabelList(); - Handle_TDF_ListNodeOfLabelList(const Handle_TDF_ListNodeOfLabelList &aHandle); - Handle_TDF_ListNodeOfLabelList(const TDF_ListNodeOfLabelList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_ListNodeOfLabelList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_ListNodeOfLabelList { - TDF_ListNodeOfLabelList* _get_reference() { - return (TDF_ListNodeOfLabelList*)$self->Access(); - } -}; - -%extend Handle_TDF_ListNodeOfLabelList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_ListNodeOfLabelList) %extend TDF_ListNodeOfLabelList { %pythoncode { @@ -5527,51 +4726,7 @@ class TDF_RelocationTable : public MMgt_TShared { }; -%extend TDF_RelocationTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_RelocationTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_RelocationTable::Handle_TDF_RelocationTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_RelocationTable; -class Handle_TDF_RelocationTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDF_RelocationTable(); - Handle_TDF_RelocationTable(const Handle_TDF_RelocationTable &aHandle); - Handle_TDF_RelocationTable(const TDF_RelocationTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_RelocationTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_RelocationTable { - TDF_RelocationTable* _get_reference() { - return (TDF_RelocationTable*)$self->Access(); - } -}; - -%extend Handle_TDF_RelocationTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_RelocationTable) %extend TDF_RelocationTable { %pythoncode { @@ -5598,51 +4753,7 @@ class TDF_SequenceNodeOfAttributeSequence : public TCollection_SeqNode { }; -%extend TDF_SequenceNodeOfAttributeSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_SequenceNodeOfAttributeSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_SequenceNodeOfAttributeSequence::Handle_TDF_SequenceNodeOfAttributeSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_SequenceNodeOfAttributeSequence; -class Handle_TDF_SequenceNodeOfAttributeSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TDF_SequenceNodeOfAttributeSequence(); - Handle_TDF_SequenceNodeOfAttributeSequence(const Handle_TDF_SequenceNodeOfAttributeSequence &aHandle); - Handle_TDF_SequenceNodeOfAttributeSequence(const TDF_SequenceNodeOfAttributeSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_SequenceNodeOfAttributeSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_SequenceNodeOfAttributeSequence { - TDF_SequenceNodeOfAttributeSequence* _get_reference() { - return (TDF_SequenceNodeOfAttributeSequence*)$self->Access(); - } -}; - -%extend Handle_TDF_SequenceNodeOfAttributeSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_SequenceNodeOfAttributeSequence) %extend TDF_SequenceNodeOfAttributeSequence { %pythoncode { @@ -5669,51 +4780,7 @@ class TDF_SequenceNodeOfLabelSequence : public TCollection_SeqNode { }; -%extend TDF_SequenceNodeOfLabelSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_SequenceNodeOfLabelSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_SequenceNodeOfLabelSequence::Handle_TDF_SequenceNodeOfLabelSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_SequenceNodeOfLabelSequence; -class Handle_TDF_SequenceNodeOfLabelSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TDF_SequenceNodeOfLabelSequence(); - Handle_TDF_SequenceNodeOfLabelSequence(const Handle_TDF_SequenceNodeOfLabelSequence &aHandle); - Handle_TDF_SequenceNodeOfLabelSequence(const TDF_SequenceNodeOfLabelSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_SequenceNodeOfLabelSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_SequenceNodeOfLabelSequence { - TDF_SequenceNodeOfLabelSequence* _get_reference() { - return (TDF_SequenceNodeOfLabelSequence*)$self->Access(); - } -}; - -%extend Handle_TDF_SequenceNodeOfLabelSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_SequenceNodeOfLabelSequence) %extend TDF_SequenceNodeOfLabelSequence { %pythoncode { @@ -5738,51 +4805,7 @@ class TDF_StdMapNodeOfAttributeMap : public TCollection_MapNode { }; -%extend TDF_StdMapNodeOfAttributeMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_StdMapNodeOfAttributeMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_StdMapNodeOfAttributeMap::Handle_TDF_StdMapNodeOfAttributeMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_StdMapNodeOfAttributeMap; -class Handle_TDF_StdMapNodeOfAttributeMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_StdMapNodeOfAttributeMap(); - Handle_TDF_StdMapNodeOfAttributeMap(const Handle_TDF_StdMapNodeOfAttributeMap &aHandle); - Handle_TDF_StdMapNodeOfAttributeMap(const TDF_StdMapNodeOfAttributeMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_StdMapNodeOfAttributeMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_StdMapNodeOfAttributeMap { - TDF_StdMapNodeOfAttributeMap* _get_reference() { - return (TDF_StdMapNodeOfAttributeMap*)$self->Access(); - } -}; - -%extend Handle_TDF_StdMapNodeOfAttributeMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_StdMapNodeOfAttributeMap) %extend TDF_StdMapNodeOfAttributeMap { %pythoncode { @@ -5807,51 +4830,7 @@ class TDF_StdMapNodeOfIDMap : public TCollection_MapNode { }; -%extend TDF_StdMapNodeOfIDMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_StdMapNodeOfIDMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_StdMapNodeOfIDMap::Handle_TDF_StdMapNodeOfIDMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_StdMapNodeOfIDMap; -class Handle_TDF_StdMapNodeOfIDMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_StdMapNodeOfIDMap(); - Handle_TDF_StdMapNodeOfIDMap(const Handle_TDF_StdMapNodeOfIDMap &aHandle); - Handle_TDF_StdMapNodeOfIDMap(const TDF_StdMapNodeOfIDMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_StdMapNodeOfIDMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_StdMapNodeOfIDMap { - TDF_StdMapNodeOfIDMap* _get_reference() { - return (TDF_StdMapNodeOfIDMap*)$self->Access(); - } -}; - -%extend Handle_TDF_StdMapNodeOfIDMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_StdMapNodeOfIDMap) %extend TDF_StdMapNodeOfIDMap { %pythoncode { @@ -5876,51 +4855,7 @@ class TDF_StdMapNodeOfLabelMap : public TCollection_MapNode { }; -%extend TDF_StdMapNodeOfLabelMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_StdMapNodeOfLabelMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_StdMapNodeOfLabelMap::Handle_TDF_StdMapNodeOfLabelMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_StdMapNodeOfLabelMap; -class Handle_TDF_StdMapNodeOfLabelMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDF_StdMapNodeOfLabelMap(); - Handle_TDF_StdMapNodeOfLabelMap(const Handle_TDF_StdMapNodeOfLabelMap &aHandle); - Handle_TDF_StdMapNodeOfLabelMap(const TDF_StdMapNodeOfLabelMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_StdMapNodeOfLabelMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_StdMapNodeOfLabelMap { - TDF_StdMapNodeOfLabelMap* _get_reference() { - return (TDF_StdMapNodeOfLabelMap*)$self->Access(); - } -}; - -%extend Handle_TDF_StdMapNodeOfLabelMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_StdMapNodeOfLabelMap) %extend TDF_StdMapNodeOfLabelMap { %pythoncode { @@ -6282,51 +5217,7 @@ class TDF_DeltaOnAddition : public TDF_AttributeDelta { }; -%extend TDF_DeltaOnAddition { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DeltaOnAddition(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DeltaOnAddition::Handle_TDF_DeltaOnAddition %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DeltaOnAddition; -class Handle_TDF_DeltaOnAddition : public Handle_TDF_AttributeDelta { - - public: - // constructors - Handle_TDF_DeltaOnAddition(); - Handle_TDF_DeltaOnAddition(const Handle_TDF_DeltaOnAddition &aHandle); - Handle_TDF_DeltaOnAddition(const TDF_DeltaOnAddition *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DeltaOnAddition DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DeltaOnAddition { - TDF_DeltaOnAddition* _get_reference() { - return (TDF_DeltaOnAddition*)$self->Access(); - } -}; - -%extend Handle_TDF_DeltaOnAddition { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DeltaOnAddition) %extend TDF_DeltaOnAddition { %pythoncode { @@ -6353,51 +5244,7 @@ class TDF_DeltaOnForget : public TDF_AttributeDelta { }; -%extend TDF_DeltaOnForget { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DeltaOnForget(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DeltaOnForget::Handle_TDF_DeltaOnForget %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DeltaOnForget; -class Handle_TDF_DeltaOnForget : public Handle_TDF_AttributeDelta { - - public: - // constructors - Handle_TDF_DeltaOnForget(); - Handle_TDF_DeltaOnForget(const Handle_TDF_DeltaOnForget &aHandle); - Handle_TDF_DeltaOnForget(const TDF_DeltaOnForget *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DeltaOnForget DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DeltaOnForget { - TDF_DeltaOnForget* _get_reference() { - return (TDF_DeltaOnForget*)$self->Access(); - } -}; - -%extend Handle_TDF_DeltaOnForget { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DeltaOnForget) %extend TDF_DeltaOnForget { %pythoncode { @@ -6416,51 +5263,7 @@ class TDF_DeltaOnModification : public TDF_AttributeDelta { }; -%extend TDF_DeltaOnModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DeltaOnModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DeltaOnModification::Handle_TDF_DeltaOnModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DeltaOnModification; -class Handle_TDF_DeltaOnModification : public Handle_TDF_AttributeDelta { - - public: - // constructors - Handle_TDF_DeltaOnModification(); - Handle_TDF_DeltaOnModification(const Handle_TDF_DeltaOnModification &aHandle); - Handle_TDF_DeltaOnModification(const TDF_DeltaOnModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DeltaOnModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DeltaOnModification { - TDF_DeltaOnModification* _get_reference() { - return (TDF_DeltaOnModification*)$self->Access(); - } -}; - -%extend Handle_TDF_DeltaOnModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DeltaOnModification) %extend TDF_DeltaOnModification { %pythoncode { @@ -6473,51 +5276,7 @@ class TDF_DeltaOnRemoval : public TDF_AttributeDelta { }; -%extend TDF_DeltaOnRemoval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DeltaOnRemoval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DeltaOnRemoval::Handle_TDF_DeltaOnRemoval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DeltaOnRemoval; -class Handle_TDF_DeltaOnRemoval : public Handle_TDF_AttributeDelta { - - public: - // constructors - Handle_TDF_DeltaOnRemoval(); - Handle_TDF_DeltaOnRemoval(const Handle_TDF_DeltaOnRemoval &aHandle); - Handle_TDF_DeltaOnRemoval(const TDF_DeltaOnRemoval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DeltaOnRemoval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DeltaOnRemoval { - TDF_DeltaOnRemoval* _get_reference() { - return (TDF_DeltaOnRemoval*)$self->Access(); - } -}; - -%extend Handle_TDF_DeltaOnRemoval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DeltaOnRemoval) %extend TDF_DeltaOnRemoval { %pythoncode { @@ -6544,51 +5303,7 @@ class TDF_DeltaOnResume : public TDF_AttributeDelta { }; -%extend TDF_DeltaOnResume { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DeltaOnResume(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DeltaOnResume::Handle_TDF_DeltaOnResume %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DeltaOnResume; -class Handle_TDF_DeltaOnResume : public Handle_TDF_AttributeDelta { - - public: - // constructors - Handle_TDF_DeltaOnResume(); - Handle_TDF_DeltaOnResume(const Handle_TDF_DeltaOnResume &aHandle); - Handle_TDF_DeltaOnResume(const TDF_DeltaOnResume *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DeltaOnResume DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DeltaOnResume { - TDF_DeltaOnResume* _get_reference() { - return (TDF_DeltaOnResume*)$self->Access(); - } -}; - -%extend Handle_TDF_DeltaOnResume { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DeltaOnResume) %extend TDF_DeltaOnResume { %pythoncode { @@ -6663,51 +5378,7 @@ class TDF_Reference : public TDF_Attribute { }; -%extend TDF_Reference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_Reference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_Reference::Handle_TDF_Reference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_Reference; -class Handle_TDF_Reference : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDF_Reference(); - Handle_TDF_Reference(const Handle_TDF_Reference &aHandle); - Handle_TDF_Reference(const TDF_Reference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_Reference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_Reference { - TDF_Reference* _get_reference() { - return (TDF_Reference*)$self->Access(); - } -}; - -%extend Handle_TDF_Reference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_Reference) %extend TDF_Reference { %pythoncode { @@ -6788,51 +5459,7 @@ class TDF_TagSource : public TDF_Attribute { }; -%extend TDF_TagSource { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_TagSource(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_TagSource::Handle_TDF_TagSource %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_TagSource; -class Handle_TDF_TagSource : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDF_TagSource(); - Handle_TDF_TagSource(const Handle_TDF_TagSource &aHandle); - Handle_TDF_TagSource(const TDF_TagSource *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_TagSource DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_TagSource { - TDF_TagSource* _get_reference() { - return (TDF_TagSource*)$self->Access(); - } -}; - -%extend Handle_TDF_TagSource { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_TagSource) %extend TDF_TagSource { %pythoncode { @@ -6859,51 +5486,7 @@ class TDF_DefaultDeltaOnModification : public TDF_DeltaOnModification { }; -%extend TDF_DefaultDeltaOnModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DefaultDeltaOnModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DefaultDeltaOnModification::Handle_TDF_DefaultDeltaOnModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DefaultDeltaOnModification; -class Handle_TDF_DefaultDeltaOnModification : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TDF_DefaultDeltaOnModification(); - Handle_TDF_DefaultDeltaOnModification(const Handle_TDF_DefaultDeltaOnModification &aHandle); - Handle_TDF_DefaultDeltaOnModification(const TDF_DefaultDeltaOnModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DefaultDeltaOnModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DefaultDeltaOnModification { - TDF_DefaultDeltaOnModification* _get_reference() { - return (TDF_DefaultDeltaOnModification*)$self->Access(); - } -}; - -%extend Handle_TDF_DefaultDeltaOnModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DefaultDeltaOnModification) %extend TDF_DefaultDeltaOnModification { %pythoncode { @@ -6930,51 +5513,7 @@ class TDF_DefaultDeltaOnRemoval : public TDF_DeltaOnRemoval { }; -%extend TDF_DefaultDeltaOnRemoval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDF_DefaultDeltaOnRemoval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDF_DefaultDeltaOnRemoval::Handle_TDF_DefaultDeltaOnRemoval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDF_DefaultDeltaOnRemoval; -class Handle_TDF_DefaultDeltaOnRemoval : public Handle_TDF_DeltaOnRemoval { - - public: - // constructors - Handle_TDF_DefaultDeltaOnRemoval(); - Handle_TDF_DefaultDeltaOnRemoval(const Handle_TDF_DefaultDeltaOnRemoval &aHandle); - Handle_TDF_DefaultDeltaOnRemoval(const TDF_DefaultDeltaOnRemoval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDF_DefaultDeltaOnRemoval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDF_DefaultDeltaOnRemoval { - TDF_DefaultDeltaOnRemoval* _get_reference() { - return (TDF_DefaultDeltaOnRemoval*)$self->Access(); - } -}; - -%extend Handle_TDF_DefaultDeltaOnRemoval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDF_DefaultDeltaOnRemoval) %extend TDF_DefaultDeltaOnRemoval { %pythoncode { diff --git a/src/SWIG_files/wrapper/TDataStd.i b/src/SWIG_files/wrapper/TDataStd.i index 89f4f3314..f8eca100b 100644 --- a/src/SWIG_files/wrapper/TDataStd.i +++ b/src/SWIG_files/wrapper/TDataStd.i @@ -18,7 +18,42 @@ along with pythonOCC. If not, see . */ %define TDATASTDDOCSTRING -"No docstring provided." +"This package defines standard attributes for +modelling. +These allow you to create and modify labels +and attributes for many basic data types. +Standard topological and visualization +attributes have also been created. +To find an attribute attached to a specific label, +you use the GUID of the type of attribute you +are looking for. To do this, first find this +information using the method GetID as follows: Standard_GUID anID = +MyAttributeClass::GetID(); +Then, use the method Find for the label as follows: +Standard_Boolean HasAttribute += +aLabel.Find(anID,anAttribute); +Note +For information on the relations between this +component of OCAF and the others, refer to the OCAF User's Guide. + +- Category: GUID - AttributeID +2a96b606-ec8b-11d0-bee7-080009dc3333 TDataStd_Integer + +2a96b608-ec8b-11d0-bee7-080009dc3333 TDataStd_Name +2a96b60f-ec8b-11d0-bee7-080009dc3333 TDataStd_Real +2a96b610-ec8b-11d0-bee7-080009dc3333 TDataStd_Reference +2a96b616-ec8b-11d0-bee7-080009dc3333 TDataStd_Comment +2a96b61c-ec8b-11d0-bee7-080009dc3333 TDataStd_UAttribute +2a96b61d-ec8b-11d0-bee7-080009dc3333 TDataStd_IntegerArray +2a96b61e-ec8b-11d0-bee7-080009dc3333 TDataStd_RealArray +2a96b624-ec8b-11d0-bee7-080009dc3333 TDataStd_ExtStringArray +2a96b609-ec8b-11d0-bee7-080009dc3333 TDataStd_NoteBook +2a96b61f-ec8b-11d0-bee7-080009dc3333 TDataStd_Directory + + + +" %enddef %module (package="OCC.Core", docstring=TDATASTDDOCSTRING) TDataStd @@ -34,25 +69,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TDataStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TDataStd_TreeNode * TDataStd_PtrTreeNode; /* end typedefs declaration */ @@ -66,6 +87,53 @@ enum TDataStd_RealEnum { /* end public enums declaration */ +%wrap_handle(TDataStd_AsciiString) +%wrap_handle(TDataStd_BooleanArray) +%wrap_handle(TDataStd_BooleanList) +%wrap_handle(TDataStd_ByteArray) +%wrap_handle(TDataStd_Comment) +%wrap_handle(TDataStd_Current) +%wrap_handle(TDataStd_DataMapNodeOfDataMapOfStringByte) +%wrap_handle(TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger) +%wrap_handle(TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal) +%wrap_handle(TDataStd_DataMapNodeOfDataMapOfStringReal) +%wrap_handle(TDataStd_DataMapNodeOfDataMapOfStringString) +%wrap_handle(TDataStd_DeltaOnModificationOfByteArray) +%wrap_handle(TDataStd_DeltaOnModificationOfExtStringArray) +%wrap_handle(TDataStd_DeltaOnModificationOfIntArray) +%wrap_handle(TDataStd_DeltaOnModificationOfIntPackedMap) +%wrap_handle(TDataStd_DeltaOnModificationOfRealArray) +%wrap_handle(TDataStd_Directory) +%wrap_handle(TDataStd_Expression) +%wrap_handle(TDataStd_ExtStringArray) +%wrap_handle(TDataStd_ExtStringList) +%wrap_handle(TDataStd_HDataMapOfStringByte) +%wrap_handle(TDataStd_HDataMapOfStringHArray1OfInteger) +%wrap_handle(TDataStd_HDataMapOfStringHArray1OfReal) +%wrap_handle(TDataStd_HDataMapOfStringInteger) +%wrap_handle(TDataStd_HDataMapOfStringReal) +%wrap_handle(TDataStd_HDataMapOfStringString) +%wrap_handle(TDataStd_HLabelArray1) +%wrap_handle(TDataStd_IntPackedMap) +%wrap_handle(TDataStd_Integer) +%wrap_handle(TDataStd_IntegerArray) +%wrap_handle(TDataStd_IntegerList) +%wrap_handle(TDataStd_ListNodeOfListOfByte) +%wrap_handle(TDataStd_ListNodeOfListOfExtendedString) +%wrap_handle(TDataStd_Name) +%wrap_handle(TDataStd_NamedData) +%wrap_handle(TDataStd_NoteBook) +%wrap_handle(TDataStd_Real) +%wrap_handle(TDataStd_RealArray) +%wrap_handle(TDataStd_RealList) +%wrap_handle(TDataStd_ReferenceArray) +%wrap_handle(TDataStd_ReferenceList) +%wrap_handle(TDataStd_Relation) +%wrap_handle(TDataStd_Tick) +%wrap_handle(TDataStd_TreeNode) +%wrap_handle(TDataStd_UAttribute) +%wrap_handle(TDataStd_Variable) + %rename(tdatastd) TDataStd; class TDataStd { public: @@ -165,51 +233,7 @@ class TDataStd_AsciiString : public TDF_Attribute { }; -%extend TDataStd_AsciiString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_AsciiString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_AsciiString::Handle_TDataStd_AsciiString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_AsciiString; -class Handle_TDataStd_AsciiString : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_AsciiString(); - Handle_TDataStd_AsciiString(const Handle_TDataStd_AsciiString &aHandle); - Handle_TDataStd_AsciiString(const TDataStd_AsciiString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_AsciiString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_AsciiString { - TDataStd_AsciiString* _get_reference() { - return (TDataStd_AsciiString*)$self->Access(); - } -}; - -%extend Handle_TDataStd_AsciiString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_AsciiString) %extend TDataStd_AsciiString { %pythoncode { @@ -330,51 +354,7 @@ class TDataStd_BooleanArray : public TDF_Attribute { }; -%extend TDataStd_BooleanArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_BooleanArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_BooleanArray::Handle_TDataStd_BooleanArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_BooleanArray; -class Handle_TDataStd_BooleanArray : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_BooleanArray(); - Handle_TDataStd_BooleanArray(const Handle_TDataStd_BooleanArray &aHandle); - Handle_TDataStd_BooleanArray(const TDataStd_BooleanArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_BooleanArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_BooleanArray { - TDataStd_BooleanArray* _get_reference() { - return (TDataStd_BooleanArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_BooleanArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_BooleanArray) %extend TDataStd_BooleanArray { %pythoncode { @@ -473,51 +453,7 @@ class TDataStd_BooleanList : public TDF_Attribute { }; -%extend TDataStd_BooleanList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_BooleanList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_BooleanList::Handle_TDataStd_BooleanList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_BooleanList; -class Handle_TDataStd_BooleanList : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_BooleanList(); - Handle_TDataStd_BooleanList(const Handle_TDataStd_BooleanList &aHandle); - Handle_TDataStd_BooleanList(const TDataStd_BooleanList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_BooleanList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_BooleanList { - TDataStd_BooleanList* _get_reference() { - return (TDataStd_BooleanList*)$self->Access(); - } -}; - -%extend Handle_TDataStd_BooleanList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_BooleanList) %extend TDataStd_BooleanList { %pythoncode { @@ -664,51 +600,7 @@ class TDataStd_ByteArray : public TDF_Attribute { }; -%extend TDataStd_ByteArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ByteArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ByteArray::Handle_TDataStd_ByteArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ByteArray; -class Handle_TDataStd_ByteArray : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_ByteArray(); - Handle_TDataStd_ByteArray(const Handle_TDataStd_ByteArray &aHandle); - Handle_TDataStd_ByteArray(const TDataStd_ByteArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ByteArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ByteArray { - TDataStd_ByteArray* _get_reference() { - return (TDataStd_ByteArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ByteArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ByteArray) %extend TDataStd_ByteArray { %pythoncode { @@ -858,51 +750,7 @@ class TDataStd_Comment : public TDF_Attribute { }; -%extend TDataStd_Comment { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Comment(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Comment::Handle_TDataStd_Comment %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Comment; -class Handle_TDataStd_Comment : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Comment(); - Handle_TDataStd_Comment(const Handle_TDataStd_Comment &aHandle); - Handle_TDataStd_Comment(const TDataStd_Comment *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Comment DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Comment { - TDataStd_Comment* _get_reference() { - return (TDataStd_Comment*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Comment { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Comment) %extend TDataStd_Comment { %pythoncode { @@ -989,51 +837,7 @@ class TDataStd_Current : public TDF_Attribute { }; -%extend TDataStd_Current { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Current(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Current::Handle_TDataStd_Current %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Current; -class Handle_TDataStd_Current : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Current(); - Handle_TDataStd_Current(const Handle_TDataStd_Current &aHandle); - Handle_TDataStd_Current(const TDataStd_Current *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Current DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Current { - TDataStd_Current* _get_reference() { - return (TDataStd_Current*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Current { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Current) %extend TDataStd_Current { %pythoncode { @@ -1239,51 +1043,7 @@ class TDataStd_DataMapNodeOfDataMapOfStringByte : public TCollection_MapNode { }; -%extend TDataStd_DataMapNodeOfDataMapOfStringByte { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DataMapNodeOfDataMapOfStringByte(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DataMapNodeOfDataMapOfStringByte::Handle_TDataStd_DataMapNodeOfDataMapOfStringByte %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DataMapNodeOfDataMapOfStringByte; -class Handle_TDataStd_DataMapNodeOfDataMapOfStringByte : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_DataMapNodeOfDataMapOfStringByte(); - Handle_TDataStd_DataMapNodeOfDataMapOfStringByte(const Handle_TDataStd_DataMapNodeOfDataMapOfStringByte &aHandle); - Handle_TDataStd_DataMapNodeOfDataMapOfStringByte(const TDataStd_DataMapNodeOfDataMapOfStringByte *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DataMapNodeOfDataMapOfStringByte DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringByte { - TDataStd_DataMapNodeOfDataMapOfStringByte* _get_reference() { - return (TDataStd_DataMapNodeOfDataMapOfStringByte*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringByte { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DataMapNodeOfDataMapOfStringByte) %extend TDataStd_DataMapNodeOfDataMapOfStringByte { %pythoncode { @@ -1314,51 +1074,7 @@ class TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger : public TCollection }; -%extend TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger::Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger; -class Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger(); - Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger(const Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger &aHandle); - Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger(const TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger { - TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger* _get_reference() { - return (TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger) %extend TDataStd_DataMapNodeOfDataMapOfStringHArray1OfInteger { %pythoncode { @@ -1389,51 +1105,7 @@ class TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal : public TCollection_Ma }; -%extend TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal::Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal; -class Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal(); - Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal(const Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal &aHandle); - Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal(const TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal { - TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal* _get_reference() { - return (TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal) %extend TDataStd_DataMapNodeOfDataMapOfStringHArray1OfReal { %pythoncode { @@ -1473,51 +1145,7 @@ class TDataStd_DataMapNodeOfDataMapOfStringReal : public TCollection_MapNode { }; -%extend TDataStd_DataMapNodeOfDataMapOfStringReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DataMapNodeOfDataMapOfStringReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DataMapNodeOfDataMapOfStringReal::Handle_TDataStd_DataMapNodeOfDataMapOfStringReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DataMapNodeOfDataMapOfStringReal; -class Handle_TDataStd_DataMapNodeOfDataMapOfStringReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_DataMapNodeOfDataMapOfStringReal(); - Handle_TDataStd_DataMapNodeOfDataMapOfStringReal(const Handle_TDataStd_DataMapNodeOfDataMapOfStringReal &aHandle); - Handle_TDataStd_DataMapNodeOfDataMapOfStringReal(const TDataStd_DataMapNodeOfDataMapOfStringReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DataMapNodeOfDataMapOfStringReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringReal { - TDataStd_DataMapNodeOfDataMapOfStringReal* _get_reference() { - return (TDataStd_DataMapNodeOfDataMapOfStringReal*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DataMapNodeOfDataMapOfStringReal) %extend TDataStd_DataMapNodeOfDataMapOfStringReal { %pythoncode { @@ -1548,51 +1176,7 @@ class TDataStd_DataMapNodeOfDataMapOfStringString : public TCollection_MapNode { }; -%extend TDataStd_DataMapNodeOfDataMapOfStringString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DataMapNodeOfDataMapOfStringString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DataMapNodeOfDataMapOfStringString::Handle_TDataStd_DataMapNodeOfDataMapOfStringString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DataMapNodeOfDataMapOfStringString; -class Handle_TDataStd_DataMapNodeOfDataMapOfStringString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_DataMapNodeOfDataMapOfStringString(); - Handle_TDataStd_DataMapNodeOfDataMapOfStringString(const Handle_TDataStd_DataMapNodeOfDataMapOfStringString &aHandle); - Handle_TDataStd_DataMapNodeOfDataMapOfStringString(const TDataStd_DataMapNodeOfDataMapOfStringString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DataMapNodeOfDataMapOfStringString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringString { - TDataStd_DataMapNodeOfDataMapOfStringString* _get_reference() { - return (TDataStd_DataMapNodeOfDataMapOfStringString*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DataMapNodeOfDataMapOfStringString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DataMapNodeOfDataMapOfStringString) %extend TDataStd_DataMapNodeOfDataMapOfStringString { %pythoncode { @@ -2034,51 +1618,7 @@ class TDataStd_DeltaOnModificationOfByteArray : public TDF_DeltaOnModification { }; -%extend TDataStd_DeltaOnModificationOfByteArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DeltaOnModificationOfByteArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DeltaOnModificationOfByteArray::Handle_TDataStd_DeltaOnModificationOfByteArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DeltaOnModificationOfByteArray; -class Handle_TDataStd_DeltaOnModificationOfByteArray : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TDataStd_DeltaOnModificationOfByteArray(); - Handle_TDataStd_DeltaOnModificationOfByteArray(const Handle_TDataStd_DeltaOnModificationOfByteArray &aHandle); - Handle_TDataStd_DeltaOnModificationOfByteArray(const TDataStd_DeltaOnModificationOfByteArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DeltaOnModificationOfByteArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DeltaOnModificationOfByteArray { - TDataStd_DeltaOnModificationOfByteArray* _get_reference() { - return (TDataStd_DeltaOnModificationOfByteArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DeltaOnModificationOfByteArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DeltaOnModificationOfByteArray) %extend TDataStd_DeltaOnModificationOfByteArray { %pythoncode { @@ -2105,51 +1645,7 @@ class TDataStd_DeltaOnModificationOfExtStringArray : public TDF_DeltaOnModificat }; -%extend TDataStd_DeltaOnModificationOfExtStringArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DeltaOnModificationOfExtStringArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DeltaOnModificationOfExtStringArray::Handle_TDataStd_DeltaOnModificationOfExtStringArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DeltaOnModificationOfExtStringArray; -class Handle_TDataStd_DeltaOnModificationOfExtStringArray : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TDataStd_DeltaOnModificationOfExtStringArray(); - Handle_TDataStd_DeltaOnModificationOfExtStringArray(const Handle_TDataStd_DeltaOnModificationOfExtStringArray &aHandle); - Handle_TDataStd_DeltaOnModificationOfExtStringArray(const TDataStd_DeltaOnModificationOfExtStringArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DeltaOnModificationOfExtStringArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DeltaOnModificationOfExtStringArray { - TDataStd_DeltaOnModificationOfExtStringArray* _get_reference() { - return (TDataStd_DeltaOnModificationOfExtStringArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DeltaOnModificationOfExtStringArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DeltaOnModificationOfExtStringArray) %extend TDataStd_DeltaOnModificationOfExtStringArray { %pythoncode { @@ -2176,51 +1672,7 @@ class TDataStd_DeltaOnModificationOfIntArray : public TDF_DeltaOnModification { }; -%extend TDataStd_DeltaOnModificationOfIntArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DeltaOnModificationOfIntArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DeltaOnModificationOfIntArray::Handle_TDataStd_DeltaOnModificationOfIntArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DeltaOnModificationOfIntArray; -class Handle_TDataStd_DeltaOnModificationOfIntArray : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TDataStd_DeltaOnModificationOfIntArray(); - Handle_TDataStd_DeltaOnModificationOfIntArray(const Handle_TDataStd_DeltaOnModificationOfIntArray &aHandle); - Handle_TDataStd_DeltaOnModificationOfIntArray(const TDataStd_DeltaOnModificationOfIntArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DeltaOnModificationOfIntArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DeltaOnModificationOfIntArray { - TDataStd_DeltaOnModificationOfIntArray* _get_reference() { - return (TDataStd_DeltaOnModificationOfIntArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DeltaOnModificationOfIntArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DeltaOnModificationOfIntArray) %extend TDataStd_DeltaOnModificationOfIntArray { %pythoncode { @@ -2247,51 +1699,7 @@ class TDataStd_DeltaOnModificationOfIntPackedMap : public TDF_DeltaOnModificatio }; -%extend TDataStd_DeltaOnModificationOfIntPackedMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DeltaOnModificationOfIntPackedMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DeltaOnModificationOfIntPackedMap::Handle_TDataStd_DeltaOnModificationOfIntPackedMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DeltaOnModificationOfIntPackedMap; -class Handle_TDataStd_DeltaOnModificationOfIntPackedMap : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TDataStd_DeltaOnModificationOfIntPackedMap(); - Handle_TDataStd_DeltaOnModificationOfIntPackedMap(const Handle_TDataStd_DeltaOnModificationOfIntPackedMap &aHandle); - Handle_TDataStd_DeltaOnModificationOfIntPackedMap(const TDataStd_DeltaOnModificationOfIntPackedMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DeltaOnModificationOfIntPackedMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DeltaOnModificationOfIntPackedMap { - TDataStd_DeltaOnModificationOfIntPackedMap* _get_reference() { - return (TDataStd_DeltaOnModificationOfIntPackedMap*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DeltaOnModificationOfIntPackedMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DeltaOnModificationOfIntPackedMap) %extend TDataStd_DeltaOnModificationOfIntPackedMap { %pythoncode { @@ -2318,51 +1726,7 @@ class TDataStd_DeltaOnModificationOfRealArray : public TDF_DeltaOnModification { }; -%extend TDataStd_DeltaOnModificationOfRealArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_DeltaOnModificationOfRealArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_DeltaOnModificationOfRealArray::Handle_TDataStd_DeltaOnModificationOfRealArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_DeltaOnModificationOfRealArray; -class Handle_TDataStd_DeltaOnModificationOfRealArray : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TDataStd_DeltaOnModificationOfRealArray(); - Handle_TDataStd_DeltaOnModificationOfRealArray(const Handle_TDataStd_DeltaOnModificationOfRealArray &aHandle); - Handle_TDataStd_DeltaOnModificationOfRealArray(const TDataStd_DeltaOnModificationOfRealArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_DeltaOnModificationOfRealArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_DeltaOnModificationOfRealArray { - TDataStd_DeltaOnModificationOfRealArray* _get_reference() { - return (TDataStd_DeltaOnModificationOfRealArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_DeltaOnModificationOfRealArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_DeltaOnModificationOfRealArray) %extend TDataStd_DeltaOnModificationOfRealArray { %pythoncode { @@ -2455,51 +1819,7 @@ class TDataStd_Directory : public TDF_Attribute { }; -%extend TDataStd_Directory { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Directory(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Directory::Handle_TDataStd_Directory %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Directory; -class Handle_TDataStd_Directory : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Directory(); - Handle_TDataStd_Directory(const Handle_TDataStd_Directory &aHandle); - Handle_TDataStd_Directory(const TDataStd_Directory *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Directory DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Directory { - TDataStd_Directory* _get_reference() { - return (TDataStd_Directory*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Directory { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Directory) %extend TDataStd_Directory { %pythoncode { @@ -2580,51 +1900,7 @@ class TDataStd_Expression : public TDF_Attribute { }; -%extend TDataStd_Expression { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Expression(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Expression::Handle_TDataStd_Expression %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Expression; -class Handle_TDataStd_Expression : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Expression(); - Handle_TDataStd_Expression(const Handle_TDataStd_Expression &aHandle); - Handle_TDataStd_Expression(const TDataStd_Expression *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Expression DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Expression { - TDataStd_Expression* _get_reference() { - return (TDataStd_Expression*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Expression { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Expression) %extend TDataStd_Expression { %pythoncode { @@ -2773,51 +2049,7 @@ class TDataStd_ExtStringArray : public TDF_Attribute { }; -%extend TDataStd_ExtStringArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ExtStringArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ExtStringArray::Handle_TDataStd_ExtStringArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ExtStringArray; -class Handle_TDataStd_ExtStringArray : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_ExtStringArray(); - Handle_TDataStd_ExtStringArray(const Handle_TDataStd_ExtStringArray &aHandle); - Handle_TDataStd_ExtStringArray(const TDataStd_ExtStringArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ExtStringArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ExtStringArray { - TDataStd_ExtStringArray* _get_reference() { - return (TDataStd_ExtStringArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ExtStringArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ExtStringArray) %extend TDataStd_ExtStringArray { %pythoncode { @@ -2942,51 +2174,7 @@ class TDataStd_ExtStringList : public TDF_Attribute { }; -%extend TDataStd_ExtStringList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ExtStringList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ExtStringList::Handle_TDataStd_ExtStringList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ExtStringList; -class Handle_TDataStd_ExtStringList : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_ExtStringList(); - Handle_TDataStd_ExtStringList(const Handle_TDataStd_ExtStringList &aHandle); - Handle_TDataStd_ExtStringList(const TDataStd_ExtStringList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ExtStringList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ExtStringList { - TDataStd_ExtStringList* _get_reference() { - return (TDataStd_ExtStringList*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ExtStringList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ExtStringList) %extend TDataStd_ExtStringList { %pythoncode { @@ -3019,51 +2207,7 @@ class TDataStd_HDataMapOfStringByte : public MMgt_TShared { }; -%extend TDataStd_HDataMapOfStringByte { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HDataMapOfStringByte(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_HDataMapOfStringByte::Handle_TDataStd_HDataMapOfStringByte %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HDataMapOfStringByte; -class Handle_TDataStd_HDataMapOfStringByte : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HDataMapOfStringByte(); - Handle_TDataStd_HDataMapOfStringByte(const Handle_TDataStd_HDataMapOfStringByte &aHandle); - Handle_TDataStd_HDataMapOfStringByte(const TDataStd_HDataMapOfStringByte *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HDataMapOfStringByte DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HDataMapOfStringByte { - TDataStd_HDataMapOfStringByte* _get_reference() { - return (TDataStd_HDataMapOfStringByte*)$self->Access(); - } -}; - -%extend Handle_TDataStd_HDataMapOfStringByte { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HDataMapOfStringByte) %extend TDataStd_HDataMapOfStringByte { %pythoncode { @@ -3096,51 +2240,7 @@ class TDataStd_HDataMapOfStringHArray1OfInteger : public MMgt_TShared { }; -%extend TDataStd_HDataMapOfStringHArray1OfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HDataMapOfStringHArray1OfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_HDataMapOfStringHArray1OfInteger::Handle_TDataStd_HDataMapOfStringHArray1OfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HDataMapOfStringHArray1OfInteger; -class Handle_TDataStd_HDataMapOfStringHArray1OfInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HDataMapOfStringHArray1OfInteger(); - Handle_TDataStd_HDataMapOfStringHArray1OfInteger(const Handle_TDataStd_HDataMapOfStringHArray1OfInteger &aHandle); - Handle_TDataStd_HDataMapOfStringHArray1OfInteger(const TDataStd_HDataMapOfStringHArray1OfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HDataMapOfStringHArray1OfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HDataMapOfStringHArray1OfInteger { - TDataStd_HDataMapOfStringHArray1OfInteger* _get_reference() { - return (TDataStd_HDataMapOfStringHArray1OfInteger*)$self->Access(); - } -}; - -%extend Handle_TDataStd_HDataMapOfStringHArray1OfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HDataMapOfStringHArray1OfInteger) %extend TDataStd_HDataMapOfStringHArray1OfInteger { %pythoncode { @@ -3173,51 +2273,7 @@ class TDataStd_HDataMapOfStringHArray1OfReal : public MMgt_TShared { }; -%extend TDataStd_HDataMapOfStringHArray1OfReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HDataMapOfStringHArray1OfReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_HDataMapOfStringHArray1OfReal::Handle_TDataStd_HDataMapOfStringHArray1OfReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HDataMapOfStringHArray1OfReal; -class Handle_TDataStd_HDataMapOfStringHArray1OfReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HDataMapOfStringHArray1OfReal(); - Handle_TDataStd_HDataMapOfStringHArray1OfReal(const Handle_TDataStd_HDataMapOfStringHArray1OfReal &aHandle); - Handle_TDataStd_HDataMapOfStringHArray1OfReal(const TDataStd_HDataMapOfStringHArray1OfReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HDataMapOfStringHArray1OfReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HDataMapOfStringHArray1OfReal { - TDataStd_HDataMapOfStringHArray1OfReal* _get_reference() { - return (TDataStd_HDataMapOfStringHArray1OfReal*)$self->Access(); - } -}; - -%extend Handle_TDataStd_HDataMapOfStringHArray1OfReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HDataMapOfStringHArray1OfReal) %extend TDataStd_HDataMapOfStringHArray1OfReal { %pythoncode { @@ -3250,51 +2306,7 @@ class TDataStd_HDataMapOfStringInteger : public MMgt_TShared { }; -%extend TDataStd_HDataMapOfStringInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HDataMapOfStringInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_HDataMapOfStringInteger::Handle_TDataStd_HDataMapOfStringInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HDataMapOfStringInteger; -class Handle_TDataStd_HDataMapOfStringInteger : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HDataMapOfStringInteger(); - Handle_TDataStd_HDataMapOfStringInteger(const Handle_TDataStd_HDataMapOfStringInteger &aHandle); - Handle_TDataStd_HDataMapOfStringInteger(const TDataStd_HDataMapOfStringInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HDataMapOfStringInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HDataMapOfStringInteger { - TDataStd_HDataMapOfStringInteger* _get_reference() { - return (TDataStd_HDataMapOfStringInteger*)$self->Access(); - } -}; - -%extend Handle_TDataStd_HDataMapOfStringInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HDataMapOfStringInteger) %extend TDataStd_HDataMapOfStringInteger { %pythoncode { @@ -3327,51 +2339,7 @@ class TDataStd_HDataMapOfStringReal : public MMgt_TShared { }; -%extend TDataStd_HDataMapOfStringReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HDataMapOfStringReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_HDataMapOfStringReal::Handle_TDataStd_HDataMapOfStringReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HDataMapOfStringReal; -class Handle_TDataStd_HDataMapOfStringReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HDataMapOfStringReal(); - Handle_TDataStd_HDataMapOfStringReal(const Handle_TDataStd_HDataMapOfStringReal &aHandle); - Handle_TDataStd_HDataMapOfStringReal(const TDataStd_HDataMapOfStringReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HDataMapOfStringReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HDataMapOfStringReal { - TDataStd_HDataMapOfStringReal* _get_reference() { - return (TDataStd_HDataMapOfStringReal*)$self->Access(); - } -}; - -%extend Handle_TDataStd_HDataMapOfStringReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HDataMapOfStringReal) %extend TDataStd_HDataMapOfStringReal { %pythoncode { @@ -3404,51 +2372,7 @@ class TDataStd_HDataMapOfStringString : public MMgt_TShared { }; -%extend TDataStd_HDataMapOfStringString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HDataMapOfStringString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_HDataMapOfStringString::Handle_TDataStd_HDataMapOfStringString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HDataMapOfStringString; -class Handle_TDataStd_HDataMapOfStringString : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HDataMapOfStringString(); - Handle_TDataStd_HDataMapOfStringString(const Handle_TDataStd_HDataMapOfStringString &aHandle); - Handle_TDataStd_HDataMapOfStringString(const TDataStd_HDataMapOfStringString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HDataMapOfStringString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HDataMapOfStringString { - TDataStd_HDataMapOfStringString* _get_reference() { - return (TDataStd_HDataMapOfStringString*)$self->Access(); - } -}; - -%extend Handle_TDataStd_HDataMapOfStringString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HDataMapOfStringString) %extend TDataStd_HDataMapOfStringString { %pythoncode { @@ -3520,56 +2444,12 @@ class TDataStd_HLabelArray1 : public MMgt_TShared { const TDataStd_LabelArray1 & Array1 (); %feature("compactdefaultargs") ChangeArray1; %feature("autodoc", " :rtype: TDataStd_LabelArray1 -") ChangeArray1; - TDataStd_LabelArray1 & ChangeArray1 (); -}; - - -%extend TDataStd_HLabelArray1 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_HLabelArray1(self) - self.thisown = False - return self.thisHandle - } +") ChangeArray1; + TDataStd_LabelArray1 & ChangeArray1 (); }; -%pythonappend Handle_TDataStd_HLabelArray1::Handle_TDataStd_HLabelArray1 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_HLabelArray1; -class Handle_TDataStd_HLabelArray1 : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataStd_HLabelArray1(); - Handle_TDataStd_HLabelArray1(const Handle_TDataStd_HLabelArray1 &aHandle); - Handle_TDataStd_HLabelArray1(const TDataStd_HLabelArray1 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_HLabelArray1 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_HLabelArray1 { - TDataStd_HLabelArray1* _get_reference() { - return (TDataStd_HLabelArray1*)$self->Access(); - } -}; -%extend Handle_TDataStd_HLabelArray1 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_HLabelArray1) %extend TDataStd_HLabelArray1 { %pythoncode { @@ -3696,51 +2576,7 @@ class TDataStd_IntPackedMap : public TDF_Attribute { }; -%extend TDataStd_IntPackedMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_IntPackedMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_IntPackedMap::Handle_TDataStd_IntPackedMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_IntPackedMap; -class Handle_TDataStd_IntPackedMap : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_IntPackedMap(); - Handle_TDataStd_IntPackedMap(const Handle_TDataStd_IntPackedMap &aHandle); - Handle_TDataStd_IntPackedMap(const TDataStd_IntPackedMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_IntPackedMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_IntPackedMap { - TDataStd_IntPackedMap* _get_reference() { - return (TDataStd_IntPackedMap*)$self->Access(); - } -}; - -%extend Handle_TDataStd_IntPackedMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_IntPackedMap) %extend TDataStd_IntPackedMap { %pythoncode { @@ -3821,51 +2657,7 @@ class TDataStd_Integer : public TDF_Attribute { }; -%extend TDataStd_Integer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Integer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Integer::Handle_TDataStd_Integer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Integer; -class Handle_TDataStd_Integer : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Integer(); - Handle_TDataStd_Integer(const Handle_TDataStd_Integer &aHandle); - Handle_TDataStd_Integer(const TDataStd_Integer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Integer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Integer { - TDataStd_Integer* _get_reference() { - return (TDataStd_Integer*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Integer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Integer) %extend TDataStd_Integer { %pythoncode { @@ -4016,51 +2808,7 @@ class TDataStd_IntegerArray : public TDF_Attribute { }; -%extend TDataStd_IntegerArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_IntegerArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_IntegerArray::Handle_TDataStd_IntegerArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_IntegerArray; -class Handle_TDataStd_IntegerArray : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_IntegerArray(); - Handle_TDataStd_IntegerArray(const Handle_TDataStd_IntegerArray &aHandle); - Handle_TDataStd_IntegerArray(const TDataStd_IntegerArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_IntegerArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_IntegerArray { - TDataStd_IntegerArray* _get_reference() { - return (TDataStd_IntegerArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_IntegerArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_IntegerArray) %extend TDataStd_IntegerArray { %pythoncode { @@ -4185,51 +2933,7 @@ class TDataStd_IntegerList : public TDF_Attribute { }; -%extend TDataStd_IntegerList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_IntegerList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_IntegerList::Handle_TDataStd_IntegerList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_IntegerList; -class Handle_TDataStd_IntegerList : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_IntegerList(); - Handle_TDataStd_IntegerList(const Handle_TDataStd_IntegerList &aHandle); - Handle_TDataStd_IntegerList(const TDataStd_IntegerList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_IntegerList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_IntegerList { - TDataStd_IntegerList* _get_reference() { - return (TDataStd_IntegerList*)$self->Access(); - } -}; - -%extend Handle_TDataStd_IntegerList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_IntegerList) %extend TDataStd_IntegerList { %pythoncode { @@ -4419,51 +3123,7 @@ class TDataStd_ListNodeOfListOfByte : public TCollection_MapNode { }; -%extend TDataStd_ListNodeOfListOfByte { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ListNodeOfListOfByte(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ListNodeOfListOfByte::Handle_TDataStd_ListNodeOfListOfByte %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ListNodeOfListOfByte; -class Handle_TDataStd_ListNodeOfListOfByte : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_ListNodeOfListOfByte(); - Handle_TDataStd_ListNodeOfListOfByte(const Handle_TDataStd_ListNodeOfListOfByte &aHandle); - Handle_TDataStd_ListNodeOfListOfByte(const TDataStd_ListNodeOfListOfByte *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ListNodeOfListOfByte DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ListNodeOfListOfByte { - TDataStd_ListNodeOfListOfByte* _get_reference() { - return (TDataStd_ListNodeOfListOfByte*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ListNodeOfListOfByte { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ListNodeOfListOfByte) %extend TDataStd_ListNodeOfListOfByte { %pythoncode { @@ -4488,51 +3148,7 @@ class TDataStd_ListNodeOfListOfExtendedString : public TCollection_MapNode { }; -%extend TDataStd_ListNodeOfListOfExtendedString { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ListNodeOfListOfExtendedString(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ListNodeOfListOfExtendedString::Handle_TDataStd_ListNodeOfListOfExtendedString %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ListNodeOfListOfExtendedString; -class Handle_TDataStd_ListNodeOfListOfExtendedString : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDataStd_ListNodeOfListOfExtendedString(); - Handle_TDataStd_ListNodeOfListOfExtendedString(const Handle_TDataStd_ListNodeOfListOfExtendedString &aHandle); - Handle_TDataStd_ListNodeOfListOfExtendedString(const TDataStd_ListNodeOfListOfExtendedString *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ListNodeOfListOfExtendedString DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ListNodeOfListOfExtendedString { - TDataStd_ListNodeOfListOfExtendedString* _get_reference() { - return (TDataStd_ListNodeOfListOfExtendedString*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ListNodeOfListOfExtendedString { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ListNodeOfListOfExtendedString) %extend TDataStd_ListNodeOfListOfExtendedString { %pythoncode { @@ -4879,51 +3495,7 @@ class TDataStd_Name : public TDF_Attribute { }; -%extend TDataStd_Name { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Name(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Name::Handle_TDataStd_Name %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Name; -class Handle_TDataStd_Name : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Name(); - Handle_TDataStd_Name(const Handle_TDataStd_Name &aHandle); - Handle_TDataStd_Name(const TDataStd_Name *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Name DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Name { - TDataStd_Name* _get_reference() { - return (TDataStd_Name*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Name { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Name) %extend TDataStd_Name { %pythoncode { @@ -5260,51 +3832,7 @@ class TDataStd_NamedData : public TDF_Attribute { }; -%extend TDataStd_NamedData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_NamedData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_NamedData::Handle_TDataStd_NamedData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_NamedData; -class Handle_TDataStd_NamedData : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_NamedData(); - Handle_TDataStd_NamedData(const Handle_TDataStd_NamedData &aHandle); - Handle_TDataStd_NamedData(const TDataStd_NamedData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_NamedData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_NamedData { - TDataStd_NamedData* _get_reference() { - return (TDataStd_NamedData*)$self->Access(); - } -}; - -%extend Handle_TDataStd_NamedData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_NamedData) %extend TDataStd_NamedData { %pythoncode { @@ -5395,51 +3923,7 @@ class TDataStd_NoteBook : public TDF_Attribute { }; -%extend TDataStd_NoteBook { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_NoteBook(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_NoteBook::Handle_TDataStd_NoteBook %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_NoteBook; -class Handle_TDataStd_NoteBook : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_NoteBook(); - Handle_TDataStd_NoteBook(const Handle_TDataStd_NoteBook &aHandle); - Handle_TDataStd_NoteBook(const TDataStd_NoteBook *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_NoteBook DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_NoteBook { - TDataStd_NoteBook* _get_reference() { - return (TDataStd_NoteBook*)$self->Access(); - } -}; - -%extend Handle_TDataStd_NoteBook { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_NoteBook) %extend TDataStd_NoteBook { %pythoncode { @@ -5532,51 +4016,7 @@ class TDataStd_Real : public TDF_Attribute { }; -%extend TDataStd_Real { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Real(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Real::Handle_TDataStd_Real %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Real; -class Handle_TDataStd_Real : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Real(); - Handle_TDataStd_Real(const Handle_TDataStd_Real &aHandle); - Handle_TDataStd_Real(const TDataStd_Real *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Real DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Real { - TDataStd_Real* _get_reference() { - return (TDataStd_Real*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Real { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Real) %extend TDataStd_Real { %pythoncode { @@ -5727,51 +4167,7 @@ class TDataStd_RealArray : public TDF_Attribute { }; -%extend TDataStd_RealArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_RealArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_RealArray::Handle_TDataStd_RealArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_RealArray; -class Handle_TDataStd_RealArray : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_RealArray(); - Handle_TDataStd_RealArray(const Handle_TDataStd_RealArray &aHandle); - Handle_TDataStd_RealArray(const TDataStd_RealArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_RealArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_RealArray { - TDataStd_RealArray* _get_reference() { - return (TDataStd_RealArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_RealArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_RealArray) %extend TDataStd_RealArray { %pythoncode { @@ -5896,51 +4292,7 @@ class TDataStd_RealList : public TDF_Attribute { }; -%extend TDataStd_RealList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_RealList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_RealList::Handle_TDataStd_RealList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_RealList; -class Handle_TDataStd_RealList : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_RealList(); - Handle_TDataStd_RealList(const Handle_TDataStd_RealList &aHandle); - Handle_TDataStd_RealList(const TDataStd_RealList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_RealList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_RealList { - TDataStd_RealList* _get_reference() { - return (TDataStd_RealList*)$self->Access(); - } -}; - -%extend Handle_TDataStd_RealList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_RealList) %extend TDataStd_RealList { %pythoncode { @@ -6069,51 +4421,7 @@ class TDataStd_ReferenceArray : public TDF_Attribute { }; -%extend TDataStd_ReferenceArray { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ReferenceArray(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ReferenceArray::Handle_TDataStd_ReferenceArray %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ReferenceArray; -class Handle_TDataStd_ReferenceArray : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_ReferenceArray(); - Handle_TDataStd_ReferenceArray(const Handle_TDataStd_ReferenceArray &aHandle); - Handle_TDataStd_ReferenceArray(const TDataStd_ReferenceArray *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ReferenceArray DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ReferenceArray { - TDataStd_ReferenceArray* _get_reference() { - return (TDataStd_ReferenceArray*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ReferenceArray { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ReferenceArray) %extend TDataStd_ReferenceArray { %pythoncode { @@ -6244,51 +4552,7 @@ class TDataStd_ReferenceList : public TDF_Attribute { }; -%extend TDataStd_ReferenceList { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_ReferenceList(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_ReferenceList::Handle_TDataStd_ReferenceList %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_ReferenceList; -class Handle_TDataStd_ReferenceList : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_ReferenceList(); - Handle_TDataStd_ReferenceList(const Handle_TDataStd_ReferenceList &aHandle); - Handle_TDataStd_ReferenceList(const TDataStd_ReferenceList *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_ReferenceList DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_ReferenceList { - TDataStd_ReferenceList* _get_reference() { - return (TDataStd_ReferenceList*)$self->Access(); - } -}; - -%extend Handle_TDataStd_ReferenceList { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_ReferenceList) %extend TDataStd_ReferenceList { %pythoncode { @@ -6369,51 +4633,7 @@ class TDataStd_Relation : public TDF_Attribute { }; -%extend TDataStd_Relation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Relation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Relation::Handle_TDataStd_Relation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Relation; -class Handle_TDataStd_Relation : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Relation(); - Handle_TDataStd_Relation(const Handle_TDataStd_Relation &aHandle); - Handle_TDataStd_Relation(const TDataStd_Relation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Relation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Relation { - TDataStd_Relation* _get_reference() { - return (TDataStd_Relation*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Relation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Relation) %extend TDataStd_Relation { %pythoncode { @@ -6474,51 +4694,7 @@ class TDataStd_Tick : public TDF_Attribute { }; -%extend TDataStd_Tick { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Tick(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Tick::Handle_TDataStd_Tick %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Tick; -class Handle_TDataStd_Tick : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Tick(); - Handle_TDataStd_Tick(const Handle_TDataStd_Tick &aHandle); - Handle_TDataStd_Tick(const TDataStd_Tick *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Tick DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Tick { - TDataStd_Tick* _get_reference() { - return (TDataStd_Tick*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Tick { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Tick) %extend TDataStd_Tick { %pythoncode { @@ -6845,51 +5021,7 @@ class TDataStd_TreeNode : public TDF_Attribute { }; -%extend TDataStd_TreeNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_TreeNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_TreeNode::Handle_TDataStd_TreeNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_TreeNode; -class Handle_TDataStd_TreeNode : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_TreeNode(); - Handle_TDataStd_TreeNode(const Handle_TDataStd_TreeNode &aHandle); - Handle_TDataStd_TreeNode(const TDataStd_TreeNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_TreeNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_TreeNode { - TDataStd_TreeNode* _get_reference() { - return (TDataStd_TreeNode*)$self->Access(); - } -}; - -%extend Handle_TDataStd_TreeNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_TreeNode) %extend TDataStd_TreeNode { %pythoncode { @@ -6958,51 +5090,7 @@ class TDataStd_UAttribute : public TDF_Attribute { }; -%extend TDataStd_UAttribute { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_UAttribute(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_UAttribute::Handle_TDataStd_UAttribute %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_UAttribute; -class Handle_TDataStd_UAttribute : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_UAttribute(); - Handle_TDataStd_UAttribute(const Handle_TDataStd_UAttribute &aHandle); - Handle_TDataStd_UAttribute(const TDataStd_UAttribute *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_UAttribute DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_UAttribute { - TDataStd_UAttribute* _get_reference() { - return (TDataStd_UAttribute*)$self->Access(); - } -}; - -%extend Handle_TDataStd_UAttribute { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_UAttribute) %extend TDataStd_UAttribute { %pythoncode { @@ -7169,51 +5257,7 @@ class TDataStd_Variable : public TDF_Attribute { }; -%extend TDataStd_Variable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataStd_Variable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataStd_Variable::Handle_TDataStd_Variable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataStd_Variable; -class Handle_TDataStd_Variable : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataStd_Variable(); - Handle_TDataStd_Variable(const Handle_TDataStd_Variable &aHandle); - Handle_TDataStd_Variable(const TDataStd_Variable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataStd_Variable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataStd_Variable { - TDataStd_Variable* _get_reference() { - return (TDataStd_Variable*)$self->Access(); - } -}; - -%extend Handle_TDataStd_Variable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataStd_Variable) %extend TDataStd_Variable { %pythoncode { diff --git a/src/SWIG_files/wrapper/TDataXtd.i b/src/SWIG_files/wrapper/TDataXtd.i index e4cc817f7..0276cdb90 100644 --- a/src/SWIG_files/wrapper/TDataXtd.i +++ b/src/SWIG_files/wrapper/TDataXtd.i @@ -18,7 +18,20 @@ along with pythonOCC. If not, see . */ %define TDATAXTDDOCSTRING -"No docstring provided." +"This package defines extension of standard attributes for +modelling (mainly for work with geometry). + +- Category: GUID - AttributeID + +2a96b602-ec8b-11d0-bee7-080009dc3333 TDataXtd_Constraint +2a96b618-ec8b-11d0-bee7-080009dc3333 TDataXtd_Pattern +2a96b61b-ec8b-11d0-bee7-080009dc3333 TDataXtd_PatternStd +2a96b620-ec8b-11d0-bee7-080009dc3333 TDataXtd_Shape +2a96b60d-ec8b-11d0-bee7-080009dc3333 TDataXtd_Point +2a96b601-ec8b-11d0-bee7-080009dc3333 TDataXtd_Axis +2a96b60c-ec8b-11d0-bee7-080009dc3333 TDataXtd_Plane +2a96b604-ec8b-11d0-bee7-080009dc3333 TDataXtd_Geometry +2a96b60b-ec8b-11d0-bee7-080009dc3333 TDataXtd_Placement" %enddef %module (package="OCC.Core", docstring=TDATAXTDDOCSTRING) TDataXtd @@ -34,25 +47,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TDataXtd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -99,6 +98,18 @@ enum TDataXtd_GeometryEnum { /* end public enums declaration */ +%wrap_handle(TDataXtd_Axis) +%wrap_handle(TDataXtd_Constraint) +%wrap_handle(TDataXtd_Geometry) +%wrap_handle(TDataXtd_HArray1OfTrsf) +%wrap_handle(TDataXtd_Pattern) +%wrap_handle(TDataXtd_Placement) +%wrap_handle(TDataXtd_Plane) +%wrap_handle(TDataXtd_Point) +%wrap_handle(TDataXtd_Position) +%wrap_handle(TDataXtd_Shape) +%wrap_handle(TDataXtd_PatternStd) + %rename(tdataxtd) TDataXtd; class TDataXtd { public: @@ -289,51 +300,7 @@ class TDataXtd_Axis : public TDF_Attribute { }; -%extend TDataXtd_Axis { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Axis(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Axis::Handle_TDataXtd_Axis %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Axis; -class Handle_TDataXtd_Axis : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Axis(); - Handle_TDataXtd_Axis(const Handle_TDataXtd_Axis &aHandle); - Handle_TDataXtd_Axis(const TDataXtd_Axis *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Axis DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Axis { - TDataXtd_Axis* _get_reference() { - return (TDataXtd_Axis*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Axis { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Axis) %extend TDataXtd_Axis { %pythoncode { @@ -580,51 +547,7 @@ class TDataXtd_Constraint : public TDF_Attribute { }; -%extend TDataXtd_Constraint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Constraint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Constraint::Handle_TDataXtd_Constraint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Constraint; -class Handle_TDataXtd_Constraint : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Constraint(); - Handle_TDataXtd_Constraint(const Handle_TDataXtd_Constraint &aHandle); - Handle_TDataXtd_Constraint(const TDataXtd_Constraint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Constraint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Constraint { - TDataXtd_Constraint* _get_reference() { - return (TDataXtd_Constraint*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Constraint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Constraint) %extend TDataXtd_Constraint { %pythoncode { @@ -857,51 +780,7 @@ class TDataXtd_Geometry : public TDF_Attribute { }; -%extend TDataXtd_Geometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Geometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Geometry::Handle_TDataXtd_Geometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Geometry; -class Handle_TDataXtd_Geometry : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Geometry(); - Handle_TDataXtd_Geometry(const Handle_TDataXtd_Geometry &aHandle); - Handle_TDataXtd_Geometry(const TDataXtd_Geometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Geometry DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Geometry { - TDataXtd_Geometry* _get_reference() { - return (TDataXtd_Geometry*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Geometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Geometry) %extend TDataXtd_Geometry { %pythoncode { @@ -978,51 +857,7 @@ class TDataXtd_HArray1OfTrsf : public MMgt_TShared { }; -%extend TDataXtd_HArray1OfTrsf { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_HArray1OfTrsf(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_HArray1OfTrsf::Handle_TDataXtd_HArray1OfTrsf %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_HArray1OfTrsf; -class Handle_TDataXtd_HArray1OfTrsf : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDataXtd_HArray1OfTrsf(); - Handle_TDataXtd_HArray1OfTrsf(const Handle_TDataXtd_HArray1OfTrsf &aHandle); - Handle_TDataXtd_HArray1OfTrsf(const TDataXtd_HArray1OfTrsf *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_HArray1OfTrsf DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_HArray1OfTrsf { - TDataXtd_HArray1OfTrsf* _get_reference() { - return (TDataXtd_HArray1OfTrsf*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_HArray1OfTrsf { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_HArray1OfTrsf) %extend TDataXtd_HArray1OfTrsf { %pythoncode { @@ -1065,51 +900,7 @@ class TDataXtd_Pattern : public TDF_Attribute { }; -%extend TDataXtd_Pattern { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Pattern(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Pattern::Handle_TDataXtd_Pattern %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Pattern; -class Handle_TDataXtd_Pattern : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Pattern(); - Handle_TDataXtd_Pattern(const Handle_TDataXtd_Pattern &aHandle); - Handle_TDataXtd_Pattern(const TDataXtd_Pattern *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Pattern DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Pattern { - TDataXtd_Pattern* _get_reference() { - return (TDataXtd_Pattern*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Pattern { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Pattern) %extend TDataXtd_Pattern { %pythoncode { @@ -1170,51 +961,7 @@ class TDataXtd_Placement : public TDF_Attribute { }; -%extend TDataXtd_Placement { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Placement(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Placement::Handle_TDataXtd_Placement %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Placement; -class Handle_TDataXtd_Placement : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Placement(); - Handle_TDataXtd_Placement(const Handle_TDataXtd_Placement &aHandle); - Handle_TDataXtd_Placement(const TDataXtd_Placement *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Placement DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Placement { - TDataXtd_Placement* _get_reference() { - return (TDataXtd_Placement*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Placement { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Placement) %extend TDataXtd_Placement { %pythoncode { @@ -1285,51 +1032,7 @@ class TDataXtd_Plane : public TDF_Attribute { }; -%extend TDataXtd_Plane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Plane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Plane::Handle_TDataXtd_Plane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Plane; -class Handle_TDataXtd_Plane : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Plane(); - Handle_TDataXtd_Plane(const Handle_TDataXtd_Plane &aHandle); - Handle_TDataXtd_Plane(const TDataXtd_Plane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Plane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Plane { - TDataXtd_Plane* _get_reference() { - return (TDataXtd_Plane*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Plane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Plane) %extend TDataXtd_Plane { %pythoncode { @@ -1400,51 +1103,7 @@ class TDataXtd_Point : public TDF_Attribute { }; -%extend TDataXtd_Point { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Point(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Point::Handle_TDataXtd_Point %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Point; -class Handle_TDataXtd_Point : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Point(); - Handle_TDataXtd_Point(const Handle_TDataXtd_Point &aHandle); - Handle_TDataXtd_Point(const TDataXtd_Point *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Point DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Point { - TDataXtd_Point* _get_reference() { - return (TDataXtd_Point*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Point { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Point) %extend TDataXtd_Point { %pythoncode { @@ -1535,51 +1194,7 @@ class TDataXtd_Position : public TDF_Attribute { }; -%extend TDataXtd_Position { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Position(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Position::Handle_TDataXtd_Position %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Position; -class Handle_TDataXtd_Position : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Position(); - Handle_TDataXtd_Position(const Handle_TDataXtd_Position &aHandle); - Handle_TDataXtd_Position(const TDataXtd_Position *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Position DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Position { - TDataXtd_Position* _get_reference() { - return (TDataXtd_Position*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Position { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Position) %extend TDataXtd_Position { %pythoncode { @@ -1674,51 +1289,7 @@ class TDataXtd_Shape : public TDF_Attribute { }; -%extend TDataXtd_Shape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_Shape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_Shape::Handle_TDataXtd_Shape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_Shape; -class Handle_TDataXtd_Shape : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDataXtd_Shape(); - Handle_TDataXtd_Shape(const Handle_TDataXtd_Shape &aHandle); - Handle_TDataXtd_Shape(const TDataXtd_Shape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_Shape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_Shape { - TDataXtd_Shape* _get_reference() { - return (TDataXtd_Shape*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_Shape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_Shape) %extend TDataXtd_Shape { %pythoncode { @@ -1893,51 +1464,7 @@ class TDataXtd_PatternStd : public TDataXtd_Pattern { }; -%extend TDataXtd_PatternStd { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDataXtd_PatternStd(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDataXtd_PatternStd::Handle_TDataXtd_PatternStd %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDataXtd_PatternStd; -class Handle_TDataXtd_PatternStd : public Handle_TDataXtd_Pattern { - - public: - // constructors - Handle_TDataXtd_PatternStd(); - Handle_TDataXtd_PatternStd(const Handle_TDataXtd_PatternStd &aHandle); - Handle_TDataXtd_PatternStd(const TDataXtd_PatternStd *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDataXtd_PatternStd DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDataXtd_PatternStd { - TDataXtd_PatternStd* _get_reference() { - return (TDataXtd_PatternStd*)$self->Access(); - } -}; - -%extend Handle_TDataXtd_PatternStd { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDataXtd_PatternStd) %extend TDataXtd_PatternStd { %pythoncode { diff --git a/src/SWIG_files/wrapper/TDocStd.i b/src/SWIG_files/wrapper/TDocStd.i index c11ed9ff5..0f4f61148 100644 --- a/src/SWIG_files/wrapper/TDocStd.i +++ b/src/SWIG_files/wrapper/TDocStd.i @@ -18,7 +18,37 @@ along with pythonOCC. If not, see . */ %define TDOCSTDDOCSTRING -"No docstring provided." +"This package define CAF main classes. + +* The standard application root class + +* The standard document wich contains data + +* The external reference mechanism between documents + +* Attributes for Document management +Standard documents offer you a ready-to-use +document containing a TDF-based data +structure. The documents themselves are +contained in a class inheriting from +TDocStd_Application which manages creation, +storage and retrieval of documents. +You can implement undo and redo in your +document, and refer from the data framework of +one document to that of another one. This is +done by means of external link attributes, which +store the path and the entry of external links. To +sum up, standard documents alone provide +access to the data framework. They also allow +you to: +- Update external links +- Manage the saving and opening of data +- Manage undo/redo functionality. +Note +For information on the relations between this +component of OCAF and the others, refer to the +OCAF User's Guide. +" %enddef %module (package="OCC.Core", docstring=TDOCSTDDOCSTRING) TDocStd @@ -34,25 +64,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TDocStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TDocStd_XLink * TDocStd_XLinkPtr; /* end typedefs declaration */ @@ -60,6 +76,19 @@ typedef TDocStd_XLink * TDocStd_XLinkPtr; /* public enums */ /* end public enums declaration */ +%wrap_handle(TDocStd_Application) +%wrap_handle(TDocStd_ApplicationDelta) +%wrap_handle(TDocStd_CompoundDelta) +%wrap_handle(TDocStd_DataMapNodeOfLabelIDMapDataMap) +%wrap_handle(TDocStd_Document) +%wrap_handle(TDocStd_Modified) +%wrap_handle(TDocStd_MultiTransactionManager) +%wrap_handle(TDocStd_Owner) +%wrap_handle(TDocStd_SequenceNodeOfSequenceOfApplicationDelta) +%wrap_handle(TDocStd_SequenceNodeOfSequenceOfDocument) +%wrap_handle(TDocStd_XLink) +%wrap_handle(TDocStd_XLinkRoot) + %rename(tdocstd) TDocStd; class TDocStd { public: @@ -211,51 +240,7 @@ class TDocStd_Application : public CDF_Application { }; -%extend TDocStd_Application { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_Application(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_Application::Handle_TDocStd_Application %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_Application; -class Handle_TDocStd_Application : public Handle_CDF_Application { - - public: - // constructors - Handle_TDocStd_Application(); - Handle_TDocStd_Application(const Handle_TDocStd_Application &aHandle); - Handle_TDocStd_Application(const TDocStd_Application *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_Application DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_Application { - TDocStd_Application* _get_reference() { - return (TDocStd_Application*)$self->Access(); - } -}; - -%extend Handle_TDocStd_Application { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_Application) %extend TDocStd_Application { %pythoncode { @@ -294,51 +279,7 @@ class TDocStd_ApplicationDelta : public MMgt_TShared { }; -%extend TDocStd_ApplicationDelta { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_ApplicationDelta(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_ApplicationDelta::Handle_TDocStd_ApplicationDelta %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_ApplicationDelta; -class Handle_TDocStd_ApplicationDelta : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDocStd_ApplicationDelta(); - Handle_TDocStd_ApplicationDelta(const Handle_TDocStd_ApplicationDelta &aHandle); - Handle_TDocStd_ApplicationDelta(const TDocStd_ApplicationDelta *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_ApplicationDelta DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_ApplicationDelta { - TDocStd_ApplicationDelta* _get_reference() { - return (TDocStd_ApplicationDelta*)$self->Access(); - } -}; - -%extend Handle_TDocStd_ApplicationDelta { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_ApplicationDelta) %extend TDocStd_ApplicationDelta { %pythoncode { @@ -357,51 +298,7 @@ class TDocStd_CompoundDelta : public TDF_Delta { }; -%extend TDocStd_CompoundDelta { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_CompoundDelta(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_CompoundDelta::Handle_TDocStd_CompoundDelta %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_CompoundDelta; -class Handle_TDocStd_CompoundDelta : public Handle_TDF_Delta { - - public: - // constructors - Handle_TDocStd_CompoundDelta(); - Handle_TDocStd_CompoundDelta(const Handle_TDocStd_CompoundDelta &aHandle); - Handle_TDocStd_CompoundDelta(const TDocStd_CompoundDelta *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_CompoundDelta DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_CompoundDelta { - TDocStd_CompoundDelta* _get_reference() { - return (TDocStd_CompoundDelta*)$self->Access(); - } -}; - -%extend Handle_TDocStd_CompoundDelta { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_CompoundDelta) %extend TDocStd_CompoundDelta { %pythoncode { @@ -492,51 +389,7 @@ class TDocStd_DataMapNodeOfLabelIDMapDataMap : public TCollection_MapNode { }; -%extend TDocStd_DataMapNodeOfLabelIDMapDataMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap::Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap; -class Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap(); - Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap(const Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap &aHandle); - Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap(const TDocStd_DataMapNodeOfLabelIDMapDataMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap { - TDocStd_DataMapNodeOfLabelIDMapDataMap* _get_reference() { - return (TDocStd_DataMapNodeOfLabelIDMapDataMap*)$self->Access(); - } -}; - -%extend Handle_TDocStd_DataMapNodeOfLabelIDMapDataMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_DataMapNodeOfLabelIDMapDataMap) %extend TDocStd_DataMapNodeOfLabelIDMapDataMap { %pythoncode { @@ -835,51 +688,7 @@ class TDocStd_Document : public CDM_Document { }; -%extend TDocStd_Document { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_Document(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_Document::Handle_TDocStd_Document %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_Document; -class Handle_TDocStd_Document : public Handle_CDM_Document { - - public: - // constructors - Handle_TDocStd_Document(); - Handle_TDocStd_Document(const Handle_TDocStd_Document &aHandle); - Handle_TDocStd_Document(const TDocStd_Document *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_Document DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_Document { - TDocStd_Document* _get_reference() { - return (TDocStd_Document*)$self->Access(); - } -}; - -%extend Handle_TDocStd_Document { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_Document) %extend TDocStd_Document { %pythoncode { @@ -1087,51 +896,7 @@ class TDocStd_Modified : public TDF_Attribute { }; -%extend TDocStd_Modified { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_Modified(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_Modified::Handle_TDocStd_Modified %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_Modified; -class Handle_TDocStd_Modified : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDocStd_Modified(); - Handle_TDocStd_Modified(const Handle_TDocStd_Modified &aHandle); - Handle_TDocStd_Modified(const TDocStd_Modified *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_Modified DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_Modified { - TDocStd_Modified* _get_reference() { - return (TDocStd_Modified*)$self->Access(); - } -}; - -%extend Handle_TDocStd_Modified { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_Modified) %extend TDocStd_Modified { %pythoncode { @@ -1296,51 +1061,7 @@ class TDocStd_MultiTransactionManager : public MMgt_TShared { }; -%extend TDocStd_MultiTransactionManager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_MultiTransactionManager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_MultiTransactionManager::Handle_TDocStd_MultiTransactionManager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_MultiTransactionManager; -class Handle_TDocStd_MultiTransactionManager : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TDocStd_MultiTransactionManager(); - Handle_TDocStd_MultiTransactionManager(const Handle_TDocStd_MultiTransactionManager &aHandle); - Handle_TDocStd_MultiTransactionManager(const TDocStd_MultiTransactionManager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_MultiTransactionManager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_MultiTransactionManager { - TDocStd_MultiTransactionManager* _get_reference() { - return (TDocStd_MultiTransactionManager*)$self->Access(); - } -}; - -%extend Handle_TDocStd_MultiTransactionManager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_MultiTransactionManager) %extend TDocStd_MultiTransactionManager { %pythoncode { @@ -1419,51 +1140,7 @@ class TDocStd_Owner : public TDF_Attribute { }; -%extend TDocStd_Owner { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_Owner(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_Owner::Handle_TDocStd_Owner %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_Owner; -class Handle_TDocStd_Owner : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDocStd_Owner(); - Handle_TDocStd_Owner(const Handle_TDocStd_Owner &aHandle); - Handle_TDocStd_Owner(const TDocStd_Owner *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_Owner DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_Owner { - TDocStd_Owner* _get_reference() { - return (TDocStd_Owner*)$self->Access(); - } -}; - -%extend Handle_TDocStd_Owner { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_Owner) %extend TDocStd_Owner { %pythoncode { @@ -1531,51 +1208,7 @@ class TDocStd_SequenceNodeOfSequenceOfApplicationDelta : public TCollection_SeqN }; -%extend TDocStd_SequenceNodeOfSequenceOfApplicationDelta { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta::Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta; -class Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta(); - Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta(const Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta &aHandle); - Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta(const TDocStd_SequenceNodeOfSequenceOfApplicationDelta *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta { - TDocStd_SequenceNodeOfSequenceOfApplicationDelta* _get_reference() { - return (TDocStd_SequenceNodeOfSequenceOfApplicationDelta*)$self->Access(); - } -}; - -%extend Handle_TDocStd_SequenceNodeOfSequenceOfApplicationDelta { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_SequenceNodeOfSequenceOfApplicationDelta) %extend TDocStd_SequenceNodeOfSequenceOfApplicationDelta { %pythoncode { @@ -1602,51 +1235,7 @@ class TDocStd_SequenceNodeOfSequenceOfDocument : public TCollection_SeqNode { }; -%extend TDocStd_SequenceNodeOfSequenceOfDocument { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_SequenceNodeOfSequenceOfDocument(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_SequenceNodeOfSequenceOfDocument::Handle_TDocStd_SequenceNodeOfSequenceOfDocument %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_SequenceNodeOfSequenceOfDocument; -class Handle_TDocStd_SequenceNodeOfSequenceOfDocument : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TDocStd_SequenceNodeOfSequenceOfDocument(); - Handle_TDocStd_SequenceNodeOfSequenceOfDocument(const Handle_TDocStd_SequenceNodeOfSequenceOfDocument &aHandle); - Handle_TDocStd_SequenceNodeOfSequenceOfDocument(const TDocStd_SequenceNodeOfSequenceOfDocument *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_SequenceNodeOfSequenceOfDocument DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_SequenceNodeOfSequenceOfDocument { - TDocStd_SequenceNodeOfSequenceOfDocument* _get_reference() { - return (TDocStd_SequenceNodeOfSequenceOfDocument*)$self->Access(); - } -}; - -%extend Handle_TDocStd_SequenceNodeOfSequenceOfDocument { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_SequenceNodeOfSequenceOfDocument) %extend TDocStd_SequenceNodeOfSequenceOfDocument { %pythoncode { @@ -2083,51 +1672,7 @@ class TDocStd_XLink : public TDF_Attribute { }; -%extend TDocStd_XLink { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_XLink(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_XLink::Handle_TDocStd_XLink %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_XLink; -class Handle_TDocStd_XLink : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDocStd_XLink(); - Handle_TDocStd_XLink(const Handle_TDocStd_XLink &aHandle); - Handle_TDocStd_XLink(const TDocStd_XLink *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_XLink DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_XLink { - TDocStd_XLink* _get_reference() { - return (TDocStd_XLink*)$self->Access(); - } -}; - -%extend Handle_TDocStd_XLink { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_XLink) %extend TDocStd_XLink { %pythoncode { @@ -2265,51 +1810,7 @@ class TDocStd_XLinkRoot : public TDF_Attribute { }; -%extend TDocStd_XLinkRoot { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TDocStd_XLinkRoot(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TDocStd_XLinkRoot::Handle_TDocStd_XLinkRoot %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TDocStd_XLinkRoot; -class Handle_TDocStd_XLinkRoot : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TDocStd_XLinkRoot(); - Handle_TDocStd_XLinkRoot(const Handle_TDocStd_XLinkRoot &aHandle); - Handle_TDocStd_XLinkRoot(const TDocStd_XLinkRoot *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TDocStd_XLinkRoot DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TDocStd_XLinkRoot { - TDocStd_XLinkRoot* _get_reference() { - return (TDocStd_XLinkRoot*)$self->Access(); - } -}; - -%extend Handle_TDocStd_XLinkRoot { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TDocStd_XLinkRoot) %extend TDocStd_XLinkRoot { %pythoncode { diff --git a/src/SWIG_files/wrapper/TFunction.i b/src/SWIG_files/wrapper/TFunction.i index 0d5e02c3b..183847f9d 100644 --- a/src/SWIG_files/wrapper/TFunction.i +++ b/src/SWIG_files/wrapper/TFunction.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define TFUNCTIONDOCSTRING -"No docstring provided." +"algorithms. Each function contains the ID of a function driver." %enddef %module (package="OCC.Core", docstring=TFUNCTIONDOCSTRING) TFunction @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TFunction_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -67,6 +53,16 @@ enum TFunction_ExecutionStatus { /* end public enums declaration */ +%wrap_handle(TFunction_DataMapNodeOfDataMapOfGUIDDriver) +%wrap_handle(TFunction_DataMapNodeOfDataMapOfLabelListOfLabel) +%wrap_handle(TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel) +%wrap_handle(TFunction_Driver) +%wrap_handle(TFunction_DriverTable) +%wrap_handle(TFunction_Function) +%wrap_handle(TFunction_GraphNode) +%wrap_handle(TFunction_HArray1OfDataMapOfGUIDDriver) +%wrap_handle(TFunction_Scope) + %nodefaultctor TFunction_Array1OfDataMapOfGUIDDriver; class TFunction_Array1OfDataMapOfGUIDDriver { public: @@ -248,51 +244,7 @@ class TFunction_DataMapNodeOfDataMapOfGUIDDriver : public TCollection_MapNode { }; -%extend TFunction_DataMapNodeOfDataMapOfGUIDDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver::Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver; -class Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver(); - Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver(const Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver &aHandle); - Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver(const TFunction_DataMapNodeOfDataMapOfGUIDDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver { - TFunction_DataMapNodeOfDataMapOfGUIDDriver* _get_reference() { - return (TFunction_DataMapNodeOfDataMapOfGUIDDriver*)$self->Access(); - } -}; - -%extend Handle_TFunction_DataMapNodeOfDataMapOfGUIDDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_DataMapNodeOfDataMapOfGUIDDriver) %extend TFunction_DataMapNodeOfDataMapOfGUIDDriver { %pythoncode { @@ -323,51 +275,7 @@ class TFunction_DataMapNodeOfDataMapOfLabelListOfLabel : public TCollection_MapN }; -%extend TFunction_DataMapNodeOfDataMapOfLabelListOfLabel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel::Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel; -class Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel(); - Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel(const Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel &aHandle); - Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel(const TFunction_DataMapNodeOfDataMapOfLabelListOfLabel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel { - TFunction_DataMapNodeOfDataMapOfLabelListOfLabel* _get_reference() { - return (TFunction_DataMapNodeOfDataMapOfLabelListOfLabel*)$self->Access(); - } -}; - -%extend Handle_TFunction_DataMapNodeOfDataMapOfLabelListOfLabel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_DataMapNodeOfDataMapOfLabelListOfLabel) %extend TFunction_DataMapNodeOfDataMapOfLabelListOfLabel { %pythoncode { @@ -614,51 +522,7 @@ class TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel : public TCollection_MapN }; -%extend TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel::Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel; -class Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel(); - Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel(const Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel &aHandle); - Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel(const TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel { - TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel* _get_reference() { - return (TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel*)$self->Access(); - } -}; - -%extend Handle_TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel) %extend TFunction_DoubleMapNodeOfDoubleMapOfIntegerLabel { %pythoncode { @@ -816,51 +680,7 @@ class TFunction_Driver : public MMgt_TShared { }; -%extend TFunction_Driver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_Driver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_Driver::Handle_TFunction_Driver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_Driver; -class Handle_TFunction_Driver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TFunction_Driver(); - Handle_TFunction_Driver(const Handle_TFunction_Driver &aHandle); - Handle_TFunction_Driver(const TFunction_Driver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_Driver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_Driver { - TFunction_Driver* _get_reference() { - return (TFunction_Driver*)$self->Access(); - } -}; - -%extend Handle_TFunction_Driver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_Driver) %extend TFunction_Driver { %pythoncode { @@ -943,51 +763,7 @@ class TFunction_DriverTable : public MMgt_TShared { }; -%extend TFunction_DriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_DriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_DriverTable::Handle_TFunction_DriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_DriverTable; -class Handle_TFunction_DriverTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TFunction_DriverTable(); - Handle_TFunction_DriverTable(const Handle_TFunction_DriverTable &aHandle); - Handle_TFunction_DriverTable(const TFunction_DriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_DriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_DriverTable { - TFunction_DriverTable* _get_reference() { - return (TFunction_DriverTable*)$self->Access(); - } -}; - -%extend Handle_TFunction_DriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_DriverTable) %extend TFunction_DriverTable { %pythoncode { @@ -1098,51 +874,7 @@ class TFunction_Function : public TDF_Attribute { }; -%extend TFunction_Function { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_Function(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_Function::Handle_TFunction_Function %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_Function; -class Handle_TFunction_Function : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TFunction_Function(); - Handle_TFunction_Function(const Handle_TFunction_Function &aHandle); - Handle_TFunction_Function(const TFunction_Function *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_Function DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_Function { - TFunction_Function* _get_reference() { - return (TFunction_Function*)$self->Access(); - } -}; - -%extend Handle_TFunction_Function { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_Function) %extend TFunction_Function { %pythoncode { @@ -1311,51 +1043,7 @@ class TFunction_GraphNode : public TDF_Attribute { }; -%extend TFunction_GraphNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_GraphNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_GraphNode::Handle_TFunction_GraphNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_GraphNode; -class Handle_TFunction_GraphNode : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TFunction_GraphNode(); - Handle_TFunction_GraphNode(const Handle_TFunction_GraphNode &aHandle); - Handle_TFunction_GraphNode(const TFunction_GraphNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_GraphNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_GraphNode { - TFunction_GraphNode* _get_reference() { - return (TFunction_GraphNode*)$self->Access(); - } -}; - -%extend Handle_TFunction_GraphNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_GraphNode) %extend TFunction_GraphNode { %pythoncode { @@ -1432,51 +1120,7 @@ class TFunction_HArray1OfDataMapOfGUIDDriver : public MMgt_TShared { }; -%extend TFunction_HArray1OfDataMapOfGUIDDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_HArray1OfDataMapOfGUIDDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_HArray1OfDataMapOfGUIDDriver::Handle_TFunction_HArray1OfDataMapOfGUIDDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_HArray1OfDataMapOfGUIDDriver; -class Handle_TFunction_HArray1OfDataMapOfGUIDDriver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TFunction_HArray1OfDataMapOfGUIDDriver(); - Handle_TFunction_HArray1OfDataMapOfGUIDDriver(const Handle_TFunction_HArray1OfDataMapOfGUIDDriver &aHandle); - Handle_TFunction_HArray1OfDataMapOfGUIDDriver(const TFunction_HArray1OfDataMapOfGUIDDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_HArray1OfDataMapOfGUIDDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_HArray1OfDataMapOfGUIDDriver { - TFunction_HArray1OfDataMapOfGUIDDriver* _get_reference() { - return (TFunction_HArray1OfDataMapOfGUIDDriver*)$self->Access(); - } -}; - -%extend Handle_TFunction_HArray1OfDataMapOfGUIDDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_HArray1OfDataMapOfGUIDDriver) %extend TFunction_HArray1OfDataMapOfGUIDDriver { %pythoncode { @@ -1971,51 +1615,7 @@ class TFunction_Scope : public TDF_Attribute { }; -%extend TFunction_Scope { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TFunction_Scope(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TFunction_Scope::Handle_TFunction_Scope %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TFunction_Scope; -class Handle_TFunction_Scope : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TFunction_Scope(); - Handle_TFunction_Scope(const Handle_TFunction_Scope &aHandle); - Handle_TFunction_Scope(const TFunction_Scope *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TFunction_Scope DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TFunction_Scope { - TFunction_Scope* _get_reference() { - return (TFunction_Scope*)$self->Access(); - } -}; - -%extend Handle_TFunction_Scope { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TFunction_Scope) %extend TFunction_Scope { %pythoncode { diff --git a/src/SWIG_files/wrapper/TNaming.i b/src/SWIG_files/wrapper/TNaming.i index d5de8c423..72b51e0c8 100644 --- a/src/SWIG_files/wrapper/TNaming.i +++ b/src/SWIG_files/wrapper/TNaming.i @@ -18,7 +18,69 @@ along with pythonOCC. If not, see . */ %define TNAMINGDOCSTRING -"No docstring provided." +"A topological attribute can be seen as a hook +into the topological structure. To this hook, +data can be attached and references defined. +It is used for keeping and access to +topological objects and their evolution. All +topological objects are stored in the one +user-protected TNaming_UsedShapes +attribute at the root label of the data +framework. This attribute contains map with all +topological shapes, used in this document. +To all other labels TNaming_NamedShape +attribute can be added. This attribute contains +references (hooks) to shapes from the +TNaming_UsedShapes attribute and evolution +of these shapes. TNaming_NamedShape +attribute contains a set of pairs of hooks: old +shape and new shape (see the figure below). +It allows not only get the topological shapes by +the labels, but also trace evolution of the +shapes and correctly resolve dependent +shapes by the changed one. +If shape is just-created, then the old shape for +accorded named shape is an empty shape. If +a shape is deleted, then the new shape in this named shape is empty. +Different algorithms may dispose sub-shapes +of the result shape at the individual label depending on necessity: +- If a sub-shape must have some extra attributes (material of +each face or color of each edge). In this case a specific sub-shape is +placed to the separate label (usually, sub-label of the result shape label) +with all attributes of this sub-shape. +- If topological naming is needed, a necessary and sufficient +(for selected sub-shapes identification) set of sub-shapes is +placed to the child labels of the result +shape label. As usual, as far as basic solids and closed shells are +concerned, all faces of the shape are disposed. Edges and vertices +sub-shapes can be identified as intersection of contiguous faces. +Modified/generated shapes may be placed to one named shape and +identified as this named shape and source named shape that also can be +identified with used algorithms. +TNaming_NamedShape may contain a few +pairs of hooks with the same evolution. In this +case topology shape, which belongs to the +named shape, is a compound of new shapes. +The data model contains both the topology +and the hooks, and functions handle both +topological entities and hooks. Consider the +case of a box function, which creates a solid +with six faces and six hooks. Each hook is +attached to a face. If you want, you can also +have this function create hooks for edges and +vertices as well as for faces. For the sake of +simplicity though, let's limit the example. +Not all functions can define explicit hooks for +all topological entities they create, but all +topological entities can be turned into hooks +when necessary. This is where topological naming is necessary. + + +-Category: GUID +c4ef4200-568f-11d1-8940-080009dc3333 TNaming_NamedShape +c4ef4201-568f-11d1-8940-080009dc3333 TNaming_UsedShapes + +" %enddef %module (package="OCC.Core", docstring=TNAMINGDOCSTRING) TNaming @@ -34,25 +96,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TNaming_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TNaming_RefShape * TNaming_PtrRefShape; typedef NCollection_Map TNaming_MapOfShape; @@ -91,6 +139,19 @@ enum TNaming_NameType { /* end public enums declaration */ +%wrap_handle(TNaming_DataMapNodeOfDataMapOfShapePtrRefShape) +%wrap_handle(TNaming_DataMapNodeOfDataMapOfShapeShapesSet) +%wrap_handle(TNaming_DeltaOnModification) +%wrap_handle(TNaming_DeltaOnRemoval) +%wrap_handle(TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape) +%wrap_handle(TNaming_ListNodeOfListOfMapOfShape) +%wrap_handle(TNaming_ListNodeOfListOfNamedShape) +%wrap_handle(TNaming_NamedShape) +%wrap_handle(TNaming_Naming) +%wrap_handle(TNaming_StdMapNodeOfMapOfNamedShape) +%wrap_handle(TNaming_TranslateTool) +%wrap_handle(TNaming_UsedShapes) + %rename(tnaming) TNaming; class TNaming { public: @@ -491,51 +552,7 @@ class TNaming_DataMapNodeOfDataMapOfShapePtrRefShape : public TCollection_MapNod }; -%extend TNaming_DataMapNodeOfDataMapOfShapePtrRefShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape::Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape; -class Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape(); - Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape(const Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape &aHandle); - Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape(const TNaming_DataMapNodeOfDataMapOfShapePtrRefShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape { - TNaming_DataMapNodeOfDataMapOfShapePtrRefShape* _get_reference() { - return (TNaming_DataMapNodeOfDataMapOfShapePtrRefShape*)$self->Access(); - } -}; - -%extend Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_DataMapNodeOfDataMapOfShapePtrRefShape) %extend TNaming_DataMapNodeOfDataMapOfShapePtrRefShape { %pythoncode { @@ -566,51 +583,7 @@ class TNaming_DataMapNodeOfDataMapOfShapeShapesSet : public TCollection_MapNode }; -%extend TNaming_DataMapNodeOfDataMapOfShapeShapesSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet::Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet; -class Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet(); - Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet(const Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet &aHandle); - Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet(const TNaming_DataMapNodeOfDataMapOfShapeShapesSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet { - TNaming_DataMapNodeOfDataMapOfShapeShapesSet* _get_reference() { - return (TNaming_DataMapNodeOfDataMapOfShapeShapesSet*)$self->Access(); - } -}; - -%extend Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_DataMapNodeOfDataMapOfShapeShapesSet) %extend TNaming_DataMapNodeOfDataMapOfShapeShapesSet { %pythoncode { @@ -803,51 +776,7 @@ class TNaming_DeltaOnModification : public TDF_DeltaOnModification { }; -%extend TNaming_DeltaOnModification { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_DeltaOnModification(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_DeltaOnModification::Handle_TNaming_DeltaOnModification %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_DeltaOnModification; -class Handle_TNaming_DeltaOnModification : public Handle_TDF_DeltaOnModification { - - public: - // constructors - Handle_TNaming_DeltaOnModification(); - Handle_TNaming_DeltaOnModification(const Handle_TNaming_DeltaOnModification &aHandle); - Handle_TNaming_DeltaOnModification(const TNaming_DeltaOnModification *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_DeltaOnModification DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_DeltaOnModification { - TNaming_DeltaOnModification* _get_reference() { - return (TNaming_DeltaOnModification*)$self->Access(); - } -}; - -%extend Handle_TNaming_DeltaOnModification { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_DeltaOnModification) %extend TNaming_DeltaOnModification { %pythoncode { @@ -874,51 +803,7 @@ class TNaming_DeltaOnRemoval : public TDF_DeltaOnRemoval { }; -%extend TNaming_DeltaOnRemoval { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_DeltaOnRemoval(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_DeltaOnRemoval::Handle_TNaming_DeltaOnRemoval %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_DeltaOnRemoval; -class Handle_TNaming_DeltaOnRemoval : public Handle_TDF_DeltaOnRemoval { - - public: - // constructors - Handle_TNaming_DeltaOnRemoval(); - Handle_TNaming_DeltaOnRemoval(const Handle_TNaming_DeltaOnRemoval &aHandle); - Handle_TNaming_DeltaOnRemoval(const TNaming_DeltaOnRemoval *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_DeltaOnRemoval DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_DeltaOnRemoval { - TNaming_DeltaOnRemoval* _get_reference() { - return (TNaming_DeltaOnRemoval*)$self->Access(); - } -}; - -%extend Handle_TNaming_DeltaOnRemoval { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_DeltaOnRemoval) %extend TNaming_DeltaOnRemoval { %pythoncode { @@ -1291,51 +1176,7 @@ class TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape : public TCollect }; -%extend TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape::Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape; -class Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape(); - Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape(const Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape &aHandle); - Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape(const TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape { - TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape* _get_reference() { - return (TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape) %extend TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape { %pythoncode { @@ -1360,51 +1201,7 @@ class TNaming_ListNodeOfListOfMapOfShape : public TCollection_MapNode { }; -%extend TNaming_ListNodeOfListOfMapOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_ListNodeOfListOfMapOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_ListNodeOfListOfMapOfShape::Handle_TNaming_ListNodeOfListOfMapOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_ListNodeOfListOfMapOfShape; -class Handle_TNaming_ListNodeOfListOfMapOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TNaming_ListNodeOfListOfMapOfShape(); - Handle_TNaming_ListNodeOfListOfMapOfShape(const Handle_TNaming_ListNodeOfListOfMapOfShape &aHandle); - Handle_TNaming_ListNodeOfListOfMapOfShape(const TNaming_ListNodeOfListOfMapOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_ListNodeOfListOfMapOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_ListNodeOfListOfMapOfShape { - TNaming_ListNodeOfListOfMapOfShape* _get_reference() { - return (TNaming_ListNodeOfListOfMapOfShape*)$self->Access(); - } -}; - -%extend Handle_TNaming_ListNodeOfListOfMapOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_ListNodeOfListOfMapOfShape) %extend TNaming_ListNodeOfListOfMapOfShape { %pythoncode { @@ -1429,51 +1226,7 @@ class TNaming_ListNodeOfListOfNamedShape : public TCollection_MapNode { }; -%extend TNaming_ListNodeOfListOfNamedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_ListNodeOfListOfNamedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_ListNodeOfListOfNamedShape::Handle_TNaming_ListNodeOfListOfNamedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_ListNodeOfListOfNamedShape; -class Handle_TNaming_ListNodeOfListOfNamedShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TNaming_ListNodeOfListOfNamedShape(); - Handle_TNaming_ListNodeOfListOfNamedShape(const Handle_TNaming_ListNodeOfListOfNamedShape &aHandle); - Handle_TNaming_ListNodeOfListOfNamedShape(const TNaming_ListNodeOfListOfNamedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_ListNodeOfListOfNamedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_ListNodeOfListOfNamedShape { - TNaming_ListNodeOfListOfNamedShape* _get_reference() { - return (TNaming_ListNodeOfListOfNamedShape*)$self->Access(); - } -}; - -%extend Handle_TNaming_ListNodeOfListOfNamedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_ListNodeOfListOfNamedShape) %extend TNaming_ListNodeOfListOfNamedShape { %pythoncode { @@ -2353,51 +2106,7 @@ class TNaming_NamedShape : public TDF_Attribute { }; -%extend TNaming_NamedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_NamedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_NamedShape::Handle_TNaming_NamedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_NamedShape; -class Handle_TNaming_NamedShape : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TNaming_NamedShape(); - Handle_TNaming_NamedShape(const Handle_TNaming_NamedShape &aHandle); - Handle_TNaming_NamedShape(const TNaming_NamedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_NamedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_NamedShape { - TNaming_NamedShape* _get_reference() { - return (TNaming_NamedShape*)$self->Access(); - } -}; - -%extend Handle_TNaming_NamedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_NamedShape) %extend TNaming_NamedShape { %pythoncode { @@ -2546,51 +2255,7 @@ class TNaming_Naming : public TDF_Attribute { }; -%extend TNaming_Naming { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_Naming(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_Naming::Handle_TNaming_Naming %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_Naming; -class Handle_TNaming_Naming : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TNaming_Naming(); - Handle_TNaming_Naming(const Handle_TNaming_Naming &aHandle); - Handle_TNaming_Naming(const TNaming_Naming *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_Naming DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_Naming { - TNaming_Naming* _get_reference() { - return (TNaming_Naming*)$self->Access(); - } -}; - -%extend Handle_TNaming_Naming { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_Naming) %extend TNaming_Naming { %pythoncode { @@ -3153,51 +2818,7 @@ class TNaming_StdMapNodeOfMapOfNamedShape : public TCollection_MapNode { }; -%extend TNaming_StdMapNodeOfMapOfNamedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_StdMapNodeOfMapOfNamedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_StdMapNodeOfMapOfNamedShape::Handle_TNaming_StdMapNodeOfMapOfNamedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_StdMapNodeOfMapOfNamedShape; -class Handle_TNaming_StdMapNodeOfMapOfNamedShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TNaming_StdMapNodeOfMapOfNamedShape(); - Handle_TNaming_StdMapNodeOfMapOfNamedShape(const Handle_TNaming_StdMapNodeOfMapOfNamedShape &aHandle); - Handle_TNaming_StdMapNodeOfMapOfNamedShape(const TNaming_StdMapNodeOfMapOfNamedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_StdMapNodeOfMapOfNamedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_StdMapNodeOfMapOfNamedShape { - TNaming_StdMapNodeOfMapOfNamedShape* _get_reference() { - return (TNaming_StdMapNodeOfMapOfNamedShape*)$self->Access(); - } -}; - -%extend Handle_TNaming_StdMapNodeOfMapOfNamedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_StdMapNodeOfMapOfNamedShape) %extend TNaming_StdMapNodeOfMapOfNamedShape { %pythoncode { @@ -3454,51 +3075,7 @@ class TNaming_TranslateTool : public MMgt_TShared { }; -%extend TNaming_TranslateTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_TranslateTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_TranslateTool::Handle_TNaming_TranslateTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_TranslateTool; -class Handle_TNaming_TranslateTool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TNaming_TranslateTool(); - Handle_TNaming_TranslateTool(const Handle_TNaming_TranslateTool &aHandle); - Handle_TNaming_TranslateTool(const TNaming_TranslateTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_TranslateTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_TranslateTool { - TNaming_TranslateTool* _get_reference() { - return (TNaming_TranslateTool*)$self->Access(); - } -}; - -%extend Handle_TNaming_TranslateTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_TranslateTool) %extend TNaming_TranslateTool { %pythoncode { @@ -3654,51 +3231,7 @@ class TNaming_UsedShapes : public TDF_Attribute { }; -%extend TNaming_UsedShapes { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TNaming_UsedShapes(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TNaming_UsedShapes::Handle_TNaming_UsedShapes %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TNaming_UsedShapes; -class Handle_TNaming_UsedShapes : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TNaming_UsedShapes(); - Handle_TNaming_UsedShapes(const Handle_TNaming_UsedShapes &aHandle); - Handle_TNaming_UsedShapes(const TNaming_UsedShapes *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TNaming_UsedShapes DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TNaming_UsedShapes { - TNaming_UsedShapes* _get_reference() { - return (TNaming_UsedShapes*)$self->Access(); - } -}; - -%extend Handle_TNaming_UsedShapes { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TNaming_UsedShapes) %extend TNaming_UsedShapes { %pythoncode { diff --git a/src/SWIG_files/wrapper/TPrsStd.i b/src/SWIG_files/wrapper/TPrsStd.i index ad4e14138..44dcea424 100644 --- a/src/SWIG_files/wrapper/TPrsStd.i +++ b/src/SWIG_files/wrapper/TPrsStd.i @@ -18,7 +18,15 @@ along with pythonOCC. If not, see . */ %define TPRSSTDDOCSTRING -"No docstring provided." +"The visualization attribute implements the +Application Interactive Services in the context +of Open CASCADE Application Framework. + + +-Category: GUID +04fb4d05-5690-11d1-8940-080009dc3333 TPrsStd_AISViewer +04fb4d00-5690-11d1-8940-080009dc3333 TPrsStd_AISPresentation +" %enddef %module (package="OCC.Core", docstring=TPRSSTDDOCSTRING) TPrsStd @@ -34,31 +42,29 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TPrsStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TPrsStd_AISPresentation) +%wrap_handle(TPrsStd_AISViewer) +%wrap_handle(TPrsStd_DataMapNodeOfDataMapOfGUIDDriver) +%wrap_handle(TPrsStd_Driver) +%wrap_handle(TPrsStd_DriverTable) +%wrap_handle(TPrsStd_AxisDriver) +%wrap_handle(TPrsStd_ConstraintDriver) +%wrap_handle(TPrsStd_GeometryDriver) +%wrap_handle(TPrsStd_NamedShapeDriver) +%wrap_handle(TPrsStd_PlaneDriver) +%wrap_handle(TPrsStd_PointDriver) + %nodefaultctor TPrsStd_AISPresentation; class TPrsStd_AISPresentation : public TDF_Attribute { public: @@ -345,51 +351,7 @@ class TPrsStd_AISPresentation : public TDF_Attribute { }; -%extend TPrsStd_AISPresentation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_AISPresentation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_AISPresentation::Handle_TPrsStd_AISPresentation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_AISPresentation; -class Handle_TPrsStd_AISPresentation : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TPrsStd_AISPresentation(); - Handle_TPrsStd_AISPresentation(const Handle_TPrsStd_AISPresentation &aHandle); - Handle_TPrsStd_AISPresentation(const TPrsStd_AISPresentation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_AISPresentation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_AISPresentation { - TPrsStd_AISPresentation* _get_reference() { - return (TPrsStd_AISPresentation*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_AISPresentation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_AISPresentation) %extend TPrsStd_AISPresentation { %pythoncode { @@ -516,51 +478,7 @@ class TPrsStd_AISViewer : public TDF_Attribute { }; -%extend TPrsStd_AISViewer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_AISViewer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_AISViewer::Handle_TPrsStd_AISViewer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_AISViewer; -class Handle_TPrsStd_AISViewer : public Handle_TDF_Attribute { - - public: - // constructors - Handle_TPrsStd_AISViewer(); - Handle_TPrsStd_AISViewer(const Handle_TPrsStd_AISViewer &aHandle); - Handle_TPrsStd_AISViewer(const TPrsStd_AISViewer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_AISViewer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_AISViewer { - TPrsStd_AISViewer* _get_reference() { - return (TPrsStd_AISViewer*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_AISViewer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_AISViewer) %extend TPrsStd_AISViewer { %pythoncode { @@ -824,51 +742,7 @@ class TPrsStd_DataMapNodeOfDataMapOfGUIDDriver : public TCollection_MapNode { }; -%extend TPrsStd_DataMapNodeOfDataMapOfGUIDDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver::Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver; -class Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver(); - Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver(const Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver &aHandle); - Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver(const TPrsStd_DataMapNodeOfDataMapOfGUIDDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver { - TPrsStd_DataMapNodeOfDataMapOfGUIDDriver* _get_reference() { - return (TPrsStd_DataMapNodeOfDataMapOfGUIDDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_DataMapNodeOfDataMapOfGUIDDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_DataMapNodeOfDataMapOfGUIDDriver) %extend TPrsStd_DataMapNodeOfDataMapOfGUIDDriver { %pythoncode { @@ -974,51 +848,7 @@ class TPrsStd_Driver : public MMgt_TShared { }; -%extend TPrsStd_Driver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_Driver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_Driver::Handle_TPrsStd_Driver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_Driver; -class Handle_TPrsStd_Driver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TPrsStd_Driver(); - Handle_TPrsStd_Driver(const Handle_TPrsStd_Driver &aHandle); - Handle_TPrsStd_Driver(const TPrsStd_Driver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_Driver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_Driver { - TPrsStd_Driver* _get_reference() { - return (TPrsStd_Driver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_Driver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_Driver) %extend TPrsStd_Driver { %pythoncode { @@ -1083,51 +913,7 @@ class TPrsStd_DriverTable : public MMgt_TShared { }; -%extend TPrsStd_DriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_DriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_DriverTable::Handle_TPrsStd_DriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_DriverTable; -class Handle_TPrsStd_DriverTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TPrsStd_DriverTable(); - Handle_TPrsStd_DriverTable(const Handle_TPrsStd_DriverTable &aHandle); - Handle_TPrsStd_DriverTable(const TPrsStd_DriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_DriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_DriverTable { - TPrsStd_DriverTable* _get_reference() { - return (TPrsStd_DriverTable*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_DriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_DriverTable) %extend TPrsStd_DriverTable { %pythoncode { @@ -1156,51 +942,7 @@ class TPrsStd_AxisDriver : public TPrsStd_Driver { }; -%extend TPrsStd_AxisDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_AxisDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_AxisDriver::Handle_TPrsStd_AxisDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_AxisDriver; -class Handle_TPrsStd_AxisDriver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_TPrsStd_AxisDriver(); - Handle_TPrsStd_AxisDriver(const Handle_TPrsStd_AxisDriver &aHandle); - Handle_TPrsStd_AxisDriver(const TPrsStd_AxisDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_AxisDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_AxisDriver { - TPrsStd_AxisDriver* _get_reference() { - return (TPrsStd_AxisDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_AxisDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_AxisDriver) %extend TPrsStd_AxisDriver { %pythoncode { @@ -1229,51 +971,7 @@ class TPrsStd_ConstraintDriver : public TPrsStd_Driver { }; -%extend TPrsStd_ConstraintDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_ConstraintDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_ConstraintDriver::Handle_TPrsStd_ConstraintDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_ConstraintDriver; -class Handle_TPrsStd_ConstraintDriver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_TPrsStd_ConstraintDriver(); - Handle_TPrsStd_ConstraintDriver(const Handle_TPrsStd_ConstraintDriver &aHandle); - Handle_TPrsStd_ConstraintDriver(const TPrsStd_ConstraintDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_ConstraintDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_ConstraintDriver { - TPrsStd_ConstraintDriver* _get_reference() { - return (TPrsStd_ConstraintDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_ConstraintDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_ConstraintDriver) %extend TPrsStd_ConstraintDriver { %pythoncode { @@ -1302,51 +1000,7 @@ class TPrsStd_GeometryDriver : public TPrsStd_Driver { }; -%extend TPrsStd_GeometryDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_GeometryDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_GeometryDriver::Handle_TPrsStd_GeometryDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_GeometryDriver; -class Handle_TPrsStd_GeometryDriver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_TPrsStd_GeometryDriver(); - Handle_TPrsStd_GeometryDriver(const Handle_TPrsStd_GeometryDriver &aHandle); - Handle_TPrsStd_GeometryDriver(const TPrsStd_GeometryDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_GeometryDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_GeometryDriver { - TPrsStd_GeometryDriver* _get_reference() { - return (TPrsStd_GeometryDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_GeometryDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_GeometryDriver) %extend TPrsStd_GeometryDriver { %pythoncode { @@ -1375,51 +1029,7 @@ class TPrsStd_NamedShapeDriver : public TPrsStd_Driver { }; -%extend TPrsStd_NamedShapeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_NamedShapeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_NamedShapeDriver::Handle_TPrsStd_NamedShapeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_NamedShapeDriver; -class Handle_TPrsStd_NamedShapeDriver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_TPrsStd_NamedShapeDriver(); - Handle_TPrsStd_NamedShapeDriver(const Handle_TPrsStd_NamedShapeDriver &aHandle); - Handle_TPrsStd_NamedShapeDriver(const TPrsStd_NamedShapeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_NamedShapeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_NamedShapeDriver { - TPrsStd_NamedShapeDriver* _get_reference() { - return (TPrsStd_NamedShapeDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_NamedShapeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_NamedShapeDriver) %extend TPrsStd_NamedShapeDriver { %pythoncode { @@ -1448,51 +1058,7 @@ class TPrsStd_PlaneDriver : public TPrsStd_Driver { }; -%extend TPrsStd_PlaneDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_PlaneDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_PlaneDriver::Handle_TPrsStd_PlaneDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_PlaneDriver; -class Handle_TPrsStd_PlaneDriver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_TPrsStd_PlaneDriver(); - Handle_TPrsStd_PlaneDriver(const Handle_TPrsStd_PlaneDriver &aHandle); - Handle_TPrsStd_PlaneDriver(const TPrsStd_PlaneDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_PlaneDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_PlaneDriver { - TPrsStd_PlaneDriver* _get_reference() { - return (TPrsStd_PlaneDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_PlaneDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_PlaneDriver) %extend TPrsStd_PlaneDriver { %pythoncode { @@ -1521,51 +1087,7 @@ class TPrsStd_PointDriver : public TPrsStd_Driver { }; -%extend TPrsStd_PointDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TPrsStd_PointDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TPrsStd_PointDriver::Handle_TPrsStd_PointDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TPrsStd_PointDriver; -class Handle_TPrsStd_PointDriver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_TPrsStd_PointDriver(); - Handle_TPrsStd_PointDriver(const Handle_TPrsStd_PointDriver &aHandle); - Handle_TPrsStd_PointDriver(const TPrsStd_PointDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TPrsStd_PointDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TPrsStd_PointDriver { - TPrsStd_PointDriver* _get_reference() { - return (TPrsStd_PointDriver*)$self->Access(); - } -}; - -%extend Handle_TPrsStd_PointDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TPrsStd_PointDriver) %extend TPrsStd_PointDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/TShort.i b/src/SWIG_files/wrapper/TShort.i index 021fb4e2e..078c58f85 100644 --- a/src/SWIG_files/wrapper/TShort.i +++ b/src/SWIG_files/wrapper/TShort.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define TSHORTDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=TSHORTDOCSTRING) TShort @@ -34,31 +34,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TShort_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TShort_HArray1OfShortReal) +%wrap_handle(TShort_HArray2OfShortReal) +%wrap_handle(TShort_HSequenceOfShortReal) +%wrap_handle(TShort_SequenceNodeOfSequenceOfShortReal) + %nodefaultctor TShort_Array1OfShortReal; class TShort_Array1OfShortReal { public: @@ -325,51 +316,7 @@ class TShort_HArray1OfShortReal : public MMgt_TShared { }; -%extend TShort_HArray1OfShortReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TShort_HArray1OfShortReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TShort_HArray1OfShortReal::Handle_TShort_HArray1OfShortReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TShort_HArray1OfShortReal; -class Handle_TShort_HArray1OfShortReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TShort_HArray1OfShortReal(); - Handle_TShort_HArray1OfShortReal(const Handle_TShort_HArray1OfShortReal &aHandle); - Handle_TShort_HArray1OfShortReal(const TShort_HArray1OfShortReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TShort_HArray1OfShortReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TShort_HArray1OfShortReal { - TShort_HArray1OfShortReal* _get_reference() { - return (TShort_HArray1OfShortReal*)$self->Access(); - } -}; - -%extend Handle_TShort_HArray1OfShortReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TShort_HArray1OfShortReal) %extend TShort_HArray1OfShortReal { %pythoncode { @@ -472,51 +419,7 @@ class TShort_HArray2OfShortReal : public MMgt_TShared { }; -%extend TShort_HArray2OfShortReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TShort_HArray2OfShortReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TShort_HArray2OfShortReal::Handle_TShort_HArray2OfShortReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TShort_HArray2OfShortReal; -class Handle_TShort_HArray2OfShortReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TShort_HArray2OfShortReal(); - Handle_TShort_HArray2OfShortReal(const Handle_TShort_HArray2OfShortReal &aHandle); - Handle_TShort_HArray2OfShortReal(const TShort_HArray2OfShortReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TShort_HArray2OfShortReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TShort_HArray2OfShortReal { - TShort_HArray2OfShortReal* _get_reference() { - return (TShort_HArray2OfShortReal*)$self->Access(); - } -}; - -%extend Handle_TShort_HArray2OfShortReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TShort_HArray2OfShortReal) %extend TShort_HArray2OfShortReal { %pythoncode { @@ -661,51 +564,7 @@ class TShort_HSequenceOfShortReal : public MMgt_TShared { }; -%extend TShort_HSequenceOfShortReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TShort_HSequenceOfShortReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TShort_HSequenceOfShortReal::Handle_TShort_HSequenceOfShortReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TShort_HSequenceOfShortReal; -class Handle_TShort_HSequenceOfShortReal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TShort_HSequenceOfShortReal(); - Handle_TShort_HSequenceOfShortReal(const Handle_TShort_HSequenceOfShortReal &aHandle); - Handle_TShort_HSequenceOfShortReal(const TShort_HSequenceOfShortReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TShort_HSequenceOfShortReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TShort_HSequenceOfShortReal { - TShort_HSequenceOfShortReal* _get_reference() { - return (TShort_HSequenceOfShortReal*)$self->Access(); - } -}; - -%extend Handle_TShort_HSequenceOfShortReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TShort_HSequenceOfShortReal) %extend TShort_HSequenceOfShortReal { %pythoncode { @@ -732,51 +591,7 @@ class TShort_SequenceNodeOfSequenceOfShortReal : public TCollection_SeqNode { }; -%extend TShort_SequenceNodeOfSequenceOfShortReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TShort_SequenceNodeOfSequenceOfShortReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TShort_SequenceNodeOfSequenceOfShortReal::Handle_TShort_SequenceNodeOfSequenceOfShortReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TShort_SequenceNodeOfSequenceOfShortReal; -class Handle_TShort_SequenceNodeOfSequenceOfShortReal : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TShort_SequenceNodeOfSequenceOfShortReal(); - Handle_TShort_SequenceNodeOfSequenceOfShortReal(const Handle_TShort_SequenceNodeOfSequenceOfShortReal &aHandle); - Handle_TShort_SequenceNodeOfSequenceOfShortReal(const TShort_SequenceNodeOfSequenceOfShortReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TShort_SequenceNodeOfSequenceOfShortReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TShort_SequenceNodeOfSequenceOfShortReal { - TShort_SequenceNodeOfSequenceOfShortReal* _get_reference() { - return (TShort_SequenceNodeOfSequenceOfShortReal*)$self->Access(); - } -}; - -%extend Handle_TShort_SequenceNodeOfSequenceOfShortReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TShort_SequenceNodeOfSequenceOfShortReal) %extend TShort_SequenceNodeOfSequenceOfShortReal { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopAbs.i b/src/SWIG_files/wrapper/TopAbs.i index 1f299e22d..10df12345 100644 --- a/src/SWIG_files/wrapper/TopAbs.i +++ b/src/SWIG_files/wrapper/TopAbs.i @@ -18,7 +18,25 @@ along with pythonOCC. If not, see . */ %define TOPABSDOCSTRING -"No docstring provided." +"applications such as : Topological Data Structure, +Topological Algorithms. + +It contains : + +* The ShapeEnum enumeration to describe the +differents topological shapes. + +* The Orientation enumeration to describe the +orientation of a topological shape. + +* The State enumeration to describes the +position of a point relative to a Shape. + +* Methods to manage the enumerations. + +-Level : Public. +All methods of all classes will be public. +" %enddef %module (package="OCC.Core", docstring=TOPABSDOCSTRING) TopAbs @@ -34,25 +52,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopAbs_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -85,6 +89,7 @@ enum TopAbs_State { /* end public enums declaration */ + %rename(topabs) TopAbs; class TopAbs { public: diff --git a/src/SWIG_files/wrapper/TopBas.i b/src/SWIG_files/wrapper/TopBas.i index 595c8f32a..4b81db6eb 100644 --- a/src/SWIG_files/wrapper/TopBas.i +++ b/src/SWIG_files/wrapper/TopBas.i @@ -18,7 +18,16 @@ along with pythonOCC. If not, see . */ %define TOPBASDOCSTRING -"No docstring provided." +"The TopBas package provides data structure for +topological algorithms. THe data structures are +used to store the intermediary dat and the results +of the algorithms. + +* Interference, List : An Interference is the +topological representation of an intersection. +The classes are generic in order to be independant +of the data structure. +" %enddef %module (package="OCC.Core", docstring=TOPBASDOCSTRING) TopBas @@ -34,31 +43,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopBas_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TopBas_ListNodeOfListOfTestInterference) + %nodefaultctor TopBas_ListIteratorOfListOfTestInterference; class TopBas_ListIteratorOfListOfTestInterference { public: @@ -116,51 +113,7 @@ class TopBas_ListNodeOfListOfTestInterference : public TCollection_MapNode { }; -%extend TopBas_ListNodeOfListOfTestInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopBas_ListNodeOfListOfTestInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopBas_ListNodeOfListOfTestInterference::Handle_TopBas_ListNodeOfListOfTestInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopBas_ListNodeOfListOfTestInterference; -class Handle_TopBas_ListNodeOfListOfTestInterference : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopBas_ListNodeOfListOfTestInterference(); - Handle_TopBas_ListNodeOfListOfTestInterference(const Handle_TopBas_ListNodeOfListOfTestInterference &aHandle); - Handle_TopBas_ListNodeOfListOfTestInterference(const TopBas_ListNodeOfListOfTestInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopBas_ListNodeOfListOfTestInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopBas_ListNodeOfListOfTestInterference { - TopBas_ListNodeOfListOfTestInterference* _get_reference() { - return (TopBas_ListNodeOfListOfTestInterference*)$self->Access(); - } -}; - -%extend Handle_TopBas_ListNodeOfListOfTestInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopBas_ListNodeOfListOfTestInterference) %extend TopBas_ListNodeOfListOfTestInterference { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopClass.i b/src/SWIG_files/wrapper/TopClass.i index fc1c49885..27426694c 100644 --- a/src/SWIG_files/wrapper/TopClass.i +++ b/src/SWIG_files/wrapper/TopClass.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define TOPCLASSDOCSTRING -"No docstring provided." +"The package TopClass provides Classification +algorithms. A Classification algorithm is used to +compute if a point is inside, outside or on the +boundary of a Shape. +" %enddef %module (package="OCC.Core", docstring=TOPCLASSDOCSTRING) TopClass @@ -34,31 +38,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopClass_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor TopClass_Intersection3d; class TopClass_Intersection3d { public: diff --git a/src/SWIG_files/wrapper/TopClass_headers.i b/src/SWIG_files/wrapper/TopClass_headers.i index 7e422dd77..4bf081be8 100644 --- a/src/SWIG_files/wrapper/TopClass_headers.i +++ b/src/SWIG_files/wrapper/TopClass_headers.i @@ -192,6 +192,144 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/TopCnx.i b/src/SWIG_files/wrapper/TopCnx.i index 166f58cdc..1c5282472 100644 --- a/src/SWIG_files/wrapper/TopCnx.i +++ b/src/SWIG_files/wrapper/TopCnx.i @@ -18,7 +18,34 @@ along with pythonOCC. If not, see . */ %define TOPCNXDOCSTRING -"No docstring provided." +"This algorithm provides algorithms to computes +transitions when many interferences occurs at the +same place on a shape. + +An interference is an intersection on a shape (i.e +a vertex on an edge or an edge on a face) with +data about the transition (how the shape is +crossing the boundary where the intersection +occurs). + +There are three algorithms to process +interferences : + +* EdgeFaceTransition : To process interferences on +an adge crossing other edges on the boundary of a +face. + +* EdgeSolidTransition : To process interferences +on an edge crossing faces and edges on the +boundary of a solid. + +* FaceSolidTransition : To process interferences +on a face crossing other faces on the boundary of +a solid. + +This package relies on the TopTrans package for +the geometric computations. +" %enddef %module (package="OCC.Core", docstring=TOPCNXDOCSTRING) TopCnx @@ -34,31 +61,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopCnx_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor TopCnx_EdgeFaceTransition; class TopCnx_EdgeFaceTransition { public: diff --git a/src/SWIG_files/wrapper/TopExp.i b/src/SWIG_files/wrapper/TopExp.i index 4c93d1dda..2c2885ae4 100644 --- a/src/SWIG_files/wrapper/TopExp.i +++ b/src/SWIG_files/wrapper/TopExp.i @@ -18,7 +18,18 @@ along with pythonOCC. If not, see . */ %define TOPEXPDOCSTRING -"No docstring provided." +"This package provides basic tools to explore the +topological data structures. + +* Explorer : A tool to find all sub-shapes of a given +type. e.g. all faces of a solid. + +* Package methods to map sub-shapes of a shape. + +Level : Public +All methods of all classes will be public. + +" %enddef %module (package="OCC.Core", docstring=TOPEXPDOCSTRING) TopExp @@ -34,25 +45,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopExp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TopoDS_Iterator * TopExp_Stack; /* end typedefs declaration */ @@ -60,6 +57,7 @@ typedef TopoDS_Iterator * TopExp_Stack; /* public enums */ /* end public enums declaration */ + %rename(topexp) TopExp; class TopExp { public: diff --git a/src/SWIG_files/wrapper/TopLoc.i b/src/SWIG_files/wrapper/TopLoc.i index c653830b2..c0f5dfee7 100644 --- a/src/SWIG_files/wrapper/TopLoc.i +++ b/src/SWIG_files/wrapper/TopLoc.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define TOPLOCDOCSTRING -"No docstring provided." +"-Level : Public. +All methods of all classes will be public. + +The TopLoc package gives ressources to handle 3D local +coordinate systems called Locations. + +A Location is a composition of elementary coordinate +systems, each one is called a Datum. The Location +keeps track of this composition. + +" %enddef %module (package="OCC.Core", docstring=TOPLOCDOCSTRING) TopLoc @@ -34,31 +44,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopLoc_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TopLoc_Datum3D) +%wrap_handle(TopLoc_IndexedMapNodeOfIndexedMapOfLocation) +%wrap_handle(TopLoc_SListNodeOfItemLocation) +%wrap_handle(TopLoc_StdMapNodeOfMapOfLocation) + %nodefaultctor TopLoc_Datum3D; class TopLoc_Datum3D : public MMgt_TShared { public: @@ -93,51 +94,7 @@ class TopLoc_Datum3D : public MMgt_TShared { }; -%extend TopLoc_Datum3D { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopLoc_Datum3D(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopLoc_Datum3D::Handle_TopLoc_Datum3D %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopLoc_Datum3D; -class Handle_TopLoc_Datum3D : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopLoc_Datum3D(); - Handle_TopLoc_Datum3D(const Handle_TopLoc_Datum3D &aHandle); - Handle_TopLoc_Datum3D(const TopLoc_Datum3D *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopLoc_Datum3D DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopLoc_Datum3D { - TopLoc_Datum3D* _get_reference() { - return (TopLoc_Datum3D*)$self->Access(); - } -}; - -%extend Handle_TopLoc_Datum3D { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopLoc_Datum3D) %extend TopLoc_Datum3D { %pythoncode { @@ -183,51 +140,7 @@ class TopLoc_IndexedMapNodeOfIndexedMapOfLocation : public TCollection_MapNode { }; -%extend TopLoc_IndexedMapNodeOfIndexedMapOfLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation::Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation; -class Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation(); - Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation(const Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation &aHandle); - Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation(const TopLoc_IndexedMapNodeOfIndexedMapOfLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation { - TopLoc_IndexedMapNodeOfIndexedMapOfLocation* _get_reference() { - return (TopLoc_IndexedMapNodeOfIndexedMapOfLocation*)$self->Access(); - } -}; - -%extend Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopLoc_IndexedMapNodeOfIndexedMapOfLocation) %extend TopLoc_IndexedMapNodeOfIndexedMapOfLocation { %pythoncode { @@ -667,51 +580,7 @@ class TopLoc_SListNodeOfItemLocation : public MMgt_TShared { }; -%extend TopLoc_SListNodeOfItemLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopLoc_SListNodeOfItemLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopLoc_SListNodeOfItemLocation::Handle_TopLoc_SListNodeOfItemLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopLoc_SListNodeOfItemLocation; -class Handle_TopLoc_SListNodeOfItemLocation : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopLoc_SListNodeOfItemLocation(); - Handle_TopLoc_SListNodeOfItemLocation(const Handle_TopLoc_SListNodeOfItemLocation &aHandle); - Handle_TopLoc_SListNodeOfItemLocation(const TopLoc_SListNodeOfItemLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopLoc_SListNodeOfItemLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopLoc_SListNodeOfItemLocation { - TopLoc_SListNodeOfItemLocation* _get_reference() { - return (TopLoc_SListNodeOfItemLocation*)$self->Access(); - } -}; - -%extend Handle_TopLoc_SListNodeOfItemLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopLoc_SListNodeOfItemLocation) %extend TopLoc_SListNodeOfItemLocation { %pythoncode { @@ -833,51 +702,7 @@ class TopLoc_StdMapNodeOfMapOfLocation : public TCollection_MapNode { }; -%extend TopLoc_StdMapNodeOfMapOfLocation { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopLoc_StdMapNodeOfMapOfLocation(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopLoc_StdMapNodeOfMapOfLocation::Handle_TopLoc_StdMapNodeOfMapOfLocation %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopLoc_StdMapNodeOfMapOfLocation; -class Handle_TopLoc_StdMapNodeOfMapOfLocation : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopLoc_StdMapNodeOfMapOfLocation(); - Handle_TopLoc_StdMapNodeOfMapOfLocation(const Handle_TopLoc_StdMapNodeOfMapOfLocation &aHandle); - Handle_TopLoc_StdMapNodeOfMapOfLocation(const TopLoc_StdMapNodeOfMapOfLocation *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopLoc_StdMapNodeOfMapOfLocation DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopLoc_StdMapNodeOfMapOfLocation { - TopLoc_StdMapNodeOfMapOfLocation* _get_reference() { - return (TopLoc_StdMapNodeOfMapOfLocation*)$self->Access(); - } -}; - -%extend Handle_TopLoc_StdMapNodeOfMapOfLocation { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopLoc_StdMapNodeOfMapOfLocation) %extend TopLoc_StdMapNodeOfMapOfLocation { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopOpeBRep.i b/src/SWIG_files/wrapper/TopOpeBRep.i index a25c2c261..14b42a66b 100644 --- a/src/SWIG_files/wrapper/TopOpeBRep.i +++ b/src/SWIG_files/wrapper/TopOpeBRep.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define TOPOPEBREPDOCSTRING -"No docstring provided." +"This package provides the topological operations +on the BRep data structure. +" %enddef %module (package="OCC.Core", docstring=TOPOPEBREPDOCSTRING) TopOpeBRep @@ -34,25 +36,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopOpeBRep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TopOpeBRep_FacesIntersector * TopOpeBRep_PFacesIntersector; typedef IntPatch_Point * TopOpeBRep_PThePointOfIntersection; @@ -86,6 +74,15 @@ enum TopOpeBRep_TypeLineCurve { /* end public enums declaration */ +%wrap_handle(TopOpeBRep_DataMapNodeOfDataMapOfTopolTool) +%wrap_handle(TopOpeBRep_FFDumper) +%wrap_handle(TopOpeBRep_HArray1OfLineInter) +%wrap_handle(TopOpeBRep_HArray1OfVPointInter) +%wrap_handle(TopOpeBRep_Hctxee2d) +%wrap_handle(TopOpeBRep_Hctxff2d) +%wrap_handle(TopOpeBRep_ListNodeOfListOfBipoint) +%wrap_handle(TopOpeBRep_SequenceNodeOfSequenceOfPoint2d) + %rename(topopebrep) TopOpeBRep; class TopOpeBRep { public: @@ -550,51 +547,7 @@ class TopOpeBRep_DataMapNodeOfDataMapOfTopolTool : public TCollection_MapNode { }; -%extend TopOpeBRep_DataMapNodeOfDataMapOfTopolTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool::Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool; -class Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool(); - Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool(const Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool &aHandle); - Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool(const TopOpeBRep_DataMapNodeOfDataMapOfTopolTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool { - TopOpeBRep_DataMapNodeOfDataMapOfTopolTool* _get_reference() { - return (TopOpeBRep_DataMapNodeOfDataMapOfTopolTool*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_DataMapNodeOfDataMapOfTopolTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_DataMapNodeOfDataMapOfTopolTool) %extend TopOpeBRep_DataMapNodeOfDataMapOfTopolTool { %pythoncode { @@ -982,51 +935,7 @@ class TopOpeBRep_FFDumper : public MMgt_TShared { }; -%extend TopOpeBRep_FFDumper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_FFDumper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_FFDumper::Handle_TopOpeBRep_FFDumper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_FFDumper; -class Handle_TopOpeBRep_FFDumper : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRep_FFDumper(); - Handle_TopOpeBRep_FFDumper(const Handle_TopOpeBRep_FFDumper &aHandle); - Handle_TopOpeBRep_FFDumper(const TopOpeBRep_FFDumper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_FFDumper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_FFDumper { - TopOpeBRep_FFDumper* _get_reference() { - return (TopOpeBRep_FFDumper*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_FFDumper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_FFDumper) %extend TopOpeBRep_FFDumper { %pythoncode { @@ -1947,51 +1856,7 @@ class TopOpeBRep_HArray1OfLineInter : public MMgt_TShared { }; -%extend TopOpeBRep_HArray1OfLineInter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_HArray1OfLineInter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_HArray1OfLineInter::Handle_TopOpeBRep_HArray1OfLineInter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_HArray1OfLineInter; -class Handle_TopOpeBRep_HArray1OfLineInter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRep_HArray1OfLineInter(); - Handle_TopOpeBRep_HArray1OfLineInter(const Handle_TopOpeBRep_HArray1OfLineInter &aHandle); - Handle_TopOpeBRep_HArray1OfLineInter(const TopOpeBRep_HArray1OfLineInter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_HArray1OfLineInter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_HArray1OfLineInter { - TopOpeBRep_HArray1OfLineInter* _get_reference() { - return (TopOpeBRep_HArray1OfLineInter*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_HArray1OfLineInter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_HArray1OfLineInter) %extend TopOpeBRep_HArray1OfLineInter { %pythoncode { @@ -2068,51 +1933,7 @@ class TopOpeBRep_HArray1OfVPointInter : public MMgt_TShared { }; -%extend TopOpeBRep_HArray1OfVPointInter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_HArray1OfVPointInter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_HArray1OfVPointInter::Handle_TopOpeBRep_HArray1OfVPointInter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_HArray1OfVPointInter; -class Handle_TopOpeBRep_HArray1OfVPointInter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRep_HArray1OfVPointInter(); - Handle_TopOpeBRep_HArray1OfVPointInter(const Handle_TopOpeBRep_HArray1OfVPointInter &aHandle); - Handle_TopOpeBRep_HArray1OfVPointInter(const TopOpeBRep_HArray1OfVPointInter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_HArray1OfVPointInter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_HArray1OfVPointInter { - TopOpeBRep_HArray1OfVPointInter* _get_reference() { - return (TopOpeBRep_HArray1OfVPointInter*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_HArray1OfVPointInter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_HArray1OfVPointInter) %extend TopOpeBRep_HArray1OfVPointInter { %pythoncode { @@ -2159,51 +1980,7 @@ class TopOpeBRep_Hctxee2d : public MMgt_TShared { }; -%extend TopOpeBRep_Hctxee2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_Hctxee2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_Hctxee2d::Handle_TopOpeBRep_Hctxee2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_Hctxee2d; -class Handle_TopOpeBRep_Hctxee2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRep_Hctxee2d(); - Handle_TopOpeBRep_Hctxee2d(const Handle_TopOpeBRep_Hctxee2d &aHandle); - Handle_TopOpeBRep_Hctxee2d(const TopOpeBRep_Hctxee2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_Hctxee2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_Hctxee2d { - TopOpeBRep_Hctxee2d* _get_reference() { - return (TopOpeBRep_Hctxee2d*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_Hctxee2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_Hctxee2d) %extend TopOpeBRep_Hctxee2d { %pythoncode { @@ -2282,51 +2059,7 @@ class TopOpeBRep_Hctxff2d : public MMgt_TShared { }; -%extend TopOpeBRep_Hctxff2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_Hctxff2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_Hctxff2d::Handle_TopOpeBRep_Hctxff2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_Hctxff2d; -class Handle_TopOpeBRep_Hctxff2d : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRep_Hctxff2d(); - Handle_TopOpeBRep_Hctxff2d(const Handle_TopOpeBRep_Hctxff2d &aHandle); - Handle_TopOpeBRep_Hctxff2d(const TopOpeBRep_Hctxff2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_Hctxff2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_Hctxff2d { - TopOpeBRep_Hctxff2d* _get_reference() { - return (TopOpeBRep_Hctxff2d*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_Hctxff2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_Hctxff2d) %extend TopOpeBRep_Hctxff2d { %pythoncode { @@ -2651,51 +2384,7 @@ class TopOpeBRep_ListNodeOfListOfBipoint : public TCollection_MapNode { }; -%extend TopOpeBRep_ListNodeOfListOfBipoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_ListNodeOfListOfBipoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_ListNodeOfListOfBipoint::Handle_TopOpeBRep_ListNodeOfListOfBipoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_ListNodeOfListOfBipoint; -class Handle_TopOpeBRep_ListNodeOfListOfBipoint : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRep_ListNodeOfListOfBipoint(); - Handle_TopOpeBRep_ListNodeOfListOfBipoint(const Handle_TopOpeBRep_ListNodeOfListOfBipoint &aHandle); - Handle_TopOpeBRep_ListNodeOfListOfBipoint(const TopOpeBRep_ListNodeOfListOfBipoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_ListNodeOfListOfBipoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_ListNodeOfListOfBipoint { - TopOpeBRep_ListNodeOfListOfBipoint* _get_reference() { - return (TopOpeBRep_ListNodeOfListOfBipoint*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_ListNodeOfListOfBipoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_ListNodeOfListOfBipoint) %extend TopOpeBRep_ListNodeOfListOfBipoint { %pythoncode { @@ -3155,51 +2844,7 @@ class TopOpeBRep_SequenceNodeOfSequenceOfPoint2d : public TCollection_SeqNode { }; -%extend TopOpeBRep_SequenceNodeOfSequenceOfPoint2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d::Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d; -class Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d(); - Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d(const Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d &aHandle); - Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d(const TopOpeBRep_SequenceNodeOfSequenceOfPoint2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d { - TopOpeBRep_SequenceNodeOfSequenceOfPoint2d* _get_reference() { - return (TopOpeBRep_SequenceNodeOfSequenceOfPoint2d*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRep_SequenceNodeOfSequenceOfPoint2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRep_SequenceNodeOfSequenceOfPoint2d) %extend TopOpeBRep_SequenceNodeOfSequenceOfPoint2d { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopOpeBRepBuild.i b/src/SWIG_files/wrapper/TopOpeBRepBuild.i index ef8cbeb79..bd454d6a6 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepBuild.i +++ b/src/SWIG_files/wrapper/TopOpeBRepBuild.i @@ -18,7 +18,19 @@ along with pythonOCC. If not, see . */ %define TOPOPEBREPBUILDDOCSTRING -"No docstring provided." +" +This package describes algorithms and dedicated tools +involved in topological operation on BRep shapes. +These 'builders' works on a data structure that must have been +previously filled (by a 'filler') according to the +topological operation rules defined in class DataStructure +from TopOpeBRepDS. +The DSFiller must be considered as a 'linking' tool +dealing with geometric data as an input and a DS as an +output. +These geometric data may be seen as the result of 3D +intersection between BRep shapes. +" %enddef %module (package="OCC.Core", docstring=TOPOPEBREPBUILDDOCSTRING) TopOpeBRepBuild @@ -34,25 +46,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopOpeBRepBuild_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TopOpeBRepBuild_GTopo * TopOpeBRepBuild_PGTopo; typedef TopOpeBRepBuild_Builder * TopOpeBRepBuild_PBuilder; @@ -68,6 +66,16 @@ enum TopOpeBRepBuild_LoopEnum { /* end public enums declaration */ +%wrap_handle(TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape) +%wrap_handle(TopOpeBRepBuild_HBuilder) +%wrap_handle(TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo) +%wrap_handle(TopOpeBRepBuild_ListNodeOfListOfListOfLoop) +%wrap_handle(TopOpeBRepBuild_ListNodeOfListOfLoop) +%wrap_handle(TopOpeBRepBuild_ListNodeOfListOfPave) +%wrap_handle(TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape) +%wrap_handle(TopOpeBRepBuild_Loop) +%wrap_handle(TopOpeBRepBuild_Pave) + %nodefaultctor TopOpeBRepBuild_AreaBuilder; class TopOpeBRepBuild_AreaBuilder { public: @@ -542,51 +550,7 @@ class TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape : public }; -%extend TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape::Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape; -class Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape(); - Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape(const Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape &aHandle); - Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape(const TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape { - TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape* _get_reference() { - return (TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape) %extend TopOpeBRepBuild_DataMapNodeOfDataMapOfShapeListOfShapeListOfShape { %pythoncode { @@ -1560,51 +1524,7 @@ class TopOpeBRepBuild_HBuilder : public MMgt_TShared { }; -%extend TopOpeBRepBuild_HBuilder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_HBuilder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_HBuilder::Handle_TopOpeBRepBuild_HBuilder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_HBuilder; -class Handle_TopOpeBRepBuild_HBuilder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepBuild_HBuilder(); - Handle_TopOpeBRepBuild_HBuilder(const Handle_TopOpeBRepBuild_HBuilder &aHandle); - Handle_TopOpeBRepBuild_HBuilder(const TopOpeBRepBuild_HBuilder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_HBuilder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_HBuilder { - TopOpeBRepBuild_HBuilder* _get_reference() { - return (TopOpeBRepBuild_HBuilder*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_HBuilder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_HBuilder) %extend TopOpeBRepBuild_HBuilder { %pythoncode { @@ -1656,51 +1576,7 @@ class TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo : publ }; -%extend TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo::Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo; -class Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo(); - Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo(const Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo &aHandle); - Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo(const TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo { - TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo* _get_reference() { - return (TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo) %extend TopOpeBRepBuild_IndexedDataMapNodeOfIndexedDataMapOfShapeVertexInfo { %pythoncode { @@ -1996,51 +1872,7 @@ class TopOpeBRepBuild_ListNodeOfListOfListOfLoop : public TCollection_MapNode { }; -%extend TopOpeBRepBuild_ListNodeOfListOfListOfLoop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop::Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop; -class Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop(); - Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop(const Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop &aHandle); - Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop(const TopOpeBRepBuild_ListNodeOfListOfListOfLoop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop { - TopOpeBRepBuild_ListNodeOfListOfListOfLoop* _get_reference() { - return (TopOpeBRepBuild_ListNodeOfListOfListOfLoop*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfListOfLoop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_ListNodeOfListOfListOfLoop) %extend TopOpeBRepBuild_ListNodeOfListOfListOfLoop { %pythoncode { @@ -2065,51 +1897,7 @@ class TopOpeBRepBuild_ListNodeOfListOfLoop : public TCollection_MapNode { }; -%extend TopOpeBRepBuild_ListNodeOfListOfLoop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_ListNodeOfListOfLoop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_ListNodeOfListOfLoop::Handle_TopOpeBRepBuild_ListNodeOfListOfLoop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_ListNodeOfListOfLoop; -class Handle_TopOpeBRepBuild_ListNodeOfListOfLoop : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepBuild_ListNodeOfListOfLoop(); - Handle_TopOpeBRepBuild_ListNodeOfListOfLoop(const Handle_TopOpeBRepBuild_ListNodeOfListOfLoop &aHandle); - Handle_TopOpeBRepBuild_ListNodeOfListOfLoop(const TopOpeBRepBuild_ListNodeOfListOfLoop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_ListNodeOfListOfLoop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfLoop { - TopOpeBRepBuild_ListNodeOfListOfLoop* _get_reference() { - return (TopOpeBRepBuild_ListNodeOfListOfLoop*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfLoop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_ListNodeOfListOfLoop) %extend TopOpeBRepBuild_ListNodeOfListOfLoop { %pythoncode { @@ -2134,51 +1922,7 @@ class TopOpeBRepBuild_ListNodeOfListOfPave : public TCollection_MapNode { }; -%extend TopOpeBRepBuild_ListNodeOfListOfPave { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_ListNodeOfListOfPave(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_ListNodeOfListOfPave::Handle_TopOpeBRepBuild_ListNodeOfListOfPave %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_ListNodeOfListOfPave; -class Handle_TopOpeBRepBuild_ListNodeOfListOfPave : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepBuild_ListNodeOfListOfPave(); - Handle_TopOpeBRepBuild_ListNodeOfListOfPave(const Handle_TopOpeBRepBuild_ListNodeOfListOfPave &aHandle); - Handle_TopOpeBRepBuild_ListNodeOfListOfPave(const TopOpeBRepBuild_ListNodeOfListOfPave *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_ListNodeOfListOfPave DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfPave { - TopOpeBRepBuild_ListNodeOfListOfPave* _get_reference() { - return (TopOpeBRepBuild_ListNodeOfListOfPave*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfPave { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_ListNodeOfListOfPave) %extend TopOpeBRepBuild_ListNodeOfListOfPave { %pythoncode { @@ -2203,51 +1947,7 @@ class TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape : public TCollection_MapN }; -%extend TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape::Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape; -class Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape(); - Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape(const Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape &aHandle); - Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape(const TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape { - TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape* _get_reference() { - return (TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape) %extend TopOpeBRepBuild_ListNodeOfListOfShapeListOfShape { %pythoncode { @@ -2828,51 +2528,7 @@ class TopOpeBRepBuild_Loop : public MMgt_TShared { }; -%extend TopOpeBRepBuild_Loop { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_Loop(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_Loop::Handle_TopOpeBRepBuild_Loop %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_Loop; -class Handle_TopOpeBRepBuild_Loop : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepBuild_Loop(); - Handle_TopOpeBRepBuild_Loop(const Handle_TopOpeBRepBuild_Loop &aHandle); - Handle_TopOpeBRepBuild_Loop(const TopOpeBRepBuild_Loop *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_Loop DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_Loop { - TopOpeBRepBuild_Loop* _get_reference() { - return (TopOpeBRepBuild_Loop*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_Loop { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_Loop) %extend TopOpeBRepBuild_Loop { %pythoncode { @@ -4316,51 +3972,7 @@ class TopOpeBRepBuild_Pave : public TopOpeBRepBuild_Loop { }; -%extend TopOpeBRepBuild_Pave { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepBuild_Pave(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepBuild_Pave::Handle_TopOpeBRepBuild_Pave %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepBuild_Pave; -class Handle_TopOpeBRepBuild_Pave : public Handle_TopOpeBRepBuild_Loop { - - public: - // constructors - Handle_TopOpeBRepBuild_Pave(); - Handle_TopOpeBRepBuild_Pave(const Handle_TopOpeBRepBuild_Pave &aHandle); - Handle_TopOpeBRepBuild_Pave(const TopOpeBRepBuild_Pave *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepBuild_Pave DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepBuild_Pave { - TopOpeBRepBuild_Pave* _get_reference() { - return (TopOpeBRepBuild_Pave*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepBuild_Pave { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepBuild_Pave) %extend TopOpeBRepBuild_Pave { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopOpeBRepDS.i b/src/SWIG_files/wrapper/TopOpeBRepDS.i index 57e3c131c..1ec0f7f48 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepDS.i +++ b/src/SWIG_files/wrapper/TopOpeBRepDS.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define TOPOPEBREPDSDOCSTRING -"No docstring provided." +"This package provides services used by the TopOpeBRepBuild +package performing topological operations on the BRep +data structure. +" %enddef %module (package="OCC.Core", docstring=TOPOPEBREPDSDOCSTRING) TopOpeBRepDS @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopOpeBRepDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TopOpeBRepDS_DataStructure * TopOpeBRepDS_PDataStructure; /* end typedefs declaration */ @@ -86,6 +75,35 @@ enum TopOpeBRepDS_Kind { /* end public enums declaration */ +%wrap_handle(TopOpeBRepDS_Association) +%wrap_handle(TopOpeBRepDS_Check) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfMapOfCurve) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfMapOfPoint) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfMapOfSurface) +%wrap_handle(TopOpeBRepDS_DataMapNodeOfShapeSurface) +%wrap_handle(TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape) +%wrap_handle(TopOpeBRepDS_GapTool) +%wrap_handle(TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference) +%wrap_handle(TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState) +%wrap_handle(TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint) +%wrap_handle(TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData) +%wrap_handle(TopOpeBRepDS_Interference) +%wrap_handle(TopOpeBRepDS_ListNodeOfListOfInterference) +%wrap_handle(TopOpeBRepDS_Marker) +%wrap_handle(TopOpeBRepDS_CurvePointInterference) +%wrap_handle(TopOpeBRepDS_ShapeShapeInterference) +%wrap_handle(TopOpeBRepDS_SolidSurfaceInterference) +%wrap_handle(TopOpeBRepDS_SurfaceCurveInterference) +%wrap_handle(TopOpeBRepDS_EdgeVertexInterference) +%wrap_handle(TopOpeBRepDS_FaceEdgeInterference) + %rename(topopebrepds) TopOpeBRepDS; class TopOpeBRepDS { public: @@ -360,51 +378,7 @@ class TopOpeBRepDS_Association : public MMgt_TShared { }; -%extend TopOpeBRepDS_Association { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_Association(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_Association::Handle_TopOpeBRepDS_Association %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_Association; -class Handle_TopOpeBRepDS_Association : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepDS_Association(); - Handle_TopOpeBRepDS_Association(const Handle_TopOpeBRepDS_Association &aHandle); - Handle_TopOpeBRepDS_Association(const TopOpeBRepDS_Association *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_Association DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_Association { - TopOpeBRepDS_Association* _get_reference() { - return (TopOpeBRepDS_Association*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_Association { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_Association) %extend TopOpeBRepDS_Association { %pythoncode { @@ -928,51 +902,7 @@ class TopOpeBRepDS_Check : public MMgt_TShared { }; -%extend TopOpeBRepDS_Check { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_Check(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_Check::Handle_TopOpeBRepDS_Check %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_Check; -class Handle_TopOpeBRepDS_Check : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepDS_Check(); - Handle_TopOpeBRepDS_Check(const Handle_TopOpeBRepDS_Check &aHandle); - Handle_TopOpeBRepDS_Check(const TopOpeBRepDS_Check *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_Check DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_Check { - TopOpeBRepDS_Check* _get_reference() { - return (TopOpeBRepDS_Check*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_Check { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_Check) %extend TopOpeBRepDS_Check { %pythoncode { @@ -1673,51 +1603,7 @@ class TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus : public TCollection_MapNod }; -%extend TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus::Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus; -class Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus(); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus(const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus(const TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus { - TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus) %extend TopOpeBRepDS_DataMapNodeOfDataMapOfCheckStatus { %pythoncode { @@ -1757,51 +1643,7 @@ class TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference : public TCol }; -%extend TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference::Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference; -class Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference(); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference(const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference(const TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference { - TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference) %extend TopOpeBRepDS_DataMapNodeOfDataMapOfIntegerListOfInterference { %pythoncode { @@ -1832,51 +1674,7 @@ class TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference : public }; -%extend TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference::Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference; -class Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference(); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference(const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference(const TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference { - TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference) %extend TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceListOfInterference { %pythoncode { @@ -1907,51 +1705,7 @@ class TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape : public TCollection_ }; -%extend TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape::Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape; -class Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape(); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape(const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape(const TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape { - TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape) %extend TopOpeBRepDS_DataMapNodeOfDataMapOfInterferenceShape { %pythoncode { @@ -1982,51 +1736,7 @@ class TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State : public TColl }; -%extend TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State::Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State; -class Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State(); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State(const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State(const TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State { - TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State) %extend TopOpeBRepDS_DataMapNodeOfDataMapOfShapeListOfShapeOn1State { %pythoncode { @@ -2057,51 +1767,7 @@ class TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState : public TCollection_MapNode }; -%extend TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState::Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState; -class Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState(); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState(const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState(const TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState { - TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState) %extend TopOpeBRepDS_DataMapNodeOfDataMapOfShapeState { %pythoncode { @@ -2141,51 +1807,7 @@ class TopOpeBRepDS_DataMapNodeOfMapOfCurve : public TCollection_MapNode { }; -%extend TopOpeBRepDS_DataMapNodeOfMapOfCurve { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve::Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve; -class Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve(); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve(const Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve(const TopOpeBRepDS_DataMapNodeOfMapOfCurve *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve { - TopOpeBRepDS_DataMapNodeOfMapOfCurve* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfMapOfCurve*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfCurve { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfMapOfCurve) %extend TopOpeBRepDS_DataMapNodeOfMapOfCurve { %pythoncode { @@ -2225,51 +1847,7 @@ class TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData : public TCollection_MapNo }; -%extend TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData::Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData; -class Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData(); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData(const Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData(const TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData { - TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData) %extend TopOpeBRepDS_DataMapNodeOfMapOfIntegerShapeData { %pythoncode { @@ -2309,51 +1887,7 @@ class TopOpeBRepDS_DataMapNodeOfMapOfPoint : public TCollection_MapNode { }; -%extend TopOpeBRepDS_DataMapNodeOfMapOfPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint::Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint; -class Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint(); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint(const Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint(const TopOpeBRepDS_DataMapNodeOfMapOfPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint { - TopOpeBRepDS_DataMapNodeOfMapOfPoint* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfMapOfPoint*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfMapOfPoint) %extend TopOpeBRepDS_DataMapNodeOfMapOfPoint { %pythoncode { @@ -2393,51 +1927,7 @@ class TopOpeBRepDS_DataMapNodeOfMapOfSurface : public TCollection_MapNode { }; -%extend TopOpeBRepDS_DataMapNodeOfMapOfSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface::Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface; -class Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface(); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface(const Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface(const TopOpeBRepDS_DataMapNodeOfMapOfSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface { - TopOpeBRepDS_DataMapNodeOfMapOfSurface* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfMapOfSurface*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfMapOfSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfMapOfSurface) %extend TopOpeBRepDS_DataMapNodeOfMapOfSurface { %pythoncode { @@ -2468,51 +1958,7 @@ class TopOpeBRepDS_DataMapNodeOfShapeSurface : public TCollection_MapNode { }; -%extend TopOpeBRepDS_DataMapNodeOfShapeSurface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface::Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface; -class Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface(); - Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface(const Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface &aHandle); - Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface(const TopOpeBRepDS_DataMapNodeOfShapeSurface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface { - TopOpeBRepDS_DataMapNodeOfShapeSurface* _get_reference() { - return (TopOpeBRepDS_DataMapNodeOfShapeSurface*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DataMapNodeOfShapeSurface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DataMapNodeOfShapeSurface) %extend TopOpeBRepDS_DataMapNodeOfShapeSurface { %pythoncode { @@ -3774,51 +3220,7 @@ class TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape : public TCollection_M }; -%extend TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape::Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape; -class Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape(); - Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape(const Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape &aHandle); - Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape(const TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape { - TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape* _get_reference() { - return (TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape) %extend TopOpeBRepDS_DoubleMapNodeOfDoubleMapOfIntegerShape { %pythoncode { @@ -4717,51 +4119,7 @@ class TopOpeBRepDS_GapTool : public MMgt_TShared { }; -%extend TopOpeBRepDS_GapTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_GapTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_GapTool::Handle_TopOpeBRepDS_GapTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_GapTool; -class Handle_TopOpeBRepDS_GapTool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepDS_GapTool(); - Handle_TopOpeBRepDS_GapTool(const Handle_TopOpeBRepDS_GapTool &aHandle); - Handle_TopOpeBRepDS_GapTool(const TopOpeBRepDS_GapTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_GapTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_GapTool { - TopOpeBRepDS_GapTool* _get_reference() { - return (TopOpeBRepDS_GapTool*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_GapTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_GapTool) %extend TopOpeBRepDS_GapTool { %pythoncode { @@ -4885,51 +4243,7 @@ class TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference : public MMgt_TSh }; -%extend TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference::Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference; -class Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference(); - Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference(const Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference &aHandle); - Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference(const TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference { - TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference* _get_reference() { - return (TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference) %extend TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference { %pythoncode { @@ -4981,51 +4295,7 @@ class TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState : public T }; -%extend TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState::Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState; -class Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState(); - Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState(const Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState &aHandle); - Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState(const TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState { - TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState* _get_reference() { - return (TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState) %extend TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfShapeWithState { %pythoncode { @@ -5077,51 +4347,7 @@ class TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint : public TCol }; -%extend TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint::Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint; -class Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint(); - Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint(const Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint &aHandle); - Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint(const TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint { - TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint* _get_reference() { - return (TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint) %extend TopOpeBRepDS_IndexedDataMapNodeOfIndexedDataMapOfVertexPoint { %pythoncode { @@ -5173,51 +4399,7 @@ class TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData : public TCollection_MapNo }; -%extend TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData::Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData; -class Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData(); - Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData(const Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData &aHandle); - Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData(const TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData { - TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData* _get_reference() { - return (TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData) %extend TopOpeBRepDS_IndexedDataMapNodeOfMapOfShapeData { %pythoncode { @@ -5604,51 +4786,7 @@ class TopOpeBRepDS_Interference : public MMgt_TShared { }; -%extend TopOpeBRepDS_Interference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_Interference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_Interference::Handle_TopOpeBRepDS_Interference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_Interference; -class Handle_TopOpeBRepDS_Interference : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepDS_Interference(); - Handle_TopOpeBRepDS_Interference(const Handle_TopOpeBRepDS_Interference &aHandle); - Handle_TopOpeBRepDS_Interference(const TopOpeBRepDS_Interference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_Interference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_Interference { - TopOpeBRepDS_Interference* _get_reference() { - return (TopOpeBRepDS_Interference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_Interference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_Interference) %extend TopOpeBRepDS_Interference { %pythoncode { @@ -5927,51 +5065,7 @@ class TopOpeBRepDS_ListNodeOfListOfInterference : public TCollection_MapNode { }; -%extend TopOpeBRepDS_ListNodeOfListOfInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_ListNodeOfListOfInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_ListNodeOfListOfInterference::Handle_TopOpeBRepDS_ListNodeOfListOfInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_ListNodeOfListOfInterference; -class Handle_TopOpeBRepDS_ListNodeOfListOfInterference : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepDS_ListNodeOfListOfInterference(); - Handle_TopOpeBRepDS_ListNodeOfListOfInterference(const Handle_TopOpeBRepDS_ListNodeOfListOfInterference &aHandle); - Handle_TopOpeBRepDS_ListNodeOfListOfInterference(const TopOpeBRepDS_ListNodeOfListOfInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_ListNodeOfListOfInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_ListNodeOfListOfInterference { - TopOpeBRepDS_ListNodeOfListOfInterference* _get_reference() { - return (TopOpeBRepDS_ListNodeOfListOfInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_ListNodeOfListOfInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_ListNodeOfListOfInterference) %extend TopOpeBRepDS_ListNodeOfListOfInterference { %pythoncode { @@ -6641,51 +5735,7 @@ class TopOpeBRepDS_Marker : public MMgt_TShared { }; -%extend TopOpeBRepDS_Marker { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_Marker(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_Marker::Handle_TopOpeBRepDS_Marker %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_Marker; -class Handle_TopOpeBRepDS_Marker : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepDS_Marker(); - Handle_TopOpeBRepDS_Marker(const Handle_TopOpeBRepDS_Marker &aHandle); - Handle_TopOpeBRepDS_Marker(const TopOpeBRepDS_Marker *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_Marker DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_Marker { - TopOpeBRepDS_Marker* _get_reference() { - return (TopOpeBRepDS_Marker*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_Marker { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_Marker) %extend TopOpeBRepDS_Marker { %pythoncode { @@ -7686,51 +6736,7 @@ class TopOpeBRepDS_CurvePointInterference : public TopOpeBRepDS_Interference { }; -%extend TopOpeBRepDS_CurvePointInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_CurvePointInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_CurvePointInterference::Handle_TopOpeBRepDS_CurvePointInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_CurvePointInterference; -class Handle_TopOpeBRepDS_CurvePointInterference : public Handle_TopOpeBRepDS_Interference { - - public: - // constructors - Handle_TopOpeBRepDS_CurvePointInterference(); - Handle_TopOpeBRepDS_CurvePointInterference(const Handle_TopOpeBRepDS_CurvePointInterference &aHandle); - Handle_TopOpeBRepDS_CurvePointInterference(const TopOpeBRepDS_CurvePointInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_CurvePointInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_CurvePointInterference { - TopOpeBRepDS_CurvePointInterference* _get_reference() { - return (TopOpeBRepDS_CurvePointInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_CurvePointInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_CurvePointInterference) %extend TopOpeBRepDS_CurvePointInterference { %pythoncode { @@ -7895,51 +6901,7 @@ class TopOpeBRepDS_ShapeShapeInterference : public TopOpeBRepDS_Interference { }; -%extend TopOpeBRepDS_ShapeShapeInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_ShapeShapeInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_ShapeShapeInterference::Handle_TopOpeBRepDS_ShapeShapeInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_ShapeShapeInterference; -class Handle_TopOpeBRepDS_ShapeShapeInterference : public Handle_TopOpeBRepDS_Interference { - - public: - // constructors - Handle_TopOpeBRepDS_ShapeShapeInterference(); - Handle_TopOpeBRepDS_ShapeShapeInterference(const Handle_TopOpeBRepDS_ShapeShapeInterference &aHandle); - Handle_TopOpeBRepDS_ShapeShapeInterference(const TopOpeBRepDS_ShapeShapeInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_ShapeShapeInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_ShapeShapeInterference { - TopOpeBRepDS_ShapeShapeInterference* _get_reference() { - return (TopOpeBRepDS_ShapeShapeInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_ShapeShapeInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_ShapeShapeInterference) %extend TopOpeBRepDS_ShapeShapeInterference { %pythoncode { @@ -7974,51 +6936,7 @@ class TopOpeBRepDS_SolidSurfaceInterference : public TopOpeBRepDS_Interference { }; -%extend TopOpeBRepDS_SolidSurfaceInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_SolidSurfaceInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_SolidSurfaceInterference::Handle_TopOpeBRepDS_SolidSurfaceInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_SolidSurfaceInterference; -class Handle_TopOpeBRepDS_SolidSurfaceInterference : public Handle_TopOpeBRepDS_Interference { - - public: - // constructors - Handle_TopOpeBRepDS_SolidSurfaceInterference(); - Handle_TopOpeBRepDS_SolidSurfaceInterference(const Handle_TopOpeBRepDS_SolidSurfaceInterference &aHandle); - Handle_TopOpeBRepDS_SolidSurfaceInterference(const TopOpeBRepDS_SolidSurfaceInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_SolidSurfaceInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_SolidSurfaceInterference { - TopOpeBRepDS_SolidSurfaceInterference* _get_reference() { - return (TopOpeBRepDS_SolidSurfaceInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_SolidSurfaceInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_SolidSurfaceInterference) %extend TopOpeBRepDS_SolidSurfaceInterference { %pythoncode { @@ -8083,51 +7001,7 @@ class TopOpeBRepDS_SurfaceCurveInterference : public TopOpeBRepDS_Interference { }; -%extend TopOpeBRepDS_SurfaceCurveInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_SurfaceCurveInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_SurfaceCurveInterference::Handle_TopOpeBRepDS_SurfaceCurveInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_SurfaceCurveInterference; -class Handle_TopOpeBRepDS_SurfaceCurveInterference : public Handle_TopOpeBRepDS_Interference { - - public: - // constructors - Handle_TopOpeBRepDS_SurfaceCurveInterference(); - Handle_TopOpeBRepDS_SurfaceCurveInterference(const Handle_TopOpeBRepDS_SurfaceCurveInterference &aHandle); - Handle_TopOpeBRepDS_SurfaceCurveInterference(const TopOpeBRepDS_SurfaceCurveInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_SurfaceCurveInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_SurfaceCurveInterference { - TopOpeBRepDS_SurfaceCurveInterference* _get_reference() { - return (TopOpeBRepDS_SurfaceCurveInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_SurfaceCurveInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_SurfaceCurveInterference) %extend TopOpeBRepDS_SurfaceCurveInterference { %pythoncode { @@ -8248,51 +7122,7 @@ class TopOpeBRepDS_EdgeVertexInterference : public TopOpeBRepDS_ShapeShapeInterf }; -%extend TopOpeBRepDS_EdgeVertexInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_EdgeVertexInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_EdgeVertexInterference::Handle_TopOpeBRepDS_EdgeVertexInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_EdgeVertexInterference; -class Handle_TopOpeBRepDS_EdgeVertexInterference : public Handle_TopOpeBRepDS_ShapeShapeInterference { - - public: - // constructors - Handle_TopOpeBRepDS_EdgeVertexInterference(); - Handle_TopOpeBRepDS_EdgeVertexInterference(const Handle_TopOpeBRepDS_EdgeVertexInterference &aHandle); - Handle_TopOpeBRepDS_EdgeVertexInterference(const TopOpeBRepDS_EdgeVertexInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_EdgeVertexInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_EdgeVertexInterference { - TopOpeBRepDS_EdgeVertexInterference* _get_reference() { - return (TopOpeBRepDS_EdgeVertexInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_EdgeVertexInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_EdgeVertexInterference) %extend TopOpeBRepDS_EdgeVertexInterference { %pythoncode { @@ -8329,51 +7159,7 @@ class TopOpeBRepDS_FaceEdgeInterference : public TopOpeBRepDS_ShapeShapeInterfer }; -%extend TopOpeBRepDS_FaceEdgeInterference { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepDS_FaceEdgeInterference(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepDS_FaceEdgeInterference::Handle_TopOpeBRepDS_FaceEdgeInterference %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepDS_FaceEdgeInterference; -class Handle_TopOpeBRepDS_FaceEdgeInterference : public Handle_TopOpeBRepDS_ShapeShapeInterference { - - public: - // constructors - Handle_TopOpeBRepDS_FaceEdgeInterference(); - Handle_TopOpeBRepDS_FaceEdgeInterference(const Handle_TopOpeBRepDS_FaceEdgeInterference &aHandle); - Handle_TopOpeBRepDS_FaceEdgeInterference(const TopOpeBRepDS_FaceEdgeInterference *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepDS_FaceEdgeInterference DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepDS_FaceEdgeInterference { - TopOpeBRepDS_FaceEdgeInterference* _get_reference() { - return (TopOpeBRepDS_FaceEdgeInterference*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepDS_FaceEdgeInterference { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepDS_FaceEdgeInterference) %extend TopOpeBRepDS_FaceEdgeInterference { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopOpeBRepTool.i b/src/SWIG_files/wrapper/TopOpeBRepTool.i index b3c2188d3..e84d206c6 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepTool.i +++ b/src/SWIG_files/wrapper/TopOpeBRepTool.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define TOPOPEBREPTOOLDOCSTRING -"No docstring provided." +"This package provides services used by the TopOpeBRep +package performing topological operations on the BRep +data structure. + +" %enddef %module (package="OCC.Core", docstring=TOPOPEBREPTOOLDOCSTRING) TopOpeBRepTool @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopOpeBRepTool_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TopOpeBRepTool_ShapeClassifier * TopOpeBRepTool_PShapeClassifier; typedef BRepClass3d_SolidClassifier * TopOpeBRepTool_PSoClassif; @@ -68,6 +58,16 @@ enum TopOpeBRepTool_OutCurveType { /* end public enums declaration */ +%wrap_handle(TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF) +%wrap_handle(TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF) +%wrap_handle(TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface) +%wrap_handle(TopOpeBRepTool_HBoxTool) +%wrap_handle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox) +%wrap_handle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d) +%wrap_handle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity) +%wrap_handle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier) +%wrap_handle(TopOpeBRepTool_ListNodeOfListOfC2DF) + %rename(topopebreptool) TopOpeBRepTool; class TopOpeBRepTool { public: @@ -897,51 +897,7 @@ class TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF : public TCollectio }; -%extend TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF::Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF; -class Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF(); - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF(const Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF &aHandle); - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF(const TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF { - TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF* _get_reference() { - return (TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF) %extend TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF { %pythoncode { @@ -972,51 +928,7 @@ class TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF : public TCollection_ }; -%extend TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF::Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF; -class Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF(); - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF(const Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF &aHandle); - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF(const TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF { - TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF* _get_reference() { - return (TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF) %extend TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF { %pythoncode { @@ -1047,51 +959,7 @@ class TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface : public TCollection_MapNod }; -%extend TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface::Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface; -class Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface(); - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface(const Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface &aHandle); - Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface(const TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface { - TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface* _get_reference() { - return (TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface) %extend TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface { %pythoncode { @@ -1641,51 +1509,7 @@ class TopOpeBRepTool_HBoxTool : public MMgt_TShared { }; -%extend TopOpeBRepTool_HBoxTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_HBoxTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_HBoxTool::Handle_TopOpeBRepTool_HBoxTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_HBoxTool; -class Handle_TopOpeBRepTool_HBoxTool : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopOpeBRepTool_HBoxTool(); - Handle_TopOpeBRepTool_HBoxTool(const Handle_TopOpeBRepTool_HBoxTool &aHandle); - Handle_TopOpeBRepTool_HBoxTool(const TopOpeBRepTool_HBoxTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_HBoxTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_HBoxTool { - TopOpeBRepTool_HBoxTool* _get_reference() { - return (TopOpeBRepTool_HBoxTool*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_HBoxTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_HBoxTool) %extend TopOpeBRepTool_HBoxTool { %pythoncode { @@ -1737,51 +1561,7 @@ class TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox : public TColl }; -%extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox::Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox; -class Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox(); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox(const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox &aHandle); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox(const TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox { - TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox* _get_reference() { - return (TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox) %extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox { %pythoncode { @@ -1833,51 +1613,7 @@ class TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d : public TCo }; -%extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d::Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d; -class Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d(); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d(const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d &aHandle); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d(const TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d { - TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d* _get_reference() { - return (TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d) %extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d { %pythoncode { @@ -1929,51 +1665,7 @@ class TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity : public }; -%extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity::Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity; -class Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity(); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity(const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity &aHandle); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity(const TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity { - TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity* _get_reference() { - return (TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity) %extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity { %pythoncode { @@ -2025,51 +1717,7 @@ class TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier : publi }; -%extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier::Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier; -class Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier(); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier(const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier &aHandle); - Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier(const TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier { - TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier* _get_reference() { - return (TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier) %extend TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier { %pythoncode { @@ -2593,51 +2241,7 @@ class TopOpeBRepTool_ListNodeOfListOfC2DF : public TCollection_MapNode { }; -%extend TopOpeBRepTool_ListNodeOfListOfC2DF { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopOpeBRepTool_ListNodeOfListOfC2DF(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopOpeBRepTool_ListNodeOfListOfC2DF::Handle_TopOpeBRepTool_ListNodeOfListOfC2DF %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopOpeBRepTool_ListNodeOfListOfC2DF; -class Handle_TopOpeBRepTool_ListNodeOfListOfC2DF : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopOpeBRepTool_ListNodeOfListOfC2DF(); - Handle_TopOpeBRepTool_ListNodeOfListOfC2DF(const Handle_TopOpeBRepTool_ListNodeOfListOfC2DF &aHandle); - Handle_TopOpeBRepTool_ListNodeOfListOfC2DF(const TopOpeBRepTool_ListNodeOfListOfC2DF *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopOpeBRepTool_ListNodeOfListOfC2DF DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopOpeBRepTool_ListNodeOfListOfC2DF { - TopOpeBRepTool_ListNodeOfListOfC2DF* _get_reference() { - return (TopOpeBRepTool_ListNodeOfListOfC2DF*)$self->Access(); - } -}; - -%extend Handle_TopOpeBRepTool_ListNodeOfListOfC2DF { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopOpeBRepTool_ListNodeOfListOfC2DF) %extend TopOpeBRepTool_ListNodeOfListOfC2DF { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopTools.i b/src/SWIG_files/wrapper/TopTools.i index 2ea27cb81..7c83d3896 100644 --- a/src/SWIG_files/wrapper/TopTools.i +++ b/src/SWIG_files/wrapper/TopTools.i @@ -18,7 +18,52 @@ along with pythonOCC. If not, see . */ %define TOPTOOLSDOCSTRING -"No docstring provided." +"The TopTools package provides utilities for the +topological data structure. + +* ShapeMapHasher. Hash a Shape base on the TShape +and the Location. The Orientation is not used. + +* OrientedShapeMapHasher. Hash a Shape base on the +TShape ,the Location and the Orientation. + +* Instantiations of TCollection for Shapes : +MapOfShape +IndexedMapOfShape +DataMapOfIntegerShape +DataMapOfShapeInteger +DataMapOfShapeReal +Array1OfShape +HArray1OfShape +SequenceOfShape +HSequenceOfShape +ListOfShape +Array1OfListShape +HArray1OfListShape +DataMapOfIntegerListOfShape +DataMapOfShapeListOfShape +DataMapOfShapeListOfInteger +IndexedDataMapOfShapeShape +IndexedDataMapOfShapeListOfShape +DataMapOfShapeShape +IndexedMapOfOrientedShape +DataMapOfShapeSequenceOfShape +IndexedDataMapOfShapeAddress +DataMapOfOrientedShapeShape + +* LocationSet : to write sets of locations. + +* ShapeSet : to writes sets of TShapes. + +Package Methods : + +Dump : To dump the topology of a Shape. + + +- Level : Public +All methods of all classes will be public. + +" %enddef %module (package="OCC.Core", docstring=TOPTOOLSDOCSTRING) TopTools @@ -34,25 +79,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopTools_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TopTools_LocationSet * TopTools_LocationSetPtr; /* end typedefs declaration */ @@ -60,6 +91,30 @@ typedef TopTools_LocationSet * TopTools_LocationSetPtr; /* public enums */ /* end public enums declaration */ +%wrap_handle(TopTools_DataMapNodeOfDataMapOfIntegerListOfShape) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfIntegerShape) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfOrientedShapeShape) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfShapeInteger) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfShapeListOfInteger) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfShapeListOfShape) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfShapeReal) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape) +%wrap_handle(TopTools_DataMapNodeOfDataMapOfShapeShape) +%wrap_handle(TopTools_HArray1OfListOfShape) +%wrap_handle(TopTools_HArray1OfShape) +%wrap_handle(TopTools_HArray2OfShape) +%wrap_handle(TopTools_HSequenceOfShape) +%wrap_handle(TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress) +%wrap_handle(TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape) +%wrap_handle(TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape) +%wrap_handle(TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape) +%wrap_handle(TopTools_IndexedMapNodeOfIndexedMapOfShape) +%wrap_handle(TopTools_ListNodeOfListOfShape) +%wrap_handle(TopTools_SequenceNodeOfSequenceOfShape) +%wrap_handle(TopTools_StdMapNodeOfMapOfOrientedShape) +%wrap_handle(TopTools_StdMapNodeOfMapOfShape) + %rename(toptools) TopTools; class TopTools { public: @@ -755,51 +810,7 @@ class TopTools_DataMapNodeOfDataMapOfIntegerListOfShape : public TCollection_Map }; -%extend TopTools_DataMapNodeOfDataMapOfIntegerListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape::Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape; -class Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape(); - Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape(const Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape(const TopTools_DataMapNodeOfDataMapOfIntegerListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape { - TopTools_DataMapNodeOfDataMapOfIntegerListOfShape* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfIntegerListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfIntegerListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfIntegerListOfShape) %extend TopTools_DataMapNodeOfDataMapOfIntegerListOfShape { %pythoncode { @@ -839,51 +850,7 @@ class TopTools_DataMapNodeOfDataMapOfIntegerShape : public TCollection_MapNode { }; -%extend TopTools_DataMapNodeOfDataMapOfIntegerShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape::Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape; -class Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape(); - Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape(const Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape(const TopTools_DataMapNodeOfDataMapOfIntegerShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape { - TopTools_DataMapNodeOfDataMapOfIntegerShape* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfIntegerShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfIntegerShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfIntegerShape) %extend TopTools_DataMapNodeOfDataMapOfIntegerShape { %pythoncode { @@ -923,51 +890,7 @@ class TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger : public TCollection_M }; -%extend TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger::Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger; -class Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger(); - Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger(const Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger(const TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger { - TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger) %extend TopTools_DataMapNodeOfDataMapOfOrientedShapeInteger { %pythoncode { @@ -998,51 +921,7 @@ class TopTools_DataMapNodeOfDataMapOfOrientedShapeShape : public TCollection_Map }; -%extend TopTools_DataMapNodeOfDataMapOfOrientedShapeShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape::Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape; -class Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape(); - Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape(const Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape(const TopTools_DataMapNodeOfDataMapOfOrientedShapeShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape { - TopTools_DataMapNodeOfDataMapOfOrientedShapeShape* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfOrientedShapeShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfOrientedShapeShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfOrientedShapeShape) %extend TopTools_DataMapNodeOfDataMapOfOrientedShapeShape { %pythoncode { @@ -1082,51 +961,7 @@ class TopTools_DataMapNodeOfDataMapOfShapeInteger : public TCollection_MapNode { }; -%extend TopTools_DataMapNodeOfDataMapOfShapeInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger::Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger; -class Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger(); - Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger(const Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger(const TopTools_DataMapNodeOfDataMapOfShapeInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger { - TopTools_DataMapNodeOfDataMapOfShapeInteger* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfShapeInteger*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfShapeInteger) %extend TopTools_DataMapNodeOfDataMapOfShapeInteger { %pythoncode { @@ -1157,51 +992,7 @@ class TopTools_DataMapNodeOfDataMapOfShapeListOfInteger : public TCollection_Map }; -%extend TopTools_DataMapNodeOfDataMapOfShapeListOfInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger::Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger; -class Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger(); - Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger(const Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger(const TopTools_DataMapNodeOfDataMapOfShapeListOfInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger { - TopTools_DataMapNodeOfDataMapOfShapeListOfInteger* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfShapeListOfInteger*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfShapeListOfInteger) %extend TopTools_DataMapNodeOfDataMapOfShapeListOfInteger { %pythoncode { @@ -1232,51 +1023,7 @@ class TopTools_DataMapNodeOfDataMapOfShapeListOfShape : public TCollection_MapNo }; -%extend TopTools_DataMapNodeOfDataMapOfShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape::Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape; -class Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape(); - Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape(const Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape(const TopTools_DataMapNodeOfDataMapOfShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape { - TopTools_DataMapNodeOfDataMapOfShapeListOfShape* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfShapeListOfShape) %extend TopTools_DataMapNodeOfDataMapOfShapeListOfShape { %pythoncode { @@ -1316,51 +1063,7 @@ class TopTools_DataMapNodeOfDataMapOfShapeReal : public TCollection_MapNode { }; -%extend TopTools_DataMapNodeOfDataMapOfShapeReal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfShapeReal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfShapeReal::Handle_TopTools_DataMapNodeOfDataMapOfShapeReal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfShapeReal; -class Handle_TopTools_DataMapNodeOfDataMapOfShapeReal : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfShapeReal(); - Handle_TopTools_DataMapNodeOfDataMapOfShapeReal(const Handle_TopTools_DataMapNodeOfDataMapOfShapeReal &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfShapeReal(const TopTools_DataMapNodeOfDataMapOfShapeReal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfShapeReal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeReal { - TopTools_DataMapNodeOfDataMapOfShapeReal* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfShapeReal*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeReal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfShapeReal) %extend TopTools_DataMapNodeOfDataMapOfShapeReal { %pythoncode { @@ -1391,51 +1094,7 @@ class TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape : public TCollection_M }; -%extend TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape::Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape; -class Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape(); - Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape(const Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape(const TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape { - TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape) %extend TopTools_DataMapNodeOfDataMapOfShapeSequenceOfShape { %pythoncode { @@ -1466,51 +1125,7 @@ class TopTools_DataMapNodeOfDataMapOfShapeShape : public TCollection_MapNode { }; -%extend TopTools_DataMapNodeOfDataMapOfShapeShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_DataMapNodeOfDataMapOfShapeShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_DataMapNodeOfDataMapOfShapeShape::Handle_TopTools_DataMapNodeOfDataMapOfShapeShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_DataMapNodeOfDataMapOfShapeShape; -class Handle_TopTools_DataMapNodeOfDataMapOfShapeShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_DataMapNodeOfDataMapOfShapeShape(); - Handle_TopTools_DataMapNodeOfDataMapOfShapeShape(const Handle_TopTools_DataMapNodeOfDataMapOfShapeShape &aHandle); - Handle_TopTools_DataMapNodeOfDataMapOfShapeShape(const TopTools_DataMapNodeOfDataMapOfShapeShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_DataMapNodeOfDataMapOfShapeShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeShape { - TopTools_DataMapNodeOfDataMapOfShapeShape* _get_reference() { - return (TopTools_DataMapNodeOfDataMapOfShapeShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_DataMapNodeOfDataMapOfShapeShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_DataMapNodeOfDataMapOfShapeShape) %extend TopTools_DataMapNodeOfDataMapOfShapeShape { %pythoncode { @@ -2417,51 +2032,7 @@ class TopTools_HArray1OfListOfShape : public MMgt_TShared { }; -%extend TopTools_HArray1OfListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_HArray1OfListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_HArray1OfListOfShape::Handle_TopTools_HArray1OfListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_HArray1OfListOfShape; -class Handle_TopTools_HArray1OfListOfShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopTools_HArray1OfListOfShape(); - Handle_TopTools_HArray1OfListOfShape(const Handle_TopTools_HArray1OfListOfShape &aHandle); - Handle_TopTools_HArray1OfListOfShape(const TopTools_HArray1OfListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_HArray1OfListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_HArray1OfListOfShape { - TopTools_HArray1OfListOfShape* _get_reference() { - return (TopTools_HArray1OfListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_HArray1OfListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_HArray1OfListOfShape) %extend TopTools_HArray1OfListOfShape { %pythoncode { @@ -2538,51 +2109,7 @@ class TopTools_HArray1OfShape : public MMgt_TShared { }; -%extend TopTools_HArray1OfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_HArray1OfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_HArray1OfShape::Handle_TopTools_HArray1OfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_HArray1OfShape; -class Handle_TopTools_HArray1OfShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopTools_HArray1OfShape(); - Handle_TopTools_HArray1OfShape(const Handle_TopTools_HArray1OfShape &aHandle); - Handle_TopTools_HArray1OfShape(const TopTools_HArray1OfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_HArray1OfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_HArray1OfShape { - TopTools_HArray1OfShape* _get_reference() { - return (TopTools_HArray1OfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_HArray1OfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_HArray1OfShape) %extend TopTools_HArray1OfShape { %pythoncode { @@ -2685,51 +2212,7 @@ class TopTools_HArray2OfShape : public MMgt_TShared { }; -%extend TopTools_HArray2OfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_HArray2OfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_HArray2OfShape::Handle_TopTools_HArray2OfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_HArray2OfShape; -class Handle_TopTools_HArray2OfShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopTools_HArray2OfShape(); - Handle_TopTools_HArray2OfShape(const Handle_TopTools_HArray2OfShape &aHandle); - Handle_TopTools_HArray2OfShape(const TopTools_HArray2OfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_HArray2OfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_HArray2OfShape { - TopTools_HArray2OfShape* _get_reference() { - return (TopTools_HArray2OfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_HArray2OfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_HArray2OfShape) %extend TopTools_HArray2OfShape { %pythoncode { @@ -2874,51 +2357,7 @@ class TopTools_HSequenceOfShape : public MMgt_TShared { }; -%extend TopTools_HSequenceOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_HSequenceOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_HSequenceOfShape::Handle_TopTools_HSequenceOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_HSequenceOfShape; -class Handle_TopTools_HSequenceOfShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopTools_HSequenceOfShape(); - Handle_TopTools_HSequenceOfShape(const Handle_TopTools_HSequenceOfShape &aHandle); - Handle_TopTools_HSequenceOfShape(const TopTools_HSequenceOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_HSequenceOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_HSequenceOfShape { - TopTools_HSequenceOfShape* _get_reference() { - return (TopTools_HSequenceOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_HSequenceOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_HSequenceOfShape) %extend TopTools_HSequenceOfShape { %pythoncode { @@ -2970,51 +2409,7 @@ class TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress : public TCollec }; -%extend TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress::Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress; -class Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress(); - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress(const Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress &aHandle); - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress(const TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress { - TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress* _get_reference() { - return (TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress*)$self->Access(); - } -}; - -%extend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress) %extend TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeAddress { %pythoncode { @@ -3066,51 +2461,7 @@ class TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape : public TCo }; -%extend TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape::Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape; -class Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape(); - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape(const Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape &aHandle); - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape(const TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape { - TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape* _get_reference() { - return (TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape) %extend TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeListOfShape { %pythoncode { @@ -3162,51 +2513,7 @@ class TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape : public TCollecti }; -%extend TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape::Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape; -class Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape(); - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape(const Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape &aHandle); - Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape(const TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape { - TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape* _get_reference() { - return (TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape) %extend TopTools_IndexedDataMapNodeOfIndexedDataMapOfShapeShape { %pythoncode { @@ -3597,51 +2904,7 @@ class TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape : public TCollection_Ma }; -%extend TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape::Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape; -class Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape(); - Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape(const Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape &aHandle); - Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape(const TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape { - TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape* _get_reference() { - return (TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape) %extend TopTools_IndexedMapNodeOfIndexedMapOfOrientedShape { %pythoncode { @@ -3687,51 +2950,7 @@ class TopTools_IndexedMapNodeOfIndexedMapOfShape : public TCollection_MapNode { }; -%extend TopTools_IndexedMapNodeOfIndexedMapOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape::Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape; -class Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape(); - Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape(const Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape &aHandle); - Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape(const TopTools_IndexedMapNodeOfIndexedMapOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape { - TopTools_IndexedMapNodeOfIndexedMapOfShape* _get_reference() { - return (TopTools_IndexedMapNodeOfIndexedMapOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_IndexedMapNodeOfIndexedMapOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_IndexedMapNodeOfIndexedMapOfShape) %extend TopTools_IndexedMapNodeOfIndexedMapOfShape { %pythoncode { @@ -3957,51 +3176,7 @@ class TopTools_ListNodeOfListOfShape : public TCollection_MapNode { }; -%extend TopTools_ListNodeOfListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_ListNodeOfListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_ListNodeOfListOfShape::Handle_TopTools_ListNodeOfListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_ListNodeOfListOfShape; -class Handle_TopTools_ListNodeOfListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_ListNodeOfListOfShape(); - Handle_TopTools_ListNodeOfListOfShape(const Handle_TopTools_ListNodeOfListOfShape &aHandle); - Handle_TopTools_ListNodeOfListOfShape(const TopTools_ListNodeOfListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_ListNodeOfListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_ListNodeOfListOfShape { - TopTools_ListNodeOfListOfShape* _get_reference() { - return (TopTools_ListNodeOfListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_ListNodeOfListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_ListNodeOfListOfShape) %extend TopTools_ListNodeOfListOfShape { %pythoncode { @@ -4510,51 +3685,7 @@ class TopTools_SequenceNodeOfSequenceOfShape : public TCollection_SeqNode { }; -%extend TopTools_SequenceNodeOfSequenceOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_SequenceNodeOfSequenceOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_SequenceNodeOfSequenceOfShape::Handle_TopTools_SequenceNodeOfSequenceOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_SequenceNodeOfSequenceOfShape; -class Handle_TopTools_SequenceNodeOfSequenceOfShape : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TopTools_SequenceNodeOfSequenceOfShape(); - Handle_TopTools_SequenceNodeOfSequenceOfShape(const Handle_TopTools_SequenceNodeOfSequenceOfShape &aHandle); - Handle_TopTools_SequenceNodeOfSequenceOfShape(const TopTools_SequenceNodeOfSequenceOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_SequenceNodeOfSequenceOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_SequenceNodeOfSequenceOfShape { - TopTools_SequenceNodeOfSequenceOfShape* _get_reference() { - return (TopTools_SequenceNodeOfSequenceOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_SequenceNodeOfSequenceOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_SequenceNodeOfSequenceOfShape) %extend TopTools_SequenceNodeOfSequenceOfShape { %pythoncode { @@ -4991,51 +4122,7 @@ class TopTools_StdMapNodeOfMapOfOrientedShape : public TCollection_MapNode { }; -%extend TopTools_StdMapNodeOfMapOfOrientedShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_StdMapNodeOfMapOfOrientedShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_StdMapNodeOfMapOfOrientedShape::Handle_TopTools_StdMapNodeOfMapOfOrientedShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_StdMapNodeOfMapOfOrientedShape; -class Handle_TopTools_StdMapNodeOfMapOfOrientedShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_StdMapNodeOfMapOfOrientedShape(); - Handle_TopTools_StdMapNodeOfMapOfOrientedShape(const Handle_TopTools_StdMapNodeOfMapOfOrientedShape &aHandle); - Handle_TopTools_StdMapNodeOfMapOfOrientedShape(const TopTools_StdMapNodeOfMapOfOrientedShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_StdMapNodeOfMapOfOrientedShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_StdMapNodeOfMapOfOrientedShape { - TopTools_StdMapNodeOfMapOfOrientedShape* _get_reference() { - return (TopTools_StdMapNodeOfMapOfOrientedShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_StdMapNodeOfMapOfOrientedShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_StdMapNodeOfMapOfOrientedShape) %extend TopTools_StdMapNodeOfMapOfOrientedShape { %pythoncode { @@ -5060,51 +4147,7 @@ class TopTools_StdMapNodeOfMapOfShape : public TCollection_MapNode { }; -%extend TopTools_StdMapNodeOfMapOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopTools_StdMapNodeOfMapOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopTools_StdMapNodeOfMapOfShape::Handle_TopTools_StdMapNodeOfMapOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopTools_StdMapNodeOfMapOfShape; -class Handle_TopTools_StdMapNodeOfMapOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopTools_StdMapNodeOfMapOfShape(); - Handle_TopTools_StdMapNodeOfMapOfShape(const Handle_TopTools_StdMapNodeOfMapOfShape &aHandle); - Handle_TopTools_StdMapNodeOfMapOfShape(const TopTools_StdMapNodeOfMapOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopTools_StdMapNodeOfMapOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopTools_StdMapNodeOfMapOfShape { - TopTools_StdMapNodeOfMapOfShape* _get_reference() { - return (TopTools_StdMapNodeOfMapOfShape*)$self->Access(); - } -}; - -%extend Handle_TopTools_StdMapNodeOfMapOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopTools_StdMapNodeOfMapOfShape) %extend TopTools_StdMapNodeOfMapOfShape { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopTrans.i b/src/SWIG_files/wrapper/TopTrans.i index ec81f24d7..a8020f9f2 100644 --- a/src/SWIG_files/wrapper/TopTrans.i +++ b/src/SWIG_files/wrapper/TopTrans.i @@ -18,7 +18,42 @@ along with pythonOCC. If not, see . */ %define TOPTRANSDOCSTRING -"No docstring provided." +"This package provides algorithms to compute +complex transitions. A transition is the status of +geometry near the boundary of a Shape. An example +is the intersection of a curve and a surface +enclosing a solid , the transition tells if the +parts of the curve just before and just after the +intersection are inside, outside or on the +boundary of the solid. + +The difficulty with transitions arise when dealing +with trimmed geometries like edges and faces. When +the geometric intersections are inside the trimmed +geometry the transition is usually computed by the +intersection algorithms as the trimming can be +safely ignored. If the intersection falls on the +trimming boundaries one must consider the +neighbouring entities. Consider as an example the +intersection of a curve and a solid, if the +intersection falls on an edge of the solid it does +not falls inside the two faces adjacent to the +edge, a complex transition occurs. + +This package provides two classes : + +* CurveTransition is used to compute complex +transitions with an other curve. + +* SurfaceTransition is used to compute complex +transitions in 3D space. + +The curves and surfaces are given by a first or +second order approximation around the intersection +point. For a curve, the tangent vector or the +osculating circle. For a surface the normal vector +or the osculating quadric. +" %enddef %module (package="OCC.Core", docstring=TOPTRANSDOCSTRING) TopTrans @@ -34,31 +69,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopTrans_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor TopTrans_Array2OfOrientation; class TopTrans_Array2OfOrientation { public: diff --git a/src/SWIG_files/wrapper/TopoDS.i b/src/SWIG_files/wrapper/TopoDS.i index 2c2233828..a1c4c83bb 100644 --- a/src/SWIG_files/wrapper/TopoDS.i +++ b/src/SWIG_files/wrapper/TopoDS.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define TOPODSDOCSTRING -"No docstring provided." +"Provides methods to cast objects of class +TopoDS_Shape to be onjects of more specialized +sub-classes. Types are verified, thus in the example +below, the first two blocks are correct but the third is +rejected by the compiler. +" %enddef %module (package="OCC.Core", docstring=TOPODSDOCSTRING) TopoDS @@ -34,31 +39,29 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopoDS_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TopoDS_HShape) +%wrap_handle(TopoDS_ListNodeOfListOfShape) +%wrap_handle(TopoDS_TShape) +%wrap_handle(TopoDS_TCompSolid) +%wrap_handle(TopoDS_TCompound) +%wrap_handle(TopoDS_TEdge) +%wrap_handle(TopoDS_TFace) +%wrap_handle(TopoDS_TShell) +%wrap_handle(TopoDS_TSolid) +%wrap_handle(TopoDS_TVertex) +%wrap_handle(TopoDS_TWire) + %rename(topods) TopoDS; class TopoDS { public: @@ -292,51 +295,7 @@ class TopoDS_HShape : public MMgt_TShared { }; -%extend TopoDS_HShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_HShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_HShape::Handle_TopoDS_HShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_HShape; -class Handle_TopoDS_HShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopoDS_HShape(); - Handle_TopoDS_HShape(const Handle_TopoDS_HShape &aHandle); - Handle_TopoDS_HShape(const TopoDS_HShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_HShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_HShape { - TopoDS_HShape* _get_reference() { - return (TopoDS_HShape*)$self->Access(); - } -}; - -%extend Handle_TopoDS_HShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_HShape) %extend TopoDS_HShape { %pythoncode { @@ -459,51 +418,7 @@ class TopoDS_ListNodeOfListOfShape : public TCollection_MapNode { }; -%extend TopoDS_ListNodeOfListOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_ListNodeOfListOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_ListNodeOfListOfShape::Handle_TopoDS_ListNodeOfListOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_ListNodeOfListOfShape; -class Handle_TopoDS_ListNodeOfListOfShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_TopoDS_ListNodeOfListOfShape(); - Handle_TopoDS_ListNodeOfListOfShape(const Handle_TopoDS_ListNodeOfListOfShape &aHandle); - Handle_TopoDS_ListNodeOfListOfShape(const TopoDS_ListNodeOfListOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_ListNodeOfListOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_ListNodeOfListOfShape { - TopoDS_ListNodeOfListOfShape* _get_reference() { - return (TopoDS_ListNodeOfListOfShape*)$self->Access(); - } -}; - -%extend Handle_TopoDS_ListNodeOfListOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_ListNodeOfListOfShape) %extend TopoDS_ListNodeOfListOfShape { %pythoncode { @@ -1140,51 +1055,7 @@ class TopoDS_TShape : public MMgt_TShared { }; -%extend TopoDS_TShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TShape::Handle_TopoDS_TShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TShape; -class Handle_TopoDS_TShape : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TopoDS_TShape(); - Handle_TopoDS_TShape(const Handle_TopoDS_TShape &aHandle); - Handle_TopoDS_TShape(const TopoDS_TShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TShape { - TopoDS_TShape* _get_reference() { - return (TopoDS_TShape*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TShape) %extend TopoDS_TShape { %pythoncode { @@ -1317,51 +1188,7 @@ class TopoDS_TCompSolid : public TopoDS_TShape { }; -%extend TopoDS_TCompSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TCompSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TCompSolid::Handle_TopoDS_TCompSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TCompSolid; -class Handle_TopoDS_TCompSolid : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TCompSolid(); - Handle_TopoDS_TCompSolid(const Handle_TopoDS_TCompSolid &aHandle); - Handle_TopoDS_TCompSolid(const TopoDS_TCompSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TCompSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TCompSolid { - TopoDS_TCompSolid* _get_reference() { - return (TopoDS_TCompSolid*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TCompSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TCompSolid) %extend TopoDS_TCompSolid { %pythoncode { @@ -1392,51 +1219,7 @@ class TopoDS_TCompound : public TopoDS_TShape { }; -%extend TopoDS_TCompound { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TCompound(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TCompound::Handle_TopoDS_TCompound %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TCompound; -class Handle_TopoDS_TCompound : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TCompound(); - Handle_TopoDS_TCompound(const Handle_TopoDS_TCompound &aHandle); - Handle_TopoDS_TCompound(const TopoDS_TCompound *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TCompound DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TCompound { - TopoDS_TCompound* _get_reference() { - return (TopoDS_TCompound*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TCompound { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TCompound) %extend TopoDS_TCompound { %pythoncode { @@ -1455,51 +1238,7 @@ class TopoDS_TEdge : public TopoDS_TShape { }; -%extend TopoDS_TEdge { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TEdge(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TEdge::Handle_TopoDS_TEdge %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TEdge; -class Handle_TopoDS_TEdge : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TEdge(); - Handle_TopoDS_TEdge(const Handle_TopoDS_TEdge &aHandle); - Handle_TopoDS_TEdge(const TopoDS_TEdge *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TEdge DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TEdge { - TopoDS_TEdge* _get_reference() { - return (TopoDS_TEdge*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TEdge { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TEdge) %extend TopoDS_TEdge { %pythoncode { @@ -1530,51 +1269,7 @@ class TopoDS_TFace : public TopoDS_TShape { }; -%extend TopoDS_TFace { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TFace(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TFace::Handle_TopoDS_TFace %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TFace; -class Handle_TopoDS_TFace : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TFace(); - Handle_TopoDS_TFace(const Handle_TopoDS_TFace &aHandle); - Handle_TopoDS_TFace(const TopoDS_TFace *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TFace DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TFace { - TopoDS_TFace* _get_reference() { - return (TopoDS_TFace*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TFace { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TFace) %extend TopoDS_TFace { %pythoncode { @@ -1605,51 +1300,7 @@ class TopoDS_TShell : public TopoDS_TShape { }; -%extend TopoDS_TShell { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TShell(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TShell::Handle_TopoDS_TShell %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TShell; -class Handle_TopoDS_TShell : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TShell(); - Handle_TopoDS_TShell(const Handle_TopoDS_TShell &aHandle); - Handle_TopoDS_TShell(const TopoDS_TShell *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TShell DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TShell { - TopoDS_TShell* _get_reference() { - return (TopoDS_TShell*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TShell { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TShell) %extend TopoDS_TShell { %pythoncode { @@ -1680,51 +1331,7 @@ class TopoDS_TSolid : public TopoDS_TShape { }; -%extend TopoDS_TSolid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TSolid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TSolid::Handle_TopoDS_TSolid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TSolid; -class Handle_TopoDS_TSolid : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TSolid(); - Handle_TopoDS_TSolid(const Handle_TopoDS_TSolid &aHandle); - Handle_TopoDS_TSolid(const TopoDS_TSolid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TSolid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TSolid { - TopoDS_TSolid* _get_reference() { - return (TopoDS_TSolid*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TSolid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TSolid) %extend TopoDS_TSolid { %pythoncode { @@ -1743,51 +1350,7 @@ class TopoDS_TVertex : public TopoDS_TShape { }; -%extend TopoDS_TVertex { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TVertex(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TVertex::Handle_TopoDS_TVertex %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TVertex; -class Handle_TopoDS_TVertex : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TVertex(); - Handle_TopoDS_TVertex(const Handle_TopoDS_TVertex &aHandle); - Handle_TopoDS_TVertex(const TopoDS_TVertex *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TVertex DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TVertex { - TopoDS_TVertex* _get_reference() { - return (TopoDS_TVertex*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TVertex { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TVertex) %extend TopoDS_TVertex { %pythoncode { @@ -1818,51 +1381,7 @@ class TopoDS_TWire : public TopoDS_TShape { }; -%extend TopoDS_TWire { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TopoDS_TWire(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TopoDS_TWire::Handle_TopoDS_TWire %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TopoDS_TWire; -class Handle_TopoDS_TWire : public Handle_TopoDS_TShape { - - public: - // constructors - Handle_TopoDS_TWire(); - Handle_TopoDS_TWire(const Handle_TopoDS_TWire &aHandle); - Handle_TopoDS_TWire(const TopoDS_TWire *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TopoDS_TWire DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TopoDS_TWire { - TopoDS_TWire* _get_reference() { - return (TopoDS_TWire*)$self->Access(); - } -}; - -%extend Handle_TopoDS_TWire { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TopoDS_TWire) %extend TopoDS_TWire { %pythoncode { diff --git a/src/SWIG_files/wrapper/TopoDSToStep.i b/src/SWIG_files/wrapper/TopoDSToStep.i index 23211928f..11dfad2d8 100644 --- a/src/SWIG_files/wrapper/TopoDSToStep.i +++ b/src/SWIG_files/wrapper/TopoDSToStep.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define TOPODSTOSTEPDOCSTRING -"No docstring provided." +"This package implements the mapping between CAS.CAD +Shape representation and AP214 Shape Representation. +The target schema is pms_c4 (a subset of AP214) + +How to use this Package : + +Entry point are context dependent. It can be : +MakeManifoldSolidBrep +MakeBrepWithVoids +MakeFacetedBrep +MakeFacetedBrepAndBrepWithVoids +MakeShellBasedSurfaceModel +Each of these classes call the Builder +The class tool centralizes some common informations. +" %enddef %module (package="OCC.Core", docstring=TOPODSTOSTEPDOCSTRING) TopoDSToStep @@ -34,25 +48,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TopoDSToStep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -96,6 +96,7 @@ enum TopoDSToStep_FacetedError { /* end public enums declaration */ + %rename(topodstostep) TopoDSToStep; class TopoDSToStep { public: diff --git a/src/SWIG_files/wrapper/TopoDSToStep_headers.i b/src/SWIG_files/wrapper/TopoDSToStep_headers.i index 9e917c833..290caae35 100644 --- a/src/SWIG_files/wrapper/TopoDSToStep_headers.i +++ b/src/SWIG_files/wrapper/TopoDSToStep_headers.i @@ -57,6 +57,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -846,6 +890,12 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include #include #include #include @@ -1088,6 +1138,7 @@ along with pythonOCC. If not, see . #include %}; %import TCollection.i +%import Transfer.i %import TopoDS.i %import Standard.i %import StepShape.i diff --git a/src/SWIG_files/wrapper/Transfer.i b/src/SWIG_files/wrapper/Transfer.i index 93fc2aa77..89f6d9707 100644 --- a/src/SWIG_files/wrapper/Transfer.i +++ b/src/SWIG_files/wrapper/Transfer.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define TRANSFERDOCSTRING -"-Purpose : Defines general Transfer engine, which provides tools andworkframe for all kinds of file (non-direct) Interfaces.Works on the basis of data provided by package Interface(especially InterfaceModel)." +"-Purpose : Defines general Transfer engine, which provides tools and +workframe for all kinds of file (non-direct) Interfaces. +Works on the basis of data provided by package Interface +(especially InterfaceModel). +" %enddef %module (package="OCC.Core", docstring=TRANSFERDOCSTRING) Transfer @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Transfer_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -80,6 +70,34 @@ enum Transfer_StatusResult { /* end public enums declaration */ +%wrap_handle(Transfer_ActorOfProcessForFinder) +%wrap_handle(Transfer_ActorOfProcessForTransient) +%wrap_handle(Transfer_Binder) +%wrap_handle(Transfer_DispatchControl) +%wrap_handle(Transfer_Finder) +%wrap_handle(Transfer_HSequenceOfBinder) +%wrap_handle(Transfer_HSequenceOfFinder) +%wrap_handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder) +%wrap_handle(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient) +%wrap_handle(Transfer_MapContainer) +%wrap_handle(Transfer_ProcessForFinder) +%wrap_handle(Transfer_ProcessForTransient) +%wrap_handle(Transfer_ResultFromModel) +%wrap_handle(Transfer_ResultFromTransient) +%wrap_handle(Transfer_SequenceNodeOfSequenceOfBinder) +%wrap_handle(Transfer_SequenceNodeOfSequenceOfFinder) +%wrap_handle(Transfer_ActorOfFinderProcess) +%wrap_handle(Transfer_ActorOfTransientProcess) +%wrap_handle(Transfer_FinderProcess) +%wrap_handle(Transfer_MultipleBinder) +%wrap_handle(Transfer_SimpleBinderOfTransient) +%wrap_handle(Transfer_TransientListBinder) +%wrap_handle(Transfer_TransientMapper) +%wrap_handle(Transfer_TransientProcess) +%wrap_handle(Transfer_VoidBinder) +%wrap_handle(Transfer_ActorDispatch) +%wrap_handle(Transfer_BinderOfTransientInteger) + %nodefaultctor Transfer_ActorOfProcessForFinder; class Transfer_ActorOfProcessForFinder : public MMgt_TShared { public: @@ -134,51 +152,7 @@ class Transfer_ActorOfProcessForFinder : public MMgt_TShared { }; -%extend Transfer_ActorOfProcessForFinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ActorOfProcessForFinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ActorOfProcessForFinder::Handle_Transfer_ActorOfProcessForFinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ActorOfProcessForFinder; -class Handle_Transfer_ActorOfProcessForFinder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_ActorOfProcessForFinder(); - Handle_Transfer_ActorOfProcessForFinder(const Handle_Transfer_ActorOfProcessForFinder &aHandle); - Handle_Transfer_ActorOfProcessForFinder(const Transfer_ActorOfProcessForFinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ActorOfProcessForFinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ActorOfProcessForFinder { - Transfer_ActorOfProcessForFinder* _get_reference() { - return (Transfer_ActorOfProcessForFinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_ActorOfProcessForFinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ActorOfProcessForFinder) %extend Transfer_ActorOfProcessForFinder { %pythoncode { @@ -239,51 +213,7 @@ class Transfer_ActorOfProcessForTransient : public MMgt_TShared { }; -%extend Transfer_ActorOfProcessForTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ActorOfProcessForTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ActorOfProcessForTransient::Handle_Transfer_ActorOfProcessForTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ActorOfProcessForTransient; -class Handle_Transfer_ActorOfProcessForTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_ActorOfProcessForTransient(); - Handle_Transfer_ActorOfProcessForTransient(const Handle_Transfer_ActorOfProcessForTransient &aHandle); - Handle_Transfer_ActorOfProcessForTransient(const Transfer_ActorOfProcessForTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ActorOfProcessForTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ActorOfProcessForTransient { - Transfer_ActorOfProcessForTransient* _get_reference() { - return (Transfer_ActorOfProcessForTransient*)$self->Access(); - } -}; - -%extend Handle_Transfer_ActorOfProcessForTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ActorOfProcessForTransient) %extend Transfer_ActorOfProcessForTransient { %pythoncode { @@ -400,51 +330,7 @@ class Transfer_Binder : public MMgt_TShared { }; -%extend Transfer_Binder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_Binder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_Binder::Handle_Transfer_Binder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_Binder; -class Handle_Transfer_Binder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_Binder(); - Handle_Transfer_Binder(const Handle_Transfer_Binder &aHandle); - Handle_Transfer_Binder(const Transfer_Binder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_Binder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_Binder { - Transfer_Binder* _get_reference() { - return (Transfer_Binder*)$self->Access(); - } -}; - -%extend Handle_Transfer_Binder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_Binder) %extend Transfer_Binder { %pythoncode { @@ -531,51 +417,7 @@ class Transfer_DispatchControl : public Interface_CopyControl { }; -%extend Transfer_DispatchControl { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_DispatchControl(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_DispatchControl::Handle_Transfer_DispatchControl %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_DispatchControl; -class Handle_Transfer_DispatchControl : public Handle_Interface_CopyControl { - - public: - // constructors - Handle_Transfer_DispatchControl(); - Handle_Transfer_DispatchControl(const Handle_Transfer_DispatchControl &aHandle); - Handle_Transfer_DispatchControl(const Transfer_DispatchControl *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_DispatchControl DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_DispatchControl { - Transfer_DispatchControl* _get_reference() { - return (Transfer_DispatchControl*)$self->Access(); - } -}; - -%extend Handle_Transfer_DispatchControl { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_DispatchControl) %extend Transfer_DispatchControl { %pythoncode { @@ -800,51 +642,7 @@ class Transfer_Finder : public MMgt_TShared { }; -%extend Transfer_Finder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_Finder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_Finder::Handle_Transfer_Finder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_Finder; -class Handle_Transfer_Finder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_Finder(); - Handle_Transfer_Finder(const Handle_Transfer_Finder &aHandle); - Handle_Transfer_Finder(const Transfer_Finder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_Finder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_Finder { - Transfer_Finder* _get_reference() { - return (Transfer_Finder*)$self->Access(); - } -}; - -%extend Handle_Transfer_Finder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_Finder) %extend Transfer_Finder { %pythoncode { @@ -989,51 +787,7 @@ class Transfer_HSequenceOfBinder : public MMgt_TShared { }; -%extend Transfer_HSequenceOfBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_HSequenceOfBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_HSequenceOfBinder::Handle_Transfer_HSequenceOfBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_HSequenceOfBinder; -class Handle_Transfer_HSequenceOfBinder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_HSequenceOfBinder(); - Handle_Transfer_HSequenceOfBinder(const Handle_Transfer_HSequenceOfBinder &aHandle); - Handle_Transfer_HSequenceOfBinder(const Transfer_HSequenceOfBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_HSequenceOfBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_HSequenceOfBinder { - Transfer_HSequenceOfBinder* _get_reference() { - return (Transfer_HSequenceOfBinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_HSequenceOfBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_HSequenceOfBinder) %extend Transfer_HSequenceOfBinder { %pythoncode { @@ -1178,51 +932,7 @@ class Transfer_HSequenceOfFinder : public MMgt_TShared { }; -%extend Transfer_HSequenceOfFinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_HSequenceOfFinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_HSequenceOfFinder::Handle_Transfer_HSequenceOfFinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_HSequenceOfFinder; -class Handle_Transfer_HSequenceOfFinder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_HSequenceOfFinder(); - Handle_Transfer_HSequenceOfFinder(const Handle_Transfer_HSequenceOfFinder &aHandle); - Handle_Transfer_HSequenceOfFinder(const Transfer_HSequenceOfFinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_HSequenceOfFinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_HSequenceOfFinder { - Transfer_HSequenceOfFinder* _get_reference() { - return (Transfer_HSequenceOfFinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_HSequenceOfFinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_HSequenceOfFinder) %extend Transfer_HSequenceOfFinder { %pythoncode { @@ -1274,51 +984,7 @@ class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder : public TColle }; -%extend Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder::Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder; -class Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder(); - Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder(const Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder &aHandle); - Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder(const Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder { - Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder* _get_reference() { - return (Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder) %extend Transfer_IndexedDataMapNodeOfTransferMapOfProcessForFinder { %pythoncode { @@ -1370,51 +1036,7 @@ class Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient : public TCo }; -%extend Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient::Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient; -class Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient(); - Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient(const Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient &aHandle); - Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient(const Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient { - Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient* _get_reference() { - return (Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient*)$self->Access(); - } -}; - -%extend Handle_Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient) %extend Transfer_IndexedDataMapNodeOfTransferMapOfProcessForTransient { %pythoncode { @@ -1445,51 +1067,7 @@ class Transfer_MapContainer : public MMgt_TShared { }; -%extend Transfer_MapContainer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_MapContainer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_MapContainer::Handle_Transfer_MapContainer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_MapContainer; -class Handle_Transfer_MapContainer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_MapContainer(); - Handle_Transfer_MapContainer(const Handle_Transfer_MapContainer &aHandle); - Handle_Transfer_MapContainer(const Transfer_MapContainer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_MapContainer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_MapContainer { - Transfer_MapContainer* _get_reference() { - return (Transfer_MapContainer*)$self->Access(); - } -}; - -%extend Handle_Transfer_MapContainer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_MapContainer) %extend Transfer_MapContainer { %pythoncode { @@ -1924,51 +1502,7 @@ class Transfer_ProcessForFinder : public MMgt_TShared { }; -%extend Transfer_ProcessForFinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ProcessForFinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ProcessForFinder::Handle_Transfer_ProcessForFinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ProcessForFinder; -class Handle_Transfer_ProcessForFinder : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_ProcessForFinder(); - Handle_Transfer_ProcessForFinder(const Handle_Transfer_ProcessForFinder &aHandle); - Handle_Transfer_ProcessForFinder(const Transfer_ProcessForFinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ProcessForFinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ProcessForFinder { - Transfer_ProcessForFinder* _get_reference() { - return (Transfer_ProcessForFinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_ProcessForFinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ProcessForFinder) %extend Transfer_ProcessForFinder { %pythoncode { @@ -2403,51 +1937,7 @@ class Transfer_ProcessForTransient : public MMgt_TShared { }; -%extend Transfer_ProcessForTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ProcessForTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ProcessForTransient::Handle_Transfer_ProcessForTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ProcessForTransient; -class Handle_Transfer_ProcessForTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_ProcessForTransient(); - Handle_Transfer_ProcessForTransient(const Handle_Transfer_ProcessForTransient &aHandle); - Handle_Transfer_ProcessForTransient(const Transfer_ProcessForTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ProcessForTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ProcessForTransient { - Transfer_ProcessForTransient* _get_reference() { - return (Transfer_ProcessForTransient*)$self->Access(); - } -}; - -%extend Handle_Transfer_ProcessForTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ProcessForTransient) %extend Transfer_ProcessForTransient { %pythoncode { @@ -2610,51 +2100,7 @@ class Transfer_ResultFromModel : public MMgt_TShared { }; -%extend Transfer_ResultFromModel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ResultFromModel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ResultFromModel::Handle_Transfer_ResultFromModel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ResultFromModel; -class Handle_Transfer_ResultFromModel : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_ResultFromModel(); - Handle_Transfer_ResultFromModel(const Handle_Transfer_ResultFromModel &aHandle); - Handle_Transfer_ResultFromModel(const Transfer_ResultFromModel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ResultFromModel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ResultFromModel { - Transfer_ResultFromModel* _get_reference() { - return (Transfer_ResultFromModel*)$self->Access(); - } -}; - -%extend Handle_Transfer_ResultFromModel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ResultFromModel) %extend Transfer_ResultFromModel { %pythoncode { @@ -2785,51 +2231,7 @@ class Transfer_ResultFromTransient : public MMgt_TShared { }; -%extend Transfer_ResultFromTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ResultFromTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ResultFromTransient::Handle_Transfer_ResultFromTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ResultFromTransient; -class Handle_Transfer_ResultFromTransient : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Transfer_ResultFromTransient(); - Handle_Transfer_ResultFromTransient(const Handle_Transfer_ResultFromTransient &aHandle); - Handle_Transfer_ResultFromTransient(const Transfer_ResultFromTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ResultFromTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ResultFromTransient { - Transfer_ResultFromTransient* _get_reference() { - return (Transfer_ResultFromTransient*)$self->Access(); - } -}; - -%extend Handle_Transfer_ResultFromTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ResultFromTransient) %extend Transfer_ResultFromTransient { %pythoncode { @@ -2856,51 +2258,7 @@ class Transfer_SequenceNodeOfSequenceOfBinder : public TCollection_SeqNode { }; -%extend Transfer_SequenceNodeOfSequenceOfBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_SequenceNodeOfSequenceOfBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_SequenceNodeOfSequenceOfBinder::Handle_Transfer_SequenceNodeOfSequenceOfBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_SequenceNodeOfSequenceOfBinder; -class Handle_Transfer_SequenceNodeOfSequenceOfBinder : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Transfer_SequenceNodeOfSequenceOfBinder(); - Handle_Transfer_SequenceNodeOfSequenceOfBinder(const Handle_Transfer_SequenceNodeOfSequenceOfBinder &aHandle); - Handle_Transfer_SequenceNodeOfSequenceOfBinder(const Transfer_SequenceNodeOfSequenceOfBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_SequenceNodeOfSequenceOfBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_SequenceNodeOfSequenceOfBinder { - Transfer_SequenceNodeOfSequenceOfBinder* _get_reference() { - return (Transfer_SequenceNodeOfSequenceOfBinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_SequenceNodeOfSequenceOfBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_SequenceNodeOfSequenceOfBinder) %extend Transfer_SequenceNodeOfSequenceOfBinder { %pythoncode { @@ -2927,51 +2285,7 @@ class Transfer_SequenceNodeOfSequenceOfFinder : public TCollection_SeqNode { }; -%extend Transfer_SequenceNodeOfSequenceOfFinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_SequenceNodeOfSequenceOfFinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_SequenceNodeOfSequenceOfFinder::Handle_Transfer_SequenceNodeOfSequenceOfFinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_SequenceNodeOfSequenceOfFinder; -class Handle_Transfer_SequenceNodeOfSequenceOfFinder : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Transfer_SequenceNodeOfSequenceOfFinder(); - Handle_Transfer_SequenceNodeOfSequenceOfFinder(const Handle_Transfer_SequenceNodeOfSequenceOfFinder &aHandle); - Handle_Transfer_SequenceNodeOfSequenceOfFinder(const Transfer_SequenceNodeOfSequenceOfFinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_SequenceNodeOfSequenceOfFinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_SequenceNodeOfSequenceOfFinder { - Transfer_SequenceNodeOfSequenceOfFinder* _get_reference() { - return (Transfer_SequenceNodeOfSequenceOfFinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_SequenceNodeOfSequenceOfFinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_SequenceNodeOfSequenceOfFinder) %extend Transfer_SequenceNodeOfSequenceOfFinder { %pythoncode { @@ -3915,51 +3229,7 @@ class Transfer_ActorOfFinderProcess : public Transfer_ActorOfProcessForFinder { }; -%extend Transfer_ActorOfFinderProcess { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ActorOfFinderProcess(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ActorOfFinderProcess::Handle_Transfer_ActorOfFinderProcess %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ActorOfFinderProcess; -class Handle_Transfer_ActorOfFinderProcess : public Handle_Transfer_ActorOfProcessForFinder { - - public: - // constructors - Handle_Transfer_ActorOfFinderProcess(); - Handle_Transfer_ActorOfFinderProcess(const Handle_Transfer_ActorOfFinderProcess &aHandle); - Handle_Transfer_ActorOfFinderProcess(const Transfer_ActorOfFinderProcess *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ActorOfFinderProcess DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ActorOfFinderProcess { - Transfer_ActorOfFinderProcess* _get_reference() { - return (Transfer_ActorOfFinderProcess*)$self->Access(); - } -}; - -%extend Handle_Transfer_ActorOfFinderProcess { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ActorOfFinderProcess) %extend Transfer_ActorOfFinderProcess { %pythoncode { @@ -4000,51 +3270,7 @@ class Transfer_ActorOfTransientProcess : public Transfer_ActorOfProcessForTransi }; -%extend Transfer_ActorOfTransientProcess { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ActorOfTransientProcess(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ActorOfTransientProcess::Handle_Transfer_ActorOfTransientProcess %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ActorOfTransientProcess; -class Handle_Transfer_ActorOfTransientProcess : public Handle_Transfer_ActorOfProcessForTransient { - - public: - // constructors - Handle_Transfer_ActorOfTransientProcess(); - Handle_Transfer_ActorOfTransientProcess(const Handle_Transfer_ActorOfTransientProcess &aHandle); - Handle_Transfer_ActorOfTransientProcess(const Transfer_ActorOfTransientProcess *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ActorOfTransientProcess DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ActorOfTransientProcess { - Transfer_ActorOfTransientProcess* _get_reference() { - return (Transfer_ActorOfTransientProcess*)$self->Access(); - } -}; - -%extend Handle_Transfer_ActorOfTransientProcess { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ActorOfTransientProcess) %extend Transfer_ActorOfTransientProcess { %pythoncode { @@ -4117,51 +3343,7 @@ class Transfer_FinderProcess : public Transfer_ProcessForFinder { }; -%extend Transfer_FinderProcess { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_FinderProcess(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_FinderProcess::Handle_Transfer_FinderProcess %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_FinderProcess; -class Handle_Transfer_FinderProcess : public Handle_Transfer_ProcessForFinder { - - public: - // constructors - Handle_Transfer_FinderProcess(); - Handle_Transfer_FinderProcess(const Handle_Transfer_FinderProcess &aHandle); - Handle_Transfer_FinderProcess(const Transfer_FinderProcess *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_FinderProcess DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_FinderProcess { - Transfer_FinderProcess* _get_reference() { - return (Transfer_FinderProcess*)$self->Access(); - } -}; - -%extend Handle_Transfer_FinderProcess { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_FinderProcess) %extend Transfer_FinderProcess { %pythoncode { @@ -4328,51 +3510,7 @@ class Transfer_MultipleBinder : public Transfer_Binder { }; -%extend Transfer_MultipleBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_MultipleBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_MultipleBinder::Handle_Transfer_MultipleBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_MultipleBinder; -class Handle_Transfer_MultipleBinder : public Handle_Transfer_Binder { - - public: - // constructors - Handle_Transfer_MultipleBinder(); - Handle_Transfer_MultipleBinder(const Handle_Transfer_MultipleBinder &aHandle); - Handle_Transfer_MultipleBinder(const Transfer_MultipleBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_MultipleBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_MultipleBinder { - Transfer_MultipleBinder* _get_reference() { - return (Transfer_MultipleBinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_MultipleBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_MultipleBinder) %extend Transfer_MultipleBinder { %pythoncode { @@ -4429,51 +3567,7 @@ class Transfer_SimpleBinderOfTransient : public Transfer_Binder { }; -%extend Transfer_SimpleBinderOfTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_SimpleBinderOfTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_SimpleBinderOfTransient::Handle_Transfer_SimpleBinderOfTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_SimpleBinderOfTransient; -class Handle_Transfer_SimpleBinderOfTransient : public Handle_Transfer_Binder { - - public: - // constructors - Handle_Transfer_SimpleBinderOfTransient(); - Handle_Transfer_SimpleBinderOfTransient(const Handle_Transfer_SimpleBinderOfTransient &aHandle); - Handle_Transfer_SimpleBinderOfTransient(const Transfer_SimpleBinderOfTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_SimpleBinderOfTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_SimpleBinderOfTransient { - Transfer_SimpleBinderOfTransient* _get_reference() { - return (Transfer_SimpleBinderOfTransient*)$self->Access(); - } -}; - -%extend Handle_Transfer_SimpleBinderOfTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_SimpleBinderOfTransient) %extend Transfer_SimpleBinderOfTransient { %pythoncode { @@ -4540,51 +3634,7 @@ class Transfer_TransientListBinder : public Transfer_Binder { }; -%extend Transfer_TransientListBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_TransientListBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_TransientListBinder::Handle_Transfer_TransientListBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_TransientListBinder; -class Handle_Transfer_TransientListBinder : public Handle_Transfer_Binder { - - public: - // constructors - Handle_Transfer_TransientListBinder(); - Handle_Transfer_TransientListBinder(const Handle_Transfer_TransientListBinder &aHandle); - Handle_Transfer_TransientListBinder(const Transfer_TransientListBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_TransientListBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_TransientListBinder { - Transfer_TransientListBinder* _get_reference() { - return (Transfer_TransientListBinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_TransientListBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_TransientListBinder) %extend Transfer_TransientListBinder { %pythoncode { @@ -4621,51 +3671,7 @@ class Transfer_TransientMapper : public Transfer_Finder { }; -%extend Transfer_TransientMapper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_TransientMapper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_TransientMapper::Handle_Transfer_TransientMapper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_TransientMapper; -class Handle_Transfer_TransientMapper : public Handle_Transfer_Finder { - - public: - // constructors - Handle_Transfer_TransientMapper(); - Handle_Transfer_TransientMapper(const Handle_Transfer_TransientMapper &aHandle); - Handle_Transfer_TransientMapper(const Transfer_TransientMapper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_TransientMapper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_TransientMapper { - Transfer_TransientMapper* _get_reference() { - return (Transfer_TransientMapper*)$self->Access(); - } -}; - -%extend Handle_Transfer_TransientMapper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_TransientMapper) %extend Transfer_TransientMapper { %pythoncode { @@ -4806,51 +3812,7 @@ class Transfer_TransientProcess : public Transfer_ProcessForTransient { }; -%extend Transfer_TransientProcess { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_TransientProcess(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_TransientProcess::Handle_Transfer_TransientProcess %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_TransientProcess; -class Handle_Transfer_TransientProcess : public Handle_Transfer_ProcessForTransient { - - public: - // constructors - Handle_Transfer_TransientProcess(); - Handle_Transfer_TransientProcess(const Handle_Transfer_TransientProcess &aHandle); - Handle_Transfer_TransientProcess(const Transfer_TransientProcess *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_TransientProcess DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_TransientProcess { - Transfer_TransientProcess* _get_reference() { - return (Transfer_TransientProcess*)$self->Access(); - } -}; - -%extend Handle_Transfer_TransientProcess { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_TransientProcess) %extend Transfer_TransientProcess { %pythoncode { @@ -4881,51 +3843,7 @@ class Transfer_VoidBinder : public Transfer_Binder { }; -%extend Transfer_VoidBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_VoidBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_VoidBinder::Handle_Transfer_VoidBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_VoidBinder; -class Handle_Transfer_VoidBinder : public Handle_Transfer_Binder { - - public: - // constructors - Handle_Transfer_VoidBinder(); - Handle_Transfer_VoidBinder(const Handle_Transfer_VoidBinder &aHandle); - Handle_Transfer_VoidBinder(const Transfer_VoidBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_VoidBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_VoidBinder { - Transfer_VoidBinder* _get_reference() { - return (Transfer_VoidBinder*)$self->Access(); - } -}; - -%extend Handle_Transfer_VoidBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_VoidBinder) %extend Transfer_VoidBinder { %pythoncode { @@ -4990,51 +3908,7 @@ class Transfer_ActorDispatch : public Transfer_ActorOfTransientProcess { }; -%extend Transfer_ActorDispatch { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_ActorDispatch(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_ActorDispatch::Handle_Transfer_ActorDispatch %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_ActorDispatch; -class Handle_Transfer_ActorDispatch : public Handle_Transfer_ActorOfTransientProcess { - - public: - // constructors - Handle_Transfer_ActorDispatch(); - Handle_Transfer_ActorDispatch(const Handle_Transfer_ActorDispatch &aHandle); - Handle_Transfer_ActorDispatch(const Transfer_ActorDispatch *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_ActorDispatch DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_ActorDispatch { - Transfer_ActorDispatch* _get_reference() { - return (Transfer_ActorDispatch*)$self->Access(); - } -}; - -%extend Handle_Transfer_ActorDispatch { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_ActorDispatch) %extend Transfer_ActorDispatch { %pythoncode { @@ -5067,51 +3941,7 @@ class Transfer_BinderOfTransientInteger : public Transfer_SimpleBinderOfTransien }; -%extend Transfer_BinderOfTransientInteger { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Transfer_BinderOfTransientInteger(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Transfer_BinderOfTransientInteger::Handle_Transfer_BinderOfTransientInteger %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Transfer_BinderOfTransientInteger; -class Handle_Transfer_BinderOfTransientInteger : public Handle_Transfer_SimpleBinderOfTransient { - - public: - // constructors - Handle_Transfer_BinderOfTransientInteger(); - Handle_Transfer_BinderOfTransientInteger(const Handle_Transfer_BinderOfTransientInteger &aHandle); - Handle_Transfer_BinderOfTransientInteger(const Transfer_BinderOfTransientInteger *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Transfer_BinderOfTransientInteger DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Transfer_BinderOfTransientInteger { - Transfer_BinderOfTransientInteger* _get_reference() { - return (Transfer_BinderOfTransientInteger*)$self->Access(); - } -}; - -%extend Handle_Transfer_BinderOfTransientInteger { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Transfer_BinderOfTransientInteger) %extend Transfer_BinderOfTransientInteger { %pythoncode { diff --git a/src/SWIG_files/wrapper/TransferBRep.i b/src/SWIG_files/wrapper/TransferBRep.i index 13b9c7d03..3891c1b5d 100644 --- a/src/SWIG_files/wrapper/TransferBRep.i +++ b/src/SWIG_files/wrapper/TransferBRep.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define TRANSFERBREPDOCSTRING -"-Purpose : This package gathers services to simply read files and convertthem to Shapes from CasCade. IE. it can be used in conjunctionwith purely CasCade software" +"-Purpose : This package gathers services to simply read files and convert +them to Shapes from CasCade. IE. it can be used in conjunction +with purely CasCade software +" %enddef %module (package="OCC.Core", docstring=TRANSFERBREPDOCSTRING) TransferBRep @@ -34,31 +37,26 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include TransferBRep_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(TransferBRep_BinderOfShape) +%wrap_handle(TransferBRep_HSequenceOfTransferResultInfo) +%wrap_handle(TransferBRep_OrientedShapeMapper) +%wrap_handle(TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo) +%wrap_handle(TransferBRep_ShapeListBinder) +%wrap_handle(TransferBRep_ShapeMapper) +%wrap_handle(TransferBRep_TransferResultInfo) +%wrap_handle(TransferBRep_ShapeBinder) + %rename(transferbrep) TransferBRep; class TransferBRep { public: @@ -302,51 +300,7 @@ class TransferBRep_BinderOfShape : public Transfer_Binder { }; -%extend TransferBRep_BinderOfShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_BinderOfShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_BinderOfShape::Handle_TransferBRep_BinderOfShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_BinderOfShape; -class Handle_TransferBRep_BinderOfShape : public Handle_Transfer_Binder { - - public: - // constructors - Handle_TransferBRep_BinderOfShape(); - Handle_TransferBRep_BinderOfShape(const Handle_TransferBRep_BinderOfShape &aHandle); - Handle_TransferBRep_BinderOfShape(const TransferBRep_BinderOfShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_BinderOfShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_BinderOfShape { - TransferBRep_BinderOfShape* _get_reference() { - return (TransferBRep_BinderOfShape*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_BinderOfShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_BinderOfShape) %extend TransferBRep_BinderOfShape { %pythoncode { @@ -491,51 +445,7 @@ class TransferBRep_HSequenceOfTransferResultInfo : public MMgt_TShared { }; -%extend TransferBRep_HSequenceOfTransferResultInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_HSequenceOfTransferResultInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_HSequenceOfTransferResultInfo::Handle_TransferBRep_HSequenceOfTransferResultInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_HSequenceOfTransferResultInfo; -class Handle_TransferBRep_HSequenceOfTransferResultInfo : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TransferBRep_HSequenceOfTransferResultInfo(); - Handle_TransferBRep_HSequenceOfTransferResultInfo(const Handle_TransferBRep_HSequenceOfTransferResultInfo &aHandle); - Handle_TransferBRep_HSequenceOfTransferResultInfo(const TransferBRep_HSequenceOfTransferResultInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_HSequenceOfTransferResultInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_HSequenceOfTransferResultInfo { - TransferBRep_HSequenceOfTransferResultInfo* _get_reference() { - return (TransferBRep_HSequenceOfTransferResultInfo*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_HSequenceOfTransferResultInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_HSequenceOfTransferResultInfo) %extend TransferBRep_HSequenceOfTransferResultInfo { %pythoncode { @@ -572,51 +482,7 @@ class TransferBRep_OrientedShapeMapper : public Transfer_Finder { }; -%extend TransferBRep_OrientedShapeMapper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_OrientedShapeMapper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_OrientedShapeMapper::Handle_TransferBRep_OrientedShapeMapper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_OrientedShapeMapper; -class Handle_TransferBRep_OrientedShapeMapper : public Handle_Transfer_Finder { - - public: - // constructors - Handle_TransferBRep_OrientedShapeMapper(); - Handle_TransferBRep_OrientedShapeMapper(const Handle_TransferBRep_OrientedShapeMapper &aHandle); - Handle_TransferBRep_OrientedShapeMapper(const TransferBRep_OrientedShapeMapper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_OrientedShapeMapper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_OrientedShapeMapper { - TransferBRep_OrientedShapeMapper* _get_reference() { - return (TransferBRep_OrientedShapeMapper*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_OrientedShapeMapper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_OrientedShapeMapper) %extend TransferBRep_OrientedShapeMapper { %pythoncode { @@ -885,51 +751,7 @@ class TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo : public TCollecti }; -%extend TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo::Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo; -class Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo(); - Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo(const Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo &aHandle); - Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo(const TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo { - TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo* _get_reference() { - return (TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo) %extend TransferBRep_SequenceNodeOfSequenceOfTransferResultInfo { %pythoncode { @@ -1219,51 +1041,7 @@ class TransferBRep_ShapeListBinder : public Transfer_Binder { }; -%extend TransferBRep_ShapeListBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_ShapeListBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_ShapeListBinder::Handle_TransferBRep_ShapeListBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_ShapeListBinder; -class Handle_TransferBRep_ShapeListBinder : public Handle_Transfer_Binder { - - public: - // constructors - Handle_TransferBRep_ShapeListBinder(); - Handle_TransferBRep_ShapeListBinder(const Handle_TransferBRep_ShapeListBinder &aHandle); - Handle_TransferBRep_ShapeListBinder(const TransferBRep_ShapeListBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_ShapeListBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_ShapeListBinder { - TransferBRep_ShapeListBinder* _get_reference() { - return (TransferBRep_ShapeListBinder*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_ShapeListBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_ShapeListBinder) %extend TransferBRep_ShapeListBinder { %pythoncode { @@ -1300,51 +1078,7 @@ class TransferBRep_ShapeMapper : public Transfer_Finder { }; -%extend TransferBRep_ShapeMapper { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_ShapeMapper(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_ShapeMapper::Handle_TransferBRep_ShapeMapper %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_ShapeMapper; -class Handle_TransferBRep_ShapeMapper : public Handle_Transfer_Finder { - - public: - // constructors - Handle_TransferBRep_ShapeMapper(); - Handle_TransferBRep_ShapeMapper(const Handle_TransferBRep_ShapeMapper &aHandle); - Handle_TransferBRep_ShapeMapper(const TransferBRep_ShapeMapper *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_ShapeMapper DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_ShapeMapper { - TransferBRep_ShapeMapper* _get_reference() { - return (TransferBRep_ShapeMapper*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_ShapeMapper { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_ShapeMapper) %extend TransferBRep_ShapeMapper { %pythoncode { @@ -1473,51 +1207,7 @@ class TransferBRep_TransferResultInfo : public MMgt_TShared { }; -%extend TransferBRep_TransferResultInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_TransferResultInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_TransferResultInfo::Handle_TransferBRep_TransferResultInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_TransferResultInfo; -class Handle_TransferBRep_TransferResultInfo : public Handle_MMgt_TShared { - - public: - // constructors - Handle_TransferBRep_TransferResultInfo(); - Handle_TransferBRep_TransferResultInfo(const Handle_TransferBRep_TransferResultInfo &aHandle); - Handle_TransferBRep_TransferResultInfo(const TransferBRep_TransferResultInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_TransferResultInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_TransferResultInfo { - TransferBRep_TransferResultInfo* _get_reference() { - return (TransferBRep_TransferResultInfo*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_TransferResultInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_TransferResultInfo) %extend TransferBRep_TransferResultInfo { %pythoncode { @@ -1582,51 +1272,7 @@ class TransferBRep_ShapeBinder : public TransferBRep_BinderOfShape { }; -%extend TransferBRep_ShapeBinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_TransferBRep_ShapeBinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_TransferBRep_ShapeBinder::Handle_TransferBRep_ShapeBinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_TransferBRep_ShapeBinder; -class Handle_TransferBRep_ShapeBinder : public Handle_TransferBRep_BinderOfShape { - - public: - // constructors - Handle_TransferBRep_ShapeBinder(); - Handle_TransferBRep_ShapeBinder(const Handle_TransferBRep_ShapeBinder &aHandle); - Handle_TransferBRep_ShapeBinder(const TransferBRep_ShapeBinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_TransferBRep_ShapeBinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_TransferBRep_ShapeBinder { - TransferBRep_ShapeBinder* _get_reference() { - return (TransferBRep_ShapeBinder*)$self->Access(); - } -}; - -%extend Handle_TransferBRep_ShapeBinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(TransferBRep_ShapeBinder) %extend TransferBRep_ShapeBinder { %pythoncode { diff --git a/src/SWIG_files/wrapper/UTL.i b/src/SWIG_files/wrapper/UTL.i index fa47368b0..918efc033 100644 --- a/src/SWIG_files/wrapper/UTL.i +++ b/src/SWIG_files/wrapper/UTL.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define UTLDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=UTLDOCSTRING) UTL @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include UTL_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(utl) UTL; class UTL { public: diff --git a/src/SWIG_files/wrapper/Units.i b/src/SWIG_files/wrapper/Units.i index 48192c0fe..c83a4008c 100644 --- a/src/SWIG_files/wrapper/Units.i +++ b/src/SWIG_files/wrapper/Units.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define UNITSDOCSTRING -"No docstring provided." +"This package provides all the facilities to create +and question a dictionary of units, and also to +manipulate measurements which are real values with +units. +" %enddef %module (package="OCC.Core", docstring=UNITSDOCSTRING) Units @@ -34,31 +38,32 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Units_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(Units_Lexicon) +%wrap_handle(Units_QuantitiesSequence) +%wrap_handle(Units_SequenceNodeOfQtsSequence) +%wrap_handle(Units_SequenceNodeOfTksSequence) +%wrap_handle(Units_SequenceNodeOfUtsSequence) +%wrap_handle(Units_Token) +%wrap_handle(Units_TokensSequence) +%wrap_handle(Units_Unit) +%wrap_handle(Units_UnitsDictionary) +%wrap_handle(Units_UnitsSequence) +%wrap_handle(Units_UnitsSystem) +%wrap_handle(Units_ShiftedToken) +%wrap_handle(Units_ShiftedUnit) +%wrap_handle(Units_UnitsLexicon) + %rename(units) Units; class Units { public: @@ -373,51 +378,7 @@ class Units_Lexicon : public MMgt_TShared { }; -%extend Units_Lexicon { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_Lexicon(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_Lexicon::Handle_Units_Lexicon %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_Lexicon; -class Handle_Units_Lexicon : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_Lexicon(); - Handle_Units_Lexicon(const Handle_Units_Lexicon &aHandle); - Handle_Units_Lexicon(const Units_Lexicon *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_Lexicon DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_Lexicon { - Units_Lexicon* _get_reference() { - return (Units_Lexicon*)$self->Access(); - } -}; - -%extend Handle_Units_Lexicon { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_Lexicon) %extend Units_Lexicon { %pythoncode { @@ -876,51 +837,7 @@ class Units_QuantitiesSequence : public MMgt_TShared { }; -%extend Units_QuantitiesSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_QuantitiesSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_QuantitiesSequence::Handle_Units_QuantitiesSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_QuantitiesSequence; -class Handle_Units_QuantitiesSequence : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_QuantitiesSequence(); - Handle_Units_QuantitiesSequence(const Handle_Units_QuantitiesSequence &aHandle); - Handle_Units_QuantitiesSequence(const Units_QuantitiesSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_QuantitiesSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_QuantitiesSequence { - Units_QuantitiesSequence* _get_reference() { - return (Units_QuantitiesSequence*)$self->Access(); - } -}; - -%extend Handle_Units_QuantitiesSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_QuantitiesSequence) %extend Units_QuantitiesSequence { %pythoncode { @@ -1006,51 +923,7 @@ class Units_SequenceNodeOfQtsSequence : public TCollection_SeqNode { }; -%extend Units_SequenceNodeOfQtsSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_SequenceNodeOfQtsSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_SequenceNodeOfQtsSequence::Handle_Units_SequenceNodeOfQtsSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_SequenceNodeOfQtsSequence; -class Handle_Units_SequenceNodeOfQtsSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Units_SequenceNodeOfQtsSequence(); - Handle_Units_SequenceNodeOfQtsSequence(const Handle_Units_SequenceNodeOfQtsSequence &aHandle); - Handle_Units_SequenceNodeOfQtsSequence(const Units_SequenceNodeOfQtsSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_SequenceNodeOfQtsSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_SequenceNodeOfQtsSequence { - Units_SequenceNodeOfQtsSequence* _get_reference() { - return (Units_SequenceNodeOfQtsSequence*)$self->Access(); - } -}; - -%extend Handle_Units_SequenceNodeOfQtsSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_SequenceNodeOfQtsSequence) %extend Units_SequenceNodeOfQtsSequence { %pythoncode { @@ -1077,51 +950,7 @@ class Units_SequenceNodeOfTksSequence : public TCollection_SeqNode { }; -%extend Units_SequenceNodeOfTksSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_SequenceNodeOfTksSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_SequenceNodeOfTksSequence::Handle_Units_SequenceNodeOfTksSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_SequenceNodeOfTksSequence; -class Handle_Units_SequenceNodeOfTksSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Units_SequenceNodeOfTksSequence(); - Handle_Units_SequenceNodeOfTksSequence(const Handle_Units_SequenceNodeOfTksSequence &aHandle); - Handle_Units_SequenceNodeOfTksSequence(const Units_SequenceNodeOfTksSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_SequenceNodeOfTksSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_SequenceNodeOfTksSequence { - Units_SequenceNodeOfTksSequence* _get_reference() { - return (Units_SequenceNodeOfTksSequence*)$self->Access(); - } -}; - -%extend Handle_Units_SequenceNodeOfTksSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_SequenceNodeOfTksSequence) %extend Units_SequenceNodeOfTksSequence { %pythoncode { @@ -1148,51 +977,7 @@ class Units_SequenceNodeOfUtsSequence : public TCollection_SeqNode { }; -%extend Units_SequenceNodeOfUtsSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_SequenceNodeOfUtsSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_SequenceNodeOfUtsSequence::Handle_Units_SequenceNodeOfUtsSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_SequenceNodeOfUtsSequence; -class Handle_Units_SequenceNodeOfUtsSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Units_SequenceNodeOfUtsSequence(); - Handle_Units_SequenceNodeOfUtsSequence(const Handle_Units_SequenceNodeOfUtsSequence &aHandle); - Handle_Units_SequenceNodeOfUtsSequence(const Units_SequenceNodeOfUtsSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_SequenceNodeOfUtsSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_SequenceNodeOfUtsSequence { - Units_SequenceNodeOfUtsSequence* _get_reference() { - return (Units_SequenceNodeOfUtsSequence*)$self->Access(); - } -}; - -%extend Handle_Units_SequenceNodeOfUtsSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_SequenceNodeOfUtsSequence) %extend Units_SequenceNodeOfUtsSequence { %pythoncode { @@ -1632,51 +1417,7 @@ class Units_Token : public MMgt_TShared { }; -%extend Units_Token { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_Token(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_Token::Handle_Units_Token %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_Token; -class Handle_Units_Token : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_Token(); - Handle_Units_Token(const Handle_Units_Token &aHandle); - Handle_Units_Token(const Units_Token *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_Token DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_Token { - Units_Token* _get_reference() { - return (Units_Token*)$self->Access(); - } -}; - -%extend Handle_Units_Token { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_Token) %extend Units_Token { %pythoncode { @@ -1821,51 +1562,7 @@ class Units_TokensSequence : public MMgt_TShared { }; -%extend Units_TokensSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_TokensSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_TokensSequence::Handle_Units_TokensSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_TokensSequence; -class Handle_Units_TokensSequence : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_TokensSequence(); - Handle_Units_TokensSequence(const Handle_Units_TokensSequence &aHandle); - Handle_Units_TokensSequence(const Units_TokensSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_TokensSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_TokensSequence { - Units_TokensSequence* _get_reference() { - return (Units_TokensSequence*)$self->Access(); - } -}; - -%extend Handle_Units_TokensSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_TokensSequence) %extend Units_TokensSequence { %pythoncode { @@ -1982,51 +1679,7 @@ class Units_Unit : public MMgt_TShared { }; -%extend Units_Unit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_Unit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_Unit::Handle_Units_Unit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_Unit; -class Handle_Units_Unit : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_Unit(); - Handle_Units_Unit(const Handle_Units_Unit &aHandle); - Handle_Units_Unit(const Units_Unit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_Unit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_Unit { - Units_Unit* _get_reference() { - return (Units_Unit*)$self->Access(); - } -}; - -%extend Handle_Units_Unit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_Unit) %extend Units_Unit { %pythoncode { @@ -2089,51 +1742,7 @@ class Units_UnitsDictionary : public MMgt_TShared { }; -%extend Units_UnitsDictionary { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_UnitsDictionary(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_UnitsDictionary::Handle_Units_UnitsDictionary %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_UnitsDictionary; -class Handle_Units_UnitsDictionary : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_UnitsDictionary(); - Handle_Units_UnitsDictionary(const Handle_Units_UnitsDictionary &aHandle); - Handle_Units_UnitsDictionary(const Units_UnitsDictionary *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_UnitsDictionary DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_UnitsDictionary { - Units_UnitsDictionary* _get_reference() { - return (Units_UnitsDictionary*)$self->Access(); - } -}; - -%extend Handle_Units_UnitsDictionary { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_UnitsDictionary) %extend Units_UnitsDictionary { %pythoncode { @@ -2278,51 +1887,7 @@ class Units_UnitsSequence : public MMgt_TShared { }; -%extend Units_UnitsSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_UnitsSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_UnitsSequence::Handle_Units_UnitsSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_UnitsSequence; -class Handle_Units_UnitsSequence : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_UnitsSequence(); - Handle_Units_UnitsSequence(const Handle_Units_UnitsSequence &aHandle); - Handle_Units_UnitsSequence(const Units_UnitsSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_UnitsSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_UnitsSequence { - Units_UnitsSequence* _get_reference() { - return (Units_UnitsSequence*)$self->Access(); - } -}; - -%extend Handle_Units_UnitsSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_UnitsSequence) %extend Units_UnitsSequence { %pythoncode { @@ -2449,51 +2014,7 @@ class Units_UnitsSystem : public MMgt_TShared { }; -%extend Units_UnitsSystem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_UnitsSystem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_UnitsSystem::Handle_Units_UnitsSystem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_UnitsSystem; -class Handle_Units_UnitsSystem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Units_UnitsSystem(); - Handle_Units_UnitsSystem(const Handle_Units_UnitsSystem &aHandle); - Handle_Units_UnitsSystem(const Units_UnitsSystem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_UnitsSystem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_UnitsSystem { - Units_UnitsSystem* _get_reference() { - return (Units_UnitsSystem*)$self->Access(); - } -}; - -%extend Handle_Units_UnitsSystem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_UnitsSystem) %extend Units_UnitsSystem { %pythoncode { @@ -2726,51 +2247,7 @@ class Units_ShiftedToken : public Units_Token { }; -%extend Units_ShiftedToken { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_ShiftedToken(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_ShiftedToken::Handle_Units_ShiftedToken %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_ShiftedToken; -class Handle_Units_ShiftedToken : public Handle_Units_Token { - - public: - // constructors - Handle_Units_ShiftedToken(); - Handle_Units_ShiftedToken(const Handle_Units_ShiftedToken &aHandle); - Handle_Units_ShiftedToken(const Units_ShiftedToken *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_ShiftedToken DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_ShiftedToken { - Units_ShiftedToken* _get_reference() { - return (Units_ShiftedToken*)$self->Access(); - } -}; - -%extend Handle_Units_ShiftedToken { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_ShiftedToken) %extend Units_ShiftedToken { %pythoncode { @@ -2845,51 +2322,7 @@ class Units_ShiftedUnit : public Units_Unit { }; -%extend Units_ShiftedUnit { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_ShiftedUnit(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_ShiftedUnit::Handle_Units_ShiftedUnit %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_ShiftedUnit; -class Handle_Units_ShiftedUnit : public Handle_Units_Unit { - - public: - // constructors - Handle_Units_ShiftedUnit(); - Handle_Units_ShiftedUnit(const Handle_Units_ShiftedUnit &aHandle); - Handle_Units_ShiftedUnit(const Units_ShiftedUnit *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_ShiftedUnit DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_ShiftedUnit { - Units_ShiftedUnit* _get_reference() { - return (Units_ShiftedUnit*)$self->Access(); - } -}; - -%extend Handle_Units_ShiftedUnit { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_ShiftedUnit) %extend Units_ShiftedUnit { %pythoncode { @@ -2981,51 +2414,7 @@ class Units_UnitsLexicon : public Units_Lexicon { }; -%extend Units_UnitsLexicon { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Units_UnitsLexicon(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Units_UnitsLexicon::Handle_Units_UnitsLexicon %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Units_UnitsLexicon; -class Handle_Units_UnitsLexicon : public Handle_Units_Lexicon { - - public: - // constructors - Handle_Units_UnitsLexicon(); - Handle_Units_UnitsLexicon(const Handle_Units_UnitsLexicon &aHandle); - Handle_Units_UnitsLexicon(const Units_UnitsLexicon *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Units_UnitsLexicon DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Units_UnitsLexicon { - Units_UnitsLexicon* _get_reference() { - return (Units_UnitsLexicon*)$self->Access(); - } -}; - -%extend Handle_Units_UnitsLexicon { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Units_UnitsLexicon) %extend Units_UnitsLexicon { %pythoncode { diff --git a/src/SWIG_files/wrapper/UnitsAPI.i b/src/SWIG_files/wrapper/UnitsAPI.i index 7f1cce756..7998544d0 100644 --- a/src/SWIG_files/wrapper/UnitsAPI.i +++ b/src/SWIG_files/wrapper/UnitsAPI.i @@ -18,7 +18,32 @@ along with pythonOCC. If not, see . */ %define UNITSAPIDOCSTRING -"No docstring provided." +"The UnitsAPI global functions are used to +convert a value from any unit into another unit. +Principles +Conversion is executed among three unit systems: +- the SI System +- the user's Local System +- the user's Current System. +The SI System is the standard international unit +system. It is indicated by SI in the synopses of +the UnitsAPI functions. +The MDTV System corresponds to the SI +international standard but the length unit and all +its derivatives use millimeters instead of the meters. +Both systems are proposed by Open CASCADE; +the SI System is the standard option. By +selecting one of these two systems, the user +defines his Local System through the +SetLocalSystem function. The Local System is +indicated by LS in the synopses of the UnitsAPI functions. +The user's Local System units can be modified in +the working environment. The user defines his +Current System by modifying its units through +the SetCurrentUnit function. The Current +System is indicated by Current in the synopses +of the UnitsAPI functions. +" %enddef %module (package="OCC.Core", docstring=UNITSAPIDOCSTRING) UnitsAPI @@ -34,25 +59,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include UnitsAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +76,7 @@ enum UnitsAPI_SystemUnits { /* end public enums declaration */ + %rename(unitsapi) UnitsAPI; class UnitsAPI { public: diff --git a/src/SWIG_files/wrapper/V3d.i b/src/SWIG_files/wrapper/V3d.i index 1e4f24d0b..c3f20df1b 100644 --- a/src/SWIG_files/wrapper/V3d.i +++ b/src/SWIG_files/wrapper/V3d.i @@ -18,7 +18,11 @@ along with pythonOCC. If not, see . */ %define V3DDOCSTRING -"No docstring provided." +"This package contains the set of commands and services +of the 3D Viewer. It provides a set of high level commands +to control the views and viewing modes. This package is +complementary to the Visual3D graphic package. +" %enddef %module (package="OCC.Core", docstring=V3DDOCSTRING) V3d @@ -34,25 +38,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include V3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef V3d_View * V3d_ViewPointer; typedef V3d_LayerMgr * V3d_LayerMgrPointer; @@ -179,6 +169,21 @@ enum V3d_TypeOfZclipping { /* end public enums declaration */ +%wrap_handle(V3d_CircularGrid) +%wrap_handle(V3d_ColorScale) +%wrap_handle(V3d_ColorScaleLayerItem) +%wrap_handle(V3d_LayerMgr) +%wrap_handle(V3d_Light) +%wrap_handle(V3d_Plane) +%wrap_handle(V3d_RectangularGrid) +%wrap_handle(V3d_View) +%wrap_handle(V3d_Viewer) +%wrap_handle(V3d_AmbientLight) +%wrap_handle(V3d_PositionLight) +%wrap_handle(V3d_DirectionalLight) +%wrap_handle(V3d_PositionalLight) +%wrap_handle(V3d_SpotLight) + %rename(v3d) V3d; class V3d { public: @@ -344,51 +349,7 @@ class V3d_CircularGrid : public Aspect_CircularGrid { }; -%extend V3d_CircularGrid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_CircularGrid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_CircularGrid::Handle_V3d_CircularGrid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_CircularGrid; -class Handle_V3d_CircularGrid : public Handle_Aspect_CircularGrid { - - public: - // constructors - Handle_V3d_CircularGrid(); - Handle_V3d_CircularGrid(const Handle_V3d_CircularGrid &aHandle); - Handle_V3d_CircularGrid(const V3d_CircularGrid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_CircularGrid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_CircularGrid { - V3d_CircularGrid* _get_reference() { - return (V3d_CircularGrid*)$self->Access(); - } -}; - -%extend Handle_V3d_CircularGrid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_CircularGrid) %extend V3d_CircularGrid { %pythoncode { @@ -479,51 +440,7 @@ class V3d_ColorScale : public Aspect_ColorScale { }; -%extend V3d_ColorScale { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_ColorScale(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_ColorScale::Handle_V3d_ColorScale %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_ColorScale; -class Handle_V3d_ColorScale : public Handle_Aspect_ColorScale { - - public: - // constructors - Handle_V3d_ColorScale(); - Handle_V3d_ColorScale(const Handle_V3d_ColorScale &aHandle); - Handle_V3d_ColorScale(const V3d_ColorScale *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_ColorScale DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_ColorScale { - V3d_ColorScale* _get_reference() { - return (V3d_ColorScale*)$self->Access(); - } -}; - -%extend Handle_V3d_ColorScale { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_ColorScale) %extend V3d_ColorScale { %pythoncode { @@ -556,51 +473,7 @@ class V3d_ColorScaleLayerItem : public Visual3d_LayerItem { }; -%extend V3d_ColorScaleLayerItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_ColorScaleLayerItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_ColorScaleLayerItem::Handle_V3d_ColorScaleLayerItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_ColorScaleLayerItem; -class Handle_V3d_ColorScaleLayerItem : public Handle_Visual3d_LayerItem { - - public: - // constructors - Handle_V3d_ColorScaleLayerItem(); - Handle_V3d_ColorScaleLayerItem(const Handle_V3d_ColorScaleLayerItem &aHandle); - Handle_V3d_ColorScaleLayerItem(const V3d_ColorScaleLayerItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_ColorScaleLayerItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_ColorScaleLayerItem { - V3d_ColorScaleLayerItem* _get_reference() { - return (V3d_ColorScaleLayerItem*)$self->Access(); - } -}; - -%extend Handle_V3d_ColorScaleLayerItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_ColorScaleLayerItem) %extend V3d_ColorScaleLayerItem { %pythoncode { @@ -653,51 +526,7 @@ class V3d_LayerMgr : public MMgt_TShared { }; -%extend V3d_LayerMgr { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_LayerMgr(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_LayerMgr::Handle_V3d_LayerMgr %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_LayerMgr; -class Handle_V3d_LayerMgr : public Handle_MMgt_TShared { - - public: - // constructors - Handle_V3d_LayerMgr(); - Handle_V3d_LayerMgr(const Handle_V3d_LayerMgr &aHandle); - Handle_V3d_LayerMgr(const V3d_LayerMgr *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_LayerMgr DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_LayerMgr { - V3d_LayerMgr* _get_reference() { - return (V3d_LayerMgr*)$self->Access(); - } -}; - -%extend Handle_V3d_LayerMgr { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_LayerMgr) %extend V3d_LayerMgr { %pythoncode { @@ -794,51 +623,7 @@ class V3d_Light : public MMgt_TShared { }; -%extend V3d_Light { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_Light(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_Light::Handle_V3d_Light %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_Light; -class Handle_V3d_Light : public Handle_MMgt_TShared { - - public: - // constructors - Handle_V3d_Light(); - Handle_V3d_Light(const Handle_V3d_Light &aHandle); - Handle_V3d_Light(const V3d_Light *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_Light DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_Light { - V3d_Light* _get_reference() { - return (V3d_Light*)$self->Access(); - } -}; - -%extend Handle_V3d_Light { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_Light) %extend V3d_Light { %pythoncode { @@ -948,51 +733,7 @@ class V3d_Plane : public MMgt_TShared { }; -%extend V3d_Plane { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_Plane(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_Plane::Handle_V3d_Plane %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_Plane; -class Handle_V3d_Plane : public Handle_MMgt_TShared { - - public: - // constructors - Handle_V3d_Plane(); - Handle_V3d_Plane(const Handle_V3d_Plane &aHandle); - Handle_V3d_Plane(const V3d_Plane *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_Plane DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_Plane { - V3d_Plane* _get_reference() { - return (V3d_Plane*)$self->Access(); - } -}; - -%extend Handle_V3d_Plane { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_Plane) %extend V3d_Plane { %pythoncode { @@ -1055,51 +796,7 @@ class V3d_RectangularGrid : public Aspect_RectangularGrid { }; -%extend V3d_RectangularGrid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_RectangularGrid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_RectangularGrid::Handle_V3d_RectangularGrid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_RectangularGrid; -class Handle_V3d_RectangularGrid : public Handle_Aspect_RectangularGrid { - - public: - // constructors - Handle_V3d_RectangularGrid(); - Handle_V3d_RectangularGrid(const Handle_V3d_RectangularGrid &aHandle); - Handle_V3d_RectangularGrid(const V3d_RectangularGrid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_RectangularGrid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_RectangularGrid { - V3d_RectangularGrid* _get_reference() { - return (V3d_RectangularGrid*)$self->Access(); - } -}; - -%extend Handle_V3d_RectangularGrid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_RectangularGrid) %extend V3d_RectangularGrid { %pythoncode { @@ -2740,51 +2437,7 @@ class V3d_View : public MMgt_TShared { }; -%extend V3d_View { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_View(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_View::Handle_V3d_View %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_View; -class Handle_V3d_View : public Handle_MMgt_TShared { - - public: - // constructors - Handle_V3d_View(); - Handle_V3d_View(const Handle_V3d_View &aHandle); - Handle_V3d_View(const V3d_View *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_View DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_View { - V3d_View* _get_reference() { - return (V3d_View*)$self->Access(); - } -}; - -%extend Handle_V3d_View { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_View) %extend V3d_View { %pythoncode { @@ -3559,51 +3212,7 @@ class V3d_Viewer : public MMgt_TShared { }; -%extend V3d_Viewer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_Viewer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_Viewer::Handle_V3d_Viewer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_Viewer; -class Handle_V3d_Viewer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_V3d_Viewer(); - Handle_V3d_Viewer(const Handle_V3d_Viewer &aHandle); - Handle_V3d_Viewer(const V3d_Viewer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_Viewer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_Viewer { - V3d_Viewer* _get_reference() { - return (V3d_Viewer*)$self->Access(); - } -}; - -%extend Handle_V3d_Viewer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_Viewer) %extend V3d_Viewer { %pythoncode { @@ -3626,51 +3235,7 @@ class V3d_AmbientLight : public V3d_Light { }; -%extend V3d_AmbientLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_AmbientLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_AmbientLight::Handle_V3d_AmbientLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_AmbientLight; -class Handle_V3d_AmbientLight : public Handle_V3d_Light { - - public: - // constructors - Handle_V3d_AmbientLight(); - Handle_V3d_AmbientLight(const Handle_V3d_AmbientLight &aHandle); - Handle_V3d_AmbientLight(const V3d_AmbientLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_AmbientLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_AmbientLight { - V3d_AmbientLight* _get_reference() { - return (V3d_AmbientLight*)$self->Access(); - } -}; - -%extend Handle_V3d_AmbientLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_AmbientLight) %extend V3d_AmbientLight { %pythoncode { @@ -3799,51 +3364,7 @@ class V3d_PositionLight : public V3d_Light { }; -%extend V3d_PositionLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_PositionLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_PositionLight::Handle_V3d_PositionLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_PositionLight; -class Handle_V3d_PositionLight : public Handle_V3d_Light { - - public: - // constructors - Handle_V3d_PositionLight(); - Handle_V3d_PositionLight(const Handle_V3d_PositionLight &aHandle); - Handle_V3d_PositionLight(const V3d_PositionLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_PositionLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_PositionLight { - V3d_PositionLight* _get_reference() { - return (V3d_PositionLight*)$self->Access(); - } -}; - -%extend Handle_V3d_PositionLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_PositionLight) %extend V3d_PositionLight { %pythoncode { @@ -3984,51 +3505,7 @@ class V3d_DirectionalLight : public V3d_PositionLight { }; -%extend V3d_DirectionalLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_DirectionalLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_DirectionalLight::Handle_V3d_DirectionalLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_DirectionalLight; -class Handle_V3d_DirectionalLight : public Handle_V3d_PositionLight { - - public: - // constructors - Handle_V3d_DirectionalLight(); - Handle_V3d_DirectionalLight(const Handle_V3d_DirectionalLight &aHandle); - Handle_V3d_DirectionalLight(const V3d_DirectionalLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_DirectionalLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_DirectionalLight { - V3d_DirectionalLight* _get_reference() { - return (V3d_DirectionalLight*)$self->Access(); - } -}; - -%extend Handle_V3d_DirectionalLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_DirectionalLight) %extend V3d_DirectionalLight { %pythoncode { @@ -4141,51 +3618,7 @@ class V3d_PositionalLight : public V3d_PositionLight { }; -%extend V3d_PositionalLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_PositionalLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_PositionalLight::Handle_V3d_PositionalLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_PositionalLight; -class Handle_V3d_PositionalLight : public Handle_V3d_PositionLight { - - public: - // constructors - Handle_V3d_PositionalLight(); - Handle_V3d_PositionalLight(const Handle_V3d_PositionalLight &aHandle); - Handle_V3d_PositionalLight(const V3d_PositionalLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_PositionalLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_PositionalLight { - V3d_PositionalLight* _get_reference() { - return (V3d_PositionalLight*)$self->Access(); - } -}; - -%extend Handle_V3d_PositionalLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_PositionalLight) %extend V3d_PositionalLight { %pythoncode { @@ -4366,51 +3799,7 @@ class V3d_SpotLight : public V3d_PositionLight { }; -%extend V3d_SpotLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_V3d_SpotLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_V3d_SpotLight::Handle_V3d_SpotLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_V3d_SpotLight; -class Handle_V3d_SpotLight : public Handle_V3d_PositionLight { - - public: - // constructors - Handle_V3d_SpotLight(); - Handle_V3d_SpotLight(const Handle_V3d_SpotLight &aHandle); - Handle_V3d_SpotLight(const V3d_SpotLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_V3d_SpotLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_V3d_SpotLight { - V3d_SpotLight* _get_reference() { - return (V3d_SpotLight*)$self->Access(); - } -}; - -%extend Handle_V3d_SpotLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(V3d_SpotLight) %extend V3d_SpotLight { %pythoncode { diff --git a/src/SWIG_files/wrapper/Visual3d.i b/src/SWIG_files/wrapper/Visual3d.i index c1ffcc60e..3a0ebdeff 100644 --- a/src/SWIG_files/wrapper/Visual3d.i +++ b/src/SWIG_files/wrapper/Visual3d.i @@ -18,7 +18,19 @@ along with pythonOCC. If not, see . */ %define VISUAL3DDOCSTRING -"No docstring provided." +"-Version: + +This package contains the group of classes necessary +for the implementation of commands for the 3D visualiser. +Use of this package is reserved to the visualiser. + +The visualiser manages the structures, the views, the +light sources, and object picking. + +-Keywords: View, Light, Pick +-Warning: +-References: +" %enddef %module (package="OCC.Core", docstring=VISUAL3DDOCSTRING) Visual3d @@ -34,25 +46,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Visual3d_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_List Visual3d_NListOfLayerItem; typedef Visual3d_View * Visual3d_ViewPtr; @@ -110,6 +108,16 @@ enum Visual3d_TypeOfBackfacingModel { /* end public enums declaration */ +%wrap_handle(Visual3d_HSequenceOfLight) +%wrap_handle(Visual3d_HSequenceOfView) +%wrap_handle(Visual3d_Layer) +%wrap_handle(Visual3d_LayerItem) +%wrap_handle(Visual3d_Light) +%wrap_handle(Visual3d_SequenceNodeOfSequenceOfLight) +%wrap_handle(Visual3d_SequenceNodeOfSequenceOfView) +%wrap_handle(Visual3d_View) +%wrap_handle(Visual3d_ViewManager) + %nodefaultctor Visual3d_ContextPick; class Visual3d_ContextPick { public: @@ -574,51 +582,7 @@ class Visual3d_HSequenceOfLight : public MMgt_TShared { }; -%extend Visual3d_HSequenceOfLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_HSequenceOfLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_HSequenceOfLight::Handle_Visual3d_HSequenceOfLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_HSequenceOfLight; -class Handle_Visual3d_HSequenceOfLight : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Visual3d_HSequenceOfLight(); - Handle_Visual3d_HSequenceOfLight(const Handle_Visual3d_HSequenceOfLight &aHandle); - Handle_Visual3d_HSequenceOfLight(const Visual3d_HSequenceOfLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_HSequenceOfLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_HSequenceOfLight { - Visual3d_HSequenceOfLight* _get_reference() { - return (Visual3d_HSequenceOfLight*)$self->Access(); - } -}; - -%extend Handle_Visual3d_HSequenceOfLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_HSequenceOfLight) %extend Visual3d_HSequenceOfLight { %pythoncode { @@ -763,51 +727,7 @@ class Visual3d_HSequenceOfView : public MMgt_TShared { }; -%extend Visual3d_HSequenceOfView { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_HSequenceOfView(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_HSequenceOfView::Handle_Visual3d_HSequenceOfView %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_HSequenceOfView; -class Handle_Visual3d_HSequenceOfView : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Visual3d_HSequenceOfView(); - Handle_Visual3d_HSequenceOfView(const Handle_Visual3d_HSequenceOfView &aHandle); - Handle_Visual3d_HSequenceOfView(const Visual3d_HSequenceOfView *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_HSequenceOfView DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_HSequenceOfView { - Visual3d_HSequenceOfView* _get_reference() { - return (Visual3d_HSequenceOfView*)$self->Access(); - } -}; - -%extend Handle_Visual3d_HSequenceOfView { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_HSequenceOfView) %extend Visual3d_HSequenceOfView { %pythoncode { @@ -1022,51 +942,7 @@ class Visual3d_Layer : public MMgt_TShared { }; -%extend Visual3d_Layer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_Layer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_Layer::Handle_Visual3d_Layer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_Layer; -class Handle_Visual3d_Layer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Visual3d_Layer(); - Handle_Visual3d_Layer(const Handle_Visual3d_Layer &aHandle); - Handle_Visual3d_Layer(const Visual3d_Layer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_Layer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_Layer { - Visual3d_Layer* _get_reference() { - return (Visual3d_Layer*)$self->Access(); - } -}; - -%extend Handle_Visual3d_Layer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_Layer) %extend Visual3d_Layer { %pythoncode { @@ -1107,51 +983,7 @@ class Visual3d_LayerItem : public MMgt_TShared { }; -%extend Visual3d_LayerItem { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_LayerItem(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_LayerItem::Handle_Visual3d_LayerItem %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_LayerItem; -class Handle_Visual3d_LayerItem : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Visual3d_LayerItem(); - Handle_Visual3d_LayerItem(const Handle_Visual3d_LayerItem &aHandle); - Handle_Visual3d_LayerItem(const Visual3d_LayerItem *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_LayerItem DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_LayerItem { - Visual3d_LayerItem* _get_reference() { - return (Visual3d_LayerItem*)$self->Access(); - } -}; - -%extend Handle_Visual3d_LayerItem { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_LayerItem) %extend Visual3d_LayerItem { %pythoncode { @@ -1364,51 +1196,7 @@ class Visual3d_Light : public MMgt_TShared { }; -%extend Visual3d_Light { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_Light(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_Light::Handle_Visual3d_Light %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_Light; -class Handle_Visual3d_Light : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Visual3d_Light(); - Handle_Visual3d_Light(const Handle_Visual3d_Light &aHandle); - Handle_Visual3d_Light(const Visual3d_Light *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_Light DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_Light { - Visual3d_Light* _get_reference() { - return (Visual3d_Light*)$self->Access(); - } -}; - -%extend Handle_Visual3d_Light { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_Light) %extend Visual3d_Light { %pythoncode { @@ -1435,51 +1223,7 @@ class Visual3d_SequenceNodeOfSequenceOfLight : public TCollection_SeqNode { }; -%extend Visual3d_SequenceNodeOfSequenceOfLight { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_SequenceNodeOfSequenceOfLight(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_SequenceNodeOfSequenceOfLight::Handle_Visual3d_SequenceNodeOfSequenceOfLight %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_SequenceNodeOfSequenceOfLight; -class Handle_Visual3d_SequenceNodeOfSequenceOfLight : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Visual3d_SequenceNodeOfSequenceOfLight(); - Handle_Visual3d_SequenceNodeOfSequenceOfLight(const Handle_Visual3d_SequenceNodeOfSequenceOfLight &aHandle); - Handle_Visual3d_SequenceNodeOfSequenceOfLight(const Visual3d_SequenceNodeOfSequenceOfLight *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_SequenceNodeOfSequenceOfLight DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_SequenceNodeOfSequenceOfLight { - Visual3d_SequenceNodeOfSequenceOfLight* _get_reference() { - return (Visual3d_SequenceNodeOfSequenceOfLight*)$self->Access(); - } -}; - -%extend Handle_Visual3d_SequenceNodeOfSequenceOfLight { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_SequenceNodeOfSequenceOfLight) %extend Visual3d_SequenceNodeOfSequenceOfLight { %pythoncode { @@ -1506,51 +1250,7 @@ class Visual3d_SequenceNodeOfSequenceOfView : public TCollection_SeqNode { }; -%extend Visual3d_SequenceNodeOfSequenceOfView { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_SequenceNodeOfSequenceOfView(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_SequenceNodeOfSequenceOfView::Handle_Visual3d_SequenceNodeOfSequenceOfView %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_SequenceNodeOfSequenceOfView; -class Handle_Visual3d_SequenceNodeOfSequenceOfView : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_Visual3d_SequenceNodeOfSequenceOfView(); - Handle_Visual3d_SequenceNodeOfSequenceOfView(const Handle_Visual3d_SequenceNodeOfSequenceOfView &aHandle); - Handle_Visual3d_SequenceNodeOfSequenceOfView(const Visual3d_SequenceNodeOfSequenceOfView *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_SequenceNodeOfSequenceOfView DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_SequenceNodeOfSequenceOfView { - Visual3d_SequenceNodeOfSequenceOfView* _get_reference() { - return (Visual3d_SequenceNodeOfSequenceOfView*)$self->Access(); - } -}; - -%extend Handle_Visual3d_SequenceNodeOfSequenceOfView { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_SequenceNodeOfSequenceOfView) %extend Visual3d_SequenceNodeOfSequenceOfView { %pythoncode { @@ -2559,51 +2259,7 @@ class Visual3d_View : public Graphic3d_DataStructureManager { }; -%extend Visual3d_View { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_View(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_View::Handle_Visual3d_View %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_View; -class Handle_Visual3d_View : public Handle_Graphic3d_DataStructureManager { - - public: - // constructors - Handle_Visual3d_View(); - Handle_Visual3d_View(const Handle_Visual3d_View &aHandle); - Handle_Visual3d_View(const Visual3d_View *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_View DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_View { - Visual3d_View* _get_reference() { - return (Visual3d_View*)$self->Access(); - } -}; - -%extend Handle_Visual3d_View { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_View) %extend Visual3d_View { %pythoncode { @@ -2922,51 +2578,7 @@ class Visual3d_ViewManager : public Graphic3d_StructureManager { }; -%extend Visual3d_ViewManager { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Visual3d_ViewManager(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Visual3d_ViewManager::Handle_Visual3d_ViewManager %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Visual3d_ViewManager; -class Handle_Visual3d_ViewManager : public Handle_Graphic3d_StructureManager { - - public: - // constructors - Handle_Visual3d_ViewManager(); - Handle_Visual3d_ViewManager(const Handle_Visual3d_ViewManager &aHandle); - Handle_Visual3d_ViewManager(const Visual3d_ViewManager *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Visual3d_ViewManager DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Visual3d_ViewManager { - Visual3d_ViewManager* _get_reference() { - return (Visual3d_ViewManager*)$self->Access(); - } -}; - -%extend Handle_Visual3d_ViewManager { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Visual3d_ViewManager) %extend Visual3d_ViewManager { %pythoncode { diff --git a/src/SWIG_files/wrapper/Voxel.i b/src/SWIG_files/wrapper/Voxel.i index 0c27f642b..faa815532 100644 --- a/src/SWIG_files/wrapper/Voxel.i +++ b/src/SWIG_files/wrapper/Voxel.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define VOXELDOCSTRING -"No docstring provided." +"Data structuire and visualization engine for voxel modeling. +" %enddef %module (package="OCC.Core", docstring=VOXELDOCSTRING) Voxel @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Voxel_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_DataMap iXYZBool; typedef NCollection_DataMap iXYZIndex; @@ -73,6 +60,8 @@ enum Voxel_VoxelDisplayMode { /* end public enums declaration */ +%wrap_handle(Voxel_Prs) + %nodefaultctor Voxel_BooleanOperation; class Voxel_BooleanOperation { public: @@ -747,51 +736,7 @@ class Voxel_Prs : public AIS_InteractiveObject { }; -%extend Voxel_Prs { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Voxel_Prs(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Voxel_Prs::Handle_Voxel_Prs %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Voxel_Prs; -class Handle_Voxel_Prs : public Handle_AIS_InteractiveObject { - - public: - // constructors - Handle_Voxel_Prs(); - Handle_Voxel_Prs(const Handle_Voxel_Prs &aHandle); - Handle_Voxel_Prs(const Voxel_Prs *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Voxel_Prs DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Voxel_Prs { - Voxel_Prs* _get_reference() { - return (Voxel_Prs*)$self->Access(); - } -}; - -%extend Handle_Voxel_Prs { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Voxel_Prs) %extend Voxel_Prs { %pythoncode { diff --git a/src/SWIG_files/wrapper/Vrml.i b/src/SWIG_files/wrapper/Vrml.i index 6ff887a1f..231d87082 100644 --- a/src/SWIG_files/wrapper/Vrml.i +++ b/src/SWIG_files/wrapper/Vrml.i @@ -18,7 +18,52 @@ along with pythonOCC. If not, see . */ %define VRMLDOCSTRING -"No docstring provided." +"Vrml package implements the specification of the +VRML ( Virtual Reality Modeling Language ). VRML +is a standard language for describing interactive +3-D objects and worlds delivered across Internet. +Actual version of Vrml package have made for objects +of VRML version 1.0. +This package is used by VrmlConverter package. +The developer should already be familiar with VRML +specification before using this package. + +Coordinate System + +VRML uses a Cartesian, right-handed, 3-dimensional coordinate system. +By default, objects are projected onto a 2-dimensional device by projecting +them in the direction of the positive Z axis, with the positive X axis to +the right and the positive Y axis up. A camera or modeling transformation +may be used to alter this default projection. +The standard unit for lengths and distances specified is meters. +The standard unit for angles is radians. + +Fields + +There are two general classes of fields; fields that contain a single value +(where a value may be a single number, a vector, or even an image), and fields that +contain multiple values. Single-valued fields all have names that begin with 'SF', +multiple-valued fields have names that begin with 'MF'. Each field type defines +the format for the values it writes. + +Nodes + +VRML defines several different classes of nodes. Most of the nodes can be classified +into one of three categories; shape, property or group. Shape nodes define the geometry +in the world. Conceptually, they are the only nodes that draw anything. Property nodes +affect the way shapes are drawn. And grouping nodes gather other nodes together, allowing +collections of nodes to be treated as a single object. Some group nodes also control +whether or not their children are drawn. +Nodes may contain zero or more fields. Each node type defines the type, name, and default +value for each of its fields. The default value for the field is used if a value for +the field is not specified in the VRML file. + +Instancing + +A node may be the child of more than one group. This is called 'instancing' (using the same +instance of a node multiple times, called 'aliasing' or 'multiple references' by other +systems), and is accomplished by using the 'USE' and 'DEF keywords. +" %enddef %module (package="OCC.Core", docstring=VRMLDOCSTRING) Vrml @@ -34,25 +79,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include Vrml_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -141,6 +172,16 @@ enum Vrml_FontStyleStyle { /* end public enums declaration */ +%wrap_handle(Vrml_AsciiText) +%wrap_handle(Vrml_Coordinate3) +%wrap_handle(Vrml_IndexedFaceSet) +%wrap_handle(Vrml_IndexedLineSet) +%wrap_handle(Vrml_LOD) +%wrap_handle(Vrml_Material) +%wrap_handle(Vrml_Normal) +%wrap_handle(Vrml_SFImage) +%wrap_handle(Vrml_TextureCoordinate2) + %rename(vrml) Vrml; class Vrml { public: @@ -238,51 +279,7 @@ class Vrml_AsciiText : public MMgt_TShared { }; -%extend Vrml_AsciiText { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_AsciiText(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_AsciiText::Handle_Vrml_AsciiText %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_AsciiText; -class Handle_Vrml_AsciiText : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_AsciiText(); - Handle_Vrml_AsciiText(const Handle_Vrml_AsciiText &aHandle); - Handle_Vrml_AsciiText(const Vrml_AsciiText *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_AsciiText DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_AsciiText { - Vrml_AsciiText* _get_reference() { - return (Vrml_AsciiText*)$self->Access(); - } -}; - -%extend Handle_Vrml_AsciiText { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_AsciiText) %extend Vrml_AsciiText { %pythoncode { @@ -382,51 +379,7 @@ class Vrml_Coordinate3 : public MMgt_TShared { }; -%extend Vrml_Coordinate3 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_Coordinate3(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_Coordinate3::Handle_Vrml_Coordinate3 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_Coordinate3; -class Handle_Vrml_Coordinate3 : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_Coordinate3(); - Handle_Vrml_Coordinate3(const Handle_Vrml_Coordinate3 &aHandle); - Handle_Vrml_Coordinate3(const Vrml_Coordinate3 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_Coordinate3 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_Coordinate3 { - Vrml_Coordinate3* _get_reference() { - return (Vrml_Coordinate3*)$self->Access(); - } -}; - -%extend Handle_Vrml_Coordinate3 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_Coordinate3) %extend Vrml_Coordinate3 { %pythoncode { @@ -778,51 +731,7 @@ class Vrml_IndexedFaceSet : public MMgt_TShared { }; -%extend Vrml_IndexedFaceSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_IndexedFaceSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_IndexedFaceSet::Handle_Vrml_IndexedFaceSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_IndexedFaceSet; -class Handle_Vrml_IndexedFaceSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_IndexedFaceSet(); - Handle_Vrml_IndexedFaceSet(const Handle_Vrml_IndexedFaceSet &aHandle); - Handle_Vrml_IndexedFaceSet(const Vrml_IndexedFaceSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_IndexedFaceSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_IndexedFaceSet { - Vrml_IndexedFaceSet* _get_reference() { - return (Vrml_IndexedFaceSet*)$self->Access(); - } -}; - -%extend Handle_Vrml_IndexedFaceSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_IndexedFaceSet) %extend Vrml_IndexedFaceSet { %pythoncode { @@ -899,51 +808,7 @@ class Vrml_IndexedLineSet : public MMgt_TShared { }; -%extend Vrml_IndexedLineSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_IndexedLineSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_IndexedLineSet::Handle_Vrml_IndexedLineSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_IndexedLineSet; -class Handle_Vrml_IndexedLineSet : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_IndexedLineSet(); - Handle_Vrml_IndexedLineSet(const Handle_Vrml_IndexedLineSet &aHandle); - Handle_Vrml_IndexedLineSet(const Vrml_IndexedLineSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_IndexedLineSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_IndexedLineSet { - Vrml_IndexedLineSet* _get_reference() { - return (Vrml_IndexedLineSet*)$self->Access(); - } -}; - -%extend Handle_Vrml_IndexedLineSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_IndexedLineSet) %extend Vrml_IndexedLineSet { %pythoncode { @@ -1066,51 +931,7 @@ class Vrml_LOD : public MMgt_TShared { }; -%extend Vrml_LOD { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_LOD(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_LOD::Handle_Vrml_LOD %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_LOD; -class Handle_Vrml_LOD : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_LOD(); - Handle_Vrml_LOD(const Handle_Vrml_LOD &aHandle); - Handle_Vrml_LOD(const Vrml_LOD *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_LOD DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_LOD { - Vrml_LOD* _get_reference() { - return (Vrml_LOD*)$self->Access(); - } -}; - -%extend Handle_Vrml_LOD { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_LOD) %extend Vrml_LOD { %pythoncode { @@ -1211,51 +1032,7 @@ class Vrml_Material : public MMgt_TShared { }; -%extend Vrml_Material { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_Material(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_Material::Handle_Vrml_Material %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_Material; -class Handle_Vrml_Material : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_Material(); - Handle_Vrml_Material(const Handle_Vrml_Material &aHandle); - Handle_Vrml_Material(const Vrml_Material *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_Material DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_Material { - Vrml_Material* _get_reference() { - return (Vrml_Material*)$self->Access(); - } -}; - -%extend Handle_Vrml_Material { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_Material) %extend Vrml_Material { %pythoncode { @@ -1374,51 +1151,7 @@ class Vrml_Normal : public MMgt_TShared { }; -%extend Vrml_Normal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_Normal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_Normal::Handle_Vrml_Normal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_Normal; -class Handle_Vrml_Normal : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_Normal(); - Handle_Vrml_Normal(const Handle_Vrml_Normal &aHandle); - Handle_Vrml_Normal(const Vrml_Normal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_Normal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_Normal { - Vrml_Normal* _get_reference() { - return (Vrml_Normal*)$self->Access(); - } -}; - -%extend Handle_Vrml_Normal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_Normal) %extend Vrml_Normal { %pythoncode { @@ -1841,51 +1574,7 @@ class Vrml_SFImage : public MMgt_TShared { }; -%extend Vrml_SFImage { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_SFImage(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_SFImage::Handle_Vrml_SFImage %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_SFImage; -class Handle_Vrml_SFImage : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_SFImage(); - Handle_Vrml_SFImage(const Handle_Vrml_SFImage &aHandle); - Handle_Vrml_SFImage(const Vrml_SFImage *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_SFImage DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_SFImage { - Vrml_SFImage* _get_reference() { - return (Vrml_SFImage*)$self->Access(); - } -}; - -%extend Handle_Vrml_SFImage { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_SFImage) %extend Vrml_SFImage { %pythoncode { @@ -2473,51 +2162,7 @@ class Vrml_TextureCoordinate2 : public MMgt_TShared { }; -%extend Vrml_TextureCoordinate2 { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_Vrml_TextureCoordinate2(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_Vrml_TextureCoordinate2::Handle_Vrml_TextureCoordinate2 %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_Vrml_TextureCoordinate2; -class Handle_Vrml_TextureCoordinate2 : public Handle_MMgt_TShared { - - public: - // constructors - Handle_Vrml_TextureCoordinate2(); - Handle_Vrml_TextureCoordinate2(const Handle_Vrml_TextureCoordinate2 &aHandle); - Handle_Vrml_TextureCoordinate2(const Vrml_TextureCoordinate2 *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_Vrml_TextureCoordinate2 DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_Vrml_TextureCoordinate2 { - Vrml_TextureCoordinate2* _get_reference() { - return (Vrml_TextureCoordinate2*)$self->Access(); - } -}; - -%extend Handle_Vrml_TextureCoordinate2 { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(Vrml_TextureCoordinate2) %extend Vrml_TextureCoordinate2 { %pythoncode { diff --git a/src/SWIG_files/wrapper/VrmlAPI.i b/src/SWIG_files/wrapper/VrmlAPI.i index f71b936d2..4fc0780b2 100644 --- a/src/SWIG_files/wrapper/VrmlAPI.i +++ b/src/SWIG_files/wrapper/VrmlAPI.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define VRMLAPIDOCSTRING -"No docstring provided." +"API for writing to VRML 1.0 +" %enddef %module (package="OCC.Core", docstring=VRMLAPIDOCSTRING) VrmlAPI @@ -34,25 +35,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include VrmlAPI_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +52,7 @@ enum VrmlAPI_RepresentationOfShape { /* end public enums declaration */ + %rename(vrmlapi) VrmlAPI; class VrmlAPI { public: diff --git a/src/SWIG_files/wrapper/VrmlConverter.i b/src/SWIG_files/wrapper/VrmlConverter.i index f589733d1..60a9d80c6 100644 --- a/src/SWIG_files/wrapper/VrmlConverter.i +++ b/src/SWIG_files/wrapper/VrmlConverter.i @@ -18,7 +18,23 @@ along with pythonOCC. If not, see . */ %define VRMLCONVERTERDOCSTRING -"No docstring provided." +"-Purpose: +Computes different kinds of presentation and converts CasCade objects +( points, curves, surfaces, shapes ... ) into nodes of VRML format +( package Vrml ), into specific geometry shapes ( AsciiText, Cone, +IndexedFaceSet, IndexedLineSet, .... ) for requested (or default) properties +of the geometry and its appearance ( Material, Normal, Texture2, ... ) +and requested (or default) properties of cameras and lights ( OrthograpicCamera, +PerspectiveCamera, DirectionalLight, SpotLight ). + +All requested properties of a current representation are specified +in aDrawer of Drawer class, which qualifies how the presentation +algorithms compute the presentation of a specific kind of object. +This includes for example color, maximal chordial deviation, etc... with default values. + +In the result the classes of this package Add a corresponding VRML +description to anOStream. +" %enddef %module (package="OCC.Core", docstring=VRMLCONVERTERDOCSTRING) VrmlConverter @@ -34,25 +50,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include VrmlConverter_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -72,6 +74,13 @@ enum VrmlConverter_TypeOfCamera { /* end public enums declaration */ +%wrap_handle(VrmlConverter_Drawer) +%wrap_handle(VrmlConverter_LineAspect) +%wrap_handle(VrmlConverter_PointAspect) +%wrap_handle(VrmlConverter_Projector) +%wrap_handle(VrmlConverter_ShadingAspect) +%wrap_handle(VrmlConverter_IsoAspect) + class VrmlConverter_Curve { public: %feature("compactdefaultargs") Add; @@ -492,51 +501,7 @@ class VrmlConverter_Drawer : public MMgt_TShared { }; -%extend VrmlConverter_Drawer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlConverter_Drawer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlConverter_Drawer::Handle_VrmlConverter_Drawer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlConverter_Drawer; -class Handle_VrmlConverter_Drawer : public Handle_MMgt_TShared { - - public: - // constructors - Handle_VrmlConverter_Drawer(); - Handle_VrmlConverter_Drawer(const Handle_VrmlConverter_Drawer &aHandle); - Handle_VrmlConverter_Drawer(const VrmlConverter_Drawer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlConverter_Drawer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlConverter_Drawer { - VrmlConverter_Drawer* _get_reference() { - return (VrmlConverter_Drawer*)$self->Access(); - } -}; - -%extend Handle_VrmlConverter_Drawer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlConverter_Drawer) %extend VrmlConverter_Drawer { %pythoncode { @@ -609,51 +574,7 @@ class VrmlConverter_LineAspect : public MMgt_TShared { }; -%extend VrmlConverter_LineAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlConverter_LineAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlConverter_LineAspect::Handle_VrmlConverter_LineAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlConverter_LineAspect; -class Handle_VrmlConverter_LineAspect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_VrmlConverter_LineAspect(); - Handle_VrmlConverter_LineAspect(const Handle_VrmlConverter_LineAspect &aHandle); - Handle_VrmlConverter_LineAspect(const VrmlConverter_LineAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlConverter_LineAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlConverter_LineAspect { - VrmlConverter_LineAspect* _get_reference() { - return (VrmlConverter_LineAspect*)$self->Access(); - } -}; - -%extend Handle_VrmlConverter_LineAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlConverter_LineAspect) %extend VrmlConverter_LineAspect { %pythoncode { @@ -704,51 +625,7 @@ class VrmlConverter_PointAspect : public MMgt_TShared { }; -%extend VrmlConverter_PointAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlConverter_PointAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlConverter_PointAspect::Handle_VrmlConverter_PointAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlConverter_PointAspect; -class Handle_VrmlConverter_PointAspect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_VrmlConverter_PointAspect(); - Handle_VrmlConverter_PointAspect(const Handle_VrmlConverter_PointAspect &aHandle); - Handle_VrmlConverter_PointAspect(const VrmlConverter_PointAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlConverter_PointAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlConverter_PointAspect { - VrmlConverter_PointAspect* _get_reference() { - return (VrmlConverter_PointAspect*)$self->Access(); - } -}; - -%extend Handle_VrmlConverter_PointAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlConverter_PointAspect) %extend VrmlConverter_PointAspect { %pythoncode { @@ -817,51 +694,7 @@ class VrmlConverter_Projector : public MMgt_TShared { }; -%extend VrmlConverter_Projector { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlConverter_Projector(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlConverter_Projector::Handle_VrmlConverter_Projector %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlConverter_Projector; -class Handle_VrmlConverter_Projector : public Handle_MMgt_TShared { - - public: - // constructors - Handle_VrmlConverter_Projector(); - Handle_VrmlConverter_Projector(const Handle_VrmlConverter_Projector &aHandle); - Handle_VrmlConverter_Projector(const VrmlConverter_Projector *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlConverter_Projector DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlConverter_Projector { - VrmlConverter_Projector* _get_reference() { - return (VrmlConverter_Projector*)$self->Access(); - } -}; - -%extend Handle_VrmlConverter_Projector { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlConverter_Projector) %extend VrmlConverter_Projector { %pythoncode { @@ -958,51 +791,7 @@ class VrmlConverter_ShadingAspect : public MMgt_TShared { }; -%extend VrmlConverter_ShadingAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlConverter_ShadingAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlConverter_ShadingAspect::Handle_VrmlConverter_ShadingAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlConverter_ShadingAspect; -class Handle_VrmlConverter_ShadingAspect : public Handle_MMgt_TShared { - - public: - // constructors - Handle_VrmlConverter_ShadingAspect(); - Handle_VrmlConverter_ShadingAspect(const Handle_VrmlConverter_ShadingAspect &aHandle); - Handle_VrmlConverter_ShadingAspect(const VrmlConverter_ShadingAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlConverter_ShadingAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlConverter_ShadingAspect { - VrmlConverter_ShadingAspect* _get_reference() { - return (VrmlConverter_ShadingAspect*)$self->Access(); - } -}; - -%extend Handle_VrmlConverter_ShadingAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlConverter_ShadingAspect) %extend VrmlConverter_ShadingAspect { %pythoncode { @@ -1201,51 +990,7 @@ class VrmlConverter_IsoAspect : public VrmlConverter_LineAspect { }; -%extend VrmlConverter_IsoAspect { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlConverter_IsoAspect(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlConverter_IsoAspect::Handle_VrmlConverter_IsoAspect %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlConverter_IsoAspect; -class Handle_VrmlConverter_IsoAspect : public Handle_VrmlConverter_LineAspect { - - public: - // constructors - Handle_VrmlConverter_IsoAspect(); - Handle_VrmlConverter_IsoAspect(const Handle_VrmlConverter_IsoAspect &aHandle); - Handle_VrmlConverter_IsoAspect(const VrmlConverter_IsoAspect *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlConverter_IsoAspect DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlConverter_IsoAspect { - VrmlConverter_IsoAspect* _get_reference() { - return (VrmlConverter_IsoAspect*)$self->Access(); - } -}; - -%extend Handle_VrmlConverter_IsoAspect { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlConverter_IsoAspect) %extend VrmlConverter_IsoAspect { %pythoncode { diff --git a/src/SWIG_files/wrapper/VrmlData.i b/src/SWIG_files/wrapper/VrmlData.i index df3eba60c..4047fa339 100644 --- a/src/SWIG_files/wrapper/VrmlData.i +++ b/src/SWIG_files/wrapper/VrmlData.i @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include VrmlData_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef NCollection_Map VrmlData_MapOfNode; typedef NCollection_List VrmlData_ListOfNode; @@ -82,6 +68,26 @@ enum VrmlData_ErrorStatus { /* end public enums declaration */ +%wrap_handle(VrmlData_Node) +%wrap_handle(VrmlData_Appearance) +%wrap_handle(VrmlData_Geometry) +%wrap_handle(VrmlData_Group) +%wrap_handle(VrmlData_Material) +%wrap_handle(VrmlData_ShapeNode) +%wrap_handle(VrmlData_TextureCoordinate) +%wrap_handle(VrmlData_UnknownNode) +%wrap_handle(VrmlData_WorldInfo) +%wrap_handle(VrmlData_Box) +%wrap_handle(VrmlData_Color) +%wrap_handle(VrmlData_Cone) +%wrap_handle(VrmlData_Coordinate) +%wrap_handle(VrmlData_Cylinder) +%wrap_handle(VrmlData_ImageTexture) +%wrap_handle(VrmlData_IndexedLineSet) +%wrap_handle(VrmlData_Normal) +%wrap_handle(VrmlData_Sphere) +%wrap_handle(VrmlData_IndexedFaceSet) + %nodefaultctor VrmlData_Node; class VrmlData_Node : public Standard_Transient { public: @@ -208,51 +214,7 @@ class VrmlData_Node : public Standard_Transient { }; -%extend VrmlData_Node { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Node(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Node::Handle_VrmlData_Node %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Node; -class Handle_VrmlData_Node : public Handle_Standard_Transient { - - public: - // constructors - Handle_VrmlData_Node(); - Handle_VrmlData_Node(const Handle_VrmlData_Node &aHandle); - Handle_VrmlData_Node(const VrmlData_Node *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Node DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Node { - VrmlData_Node* _get_reference() { - return (VrmlData_Node*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Node { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Node) %extend VrmlData_Node { %pythoncode { @@ -660,51 +622,7 @@ class VrmlData_Appearance : public VrmlData_Node { }; -%extend VrmlData_Appearance { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Appearance(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Appearance::Handle_VrmlData_Appearance %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Appearance; -class Handle_VrmlData_Appearance : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_Appearance(); - Handle_VrmlData_Appearance(const Handle_VrmlData_Appearance &aHandle); - Handle_VrmlData_Appearance(const VrmlData_Appearance *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Appearance DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Appearance { - VrmlData_Appearance* _get_reference() { - return (VrmlData_Appearance*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Appearance { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Appearance) %extend VrmlData_Appearance { %pythoncode { @@ -723,51 +641,7 @@ class VrmlData_Geometry : public VrmlData_Node { }; -%extend VrmlData_Geometry { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Geometry(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Geometry::Handle_VrmlData_Geometry %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Geometry; -class Handle_VrmlData_Geometry : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_Geometry(); - Handle_VrmlData_Geometry(const Handle_VrmlData_Geometry &aHandle); - Handle_VrmlData_Geometry(const VrmlData_Geometry *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Geometry DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Geometry { - VrmlData_Geometry* _get_reference() { - return (VrmlData_Geometry*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Geometry { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Geometry) %extend VrmlData_Geometry { %pythoncode { @@ -901,51 +775,7 @@ typedef VrmlData_ListOfNode::Iterator Iterator; }; -%extend VrmlData_Group { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Group(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Group::Handle_VrmlData_Group %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Group; -class Handle_VrmlData_Group : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_Group(); - Handle_VrmlData_Group(const Handle_VrmlData_Group &aHandle); - Handle_VrmlData_Group(const VrmlData_Group *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Group DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Group { - VrmlData_Group* _get_reference() { - return (VrmlData_Group*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Group { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Group) %extend VrmlData_Group { %pythoncode { @@ -1094,51 +924,7 @@ class VrmlData_Material : public VrmlData_Node { }; -%extend VrmlData_Material { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Material(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Material::Handle_VrmlData_Material %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Material; -class Handle_VrmlData_Material : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_Material(); - Handle_VrmlData_Material(const Handle_VrmlData_Material &aHandle); - Handle_VrmlData_Material(const VrmlData_Material *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Material DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Material { - VrmlData_Material* _get_reference() { - return (VrmlData_Material*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Material { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Material) %extend VrmlData_Material { %pythoncode { @@ -1225,51 +1011,7 @@ class VrmlData_ShapeNode : public VrmlData_Node { }; -%extend VrmlData_ShapeNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_ShapeNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_ShapeNode::Handle_VrmlData_ShapeNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_ShapeNode; -class Handle_VrmlData_ShapeNode : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_ShapeNode(); - Handle_VrmlData_ShapeNode(const Handle_VrmlData_ShapeNode &aHandle); - Handle_VrmlData_ShapeNode(const VrmlData_ShapeNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_ShapeNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_ShapeNode { - VrmlData_ShapeNode* _get_reference() { - return (VrmlData_ShapeNode*)$self->Access(); - } -}; - -%extend Handle_VrmlData_ShapeNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_ShapeNode) %extend VrmlData_ShapeNode { %pythoncode { @@ -1348,51 +1090,7 @@ class VrmlData_TextureCoordinate : public VrmlData_Node { }; -%extend VrmlData_TextureCoordinate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_TextureCoordinate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_TextureCoordinate::Handle_VrmlData_TextureCoordinate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_TextureCoordinate; -class Handle_VrmlData_TextureCoordinate : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_TextureCoordinate(); - Handle_VrmlData_TextureCoordinate(const Handle_VrmlData_TextureCoordinate &aHandle); - Handle_VrmlData_TextureCoordinate(const VrmlData_TextureCoordinate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_TextureCoordinate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_TextureCoordinate { - VrmlData_TextureCoordinate* _get_reference() { - return (VrmlData_TextureCoordinate*)$self->Access(); - } -}; - -%extend Handle_VrmlData_TextureCoordinate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_TextureCoordinate) %extend VrmlData_TextureCoordinate { %pythoncode { @@ -1443,51 +1141,7 @@ class VrmlData_UnknownNode : public VrmlData_Node { }; -%extend VrmlData_UnknownNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_UnknownNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_UnknownNode::Handle_VrmlData_UnknownNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_UnknownNode; -class Handle_VrmlData_UnknownNode : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_UnknownNode(); - Handle_VrmlData_UnknownNode(const Handle_VrmlData_UnknownNode &aHandle); - Handle_VrmlData_UnknownNode(const VrmlData_UnknownNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_UnknownNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_UnknownNode { - VrmlData_UnknownNode* _get_reference() { - return (VrmlData_UnknownNode*)$self->Access(); - } -}; - -%extend Handle_VrmlData_UnknownNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_UnknownNode) %extend VrmlData_UnknownNode { %pythoncode { @@ -1576,51 +1230,7 @@ class VrmlData_WorldInfo : public VrmlData_Node { }; -%extend VrmlData_WorldInfo { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_WorldInfo(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_WorldInfo::Handle_VrmlData_WorldInfo %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_WorldInfo; -class Handle_VrmlData_WorldInfo : public Handle_VrmlData_Node { - - public: - // constructors - Handle_VrmlData_WorldInfo(); - Handle_VrmlData_WorldInfo(const Handle_VrmlData_WorldInfo &aHandle); - Handle_VrmlData_WorldInfo(const VrmlData_WorldInfo *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_WorldInfo DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_WorldInfo { - VrmlData_WorldInfo* _get_reference() { - return (VrmlData_WorldInfo*)$self->Access(); - } -}; - -%extend Handle_VrmlData_WorldInfo { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_WorldInfo) %extend VrmlData_WorldInfo { %pythoncode { @@ -1699,51 +1309,7 @@ class VrmlData_Box : public VrmlData_Geometry { }; -%extend VrmlData_Box { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Box(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Box::Handle_VrmlData_Box %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Box; -class Handle_VrmlData_Box : public Handle_VrmlData_Geometry { - - public: - // constructors - Handle_VrmlData_Box(); - Handle_VrmlData_Box(const Handle_VrmlData_Box &aHandle); - Handle_VrmlData_Box(const VrmlData_Box *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Box DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Box { - VrmlData_Box* _get_reference() { - return (VrmlData_Box*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Box { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Box) %extend VrmlData_Box { %pythoncode { @@ -1818,51 +1384,7 @@ class VrmlData_Color : public VrmlData_ArrayVec3d { }; -%extend VrmlData_Color { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Color(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Color::Handle_VrmlData_Color %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Color; -class Handle_VrmlData_Color : public Handle_VrmlData_ArrayVec3d { - - public: - // constructors - Handle_VrmlData_Color(); - Handle_VrmlData_Color(const Handle_VrmlData_Color &aHandle); - Handle_VrmlData_Color(const VrmlData_Color *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Color DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Color { - VrmlData_Color* _get_reference() { - return (VrmlData_Color*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Color { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Color) %extend VrmlData_Color { %pythoncode { @@ -1975,51 +1497,7 @@ class VrmlData_Cone : public VrmlData_Geometry { }; -%extend VrmlData_Cone { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Cone(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Cone::Handle_VrmlData_Cone %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Cone; -class Handle_VrmlData_Cone : public Handle_VrmlData_Geometry { - - public: - // constructors - Handle_VrmlData_Cone(); - Handle_VrmlData_Cone(const Handle_VrmlData_Cone &aHandle); - Handle_VrmlData_Cone(const VrmlData_Cone *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Cone DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Cone { - VrmlData_Cone* _get_reference() { - return (VrmlData_Cone*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Cone { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Cone) %extend VrmlData_Cone { %pythoncode { @@ -2084,51 +1562,7 @@ class VrmlData_Coordinate : public VrmlData_ArrayVec3d { }; -%extend VrmlData_Coordinate { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Coordinate(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Coordinate::Handle_VrmlData_Coordinate %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Coordinate; -class Handle_VrmlData_Coordinate : public Handle_VrmlData_ArrayVec3d { - - public: - // constructors - Handle_VrmlData_Coordinate(); - Handle_VrmlData_Coordinate(const Handle_VrmlData_Coordinate &aHandle); - Handle_VrmlData_Coordinate(const VrmlData_Coordinate *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Coordinate DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Coordinate { - VrmlData_Coordinate* _get_reference() { - return (VrmlData_Coordinate*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Coordinate { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Coordinate) %extend VrmlData_Coordinate { %pythoncode { @@ -2249,51 +1683,7 @@ class VrmlData_Cylinder : public VrmlData_Geometry { }; -%extend VrmlData_Cylinder { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Cylinder(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Cylinder::Handle_VrmlData_Cylinder %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Cylinder; -class Handle_VrmlData_Cylinder : public Handle_VrmlData_Geometry { - - public: - // constructors - Handle_VrmlData_Cylinder(); - Handle_VrmlData_Cylinder(const Handle_VrmlData_Cylinder &aHandle); - Handle_VrmlData_Cylinder(const VrmlData_Cylinder *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Cylinder DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Cylinder { - VrmlData_Cylinder* _get_reference() { - return (VrmlData_Cylinder*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Cylinder { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Cylinder) %extend VrmlData_Cylinder { %pythoncode { @@ -2358,51 +1748,7 @@ class VrmlData_ImageTexture : public VrmlData_Texture { }; -%extend VrmlData_ImageTexture { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_ImageTexture(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_ImageTexture::Handle_VrmlData_ImageTexture %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_ImageTexture; -class Handle_VrmlData_ImageTexture : public Handle_VrmlData_Texture { - - public: - // constructors - Handle_VrmlData_ImageTexture(); - Handle_VrmlData_ImageTexture(const Handle_VrmlData_ImageTexture &aHandle); - Handle_VrmlData_ImageTexture(const VrmlData_ImageTexture *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_ImageTexture DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_ImageTexture { - VrmlData_ImageTexture* _get_reference() { - return (VrmlData_ImageTexture*)$self->Access(); - } -}; - -%extend Handle_VrmlData_ImageTexture { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_ImageTexture) %extend VrmlData_ImageTexture { %pythoncode { @@ -2561,51 +1907,7 @@ class VrmlData_IndexedLineSet : public VrmlData_Geometry { }; -%extend VrmlData_IndexedLineSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_IndexedLineSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_IndexedLineSet::Handle_VrmlData_IndexedLineSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_IndexedLineSet; -class Handle_VrmlData_IndexedLineSet : public Handle_VrmlData_Geometry { - - public: - // constructors - Handle_VrmlData_IndexedLineSet(); - Handle_VrmlData_IndexedLineSet(const Handle_VrmlData_IndexedLineSet &aHandle); - Handle_VrmlData_IndexedLineSet(const VrmlData_IndexedLineSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_IndexedLineSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_IndexedLineSet { - VrmlData_IndexedLineSet* _get_reference() { - return (VrmlData_IndexedLineSet*)$self->Access(); - } -}; - -%extend Handle_VrmlData_IndexedLineSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_IndexedLineSet) %extend VrmlData_IndexedLineSet { %pythoncode { @@ -2670,51 +1972,7 @@ class VrmlData_Normal : public VrmlData_ArrayVec3d { }; -%extend VrmlData_Normal { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Normal(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Normal::Handle_VrmlData_Normal %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Normal; -class Handle_VrmlData_Normal : public Handle_VrmlData_ArrayVec3d { - - public: - // constructors - Handle_VrmlData_Normal(); - Handle_VrmlData_Normal(const Handle_VrmlData_Normal &aHandle); - Handle_VrmlData_Normal(const VrmlData_Normal *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Normal DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Normal { - VrmlData_Normal* _get_reference() { - return (VrmlData_Normal*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Normal { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Normal) %extend VrmlData_Normal { %pythoncode { @@ -2789,51 +2047,7 @@ class VrmlData_Sphere : public VrmlData_Geometry { }; -%extend VrmlData_Sphere { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_Sphere(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_Sphere::Handle_VrmlData_Sphere %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_Sphere; -class Handle_VrmlData_Sphere : public Handle_VrmlData_Geometry { - - public: - // constructors - Handle_VrmlData_Sphere(); - Handle_VrmlData_Sphere(const Handle_VrmlData_Sphere &aHandle); - Handle_VrmlData_Sphere(const VrmlData_Sphere *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_Sphere DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_Sphere { - VrmlData_Sphere* _get_reference() { - return (VrmlData_Sphere*)$self->Access(); - } -}; - -%extend Handle_VrmlData_Sphere { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_Sphere) %extend VrmlData_Sphere { %pythoncode { @@ -3090,51 +2304,7 @@ class VrmlData_IndexedFaceSet : public VrmlData_Faceted { }; -%extend VrmlData_IndexedFaceSet { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_VrmlData_IndexedFaceSet(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_VrmlData_IndexedFaceSet::Handle_VrmlData_IndexedFaceSet %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_VrmlData_IndexedFaceSet; -class Handle_VrmlData_IndexedFaceSet : public Handle_VrmlData_Faceted { - - public: - // constructors - Handle_VrmlData_IndexedFaceSet(); - Handle_VrmlData_IndexedFaceSet(const Handle_VrmlData_IndexedFaceSet &aHandle); - Handle_VrmlData_IndexedFaceSet(const VrmlData_IndexedFaceSet *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_VrmlData_IndexedFaceSet DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_VrmlData_IndexedFaceSet { - VrmlData_IndexedFaceSet* _get_reference() { - return (VrmlData_IndexedFaceSet*)$self->Access(); - } -}; - -%extend Handle_VrmlData_IndexedFaceSet { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(VrmlData_IndexedFaceSet) %extend VrmlData_IndexedFaceSet { %pythoncode { diff --git a/src/SWIG_files/wrapper/XBRepMesh.i b/src/SWIG_files/wrapper/XBRepMesh.i index 4db405056..ea8d27809 100644 --- a/src/SWIG_files/wrapper/XBRepMesh.i +++ b/src/SWIG_files/wrapper/XBRepMesh.i @@ -34,31 +34,18 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XBRepMesh_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %rename(xbrepmesh) XBRepMesh; class XBRepMesh { public: diff --git a/src/SWIG_files/wrapper/XBRepMesh_headers.i b/src/SWIG_files/wrapper/XBRepMesh_headers.i index 7562a2f93..515446214 100644 --- a/src/SWIG_files/wrapper/XBRepMesh_headers.i +++ b/src/SWIG_files/wrapper/XBRepMesh_headers.i @@ -161,6 +161,256 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/SWIG_files/wrapper/XCAFApp.i b/src/SWIG_files/wrapper/XCAFApp.i index 95b02570b..a81180f8c 100644 --- a/src/SWIG_files/wrapper/XCAFApp.i +++ b/src/SWIG_files/wrapper/XCAFApp.i @@ -18,7 +18,12 @@ along with pythonOCC. If not, see . */ %define XCAFAPPDOCSTRING -"No docstring provided." +"Defines application for DECAF document +and provides application-specific tools + +The application should be registered before work with DECAF +documents by call to XCAFApp_Application::GetApplication() +" %enddef %module (package="OCC.Core", docstring=XCAFAPPDOCSTRING) XCAFApp @@ -34,31 +39,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XCAFApp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XCAFApp_Application) + %nodefaultctor XCAFApp_Application; class XCAFApp_Application : public TDocStd_Application { public: @@ -91,51 +84,7 @@ class XCAFApp_Application : public TDocStd_Application { }; -%extend XCAFApp_Application { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFApp_Application(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFApp_Application::Handle_XCAFApp_Application %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFApp_Application; -class Handle_XCAFApp_Application : public Handle_TDocStd_Application { - - public: - // constructors - Handle_XCAFApp_Application(); - Handle_XCAFApp_Application(const Handle_XCAFApp_Application &aHandle); - Handle_XCAFApp_Application(const XCAFApp_Application *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFApp_Application DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFApp_Application { - XCAFApp_Application* _get_reference() { - return (XCAFApp_Application*)$self->Access(); - } -}; - -%extend Handle_XCAFApp_Application { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFApp_Application) %extend XCAFApp_Application { %pythoncode { diff --git a/src/SWIG_files/wrapper/XCAFDoc.i b/src/SWIG_files/wrapper/XCAFDoc.i index c53ae2cfc..07df06158 100644 --- a/src/SWIG_files/wrapper/XCAFDoc.i +++ b/src/SWIG_files/wrapper/XCAFDoc.i @@ -18,7 +18,21 @@ along with pythonOCC. If not, see . */ %define XCAFDOCDOCSTRING -"No docstring provided." +"Definition of general structure of DECAF document +and tools to work with it + +The document is composed of sections, each section +storing its own kind of data and managing by corresponding +tool +Some properties can be attached directly to shapes. These properties are: +* Name (the standard definition from OCAF) - class TDataStd_Name +* Centroid (for the validation of transfer) - class XCAFDoc_Centroid +* Volume (for the validation of transfer) - class XCAFDoc_Volume +* Area (for the validation of transfer) - class XCafDoc_Area +Management of these attributes is realized by OCAF. For getting +the attributes attached to a label the method class +TDF_Label::FindAttribute() should be used. +" %enddef %module (package="OCC.Core", docstring=XCAFDOCDOCSTRING) XCAFDoc @@ -34,25 +48,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XCAFDoc_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -65,6 +65,25 @@ enum XCAFDoc_ColorType { /* end public enums declaration */ +%wrap_handle(XCAFDoc_Area) +%wrap_handle(XCAFDoc_Centroid) +%wrap_handle(XCAFDoc_Color) +%wrap_handle(XCAFDoc_ColorTool) +%wrap_handle(XCAFDoc_DataMapNodeOfDataMapOfShapeLabel) +%wrap_handle(XCAFDoc_Datum) +%wrap_handle(XCAFDoc_DimTol) +%wrap_handle(XCAFDoc_DimTolTool) +%wrap_handle(XCAFDoc_DocumentTool) +%wrap_handle(XCAFDoc_GraphNode) +%wrap_handle(XCAFDoc_LayerTool) +%wrap_handle(XCAFDoc_Location) +%wrap_handle(XCAFDoc_Material) +%wrap_handle(XCAFDoc_MaterialTool) +%wrap_handle(XCAFDoc_SequenceNodeOfGraphNodeSequence) +%wrap_handle(XCAFDoc_ShapeMapTool) +%wrap_handle(XCAFDoc_ShapeTool) +%wrap_handle(XCAFDoc_Volume) + %rename(xcafdoc) XCAFDoc; class XCAFDoc { public: @@ -216,51 +235,7 @@ class XCAFDoc_Area : public TDF_Attribute { }; -%extend XCAFDoc_Area { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Area(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Area::Handle_XCAFDoc_Area %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Area; -class Handle_XCAFDoc_Area : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Area(); - Handle_XCAFDoc_Area(const Handle_XCAFDoc_Area &aHandle); - Handle_XCAFDoc_Area(const XCAFDoc_Area *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Area DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Area { - XCAFDoc_Area* _get_reference() { - return (XCAFDoc_Area*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Area { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Area) %extend XCAFDoc_Area { %pythoncode { @@ -343,51 +318,7 @@ class XCAFDoc_Centroid : public TDF_Attribute { }; -%extend XCAFDoc_Centroid { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Centroid(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Centroid::Handle_XCAFDoc_Centroid %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Centroid; -class Handle_XCAFDoc_Centroid : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Centroid(); - Handle_XCAFDoc_Centroid(const Handle_XCAFDoc_Centroid &aHandle); - Handle_XCAFDoc_Centroid(const XCAFDoc_Centroid *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Centroid DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Centroid { - XCAFDoc_Centroid* _get_reference() { - return (XCAFDoc_Centroid*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Centroid { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Centroid) %extend XCAFDoc_Centroid { %pythoncode { @@ -502,51 +433,7 @@ class XCAFDoc_Color : public TDF_Attribute { }; -%extend XCAFDoc_Color { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Color(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Color::Handle_XCAFDoc_Color %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Color; -class Handle_XCAFDoc_Color : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Color(); - Handle_XCAFDoc_Color(const Handle_XCAFDoc_Color &aHandle); - Handle_XCAFDoc_Color(const XCAFDoc_Color *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Color DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Color { - XCAFDoc_Color* _get_reference() { - return (XCAFDoc_Color*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Color { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Color) %extend XCAFDoc_Color { %pythoncode { @@ -863,51 +750,7 @@ class XCAFDoc_ColorTool : public TDF_Attribute { }; -%extend XCAFDoc_ColorTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_ColorTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_ColorTool::Handle_XCAFDoc_ColorTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_ColorTool; -class Handle_XCAFDoc_ColorTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_ColorTool(); - Handle_XCAFDoc_ColorTool(const Handle_XCAFDoc_ColorTool &aHandle); - Handle_XCAFDoc_ColorTool(const XCAFDoc_ColorTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_ColorTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_ColorTool { - XCAFDoc_ColorTool* _get_reference() { - return (XCAFDoc_ColorTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_ColorTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_ColorTool) %extend XCAFDoc_ColorTool { %pythoncode { @@ -973,51 +816,7 @@ class XCAFDoc_DataMapNodeOfDataMapOfShapeLabel : public TCollection_MapNode { }; -%extend XCAFDoc_DataMapNodeOfDataMapOfShapeLabel { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel::Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel; -class Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel(); - Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel(const Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel &aHandle); - Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel(const XCAFDoc_DataMapNodeOfDataMapOfShapeLabel *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel { - XCAFDoc_DataMapNodeOfDataMapOfShapeLabel* _get_reference() { - return (XCAFDoc_DataMapNodeOfDataMapOfShapeLabel*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_DataMapNodeOfDataMapOfShapeLabel { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_DataMapNodeOfDataMapOfShapeLabel) %extend XCAFDoc_DataMapNodeOfDataMapOfShapeLabel { %pythoncode { @@ -1177,51 +976,7 @@ class XCAFDoc_Datum : public TDF_Attribute { }; -%extend XCAFDoc_Datum { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Datum(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Datum::Handle_XCAFDoc_Datum %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Datum; -class Handle_XCAFDoc_Datum : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Datum(); - Handle_XCAFDoc_Datum(const Handle_XCAFDoc_Datum &aHandle); - Handle_XCAFDoc_Datum(const XCAFDoc_Datum *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Datum DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Datum { - XCAFDoc_Datum* _get_reference() { - return (XCAFDoc_Datum*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Datum { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Datum) %extend XCAFDoc_Datum { %pythoncode { @@ -1306,51 +1061,7 @@ class XCAFDoc_DimTol : public TDF_Attribute { }; -%extend XCAFDoc_DimTol { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_DimTol(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_DimTol::Handle_XCAFDoc_DimTol %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_DimTol; -class Handle_XCAFDoc_DimTol : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_DimTol(); - Handle_XCAFDoc_DimTol(const Handle_XCAFDoc_DimTol &aHandle); - Handle_XCAFDoc_DimTol(const XCAFDoc_DimTol *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_DimTol DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_DimTol { - XCAFDoc_DimTol* _get_reference() { - return (XCAFDoc_DimTol*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_DimTol { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_DimTol) %extend XCAFDoc_DimTol { %pythoncode { @@ -1627,51 +1338,7 @@ class XCAFDoc_DimTolTool : public TDF_Attribute { }; -%extend XCAFDoc_DimTolTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_DimTolTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_DimTolTool::Handle_XCAFDoc_DimTolTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_DimTolTool; -class Handle_XCAFDoc_DimTolTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_DimTolTool(); - Handle_XCAFDoc_DimTolTool(const Handle_XCAFDoc_DimTolTool &aHandle); - Handle_XCAFDoc_DimTolTool(const XCAFDoc_DimTolTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_DimTolTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_DimTolTool { - XCAFDoc_DimTolTool* _get_reference() { - return (XCAFDoc_DimTolTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_DimTolTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_DimTolTool) %extend XCAFDoc_DimTolTool { %pythoncode { @@ -1830,51 +1497,7 @@ class XCAFDoc_DocumentTool : public TDF_Attribute { }; -%extend XCAFDoc_DocumentTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_DocumentTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_DocumentTool::Handle_XCAFDoc_DocumentTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_DocumentTool; -class Handle_XCAFDoc_DocumentTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_DocumentTool(); - Handle_XCAFDoc_DocumentTool(const Handle_XCAFDoc_DocumentTool &aHandle); - Handle_XCAFDoc_DocumentTool(const XCAFDoc_DocumentTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_DocumentTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_DocumentTool { - XCAFDoc_DocumentTool* _get_reference() { - return (XCAFDoc_DocumentTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_DocumentTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_DocumentTool) %extend XCAFDoc_DocumentTool { %pythoncode { @@ -2081,51 +1704,7 @@ class XCAFDoc_GraphNode : public TDF_Attribute { }; -%extend XCAFDoc_GraphNode { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_GraphNode(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_GraphNode::Handle_XCAFDoc_GraphNode %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_GraphNode; -class Handle_XCAFDoc_GraphNode : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_GraphNode(); - Handle_XCAFDoc_GraphNode(const Handle_XCAFDoc_GraphNode &aHandle); - Handle_XCAFDoc_GraphNode(const XCAFDoc_GraphNode *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_GraphNode DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_GraphNode { - XCAFDoc_GraphNode* _get_reference() { - return (XCAFDoc_GraphNode*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_GraphNode { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_GraphNode) %extend XCAFDoc_GraphNode { %pythoncode { @@ -2619,51 +2198,7 @@ class XCAFDoc_LayerTool : public TDF_Attribute { }; -%extend XCAFDoc_LayerTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_LayerTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_LayerTool::Handle_XCAFDoc_LayerTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_LayerTool; -class Handle_XCAFDoc_LayerTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_LayerTool(); - Handle_XCAFDoc_LayerTool(const Handle_XCAFDoc_LayerTool &aHandle); - Handle_XCAFDoc_LayerTool(const XCAFDoc_LayerTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_LayerTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_LayerTool { - XCAFDoc_LayerTool* _get_reference() { - return (XCAFDoc_LayerTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_LayerTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_LayerTool) %extend XCAFDoc_LayerTool { %pythoncode { @@ -2730,51 +2265,7 @@ class XCAFDoc_Location : public TDF_Attribute { }; -%extend XCAFDoc_Location { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Location(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Location::Handle_XCAFDoc_Location %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Location; -class Handle_XCAFDoc_Location : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Location(); - Handle_XCAFDoc_Location(const Handle_XCAFDoc_Location &aHandle); - Handle_XCAFDoc_Location(const XCAFDoc_Location *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Location DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Location { - XCAFDoc_Location* _get_reference() { - return (XCAFDoc_Location*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Location { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Location) %extend XCAFDoc_Location { %pythoncode { @@ -2867,51 +2358,7 @@ class XCAFDoc_Material : public TDF_Attribute { }; -%extend XCAFDoc_Material { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Material(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Material::Handle_XCAFDoc_Material %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Material; -class Handle_XCAFDoc_Material : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Material(); - Handle_XCAFDoc_Material(const Handle_XCAFDoc_Material &aHandle); - Handle_XCAFDoc_Material(const XCAFDoc_Material *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Material DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Material { - XCAFDoc_Material* _get_reference() { - return (XCAFDoc_Material*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Material { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Material) %extend XCAFDoc_Material { %pythoncode { @@ -3060,51 +2507,7 @@ class XCAFDoc_MaterialTool : public TDF_Attribute { }; -%extend XCAFDoc_MaterialTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_MaterialTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_MaterialTool::Handle_XCAFDoc_MaterialTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_MaterialTool; -class Handle_XCAFDoc_MaterialTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_MaterialTool(); - Handle_XCAFDoc_MaterialTool(const Handle_XCAFDoc_MaterialTool &aHandle); - Handle_XCAFDoc_MaterialTool(const XCAFDoc_MaterialTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_MaterialTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_MaterialTool { - XCAFDoc_MaterialTool* _get_reference() { - return (XCAFDoc_MaterialTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_MaterialTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_MaterialTool) %extend XCAFDoc_MaterialTool { %pythoncode { @@ -3131,51 +2534,7 @@ class XCAFDoc_SequenceNodeOfGraphNodeSequence : public TCollection_SeqNode { }; -%extend XCAFDoc_SequenceNodeOfGraphNodeSequence { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence::Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence; -class Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence(); - Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence(const Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence &aHandle); - Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence(const XCAFDoc_SequenceNodeOfGraphNodeSequence *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence { - XCAFDoc_SequenceNodeOfGraphNodeSequence* _get_reference() { - return (XCAFDoc_SequenceNodeOfGraphNodeSequence*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_SequenceNodeOfGraphNodeSequence { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_SequenceNodeOfGraphNodeSequence) %extend XCAFDoc_SequenceNodeOfGraphNodeSequence { %pythoncode { @@ -3248,51 +2607,7 @@ class XCAFDoc_ShapeMapTool : public TDF_Attribute { }; -%extend XCAFDoc_ShapeMapTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_ShapeMapTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_ShapeMapTool::Handle_XCAFDoc_ShapeMapTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_ShapeMapTool; -class Handle_XCAFDoc_ShapeMapTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_ShapeMapTool(); - Handle_XCAFDoc_ShapeMapTool(const Handle_XCAFDoc_ShapeMapTool &aHandle); - Handle_XCAFDoc_ShapeMapTool(const XCAFDoc_ShapeMapTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_ShapeMapTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_ShapeMapTool { - XCAFDoc_ShapeMapTool* _get_reference() { - return (XCAFDoc_ShapeMapTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_ShapeMapTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_ShapeMapTool) %extend XCAFDoc_ShapeMapTool { %pythoncode { @@ -3889,51 +3204,7 @@ class XCAFDoc_ShapeTool : public TDF_Attribute { }; -%extend XCAFDoc_ShapeTool { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_ShapeTool(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_ShapeTool::Handle_XCAFDoc_ShapeTool %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_ShapeTool; -class Handle_XCAFDoc_ShapeTool : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_ShapeTool(); - Handle_XCAFDoc_ShapeTool(const Handle_XCAFDoc_ShapeTool &aHandle); - Handle_XCAFDoc_ShapeTool(const XCAFDoc_ShapeTool *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_ShapeTool DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_ShapeTool { - XCAFDoc_ShapeTool* _get_reference() { - return (XCAFDoc_ShapeTool*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_ShapeTool { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_ShapeTool) %extend XCAFDoc_ShapeTool { %pythoncode { @@ -4018,51 +3289,7 @@ class XCAFDoc_Volume : public TDF_Attribute { }; -%extend XCAFDoc_Volume { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFDoc_Volume(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFDoc_Volume::Handle_XCAFDoc_Volume %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFDoc_Volume; -class Handle_XCAFDoc_Volume : public Handle_TDF_Attribute { - - public: - // constructors - Handle_XCAFDoc_Volume(); - Handle_XCAFDoc_Volume(const Handle_XCAFDoc_Volume &aHandle); - Handle_XCAFDoc_Volume(const XCAFDoc_Volume *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFDoc_Volume DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFDoc_Volume { - XCAFDoc_Volume* _get_reference() { - return (XCAFDoc_Volume*)$self->Access(); - } -}; - -%extend Handle_XCAFDoc_Volume { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFDoc_Volume) %extend XCAFDoc_Volume { %pythoncode { diff --git a/src/SWIG_files/wrapper/XCAFPrs.i b/src/SWIG_files/wrapper/XCAFPrs.i index eebc90777..451052610 100644 --- a/src/SWIG_files/wrapper/XCAFPrs.i +++ b/src/SWIG_files/wrapper/XCAFPrs.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define XCAFPRSDOCSTRING -"No docstring provided." +"Presentation (visualiation, selection etc.) tools for +DECAF documents +" %enddef %module (package="OCC.Core", docstring=XCAFPRSDOCSTRING) XCAFPrs @@ -34,31 +36,22 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XCAFPrs_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XCAFPrs_DataMapNodeOfDataMapOfShapeStyle) +%wrap_handle(XCAFPrs_DataMapNodeOfDataMapOfStyleShape) +%wrap_handle(XCAFPrs_DataMapNodeOfDataMapOfStyleTransient) +%wrap_handle(XCAFPrs_Driver) + %rename(xcafprs) XCAFPrs; class XCAFPrs { public: @@ -94,71 +87,6 @@ class XCAFPrs { __repr__ = _dumps_object } }; -%nodefaultctor XCAFPrs_AISObject; -class XCAFPrs_AISObject : public AIS_ColoredShape { - public: - %feature("compactdefaultargs") XCAFPrs_AISObject; - %feature("autodoc", " * Creates an object to visualise the shape label. - - :param theLabel: - :type theLabel: TDF_Label & - :rtype: None -") XCAFPrs_AISObject; - XCAFPrs_AISObject (const TDF_Label & theLabel); -}; - - -%extend XCAFPrs_AISObject { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFPrs_AISObject(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFPrs_AISObject::Handle_XCAFPrs_AISObject %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFPrs_AISObject; -class Handle_XCAFPrs_AISObject : public Handle_AIS_ColoredShape { - - public: - // constructors - Handle_XCAFPrs_AISObject(); - Handle_XCAFPrs_AISObject(const Handle_XCAFPrs_AISObject &aHandle); - Handle_XCAFPrs_AISObject(const XCAFPrs_AISObject *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFPrs_AISObject DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFPrs_AISObject { - XCAFPrs_AISObject* _get_reference() { - return (XCAFPrs_AISObject*)$self->Access(); - } -}; - -%extend Handle_XCAFPrs_AISObject { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; - -%extend XCAFPrs_AISObject { - %pythoncode { - __repr__ = _dumps_object - } -}; %nodefaultctor XCAFPrs_DataMapIteratorOfDataMapOfShapeStyle; class XCAFPrs_DataMapIteratorOfDataMapOfShapeStyle : public TCollection_BasicMapIterator { public: @@ -288,51 +216,7 @@ class XCAFPrs_DataMapNodeOfDataMapOfShapeStyle : public TCollection_MapNode { }; -%extend XCAFPrs_DataMapNodeOfDataMapOfShapeStyle { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle::Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle; -class Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle(); - Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle(const Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle &aHandle); - Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle(const XCAFPrs_DataMapNodeOfDataMapOfShapeStyle *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle { - XCAFPrs_DataMapNodeOfDataMapOfShapeStyle* _get_reference() { - return (XCAFPrs_DataMapNodeOfDataMapOfShapeStyle*)$self->Access(); - } -}; - -%extend Handle_XCAFPrs_DataMapNodeOfDataMapOfShapeStyle { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFPrs_DataMapNodeOfDataMapOfShapeStyle) %extend XCAFPrs_DataMapNodeOfDataMapOfShapeStyle { %pythoncode { @@ -363,51 +247,7 @@ class XCAFPrs_DataMapNodeOfDataMapOfStyleShape : public TCollection_MapNode { }; -%extend XCAFPrs_DataMapNodeOfDataMapOfStyleShape { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape::Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape; -class Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape(); - Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape(const Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape &aHandle); - Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape(const XCAFPrs_DataMapNodeOfDataMapOfStyleShape *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape { - XCAFPrs_DataMapNodeOfDataMapOfStyleShape* _get_reference() { - return (XCAFPrs_DataMapNodeOfDataMapOfStyleShape*)$self->Access(); - } -}; - -%extend Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleShape { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFPrs_DataMapNodeOfDataMapOfStyleShape) %extend XCAFPrs_DataMapNodeOfDataMapOfStyleShape { %pythoncode { @@ -438,51 +278,7 @@ class XCAFPrs_DataMapNodeOfDataMapOfStyleTransient : public TCollection_MapNode }; -%extend XCAFPrs_DataMapNodeOfDataMapOfStyleTransient { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient::Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient; -class Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient(); - Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient(const Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient &aHandle); - Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient(const XCAFPrs_DataMapNodeOfDataMapOfStyleTransient *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient { - XCAFPrs_DataMapNodeOfDataMapOfStyleTransient* _get_reference() { - return (XCAFPrs_DataMapNodeOfDataMapOfStyleTransient*)$self->Access(); - } -}; - -%extend Handle_XCAFPrs_DataMapNodeOfDataMapOfStyleTransient { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFPrs_DataMapNodeOfDataMapOfStyleTransient) %extend XCAFPrs_DataMapNodeOfDataMapOfStyleTransient { %pythoncode { @@ -758,51 +554,7 @@ class XCAFPrs_Driver : public TPrsStd_Driver { }; -%extend XCAFPrs_Driver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XCAFPrs_Driver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XCAFPrs_Driver::Handle_XCAFPrs_Driver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XCAFPrs_Driver; -class Handle_XCAFPrs_Driver : public Handle_TPrsStd_Driver { - - public: - // constructors - Handle_XCAFPrs_Driver(); - Handle_XCAFPrs_Driver(const Handle_XCAFPrs_Driver &aHandle); - Handle_XCAFPrs_Driver(const XCAFPrs_Driver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XCAFPrs_Driver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XCAFPrs_Driver { - XCAFPrs_Driver* _get_reference() { - return (XCAFPrs_Driver*)$self->Access(); - } -}; - -%extend Handle_XCAFPrs_Driver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XCAFPrs_Driver) %extend XCAFPrs_Driver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XCAFPrs_headers.i b/src/SWIG_files/wrapper/XCAFPrs_headers.i index ae722ca60..b4d8b18a1 100644 --- a/src/SWIG_files/wrapper/XCAFPrs_headers.i +++ b/src/SWIG_files/wrapper/XCAFPrs_headers.i @@ -205,6 +205,65 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -304,65 +363,6 @@ along with pythonOCC. If not, see . #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include @@ -1479,8 +1479,8 @@ along with pythonOCC. If not, see . %import TDF.i %import TopLoc.i %import Standard.i -%import AIS.i %import TCollection.i %import TopoDS.i %import TPrsStd.i +%import AIS.i %import Quantity.i diff --git a/src/SWIG_files/wrapper/XSControl.i b/src/SWIG_files/wrapper/XSControl.i index fc9c72841..11bfdfcc1 100644 --- a/src/SWIG_files/wrapper/XSControl.i +++ b/src/SWIG_files/wrapper/XSControl.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define XSCONTROLDOCSTRING -"No docstring provided." +"-Purpose : This package provides complements to IFSelect & Co for +control of a session +" %enddef %module (package="OCC.Core", docstring=XSCONTROLDOCSTRING) XSControl @@ -34,31 +36,25 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XSControl_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XSControl_ConnectedShapes) +%wrap_handle(XSControl_Controller) +%wrap_handle(XSControl_SelectForTransfer) +%wrap_handle(XSControl_SignTransferStatus) +%wrap_handle(XSControl_TransferReader) +%wrap_handle(XSControl_TransferWriter) +%wrap_handle(XSControl_WorkSession) + %rename(xscontrol) XSControl; class XSControl { public: @@ -146,51 +142,7 @@ class XSControl_ConnectedShapes : public IFSelect_SelectExplore { }; -%extend XSControl_ConnectedShapes { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_ConnectedShapes(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_ConnectedShapes::Handle_XSControl_ConnectedShapes %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_ConnectedShapes; -class Handle_XSControl_ConnectedShapes : public Handle_IFSelect_SelectExplore { - - public: - // constructors - Handle_XSControl_ConnectedShapes(); - Handle_XSControl_ConnectedShapes(const Handle_XSControl_ConnectedShapes &aHandle); - Handle_XSControl_ConnectedShapes(const XSControl_ConnectedShapes *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_ConnectedShapes DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_ConnectedShapes { - XSControl_ConnectedShapes* _get_reference() { - return (XSControl_ConnectedShapes*)$self->Access(); - } -}; - -%extend Handle_XSControl_ConnectedShapes { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_ConnectedShapes) %extend XSControl_ConnectedShapes { %pythoncode { @@ -547,51 +499,7 @@ class XSControl_Controller : public MMgt_TShared { }; -%extend XSControl_Controller { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_Controller(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_Controller::Handle_XSControl_Controller %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_Controller; -class Handle_XSControl_Controller : public Handle_MMgt_TShared { - - public: - // constructors - Handle_XSControl_Controller(); - Handle_XSControl_Controller(const Handle_XSControl_Controller &aHandle); - Handle_XSControl_Controller(const XSControl_Controller *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_Controller DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_Controller { - XSControl_Controller* _get_reference() { - return (XSControl_Controller*)$self->Access(); - } -}; - -%extend Handle_XSControl_Controller { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_Controller) %extend XSControl_Controller { %pythoncode { @@ -941,51 +849,7 @@ class XSControl_SelectForTransfer : public IFSelect_SelectExtract { }; -%extend XSControl_SelectForTransfer { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_SelectForTransfer(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_SelectForTransfer::Handle_XSControl_SelectForTransfer %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_SelectForTransfer; -class Handle_XSControl_SelectForTransfer : public Handle_IFSelect_SelectExtract { - - public: - // constructors - Handle_XSControl_SelectForTransfer(); - Handle_XSControl_SelectForTransfer(const Handle_XSControl_SelectForTransfer &aHandle); - Handle_XSControl_SelectForTransfer(const XSControl_SelectForTransfer *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_SelectForTransfer DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_SelectForTransfer { - XSControl_SelectForTransfer* _get_reference() { - return (XSControl_SelectForTransfer*)$self->Access(); - } -}; - -%extend Handle_XSControl_SelectForTransfer { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_SelectForTransfer) %extend XSControl_SelectForTransfer { %pythoncode { @@ -1050,51 +914,7 @@ class XSControl_SignTransferStatus : public IFSelect_Signature { }; -%extend XSControl_SignTransferStatus { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_SignTransferStatus(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_SignTransferStatus::Handle_XSControl_SignTransferStatus %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_SignTransferStatus; -class Handle_XSControl_SignTransferStatus : public Handle_IFSelect_Signature { - - public: - // constructors - Handle_XSControl_SignTransferStatus(); - Handle_XSControl_SignTransferStatus(const Handle_XSControl_SignTransferStatus &aHandle); - Handle_XSControl_SignTransferStatus(const XSControl_SignTransferStatus *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_SignTransferStatus DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_SignTransferStatus { - XSControl_SignTransferStatus* _get_reference() { - return (XSControl_SignTransferStatus*)$self->Access(); - } -}; - -%extend Handle_XSControl_SignTransferStatus { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_SignTransferStatus) %extend XSControl_SignTransferStatus { %pythoncode { @@ -1505,51 +1325,7 @@ class XSControl_TransferReader : public MMgt_TShared { }; -%extend XSControl_TransferReader { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_TransferReader(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_TransferReader::Handle_XSControl_TransferReader %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_TransferReader; -class Handle_XSControl_TransferReader : public Handle_MMgt_TShared { - - public: - // constructors - Handle_XSControl_TransferReader(); - Handle_XSControl_TransferReader(const Handle_XSControl_TransferReader &aHandle); - Handle_XSControl_TransferReader(const XSControl_TransferReader *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_TransferReader DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_TransferReader { - XSControl_TransferReader* _get_reference() { - return (XSControl_TransferReader*)$self->Access(); - } -}; - -%extend Handle_XSControl_TransferReader { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_TransferReader) %extend XSControl_TransferReader { %pythoncode { @@ -1690,51 +1466,7 @@ class XSControl_TransferWriter : public MMgt_TShared { }; -%extend XSControl_TransferWriter { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_TransferWriter(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_TransferWriter::Handle_XSControl_TransferWriter %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_TransferWriter; -class Handle_XSControl_TransferWriter : public Handle_MMgt_TShared { - - public: - // constructors - Handle_XSControl_TransferWriter(); - Handle_XSControl_TransferWriter(const Handle_XSControl_TransferWriter &aHandle); - Handle_XSControl_TransferWriter(const XSControl_TransferWriter *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_TransferWriter DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_TransferWriter { - XSControl_TransferWriter* _get_reference() { - return (XSControl_TransferWriter*)$self->Access(); - } -}; - -%extend Handle_XSControl_TransferWriter { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_TransferWriter) %extend XSControl_TransferWriter { %pythoncode { @@ -2316,51 +2048,7 @@ class XSControl_WorkSession : public IFSelect_WorkSession { }; -%extend XSControl_WorkSession { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XSControl_WorkSession(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XSControl_WorkSession::Handle_XSControl_WorkSession %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XSControl_WorkSession; -class Handle_XSControl_WorkSession : public Handle_IFSelect_WorkSession { - - public: - // constructors - Handle_XSControl_WorkSession(); - Handle_XSControl_WorkSession(const Handle_XSControl_WorkSession &aHandle); - Handle_XSControl_WorkSession(const XSControl_WorkSession *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XSControl_WorkSession DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XSControl_WorkSession { - XSControl_WorkSession* _get_reference() { - return (XSControl_WorkSession*)$self->Access(); - } -}; - -%extend Handle_XSControl_WorkSession { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XSControl_WorkSession) %extend XSControl_WorkSession { %pythoncode { diff --git a/src/SWIG_files/wrapper/XSControl_headers.i b/src/SWIG_files/wrapper/XSControl_headers.i index f012168e1..4ad9c63da 100644 --- a/src/SWIG_files/wrapper/XSControl_headers.i +++ b/src/SWIG_files/wrapper/XSControl_headers.i @@ -320,6 +320,50 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -815,6 +859,7 @@ along with pythonOCC. If not, see . %import Interface.i %import TCollection.i %import TopoDS.i +%import Transfer.i %import TopAbs.i %import TColStd.i %import MMgt.i diff --git a/src/SWIG_files/wrapper/XmlDrivers.i b/src/SWIG_files/wrapper/XmlDrivers.i index 11084fc1b..cb4635a93 100644 --- a/src/SWIG_files/wrapper/XmlDrivers.i +++ b/src/SWIG_files/wrapper/XmlDrivers.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define XMLDRIVERSDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=XMLDRIVERSDOCSTRING) XmlDrivers @@ -34,31 +34,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlDrivers_DocumentRetrievalDriver) +%wrap_handle(XmlDrivers_DocumentStorageDriver) + %rename(xmldrivers) XmlDrivers; class XmlDrivers { public: @@ -118,51 +107,7 @@ class XmlDrivers_DocumentRetrievalDriver : public XmlLDrivers_DocumentRetrievalD }; -%extend XmlDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlDrivers_DocumentRetrievalDriver::Handle_XmlDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlDrivers_DocumentRetrievalDriver; -class Handle_XmlDrivers_DocumentRetrievalDriver : public Handle_XmlLDrivers_DocumentRetrievalDriver { - - public: - // constructors - Handle_XmlDrivers_DocumentRetrievalDriver(); - Handle_XmlDrivers_DocumentRetrievalDriver(const Handle_XmlDrivers_DocumentRetrievalDriver &aHandle); - Handle_XmlDrivers_DocumentRetrievalDriver(const XmlDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlDrivers_DocumentRetrievalDriver { - XmlDrivers_DocumentRetrievalDriver* _get_reference() { - return (XmlDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_XmlDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlDrivers_DocumentRetrievalDriver) %extend XmlDrivers_DocumentRetrievalDriver { %pythoncode { @@ -193,51 +138,7 @@ class XmlDrivers_DocumentStorageDriver : public XmlLDrivers_DocumentStorageDrive }; -%extend XmlDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlDrivers_DocumentStorageDriver::Handle_XmlDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlDrivers_DocumentStorageDriver; -class Handle_XmlDrivers_DocumentStorageDriver : public Handle_XmlLDrivers_DocumentStorageDriver { - - public: - // constructors - Handle_XmlDrivers_DocumentStorageDriver(); - Handle_XmlDrivers_DocumentStorageDriver(const Handle_XmlDrivers_DocumentStorageDriver &aHandle); - Handle_XmlDrivers_DocumentStorageDriver(const XmlDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlDrivers_DocumentStorageDriver { - XmlDrivers_DocumentStorageDriver* _get_reference() { - return (XmlDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_XmlDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlDrivers_DocumentStorageDriver) %extend XmlDrivers_DocumentStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlLDrivers.i b/src/SWIG_files/wrapper/XmlLDrivers.i index 5b480ed33..c6d7b4099 100644 --- a/src/SWIG_files/wrapper/XmlLDrivers.i +++ b/src/SWIG_files/wrapper/XmlLDrivers.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define XMLLDRIVERSDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=XMLLDRIVERSDOCSTRING) XmlLDrivers @@ -34,31 +34,21 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlLDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlLDrivers_DocumentRetrievalDriver) +%wrap_handle(XmlLDrivers_DocumentStorageDriver) +%wrap_handle(XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef) + %rename(xmlldrivers) XmlLDrivers; class XmlLDrivers { public: @@ -132,51 +122,7 @@ class XmlLDrivers_DocumentRetrievalDriver : public PCDM_RetrievalDriver { }; -%extend XmlLDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlLDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlLDrivers_DocumentRetrievalDriver::Handle_XmlLDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlLDrivers_DocumentRetrievalDriver; -class Handle_XmlLDrivers_DocumentRetrievalDriver : public Handle_PCDM_RetrievalDriver { - - public: - // constructors - Handle_XmlLDrivers_DocumentRetrievalDriver(); - Handle_XmlLDrivers_DocumentRetrievalDriver(const Handle_XmlLDrivers_DocumentRetrievalDriver &aHandle); - Handle_XmlLDrivers_DocumentRetrievalDriver(const XmlLDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlLDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlLDrivers_DocumentRetrievalDriver { - XmlLDrivers_DocumentRetrievalDriver* _get_reference() { - return (XmlLDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_XmlLDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlLDrivers_DocumentRetrievalDriver) %extend XmlLDrivers_DocumentRetrievalDriver { %pythoncode { @@ -213,51 +159,7 @@ class XmlLDrivers_DocumentStorageDriver : public PCDM_StorageDriver { }; -%extend XmlLDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlLDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlLDrivers_DocumentStorageDriver::Handle_XmlLDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlLDrivers_DocumentStorageDriver; -class Handle_XmlLDrivers_DocumentStorageDriver : public Handle_PCDM_StorageDriver { - - public: - // constructors - Handle_XmlLDrivers_DocumentStorageDriver(); - Handle_XmlLDrivers_DocumentStorageDriver(const Handle_XmlLDrivers_DocumentStorageDriver &aHandle); - Handle_XmlLDrivers_DocumentStorageDriver(const XmlLDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlLDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlLDrivers_DocumentStorageDriver { - XmlLDrivers_DocumentStorageDriver* _get_reference() { - return (XmlLDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_XmlLDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlLDrivers_DocumentStorageDriver) %extend XmlLDrivers_DocumentStorageDriver { %pythoncode { @@ -315,51 +217,7 @@ class XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef : public TCollection_SeqN }; -%extend XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef::Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef; -class Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef : public Handle_TCollection_SeqNode { - - public: - // constructors - Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef(); - Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef(const Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef &aHandle); - Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef(const XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef { - XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef* _get_reference() { - return (XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef*)$self->Access(); - } -}; - -%extend Handle_XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef) %extend XmlLDrivers_SequenceNodeOfSequenceOfNamespaceDef { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMDF.i b/src/SWIG_files/wrapper/XmlMDF.i index 674ef0a71..bb240e4de 100644 --- a/src/SWIG_files/wrapper/XmlMDF.i +++ b/src/SWIG_files/wrapper/XmlMDF.i @@ -18,7 +18,23 @@ along with pythonOCC. If not, see . */ %define XMLMDFDOCSTRING -"No docstring provided." +"This package provides classes and methods to +translate a transient DF into a persistent one and +vice versa. + +Driver + +A driver is a tool used to translate a transient +attribute into a persistent one and vice versa. + +Driver Table + +A driver table is an object building links between +object types and object drivers. In the +translation process, a driver table is asked to +give a translation driver for each current object +to be translated. +" %enddef %module (package="OCC.Core", docstring=XMLMDFDOCSTRING) XmlMDF @@ -34,31 +50,24 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMDF_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMDF_ADriver) +%wrap_handle(XmlMDF_ADriverTable) +%wrap_handle(XmlMDF_DataMapNodeOfMapOfDriver) +%wrap_handle(XmlMDF_DataMapNodeOfTypeADriverMap) +%wrap_handle(XmlMDF_ReferenceDriver) +%wrap_handle(XmlMDF_TagSourceDriver) + %rename(xmlmdf) XmlMDF; class XmlMDF { public: @@ -170,51 +179,7 @@ class XmlMDF_ADriver : public MMgt_TShared { }; -%extend XmlMDF_ADriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDF_ADriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDF_ADriver::Handle_XmlMDF_ADriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDF_ADriver; -class Handle_XmlMDF_ADriver : public Handle_MMgt_TShared { - - public: - // constructors - Handle_XmlMDF_ADriver(); - Handle_XmlMDF_ADriver(const Handle_XmlMDF_ADriver &aHandle); - Handle_XmlMDF_ADriver(const XmlMDF_ADriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDF_ADriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDF_ADriver { - XmlMDF_ADriver* _get_reference() { - return (XmlMDF_ADriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDF_ADriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDF_ADriver) %extend XmlMDF_ADriver { %pythoncode { @@ -257,51 +222,7 @@ class XmlMDF_ADriverTable : public MMgt_TShared { }; -%extend XmlMDF_ADriverTable { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDF_ADriverTable(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDF_ADriverTable::Handle_XmlMDF_ADriverTable %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDF_ADriverTable; -class Handle_XmlMDF_ADriverTable : public Handle_MMgt_TShared { - - public: - // constructors - Handle_XmlMDF_ADriverTable(); - Handle_XmlMDF_ADriverTable(const Handle_XmlMDF_ADriverTable &aHandle); - Handle_XmlMDF_ADriverTable(const XmlMDF_ADriverTable *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDF_ADriverTable DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDF_ADriverTable { - XmlMDF_ADriverTable* _get_reference() { - return (XmlMDF_ADriverTable*)$self->Access(); - } -}; - -%extend Handle_XmlMDF_ADriverTable { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDF_ADriverTable) %extend XmlMDF_ADriverTable { %pythoncode { @@ -402,51 +323,7 @@ class XmlMDF_DataMapNodeOfMapOfDriver : public TCollection_MapNode { }; -%extend XmlMDF_DataMapNodeOfMapOfDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDF_DataMapNodeOfMapOfDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDF_DataMapNodeOfMapOfDriver::Handle_XmlMDF_DataMapNodeOfMapOfDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDF_DataMapNodeOfMapOfDriver; -class Handle_XmlMDF_DataMapNodeOfMapOfDriver : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_XmlMDF_DataMapNodeOfMapOfDriver(); - Handle_XmlMDF_DataMapNodeOfMapOfDriver(const Handle_XmlMDF_DataMapNodeOfMapOfDriver &aHandle); - Handle_XmlMDF_DataMapNodeOfMapOfDriver(const XmlMDF_DataMapNodeOfMapOfDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDF_DataMapNodeOfMapOfDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDF_DataMapNodeOfMapOfDriver { - XmlMDF_DataMapNodeOfMapOfDriver* _get_reference() { - return (XmlMDF_DataMapNodeOfMapOfDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDF_DataMapNodeOfMapOfDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDF_DataMapNodeOfMapOfDriver) %extend XmlMDF_DataMapNodeOfMapOfDriver { %pythoncode { @@ -477,51 +354,7 @@ class XmlMDF_DataMapNodeOfTypeADriverMap : public TCollection_MapNode { }; -%extend XmlMDF_DataMapNodeOfTypeADriverMap { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDF_DataMapNodeOfTypeADriverMap(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDF_DataMapNodeOfTypeADriverMap::Handle_XmlMDF_DataMapNodeOfTypeADriverMap %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDF_DataMapNodeOfTypeADriverMap; -class Handle_XmlMDF_DataMapNodeOfTypeADriverMap : public Handle_TCollection_MapNode { - - public: - // constructors - Handle_XmlMDF_DataMapNodeOfTypeADriverMap(); - Handle_XmlMDF_DataMapNodeOfTypeADriverMap(const Handle_XmlMDF_DataMapNodeOfTypeADriverMap &aHandle); - Handle_XmlMDF_DataMapNodeOfTypeADriverMap(const XmlMDF_DataMapNodeOfTypeADriverMap *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDF_DataMapNodeOfTypeADriverMap DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDF_DataMapNodeOfTypeADriverMap { - XmlMDF_DataMapNodeOfTypeADriverMap* _get_reference() { - return (XmlMDF_DataMapNodeOfTypeADriverMap*)$self->Access(); - } -}; - -%extend Handle_XmlMDF_DataMapNodeOfTypeADriverMap { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDF_DataMapNodeOfTypeADriverMap) %extend XmlMDF_DataMapNodeOfTypeADriverMap { %pythoncode { @@ -730,51 +563,7 @@ class XmlMDF_ReferenceDriver : public XmlMDF_ADriver { }; -%extend XmlMDF_ReferenceDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDF_ReferenceDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDF_ReferenceDriver::Handle_XmlMDF_ReferenceDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDF_ReferenceDriver; -class Handle_XmlMDF_ReferenceDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDF_ReferenceDriver(); - Handle_XmlMDF_ReferenceDriver(const Handle_XmlMDF_ReferenceDriver &aHandle); - Handle_XmlMDF_ReferenceDriver(const XmlMDF_ReferenceDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDF_ReferenceDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDF_ReferenceDriver { - XmlMDF_ReferenceDriver* _get_reference() { - return (XmlMDF_ReferenceDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDF_ReferenceDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDF_ReferenceDriver) %extend XmlMDF_ReferenceDriver { %pythoncode { @@ -817,51 +606,7 @@ class XmlMDF_TagSourceDriver : public XmlMDF_ADriver { }; -%extend XmlMDF_TagSourceDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDF_TagSourceDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDF_TagSourceDriver::Handle_XmlMDF_TagSourceDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDF_TagSourceDriver; -class Handle_XmlMDF_TagSourceDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDF_TagSourceDriver(); - Handle_XmlMDF_TagSourceDriver(const Handle_XmlMDF_TagSourceDriver &aHandle); - Handle_XmlMDF_TagSourceDriver(const XmlMDF_TagSourceDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDF_TagSourceDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDF_TagSourceDriver { - XmlMDF_TagSourceDriver* _get_reference() { - return (XmlMDF_TagSourceDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDF_TagSourceDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDF_TagSourceDriver) %extend XmlMDF_TagSourceDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMDataStd.i b/src/SWIG_files/wrapper/XmlMDataStd.i index 698e91e12..0930052ac 100644 --- a/src/SWIG_files/wrapper/XmlMDataStd.i +++ b/src/SWIG_files/wrapper/XmlMDataStd.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define XMLMDATASTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling attributes. +Transient attributes are defined in package TDataStd. +" %enddef %module (package="OCC.Core", docstring=XMLMDATASTDDOCSTRING) XmlMDataStd @@ -34,31 +36,44 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMDataStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMDataStd_AsciiStringDriver) +%wrap_handle(XmlMDataStd_BooleanArrayDriver) +%wrap_handle(XmlMDataStd_BooleanListDriver) +%wrap_handle(XmlMDataStd_ByteArrayDriver) +%wrap_handle(XmlMDataStd_CommentDriver) +%wrap_handle(XmlMDataStd_DirectoryDriver) +%wrap_handle(XmlMDataStd_ExpressionDriver) +%wrap_handle(XmlMDataStd_ExtStringArrayDriver) +%wrap_handle(XmlMDataStd_ExtStringListDriver) +%wrap_handle(XmlMDataStd_IntPackedMapDriver) +%wrap_handle(XmlMDataStd_IntegerArrayDriver) +%wrap_handle(XmlMDataStd_IntegerDriver) +%wrap_handle(XmlMDataStd_IntegerListDriver) +%wrap_handle(XmlMDataStd_NameDriver) +%wrap_handle(XmlMDataStd_NamedDataDriver) +%wrap_handle(XmlMDataStd_NoteBookDriver) +%wrap_handle(XmlMDataStd_RealArrayDriver) +%wrap_handle(XmlMDataStd_RealDriver) +%wrap_handle(XmlMDataStd_RealListDriver) +%wrap_handle(XmlMDataStd_ReferenceArrayDriver) +%wrap_handle(XmlMDataStd_ReferenceListDriver) +%wrap_handle(XmlMDataStd_RelationDriver) +%wrap_handle(XmlMDataStd_TickDriver) +%wrap_handle(XmlMDataStd_TreeNodeDriver) +%wrap_handle(XmlMDataStd_UAttributeDriver) +%wrap_handle(XmlMDataStd_VariableDriver) + %rename(xmlmdatastd) XmlMDataStd; class XmlMDataStd { public: @@ -130,51 +145,7 @@ class XmlMDataStd_AsciiStringDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_AsciiStringDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_AsciiStringDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_AsciiStringDriver::Handle_XmlMDataStd_AsciiStringDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_AsciiStringDriver; -class Handle_XmlMDataStd_AsciiStringDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_AsciiStringDriver(); - Handle_XmlMDataStd_AsciiStringDriver(const Handle_XmlMDataStd_AsciiStringDriver &aHandle); - Handle_XmlMDataStd_AsciiStringDriver(const XmlMDataStd_AsciiStringDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_AsciiStringDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_AsciiStringDriver { - XmlMDataStd_AsciiStringDriver* _get_reference() { - return (XmlMDataStd_AsciiStringDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_AsciiStringDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_AsciiStringDriver) %extend XmlMDataStd_AsciiStringDriver { %pythoncode { @@ -217,51 +188,7 @@ class XmlMDataStd_BooleanArrayDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_BooleanArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_BooleanArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_BooleanArrayDriver::Handle_XmlMDataStd_BooleanArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_BooleanArrayDriver; -class Handle_XmlMDataStd_BooleanArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_BooleanArrayDriver(); - Handle_XmlMDataStd_BooleanArrayDriver(const Handle_XmlMDataStd_BooleanArrayDriver &aHandle); - Handle_XmlMDataStd_BooleanArrayDriver(const XmlMDataStd_BooleanArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_BooleanArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_BooleanArrayDriver { - XmlMDataStd_BooleanArrayDriver* _get_reference() { - return (XmlMDataStd_BooleanArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_BooleanArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_BooleanArrayDriver) %extend XmlMDataStd_BooleanArrayDriver { %pythoncode { @@ -304,51 +231,7 @@ class XmlMDataStd_BooleanListDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_BooleanListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_BooleanListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_BooleanListDriver::Handle_XmlMDataStd_BooleanListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_BooleanListDriver; -class Handle_XmlMDataStd_BooleanListDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_BooleanListDriver(); - Handle_XmlMDataStd_BooleanListDriver(const Handle_XmlMDataStd_BooleanListDriver &aHandle); - Handle_XmlMDataStd_BooleanListDriver(const XmlMDataStd_BooleanListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_BooleanListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_BooleanListDriver { - XmlMDataStd_BooleanListDriver* _get_reference() { - return (XmlMDataStd_BooleanListDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_BooleanListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_BooleanListDriver) %extend XmlMDataStd_BooleanListDriver { %pythoncode { @@ -391,51 +274,7 @@ class XmlMDataStd_ByteArrayDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_ByteArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_ByteArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_ByteArrayDriver::Handle_XmlMDataStd_ByteArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_ByteArrayDriver; -class Handle_XmlMDataStd_ByteArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_ByteArrayDriver(); - Handle_XmlMDataStd_ByteArrayDriver(const Handle_XmlMDataStd_ByteArrayDriver &aHandle); - Handle_XmlMDataStd_ByteArrayDriver(const XmlMDataStd_ByteArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_ByteArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_ByteArrayDriver { - XmlMDataStd_ByteArrayDriver* _get_reference() { - return (XmlMDataStd_ByteArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_ByteArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_ByteArrayDriver) %extend XmlMDataStd_ByteArrayDriver { %pythoncode { @@ -478,51 +317,7 @@ class XmlMDataStd_CommentDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_CommentDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_CommentDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_CommentDriver::Handle_XmlMDataStd_CommentDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_CommentDriver; -class Handle_XmlMDataStd_CommentDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_CommentDriver(); - Handle_XmlMDataStd_CommentDriver(const Handle_XmlMDataStd_CommentDriver &aHandle); - Handle_XmlMDataStd_CommentDriver(const XmlMDataStd_CommentDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_CommentDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_CommentDriver { - XmlMDataStd_CommentDriver* _get_reference() { - return (XmlMDataStd_CommentDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_CommentDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_CommentDriver) %extend XmlMDataStd_CommentDriver { %pythoncode { @@ -565,51 +360,7 @@ class XmlMDataStd_DirectoryDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_DirectoryDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_DirectoryDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_DirectoryDriver::Handle_XmlMDataStd_DirectoryDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_DirectoryDriver; -class Handle_XmlMDataStd_DirectoryDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_DirectoryDriver(); - Handle_XmlMDataStd_DirectoryDriver(const Handle_XmlMDataStd_DirectoryDriver &aHandle); - Handle_XmlMDataStd_DirectoryDriver(const XmlMDataStd_DirectoryDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_DirectoryDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_DirectoryDriver { - XmlMDataStd_DirectoryDriver* _get_reference() { - return (XmlMDataStd_DirectoryDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_DirectoryDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_DirectoryDriver) %extend XmlMDataStd_DirectoryDriver { %pythoncode { @@ -652,51 +403,7 @@ class XmlMDataStd_ExpressionDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_ExpressionDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_ExpressionDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_ExpressionDriver::Handle_XmlMDataStd_ExpressionDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_ExpressionDriver; -class Handle_XmlMDataStd_ExpressionDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_ExpressionDriver(); - Handle_XmlMDataStd_ExpressionDriver(const Handle_XmlMDataStd_ExpressionDriver &aHandle); - Handle_XmlMDataStd_ExpressionDriver(const XmlMDataStd_ExpressionDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_ExpressionDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_ExpressionDriver { - XmlMDataStd_ExpressionDriver* _get_reference() { - return (XmlMDataStd_ExpressionDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_ExpressionDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_ExpressionDriver) %extend XmlMDataStd_ExpressionDriver { %pythoncode { @@ -739,51 +446,7 @@ class XmlMDataStd_ExtStringArrayDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_ExtStringArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_ExtStringArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_ExtStringArrayDriver::Handle_XmlMDataStd_ExtStringArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_ExtStringArrayDriver; -class Handle_XmlMDataStd_ExtStringArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_ExtStringArrayDriver(); - Handle_XmlMDataStd_ExtStringArrayDriver(const Handle_XmlMDataStd_ExtStringArrayDriver &aHandle); - Handle_XmlMDataStd_ExtStringArrayDriver(const XmlMDataStd_ExtStringArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_ExtStringArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_ExtStringArrayDriver { - XmlMDataStd_ExtStringArrayDriver* _get_reference() { - return (XmlMDataStd_ExtStringArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_ExtStringArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_ExtStringArrayDriver) %extend XmlMDataStd_ExtStringArrayDriver { %pythoncode { @@ -826,51 +489,7 @@ class XmlMDataStd_ExtStringListDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_ExtStringListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_ExtStringListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_ExtStringListDriver::Handle_XmlMDataStd_ExtStringListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_ExtStringListDriver; -class Handle_XmlMDataStd_ExtStringListDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_ExtStringListDriver(); - Handle_XmlMDataStd_ExtStringListDriver(const Handle_XmlMDataStd_ExtStringListDriver &aHandle); - Handle_XmlMDataStd_ExtStringListDriver(const XmlMDataStd_ExtStringListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_ExtStringListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_ExtStringListDriver { - XmlMDataStd_ExtStringListDriver* _get_reference() { - return (XmlMDataStd_ExtStringListDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_ExtStringListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_ExtStringListDriver) %extend XmlMDataStd_ExtStringListDriver { %pythoncode { @@ -917,51 +536,7 @@ class XmlMDataStd_IntPackedMapDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_IntPackedMapDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_IntPackedMapDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_IntPackedMapDriver::Handle_XmlMDataStd_IntPackedMapDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_IntPackedMapDriver; -class Handle_XmlMDataStd_IntPackedMapDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_IntPackedMapDriver(); - Handle_XmlMDataStd_IntPackedMapDriver(const Handle_XmlMDataStd_IntPackedMapDriver &aHandle); - Handle_XmlMDataStd_IntPackedMapDriver(const XmlMDataStd_IntPackedMapDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_IntPackedMapDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_IntPackedMapDriver { - XmlMDataStd_IntPackedMapDriver* _get_reference() { - return (XmlMDataStd_IntPackedMapDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_IntPackedMapDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_IntPackedMapDriver) %extend XmlMDataStd_IntPackedMapDriver { %pythoncode { @@ -1004,51 +579,7 @@ class XmlMDataStd_IntegerArrayDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_IntegerArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_IntegerArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_IntegerArrayDriver::Handle_XmlMDataStd_IntegerArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_IntegerArrayDriver; -class Handle_XmlMDataStd_IntegerArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_IntegerArrayDriver(); - Handle_XmlMDataStd_IntegerArrayDriver(const Handle_XmlMDataStd_IntegerArrayDriver &aHandle); - Handle_XmlMDataStd_IntegerArrayDriver(const XmlMDataStd_IntegerArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_IntegerArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_IntegerArrayDriver { - XmlMDataStd_IntegerArrayDriver* _get_reference() { - return (XmlMDataStd_IntegerArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_IntegerArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_IntegerArrayDriver) %extend XmlMDataStd_IntegerArrayDriver { %pythoncode { @@ -1091,51 +622,7 @@ class XmlMDataStd_IntegerDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_IntegerDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_IntegerDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_IntegerDriver::Handle_XmlMDataStd_IntegerDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_IntegerDriver; -class Handle_XmlMDataStd_IntegerDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_IntegerDriver(); - Handle_XmlMDataStd_IntegerDriver(const Handle_XmlMDataStd_IntegerDriver &aHandle); - Handle_XmlMDataStd_IntegerDriver(const XmlMDataStd_IntegerDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_IntegerDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_IntegerDriver { - XmlMDataStd_IntegerDriver* _get_reference() { - return (XmlMDataStd_IntegerDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_IntegerDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_IntegerDriver) %extend XmlMDataStd_IntegerDriver { %pythoncode { @@ -1178,51 +665,7 @@ class XmlMDataStd_IntegerListDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_IntegerListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_IntegerListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_IntegerListDriver::Handle_XmlMDataStd_IntegerListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_IntegerListDriver; -class Handle_XmlMDataStd_IntegerListDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_IntegerListDriver(); - Handle_XmlMDataStd_IntegerListDriver(const Handle_XmlMDataStd_IntegerListDriver &aHandle); - Handle_XmlMDataStd_IntegerListDriver(const XmlMDataStd_IntegerListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_IntegerListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_IntegerListDriver { - XmlMDataStd_IntegerListDriver* _get_reference() { - return (XmlMDataStd_IntegerListDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_IntegerListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_IntegerListDriver) %extend XmlMDataStd_IntegerListDriver { %pythoncode { @@ -1265,51 +708,7 @@ class XmlMDataStd_NameDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_NameDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_NameDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_NameDriver::Handle_XmlMDataStd_NameDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_NameDriver; -class Handle_XmlMDataStd_NameDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_NameDriver(); - Handle_XmlMDataStd_NameDriver(const Handle_XmlMDataStd_NameDriver &aHandle); - Handle_XmlMDataStd_NameDriver(const XmlMDataStd_NameDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_NameDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_NameDriver { - XmlMDataStd_NameDriver* _get_reference() { - return (XmlMDataStd_NameDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_NameDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_NameDriver) %extend XmlMDataStd_NameDriver { %pythoncode { @@ -1352,51 +751,7 @@ class XmlMDataStd_NamedDataDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_NamedDataDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_NamedDataDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_NamedDataDriver::Handle_XmlMDataStd_NamedDataDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_NamedDataDriver; -class Handle_XmlMDataStd_NamedDataDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_NamedDataDriver(); - Handle_XmlMDataStd_NamedDataDriver(const Handle_XmlMDataStd_NamedDataDriver &aHandle); - Handle_XmlMDataStd_NamedDataDriver(const XmlMDataStd_NamedDataDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_NamedDataDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_NamedDataDriver { - XmlMDataStd_NamedDataDriver* _get_reference() { - return (XmlMDataStd_NamedDataDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_NamedDataDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_NamedDataDriver) %extend XmlMDataStd_NamedDataDriver { %pythoncode { @@ -1439,51 +794,7 @@ class XmlMDataStd_NoteBookDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_NoteBookDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_NoteBookDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_NoteBookDriver::Handle_XmlMDataStd_NoteBookDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_NoteBookDriver; -class Handle_XmlMDataStd_NoteBookDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_NoteBookDriver(); - Handle_XmlMDataStd_NoteBookDriver(const Handle_XmlMDataStd_NoteBookDriver &aHandle); - Handle_XmlMDataStd_NoteBookDriver(const XmlMDataStd_NoteBookDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_NoteBookDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_NoteBookDriver { - XmlMDataStd_NoteBookDriver* _get_reference() { - return (XmlMDataStd_NoteBookDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_NoteBookDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_NoteBookDriver) %extend XmlMDataStd_NoteBookDriver { %pythoncode { @@ -1526,51 +837,7 @@ class XmlMDataStd_RealArrayDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_RealArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_RealArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_RealArrayDriver::Handle_XmlMDataStd_RealArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_RealArrayDriver; -class Handle_XmlMDataStd_RealArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_RealArrayDriver(); - Handle_XmlMDataStd_RealArrayDriver(const Handle_XmlMDataStd_RealArrayDriver &aHandle); - Handle_XmlMDataStd_RealArrayDriver(const XmlMDataStd_RealArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_RealArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_RealArrayDriver { - XmlMDataStd_RealArrayDriver* _get_reference() { - return (XmlMDataStd_RealArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_RealArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_RealArrayDriver) %extend XmlMDataStd_RealArrayDriver { %pythoncode { @@ -1613,51 +880,7 @@ class XmlMDataStd_RealDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_RealDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_RealDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_RealDriver::Handle_XmlMDataStd_RealDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_RealDriver; -class Handle_XmlMDataStd_RealDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_RealDriver(); - Handle_XmlMDataStd_RealDriver(const Handle_XmlMDataStd_RealDriver &aHandle); - Handle_XmlMDataStd_RealDriver(const XmlMDataStd_RealDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_RealDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_RealDriver { - XmlMDataStd_RealDriver* _get_reference() { - return (XmlMDataStd_RealDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_RealDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_RealDriver) %extend XmlMDataStd_RealDriver { %pythoncode { @@ -1700,51 +923,7 @@ class XmlMDataStd_RealListDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_RealListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_RealListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_RealListDriver::Handle_XmlMDataStd_RealListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_RealListDriver; -class Handle_XmlMDataStd_RealListDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_RealListDriver(); - Handle_XmlMDataStd_RealListDriver(const Handle_XmlMDataStd_RealListDriver &aHandle); - Handle_XmlMDataStd_RealListDriver(const XmlMDataStd_RealListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_RealListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_RealListDriver { - XmlMDataStd_RealListDriver* _get_reference() { - return (XmlMDataStd_RealListDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_RealListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_RealListDriver) %extend XmlMDataStd_RealListDriver { %pythoncode { @@ -1787,51 +966,7 @@ class XmlMDataStd_ReferenceArrayDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_ReferenceArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_ReferenceArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_ReferenceArrayDriver::Handle_XmlMDataStd_ReferenceArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_ReferenceArrayDriver; -class Handle_XmlMDataStd_ReferenceArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_ReferenceArrayDriver(); - Handle_XmlMDataStd_ReferenceArrayDriver(const Handle_XmlMDataStd_ReferenceArrayDriver &aHandle); - Handle_XmlMDataStd_ReferenceArrayDriver(const XmlMDataStd_ReferenceArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_ReferenceArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_ReferenceArrayDriver { - XmlMDataStd_ReferenceArrayDriver* _get_reference() { - return (XmlMDataStd_ReferenceArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_ReferenceArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_ReferenceArrayDriver) %extend XmlMDataStd_ReferenceArrayDriver { %pythoncode { @@ -1874,51 +1009,7 @@ class XmlMDataStd_ReferenceListDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_ReferenceListDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_ReferenceListDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_ReferenceListDriver::Handle_XmlMDataStd_ReferenceListDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_ReferenceListDriver; -class Handle_XmlMDataStd_ReferenceListDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_ReferenceListDriver(); - Handle_XmlMDataStd_ReferenceListDriver(const Handle_XmlMDataStd_ReferenceListDriver &aHandle); - Handle_XmlMDataStd_ReferenceListDriver(const XmlMDataStd_ReferenceListDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_ReferenceListDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_ReferenceListDriver { - XmlMDataStd_ReferenceListDriver* _get_reference() { - return (XmlMDataStd_ReferenceListDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_ReferenceListDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_ReferenceListDriver) %extend XmlMDataStd_ReferenceListDriver { %pythoncode { @@ -1961,51 +1052,7 @@ class XmlMDataStd_RelationDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_RelationDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_RelationDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_RelationDriver::Handle_XmlMDataStd_RelationDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_RelationDriver; -class Handle_XmlMDataStd_RelationDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_RelationDriver(); - Handle_XmlMDataStd_RelationDriver(const Handle_XmlMDataStd_RelationDriver &aHandle); - Handle_XmlMDataStd_RelationDriver(const XmlMDataStd_RelationDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_RelationDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_RelationDriver { - XmlMDataStd_RelationDriver* _get_reference() { - return (XmlMDataStd_RelationDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_RelationDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_RelationDriver) %extend XmlMDataStd_RelationDriver { %pythoncode { @@ -2048,51 +1095,7 @@ class XmlMDataStd_TickDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_TickDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_TickDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_TickDriver::Handle_XmlMDataStd_TickDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_TickDriver; -class Handle_XmlMDataStd_TickDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_TickDriver(); - Handle_XmlMDataStd_TickDriver(const Handle_XmlMDataStd_TickDriver &aHandle); - Handle_XmlMDataStd_TickDriver(const XmlMDataStd_TickDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_TickDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_TickDriver { - XmlMDataStd_TickDriver* _get_reference() { - return (XmlMDataStd_TickDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_TickDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_TickDriver) %extend XmlMDataStd_TickDriver { %pythoncode { @@ -2135,51 +1138,7 @@ class XmlMDataStd_TreeNodeDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_TreeNodeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_TreeNodeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_TreeNodeDriver::Handle_XmlMDataStd_TreeNodeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_TreeNodeDriver; -class Handle_XmlMDataStd_TreeNodeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_TreeNodeDriver(); - Handle_XmlMDataStd_TreeNodeDriver(const Handle_XmlMDataStd_TreeNodeDriver &aHandle); - Handle_XmlMDataStd_TreeNodeDriver(const XmlMDataStd_TreeNodeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_TreeNodeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_TreeNodeDriver { - XmlMDataStd_TreeNodeDriver* _get_reference() { - return (XmlMDataStd_TreeNodeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_TreeNodeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_TreeNodeDriver) %extend XmlMDataStd_TreeNodeDriver { %pythoncode { @@ -2222,51 +1181,7 @@ class XmlMDataStd_UAttributeDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_UAttributeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_UAttributeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_UAttributeDriver::Handle_XmlMDataStd_UAttributeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_UAttributeDriver; -class Handle_XmlMDataStd_UAttributeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_UAttributeDriver(); - Handle_XmlMDataStd_UAttributeDriver(const Handle_XmlMDataStd_UAttributeDriver &aHandle); - Handle_XmlMDataStd_UAttributeDriver(const XmlMDataStd_UAttributeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_UAttributeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_UAttributeDriver { - XmlMDataStd_UAttributeDriver* _get_reference() { - return (XmlMDataStd_UAttributeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_UAttributeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_UAttributeDriver) %extend XmlMDataStd_UAttributeDriver { %pythoncode { @@ -2309,51 +1224,7 @@ class XmlMDataStd_VariableDriver : public XmlMDF_ADriver { }; -%extend XmlMDataStd_VariableDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataStd_VariableDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataStd_VariableDriver::Handle_XmlMDataStd_VariableDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataStd_VariableDriver; -class Handle_XmlMDataStd_VariableDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataStd_VariableDriver(); - Handle_XmlMDataStd_VariableDriver(const Handle_XmlMDataStd_VariableDriver &aHandle); - Handle_XmlMDataStd_VariableDriver(const XmlMDataStd_VariableDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataStd_VariableDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataStd_VariableDriver { - XmlMDataStd_VariableDriver* _get_reference() { - return (XmlMDataStd_VariableDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataStd_VariableDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataStd_VariableDriver) %extend XmlMDataStd_VariableDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMDataXtd.i b/src/SWIG_files/wrapper/XmlMDataXtd.i index af149d022..52e41cea8 100644 --- a/src/SWIG_files/wrapper/XmlMDataXtd.i +++ b/src/SWIG_files/wrapper/XmlMDataXtd.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define XMLMDATAXTDDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling attributes. +Transient attributes are defined in package TDataXtd. +" %enddef %module (package="OCC.Core", docstring=XMLMDATAXTDDOCSTRING) XmlMDataXtd @@ -34,31 +36,26 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMDataXtd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMDataXtd_AxisDriver) +%wrap_handle(XmlMDataXtd_ConstraintDriver) +%wrap_handle(XmlMDataXtd_GeometryDriver) +%wrap_handle(XmlMDataXtd_PatternStdDriver) +%wrap_handle(XmlMDataXtd_PlacementDriver) +%wrap_handle(XmlMDataXtd_PlaneDriver) +%wrap_handle(XmlMDataXtd_PointDriver) +%wrap_handle(XmlMDataXtd_ShapeDriver) + %rename(xmlmdataxtd) XmlMDataXtd; class XmlMDataXtd { public: @@ -126,51 +123,7 @@ class XmlMDataXtd_AxisDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_AxisDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_AxisDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_AxisDriver::Handle_XmlMDataXtd_AxisDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_AxisDriver; -class Handle_XmlMDataXtd_AxisDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_AxisDriver(); - Handle_XmlMDataXtd_AxisDriver(const Handle_XmlMDataXtd_AxisDriver &aHandle); - Handle_XmlMDataXtd_AxisDriver(const XmlMDataXtd_AxisDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_AxisDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_AxisDriver { - XmlMDataXtd_AxisDriver* _get_reference() { - return (XmlMDataXtd_AxisDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_AxisDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_AxisDriver) %extend XmlMDataXtd_AxisDriver { %pythoncode { @@ -213,51 +166,7 @@ class XmlMDataXtd_ConstraintDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_ConstraintDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_ConstraintDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_ConstraintDriver::Handle_XmlMDataXtd_ConstraintDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_ConstraintDriver; -class Handle_XmlMDataXtd_ConstraintDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_ConstraintDriver(); - Handle_XmlMDataXtd_ConstraintDriver(const Handle_XmlMDataXtd_ConstraintDriver &aHandle); - Handle_XmlMDataXtd_ConstraintDriver(const XmlMDataXtd_ConstraintDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_ConstraintDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_ConstraintDriver { - XmlMDataXtd_ConstraintDriver* _get_reference() { - return (XmlMDataXtd_ConstraintDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_ConstraintDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_ConstraintDriver) %extend XmlMDataXtd_ConstraintDriver { %pythoncode { @@ -300,51 +209,7 @@ class XmlMDataXtd_GeometryDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_GeometryDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_GeometryDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_GeometryDriver::Handle_XmlMDataXtd_GeometryDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_GeometryDriver; -class Handle_XmlMDataXtd_GeometryDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_GeometryDriver(); - Handle_XmlMDataXtd_GeometryDriver(const Handle_XmlMDataXtd_GeometryDriver &aHandle); - Handle_XmlMDataXtd_GeometryDriver(const XmlMDataXtd_GeometryDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_GeometryDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_GeometryDriver { - XmlMDataXtd_GeometryDriver* _get_reference() { - return (XmlMDataXtd_GeometryDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_GeometryDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_GeometryDriver) %extend XmlMDataXtd_GeometryDriver { %pythoncode { @@ -387,51 +252,7 @@ class XmlMDataXtd_PatternStdDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_PatternStdDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_PatternStdDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_PatternStdDriver::Handle_XmlMDataXtd_PatternStdDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_PatternStdDriver; -class Handle_XmlMDataXtd_PatternStdDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_PatternStdDriver(); - Handle_XmlMDataXtd_PatternStdDriver(const Handle_XmlMDataXtd_PatternStdDriver &aHandle); - Handle_XmlMDataXtd_PatternStdDriver(const XmlMDataXtd_PatternStdDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_PatternStdDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_PatternStdDriver { - XmlMDataXtd_PatternStdDriver* _get_reference() { - return (XmlMDataXtd_PatternStdDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_PatternStdDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_PatternStdDriver) %extend XmlMDataXtd_PatternStdDriver { %pythoncode { @@ -474,51 +295,7 @@ class XmlMDataXtd_PlacementDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_PlacementDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_PlacementDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_PlacementDriver::Handle_XmlMDataXtd_PlacementDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_PlacementDriver; -class Handle_XmlMDataXtd_PlacementDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_PlacementDriver(); - Handle_XmlMDataXtd_PlacementDriver(const Handle_XmlMDataXtd_PlacementDriver &aHandle); - Handle_XmlMDataXtd_PlacementDriver(const XmlMDataXtd_PlacementDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_PlacementDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_PlacementDriver { - XmlMDataXtd_PlacementDriver* _get_reference() { - return (XmlMDataXtd_PlacementDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_PlacementDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_PlacementDriver) %extend XmlMDataXtd_PlacementDriver { %pythoncode { @@ -561,51 +338,7 @@ class XmlMDataXtd_PlaneDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_PlaneDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_PlaneDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_PlaneDriver::Handle_XmlMDataXtd_PlaneDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_PlaneDriver; -class Handle_XmlMDataXtd_PlaneDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_PlaneDriver(); - Handle_XmlMDataXtd_PlaneDriver(const Handle_XmlMDataXtd_PlaneDriver &aHandle); - Handle_XmlMDataXtd_PlaneDriver(const XmlMDataXtd_PlaneDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_PlaneDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_PlaneDriver { - XmlMDataXtd_PlaneDriver* _get_reference() { - return (XmlMDataXtd_PlaneDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_PlaneDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_PlaneDriver) %extend XmlMDataXtd_PlaneDriver { %pythoncode { @@ -648,51 +381,7 @@ class XmlMDataXtd_PointDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_PointDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_PointDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_PointDriver::Handle_XmlMDataXtd_PointDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_PointDriver; -class Handle_XmlMDataXtd_PointDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_PointDriver(); - Handle_XmlMDataXtd_PointDriver(const Handle_XmlMDataXtd_PointDriver &aHandle); - Handle_XmlMDataXtd_PointDriver(const XmlMDataXtd_PointDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_PointDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_PointDriver { - XmlMDataXtd_PointDriver* _get_reference() { - return (XmlMDataXtd_PointDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_PointDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_PointDriver) %extend XmlMDataXtd_PointDriver { %pythoncode { @@ -735,51 +424,7 @@ class XmlMDataXtd_ShapeDriver : public XmlMDF_ADriver { }; -%extend XmlMDataXtd_ShapeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDataXtd_ShapeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDataXtd_ShapeDriver::Handle_XmlMDataXtd_ShapeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDataXtd_ShapeDriver; -class Handle_XmlMDataXtd_ShapeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDataXtd_ShapeDriver(); - Handle_XmlMDataXtd_ShapeDriver(const Handle_XmlMDataXtd_ShapeDriver &aHandle); - Handle_XmlMDataXtd_ShapeDriver(const XmlMDataXtd_ShapeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDataXtd_ShapeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDataXtd_ShapeDriver { - XmlMDataXtd_ShapeDriver* _get_reference() { - return (XmlMDataXtd_ShapeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDataXtd_ShapeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDataXtd_ShapeDriver) %extend XmlMDataXtd_ShapeDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMDocStd.i b/src/SWIG_files/wrapper/XmlMDocStd.i index b3acebdab..545d4d528 100644 --- a/src/SWIG_files/wrapper/XmlMDocStd.i +++ b/src/SWIG_files/wrapper/XmlMDocStd.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define XMLMDOCSTDDOCSTRING -"No docstring provided." +"Driver for TDocStd_XLink +" %enddef %module (package="OCC.Core", docstring=XMLMDOCSTDDOCSTRING) XmlMDocStd @@ -34,31 +35,19 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMDocStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMDocStd_XLinkDriver) + %rename(xmlmdocstd) XmlMDocStd; class XmlMDocStd { public: @@ -116,51 +105,7 @@ class XmlMDocStd_XLinkDriver : public XmlMDF_ADriver { }; -%extend XmlMDocStd_XLinkDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMDocStd_XLinkDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMDocStd_XLinkDriver::Handle_XmlMDocStd_XLinkDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMDocStd_XLinkDriver; -class Handle_XmlMDocStd_XLinkDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMDocStd_XLinkDriver(); - Handle_XmlMDocStd_XLinkDriver(const Handle_XmlMDocStd_XLinkDriver &aHandle); - Handle_XmlMDocStd_XLinkDriver(const XmlMDocStd_XLinkDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMDocStd_XLinkDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMDocStd_XLinkDriver { - XmlMDocStd_XLinkDriver* _get_reference() { - return (XmlMDocStd_XLinkDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMDocStd_XLinkDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMDocStd_XLinkDriver) %extend XmlMDocStd_XLinkDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMFunction.i b/src/SWIG_files/wrapper/XmlMFunction.i index 1fc699442..344a9084e 100644 --- a/src/SWIG_files/wrapper/XmlMFunction.i +++ b/src/SWIG_files/wrapper/XmlMFunction.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define XMLMFUNCTIONDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=XMLMFUNCTIONDOCSTRING) XmlMFunction @@ -34,31 +34,21 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMFunction_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMFunction_FunctionDriver) +%wrap_handle(XmlMFunction_GraphNodeDriver) +%wrap_handle(XmlMFunction_ScopeDriver) + %rename(xmlmfunction) XmlMFunction; class XmlMFunction { public: @@ -116,51 +106,7 @@ class XmlMFunction_FunctionDriver : public XmlMDF_ADriver { }; -%extend XmlMFunction_FunctionDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMFunction_FunctionDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMFunction_FunctionDriver::Handle_XmlMFunction_FunctionDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMFunction_FunctionDriver; -class Handle_XmlMFunction_FunctionDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMFunction_FunctionDriver(); - Handle_XmlMFunction_FunctionDriver(const Handle_XmlMFunction_FunctionDriver &aHandle); - Handle_XmlMFunction_FunctionDriver(const XmlMFunction_FunctionDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMFunction_FunctionDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMFunction_FunctionDriver { - XmlMFunction_FunctionDriver* _get_reference() { - return (XmlMFunction_FunctionDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMFunction_FunctionDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMFunction_FunctionDriver) %extend XmlMFunction_FunctionDriver { %pythoncode { @@ -203,51 +149,7 @@ class XmlMFunction_GraphNodeDriver : public XmlMDF_ADriver { }; -%extend XmlMFunction_GraphNodeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMFunction_GraphNodeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMFunction_GraphNodeDriver::Handle_XmlMFunction_GraphNodeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMFunction_GraphNodeDriver; -class Handle_XmlMFunction_GraphNodeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMFunction_GraphNodeDriver(); - Handle_XmlMFunction_GraphNodeDriver(const Handle_XmlMFunction_GraphNodeDriver &aHandle); - Handle_XmlMFunction_GraphNodeDriver(const XmlMFunction_GraphNodeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMFunction_GraphNodeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMFunction_GraphNodeDriver { - XmlMFunction_GraphNodeDriver* _get_reference() { - return (XmlMFunction_GraphNodeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMFunction_GraphNodeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMFunction_GraphNodeDriver) %extend XmlMFunction_GraphNodeDriver { %pythoncode { @@ -290,51 +192,7 @@ class XmlMFunction_ScopeDriver : public XmlMDF_ADriver { }; -%extend XmlMFunction_ScopeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMFunction_ScopeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMFunction_ScopeDriver::Handle_XmlMFunction_ScopeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMFunction_ScopeDriver; -class Handle_XmlMFunction_ScopeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMFunction_ScopeDriver(); - Handle_XmlMFunction_ScopeDriver(const Handle_XmlMFunction_ScopeDriver &aHandle); - Handle_XmlMFunction_ScopeDriver(const XmlMFunction_ScopeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMFunction_ScopeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMFunction_ScopeDriver { - XmlMFunction_ScopeDriver* _get_reference() { - return (XmlMFunction_ScopeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMFunction_ScopeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMFunction_ScopeDriver) %extend XmlMFunction_ScopeDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMNaming.i b/src/SWIG_files/wrapper/XmlMNaming.i index 43018f905..87dfc1318 100644 --- a/src/SWIG_files/wrapper/XmlMNaming.i +++ b/src/SWIG_files/wrapper/XmlMNaming.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define XMLMNAMINGDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=XMLMNAMINGDOCSTRING) XmlMNaming @@ -34,31 +35,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMNaming_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMNaming_NamedShapeDriver) +%wrap_handle(XmlMNaming_NamingDriver) + %rename(xmlmnaming) XmlMNaming; class XmlMNaming { public: @@ -154,51 +144,7 @@ class XmlMNaming_NamedShapeDriver : public XmlMDF_ADriver { }; -%extend XmlMNaming_NamedShapeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMNaming_NamedShapeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMNaming_NamedShapeDriver::Handle_XmlMNaming_NamedShapeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMNaming_NamedShapeDriver; -class Handle_XmlMNaming_NamedShapeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMNaming_NamedShapeDriver(); - Handle_XmlMNaming_NamedShapeDriver(const Handle_XmlMNaming_NamedShapeDriver &aHandle); - Handle_XmlMNaming_NamedShapeDriver(const XmlMNaming_NamedShapeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMNaming_NamedShapeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMNaming_NamedShapeDriver { - XmlMNaming_NamedShapeDriver* _get_reference() { - return (XmlMNaming_NamedShapeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMNaming_NamedShapeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMNaming_NamedShapeDriver) %extend XmlMNaming_NamedShapeDriver { %pythoncode { @@ -241,51 +187,7 @@ class XmlMNaming_NamingDriver : public XmlMDF_ADriver { }; -%extend XmlMNaming_NamingDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMNaming_NamingDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMNaming_NamingDriver::Handle_XmlMNaming_NamingDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMNaming_NamingDriver; -class Handle_XmlMNaming_NamingDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMNaming_NamingDriver(); - Handle_XmlMNaming_NamingDriver(const Handle_XmlMNaming_NamingDriver &aHandle); - Handle_XmlMNaming_NamingDriver(const XmlMNaming_NamingDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMNaming_NamingDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMNaming_NamingDriver { - XmlMNaming_NamingDriver* _get_reference() { - return (XmlMNaming_NamingDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMNaming_NamingDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMNaming_NamingDriver) %extend XmlMNaming_NamingDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMPrsStd.i b/src/SWIG_files/wrapper/XmlMPrsStd.i index da78f3d0c..beb323b5e 100644 --- a/src/SWIG_files/wrapper/XmlMPrsStd.i +++ b/src/SWIG_files/wrapper/XmlMPrsStd.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define XMLMPRSSTDDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=XMLMPRSSTDDOCSTRING) XmlMPrsStd @@ -34,31 +34,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMPrsStd_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMPrsStd_AISPresentationDriver) +%wrap_handle(XmlMPrsStd_PositionDriver) + %rename(xmlmprsstd) XmlMPrsStd; class XmlMPrsStd { public: @@ -116,51 +105,7 @@ class XmlMPrsStd_AISPresentationDriver : public XmlMDF_ADriver { }; -%extend XmlMPrsStd_AISPresentationDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMPrsStd_AISPresentationDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMPrsStd_AISPresentationDriver::Handle_XmlMPrsStd_AISPresentationDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMPrsStd_AISPresentationDriver; -class Handle_XmlMPrsStd_AISPresentationDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMPrsStd_AISPresentationDriver(); - Handle_XmlMPrsStd_AISPresentationDriver(const Handle_XmlMPrsStd_AISPresentationDriver &aHandle); - Handle_XmlMPrsStd_AISPresentationDriver(const XmlMPrsStd_AISPresentationDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMPrsStd_AISPresentationDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMPrsStd_AISPresentationDriver { - XmlMPrsStd_AISPresentationDriver* _get_reference() { - return (XmlMPrsStd_AISPresentationDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMPrsStd_AISPresentationDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMPrsStd_AISPresentationDriver) %extend XmlMPrsStd_AISPresentationDriver { %pythoncode { @@ -203,51 +148,7 @@ class XmlMPrsStd_PositionDriver : public XmlMDF_ADriver { }; -%extend XmlMPrsStd_PositionDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMPrsStd_PositionDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMPrsStd_PositionDriver::Handle_XmlMPrsStd_PositionDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMPrsStd_PositionDriver; -class Handle_XmlMPrsStd_PositionDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMPrsStd_PositionDriver(); - Handle_XmlMPrsStd_PositionDriver(const Handle_XmlMPrsStd_PositionDriver &aHandle); - Handle_XmlMPrsStd_PositionDriver(const XmlMPrsStd_PositionDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMPrsStd_PositionDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMPrsStd_PositionDriver { - XmlMPrsStd_PositionDriver* _get_reference() { - return (XmlMPrsStd_PositionDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMPrsStd_PositionDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMPrsStd_PositionDriver) %extend XmlMPrsStd_PositionDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlMXCAFDoc.i b/src/SWIG_files/wrapper/XmlMXCAFDoc.i index 89907e9b7..f27c658d3 100644 --- a/src/SWIG_files/wrapper/XmlMXCAFDoc.i +++ b/src/SWIG_files/wrapper/XmlMXCAFDoc.i @@ -18,7 +18,9 @@ along with pythonOCC. If not, see . */ %define XMLMXCAFDOCDOCSTRING -"No docstring provided." +"Storage and Retrieval drivers for modelling attributes. +Transient attributes are defined in package XCAFDoc +" %enddef %module (package="OCC.Core", docstring=XMLMXCAFDOCDOCSTRING) XmlMXCAFDoc @@ -34,31 +36,33 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlMXCAFDoc_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlMXCAFDoc_AreaDriver) +%wrap_handle(XmlMXCAFDoc_CentroidDriver) +%wrap_handle(XmlMXCAFDoc_ColorDriver) +%wrap_handle(XmlMXCAFDoc_ColorToolDriver) +%wrap_handle(XmlMXCAFDoc_DatumDriver) +%wrap_handle(XmlMXCAFDoc_DimTolDriver) +%wrap_handle(XmlMXCAFDoc_DimTolToolDriver) +%wrap_handle(XmlMXCAFDoc_DocumentToolDriver) +%wrap_handle(XmlMXCAFDoc_GraphNodeDriver) +%wrap_handle(XmlMXCAFDoc_LayerToolDriver) +%wrap_handle(XmlMXCAFDoc_LocationDriver) +%wrap_handle(XmlMXCAFDoc_MaterialDriver) +%wrap_handle(XmlMXCAFDoc_MaterialToolDriver) +%wrap_handle(XmlMXCAFDoc_ShapeToolDriver) +%wrap_handle(XmlMXCAFDoc_VolumeDriver) + %rename(xmlmxcafdoc) XmlMXCAFDoc; class XmlMXCAFDoc { public: @@ -116,51 +120,7 @@ class XmlMXCAFDoc_AreaDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_AreaDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_AreaDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_AreaDriver::Handle_XmlMXCAFDoc_AreaDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_AreaDriver; -class Handle_XmlMXCAFDoc_AreaDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_AreaDriver(); - Handle_XmlMXCAFDoc_AreaDriver(const Handle_XmlMXCAFDoc_AreaDriver &aHandle); - Handle_XmlMXCAFDoc_AreaDriver(const XmlMXCAFDoc_AreaDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_AreaDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_AreaDriver { - XmlMXCAFDoc_AreaDriver* _get_reference() { - return (XmlMXCAFDoc_AreaDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_AreaDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_AreaDriver) %extend XmlMXCAFDoc_AreaDriver { %pythoncode { @@ -203,51 +163,7 @@ class XmlMXCAFDoc_CentroidDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_CentroidDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_CentroidDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_CentroidDriver::Handle_XmlMXCAFDoc_CentroidDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_CentroidDriver; -class Handle_XmlMXCAFDoc_CentroidDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_CentroidDriver(); - Handle_XmlMXCAFDoc_CentroidDriver(const Handle_XmlMXCAFDoc_CentroidDriver &aHandle); - Handle_XmlMXCAFDoc_CentroidDriver(const XmlMXCAFDoc_CentroidDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_CentroidDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_CentroidDriver { - XmlMXCAFDoc_CentroidDriver* _get_reference() { - return (XmlMXCAFDoc_CentroidDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_CentroidDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_CentroidDriver) %extend XmlMXCAFDoc_CentroidDriver { %pythoncode { @@ -290,51 +206,7 @@ class XmlMXCAFDoc_ColorDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_ColorDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_ColorDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_ColorDriver::Handle_XmlMXCAFDoc_ColorDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_ColorDriver; -class Handle_XmlMXCAFDoc_ColorDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_ColorDriver(); - Handle_XmlMXCAFDoc_ColorDriver(const Handle_XmlMXCAFDoc_ColorDriver &aHandle); - Handle_XmlMXCAFDoc_ColorDriver(const XmlMXCAFDoc_ColorDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_ColorDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_ColorDriver { - XmlMXCAFDoc_ColorDriver* _get_reference() { - return (XmlMXCAFDoc_ColorDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_ColorDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_ColorDriver) %extend XmlMXCAFDoc_ColorDriver { %pythoncode { @@ -377,51 +249,7 @@ class XmlMXCAFDoc_ColorToolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_ColorToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_ColorToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_ColorToolDriver::Handle_XmlMXCAFDoc_ColorToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_ColorToolDriver; -class Handle_XmlMXCAFDoc_ColorToolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_ColorToolDriver(); - Handle_XmlMXCAFDoc_ColorToolDriver(const Handle_XmlMXCAFDoc_ColorToolDriver &aHandle); - Handle_XmlMXCAFDoc_ColorToolDriver(const XmlMXCAFDoc_ColorToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_ColorToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_ColorToolDriver { - XmlMXCAFDoc_ColorToolDriver* _get_reference() { - return (XmlMXCAFDoc_ColorToolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_ColorToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_ColorToolDriver) %extend XmlMXCAFDoc_ColorToolDriver { %pythoncode { @@ -464,51 +292,7 @@ class XmlMXCAFDoc_DatumDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_DatumDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_DatumDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_DatumDriver::Handle_XmlMXCAFDoc_DatumDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_DatumDriver; -class Handle_XmlMXCAFDoc_DatumDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_DatumDriver(); - Handle_XmlMXCAFDoc_DatumDriver(const Handle_XmlMXCAFDoc_DatumDriver &aHandle); - Handle_XmlMXCAFDoc_DatumDriver(const XmlMXCAFDoc_DatumDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_DatumDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_DatumDriver { - XmlMXCAFDoc_DatumDriver* _get_reference() { - return (XmlMXCAFDoc_DatumDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_DatumDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_DatumDriver) %extend XmlMXCAFDoc_DatumDriver { %pythoncode { @@ -551,51 +335,7 @@ class XmlMXCAFDoc_DimTolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_DimTolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_DimTolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_DimTolDriver::Handle_XmlMXCAFDoc_DimTolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_DimTolDriver; -class Handle_XmlMXCAFDoc_DimTolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_DimTolDriver(); - Handle_XmlMXCAFDoc_DimTolDriver(const Handle_XmlMXCAFDoc_DimTolDriver &aHandle); - Handle_XmlMXCAFDoc_DimTolDriver(const XmlMXCAFDoc_DimTolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_DimTolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_DimTolDriver { - XmlMXCAFDoc_DimTolDriver* _get_reference() { - return (XmlMXCAFDoc_DimTolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_DimTolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_DimTolDriver) %extend XmlMXCAFDoc_DimTolDriver { %pythoncode { @@ -638,51 +378,7 @@ class XmlMXCAFDoc_DimTolToolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_DimTolToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_DimTolToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_DimTolToolDriver::Handle_XmlMXCAFDoc_DimTolToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_DimTolToolDriver; -class Handle_XmlMXCAFDoc_DimTolToolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_DimTolToolDriver(); - Handle_XmlMXCAFDoc_DimTolToolDriver(const Handle_XmlMXCAFDoc_DimTolToolDriver &aHandle); - Handle_XmlMXCAFDoc_DimTolToolDriver(const XmlMXCAFDoc_DimTolToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_DimTolToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_DimTolToolDriver { - XmlMXCAFDoc_DimTolToolDriver* _get_reference() { - return (XmlMXCAFDoc_DimTolToolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_DimTolToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_DimTolToolDriver) %extend XmlMXCAFDoc_DimTolToolDriver { %pythoncode { @@ -725,51 +421,7 @@ class XmlMXCAFDoc_DocumentToolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_DocumentToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_DocumentToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_DocumentToolDriver::Handle_XmlMXCAFDoc_DocumentToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_DocumentToolDriver; -class Handle_XmlMXCAFDoc_DocumentToolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_DocumentToolDriver(); - Handle_XmlMXCAFDoc_DocumentToolDriver(const Handle_XmlMXCAFDoc_DocumentToolDriver &aHandle); - Handle_XmlMXCAFDoc_DocumentToolDriver(const XmlMXCAFDoc_DocumentToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_DocumentToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_DocumentToolDriver { - XmlMXCAFDoc_DocumentToolDriver* _get_reference() { - return (XmlMXCAFDoc_DocumentToolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_DocumentToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_DocumentToolDriver) %extend XmlMXCAFDoc_DocumentToolDriver { %pythoncode { @@ -812,51 +464,7 @@ class XmlMXCAFDoc_GraphNodeDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_GraphNodeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_GraphNodeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_GraphNodeDriver::Handle_XmlMXCAFDoc_GraphNodeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_GraphNodeDriver; -class Handle_XmlMXCAFDoc_GraphNodeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_GraphNodeDriver(); - Handle_XmlMXCAFDoc_GraphNodeDriver(const Handle_XmlMXCAFDoc_GraphNodeDriver &aHandle); - Handle_XmlMXCAFDoc_GraphNodeDriver(const XmlMXCAFDoc_GraphNodeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_GraphNodeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_GraphNodeDriver { - XmlMXCAFDoc_GraphNodeDriver* _get_reference() { - return (XmlMXCAFDoc_GraphNodeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_GraphNodeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_GraphNodeDriver) %extend XmlMXCAFDoc_GraphNodeDriver { %pythoncode { @@ -899,51 +507,7 @@ class XmlMXCAFDoc_LayerToolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_LayerToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_LayerToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_LayerToolDriver::Handle_XmlMXCAFDoc_LayerToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_LayerToolDriver; -class Handle_XmlMXCAFDoc_LayerToolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_LayerToolDriver(); - Handle_XmlMXCAFDoc_LayerToolDriver(const Handle_XmlMXCAFDoc_LayerToolDriver &aHandle); - Handle_XmlMXCAFDoc_LayerToolDriver(const XmlMXCAFDoc_LayerToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_LayerToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_LayerToolDriver { - XmlMXCAFDoc_LayerToolDriver* _get_reference() { - return (XmlMXCAFDoc_LayerToolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_LayerToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_LayerToolDriver) %extend XmlMXCAFDoc_LayerToolDriver { %pythoncode { @@ -1016,51 +580,7 @@ class XmlMXCAFDoc_LocationDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_LocationDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_LocationDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_LocationDriver::Handle_XmlMXCAFDoc_LocationDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_LocationDriver; -class Handle_XmlMXCAFDoc_LocationDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_LocationDriver(); - Handle_XmlMXCAFDoc_LocationDriver(const Handle_XmlMXCAFDoc_LocationDriver &aHandle); - Handle_XmlMXCAFDoc_LocationDriver(const XmlMXCAFDoc_LocationDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_LocationDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_LocationDriver { - XmlMXCAFDoc_LocationDriver* _get_reference() { - return (XmlMXCAFDoc_LocationDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_LocationDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_LocationDriver) %extend XmlMXCAFDoc_LocationDriver { %pythoncode { @@ -1103,51 +623,7 @@ class XmlMXCAFDoc_MaterialDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_MaterialDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_MaterialDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_MaterialDriver::Handle_XmlMXCAFDoc_MaterialDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_MaterialDriver; -class Handle_XmlMXCAFDoc_MaterialDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_MaterialDriver(); - Handle_XmlMXCAFDoc_MaterialDriver(const Handle_XmlMXCAFDoc_MaterialDriver &aHandle); - Handle_XmlMXCAFDoc_MaterialDriver(const XmlMXCAFDoc_MaterialDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_MaterialDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_MaterialDriver { - XmlMXCAFDoc_MaterialDriver* _get_reference() { - return (XmlMXCAFDoc_MaterialDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_MaterialDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_MaterialDriver) %extend XmlMXCAFDoc_MaterialDriver { %pythoncode { @@ -1190,51 +666,7 @@ class XmlMXCAFDoc_MaterialToolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_MaterialToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_MaterialToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_MaterialToolDriver::Handle_XmlMXCAFDoc_MaterialToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_MaterialToolDriver; -class Handle_XmlMXCAFDoc_MaterialToolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_MaterialToolDriver(); - Handle_XmlMXCAFDoc_MaterialToolDriver(const Handle_XmlMXCAFDoc_MaterialToolDriver &aHandle); - Handle_XmlMXCAFDoc_MaterialToolDriver(const XmlMXCAFDoc_MaterialToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_MaterialToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_MaterialToolDriver { - XmlMXCAFDoc_MaterialToolDriver* _get_reference() { - return (XmlMXCAFDoc_MaterialToolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_MaterialToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_MaterialToolDriver) %extend XmlMXCAFDoc_MaterialToolDriver { %pythoncode { @@ -1277,51 +709,7 @@ class XmlMXCAFDoc_ShapeToolDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_ShapeToolDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_ShapeToolDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_ShapeToolDriver::Handle_XmlMXCAFDoc_ShapeToolDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_ShapeToolDriver; -class Handle_XmlMXCAFDoc_ShapeToolDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_ShapeToolDriver(); - Handle_XmlMXCAFDoc_ShapeToolDriver(const Handle_XmlMXCAFDoc_ShapeToolDriver &aHandle); - Handle_XmlMXCAFDoc_ShapeToolDriver(const XmlMXCAFDoc_ShapeToolDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_ShapeToolDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_ShapeToolDriver { - XmlMXCAFDoc_ShapeToolDriver* _get_reference() { - return (XmlMXCAFDoc_ShapeToolDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_ShapeToolDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_ShapeToolDriver) %extend XmlMXCAFDoc_ShapeToolDriver { %pythoncode { @@ -1364,51 +752,7 @@ class XmlMXCAFDoc_VolumeDriver : public XmlMDF_ADriver { }; -%extend XmlMXCAFDoc_VolumeDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlMXCAFDoc_VolumeDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlMXCAFDoc_VolumeDriver::Handle_XmlMXCAFDoc_VolumeDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlMXCAFDoc_VolumeDriver; -class Handle_XmlMXCAFDoc_VolumeDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlMXCAFDoc_VolumeDriver(); - Handle_XmlMXCAFDoc_VolumeDriver(const Handle_XmlMXCAFDoc_VolumeDriver &aHandle); - Handle_XmlMXCAFDoc_VolumeDriver(const XmlMXCAFDoc_VolumeDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlMXCAFDoc_VolumeDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlMXCAFDoc_VolumeDriver { - XmlMXCAFDoc_VolumeDriver* _get_reference() { - return (XmlMXCAFDoc_VolumeDriver*)$self->Access(); - } -}; - -%extend Handle_XmlMXCAFDoc_VolumeDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlMXCAFDoc_VolumeDriver) %extend XmlMXCAFDoc_VolumeDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlObjMgt.i b/src/SWIG_files/wrapper/XmlObjMgt.i index e936f888e..1432dd27a 100644 --- a/src/SWIG_files/wrapper/XmlObjMgt.i +++ b/src/SWIG_files/wrapper/XmlObjMgt.i @@ -18,7 +18,10 @@ along with pythonOCC. If not, see . */ %define XMLOBJMGTDOCSTRING -"No docstring provided." +"This package defines services to manage the storage +grain of data produced by applications and those classes +to manage persistent extern reference. +" %enddef %module (package="OCC.Core", docstring=XMLOBJMGTDOCSTRING) XmlObjMgt @@ -34,25 +37,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlObjMgt_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ typedef TColStd_IndexedMapOfTransient XmlObjMgt_SRelocationTable; typedef LDOM_Element XmlObjMgt_Element; @@ -64,6 +53,7 @@ typedef TColStd_DataMapOfIntegerTransient XmlObjMgt_RRelocationTable; /* public enums */ /* end public enums declaration */ + %rename(xmlobjmgt) XmlObjMgt; class XmlObjMgt { public: diff --git a/src/SWIG_files/wrapper/XmlTObjDrivers.i b/src/SWIG_files/wrapper/XmlTObjDrivers.i index 667903823..2747d58b2 100644 --- a/src/SWIG_files/wrapper/XmlTObjDrivers.i +++ b/src/SWIG_files/wrapper/XmlTObjDrivers.i @@ -34,31 +34,25 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlTObjDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlTObjDrivers_DocumentRetrievalDriver) +%wrap_handle(XmlTObjDrivers_DocumentStorageDriver) +%wrap_handle(XmlTObjDrivers_IntSparseArrayDriver) +%wrap_handle(XmlTObjDrivers_ModelDriver) +%wrap_handle(XmlTObjDrivers_ObjectDriver) +%wrap_handle(XmlTObjDrivers_ReferenceDriver) +%wrap_handle(XmlTObjDrivers_XYZDriver) + %rename(xmltobjdrivers) XmlTObjDrivers; %nodefaultctor XmlTObjDrivers; class XmlTObjDrivers { @@ -101,51 +95,7 @@ class XmlTObjDrivers_DocumentRetrievalDriver : public XmlLDrivers_DocumentRetrie }; -%extend XmlTObjDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_DocumentRetrievalDriver::Handle_XmlTObjDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_DocumentRetrievalDriver; -class Handle_XmlTObjDrivers_DocumentRetrievalDriver : public Handle_XmlLDrivers_DocumentRetrievalDriver { - - public: - // constructors - Handle_XmlTObjDrivers_DocumentRetrievalDriver(); - Handle_XmlTObjDrivers_DocumentRetrievalDriver(const Handle_XmlTObjDrivers_DocumentRetrievalDriver &aHandle); - Handle_XmlTObjDrivers_DocumentRetrievalDriver(const XmlTObjDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_DocumentRetrievalDriver { - XmlTObjDrivers_DocumentRetrievalDriver* _get_reference() { - return (XmlTObjDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_DocumentRetrievalDriver) %extend XmlTObjDrivers_DocumentRetrievalDriver { %pythoncode { @@ -170,51 +120,7 @@ class XmlTObjDrivers_DocumentStorageDriver : public XmlLDrivers_DocumentStorageD }; -%extend XmlTObjDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_DocumentStorageDriver::Handle_XmlTObjDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_DocumentStorageDriver; -class Handle_XmlTObjDrivers_DocumentStorageDriver : public Handle_XmlLDrivers_DocumentStorageDriver { - - public: - // constructors - Handle_XmlTObjDrivers_DocumentStorageDriver(); - Handle_XmlTObjDrivers_DocumentStorageDriver(const Handle_XmlTObjDrivers_DocumentStorageDriver &aHandle); - Handle_XmlTObjDrivers_DocumentStorageDriver(const XmlTObjDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_DocumentStorageDriver { - XmlTObjDrivers_DocumentStorageDriver* _get_reference() { - return (XmlTObjDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_DocumentStorageDriver) %extend XmlTObjDrivers_DocumentStorageDriver { %pythoncode { @@ -257,51 +163,7 @@ class XmlTObjDrivers_IntSparseArrayDriver : public XmlMDF_ADriver { }; -%extend XmlTObjDrivers_IntSparseArrayDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_IntSparseArrayDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_IntSparseArrayDriver::Handle_XmlTObjDrivers_IntSparseArrayDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_IntSparseArrayDriver; -class Handle_XmlTObjDrivers_IntSparseArrayDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlTObjDrivers_IntSparseArrayDriver(); - Handle_XmlTObjDrivers_IntSparseArrayDriver(const Handle_XmlTObjDrivers_IntSparseArrayDriver &aHandle); - Handle_XmlTObjDrivers_IntSparseArrayDriver(const XmlTObjDrivers_IntSparseArrayDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_IntSparseArrayDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_IntSparseArrayDriver { - XmlTObjDrivers_IntSparseArrayDriver* _get_reference() { - return (XmlTObjDrivers_IntSparseArrayDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_IntSparseArrayDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_IntSparseArrayDriver) %extend XmlTObjDrivers_IntSparseArrayDriver { %pythoncode { @@ -344,51 +206,7 @@ class XmlTObjDrivers_ModelDriver : public XmlMDF_ADriver { }; -%extend XmlTObjDrivers_ModelDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_ModelDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_ModelDriver::Handle_XmlTObjDrivers_ModelDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_ModelDriver; -class Handle_XmlTObjDrivers_ModelDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlTObjDrivers_ModelDriver(); - Handle_XmlTObjDrivers_ModelDriver(const Handle_XmlTObjDrivers_ModelDriver &aHandle); - Handle_XmlTObjDrivers_ModelDriver(const XmlTObjDrivers_ModelDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_ModelDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_ModelDriver { - XmlTObjDrivers_ModelDriver* _get_reference() { - return (XmlTObjDrivers_ModelDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_ModelDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_ModelDriver) %extend XmlTObjDrivers_ModelDriver { %pythoncode { @@ -431,51 +249,7 @@ class XmlTObjDrivers_ObjectDriver : public XmlMDF_ADriver { }; -%extend XmlTObjDrivers_ObjectDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_ObjectDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_ObjectDriver::Handle_XmlTObjDrivers_ObjectDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_ObjectDriver; -class Handle_XmlTObjDrivers_ObjectDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlTObjDrivers_ObjectDriver(); - Handle_XmlTObjDrivers_ObjectDriver(const Handle_XmlTObjDrivers_ObjectDriver &aHandle); - Handle_XmlTObjDrivers_ObjectDriver(const XmlTObjDrivers_ObjectDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_ObjectDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_ObjectDriver { - XmlTObjDrivers_ObjectDriver* _get_reference() { - return (XmlTObjDrivers_ObjectDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_ObjectDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_ObjectDriver) %extend XmlTObjDrivers_ObjectDriver { %pythoncode { @@ -518,51 +292,7 @@ class XmlTObjDrivers_ReferenceDriver : public XmlMDF_ADriver { }; -%extend XmlTObjDrivers_ReferenceDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_ReferenceDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_ReferenceDriver::Handle_XmlTObjDrivers_ReferenceDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_ReferenceDriver; -class Handle_XmlTObjDrivers_ReferenceDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlTObjDrivers_ReferenceDriver(); - Handle_XmlTObjDrivers_ReferenceDriver(const Handle_XmlTObjDrivers_ReferenceDriver &aHandle); - Handle_XmlTObjDrivers_ReferenceDriver(const XmlTObjDrivers_ReferenceDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_ReferenceDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_ReferenceDriver { - XmlTObjDrivers_ReferenceDriver* _get_reference() { - return (XmlTObjDrivers_ReferenceDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_ReferenceDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_ReferenceDriver) %extend XmlTObjDrivers_ReferenceDriver { %pythoncode { @@ -605,51 +335,7 @@ class XmlTObjDrivers_XYZDriver : public XmlMDF_ADriver { }; -%extend XmlTObjDrivers_XYZDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlTObjDrivers_XYZDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlTObjDrivers_XYZDriver::Handle_XmlTObjDrivers_XYZDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlTObjDrivers_XYZDriver; -class Handle_XmlTObjDrivers_XYZDriver : public Handle_XmlMDF_ADriver { - - public: - // constructors - Handle_XmlTObjDrivers_XYZDriver(); - Handle_XmlTObjDrivers_XYZDriver(const Handle_XmlTObjDrivers_XYZDriver &aHandle); - Handle_XmlTObjDrivers_XYZDriver(const XmlTObjDrivers_XYZDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlTObjDrivers_XYZDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlTObjDrivers_XYZDriver { - XmlTObjDrivers_XYZDriver* _get_reference() { - return (XmlTObjDrivers_XYZDriver*)$self->Access(); - } -}; - -%extend Handle_XmlTObjDrivers_XYZDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlTObjDrivers_XYZDriver) %extend XmlTObjDrivers_XYZDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/XmlXCAFDrivers.i b/src/SWIG_files/wrapper/XmlXCAFDrivers.i index 96caf9ae5..fa33b46f1 100644 --- a/src/SWIG_files/wrapper/XmlXCAFDrivers.i +++ b/src/SWIG_files/wrapper/XmlXCAFDrivers.i @@ -18,7 +18,8 @@ along with pythonOCC. If not, see . */ %define XMLXCAFDRIVERSDOCSTRING -"No docstring provided." +" +" %enddef %module (package="OCC.Core", docstring=XMLXCAFDRIVERSDOCSTRING) XmlXCAFDrivers @@ -34,31 +35,20 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include XmlXCAFDrivers_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ +%wrap_handle(XmlXCAFDrivers_DocumentRetrievalDriver) +%wrap_handle(XmlXCAFDrivers_DocumentStorageDriver) + %rename(xmlxcafdrivers) XmlXCAFDrivers; class XmlXCAFDrivers { public: @@ -94,51 +84,7 @@ class XmlXCAFDrivers_DocumentRetrievalDriver : public XmlDrivers_DocumentRetriev }; -%extend XmlXCAFDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlXCAFDrivers_DocumentRetrievalDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlXCAFDrivers_DocumentRetrievalDriver::Handle_XmlXCAFDrivers_DocumentRetrievalDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlXCAFDrivers_DocumentRetrievalDriver; -class Handle_XmlXCAFDrivers_DocumentRetrievalDriver : public Handle_XmlDrivers_DocumentRetrievalDriver { - - public: - // constructors - Handle_XmlXCAFDrivers_DocumentRetrievalDriver(); - Handle_XmlXCAFDrivers_DocumentRetrievalDriver(const Handle_XmlXCAFDrivers_DocumentRetrievalDriver &aHandle); - Handle_XmlXCAFDrivers_DocumentRetrievalDriver(const XmlXCAFDrivers_DocumentRetrievalDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlXCAFDrivers_DocumentRetrievalDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlXCAFDrivers_DocumentRetrievalDriver { - XmlXCAFDrivers_DocumentRetrievalDriver* _get_reference() { - return (XmlXCAFDrivers_DocumentRetrievalDriver*)$self->Access(); - } -}; - -%extend Handle_XmlXCAFDrivers_DocumentRetrievalDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlXCAFDrivers_DocumentRetrievalDriver) %extend XmlXCAFDrivers_DocumentRetrievalDriver { %pythoncode { @@ -163,51 +109,7 @@ class XmlXCAFDrivers_DocumentStorageDriver : public XmlDrivers_DocumentStorageDr }; -%extend XmlXCAFDrivers_DocumentStorageDriver { - %pythoncode { - def GetHandle(self): - try: - return self.thisHandle - except: - self.thisHandle = Handle_XmlXCAFDrivers_DocumentStorageDriver(self) - self.thisown = False - return self.thisHandle - } -}; - -%pythonappend Handle_XmlXCAFDrivers_DocumentStorageDriver::Handle_XmlXCAFDrivers_DocumentStorageDriver %{ - # register the handle in the base object - if len(args) > 0: - register_handle(self, args[0]) -%} - -%nodefaultctor Handle_XmlXCAFDrivers_DocumentStorageDriver; -class Handle_XmlXCAFDrivers_DocumentStorageDriver : public Handle_XmlDrivers_DocumentStorageDriver { - - public: - // constructors - Handle_XmlXCAFDrivers_DocumentStorageDriver(); - Handle_XmlXCAFDrivers_DocumentStorageDriver(const Handle_XmlXCAFDrivers_DocumentStorageDriver &aHandle); - Handle_XmlXCAFDrivers_DocumentStorageDriver(const XmlXCAFDrivers_DocumentStorageDriver *anItem); - void Nullify(); - Standard_Boolean IsNull() const; - static const Handle_XmlXCAFDrivers_DocumentStorageDriver DownCast(const Handle_Standard_Transient &AnObject); - -}; -%extend Handle_XmlXCAFDrivers_DocumentStorageDriver { - XmlXCAFDrivers_DocumentStorageDriver* _get_reference() { - return (XmlXCAFDrivers_DocumentStorageDriver*)$self->Access(); - } -}; - -%extend Handle_XmlXCAFDrivers_DocumentStorageDriver { - %pythoncode { - def GetObject(self): - obj = self._get_reference() - register_handle(self, obj) - return obj - } -}; +%make_alias(XmlXCAFDrivers_DocumentStorageDriver) %extend XmlXCAFDrivers_DocumentStorageDriver { %pythoncode { diff --git a/src/SWIG_files/wrapper/gce.i b/src/SWIG_files/wrapper/gce.i index d2f2bedbe..83bcd2191 100644 --- a/src/SWIG_files/wrapper/gce.i +++ b/src/SWIG_files/wrapper/gce.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define GCEDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=GCEDOCSTRING) gce @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include gce_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -76,6 +62,7 @@ enum gce_ErrorType { /* end public enums declaration */ + %nodefaultctor gce_MakeMirror; class gce_MakeMirror { public: diff --git a/src/SWIG_files/wrapper/gp.i b/src/SWIG_files/wrapper/gp.i index f6096c996..8272d8a19 100644 --- a/src/SWIG_files/wrapper/gp.i +++ b/src/SWIG_files/wrapper/gp.i @@ -18,7 +18,17 @@ along with pythonOCC. If not, see . */ %define GPDOCSTRING -"No docstring provided." +"- Purpose : +The geometric processor package, called gp, provides an +implementation of entities used : +. for algebraic calculation such as 'XYZ' coordinates, 'Mat' +matrix +. for basis analytic geometry such as Transformations, point, +vector, line, plane, axis placement, conics, and elementary +surfaces. +These entities are defined in 2d and 3d space. +All the classes of this package are non-persistent. +" %enddef %module (package="OCC.Core", docstring=GPDOCSTRING) gp @@ -34,25 +44,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include gp_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -100,6 +96,7 @@ enum gp_EulerSequence { /* end public enums declaration */ + %rename(gp) gp; class gp { public: diff --git a/src/SWIG_files/wrapper/math.i b/src/SWIG_files/wrapper/math.i index 87cc5faaa..2ab5d00e4 100644 --- a/src/SWIG_files/wrapper/math.i +++ b/src/SWIG_files/wrapper/math.i @@ -18,7 +18,7 @@ along with pythonOCC. If not, see . */ %define MATHDOCSTRING -"No docstring provided." +"" %enddef %module (package="OCC.Core", docstring=MATHDOCSTRING) math @@ -34,25 +34,11 @@ along with pythonOCC. If not, see . %include ../common/ExceptionCatcher.i %include ../common/FunctionTransformers.i %include ../common/Operators.i +%include ../common/OccHandle.i %include math_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ @@ -67,6 +53,7 @@ enum math_Status { /* end public enums declaration */ + %rename(math) math; class math { public: diff --git a/src/Splitter/GEOMAlgo.i b/src/Splitter/GEOMAlgo.i index 430541f6e..535157bc7 100644 --- a/src/Splitter/GEOMAlgo.i +++ b/src/Splitter/GEOMAlgo.i @@ -17,7 +17,10 @@ You should have received a copy of the GNU Lesser General Public License along with pythonOCC. If not, see . */ -%module (package="OCC") GEOMAlgo +%define GEOMALGODOCSTRING +"No docstring provided." +%enddef +%module (package="OCC.Core", docstring=GEOMALGODOCSTRING) GEOMAlgo #pragma SWIG nowarn=504,325,503 @@ -31,31 +34,18 @@ along with pythonOCC. If not, see . %include ../SWIG_files/common/ExceptionCatcher.i %include ../SWIG_files/common/FunctionTransformers.i %include ../SWIG_files/common/Operators.i +%include ../SWIG_files/common/OccHandle.i %include GEOMAlgo_headers.i - -%pythoncode { -def register_handle(handle, base_object): - """ - Inserts the handle into the base object to - prevent memory corruption in certain cases - """ - try: - if base_object.IsKind("Standard_Transient"): - base_object.thisHandle = handle - base_object.thisown = False - except: - pass -}; - /* typedefs */ /* end typedefs declaration */ /* public enums */ /* end public enums declaration */ + %nodefaultctor GEOMAlgo_Splitter; class GEOMAlgo_Splitter : public BOPAlgo_Builder { public: diff --git a/src/Splitter/GEOMAlgo_headers.i b/src/Splitter/GEOMAlgo_headers.i index 27dac63f8..f649cc408 100644 --- a/src/Splitter/GEOMAlgo_headers.i +++ b/src/Splitter/GEOMAlgo_headers.i @@ -247,6 +247,727 @@ along with pythonOCC. If not, see . #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/utils.py b/src/utils.py new file mode 100644 index 000000000..e1677f822 --- /dev/null +++ b/src/utils.py @@ -0,0 +1,89 @@ +import warnings + +def deprecated(message): + def deprecated_decorator(func): + def deprecated_func(*args, **kwargs): + warnings.warn("{} is a deprecated function. {}".format(func.__name__, message), + category=DeprecationWarning, + stacklevel=2) + warnings.simplefilter('default', DeprecationWarning) + return func(*args, **kwargs) + return deprecated_func + return deprecated_decorator + +class Proxy(object): + __slots__ = ["_obj", "__weakref__"] + def __init__(self, obj): + object.__setattr__(self, "_obj", obj) + + # + # proxying (special cases) + # + def __getattribute__(self, name): + return getattr(object.__getattribute__(self, "_obj"), name) + def __delattr__(self, name): + delattr(object.__getattribute__(self, "_obj"), name) + def __setattr__(self, name, value): + setattr(object.__getattribute__(self, "_obj"), name, value) + + def __nonzero__(self): + return bool(object.__getattribute__(self, "_obj")) + def __str__(self): + return str(object.__getattribute__(self, "_obj")) + def __repr__(self): + return repr(object.__getattribute__(self, "_obj")) + + # + # factories + # + _special_names = [ + '__abs__', '__add__', '__and__', '__call__', '__cmp__', '__coerce__', + '__contains__', '__delitem__', '__delslice__', '__div__', '__divmod__', + '__eq__', '__float__', '__floordiv__', '__ge__', '__getitem__', + '__getslice__', '__gt__', '__hash__', '__hex__', '__iadd__', '__iand__', + '__idiv__', '__idivmod__', '__ifloordiv__', '__ilshift__', '__imod__', + '__imul__', '__int__', '__invert__', '__ior__', '__ipow__', '__irshift__', + '__isub__', '__iter__', '__itruediv__', '__ixor__', '__le__', '__len__', + '__long__', '__lshift__', '__lt__', '__mod__', '__mul__', '__ne__', + '__neg__', '__oct__', '__or__', '__pos__', '__pow__', '__radd__', + '__rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__', + '__repr__', '__reversed__', '__rfloorfiv__', '__rlshift__', '__rmod__', + '__rmul__', '__ror__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', + '__rtruediv__', '__rxor__', '__setitem__', '__setslice__', '__sub__', + '__truediv__', '__xor__', 'next', + ] + + @classmethod + def _create_class_proxy(cls, theclass): + """creates a proxy for the given class""" + + def make_method(name): + def method(self, *args, **kw): + return getattr(object.__getattribute__(self, "_obj"), name)(*args, **kw) + return method + + namespace = {} + for name in cls._special_names: + if hasattr(theclass, name): + namespace[name] = make_method(name) + return type("%s(%s)" % (cls.__name__, theclass.__name__), (cls,), namespace) + + def __new__(cls, obj, *args, **kwargs): + """ + creates an proxy instance referencing `obj`. (obj, *args, **kwargs) are + passed to this class' __init__, so deriving classes can define an + __init__ method of their own. + note: _class_proxy_cache is unique per deriving class (each deriving + class must hold its own cache) + """ + try: + cache = cls.__dict__["_class_proxy_cache"] + except KeyError: + cls._class_proxy_cache = cache = {} + try: + theclass = cache[obj.__class__] + except KeyError: + cache[obj.__class__] = theclass = cls._create_class_proxy(obj.__class__) + ins = object.__new__(theclass) + theclass.__init__(ins, obj, *args, **kwargs) + return ins diff --git a/test/core_geometry_unittest.py b/test/core_geometry_unittest.py index f695f4202..aa19e9aa4 100644 --- a/test/core_geometry_unittest.py +++ b/test/core_geometry_unittest.py @@ -119,7 +119,7 @@ def test_point_from_curve(self): '''Test: point from curve''' radius, abscissa = 5., 3. C = Geom2d_Circle(gp_OX2d(), radius, True) - GAC = Geom2dAdaptor_Curve(C.GetHandle()) + GAC = Geom2dAdaptor_Curve(C) UA = GCPnts_UniformAbscissa(GAC, abscissa) aSequence = [] @@ -150,10 +150,10 @@ def test_project_point_on_curve(self): distance, radius = 5., 5. C = Geom_Circle(gp_XOY(), radius) - PPC = GeomAPI_ProjectPointOnCurve(P, C.GetHandle()) + PPC = GeomAPI_ProjectPointOnCurve(P, C) N = PPC.NearestPoint() NbResults = PPC.NbPoints() - edg = make_edge(C.GetHandle()) + edg = make_edge(C) if NbResults > 0: for i in range(1, NbResults+1): @@ -173,7 +173,7 @@ def test_point_from_projections(self): P = gp_Pnt(7., 8., 9.) radius = 5 SP = Geom_SphericalSurface(gp_Ax3(gp_XOY()), radius) - PPS = GeomAPI_ProjectPointOnSurf(P, SP.GetHandle()) + PPS = GeomAPI_ProjectPointOnSurf(P, SP) N = PPS.NearestPoint() NbResults = PPS.NbPoints() if NbResults > 0: @@ -256,7 +256,7 @@ def test_bspline(self): harray.SetValue(4, gp_Pnt2d(7 + 4, 3)) harray.SetValue(5, gp_Pnt2d(7 + 5, 5)) - anInterpolation = Geom2dAPI_Interpolate(harray.GetHandle(), False, 0.01) + anInterpolation = Geom2dAPI_Interpolate(harray, False, 0.01) anInterpolation.Perform() SPL2 = anInterpolation.Curve() @@ -267,7 +267,7 @@ def test_bspline(self): harray2.SetValue(4, gp_Pnt2d(11 + 4, 3)) harray2.SetValue(5, gp_Pnt2d(11 + 5, 5)) - anInterpolation2 = Geom2dAPI_Interpolate(harray2.GetHandle(), True, 0.01) + anInterpolation2 = Geom2dAPI_Interpolate(harray2, True, 0.01) anInterpolation2.Perform() SPL3 = anInterpolation2.Curve() i = 0 @@ -294,7 +294,7 @@ def test_curves2d_from_curves(self): ell = GCE2d_MakeEllipse(axis, major, minor) E = ell.Value() TC = Geom2d_TrimmedCurve(E, -1, 2, True) - SPL = geom2dconvert_CurveToBSplineCurve(TC.GetHandle(), Convert_TgtThetaOver2) + SPL = geom2dconvert_CurveToBSplineCurve(TC, Convert_TgtThetaOver2) def test_curves2d_from_offset(self): '''Test: curves 2d from offset''' @@ -368,7 +368,6 @@ def test_surface_from_curves(self): aaa = point_list_to_TColgp_Array1OfPnt(array) SPL1 = GeomAPI_PointsToBSpline(aaa).Curve() - SPL1_c = SPL1.GetObject() a2 = [] a2.append(gp_Pnt(-4, 0, 2)) @@ -378,20 +377,19 @@ def test_surface_from_curves(self): a2.append(gp_Pnt(4, 9, -1)) bbb = point_list_to_TColgp_Array1OfPnt(a2) SPL2 = GeomAPI_PointsToBSpline(bbb).Curve() - SPL2_c = SPL2.GetObject() aGeomFill1 = GeomFill_BSplineCurves(SPL1, SPL2, GeomFill_StretchStyle) - SPL3 = Handle_Geom_BSplineCurve_DownCast(SPL1_c.Translated(gp_Vec(10, 0, 0))) - SPL4 = Handle_Geom_BSplineCurve_DownCast(SPL2_c.Translated(gp_Vec(10, 0, 0))) + SPL3 = Handle_Geom_BSplineCurve_DownCast(SPL1.Translated(gp_Vec(10, 0, 0))) + SPL4 = Handle_Geom_BSplineCurve_DownCast(SPL2.Translated(gp_Vec(10, 0, 0))) aGeomFill2 = GeomFill_BSplineCurves(SPL3, SPL4, GeomFill_CoonsStyle) - SPL5 = Handle_Geom_BSplineCurve_DownCast(SPL1_c.Translated(gp_Vec(20, 0, 0))) - SPL6 = Handle_Geom_BSplineCurve_DownCast(SPL2_c.Translated(gp_Vec(20, 0, 0))) + SPL5 = Handle_Geom_BSplineCurve_DownCast(SPL1.Translated(gp_Vec(20, 0, 0))) + SPL6 = Handle_Geom_BSplineCurve_DownCast(SPL2.Translated(gp_Vec(20, 0, 0))) aGeomFill3 = GeomFill_BSplineCurves(SPL5, SPL6, GeomFill_CurvedStyle) @@ -420,14 +418,14 @@ def test_pipes(self): aPipe2 = GeomFill_Pipe(SPL1, E, GeomFill_IsConstantNormal) aPipe2.Perform(False, False) aSurface2 = aPipe2.Surface() - aSurface2.GetObject().Translate(gp_Vec(5, 0, 0)) + aSurface2.Translate(gp_Vec(5, 0, 0)) TC1 = GC_MakeSegment(gp_Pnt(1, 1, 1), gp_Pnt(2, 2, 2)).Value() TC2 = GC_MakeSegment(gp_Pnt(1, 1, 0), gp_Pnt(3, 2, 1)).Value() aPipe3 = GeomFill_Pipe(SPL1, TC1, TC2) aPipe3.Perform(False, False) aSurface3 = aPipe3.Surface() - aSurface3.GetObject().Translate(gp_Vec(10, 0, 0)) + aSurface3.Translate(gp_Vec(10, 0, 0)) for i, mode in enumerate([GeomFill_IsConstantNormal, GeomFill_IsCorrectedFrenet, @@ -441,7 +439,7 @@ def test_pipes(self): aPipe2 = GeomFill_Pipe(SPL1, TC1, TC2, mode) aPipe2.Perform(False, False) aSurface2 = aPipe2.Surface() - aSurface2.GetObject().Translate(gp_Vec(5, 5, 0)) + aSurface2.Translate(gp_Vec(5, 5, 0)) def test_bezier_surfaces(self): '''Test: Bezier surfaces''' @@ -494,18 +492,18 @@ def test_bezier_surfaces(self): array3, array4]) bezierarray = TColGeom_Array2OfBezierSurface(1, 2, 1, 2) - bezierarray.SetValue(1, 1, BZ1.GetHandle()) - bezierarray.SetValue(1, 2, BZ2.GetHandle()) - bezierarray.SetValue(2, 1, BZ3.GetHandle()) - bezierarray.SetValue(2, 2, BZ4.GetHandle()) + bezierarray.SetValue(1, 1, BZ1) + bezierarray.SetValue(1, 2, BZ2) + bezierarray.SetValue(2, 1, BZ3) + bezierarray.SetValue(2, 2, BZ4) BB = GeomConvert_CompBezierSurfacesToBSplineSurface(bezierarray) self.assertTrue(BB.IsDone()) - poles = BB.Poles().GetObject().Array2() - uknots = BB.UKnots().GetObject().Array1() - vknots = BB.VKnots().GetObject().Array1() - umult = BB.UMultiplicities().GetObject().Array1() - vmult = BB.VMultiplicities().GetObject().Array1() + poles = BB.Poles().Array2() + uknots = BB.UKnots().Array1() + vknots = BB.VKnots().Array1() + umult = BB.UMultiplicities().Array1() + vmult = BB.VMultiplicities().Array1() udeg = BB.UDegree() vdeg = BB.VDegree() @@ -541,9 +539,9 @@ def test_surfaces_from_offsets(self): GOS2 = Geom_OffsetSurface(aGeomSurface, offset) face1 = make_face(aGeomSurface) - face2 = make_face(GOS.GetHandle()) - face3 = make_face(GOS1.GetHandle()) - face4 = make_face(GOS2.GetHandle()) + face2 = make_face(GOS) + face3 = make_face(GOS1) + face4 = make_face(GOS2) def test_surfaces_from_revolution(self): '''Test: surfaces from revolution''' @@ -557,7 +555,7 @@ def test_surfaces_from_revolution(self): SOR = Geom_SurfaceOfRevolution(aCurve, gp_OX()) edge = make_edge(aCurve) self.assertFalse(edge.IsNull()) - face = make_face(SOR.GetHandle()) + face = make_face(SOR) self.assertFalse(face.IsNull()) def test_distances(self): @@ -621,7 +619,7 @@ def test_distances(self): P3, P4 = gp_Pnt(), gp_Pnt() ESS.Points(k, P3, P4) aCurve = GC_MakeSegment(P3, P4).Value() - self.assertFalse(aCurve.IsNull()) + self.assertFalse(aCurve is None) def suite(): diff --git a/test/core_ocaf_unittest.py b/test/core_ocaf_unittest.py index bbad68efd..e3c360744 100644 --- a/test/core_ocaf_unittest.py +++ b/test/core_ocaf_unittest.py @@ -42,26 +42,29 @@ class TestOCAF(unittest.TestCase): def test_create_app(self): ''' Creates an OCAF app and an empty document ''' # create an handle to a document - h_doc = Handle_TDocStd_Document() - assert(h_doc.IsNull()) + doc = Handle_TDocStd_Document() + with self.assertWarns(DeprecationWarning): + assert(doc.IsNull()) # Create the application - app = XCAFApp_Application.GetApplication().GetObject() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), h_doc) + app = XCAFApp_Application.GetApplication() + app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) def test_write_step_file(self): ''' Exports a colored box into a STEP file ''' ### initialisation - h_doc = Handle_TDocStd_Document() - assert(h_doc.IsNull()) + doc = Handle_TDocStd_Document() + with self.assertWarns(DeprecationWarning): + assert(doc.IsNull()) # Create the application - app = XCAFApp_Application.GetApplication().GetObject() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), h_doc) + app = XCAFApp_Application.GetApplication() + app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) + + with self.assertWarns(DeprecationWarning): + assert(not doc.IsNull()) + # Get root assembly - doc = h_doc.GetObject() - h_shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) - l_Colors = XCAFDoc_DocumentTool_ColorTool(doc.Main()) - shape_tool = h_shape_tool.GetObject() - colors = l_Colors.GetObject() + shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) + colors = XCAFDoc_DocumentTool_ColorTool(doc.Main()) ### create the shape to export test_shape = BRepPrimAPI_MakeBox(100., 100., 100.).Shape() @@ -74,8 +77,8 @@ def test_write_step_file(self): colors.SetColor(shp_label, red_color, XCAFDoc_ColorGen) # write file WS = XSControl_WorkSession() - writer = STEPCAFControl_Writer(WS.GetHandle(), False) - writer.Transfer(h_doc, STEPControl_AsIs) + writer = STEPCAFControl_Writer(WS, False) + writer.Transfer(doc, STEPControl_AsIs) status = writer.Write("./test_io/test_ocaf_generated.stp") assert status assert os.path.isfile("./test_io/test_ocaf_generated.stp") @@ -83,13 +86,12 @@ def test_write_step_file(self): def test_read_step_file(self): ''' Reads the previous step file ''' # create an handle to a document - h_doc = Handle_TDocStd_Document() + doc = Handle_TDocStd_Document() # Create the application - app = XCAFApp_Application.GetApplication().GetObject() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), h_doc) + app = XCAFApp_Application.GetApplication() + app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) # Get root assembly - doc = h_doc.GetObject() - h_shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) + shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) l_colors = XCAFDoc_DocumentTool_ColorTool(doc.Main()) step_reader = STEPCAFControl_Reader() step_reader.SetColorMode(True) @@ -98,13 +100,12 @@ def test_read_step_file(self): step_reader.SetMatMode(True) status = step_reader.ReadFile("./test_io/test_ocaf.stp") if status == IFSelect_RetDone: - step_reader.Transfer(doc.GetHandle()) + step_reader.Transfer(doc) labels = TDF_LabelSequence() color_labels = TDF_LabelSequence() - shape_tool = h_shape_tool.GetObject() - h_shape_tool.GetObject().GetFreeShapes(labels) + shape_tool.GetFreeShapes(labels) assert(labels.Length() == 1) sub_shapes_labels = TDF_LabelSequence() @@ -112,11 +113,11 @@ def test_read_step_file(self): shape_tool.GetSubShapes(labels.Value(1), sub_shapes_labels) assert(sub_shapes_labels.Length() == 0) - l_colors.GetObject().GetColors(color_labels) + l_colors.GetColors(color_labels) assert(color_labels.Length() == 1) label_shp = labels.Value(1) - a_shape = h_shape_tool.GetObject().GetShape(label_shp) + a_shape = shape_tool.GetShape(label_shp) assert(not a_shape.IsNull()) diff --git a/test/core_wrapper_features_unittest.py b/test/core_wrapper_features_unittest.py index 2ed95fe3c..176a0e3b6 100644 --- a/test/core_wrapper_features_unittest.py +++ b/test/core_wrapper_features_unittest.py @@ -44,12 +44,12 @@ from OCC.Core.BRep import BRep_Builder from OCC.Core.ChFiDS import ChFiDS_ChamfSpine from OCC.Core.Graphic3d import Graphic3d_RenderingParams -from OCC.Core.AIS import (Handle_AIS_Shape, Handle_AIS_Shape_DownCast, - Handle_AIS_InteractiveObject, - AIS_InteractiveObject) from OCC.Core.BRepCheck import (BRepCheck_ListIteratorOfListOfStatus, BRepCheck_ListOfStatus, BRepCheck_Multiple3DCurve, BRepCheck_EmptyWire) +from OCC.Core.Geom import Geom_Curve, Geom_Line, Geom_BSplineCurve +from OCC.Core.BRep import BRep_Tool_Curve + class TestWrapperFeatures(unittest.TestCase): def test_hash(self): @@ -81,7 +81,7 @@ def test_const_Standard_Integer_byref(self): def test_handle_standard_transient_copy(self): def evil_function(t): - handle = Handle_Standard_Transient(t) + handle = Standard_Transient(t) t = Standard_Transient() evil_function(t) @@ -373,19 +373,16 @@ def testAutoImportOfDependentModules(self): # since the OCC.Geom2d module # is *not* manually imported returned_object_type = '%s' % type(returned_object) - self.assertEqual(returned_object_type, "") + self.assertEqual(returned_object_type, "") def test_hash_eq_operator(self): ''' test that the == wrapper is ok ''' # test Standard - h1 = Handle_Standard_Transient() s = Standard_Transient() - h2 = s.GetHandle() - self.assertTrue(h1 == h1) - self.assertFalse(h1 == h2) - self.assertFalse(h1 == 10) - self.assertTrue(h2 == s) + s2 = Standard_Transient() + self.assertFalse(s == s2) + self.assertTrue(s == s) # test list.index, that uses __eq__ method p1 = gp_Pnt(0., 0., 0.) line = gp_Lin(p1, gp_Dir(1., 0., 0.)) @@ -402,13 +399,10 @@ def test_eq_operator(self): def test_neq_operator(self): # test Standard - h1 = Handle_Standard_Transient() s = Standard_Transient() - h2 = s.GetHandle() - self.assertFalse(h1 != h1) - self.assertTrue(h1 != h2) - self.assertTrue(h1 != 10) - self.assertFalse(h2 != s) + s2 = Standard_Transient() + self.assertTrue(s != s2) + self.assertFalse(s != s) shape_1 = BRepPrimAPI_MakeBox(10, 20, 30).Shape() shape_2 = BRepPrimAPI_MakeBox(10, 20, 30).Shape() self.assertTrue(shape_1 != shape_2) @@ -475,13 +469,12 @@ def test_memory_handle_getobject(self): """ a = gp_Pnt(0., 0., 0.) b = gp_Pnt(100., 100., 100.) - line3 = GC_MakeSegment(a, b).Value().GetObject() + line3 = GC_MakeSegment(a, b).Value() assert line3.FirstParameter() == 0. - assert GC_MakeSegment(a, b).Value().GetObject().FirstParameter() == 0. - assert GC_MakeSegment(a, b).Value().GetObject().GetHandle().GetObject().GetHandle().GetObject().FirstParameter() == 0. + assert GC_MakeSegment(a, b).Value().FirstParameter() == 0. assert b.IsEqual(line3.EndPoint(), 0.01) - assert b.IsEqual(GC_MakeSegment(a, b).Value().GetObject().EndPoint(), 0.01) - assert b.IsEqual(GC_MakeSegment(a, b).Value().GetObject().GetHandle().GetObject().GetHandle().GetObject().EndPoint(), 0.01) + assert b.IsEqual(GC_MakeSegment(a, b).Value().EndPoint(), 0.01) + def test_local_properties(self): @@ -500,13 +493,19 @@ def test_repr_overload(self): shp = BRepPrimAPI_MakeBox(10, 20, 30).Shape() assert "class<'TopoDS_Shape'; Type:Solid; id:" in str(shp) - def test_downcast_ais_shape(self): - """ Test if an AIS_Shape can be donwcasted to a TopoDS_Shape + def test_downcast_curve(self): + """ Test if a GeomCurve can be DownCasted to a GeomLine """ - ais_interactive_object_handle = Handle_AIS_InteractiveObject() - ais_shape_handle = Handle_AIS_Shape_DownCast(ais_interactive_object_handle) - assert isinstance(ais_shape_handle, Handle_AIS_Shape) - assert ais_shape_handle.IsNull() + + edge = BRepBuilderAPI_MakeEdge(gp_Pnt(0,0,0), gp_Pnt(1,0,0)).Edge() + curve, _, _ = BRep_Tool_Curve(edge) + assert isinstance(curve, Geom_Curve) + # The edge is internally a line, so we should be able to downcast it + line = Geom_Line.DownCast(curve) + assert isinstance(curve, Geom_Curve) + # Hence, it should not be possible to downcast it as a B-Spline curve + bspline = Geom_BSplineCurve.DownCast(curve) + assert bspline is None def test_return_enum(self): """ Check that returned enums are properly handled, wether they're returned @@ -531,13 +530,37 @@ def test_deprecation_warning(self): """ since pythonocc-0.18.2. import OCC.* changed to import OCC.Core.* Such deprecated import raises a DeprecatedWarning """ - import warnings - catched = False - with warnings.catch_warnings(): + with self.assertWarns(DeprecationWarning): from OCC.gp import gp_Pln - catched = True - assert catched + def test_deprecation_get_handle(self): + """ Handles are now completely transparent. The GetHandle method is + not required anymore. + """ + t = Standard_Transient() + with self.assertWarns(DeprecationWarning): + t.GetHandle() + + def test_deprecation_handle_class(self): + """ Handles are now completely transparent. The Handle_* constructor is + not required anymore. + """ + t = Standard_Transient() + with self.assertWarns(DeprecationWarning): + h = Handle_Standard_Transient(t) + + def test_deprecation_get_object(self): + """ Handles are now completely transparent. The GetObject method is + not required anymore. + """ + t = Standard_Transient() + with self.assertWarns(DeprecationWarning): + t.GetObject() + + def test_deprecation_downcasts(self): + t = Standard_Transient() + with self.assertWarns(DeprecationWarning): + Handle_Standard_Transient.DownCast(t) def suite(): test_suite = unittest.TestSuite() diff --git a/test/test_io/box_shape.brep b/test/test_io/box_shape.brep index db600d60fd4f94f7a57e3d8f89d03ad9b9f802ed..79573083edf75602e05f086d5f02cce71b980eec 100644 GIT binary patch literal 2670 zcma)7!EPEc5T(t{U*TiJcB8eIK(T|-j)aZHpGPn0TZF|b-fbp9W}le?-~gXih$t%tY2-xd0nvj55fSYG7RhPEhZFAD zP8;i*l#nen(((XWXyi3Q;s8%PFqRDgcMP%BDC5&&Bq_ng9W_)z4T|C&Dbn1DqrTRw z*G0W9$7Bun`*uCuF01w8c@<1EdEWl2X7ioyhaR}1frFzi${kBNjNzqS$$qRz`2Htb z${R0opX>Y6O6x$6n(}qp>9VKp=E}_TVxUl)T7z$;3R4*RQ{D9Z;PmERX-+3fgiY;X zZc@o&0Y+hIwGB&$QV?Wb_GmjROL``VXh;jE7F4NA@rqDOhw7F++5ibG6I5`^82bSA z6s1xX{0Q?hRod5(*;OAansb;OH-+X+N;2E$fM5%8R?83?5vMdv=(~muHIRZe49zF3<0)D8hHZEQ zw5Urbx%lg+^v#i*s1gEY_MT1o?BL=Fx6H?8D5ov}S8bvI;k@G+@_DROQOskOK zsEU{+p~CN^Tu6YG3?VH-V~L7Dd{<2#u!Vn4^m?=CYeqK!g!r;DH{QieDZEySEz7Sq Q-cp;lpE`dxXFo6g0W?R>fdBvi literal 3035 zcmb7FQE!_t5PtWs@LRhvDr}OpeXNpBnzXIcQgts#5v4566d44hQvdz#d^TX?AXTYI zuwtfyj|ARP={+I2{fe9nf`8}XjYCj?>J9c5dw3?PAkCd6&p zSEe5I>1=rlr{<}I?#ehxt}}(HAeH`+!C6a0BH%AmpQmx*sQZ^paViH)fdNXVIh)E7 z-;mkxF1Z}uA%Soc9EMh(qE-oiGp2v?_U+tanz;|<`Q>rvP3wf=MP zuu;4?#pFod=;t*&fydVzn;)ibWB})&(2-nG*w|=f*>l62Mt($IYS7Ai%MpGsn}GQa z3;o1MU#ZzwM$mQ^LKrUnf}C-jq*)^)&vBN^M?}FtGe$yseLE4?}YZ92>K4RCc|3a3FEu)F~M%&IyYAVlq6U5 z3-+Ms1>YuUkp7^A>x0i6fLjj$8lrn32%vpvZyR3`fxEHRB@#ph$xluqEP9HVurrM5 zR<;Vj)DdUU2mtA5g&3O|&U!?+62rhf0DA$40LX+Xa)d@Fk|5ET?13EUhMFh>c&;Mo zr$9N04vX~&Bki_GYd)z5dbstB<$QYj){Kc5GNrLi%E2t%a;OhPZC_~_{~1F>EO8DI m95N)SuL;dpuc99?rNR__6zCGBetgBb-`RYFzp}F$_ From 9c76a1ea1b5b28c6246341b7252e4901820135e4 Mon Sep 17 00:00:00 2001 From: Martin Siggel Date: Fri, 16 Nov 2018 09:23:54 +0100 Subject: [PATCH 2/9] Try to fix issue due to different python versions --- ci/conda/meta.yaml | 1 + test/core_ocaf_unittest.py | 17 ++++++++++++++--- test/core_wrapper_features_unittest.py | 23 ++++++++++++++++++----- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/ci/conda/meta.yaml b/ci/conda/meta.yaml index 324505f5e..32b9a0f3e 100644 --- a/ci/conda/meta.yaml +++ b/ci/conda/meta.yaml @@ -36,6 +36,7 @@ requirements: - tbb >=2018_20171205 - freetype >=2.7 - smesh ==6.7.6 + - six test: requires: diff --git a/test/core_ocaf_unittest.py b/test/core_ocaf_unittest.py index e3c360744..e9cf54c6d 100644 --- a/test/core_ocaf_unittest.py +++ b/test/core_ocaf_unittest.py @@ -37,13 +37,24 @@ from OCC.Core.STEPControl import STEPControl_AsIs from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox +import warnings +from contextlib import contextmanager + +@contextmanager +def assert_warns_deprecated(): + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter("always") + yield w + # Verify some things + assert issubclass(w[-1].category, DeprecationWarning) + assert "deprecated" in str(w[-1].message) class TestOCAF(unittest.TestCase): def test_create_app(self): ''' Creates an OCAF app and an empty document ''' # create an handle to a document doc = Handle_TDocStd_Document() - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): assert(doc.IsNull()) # Create the application app = XCAFApp_Application.GetApplication() @@ -53,13 +64,13 @@ def test_write_step_file(self): ''' Exports a colored box into a STEP file ''' ### initialisation doc = Handle_TDocStd_Document() - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): assert(doc.IsNull()) # Create the application app = XCAFApp_Application.GetApplication() app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): assert(not doc.IsNull()) # Get root assembly diff --git a/test/core_wrapper_features_unittest.py b/test/core_wrapper_features_unittest.py index 176a0e3b6..b4cafae0c 100644 --- a/test/core_wrapper_features_unittest.py +++ b/test/core_wrapper_features_unittest.py @@ -50,6 +50,19 @@ from OCC.Core.Geom import Geom_Curve, Geom_Line, Geom_BSplineCurve from OCC.Core.BRep import BRep_Tool_Curve +import warnings +from contextlib import contextmanager + +@contextmanager +def assert_warns_deprecated(): + with warnings.catch_warnings(record=True) as w: + warnings.simplefilter("always") + yield w + # Verify some things + assert issubclass(w[-1].category, DeprecationWarning) + assert "deprecated" in str(w[-1].message) + + class TestWrapperFeatures(unittest.TestCase): def test_hash(self): @@ -530,7 +543,7 @@ def test_deprecation_warning(self): """ since pythonocc-0.18.2. import OCC.* changed to import OCC.Core.* Such deprecated import raises a DeprecatedWarning """ - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): from OCC.gp import gp_Pln def test_deprecation_get_handle(self): @@ -538,7 +551,7 @@ def test_deprecation_get_handle(self): not required anymore. """ t = Standard_Transient() - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): t.GetHandle() def test_deprecation_handle_class(self): @@ -546,7 +559,7 @@ def test_deprecation_handle_class(self): not required anymore. """ t = Standard_Transient() - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): h = Handle_Standard_Transient(t) def test_deprecation_get_object(self): @@ -554,12 +567,12 @@ def test_deprecation_get_object(self): not required anymore. """ t = Standard_Transient() - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): t.GetObject() def test_deprecation_downcasts(self): t = Standard_Transient() - with self.assertWarns(DeprecationWarning): + with assert_warns_deprecated(): Handle_Standard_Transient.DownCast(t) def suite(): From 0e19ef7dc72ff06832226f990a1908eebcfe77d3 Mon Sep 17 00:00:00 2001 From: Thomas Paviot Date: Sat, 17 Nov 2018 09:18:09 +0100 Subject: [PATCH 3/9] Modified DataExchange to use transparent handles --- src/Extend/DataExchange.py | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/src/Extend/DataExchange.py b/src/Extend/DataExchange.py index a9450c40a..2cd41eebd 100644 --- a/src/Extend/DataExchange.py +++ b/src/Extend/DataExchange.py @@ -26,7 +26,7 @@ from OCC.Core.STEPControl import STEPControl_Reader, STEPControl_Writer, STEPControl_AsIs from OCC.Core.Interface import Interface_Static_SetCVal from OCC.Core.IFSelect import IFSelect_RetDone, IFSelect_ItemsByEntity -from OCC.Core.TDocStd import Handle_TDocStd_Document +from OCC.Core.TDocStd import TDocStd_Document from OCC.Core.XCAFApp import XCAFApp_Application from OCC.Core.XCAFDoc import (XCAFDoc_DocumentTool_ShapeTool, XCAFDoc_DocumentTool_ColorTool, @@ -34,7 +34,7 @@ XCAFDoc_DocumentTool_MaterialTool) from OCC.Core.STEPCAFControl import STEPCAFControl_Reader from OCC.Core.TDF import TDF_LabelSequence, TDF_Label, TDF_Tool -from OCC.Core.TDataStd import Handle_TDataStd_Name, TDataStd_Name_GetID +from OCC.Core.TDataStd import TDataStd_Name, TDataStd_Name_GetID from OCC.Core.TCollection import TCollection_ExtendedString, TCollection_AsciiString from OCC.Core.Quantity import Quantity_Color from OCC.Core.TopLoc import TopLoc_Location @@ -110,18 +110,13 @@ def read_step_file_with_names_colors(filename): # the list: output_shapes = [] # create an handle to a document - h_doc = Handle_TDocStd_Document() - - # Create the application - app = XCAFApp_Application.GetApplication().GetObject() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), h_doc) + doc = TDocStd_Document(TCollection_ExtendedString("pythonocc-doc")) # Get root assembly - doc = h_doc.GetObject() - h_shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) - h_color_tool = XCAFDoc_DocumentTool_ColorTool(doc.Main()) - h_layer_tool = XCAFDoc_DocumentTool_LayerTool(doc.Main()) - h_mat_tool = XCAFDoc_DocumentTool_MaterialTool(doc.Main()) + shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) + color_tool = XCAFDoc_DocumentTool_ColorTool(doc.Main()) + layer_tool = XCAFDoc_DocumentTool_LayerTool(doc.Main()) + mat_tool = XCAFDoc_DocumentTool_MaterialTool(doc.Main()) step_reader = STEPCAFControl_Reader() step_reader.SetColorMode(True) @@ -131,13 +126,11 @@ def read_step_file_with_names_colors(filename): status = step_reader.ReadFile(filename) if status == IFSelect_RetDone: - step_reader.Transfer(doc.GetHandle()) + step_reader.Transfer(doc) - shape_tool = h_shape_tool.GetObject() shape_tool.SetAutoNaming(True) - color_tool = h_color_tool.GetObject() - + #lvl = 0 locs = [] #cnt = 0 @@ -145,9 +138,8 @@ def read_step_file_with_names_colors(filename): def _get_label_name(lab): entry = TCollection_AsciiString() TDF_Tool.Entry(lab, entry) - N = Handle_TDataStd_Name() - lab.FindAttribute(TDataStd_Name_GetID(), N) - n = N.GetObject() + n = TDataStd_Name() + lab.FindAttribute(TDataStd_Name_GetID(), n) if n: return n.Get().PrintToString() return "No Name" @@ -290,7 +282,7 @@ def _get_sub_shapes(lab, loc): def _get_shapes(): labels = TDF_LabelSequence() - h_shape_tool.GetObject().GetFreeShapes(labels) + shape_tool.GetFreeShapes(labels) #global cnt #cnt += 1 From 1a1bafb9fc707617d058fe18e3aedb1f26f59d5c Mon Sep 17 00:00:00 2001 From: Martin Siggel Date: Fri, 16 Nov 2018 10:03:23 +0100 Subject: [PATCH 4/9] Reverted to original pickled brep file --- test/test_io/box_shape.brep | Bin 2670 -> 3035 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/test/test_io/box_shape.brep b/test/test_io/box_shape.brep index 79573083edf75602e05f086d5f02cce71b980eec..db600d60fd4f94f7a57e3d8f89d03ad9b9f802ed 100644 GIT binary patch literal 3035 zcmb7FQE!_t5PtWs@LRhvDr}OpeXNpBnzXIcQgts#5v4566d44hQvdz#d^TX?AXTYI zuwtfyj|ARP={+I2{fe9nf`8}XjYCj?>J9c5dw3?PAkCd6&p zSEe5I>1=rlr{<}I?#ehxt}}(HAeH`+!C6a0BH%AmpQmx*sQZ^paViH)fdNXVIh)E7 z-;mkxF1Z}uA%Soc9EMh(qE-oiGp2v?_U+tanz;|<`Q>rvP3wf=MP zuu;4?#pFod=;t*&fydVzn;)ibWB})&(2-nG*w|=f*>l62Mt($IYS7Ai%MpGsn}GQa z3;o1MU#ZzwM$mQ^LKrUnf}C-jq*)^)&vBN^M?}FtGe$yseLE4?}YZ92>K4RCc|3a3FEu)F~M%&IyYAVlq6U5 z3-+Ms1>YuUkp7^A>x0i6fLjj$8lrn32%vpvZyR3`fxEHRB@#ph$xluqEP9HVurrM5 zR<;Vj)DdUU2mtA5g&3O|&U!?+62rhf0DA$40LX+Xa)d@Fk|5ET?13EUhMFh>c&;Mo zr$9N04vX~&Bki_GYd)z5dbstB<$QYj){Kc5GNrLi%E2t%a;OhPZC_~_{~1F>EO8DI m95N)SuL;dpuc99?rNR__6zCGBetgBb-`RYFzp}F$_ literal 2670 zcma)7!EPEc5T(t{U*TiJcB8eIK(T|-j)aZHpGPn0TZF|b-fbp9W}le?-~gXih$t%tY2-xd0nvj55fSYG7RhPEhZFAD zP8;i*l#nen(((XWXyi3Q;s8%PFqRDgcMP%BDC5&&Bq_ng9W_)z4T|C&Dbn1DqrTRw z*G0W9$7Bun`*uCuF01w8c@<1EdEWl2X7ioyhaR}1frFzi${kBNjNzqS$$qRz`2Htb z${R0opX>Y6O6x$6n(}qp>9VKp=E}_TVxUl)T7z$;3R4*RQ{D9Z;PmERX-+3fgiY;X zZc@o&0Y+hIwGB&$QV?Wb_GmjROL``VXh;jE7F4NA@rqDOhw7F++5ibG6I5`^82bSA z6s1xX{0Q?hRod5(*;OAansb;OH-+X+N;2E$fM5%8R?83?5vMdv=(~muHIRZe49zF3<0)D8hHZEQ zw5Urbx%lg+^v#i*s1gEY_MT1o?BL=Fx6H?8D5ov}S8bvI;k@G+@_DROQOskOK zsEU{+p~CN^Tu6YG3?VH-V~L7Dd{<2#u!Vn4^m?=CYeqK!g!r;DH{QieDZEySEz7Sq Q-cp;lpE`dxXFo6g0W?R>fdBvi From ae9e450e9cc948a5f26a4b5b06cc1a62614dcb40 Mon Sep 17 00:00:00 2001 From: Thomas Paviot Date: Mon, 19 Nov 2018 06:39:06 +0100 Subject: [PATCH 5/9] changed named and location of utils.py module for Proxy and deprecated --- CMakeLists.txt | 2 +- src/SWIG_files/common/OccHandle.i | 2 +- src/{utils.py => Wrapper/wrapper_utils.py} | 75 +++++++++++++--------- 3 files changed, 48 insertions(+), 31 deletions(-) rename src/{utils.py => Wrapper/wrapper_utils.py} (68%) diff --git a/CMakeLists.txt b/CMakeLists.txt index da46018b7..a594e03d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -479,7 +479,7 @@ install(TARGETS _GEOMAlgo DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Extend DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY} ) # install Utils -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/utils.py DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Wrapper/wrapper_utils.py DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) # install deprecated modules file(GLOB DEPRECATED_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/src/SWIG_files/deprecated_modules/*.py) diff --git a/src/SWIG_files/common/OccHandle.i b/src/SWIG_files/common/OccHandle.i index 2504fec65..114034ef4 100644 --- a/src/SWIG_files/common/OccHandle.i +++ b/src/SWIG_files/common/OccHandle.i @@ -50,7 +50,7 @@ along with pythonOCC. If not, see . %pythoncode { from six import with_metaclass import warnings - from OCC.utils import Proxy, deprecated + from OCC.Wrapper.wrapper_utils import Proxy, deprecated } %{ diff --git a/src/utils.py b/src/Wrapper/wrapper_utils.py similarity index 68% rename from src/utils.py rename to src/Wrapper/wrapper_utils.py index e1677f822..c5557214a 100644 --- a/src/utils.py +++ b/src/Wrapper/wrapper_utils.py @@ -1,21 +1,38 @@ +##Copyright 2018 Martin Siggel (martin.siggel@dlr.de) +## +##This file is part of pythonOCC. +## +##pythonOCC is free software: you can redistribute it and/or modify +##it under the terms of the GNU Lesser General Public License as published by +##the Free Software Foundation, either version 3 of the License, or +##(at your option) any later version. +## +##pythonOCC is distributed in the hope that it will be useful, +##but WITHOUT ANY WARRANTY; without even the implied warranty of +##MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +##GNU Lesser General Public License for more details. +## +##You should have received a copy of the GNU Lesser General Public License +##along with pythonOCC. If not, see . + import warnings def deprecated(message): - def deprecated_decorator(func): - def deprecated_func(*args, **kwargs): - warnings.warn("{} is a deprecated function. {}".format(func.__name__, message), - category=DeprecationWarning, - stacklevel=2) - warnings.simplefilter('default', DeprecationWarning) - return func(*args, **kwargs) - return deprecated_func - return deprecated_decorator + def deprecated_decorator(func): + def deprecated_func(*args, **kwargs): + warnings.warn("{} is a deprecated function. {}".format(func.__name__, message), + category=DeprecationWarning, + stacklevel=2) + warnings.simplefilter('default', DeprecationWarning) + return func(*args, **kwargs) + return deprecated_func + return deprecated_decorator class Proxy(object): __slots__ = ["_obj", "__weakref__"] def __init__(self, obj): object.__setattr__(self, "_obj", obj) - + # # proxying (special cases) # @@ -25,53 +42,53 @@ def __delattr__(self, name): delattr(object.__getattribute__(self, "_obj"), name) def __setattr__(self, name, value): setattr(object.__getattribute__(self, "_obj"), name, value) - + def __nonzero__(self): return bool(object.__getattribute__(self, "_obj")) def __str__(self): return str(object.__getattribute__(self, "_obj")) def __repr__(self): return repr(object.__getattribute__(self, "_obj")) - + # # factories # _special_names = [ - '__abs__', '__add__', '__and__', '__call__', '__cmp__', '__coerce__', - '__contains__', '__delitem__', '__delslice__', '__div__', '__divmod__', - '__eq__', '__float__', '__floordiv__', '__ge__', '__getitem__', + '__abs__', '__add__', '__and__', '__call__', '__cmp__', '__coerce__', + '__contains__', '__delitem__', '__delslice__', '__div__', '__divmod__', + '__eq__', '__float__', '__floordiv__', '__ge__', '__getitem__', '__getslice__', '__gt__', '__hash__', '__hex__', '__iadd__', '__iand__', - '__idiv__', '__idivmod__', '__ifloordiv__', '__ilshift__', '__imod__', - '__imul__', '__int__', '__invert__', '__ior__', '__ipow__', '__irshift__', - '__isub__', '__iter__', '__itruediv__', '__ixor__', '__le__', '__len__', - '__long__', '__lshift__', '__lt__', '__mod__', '__mul__', '__ne__', - '__neg__', '__oct__', '__or__', '__pos__', '__pow__', '__radd__', - '__rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__', - '__repr__', '__reversed__', '__rfloorfiv__', '__rlshift__', '__rmod__', - '__rmul__', '__ror__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', - '__rtruediv__', '__rxor__', '__setitem__', '__setslice__', '__sub__', + '__idiv__', '__idivmod__', '__ifloordiv__', '__ilshift__', '__imod__', + '__imul__', '__int__', '__invert__', '__ior__', '__ipow__', '__irshift__', + '__isub__', '__iter__', '__itruediv__', '__ixor__', '__le__', '__len__', + '__long__', '__lshift__', '__lt__', '__mod__', '__mul__', '__ne__', + '__neg__', '__oct__', '__or__', '__pos__', '__pow__', '__radd__', + '__rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__', + '__repr__', '__reversed__', '__rfloorfiv__', '__rlshift__', '__rmod__', + '__rmul__', '__ror__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', + '__rtruediv__', '__rxor__', '__setitem__', '__setslice__', '__sub__', '__truediv__', '__xor__', 'next', ] - + @classmethod def _create_class_proxy(cls, theclass): """creates a proxy for the given class""" - + def make_method(name): def method(self, *args, **kw): return getattr(object.__getattribute__(self, "_obj"), name)(*args, **kw) return method - + namespace = {} for name in cls._special_names: if hasattr(theclass, name): namespace[name] = make_method(name) return type("%s(%s)" % (cls.__name__, theclass.__name__), (cls,), namespace) - + def __new__(cls, obj, *args, **kwargs): """ creates an proxy instance referencing `obj`. (obj, *args, **kwargs) are - passed to this class' __init__, so deriving classes can define an + passed to this class' __init__, so deriving classes can define an __init__ method of their own. note: _class_proxy_cache is unique per deriving class (each deriving class must hold its own cache) From 329dfb2ac066004ca62540e156c03758994cd82a Mon Sep 17 00:00:00 2001 From: Thomas Paviot Date: Mon, 19 Nov 2018 08:24:52 +0100 Subject: [PATCH 6/9] run pylint over unittests --- test/core_ocaf_unittest.py | 43 +++++++++----------------- test/core_wrapper_features_unittest.py | 13 ++++---- 2 files changed, 20 insertions(+), 36 deletions(-) diff --git a/test/core_ocaf_unittest.py b/test/core_ocaf_unittest.py index e9cf54c6d..4dea16be4 100644 --- a/test/core_ocaf_unittest.py +++ b/test/core_ocaf_unittest.py @@ -24,11 +24,10 @@ from OCC.Core.TCollection import TCollection_ExtendedString -from OCC.Core.TDocStd import Handle_TDocStd_Document -from OCC.Core.XCAFApp import XCAFApp_Application +from OCC.Core.TDocStd import TDocStd_Document from OCC.Core.XCAFDoc import (XCAFDoc_DocumentTool_ShapeTool, - XCAFDoc_DocumentTool_ColorTool, - XCAFDoc_ColorGen) + XCAFDoc_DocumentTool_ColorTool, + XCAFDoc_ColorGen) from OCC.Core.STEPCAFControl import STEPCAFControl_Reader, STEPCAFControl_Writer from OCC.Core.IFSelect import IFSelect_RetDone from OCC.Core.Quantity import Quantity_Color @@ -50,28 +49,17 @@ def assert_warns_deprecated(): assert "deprecated" in str(w[-1].message) class TestOCAF(unittest.TestCase): - def test_create_app(self): + def test_create_doc(self): ''' Creates an OCAF app and an empty document ''' # create an handle to a document - doc = Handle_TDocStd_Document() - with assert_warns_deprecated(): - assert(doc.IsNull()) - # Create the application - app = XCAFApp_Application.GetApplication() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) + doc = TDocStd_Document(TCollection_ExtendedString("MDTV-CAF")) + assert not doc.IsNull() def test_write_step_file(self): ''' Exports a colored box into a STEP file ''' ### initialisation - doc = Handle_TDocStd_Document() - with assert_warns_deprecated(): - assert(doc.IsNull()) - # Create the application - app = XCAFApp_Application.GetApplication() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) - - with assert_warns_deprecated(): - assert(not doc.IsNull()) + doc = TDocStd_Document(TCollection_ExtendedString("pythonocc-doc")) + assert doc is not None # Get root assembly shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) @@ -97,10 +85,7 @@ def test_write_step_file(self): def test_read_step_file(self): ''' Reads the previous step file ''' # create an handle to a document - doc = Handle_TDocStd_Document() - # Create the application - app = XCAFApp_Application.GetApplication() - app.NewDocument(TCollection_ExtendedString("MDTV-CAF"), doc) + doc = TDocStd_Document(TCollection_ExtendedString("pythonocc-doc")) # Get root assembly shape_tool = XCAFDoc_DocumentTool_ShapeTool(doc.Main()) l_colors = XCAFDoc_DocumentTool_ColorTool(doc.Main()) @@ -118,18 +103,18 @@ def test_read_step_file(self): shape_tool.GetFreeShapes(labels) - assert(labels.Length() == 1) + assert labels.Length() == 1 sub_shapes_labels = TDF_LabelSequence() - assert(not shape_tool.IsAssembly(labels.Value(1))) + assert not shape_tool.IsAssembly(labels.Value(1)) shape_tool.GetSubShapes(labels.Value(1), sub_shapes_labels) - assert(sub_shapes_labels.Length() == 0) + assert sub_shapes_labels.Length() == 0 l_colors.GetColors(color_labels) - assert(color_labels.Length() == 1) + assert color_labels.Length() == 1 label_shp = labels.Value(1) a_shape = shape_tool.GetShape(label_shp) - assert(not a_shape.IsNull()) + assert not a_shape.IsNull() def suite(): diff --git a/test/core_wrapper_features_unittest.py b/test/core_wrapper_features_unittest.py index b4cafae0c..0f429b905 100644 --- a/test/core_wrapper_features_unittest.py +++ b/test/core_wrapper_features_unittest.py @@ -21,13 +21,15 @@ import unittest import os from math import sqrt +import warnings +from contextlib import contextmanager from OCC.Core.Standard import Standard_Transient, Handle_Standard_Transient from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox from OCC.Core.BRepBuilderAPI import (BRepBuilderAPI_MakeVertex, - BRepBuilderAPI_MakeEdge) + BRepBuilderAPI_MakeEdge) from OCC.Core.gp import (gp_Pnt, gp_Vec, gp_Pnt2d, gp_Lin, gp_Dir, - gp_Quaternion, gp_QuaternionSLerp) + gp_Quaternion, gp_QuaternionSLerp) from OCC.Core.GC import GC_MakeSegment from OCC.Core.STEPControl import STEPControl_Writer from OCC.Core.Interface import Interface_Static_SetCVal, Interface_Static_CVal @@ -45,14 +47,11 @@ from OCC.Core.ChFiDS import ChFiDS_ChamfSpine from OCC.Core.Graphic3d import Graphic3d_RenderingParams from OCC.Core.BRepCheck import (BRepCheck_ListIteratorOfListOfStatus, - BRepCheck_ListOfStatus, BRepCheck_Multiple3DCurve, - BRepCheck_EmptyWire) + BRepCheck_ListOfStatus, BRepCheck_Multiple3DCurve, + BRepCheck_EmptyWire) from OCC.Core.Geom import Geom_Curve, Geom_Line, Geom_BSplineCurve from OCC.Core.BRep import BRep_Tool_Curve -import warnings -from contextlib import contextmanager - @contextmanager def assert_warns_deprecated(): with warnings.catch_warnings(record=True) as w: From 1fdaa07b48b8fd8eec5102157efcf10af37a880d Mon Sep 17 00:00:00 2001 From: Thomas Paviot Date: Mon, 19 Nov 2018 08:26:25 +0100 Subject: [PATCH 7/9] Moved TopologyUtils to a new unittest case --- CMakeLists.txt | 2 +- src/Extend/TopologyUtils.py | 169 ----------------------- test/core_extend_topology_unittest.py | 189 ++++++++++++++++++++++++++ test/run_tests.py | 4 + 4 files changed, 194 insertions(+), 170 deletions(-) create mode 100644 test/core_extend_topology_unittest.py diff --git a/CMakeLists.txt b/CMakeLists.txt index a594e03d7..dde7f4988 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -479,7 +479,7 @@ install(TARGETS _GEOMAlgo DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Extend DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY} ) # install Utils -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Wrapper/wrapper_utils.py DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Wrapper DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) # install deprecated modules file(GLOB DEPRECATED_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/src/SWIG_files/deprecated_modules/*.py) diff --git a/src/Extend/TopologyUtils.py b/src/Extend/TopologyUtils.py index d50e796a2..f2861ccc9 100644 --- a/src/Extend/TopologyUtils.py +++ b/src/Extend/TopologyUtils.py @@ -544,21 +544,6 @@ def discretize_edge(a_topods_edge, deflection=0.5): points.append(p.Coord()) return points -def test_discretize_edge(): - from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeTorus - tor = BRepPrimAPI_MakeTorus(50, 20).Shape() - topo = TopologyExplorer(tor) - for edge in topo.edges(): - discretize_edge(edge) - - -def test_discretize_wire(): - from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeTorus - tor = BRepPrimAPI_MakeTorus(50, 20).Shape() - topo = TopologyExplorer(tor) - for wire in topo.wires(): - discretize_wire(wire) - # # TopoDS_Shape type utils # @@ -612,157 +597,3 @@ def is_compound(topods_shape): def is_compsolid(topods_shape): return topods_shape.ShapeType() == TopAbs_COMPSOLID - -# -# Tests -# - -def get_test_box_shape(): - return BRepPrimAPI_MakeBox(10, 20, 30).Shape() - - -def get_test_sphere_shape(): - return BRepPrimAPI_MakeSphere(10.).Shape() - -def test_loop_faces(): - i = 0 - for face in topo.faces(): - i += 1 - assert(isinstance(face, TopoDS_Face)) - assert i == 6 - - -def test_loop_edges(): - i = 0 - for face in topo.edges(): - i += 1 - assert(isinstance(face, TopoDS_Edge)) - assert i == 12 - - -def number_of_topological_entities(): - assert topo.number_of_faces() == 6 - assert topo.number_of_edges() == 12 - assert topo.number_of_vertices() == 8 - assert topo.number_of_wires() == 6 - assert topo.number_of_solids() == 1 - assert topo.number_of_shells() == 1 - assert topo.number_of_compounds() == 0 - assert topo.number_of_comp_solids() == 0 - - -def test_nested_iteration(): - '''check nested looping''' - for f in topo.faces(): - for e in topo.edges(): - assert isinstance(f, TopoDS_Face) - assert isinstance(e, TopoDS_Edge) - - -def test_kept_reference(): - '''did we keep a reference after looping several time through a list - of topological entities?''' - _tmp = [] - _faces = [i for i in topo.faces()] - for f in _faces: - _tmp.append(f.IsNull() == 0) - for f in _faces: - _tmp.append(f.IsNull() == 0) - assert all(_tmp) - - -def test_edge_face(): - edg = next(topo.edges()) - face = next(topo.faces()) - faces_from_edge = [i for i in topo.faces_from_edge(edg)] - assert len(faces_from_edge) == topo.number_of_faces_from_edge(edg) - edges_from_face = [i for i in topo.edges_from_face(face)] - assert len(edges_from_face) == topo.number_of_edges_from_face(face) - - -def test_edge_wire(): - edg = next(topo.edges()) - wire = next(topo.wires()) - wires_from_edge = [i for i in topo.wires_from_edge(edg)] - assert len(wires_from_edge) == topo.number_of_wires_from_edge(edg) - edges_from_wire = [i for i in topo.edges_from_wire(wire)] - assert len(edges_from_wire) == topo.number_of_edges_from_wire(wire) - - -def test_vertex_edge(): - vert = next(topo.vertices()) - edge = next(topo.edges()) - verts_from_edge = [i for i in topo.vertices_from_edge(edge)] - assert len(verts_from_edge) == topo.number_of_vertices_from_edge(edge) - edges_from_vert = [i for i in topo.edges_from_vertex(vert)] - assert len(edges_from_vert) == topo.number_of_edges_from_vertex(vert) - - -def test_vertex_face(): - vert = next(topo.vertices()) - face = next(topo.faces()) - faces_from_vertex = [i for i in topo.faces_from_vertex(vert)] - assert len(faces_from_vertex) == topo.number_of_faces_from_vertex(vert) - verts_from_face = [i for i in topo.vertices_from_face(face)] - assert len(verts_from_face) == topo.number_of_vertices_from_face(face) - - -def test_face_solid(): - face = next(topo.faces()) - solid = next(topo.solids()) - faces_from_solid = [i for i in topo.faces_from_solids(solid)] - assert len(faces_from_solid) == topo.number_of_faces_from_solids(solid) - solids_from_face = [i for i in topo.solids_from_face(face)] - assert len(solids_from_face) == topo.number_of_solids_from_face(face) - - -def test_wire_face(): - wire = next(topo.wires()) - face = next(topo.faces()) - faces_from_wire = [i for i in topo.faces_from_wire(wire)] - assert len(faces_from_wire) == topo.number_of_faces_from_wires(wire) - wires_from_face = [i for i in topo.wires_from_face(face)] - assert len(wires_from_face) == topo.number_of_wires_from_face(face) - - -def test_edges_out_of_scope(): - # check pointers going out of scope - face = next(topo.faces()) - _edges = [] - for edg in TopologyExplorer(face).edges(): - _edges.append(edg) - for edg in _edges: - assert not edg.IsNull() - - -def test_wires_out_of_scope(): - # check pointers going out of scope - wire = next(topo.wires()) - _edges, _vertices = [], [] - for edg in WireExplorer(wire).ordered_edges(): - _edges.append(edg) - for edg in _edges: - assert not edg.IsNull() - for vert in WireExplorer(wire).ordered_vertices(): - _vertices.append(vert) - for v in _vertices: - assert not v.IsNull() - -if __name__ == "__main__": - topo = TopologyExplorer(get_test_box_shape()) - assert topo - test_kept_reference() - test_wire_face() - test_face_solid() - test_vertex_face() - test_vertex_edge() - test_edge_wire() - test_edge_face() - test_nested_iteration() - test_loop_edges() - test_loop_faces() - test_edges_out_of_scope() - test_wires_out_of_scope() - # tests discretize - test_discretize_edge() - test_discretize_wire() diff --git a/test/core_extend_topology_unittest.py b/test/core_extend_topology_unittest.py new file mode 100644 index 000000000..a5d0f4ae9 --- /dev/null +++ b/test/core_extend_topology_unittest.py @@ -0,0 +1,189 @@ +#!/usr/bin/env python + +##Copyright 2009-2016 Thomas Paviot (tpaviot@gmail.com) +## +##This file is part of pythonOCC. +## +##pythonOCC is free software: you can redistribute it and/or modify +##it under the terms of the GNU Lesser General Public License as published by +##the Free Software Foundation, either version 3 of the License, or +##(at your option) any later version. +## +##pythonOCC is distributed in the hope that it will be useful, +##but WITHOUT ANY WARRANTY; without even the implied warranty of +##MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +##GNU Lesser General Public License for more details. +## +##You should have received a copy of the GNU Lesser General Public License +##along with pythonOCC. If not, see . + +import pickle +import unittest +import os +from math import sqrt +import warnings +from contextlib import contextmanager + +from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeTorus, BRepPrimAPI_MakeBox +from OCC.Extend.TopologyUtils import (TopologyExplorer, WireExplorer, + discretize_edge, discretize_wire) +from OCC.Core.TopoDS import TopoDS_Face, TopoDS_Edge + + +def get_test_box_shape(): + return BRepPrimAPI_MakeBox(10, 20, 30).Shape() + + +def get_test_sphere_shape(): + return BRepPrimAPI_MakeSphere(10.).Shape() + +topo = TopologyExplorer(get_test_box_shape()) +assert topo + + +class TestExtendTopology(unittest.TestCase): + + def test_discretize_edge(self): + tor = BRepPrimAPI_MakeTorus(50, 20).Shape() + topo = TopologyExplorer(tor) + for edge in topo.edges(): + discretize_edge(edge) + + def test_discretize_wire(self): + tor = BRepPrimAPI_MakeTorus(50, 20).Shape() + topo = TopologyExplorer(tor) + for wire in topo.wires(): + discretize_wire(wire) + + + def test_loop_faces(self): + i = 0 + for face in topo.faces(): + i += 1 + assert(isinstance(face, TopoDS_Face)) + assert i == 6 + + + def test_loop_edges(self): + i = 0 + for face in topo.edges(): + i += 1 + assert(isinstance(face, TopoDS_Edge)) + assert i == 12 + + + def test_number_of_topological_entities(self): + assert topo.number_of_faces() == 6 + assert topo.number_of_edges() == 12 + assert topo.number_of_vertices() == 8 + assert topo.number_of_wires() == 6 + assert topo.number_of_solids() == 1 + assert topo.number_of_shells() == 1 + assert topo.number_of_compounds() == 0 + assert topo.number_of_comp_solids() == 0 + + + def test_nested_iteration(self): + '''check nested looping''' + for f in topo.faces(): + for e in topo.edges(): + assert isinstance(f, TopoDS_Face) + assert isinstance(e, TopoDS_Edge) + + + def test_kept_reference(self): + '''did we keep a reference after looping several time through a list + of topological entities?''' + _tmp = [] + _faces = [i for i in topo.faces()] + for f in _faces: + _tmp.append(f.IsNull() == 0) + for f in _faces: + _tmp.append(f.IsNull() == 0) + assert all(_tmp) + + + def test_edge_face(self): + edg = next(topo.edges()) + face = next(topo.faces()) + faces_from_edge = [i for i in topo.faces_from_edge(edg)] + assert len(faces_from_edge) == topo.number_of_faces_from_edge(edg) + edges_from_face = [i for i in topo.edges_from_face(face)] + assert len(edges_from_face) == topo.number_of_edges_from_face(face) + + + def test_edge_wire(self): + edg = next(topo.edges()) + wire = next(topo.wires()) + wires_from_edge = [i for i in topo.wires_from_edge(edg)] + assert len(wires_from_edge) == topo.number_of_wires_from_edge(edg) + edges_from_wire = [i for i in topo.edges_from_wire(wire)] + assert len(edges_from_wire) == topo.number_of_edges_from_wire(wire) + + + def test_vertex_edge(self): + vert = next(topo.vertices()) + edge = next(topo.edges()) + verts_from_edge = [i for i in topo.vertices_from_edge(edge)] + assert len(verts_from_edge) == topo.number_of_vertices_from_edge(edge) + edges_from_vert = [i for i in topo.edges_from_vertex(vert)] + assert len(edges_from_vert) == topo.number_of_edges_from_vertex(vert) + + + def test_vertex_face(self): + vert = next(topo.vertices()) + face = next(topo.faces()) + faces_from_vertex = [i for i in topo.faces_from_vertex(vert)] + assert len(faces_from_vertex) == topo.number_of_faces_from_vertex(vert) + verts_from_face = [i for i in topo.vertices_from_face(face)] + assert len(verts_from_face) == topo.number_of_vertices_from_face(face) + + + def test_face_solid(self): + face = next(topo.faces()) + solid = next(topo.solids()) + faces_from_solid = [i for i in topo.faces_from_solids(solid)] + assert len(faces_from_solid) == topo.number_of_faces_from_solids(solid) + solids_from_face = [i for i in topo.solids_from_face(face)] + assert len(solids_from_face) == topo.number_of_solids_from_face(face) + + + def test_wire_face(self): + wire = next(topo.wires()) + face = next(topo.faces()) + faces_from_wire = [i for i in topo.faces_from_wire(wire)] + assert len(faces_from_wire) == topo.number_of_faces_from_wires(wire) + wires_from_face = [i for i in topo.wires_from_face(face)] + assert len(wires_from_face) == topo.number_of_wires_from_face(face) + + + def test_edges_out_of_scope(self): + # check pointers going out of scope + face = next(topo.faces()) + _edges = [] + for edg in TopologyExplorer(face).edges(): + _edges.append(edg) + for edg in _edges: + assert not edg.IsNull() + + + def test_wires_out_of_scope(self): + # check pointers going out of scope + wire = next(topo.wires()) + _edges, _vertices = [], [] + for edg in WireExplorer(wire).ordered_edges(): + _edges.append(edg) + for edg in _edges: + assert not edg.IsNull() + for vert in WireExplorer(wire).ordered_vertices(): + _vertices.append(vert) + for v in _vertices: + assert not v.IsNull() + +def suite(): + test_suite = unittest.TestSuite() + test_suite.addTest(unittest.makeSuite(TestExtendTopology)) + return test_suite + +if __name__ == "__main__": + unittest.main() diff --git a/test/run_tests.py b/test/run_tests.py index 9c280bce5..addda002f 100644 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -22,6 +22,7 @@ import core_wrapper_features_unittest import core_geometry_unittest import core_visualization_unittest +import core_extend_topology_unittest try: import core_ocaf_unittest HAVE_OCAF = True @@ -49,6 +50,9 @@ if HAVE_SMESH: suite6 = core_smesh_unittest.suite() tests.append(suite6) +suite7 = core_extend_topology_unittest.suite() +tests.append(suite7) + # Add test cases suite.addTests(tests) From ee8f6d5ff3526dc78182b1d0503fc474f9d70828 Mon Sep 17 00:00:00 2001 From: Thomas Paviot Date: Mon, 19 Nov 2018 15:07:57 +0100 Subject: [PATCH 8/9] Fixed CMakeLists.txt --- CMakeLists.txt | 4 ++-- src/Wrapper/__init__.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/Wrapper/__init__.py diff --git a/CMakeLists.txt b/CMakeLists.txt index dde7f4988..489d18e79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -478,8 +478,8 @@ install(TARGETS _GEOMAlgo DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) # install Extend install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Extend DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY} ) -# install Utils -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Wrapper DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) +# install Wrapper utils +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Wrapper DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) # install deprecated modules file(GLOB DEPRECATED_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/src/SWIG_files/deprecated_modules/*.py) diff --git a/src/Wrapper/__init__.py b/src/Wrapper/__init__.py new file mode 100644 index 000000000..e69de29bb From 57989c63af9dc4f862d223718646bf862e37eb97 Mon Sep 17 00:00:00 2001 From: Thomas Paviot Date: Tue, 20 Nov 2018 09:07:34 +0100 Subject: [PATCH 9/9] Quality: pylint and LGTM fixes --- src/Extend/DataExchange.py | 1 - src/Extend/TopologyUtils.py | 1 - test/core_extend_topology_unittest.py | 11 +-- test/core_geometry_unittest.py | 111 +++++++++++-------------- test/core_ocaf_unittest.py | 5 +- test/core_wrapper_features_unittest.py | 3 +- 6 files changed, 57 insertions(+), 75 deletions(-) diff --git a/src/Extend/DataExchange.py b/src/Extend/DataExchange.py index 2cd41eebd..4d951970e 100644 --- a/src/Extend/DataExchange.py +++ b/src/Extend/DataExchange.py @@ -27,7 +27,6 @@ from OCC.Core.Interface import Interface_Static_SetCVal from OCC.Core.IFSelect import IFSelect_RetDone, IFSelect_ItemsByEntity from OCC.Core.TDocStd import TDocStd_Document -from OCC.Core.XCAFApp import XCAFApp_Application from OCC.Core.XCAFDoc import (XCAFDoc_DocumentTool_ShapeTool, XCAFDoc_DocumentTool_ColorTool, XCAFDoc_DocumentTool_LayerTool, diff --git a/src/Extend/TopologyUtils.py b/src/Extend/TopologyUtils.py index f2861ccc9..df04c6ec9 100644 --- a/src/Extend/TopologyUtils.py +++ b/src/Extend/TopologyUtils.py @@ -19,7 +19,6 @@ from __future__ import print_function -from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakeSphere from OCC.Core.BRep import BRep_Tool from OCC.Core.BRepTools import BRepTools_WireExplorer from OCC.Core.TopAbs import (TopAbs_VERTEX, TopAbs_EDGE, TopAbs_FACE, TopAbs_WIRE, diff --git a/test/core_extend_topology_unittest.py b/test/core_extend_topology_unittest.py index a5d0f4ae9..a2b09c12e 100644 --- a/test/core_extend_topology_unittest.py +++ b/test/core_extend_topology_unittest.py @@ -17,12 +17,7 @@ ##You should have received a copy of the GNU Lesser General Public License ##along with pythonOCC. If not, see . -import pickle import unittest -import os -from math import sqrt -import warnings -from contextlib import contextmanager from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeTorus, BRepPrimAPI_MakeBox from OCC.Extend.TopologyUtils import (TopologyExplorer, WireExplorer, @@ -42,7 +37,7 @@ def get_test_sphere_shape(): class TestExtendTopology(unittest.TestCase): - + def test_discretize_edge(self): tor = BRepPrimAPI_MakeTorus(50, 20).Shape() topo = TopologyExplorer(tor) @@ -60,7 +55,7 @@ def test_loop_faces(self): i = 0 for face in topo.faces(): i += 1 - assert(isinstance(face, TopoDS_Face)) + assert isinstance(face, TopoDS_Face) assert i == 6 @@ -68,7 +63,7 @@ def test_loop_edges(self): i = 0 for face in topo.edges(): i += 1 - assert(isinstance(face, TopoDS_Edge)) + assert isinstance(face, TopoDS_Edge) assert i == 12 diff --git a/test/core_geometry_unittest.py b/test/core_geometry_unittest.py index aa19e9aa4..3ebba2b8c 100644 --- a/test/core_geometry_unittest.py +++ b/test/core_geometry_unittest.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -##Copyright 2009-2013 Thomas Paviot (tpaviot@gmail.com) +##Copyright 2009-2018 Thomas Paviot (tpaviot@gmail.com) ## ##This file is part of pythonOCC. ## @@ -20,36 +20,40 @@ from __future__ import print_function import unittest -import time -import sys - -from OCC.Core.gp import * -from OCC.Core.Geom2d import * -from OCC.Core.Geom2dAdaptor import * -from OCC.Core.Geom2dAPI import * -from OCC.Core.GCPnts import * -from OCC.Core.Geom import * -from OCC.Core.GeomAPI import * -from OCC.Core.Precision import * -from OCC.Core.IntAna import * -from OCC.Core.GC import * -from OCC.Core.GCE2d import * -from OCC.Core.Geom2dConvert import * -from OCC.Core.TopAbs import * -from OCC.Core.GccEnt import * -from OCC.Core.gce import * -from OCC.Core.GccAna import * -from OCC.Core.Quantity import * -from OCC.Core.GeomConvert import * -from OCC.Core.TColGeom import * -from OCC.Core.BRepBuilderAPI import * -from OCC.Core.TCollection import * -from OCC.Core.Graphic3d import * -from OCC.Core.BRepPrimAPI import * -from OCC.Core.AIS import * -from OCC.Core.Prs3d import * -from OCC.Core.TColgp import * -from OCC.Core.GeomFill import * + +from OCC.Core.gp import (gp_Pnt, gp_Pnt2d, gp_Ax3, gp_Vec, gp_Pln, + gp_Elips, gp_OX, gp_XOY, gp_YOZ, gp_OX2d, gp_Dir2d, + gp_Ax22d, gp_Parab2d, gp_Dir) +from OCC.Core.Geom2d import Geom2d_OffsetCurve, Geom2d_Circle, Geom2d_TrimmedCurve +from OCC.Core.Geom2dAdaptor import Geom2dAdaptor_Curve +from OCC.Core.Geom2dAPI import Geom2dAPI_Interpolate, Geom2dAPI_PointsToBSpline +from OCC.Core.GCPnts import GCPnts_UniformAbscissa +from OCC.Core.Geom import (Geom_Circle, Geom_SphericalSurface, Geom_OffsetSurface, + Geom_BezierSurface, Geom_BSplineSurface, Geom_SurfaceOfRevolution, + Geom_RectangularTrimmedSurface, Geom_BSplineCurve) +from OCC.Core.GeomAPI import (GeomAPI_PointsToBSpline, GeomAPI_ExtremaSurfaceSurface, + GeomAPI_ProjectPointOnCurve, GeomAPI_ProjectPointOnSurf, + GeomAPI_PointsToBSplineSurface) +from OCC.Core.Precision import precision_Confusion, precision_Angular +from OCC.Core.IntAna import IntAna_IntConicQuad +from OCC.Core.GC import GC_MakeEllipse, GC_MakeSegment, GC_MakePlane +from OCC.Core.GCE2d import GCE2d_MakeParabola, GCE2d_MakeEllipse, GCE2d_MakeSegment +from OCC.Core.Geom2dConvert import geom2dconvert_CurveToBSplineCurve +from OCC.Core.GccEnt import gccent_Outside, gccent_Unqualified +from OCC.Core.gce import gce_MakeCirc2d +from OCC.Core.GccAna import GccAna_Lin2d2Tan, GccAna_Circ2d2TanRad +from OCC.Core.GeomConvert import GeomConvert_CompBezierSurfacesToBSplineSurface +from OCC.Core.TColGeom import TColGeom_Array2OfBezierSurface +from OCC.Core.BRepBuilderAPI import (BRepBuilderAPI_MakeVertex, BRepBuilderAPI_MakeEdge2d, + BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeFace) +from OCC.Core.TColgp import (TColgp_Array1OfPnt, TColgp_Array1OfPnt2d, + TColgp_HArray1OfPnt2d, TColgp_Array2OfPnt) +from OCC.Core.GeomFill import (GeomFill_Pipe, GeomFill_BSplineCurves, GeomFill_CoonsStyle, + GeomFill_StretchStyle, GeomFill_IsDarboux, GeomFill_IsFrenet, + GeomFill_CurvedStyle, GeomFill_IsConstantNormal, + GeomFill_IsCorrectedFrenet, GeomFill_IsGuidePlan, + GeomFill_IsGuideAC, GeomFill_IsGuideACWithContact, + GeomFill_IsGuidePlanWithContact) from OCC.Core.Convert import Convert_TgtThetaOver2 # # Utility functions @@ -64,17 +68,6 @@ def _Tcol_dim_1(li, _type): return pts -def _Tcol_dim_2(li, _type): - '''function factory for 2-dimensional TCol* types''' - length_nested = len(li[0])-1 - pts = _type(0, len(li)-1, 0, length_nested) - return pts - for n1, i in enumerate(li): - for n2, j in enumerate(i): - pts.SetValue(n1, n2, j) - return pts - - def point_list_to_TColgp_Array1OfPnt(li): pts = TColgp_Array1OfPnt(0, len(li)-1) for n, i in enumerate(li): @@ -129,41 +122,36 @@ def test_point_from_curve(self): P = gp_Pnt2d() C.D0(UA.Parameter(count), P) Parameter = UA.Parameter(count) + self.assertIsInstance(Parameter, float) aSequence.append(P) Abscissa = UA.Abscissa() self.assertEqual(Abscissa, abscissa) - i = 0 - for P in aSequence: - i = i + 1 - pstring = 'P' + repr(i) + ': Parameter :' + repr(UA.Parameter(i)) - YOffset = - 0.3 - YOffset += 0.2 * (i == 1) - YOffset += 0.4 * (i == 4) - YOffset += - 0.3 * (i == len(aSequence)) - pnt = gp_Pnt(P.X(), P.Y(), 0) def test_project_point_on_curve(self): '''Test: project point on curve''' P = gp_Pnt(1., 2., 3.) - distance, radius = 5., 5. + radius = 5. C = Geom_Circle(gp_XOY(), radius) PPC = GeomAPI_ProjectPointOnCurve(P, C) N = PPC.NearestPoint() + self.assertIsInstance(N, gp_Pnt) NbResults = PPC.NbPoints() edg = make_edge(C) if NbResults > 0: for i in range(1, NbResults+1): Q = PPC.Point(i) + self.assertIsInstance(Q, gp_Pnt) distance = PPC.Distance(i) pstring = "N : at Distance : " + repr(PPC.LowerDistance()) for i in range(1, NbResults+1): Q = PPC.Point(i) + self.assertIsInstance(Q, gp_Pnt) distance = PPC.Distance(i) pstring = "Q" + repr(i) + ": at Distance :" + repr(PPC.Distance(i)) print(pstring) @@ -382,14 +370,14 @@ def test_surface_from_curves(self): SPL2, GeomFill_StretchStyle) - SPL3 = Handle_Geom_BSplineCurve_DownCast(SPL1.Translated(gp_Vec(10, 0, 0))) - SPL4 = Handle_Geom_BSplineCurve_DownCast(SPL2.Translated(gp_Vec(10, 0, 0))) + SPL3 = Geom_BSplineCurve.DownCast(SPL1.Translated(gp_Vec(10, 0, 0))) + SPL4 = Geom_BSplineCurve.DownCast(SPL2.Translated(gp_Vec(10, 0, 0))) aGeomFill2 = GeomFill_BSplineCurves(SPL3, SPL4, GeomFill_CoonsStyle) - SPL5 = Handle_Geom_BSplineCurve_DownCast(SPL1.Translated(gp_Vec(20, 0, 0))) - SPL6 = Handle_Geom_BSplineCurve_DownCast(SPL2.Translated(gp_Vec(20, 0, 0))) + SPL5 = Geom_BSplineCurve.DownCast(SPL1.Translated(gp_Vec(20, 0, 0))) + SPL6 = Geom_BSplineCurve.DownCast(SPL2.Translated(gp_Vec(20, 0, 0))) aGeomFill3 = GeomFill_BSplineCurves(SPL5, SPL6, GeomFill_CurvedStyle) @@ -413,6 +401,7 @@ def test_pipes(self): aPipe = GeomFill_Pipe(SPL1, True) aPipe.Perform(False, False) aSurface = aPipe.Surface() + self.assertIsNotNone(aSurface) E = GC_MakeEllipse(gp_XOY(), 2, 1).Value() aPipe2 = GeomFill_Pipe(SPL1, E, GeomFill_IsConstantNormal) @@ -518,16 +507,16 @@ def test_surfaces_from_offsets(self): array1.append(gp_Pnt(-1, 7, 7)) array1.append(gp_Pnt(0, 8, 8)) array1.append(gp_Pnt(2, 9, 9)) - SPL1 = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(array1)).Curve() - + SPL1 = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(array1)).Curve() + array2 = [] array2.append(gp_Pnt(-4, 5, 2)) array2.append(gp_Pnt(-3, 6, 3)) array2.append(gp_Pnt(-1, 7, 4)) array2.append(gp_Pnt(0, 8, 5)) array2.append(gp_Pnt(2, 9, 6)) - SPL2 = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(array2)).Curve() - + SPL2 = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(array2)).Curve() + aGeomFill1 = GeomFill_BSplineCurves(SPL1, SPL2, GeomFill_StretchStyle) aGeomSurface = aGeomFill1.Surface() @@ -566,7 +555,7 @@ def test_distances(self): array1.append(gp_Pnt(-5.3, 3, 1)) array1.append(gp_Pnt(-5, 4, 1)) array1.append(gp_Pnt(-5, 5, 2)) - SPL1 = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(array1)).Curve() + SPL1 = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(array1)).Curve() array2 = [] array2.append(gp_Pnt(4, 1, 2)) array2.append(gp_Pnt(4, 2, 2)) diff --git a/test/core_ocaf_unittest.py b/test/core_ocaf_unittest.py index 4dea16be4..6b09e60a0 100644 --- a/test/core_ocaf_unittest.py +++ b/test/core_ocaf_unittest.py @@ -21,9 +21,10 @@ import unittest import os +import warnings +from contextlib import contextmanager from OCC.Core.TCollection import TCollection_ExtendedString - from OCC.Core.TDocStd import TDocStd_Document from OCC.Core.XCAFDoc import (XCAFDoc_DocumentTool_ShapeTool, XCAFDoc_DocumentTool_ColorTool, @@ -36,8 +37,6 @@ from OCC.Core.STEPControl import STEPControl_AsIs from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox -import warnings -from contextlib import contextmanager @contextmanager def assert_warns_deprecated(): diff --git a/test/core_wrapper_features_unittest.py b/test/core_wrapper_features_unittest.py index 0f429b905..0d50d97b7 100644 --- a/test/core_wrapper_features_unittest.py +++ b/test/core_wrapper_features_unittest.py @@ -94,6 +94,7 @@ def test_const_Standard_Integer_byref(self): def test_handle_standard_transient_copy(self): def evil_function(t): handle = Standard_Transient(t) + return handle t = Standard_Transient() evil_function(t) @@ -176,7 +177,7 @@ def test_gp_Quaternion(self): ''' vX = gp_Vec(12, 0, 0) vY = gp_Vec(0, 12, 0) - v45 = (gp_Vec(1, 1, 1).Normalized() * 12) + q = gp_Quaternion() q1 = gp_Quaternion(vX, vX) q2 = gp_Quaternion(vX, vY)