1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
|
// 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 <Transfer_FinderProcess.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 <Interface_InterfaceModel.hxx>
#include <Transfer_ActorOfTransientProcess.hxx>
#include <TopoDS_Shape.hxx>
#include <Transfer_FinderProcess.hxx>
#include <XSControl_WorkSession.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeExtend_WireData.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <XSControl_WorkSession.hxx>
#include <IGESData_IGESModel.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IGESToBRep_IGESBoundary.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Transfer_FinderProcess.hxx>
#include <IGESData_IGESModel.hxx>
#include <TopoDS_Shape.hxx>
#include <IGESData_IGESEntity.hxx>
// module includes
#include <IGESControl_ActorWrite.hxx>
#include <IGESControl_AlgoContainer.hxx>
#include <IGESControl_Controller.hxx>
#include <IGESControl_IGESBoundary.hxx>
#include <IGESControl_Reader.hxx>
#include <IGESControl_ToolContainer.hxx>
#include <IGESControl_Writer.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_IGESControl(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("IGESControl"));
py::object klass;
//Python trampoline classes
// classes
// Class IGESControl_ActorWrite from ./opencascade/IGESControl_ActorWrite.hxx
klass = m.attr("IGESControl_ActorWrite");
// nested enums
static_cast<py::class_<IGESControl_ActorWrite ,opencascade::handle<IGESControl_ActorWrite> , Transfer_ActorOfFinderProcess >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Recognize",
(Standard_Boolean (IGESControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ) ) static_cast<Standard_Boolean (IGESControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ) >(&IGESControl_ActorWrite::Recognize),
R"#(Recognizes a ShapeMapper)#" , py::arg("start")
)
.def("Transfer",
(opencascade::handle<Transfer_Binder> (IGESControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & , const opencascade::handle<Transfer_FinderProcess> & , const Message_ProgressRange & ) ) static_cast<opencascade::handle<Transfer_Binder> (IGESControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & , const opencascade::handle<Transfer_FinderProcess> & , const Message_ProgressRange & ) >(&IGESControl_ActorWrite::Transfer),
R"#(Transfers Shape to IGES Entities)#" , py::arg("start"), py::arg("FP"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IGESControl_ActorWrite::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IGESControl_ActorWrite::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> & (IGESControl_ActorWrite::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IGESControl_ActorWrite::*)() const>(&IGESControl_ActorWrite::DynamicType),
R"#(None)#"
)
;
// Class IGESControl_AlgoContainer from ./opencascade/IGESControl_AlgoContainer.hxx
klass = m.attr("IGESControl_AlgoContainer");
// nested enums
static_cast<py::class_<IGESControl_AlgoContainer ,opencascade::handle<IGESControl_AlgoContainer> , IGESToBRep_AlgoContainer >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IGESControl_AlgoContainer::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IGESControl_AlgoContainer::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> & (IGESControl_AlgoContainer::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IGESControl_AlgoContainer::*)() const>(&IGESControl_AlgoContainer::DynamicType),
R"#(None)#"
)
;
// Class IGESControl_Controller from ./opencascade/IGESControl_Controller.hxx
klass = m.attr("IGESControl_Controller");
// nested enums
static_cast<py::class_<IGESControl_Controller ,opencascade::handle<IGESControl_Controller> , XSControl_Controller >>(klass)
// constructors
.def(py::init< const Standard_Boolean >() , py::arg("modefnes")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("NewModel",
(opencascade::handle<Interface_InterfaceModel> (IGESControl_Controller::*)() const) static_cast<opencascade::handle<Interface_InterfaceModel> (IGESControl_Controller::*)() const>(&IGESControl_Controller::NewModel),
R"#(Creates a new empty Model ready to receive data of the Norm. It is taken from IGES Template Model)#"
)
.def("ActorRead",
(opencascade::handle<Transfer_ActorOfTransientProcess> (IGESControl_Controller::*)( const opencascade::handle<Interface_InterfaceModel> & ) const) static_cast<opencascade::handle<Transfer_ActorOfTransientProcess> (IGESControl_Controller::*)( const opencascade::handle<Interface_InterfaceModel> & ) const>(&IGESControl_Controller::ActorRead),
R"#(Returns the Actor for Read attached to the pair (norm,appli) It is an Actor from IGESToBRep, adapted from an IGESModel : Unit, tolerances)#" , py::arg("model")
)
.def("TransferWriteShape",
(IFSelect_ReturnStatus (IGESControl_Controller::*)( const TopoDS_Shape & , const opencascade::handle<Transfer_FinderProcess> & , const opencascade::handle<Interface_InterfaceModel> & , const Standard_Integer , const Message_ProgressRange & ) const) static_cast<IFSelect_ReturnStatus (IGESControl_Controller::*)( const TopoDS_Shape & , const opencascade::handle<Transfer_FinderProcess> & , const opencascade::handle<Interface_InterfaceModel> & , const Standard_Integer , const Message_ProgressRange & ) const>(&IGESControl_Controller::TransferWriteShape),
R"#(Takes one Shape and transfers it to the InterfaceModel (already created by NewModel for instance) <modetrans> is to be interpreted by each kind of XstepAdaptor Returns a status : 0 OK 1 No result 2 Fail -1 bad modeshape -2 bad model (requires an IGESModel) modeshape : 0 groupe of face (version < 5.1) 1 BREP-version 5.1 of IGES)#" , py::arg("shape"), py::arg("FP"), py::arg("model"), py::arg("modetrans")=static_cast<const Standard_Integer>(0), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
// methods using call by reference i.s.o. return
.def("Customise",
[]( IGESControl_Controller &self , XSControl_WorkSession& WS ){
opencascade::handle<XSControl_WorkSession> WS_ptr; WS_ptr = &WS;
self.Customise(WS_ptr);
if ( WS_ptr.get() != &WS ) copy_if_copy_constructible(WS, *WS_ptr);
return std::make_tuple(); },
R"#(None)#" , py::arg("WS")
)
// static methods
.def_static("Init_s",
(Standard_Boolean (*)() ) static_cast<Standard_Boolean (*)() >(&IGESControl_Controller::Init),
R"#(Standard Initialisation. It creates a Controller for IGES and records it to various names, available to select it later Returns True when done, False if could not be done Also, it creates and records an Adaptor for FNES)#"
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IGESControl_Controller::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IGESControl_Controller::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> & (IGESControl_Controller::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IGESControl_Controller::*)() const>(&IGESControl_Controller::DynamicType),
R"#(None)#"
)
;
// Class IGESControl_IGESBoundary from ./opencascade/IGESControl_IGESBoundary.hxx
klass = m.attr("IGESControl_IGESBoundary");
// nested enums
static_cast<py::class_<IGESControl_IGESBoundary ,opencascade::handle<IGESControl_IGESBoundary> , IGESToBRep_IGESBoundary >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const IGESToBRep_CurveAndSurface & >() , py::arg("CS") )
// custom constructors
// methods
.def("Check",
(void (IGESControl_IGESBoundary::*)( const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (IGESControl_IGESBoundary::*)( const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean ) >(&IGESControl_IGESBoundary::Check),
R"#(Checks result of translation of IGES boundary entities (types 141, 142 or 508). Checks consistency of 2D and 3D representations and keeps only one if they are inconsistent. Checks the closure of resulting wire and if it is not closed, checks 2D and 3D representation and updates the resulting wire to contain only closed representation.)#" , py::arg("result"), py::arg("checkclosure"), py::arg("okCurve3d"), py::arg("okCurve2d")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IGESControl_IGESBoundary::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IGESControl_IGESBoundary::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> & (IGESControl_IGESBoundary::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IGESControl_IGESBoundary::*)() const>(&IGESControl_IGESBoundary::DynamicType),
R"#(None)#"
)
;
// Class IGESControl_Reader from ./opencascade/IGESControl_Reader.hxx
klass = m.attr("IGESControl_Reader");
// nested enums
static_cast<py::class_<IGESControl_Reader , shared_ptr<IGESControl_Reader> , XSControl_Reader >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const opencascade::handle<XSControl_WorkSession> &,const Standard_Boolean >() , py::arg("WS"), py::arg("scratch")=static_cast<const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("SetReadVisible",
(void (IGESControl_Reader::*)( const Standard_Boolean ) ) static_cast<void (IGESControl_Reader::*)( const Standard_Boolean ) >(&IGESControl_Reader::SetReadVisible),
R"#(Set the transion of ALL Roots (if theReadOnlyVisible is False) or of Visible Roots (if theReadOnlyVisible is True))#" , py::arg("ReadRoot")
)
.def("GetReadVisible",
(Standard_Boolean (IGESControl_Reader::*)() const) static_cast<Standard_Boolean (IGESControl_Reader::*)() const>(&IGESControl_Reader::GetReadVisible),
R"#(None)#"
)
.def("IGESModel",
(opencascade::handle<IGESData_IGESModel> (IGESControl_Reader::*)() const) static_cast<opencascade::handle<IGESData_IGESModel> (IGESControl_Reader::*)() const>(&IGESControl_Reader::IGESModel),
R"#(Returns the model as a IGESModel. It can then be consulted (header, product))#"
)
.def("NbRootsForTransfer",
(Standard_Integer (IGESControl_Reader::*)() ) static_cast<Standard_Integer (IGESControl_Reader::*)() >(&IGESControl_Reader::NbRootsForTransfer),
R"#(Determines the list of root entities from Model which are candidate for a transfer to a Shape (type of entities is PRODUCT) <theReadOnlyVisible> is taken into account to define roots)#"
)
.def("PrintTransferInfo",
(void (IGESControl_Reader::*)( const IFSelect_PrintFail , const IFSelect_PrintCount ) const) static_cast<void (IGESControl_Reader::*)( const IFSelect_PrintFail , const IFSelect_PrintCount ) const>(&IGESControl_Reader::PrintTransferInfo),
R"#(Prints Statistics and check list for Transfer)#" , py::arg("failwarn"), py::arg("mode")
)
.def("SetReadVisible",
(void (IGESControl_Reader::*)( const Standard_Boolean ) ) static_cast<void (IGESControl_Reader::*)( const Standard_Boolean ) >(&IGESControl_Reader::SetReadVisible),
R"#(Set the transion of ALL Roots (if theReadOnlyVisible is False) or of Visible Roots (if theReadOnlyVisible is True))#" , py::arg("ReadRoot")
)
.def("GetReadVisible",
(Standard_Boolean (IGESControl_Reader::*)() const) static_cast<Standard_Boolean (IGESControl_Reader::*)() const>(&IGESControl_Reader::GetReadVisible),
R"#(None)#"
)
// 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 IGESControl_ToolContainer from ./opencascade/IGESControl_ToolContainer.hxx
klass = m.attr("IGESControl_ToolContainer");
// nested enums
static_cast<py::class_<IGESControl_ToolContainer ,opencascade::handle<IGESControl_ToolContainer> , IGESToBRep_ToolContainer >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("IGESBoundary",
(opencascade::handle<IGESToBRep_IGESBoundary> (IGESControl_ToolContainer::*)() const) static_cast<opencascade::handle<IGESToBRep_IGESBoundary> (IGESControl_ToolContainer::*)() const>(&IGESControl_ToolContainer::IGESBoundary),
R"#(Returns IGESControl_IGESBoundary)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IGESControl_ToolContainer::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IGESControl_ToolContainer::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> & (IGESControl_ToolContainer::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IGESControl_ToolContainer::*)() const>(&IGESControl_ToolContainer::DynamicType),
R"#(None)#"
)
;
// Class IGESControl_Writer from ./opencascade/IGESControl_Writer.hxx
klass = m.attr("IGESControl_Writer");
// nested enums
static_cast<py::class_<IGESControl_Writer , shared_ptr<IGESControl_Writer> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_CString,const Standard_Integer >() , py::arg("unit"), py::arg("modecr")=static_cast<const Standard_Integer>(0) )
.def(py::init< const opencascade::handle<IGESData_IGESModel> &,const Standard_Integer >() , py::arg("model"), py::arg("modecr")=static_cast<const Standard_Integer>(0) )
// custom constructors
// methods
.def("SetTransferProcess",
(void (IGESControl_Writer::*)( const opencascade::handle<Transfer_FinderProcess> & ) ) static_cast<void (IGESControl_Writer::*)( const opencascade::handle<Transfer_FinderProcess> & ) >(&IGESControl_Writer::SetTransferProcess),
R"#(Returns/Sets the TransferProcess : it contains final results and if some, check messages)#" , py::arg("TP")
)
.def("AddShape",
(Standard_Boolean (IGESControl_Writer::*)( const TopoDS_Shape & , const Message_ProgressRange & ) ) static_cast<Standard_Boolean (IGESControl_Writer::*)( const TopoDS_Shape & , const Message_ProgressRange & ) >(&IGESControl_Writer::AddShape),
R"#(Translates a Shape to IGES Entities and adds them to the model Returns True if done, False if Shape not suitable for IGES or null)#" , py::arg("sh"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("AddGeom",
(Standard_Boolean (IGESControl_Writer::*)( const opencascade::handle<Standard_Transient> & ) ) static_cast<Standard_Boolean (IGESControl_Writer::*)( const opencascade::handle<Standard_Transient> & ) >(&IGESControl_Writer::AddGeom),
R"#(Translates a Geometry (Surface or Curve) to IGES Entities and adds them to the model Returns True if done, False if geom is neither a Surface or a Curve suitable for IGES or is null)#" , py::arg("geom")
)
.def("AddEntity",
(Standard_Boolean (IGESControl_Writer::*)( const opencascade::handle<IGESData_IGESEntity> & ) ) static_cast<Standard_Boolean (IGESControl_Writer::*)( const opencascade::handle<IGESData_IGESEntity> & ) >(&IGESControl_Writer::AddEntity),
R"#(Adds an IGES entity (and the ones it references) to the model)#" , py::arg("ent")
)
.def("ComputeModel",
(void (IGESControl_Writer::*)() ) static_cast<void (IGESControl_Writer::*)() >(&IGESControl_Writer::ComputeModel),
R"#(Computes the entities found in the model, which is ready to be written. This contrasts with the default computation of headers only.)#"
)
.def("Write",
(Standard_Boolean (IGESControl_Writer::*)( std::ostream & , const Standard_Boolean ) ) static_cast<Standard_Boolean (IGESControl_Writer::*)( std::ostream & , const Standard_Boolean ) >(&IGESControl_Writer::Write),
R"#(Computes then writes the model to an OStream Returns True when done, false in case of error)#" , py::arg("S"), py::arg("fnes")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("Write",
(Standard_Boolean (IGESControl_Writer::*)( const Standard_CString , const Standard_Boolean ) ) static_cast<Standard_Boolean (IGESControl_Writer::*)( const Standard_CString , const Standard_Boolean ) >(&IGESControl_Writer::Write),
R"#(Prepares and writes an IGES model either to an OStream, S or to a file name,CString. Returns True if the operation was performed correctly and False if an error occurred (for instance, if the processor could not create the file).)#" , py::arg("file"), py::arg("fnes")=static_cast<const Standard_Boolean>(Standard_False)
)
// 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
.def("Model",
(const opencascade::handle<IGESData_IGESModel> & (IGESControl_Writer::*)() const) static_cast<const opencascade::handle<IGESData_IGESModel> & (IGESControl_Writer::*)() const>(&IGESControl_Writer::Model),
R"#(Returns the IGES model to be written in output.)#"
)
.def("TransferProcess",
(const opencascade::handle<Transfer_FinderProcess> & (IGESControl_Writer::*)() const) static_cast<const opencascade::handle<Transfer_FinderProcess> & (IGESControl_Writer::*)() const>(&IGESControl_Writer::TransferProcess),
R"#(None)#"
)
;
// functions
// ./opencascade/IGESControl_ActorWrite.hxx
// ./opencascade/IGESControl_AlgoContainer.hxx
// ./opencascade/IGESControl_Controller.hxx
// ./opencascade/IGESControl_IGESBoundary.hxx
// ./opencascade/IGESControl_Reader.hxx
// ./opencascade/IGESControl_ToolContainer.hxx
// ./opencascade/IGESControl_Writer.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
|