File: STEPControl.cpp

package info (click to toggle)
python-ocp 7.8.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 64,720 kB
  • sloc: cpp: 362,337; pascal: 33; python: 23; makefile: 4
file content (452 lines) | stat: -rw-r--r-- 34,835 bytes parent folder | download | duplicates (2)
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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452

// 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 <StepRepr_Representation.hxx>
#include <Transfer_TransientProcess.hxx>
#include <StepGeom_Axis2Placement3d.hxx>
#include <StepRepr_RepresentationRelationship.hxx>
#include <StepBasic_ProductDefinition.hxx>
#include <StepRepr_NextAssemblyUsageOccurrence.hxx>
#include <StepShape_ShapeRepresentation.hxx>
#include <StepShape_ContextDependentShapeRepresentation.hxx>
#include <StepRepr_ShapeRepresentationRelationship.hxx>
#include <StepGeom_GeometricRepresentationItem.hxx>
#include <StepRepr_MappedItem.hxx>
#include <StepShape_FaceSurface.hxx>
#include <TopoDS_Shell.hxx>
#include <TopoDS_Compound.hxx>
#include <StepRepr_ConstructiveGeometryRepresentationRelationship.hxx>
#include <StepData_Factors.hxx>
#include <StepData_StepModel.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Transfer_FinderProcess.hxx>
#include <StepShape_ShapeDefinitionRepresentation.hxx>
#include <StepGeom_Axis2Placement3d.hxx>
#include <StepShape_NonManifoldSurfaceShapeRepresentation.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Interface_InterfaceModel.hxx>
#include <XSControl_WorkSession.hxx>
#include <TopoDS_Shape.hxx>
#include <Transfer_FinderProcess.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <XSControl_WorkSession.hxx>
#include <StepData_StepModel.hxx>
#include <StepRepr_RepresentationContext.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 <XSControl_WorkSession.hxx>
#include <StepData_StepModel.hxx>
#include <TopoDS_Shape.hxx>

// module includes
#include <STEPControl_ActorRead.hxx>
#include <STEPControl_ActorWrite.hxx>
#include <STEPControl_Controller.hxx>
#include <STEPControl_Reader.hxx>
#include <STEPControl_StepModelType.hxx>
#include <STEPControl_Writer.hxx>

// template related includes


// user-defined pre
#include "OCP_specific.inc"

// user-defined inclusion per module
        #include <IFSelect_ReturnStatus.hxx>
        #include <istream>
        #include <ostream>

        using std::basic_ostream;
        using std::basic_istream;
        using std::char_traits;

