1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <XCAFNoteObjects_NoteObject.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_XCAFNoteObjects(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("XCAFNoteObjects"));
py::object klass;
//Python trampoline classes
// classes
// Class XCAFNoteObjects_NoteObject from ./opencascade/XCAFNoteObjects_NoteObject.hxx
klass = m.attr("XCAFNoteObjects_NoteObject");
// nested enums
static_cast<py::class_<XCAFNoteObjects_NoteObject ,opencascade::handle<XCAFNoteObjects_NoteObject> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const opencascade::handle<XCAFNoteObjects_NoteObject> & >() , py::arg("theObj") )
// custom constructors
// methods
.def("HasPlane",
(Standard_Boolean (XCAFNoteObjects_NoteObject::*)() const) static_cast<Standard_Boolean (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::HasPlane),
R"#(Returns True if plane is specified)#"
)
.def("SetPlane",
(void (XCAFNoteObjects_NoteObject::*)( const gp_Ax2 & ) ) static_cast<void (XCAFNoteObjects_NoteObject::*)( const gp_Ax2 & ) >(&XCAFNoteObjects_NoteObject::SetPlane),
R"#(Sets a right-handed coordinate system of the plane)#" , py::arg("thePlane")
)
.def("HasPoint",
(Standard_Boolean (XCAFNoteObjects_NoteObject::*)() const) static_cast<Standard_Boolean (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::HasPoint),
R"#(Returns True if the attachment point on the annotated object is specified)#"
)
.def("SetPoint",
(void (XCAFNoteObjects_NoteObject::*)( const gp_Pnt & ) ) static_cast<void (XCAFNoteObjects_NoteObject::*)( const gp_Pnt & ) >(&XCAFNoteObjects_NoteObject::SetPoint),
R"#(Sets the anchor point on the annotated object)#" , py::arg("thePnt")
)
.def("HasPointText",
(Standard_Boolean (XCAFNoteObjects_NoteObject::*)() const) static_cast<Standard_Boolean (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::HasPointText),
R"#(Returns True if the text position is specified)#"
)
.def("SetPointText",
(void (XCAFNoteObjects_NoteObject::*)( const gp_Pnt & ) ) static_cast<void (XCAFNoteObjects_NoteObject::*)( const gp_Pnt & ) >(&XCAFNoteObjects_NoteObject::SetPointText),
R"#(Sets the text position)#" , py::arg("thePnt")
)
.def("SetPresentation",
(void (XCAFNoteObjects_NoteObject::*)( const TopoDS_Shape & ) ) static_cast<void (XCAFNoteObjects_NoteObject::*)( const TopoDS_Shape & ) >(&XCAFNoteObjects_NoteObject::SetPresentation),
R"#(Sets a tessellated annotation)#" , py::arg("thePresentation")
)
.def("Reset",
(void (XCAFNoteObjects_NoteObject::*)() ) static_cast<void (XCAFNoteObjects_NoteObject::*)() >(&XCAFNoteObjects_NoteObject::Reset),
R"#(Resets data to the state after calling the default constructor)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&XCAFNoteObjects_NoteObject::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&XCAFNoteObjects_NoteObject::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (XCAFNoteObjects_NoteObject::*)() const) static_cast<const opencascade::handle<Standard_Type> & (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::DynamicType),
R"#(None)#"
)
.def("GetPlane",
(const gp_Ax2 & (XCAFNoteObjects_NoteObject::*)() const) static_cast<const gp_Ax2 & (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::GetPlane),
R"#(Returns a right-handed coordinate system of the plane)#"
)
.def("GetPoint",
(const gp_Pnt & (XCAFNoteObjects_NoteObject::*)() const) static_cast<const gp_Pnt & (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::GetPoint),
R"#(Returns the attachment point on the annotated object)#"
)
.def("GetPointText",
(const gp_Pnt & (XCAFNoteObjects_NoteObject::*)() const) static_cast<const gp_Pnt & (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::GetPointText),
R"#(Returns the text position)#"
)
.def("GetPresentation",
(const TopoDS_Shape & (XCAFNoteObjects_NoteObject::*)() const) static_cast<const TopoDS_Shape & (XCAFNoteObjects_NoteObject::*)() const>(&XCAFNoteObjects_NoteObject::GetPresentation),
R"#(Returns a tessellated annotation if specified)#"
)
;
// functions
// ./opencascade/XCAFNoteObjects_NoteObject.hxx
// Additional functions
// operators
// register typdefs
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|