File: Sweep.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 (249 lines) | stat: -rw-r--r-- 11,304 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

// 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 <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 <Sweep_NumShape.hxx>
#include <Sweep_NumShapeIterator.hxx>
#include <Sweep_NumShapeTool.hxx>

// template related includes


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

// user-defined inclusion per module

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


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

//Python trampoline classes

// classes

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


    // nested enums

    static_cast<py::class_<Sweep_NumShape , shared_ptr<Sweep_NumShape>  >>(klass)
    // constructors
        .def(py::init<  >()  )
        .def(py::init< const Standard_Integer,const TopAbs_ShapeEnum,const Standard_Boolean,const Standard_Boolean,const Standard_Boolean >()  , py::arg("Index"),  py::arg("Type"),  py::arg("Closed")=static_cast<const Standard_Boolean>(Standard_False),  py::arg("BegInf")=static_cast<const Standard_Boolean>(Standard_False),  py::arg("EndInf")=static_cast<const Standard_Boolean>(Standard_False) )
    // custom constructors
    // methods
        .def("Init",
             (void (Sweep_NumShape::*)( const Standard_Integer ,  const TopAbs_ShapeEnum ,  const Standard_Boolean ,  const Standard_Boolean ,  const Standard_Boolean  ) ) static_cast<void (Sweep_NumShape::*)( const Standard_Integer ,  const TopAbs_ShapeEnum ,  const Standard_Boolean ,  const Standard_Boolean ,  const Standard_Boolean  ) >(&Sweep_NumShape::Init),
             R"#(Reinitialize a simple indexed edge.)#"  , py::arg("Index"),  py::arg("Type"),  py::arg("Closed")=static_cast<const Standard_Boolean>(Standard_False),  py::arg("BegInf")=static_cast<const Standard_Boolean>(Standard_False),  py::arg("EndInf")=static_cast<const Standard_Boolean>(Standard_False)
          )
        .def("Index",
             (Standard_Integer (Sweep_NumShape::*)() const) static_cast<Standard_Integer (Sweep_NumShape::*)() const>(&Sweep_NumShape::Index),
             R"#(None)#" 
          )
        .def("Type",
             (TopAbs_ShapeEnum (Sweep_NumShape::*)() const) static_cast<TopAbs_ShapeEnum (Sweep_NumShape::*)() const>(&Sweep_NumShape::Type),
             R"#(None)#" 
          )
        .def("Closed",
             (Standard_Boolean (Sweep_NumShape::*)() const) static_cast<Standard_Boolean (Sweep_NumShape::*)() const>(&Sweep_NumShape::Closed),
             R"#(None)#" 
          )
        .def("BegInfinite",
             (Standard_Boolean (Sweep_NumShape::*)() const) static_cast<Standard_Boolean (Sweep_NumShape::*)() const>(&Sweep_NumShape::BegInfinite),
             R"#(None)#" 
          )
        .def("EndInfinite",
             (Standard_Boolean (Sweep_NumShape::*)() const) static_cast<Standard_Boolean (Sweep_NumShape::*)() const>(&Sweep_NumShape::EndInfinite),
             R"#(None)#" 
          )
        .def("Orientation",
             (TopAbs_Orientation (Sweep_NumShape::*)() const) static_cast<TopAbs_Orientation (Sweep_NumShape::*)() const>(&Sweep_NumShape::Orientation),
             R"#(None)#" 
          )
        .def("Index",
             (Standard_Integer (Sweep_NumShape::*)() const) static_cast<Standard_Integer (Sweep_NumShape::*)() const>(&Sweep_NumShape::Index),
             R"#(None)#" 
          )
        .def("Type",
             (TopAbs_ShapeEnum (Sweep_NumShape::*)() const) static_cast<TopAbs_ShapeEnum (Sweep_NumShape::*)() const>(&Sweep_NumShape::Type),
             R"#(None)#" 
          )
        .def("Closed",
             (Standard_Boolean (Sweep_NumShape::*)() const) static_cast<Standard_Boolean (Sweep_NumShape::*)() const>(&Sweep_NumShape::Closed),
             R"#(None)#" 
          )
        .def("BegInfinite",
             (Standard_Boolean (Sweep_NumShape::*)() const) static_cast<Standard_Boolean (Sweep_NumShape::*)() const>(&Sweep_NumShape::BegInfinite),
             R"#(None)#" 
          )
        .def("EndInfinite",
             (Standard_Boolean (Sweep_NumShape::*)() const) static_cast<Standard_Boolean (Sweep_NumShape::*)() const>(&Sweep_NumShape::EndInfinite),
             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 Sweep_NumShapeIterator from ./opencascade/Sweep_NumShapeIterator.hxx
    klass = m.attr("Sweep_NumShapeIterator");


    // nested enums

    static_cast<py::class_<Sweep_NumShapeIterator , shared_ptr<Sweep_NumShapeIterator>  >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("Init",
             (void (Sweep_NumShapeIterator::*)( const Sweep_NumShape &  ) ) static_cast<void (Sweep_NumShapeIterator::*)( const Sweep_NumShape &  ) >(&Sweep_NumShapeIterator::Init),
             R"#(Reset the NumShapeIterator on sub-shapes of <aShape>.)#"  , py::arg("aShape")
          )
        .def("More",
             (Standard_Boolean (Sweep_NumShapeIterator::*)() const) static_cast<Standard_Boolean (Sweep_NumShapeIterator::*)() const>(&Sweep_NumShapeIterator::More),
             R"#(Returns True if there is a current sub-shape.)#" 
          )
        .def("Next",
             (void (Sweep_NumShapeIterator::*)() ) static_cast<void (Sweep_NumShapeIterator::*)() >(&Sweep_NumShapeIterator::Next),
             R"#(Moves to the next sub-shape.)#" 
          )
        .def("Orientation",
             (TopAbs_Orientation (Sweep_NumShapeIterator::*)() const) static_cast<TopAbs_Orientation (Sweep_NumShapeIterator::*)() const>(&Sweep_NumShapeIterator::Orientation),
             R"#(Returns the orientation of the current sub-shape.)#" 
          )
        .def("More",
             (Standard_Boolean (Sweep_NumShapeIterator::*)() const) static_cast<Standard_Boolean (Sweep_NumShapeIterator::*)() const>(&Sweep_NumShapeIterator::More),
             R"#(Returns True if there is a current sub-shape.)#" 
          )
        .def("Orientation",
             (TopAbs_Orientation (Sweep_NumShapeIterator::*)() const) static_cast<TopAbs_Orientation (Sweep_NumShapeIterator::*)() const>(&Sweep_NumShapeIterator::Orientation),
             R"#(Returns the orientation of the current sub-shape.)#" 
          )
    // 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("Value",
             (const Sweep_NumShape & (Sweep_NumShapeIterator::*)() const) static_cast<const Sweep_NumShape & (Sweep_NumShapeIterator::*)() const>(&Sweep_NumShapeIterator::Value),
             R"#(Returns the current sub-shape.)#"
             
         )
       .def("Value",
             (const Sweep_NumShape & (Sweep_NumShapeIterator::*)() const) static_cast<const Sweep_NumShape & (Sweep_NumShapeIterator::*)() const>(&Sweep_NumShapeIterator::Value),
             R"#(Returns the current sub-shape.)#"
             
         )