// Module definiiton
void register_STEPControl(py::module &main_module) {


py::module m = static_cast<py::module>(main_module.attr("STEPControl"));
py::object klass;

//Python trampoline classes

// classes

    // Class STEPControl_ActorRead from ./opencascade/STEPControl_ActorRead.hxx
    klass = m.attr("STEPControl_ActorRead");


    // nested enums

    static_cast<py::class_<STEPControl_ActorRead ,opencascade::handle<STEPControl_ActorRead>  , Transfer_ActorOfTransientProcess >>(klass)
    // constructors
        .def(py::init< const opencascade::handle<Interface_InterfaceModel> & >()  , py::arg("theModel") )
    // custom constructors
    // methods
        .def("Recognize",
             (Standard_Boolean (STEPControl_ActorRead::*)( const opencascade::handle<Standard_Transient> &  ) ) static_cast<Standard_Boolean (STEPControl_ActorRead::*)( const opencascade::handle<Standard_Transient> &  ) >(&STEPControl_ActorRead::Recognize),
             R"#(None)#"  , py::arg("start")
          )
        .def("Transfer",
             (opencascade::handle<Transfer_Binder> (STEPControl_ActorRead::*)( const opencascade::handle<Standard_Transient> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  const Message_ProgressRange &  ) ) static_cast<opencascade::handle<Transfer_Binder> (STEPControl_ActorRead::*)( const opencascade::handle<Standard_Transient> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  const Message_ProgressRange &  ) >(&STEPControl_ActorRead::Transfer),
             R"#(None)#"  , py::arg("start"),  py::arg("TP"),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("TransferShape",
             (opencascade::handle<Transfer_Binder> (STEPControl_ActorRead::*)( const opencascade::handle<Standard_Transient> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  const StepData_Factors & ,  const Standard_Boolean ,  const Standard_Boolean ,  const Message_ProgressRange &  ) ) static_cast<opencascade::handle<Transfer_Binder> (STEPControl_ActorRead::*)( const opencascade::handle<Standard_Transient> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  const StepData_Factors & ,  const Standard_Boolean ,  const Standard_Boolean ,  const Message_ProgressRange &  ) >(&STEPControl_ActorRead::TransferShape),
             R"#(theUseTrsf - special flag for using Axis2Placement from ShapeRepresentation for transform root shape)#"  , py::arg("start"),  py::arg("TP"),  py::arg("theLocalFactors"),  py::arg("isManifold")=static_cast<const Standard_Boolean>(Standard_True),  py::arg("theUseTrsf")=static_cast<const Standard_Boolean>(Standard_False),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("PrepareUnits",
             (void (STEPControl_ActorRead::*)( const opencascade::handle<StepRepr_Representation> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  StepData_Factors &  ) ) static_cast<void (STEPControl_ActorRead::*)( const opencascade::handle<StepRepr_Representation> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  StepData_Factors &  ) >(&STEPControl_ActorRead::PrepareUnits),
             R"#(set units and tolerances context by given ShapeRepresentation)#"  , py::arg("rep"),  py::arg("TP"),  py::arg("theLocalFactors")
          )
        .def("SetModel",
             (void (STEPControl_ActorRead::*)( const opencascade::handle<Interface_InterfaceModel> &  ) ) static_cast<void (STEPControl_ActorRead::*)( const opencascade::handle<Interface_InterfaceModel> &  ) >(&STEPControl_ActorRead::SetModel),
             R"#(Set model)#"  , py::arg("theModel")
          )
        .def("ComputeTransformation",
             (Standard_Boolean (STEPControl_ActorRead::*)( const opencascade::handle<StepGeom_Axis2Placement3d> & ,  const opencascade::handle<StepGeom_Axis2Placement3d> & ,  const opencascade::handle<StepRepr_Representation> & ,  const opencascade::handle<StepRepr_Representation> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  gp_Trsf & ,  const StepData_Factors &  ) ) static_cast<Standard_Boolean (STEPControl_ActorRead::*)( const opencascade::handle<StepGeom_Axis2Placement3d> & ,  const opencascade::handle<StepGeom_Axis2Placement3d> & ,  const opencascade::handle<StepRepr_Representation> & ,  const opencascade::handle<StepRepr_Representation> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  gp_Trsf & ,  const StepData_Factors &  ) >(&STEPControl_ActorRead::ComputeTransformation),
             R"#(Computes transformation defined by two axis placements (in MAPPED_ITEM or ITEM_DEFINED_TRANSFORMATION) taking into account their representation contexts (i.e. units, which may be different) Returns True if transformation is computed and is not an identity.)#"  , py::arg("Origin"),  py::arg("Target"),  py::arg("OrigContext"),  py::arg("TargContext"),  py::arg("TP"),  py::arg("Trsf"),  py::arg("theLocalFactors")
          )
        .def("ComputeSRRWT",
             (Standard_Boolean (STEPControl_ActorRead::*)( const opencascade::handle<StepRepr_RepresentationRelationship> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  gp_Trsf & ,  const StepData_Factors &  ) ) static_cast<Standard_Boolean (STEPControl_ActorRead::*)( const opencascade::handle<StepRepr_RepresentationRelationship> & ,  const opencascade::handle<Transfer_TransientProcess> & ,  gp_Trsf & ,  const StepData_Factors &  ) >(&STEPControl_ActorRead::ComputeSRRWT),
             R"#(Computes transformation defined by given REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION)#"  , py::arg("SRR"),  py::arg("TP"),  py::arg("Trsf"),  py::arg("theLocalFactors")
          )
    // methods using call by reference i.s.o. return
        .def("ResetUnits",
             []( STEPControl_ActorRead &self , StepData_StepModel& theModel,StepData_Factors & theLocalFactors ){
                 opencascade::handle<StepData_StepModel>  theModel_ptr; theModel_ptr = &theModel;

                 self.ResetUnits(theModel_ptr,theLocalFactors);
                 if ( theModel_ptr.get() != &theModel ) copy_if_copy_constructible(theModel, *theModel_ptr);

                 return std::make_tuple(); },
             R"#(reset units and tolerances context to default (mm, radians, read.precision.val, etc.))#"  , py::arg("theModel"),  py::arg("theLocalFactors")
          )
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&STEPControl_ActorRead::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&STEPControl_ActorRead::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> & (STEPControl_ActorRead::*)() const) static_cast<const opencascade::handle<Standard_Type> & (STEPControl_ActorRead::*)() const>(&STEPControl_ActorRead::DynamicType),
             R"#(None)#"
             
         )
;

    // Class STEPControl_ActorWrite from ./opencascade/STEPControl_ActorWrite.hxx
    klass = m.attr("STEPControl_ActorWrite");


    // nested enums

    static_cast<py::class_<STEPControl_ActorWrite ,opencascade::handle<STEPControl_ActorWrite>  , Transfer_ActorOfFinderProcess >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("Recognize",
             (Standard_Boolean (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> &  ) ) static_cast<Standard_Boolean (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> &  ) >(&STEPControl_ActorWrite::Recognize),
             R"#(None)#"  , py::arg("start")
          )
        .def("Transfer",
             (opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const Message_ProgressRange &  ) ) static_cast<opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const Message_ProgressRange &  ) >(&STEPControl_ActorWrite::Transfer),
             R"#(None)#"  , py::arg("start"),  py::arg("FP"),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("TransferSubShape",
             (opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<StepShape_ShapeDefinitionRepresentation> & ,  opencascade::handle<StepGeom_Axis2Placement3d> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const StepData_Factors & ,  const opencascade::handle<TopTools_HSequenceOfShape> & ,  const Standard_Boolean ,  const Message_ProgressRange &  ) ) static_cast<opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<StepShape_ShapeDefinitionRepresentation> & ,  opencascade::handle<StepGeom_Axis2Placement3d> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const StepData_Factors & ,  const opencascade::handle<TopTools_HSequenceOfShape> & ,  const Standard_Boolean ,  const Message_ProgressRange &  ) >(&STEPControl_ActorWrite::TransferSubShape),
             R"#(None)#"  , py::arg("start"),  py::arg("SDR"),  py::arg("AX1"),  py::arg("FP"),  py::arg("theLocalFactors"),  py::arg("shapeGroup")=static_cast<const opencascade::handle<TopTools_HSequenceOfShape> &>(NULL),  py::arg("isManifold")=static_cast<const Standard_Boolean>(Standard_True),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("TransferShape",
             (opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<StepShape_ShapeDefinitionRepresentation> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const StepData_Factors & ,  const opencascade::handle<TopTools_HSequenceOfShape> & ,  const Standard_Boolean ,  const Message_ProgressRange &  ) ) static_cast<opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<StepShape_ShapeDefinitionRepresentation> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const StepData_Factors & ,  const opencascade::handle<TopTools_HSequenceOfShape> & ,  const Standard_Boolean ,  const Message_ProgressRange &  ) >(&STEPControl_ActorWrite::TransferShape),
             R"#(None)#"  , py::arg("start"),  py::arg("SDR"),  py::arg("FP"),  py::arg("theLocalFactors"),  py::arg("shapeGroup")=static_cast<const opencascade::handle<TopTools_HSequenceOfShape> &>(NULL),  py::arg("isManifold")=static_cast<const Standard_Boolean>(Standard_True),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("TransferCompound",
             (opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<StepShape_ShapeDefinitionRepresentation> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const StepData_Factors & ,  const Message_ProgressRange &  ) ) static_cast<opencascade::handle<Transfer_Binder> (STEPControl_ActorWrite::*)( const opencascade::handle<Transfer_Finder> & ,  const opencascade::handle<StepShape_ShapeDefinitionRepresentation> & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const StepData_Factors & ,  const Message_ProgressRange &  ) >(&STEPControl_ActorWrite::TransferCompound),
             R"#(None)#"  , py::arg("start"),  py::arg("SDR"),  py::arg("FP"),  py::arg("theLocalFactors"),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("SetMode",
             (void (STEPControl_ActorWrite::*)( const STEPControl_StepModelType  ) ) static_cast<void (STEPControl_ActorWrite::*)( const STEPControl_StepModelType  ) >(&STEPControl_ActorWrite::SetMode),
             R"#(None)#"  , py::arg("M")
          )
        .def("Mode",
             (STEPControl_StepModelType (STEPControl_ActorWrite::*)() const) static_cast<STEPControl_StepModelType (STEPControl_ActorWrite::*)() const>(&STEPControl_ActorWrite::Mode),
             R"#(None)#" 
          )
        .def("SetGroupMode",
             (void (STEPControl_ActorWrite::*)( const Standard_Integer  ) ) static_cast<void (STEPControl_ActorWrite::*)( const Standard_Integer  ) >(&STEPControl_ActorWrite::SetGroupMode),
             R"#(None)#"  , py::arg("mode")
          )
        .def("GroupMode",
             (Standard_Integer (STEPControl_ActorWrite::*)() const) static_cast<Standard_Integer (STEPControl_ActorWrite::*)() const>(&STEPControl_ActorWrite::GroupMode),
             R"#(None)#" 
          )
        .def("SetTolerance",
             (void (STEPControl_ActorWrite::*)( const Standard_Real  ) ) static_cast<void (STEPControl_ActorWrite::*)( const Standard_Real  ) >(&STEPControl_ActorWrite::SetTolerance),
             R"#(None)#"  , py::arg("Tol")
          )
        .def("IsAssembly",
             (Standard_Boolean (STEPControl_ActorWrite::*)( const opencascade::handle<StepData_StepModel> & ,  TopoDS_Shape &  ) const) static_cast<Standard_Boolean (STEPControl_ActorWrite::*)( const opencascade::handle<StepData_StepModel> & ,  TopoDS_Shape &  ) const>(&STEPControl_ActorWrite::IsAssembly),
             R"#(Customizable method to check whether shape S should be written as assembly or not Default implementation uses flag GroupMode and analyses the shape itself NOTE: this method can modify shape)#"  , py::arg("theModel"),  py::arg("S")
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&STEPControl_ActorWrite::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&STEPControl_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> & (STEPControl_ActorWrite::*)() const) static_cast<const opencascade::handle<Standard_Type> & (STEPControl_ActorWrite::*)() const>(&STEPControl_ActorWrite::DynamicType),
             R"#(None)#"
             
         )
