1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <GccEnt_QualifiedLin.hxx>
#include <gp_Lin2d.hxx>
#include <GccEnt_QualifiedCirc.hxx>
#include <gp_Circ2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <GccEnt.hxx>
#include <GccEnt_Array1OfPosition.hxx>
#include <GccEnt_BadQualifier.hxx>
#include <GccEnt_Position.hxx>
#include <GccEnt_QualifiedCirc.hxx>
#include <GccEnt_QualifiedLin.hxx>
// template related includes
// ./opencascade/GccEnt_Array1OfPosition.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_GccEnt(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("GccEnt"));
py::object klass;
//Python trampoline classes
// classes
// Class GccEnt from ./opencascade/GccEnt.hxx
klass = m.attr("GccEnt");
// default constructor
register_default_constructor<GccEnt , shared_ptr<GccEnt>>(m,"GccEnt");
// nested enums
static_cast<py::class_<GccEnt , shared_ptr<GccEnt> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Print_s",
(Standard_OStream & (*)( const GccEnt_Position , std::ostream & ) ) static_cast<Standard_OStream & (*)( const GccEnt_Position , std::ostream & ) >(&GccEnt::Print),
R"#(Prints the name of Position type as a String on the Stream.)#" , py::arg("thePosition"), py::arg("theStream")
)
.def_static("PositionToString_s",
(Standard_CString (*)( GccEnt_Position ) ) static_cast<Standard_CString (*)( GccEnt_Position ) >(&GccEnt::PositionToString),
R"#(Returns the string name for a given position.)#" , py::arg("thePosition")
)
.def_static("PositionFromString_s",
(GccEnt_Position (*)( Standard_CString ) ) static_cast<GccEnt_Position (*)( Standard_CString ) >(&GccEnt::PositionFromString),
R"#(Returns the position from the given string identifier (using case-insensitive comparison).)#" , py::arg("thePositionString")
)
.def_static("PositionFromString_s",
(Standard_Boolean (*)( Standard_CString , GccEnt_Position & ) ) static_cast<Standard_Boolean (*)( Standard_CString , GccEnt_Position & ) >(&GccEnt::PositionFromString),
R"#(Determines the position from the given string identifier (using case-insensitive comparison).)#" , py::arg("thePositionString"), py::arg("thePosition")
)
.def_static("Unqualified_s",
(GccEnt_QualifiedLin (*)( const gp_Lin2d & ) ) static_cast<GccEnt_QualifiedLin (*)( const gp_Lin2d & ) >(&GccEnt::Unqualified),
R"#(Constructs a qualified line, so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.)#" , py::arg("Obj")
)
.def_static("Unqualified_s",
(GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) ) static_cast<GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) >(&GccEnt::Unqualified),
R"#(Constructs a qualified circle so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.)#" , py::arg("Obj")
)
.def_static("Enclosing_s",
(GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) ) static_cast<GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) >(&GccEnt::Enclosing),
R"#(Constructs such a qualified circle that the solution computed by a construction algorithm using the qualified circle encloses the circle.)#" , py::arg("Obj")
)
.def_static("Enclosed_s",
(GccEnt_QualifiedLin (*)( const gp_Lin2d & ) ) static_cast<GccEnt_QualifiedLin (*)( const gp_Lin2d & ) >(&GccEnt::Enclosed),
R"#(Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.)#" , py::arg("Obj")
)
.def_static("Enclosed_s",
(GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) ) static_cast<GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) >(&GccEnt::Enclosed),
R"#(Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.)#" , py::arg("Obj")
)
.def_static("Outside_s",
(GccEnt_QualifiedLin (*)( const gp_Lin2d & ) ) static_cast<GccEnt_QualifiedLin (*)( const gp_Lin2d & ) >(&GccEnt::Outside),
R"#(Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.)#" , py::arg("Obj")
)
.def_static("Outside_s",
(GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) ) static_cast<GccEnt_QualifiedCirc (*)( const gp_Circ2d & ) >(&GccEnt::Outside),
R"#(Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.)#" , py::arg("Obj")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class GccEnt_QualifiedCirc from ./opencascade/GccEnt_QualifiedCirc.hxx
klass = m.attr("GccEnt_QualifiedCirc");
// nested enums
static_cast<py::class_<GccEnt_QualifiedCirc , shared_ptr<GccEnt_QualifiedCirc> >>(klass)
// constructors
.def(py::init< const gp_Circ2d &,const GccEnt_Position >() , py::arg("Qualified"), py::arg("Qualifier") )
// custom constructors
// methods
.def("Qualified",
(gp_Circ2d (GccEnt_QualifiedCirc::*)() const) static_cast<gp_Circ2d (GccEnt_QualifiedCirc::*)() const>(&GccEnt_QualifiedCirc::Qualified),
R"#(Returns a 2D circle to which the qualifier is assigned.)#"
)
.def("Qualifier",
(GccEnt_Position (GccEnt_QualifiedCirc::*)() const) static_cast<GccEnt_Position (GccEnt_QualifiedCirc::*)() const>(&GccEnt_QualifiedCirc::Qualifier),
R"#(Returns - the qualifier of this qualified circle, if it is enclosing, enclosed or outside, or - GccEnt_noqualifier if it is unqualified.)#"
)
.def("IsUnqualified",
(Standard_Boolean (GccEnt_QualifiedCirc::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedCirc::*)() const>(&GccEnt_QualifiedCirc::IsUnqualified),
R"#(Returns true if the Circ2d is Unqualified and false in the other cases.)#"
)
.def("IsEnclosing",
(Standard_Boolean (GccEnt_QualifiedCirc::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedCirc::*)() const>(&GccEnt_QualifiedCirc::IsEnclosing),
R"#(Returns true if the solution computed by a construction algorithm using this qualified circle encloses the circle.)#"
)
.def("IsEnclosed",
(Standard_Boolean (GccEnt_QualifiedCirc::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedCirc::*)() const>(&GccEnt_QualifiedCirc::IsEnclosed),
R"#(Returns true if the solution computed by a construction algorithm using this qualified circle is enclosed by the circle.)#"
)
.def("IsOutside",
(Standard_Boolean (GccEnt_QualifiedCirc::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedCirc::*)() const>(&GccEnt_QualifiedCirc::IsOutside),
R"#(Returns true if both the solution computed by a construction algorithm using this qualified circle and the circle are external to one another.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class GccEnt_QualifiedLin from ./opencascade/GccEnt_QualifiedLin.hxx
klass = m.attr("GccEnt_QualifiedLin");
// nested enums
static_cast<py::class_<GccEnt_QualifiedLin , shared_ptr<GccEnt_QualifiedLin> >>(klass)
// constructors
.def(py::init< const gp_Lin2d &,const GccEnt_Position >() , py::arg("Qualified"), py::arg("Qualifier") )
// custom constructors
// methods
.def("Qualified",
(gp_Lin2d (GccEnt_QualifiedLin::*)() const) static_cast<gp_Lin2d (GccEnt_QualifiedLin::*)() const>(&GccEnt_QualifiedLin::Qualified),
R"#(Returns a 2D line to which the qualifier is assigned.)#"
)
.def("Qualifier",
(GccEnt_Position (GccEnt_QualifiedLin::*)() const) static_cast<GccEnt_Position (GccEnt_QualifiedLin::*)() const>(&GccEnt_QualifiedLin::Qualifier),
R"#(Returns the qualifier of this qualified line, if it is "enclosed" or "outside", or - GccEnt_noqualifier if it is unqualified.)#"
)
.def("IsUnqualified",
(Standard_Boolean (GccEnt_QualifiedLin::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedLin::*)() const>(&GccEnt_QualifiedLin::IsUnqualified),
R"#(Returns true if the solution is unqualified and false in the other cases.)#"
)
.def("IsEnclosed",
(Standard_Boolean (GccEnt_QualifiedLin::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedLin::*)() const>(&GccEnt_QualifiedLin::IsEnclosed),
R"#(Returns true if the solution is Enclosed in the Lin2d and false in the other cases.)#"
)
.def("IsOutside",
(Standard_Boolean (GccEnt_QualifiedLin::*)() const) static_cast<Standard_Boolean (GccEnt_QualifiedLin::*)() const>(&GccEnt_QualifiedLin::IsOutside),
R"#(Returns true if the solution is Outside the Lin2d and false in the other cases.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// functions
// ./opencascade/GccEnt.hxx
// ./opencascade/GccEnt_Array1OfPosition.hxx
// ./opencascade/GccEnt_BadQualifier.hxx
// ./opencascade/GccEnt_Position.hxx
// ./opencascade/GccEnt_QualifiedCirc.hxx
// ./opencascade/GccEnt_QualifiedLin.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_Array1<GccEnt_Position>(m,"GccEnt_Array1OfPosition");
// exceptions
register_occ_exception<GccEnt_BadQualifier>(m, "GccEnt_BadQualifier");
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|