;

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


    // nested enums

    static_cast<py::class_<Sweep_NumShapeTool , shared_ptr<Sweep_NumShapeTool>  >>(klass)
    // constructors
        .def(py::init< const Sweep_NumShape & >()  , py::arg("aShape") )
    // custom constructors
    // methods
        .def("NbShapes",
             (Standard_Integer (Sweep_NumShapeTool::*)() const) static_cast<Standard_Integer (Sweep_NumShapeTool::*)() const>(&Sweep_NumShapeTool::NbShapes),
             R"#(Returns the number of subshapes in the shape.)#" 
          )
        .def("Index",
             (Standard_Integer (Sweep_NumShapeTool::*)( const Sweep_NumShape &  ) const) static_cast<Standard_Integer (Sweep_NumShapeTool::*)( const Sweep_NumShape &  ) const>(&Sweep_NumShapeTool::Index),
             R"#(Returns the index of <aShape>.)#"  , py::arg("aShape")
          )
        .def("Shape",
             (Sweep_NumShape (Sweep_NumShapeTool::*)( const Standard_Integer  ) const) static_cast<Sweep_NumShape (Sweep_NumShapeTool::*)( const Standard_Integer  ) const>(&Sweep_NumShapeTool::Shape),
             R"#(Returns the Shape at index anIndex)#"  , py::arg("anIndex")
          )
        .def("Type",
             (TopAbs_ShapeEnum (Sweep_NumShapeTool::*)( const Sweep_NumShape &  ) const) static_cast<TopAbs_ShapeEnum (Sweep_NumShapeTool::*)( const Sweep_NumShape &  ) const>(&Sweep_NumShapeTool::Type),
             R"#(Returns the type of <aShape>.)#"  , py::arg("aShape")
          )
        .def("Orientation",
             (TopAbs_Orientation (Sweep_NumShapeTool::*)( const Sweep_NumShape &  ) const) static_cast<TopAbs_Orientation (Sweep_NumShapeTool::*)( const Sweep_NumShape &  ) const>(&Sweep_NumShapeTool::Orientation),
             R"#(Returns the orientation of <aShape>.)#"  , py::arg("aShape")
          )
        .def("HasFirstVertex",
             (Standard_Boolean (Sweep_NumShapeTool::*)() const) static_cast<Standard_Boolean (Sweep_NumShapeTool::*)() const>(&Sweep_NumShapeTool::HasFirstVertex),
             R"#(Returns true if there is a First Vertex in the Shape.)#" 
          )
        .def("HasLastVertex",
             (Standard_Boolean (Sweep_NumShapeTool::*)() const) static_cast<Standard_Boolean (Sweep_NumShapeTool::*)() const>(&Sweep_NumShapeTool::HasLastVertex),
             R"#(Returns true if there is a Last Vertex in the Shape.)#" 
          )
        .def("FirstVertex",
             (Sweep_NumShape (Sweep_NumShapeTool::*)() const) static_cast<Sweep_NumShape (Sweep_NumShapeTool::*)() const>(&Sweep_NumShapeTool::FirstVertex),
             R"#(Returns the first vertex.)#" 
          )
        .def("LastVertex",
             (Sweep_NumShape (Sweep_NumShapeTool::*)() const) static_cast<Sweep_NumShape (Sweep_NumShapeTool::*)() const>(&Sweep_NumShapeTool::LastVertex),
             R"#(Returns the last vertex.)#" 
          )
    // 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/Sweep_NumShape.hxx
// ./opencascade/Sweep_NumShapeIterator.hxx
// ./opencascade/Sweep_NumShapeTool.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