;

    // Class STEPControl_Controller from ./opencascade/STEPControl_Controller.hxx
    klass = m.attr("STEPControl_Controller");


    // nested enums

    static_cast<py::class_<STEPControl_Controller ,opencascade::handle<STEPControl_Controller>  , XSControl_Controller >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("NewModel",
             (opencascade::handle<Interface_InterfaceModel> (STEPControl_Controller::*)() const) static_cast<opencascade::handle<Interface_InterfaceModel> (STEPControl_Controller::*)() const>(&STEPControl_Controller::NewModel),
             R"#(Creates a new empty Model ready to receive data of the Norm. It is taken from STEP Template Model)#" 
          )
        .def("ActorRead",
             (opencascade::handle<Transfer_ActorOfTransientProcess> (STEPControl_Controller::*)( const opencascade::handle<Interface_InterfaceModel> &  ) const) static_cast<opencascade::handle<Transfer_ActorOfTransientProcess> (STEPControl_Controller::*)( const opencascade::handle<Interface_InterfaceModel> &  ) const>(&STEPControl_Controller::ActorRead),
             R"#(Returns the Actor for Read attached to the pair (norm,appli))#"  , py::arg("theModel")
          )
        .def("TransferWriteShape",
             (IFSelect_ReturnStatus (STEPControl_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 (STEPControl_Controller::*)( const TopoDS_Shape & ,  const opencascade::handle<Transfer_FinderProcess> & ,  const opencascade::handle<Interface_InterfaceModel> & ,  const Standard_Integer ,  const Message_ProgressRange &  ) const>(&STEPControl_Controller::TransferWriteShape),
             R"#(Takes one Shape and transfers it to the InterfaceModel (already created by NewModel for instance) <modeshape> 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 a StepModel) modeshape : 1 Facetted BRep, 2 Shell, 3 Manifold Solid)#"  , 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",
             []( STEPControl_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 (*)() >(&STEPControl_Controller::Init),
                    R"#(Standard Initialisation. It creates a Controller for STEP and records it to various names, available to select it later Returns True when done, False if could not be done)#" 
          )
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&STEPControl_Controller::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&STEPControl_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> & (STEPControl_Controller::*)() const) static_cast<const opencascade::handle<Standard_Type> & (STEPControl_Controller::*)() const>(&STEPControl_Controller::DynamicType),
             R"#(None)#"
             
         )
;

    // Class STEPControl_Reader from ./opencascade/STEPControl_Reader.hxx
    klass = m.attr("STEPControl_Reader");


    // nested enums

    static_cast<py::class_<STEPControl_Reader , shared_ptr<STEPControl_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("StepModel",
             (opencascade::handle<StepData_StepModel> (STEPControl_Reader::*)() const) static_cast<opencascade::handle<StepData_StepModel> (STEPControl_Reader::*)() const>(&STEPControl_Reader::StepModel),
             R"#(Returns the model as a StepModel. It can then be consulted (header, product))#" 
          )
        .def("ReadFile",
             (IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString  ) >(&STEPControl_Reader::ReadFile),
             R"#(Loads a file and returns the read status Zero for a Model which compies with the Controller)#"  , py::arg("filename")
          )
        .def("ReadStream",
             (IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString ,  basic_istream<char> &  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString ,  basic_istream<char> &  ) >(&STEPControl_Reader::ReadStream),
             R"#(Loads a file from stream and returns the read status)#"  , py::arg("theName"),  py::arg("theIStream")
          )
        .def("ReadFile",
             (IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString ,  const StepData_ConfParameters &  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString ,  const StepData_ConfParameters &  ) >(&STEPControl_Reader::ReadFile),
             R"#(Loads a file and returns the read status Zero for a Model which compies with the Controller)#"  , py::arg("filename"),  py::arg("theParams")
          )
        .def("ReadStream",
             (IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString ,  const StepData_ConfParameters & ,  basic_istream<char> &  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Reader::*)( const Standard_CString ,  const StepData_ConfParameters & ,  basic_istream<char> &  ) >(&STEPControl_Reader::ReadStream),
             R"#(Loads a file from stream and returns the read status)#"  , py::arg("theName"),  py::arg("theParams"),  py::arg("theIStream")
          )
        .def("TransferRoot",
             (Standard_Boolean (STEPControl_Reader::*)( const Standard_Integer ,  const Message_ProgressRange &  ) ) static_cast<Standard_Boolean (STEPControl_Reader::*)( const Standard_Integer ,  const Message_ProgressRange &  ) >(&STEPControl_Reader::TransferRoot),
             R"#(Transfers a root given its rank in the list of candidate roots Default is the first one Returns True if a shape has resulted, false else Same as inherited TransferOneRoot, kept for compatibility)#"  , py::arg("num")=static_cast<const Standard_Integer>(1),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("NbRootsForTransfer",
             (Standard_Integer (STEPControl_Reader::*)() ) static_cast<Standard_Integer (STEPControl_Reader::*)() >(&STEPControl_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))#" 
          )
        .def("FileUnits",
             (void (STEPControl_Reader::*)( NCollection_Sequence<TCollection_AsciiString> & ,  NCollection_Sequence<TCollection_AsciiString> & ,  NCollection_Sequence<TCollection_AsciiString> &  ) ) static_cast<void (STEPControl_Reader::*)( NCollection_Sequence<TCollection_AsciiString> & ,  NCollection_Sequence<TCollection_AsciiString> & ,  NCollection_Sequence<TCollection_AsciiString> &  ) >(&STEPControl_Reader::FileUnits),
             R"#(Returns sequence of all unit names for shape representations found in file)#"  , py::arg("theUnitLengthNames"),  py::arg("theUnitAngleNames"),  py::arg("theUnitSolidAngleNames")
          )
        .def("SetSystemLengthUnit",
             (void (STEPControl_Reader::*)( const Standard_Real  ) ) static_cast<void (STEPControl_Reader::*)( const Standard_Real  ) >(&STEPControl_Reader::SetSystemLengthUnit),
             R"#(Sets system length unit used by transfer process. Performs only if a model is not NULL)#"  , py::arg("theLengthUnit")
          )
        .def("SystemLengthUnit",
             (Standard_Real (STEPControl_Reader::*)() const) static_cast<Standard_Real (STEPControl_Reader::*)() const>(&STEPControl_Reader::SystemLengthUnit),
             R"#(Returns system length unit used by transfer process. Performs only if a model is not NULL)#" 
          )
    // 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 STEPControl_Writer from ./opencascade/STEPControl_Writer.hxx
    klass = m.attr("STEPControl_Writer");


    // nested enums

    static_cast<py::class_<STEPControl_Writer , shared_ptr<STEPControl_Writer>  >>(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("SetTolerance",
             (void (STEPControl_Writer::*)( const Standard_Real  ) ) static_cast<void (STEPControl_Writer::*)( const Standard_Real  ) >(&STEPControl_Writer::SetTolerance),
             R"#(Sets a length-measure value that will be written to uncertainty-measure-with-unit when the next shape is translated.)#"  , py::arg("Tol")
          )
        .def("UnsetTolerance",
             (void (STEPControl_Writer::*)() ) static_cast<void (STEPControl_Writer::*)() >(&STEPControl_Writer::UnsetTolerance),
             R"#(Unsets the tolerance formerly forced by SetTolerance)#" 
          )
        .def("SetWS",
             (void (STEPControl_Writer::*)( const opencascade::handle<XSControl_WorkSession> & ,  const Standard_Boolean  ) ) static_cast<void (STEPControl_Writer::*)( const opencascade::handle<XSControl_WorkSession> & ,  const Standard_Boolean  ) >(&STEPControl_Writer::SetWS),
             R"#(Sets a specific session to <me>)#"  , py::arg("WS"),  py::arg("scratch")=static_cast<const Standard_Boolean>(Standard_True)
          )
        .def("WS",
             (opencascade::handle<XSControl_WorkSession> (STEPControl_Writer::*)() const) static_cast<opencascade::handle<XSControl_WorkSession> (STEPControl_Writer::*)() const>(&STEPControl_Writer::WS),
             R"#(Returns the session used in <me>)#" 
          )
        .def("Model",
             (opencascade::handle<StepData_StepModel> (STEPControl_Writer::*)( const Standard_Boolean  ) ) static_cast<opencascade::handle<StepData_StepModel> (STEPControl_Writer::*)( const Standard_Boolean  ) >(&STEPControl_Writer::Model),
             R"#(Returns the produced model. Produces a new one if not yet done or if <newone> is True This method allows for instance to edit product or header data before writing.)#"  , py::arg("newone")=static_cast<const Standard_Boolean>(Standard_False)
          )
        .def("Transfer",
             (IFSelect_ReturnStatus (STEPControl_Writer::*)( const TopoDS_Shape & ,  const STEPControl_StepModelType ,  const Standard_Boolean ,  const Message_ProgressRange &  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Writer::*)( const TopoDS_Shape & ,  const STEPControl_StepModelType ,  const Standard_Boolean ,  const Message_ProgressRange &  ) >(&STEPControl_Writer::Transfer),
             R"#(Translates shape sh to a STEP entity. mode defines the STEP entity type to be output: - STEPControlStd_AsIs translates a shape to its highest possible STEP representation. - STEPControlStd_ManifoldSolidBrep translates a shape to a STEP manifold_solid_brep or brep_with_voids entity. - STEPControlStd_FacetedBrep translates a shape into a STEP faceted_brep entity. - STEPControlStd_ShellBasedSurfaceModel translates a shape into a STEP shell_based_surface_model entity. - STEPControlStd_GeometricCurveSet translates a shape into a STEP geometric_curve_set entity.)#"  , py::arg("sh"),  py::arg("mode"),  py::arg("compgraph")=static_cast<const Standard_Boolean>(Standard_True),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("Transfer",
             (IFSelect_ReturnStatus (STEPControl_Writer::*)( const TopoDS_Shape & ,  const STEPControl_StepModelType ,  const StepData_ConfParameters & ,  const Standard_Boolean ,  const Message_ProgressRange &  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Writer::*)( const TopoDS_Shape & ,  const STEPControl_StepModelType ,  const StepData_ConfParameters & ,  const Standard_Boolean ,  const Message_ProgressRange &  ) >(&STEPControl_Writer::Transfer),
             R"#(Translates shape sh to a STEP entity)#"  , py::arg("sh"),  py::arg("mode"),  py::arg("theParams"),  py::arg("compgraph")=static_cast<const Standard_Boolean>(Standard_True),  py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
          )
        .def("Write",
             (IFSelect_ReturnStatus (STEPControl_Writer::*)( const Standard_CString  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Writer::*)( const Standard_CString  ) >(&STEPControl_Writer::Write),
             R"#(Writes a STEP model in the file identified by filename.)#"  , py::arg("theFileName")
          )
        .def("WriteStream",
             (IFSelect_ReturnStatus (STEPControl_Writer::*)( basic_ostream<char> &  ) ) static_cast<IFSelect_ReturnStatus (STEPControl_Writer::*)( basic_ostream<char> &  ) >(&STEPControl_Writer::WriteStream),
             R"#(Writes a STEP model in the std::ostream.)#"  , py::arg("theOStream")
          )
        .def("PrintStatsTransfer",
             (void (STEPControl_Writer::*)( const Standard_Integer ,  const Standard_Integer  ) const) static_cast<void (STEPControl_Writer::*)( const Standard_Integer ,  const Standard_Integer  ) const>(&STEPControl_Writer::PrintStatsTransfer),
             R"#(Displays the statistics for the last translation. what defines the kind of statistics that are displayed: - 0 gives general statistics (number of translated roots, number of warnings, number of fail messages), - 1 gives root results, - 2 gives statistics for all checked entities, - 3 gives the list of translated entities, - 4 gives warning and fail messages, - 5 gives fail messages only. mode is used according to the use of what. If what is 0, mode is ignored. If what is 1, 2 or 3, mode defines the following: - 0 lists the numbers of STEP entities in a STEP model, - 1 gives the number, identifier, type and result type for each STEP entity and/or its status (fail, warning, etc.), - 2 gives maximum information for each STEP entity (i.e. checks), - 3 gives the number of entities by the type of a STEP entity, - 4 gives the number of of STEP entities per result type and/or status, - 5 gives the number of pairs (STEP or result type and status), - 6 gives the number of pairs (STEP or result type and status) AND the list of entity numbers in the STEP model.)#"  , py::arg("what"),  py::arg("mode")=static_cast<const Standard_Integer>(0)
          )
    // 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/STEPControl_ActorRead.hxx
// ./opencascade/STEPControl_ActorWrite.hxx
// ./opencascade/STEPControl_Controller.hxx
// ./opencascade/STEPControl_Reader.hxx
// ./opencascade/STEPControl_StepModelType.hxx
// ./opencascade/STEPControl_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