|
906 | 906 | +skip OpenGl_TextureFormatSelector<GLuint>
|
907 | 907 | +skip OpenGl_TextureFormatSelector<GLushort>
|
908 | 908 |
|
| 909 | +# Return value policies ------------------------------------------------------- |
| 910 | ++return_policy OpenGl_GraphicDriver::ChangeOptions-->reference |
| 911 | ++return_policy OpenGl_GraphicDriver::Options-->reference |
| 912 | + |
| 913 | ++return_policy V3d_View::ChangeRenderingParams-->reference |
| 914 | + |
909 | 915 | # Manual text -----------------------------------------------------------------
|
910 | 916 | +before_type BOPTools_BoxSet<NumType, Dimension, DataType>-->bind_BVH_BoxSet<NumType, Dimension, DataType>(mod, "BOPTools_BoxSet_Base", py::module_local());
|
911 | 917 | +before_type BOPTools_BoxSelector<Dimension>-->bind_BVH_Traverse<Standard_Real, Dimension, BVH_BoxSet<Standard_Real, Dimension, Standard_Integer>, Standard_Boolean>(mod, "BOPTools_BoxSelector_Base", py::module_local());
|
|
974 | 980 | # Add exception translator
|
975 | 981 | +after_type Standard_Failure-->py::register_exception_translator([](std::exception_ptr p) {try {if (p) std::rethrow_exception(p);} catch (const Standard_Failure &e) { PyErr_SetString(PyExc_RuntimeError, e.GetMessageString());}});
|
976 | 982 |
|
977 |
| -# Patches ----------------------------------------------------------------- |
| 983 | +# Patches --------------------------------------------------------------------- |
978 | 984 |
|
979 | 985 | # Patch parameter for AIS_ManipulatorObjectSequence::Append
|
980 | 986 | +patch AIS: (AIS_ManipulatorObjectSequence::*)(const int &)-->(AIS_ManipulatorObjectSequence::*)(const typename AIS_ManipulatorObjectSequence::value_type &)
|
|
985 | 991 | +patch bind_BVH_BaseBox: BVH_BaseBox<T, N>-->BVH_BaseBox<T, N, TheDerivedBox>
|
986 | 992 | +patch bind_BVH_Traverse: (const int &)-->(const opencascade::handle<BVH_Tree <NumType, Dimension>>&)
|
987 | 993 |
|
| 994 | ++patch Geom: (const TColStd_Array2OfReal * (Geom_BSplineSurface::*)() const) &Geom_BSplineSurface::Weights-->[](Geom_BSplineSurface& self) -> py::object {return self.Weights() ? py::cast(*self.Weights()) : py::none(); } |
988 | 995 |
|
989 | 996 | +patch IVtkTools: (IVtkOCC_Shape::Handle (-->(opencascade::handle<IVtkOCC_Shape> (
|
990 | 997 |
|
|
1005 | 1012 | +patch Font: (TopoDS_Shape (Font_BRepTextBuilder::*)(Font_BRepFont &, const NCollection_String &, const gp_Ax3 &, const Graphic3d_HorizontalTextAlignment, const Graphic3d_VerticalTextAlignment)) &Font_BRepTextBuilder::Perform-->[](Font_BRepTextBuilder &self, Font_BRepFont_ & a0, const NCollection_String & a1, const gp_Ax3 & a2, const Graphic3d_HorizontalTextAlignment a3, const Graphic3d_VerticalTextAlignment a4) -> TopoDS_Shape { return self.Perform(a0, a1, a2, a3, a4); }
|
1006 | 1013 | +patch Font: Font_BRepFont &-->Font_BRepFont_ &
|
1007 | 1014 |
|
1008 |
| -# Return value policies |
1009 |
| -+return_policy OpenGl_GraphicDriver::ChangeOptions-->reference |
1010 |
| -+return_policy OpenGl_GraphicDriver::Options-->reference |
1011 |
| - |
1012 |
| -+return_policy V3d_View::ChangeRenderingParams-->reference |
1013 |
| - |
1014 |
| -# Inject trapoline |
| 1015 | +# Inject trampoline |
1015 | 1016 | +patch AIS: py::class_<AIS_InteractiveObject, opencascade-->py::class_<AIS_InteractiveObject, AIS_PyInteractiveObject, opencascade
|
0 commit comments