File: Geom2dEvaluator.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-- 13,750 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 <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>

// module includes
#include <Geom2dEvaluator.hxx>
#include <Geom2dEvaluator_Curve.hxx>
#include <Geom2dEvaluator_OffsetCurve.hxx>

// template related includes


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

// user-defined inclusion per module

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


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

//Python trampoline classes
    class Py_Geom2dEvaluator_Curve : public Geom2dEvaluator_Curve{
    public:
        using Geom2dEvaluator_Curve::Geom2dEvaluator_Curve;


        // public pure virtual
        void D0(const Standard_Real theU,gp_Pnt2d & theValue) const  override { PYBIND11_OVERLOAD_PURE(void,Geom2dEvaluator_Curve,D0,theU,theValue) };
        void D1(const Standard_Real theU,gp_Pnt2d & theValue,gp_Vec2d & theD1) const  override { PYBIND11_OVERLOAD_PURE(void,Geom2dEvaluator_Curve,D1,theU,theValue,theD1) };
        void D2(const Standard_Real theU,gp_Pnt2d & theValue,gp_Vec2d & theD1,gp_Vec2d & theD2) const  override { PYBIND11_OVERLOAD_PURE(void,Geom2dEvaluator_Curve,D2,theU,theValue,theD1,theD2) };
        void D3(const Standard_Real theU,gp_Pnt2d & theValue,gp_Vec2d & theD1,gp_Vec2d & theD2,gp_Vec2d & theD3) const  override { PYBIND11_OVERLOAD_PURE(void,Geom2dEvaluator_Curve,D3,theU,theValue,theD1,theD2,theD3) };
        gp_Vec2d DN(const Standard_Real theU,const Standard_Integer theDerU) const  override { PYBIND11_OVERLOAD_PURE(gp_Vec2d,Geom2dEvaluator_Curve,DN,theU,theDerU) };
        opencascade::handle<Geom2dEvaluator_Curve> ShallowCopy() const  override { PYBIND11_OVERLOAD_PURE(opencascade::handle<Geom2dEvaluator_Curve>,Geom2dEvaluator_Curve,ShallowCopy,) };


        // protected pure virtual


        // private pure virtual

    };

// classes

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

    // default constructor
    register_default_constructor<Geom2dEvaluator , shared_ptr<Geom2dEvaluator>>(m,"Geom2dEvaluator");

    // nested enums

    static_cast<py::class_<Geom2dEvaluator , shared_ptr<Geom2dEvaluator>  >>(klass)
    // constructors
    // custom constructors
    // methods
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("CalculateD0_s",
                    (void (*)( gp_Pnt2d & ,  const gp_Vec2d & ,  const Standard_Real  ) ) static_cast<void (*)( gp_Pnt2d & ,  const gp_Vec2d & ,  const Standard_Real  ) >(&Geom2dEvaluator::CalculateD0),
                    R"#(Recalculate D1 values of base curve into D0 value of offset curve)#"  , py::arg("theValue"),  py::arg("theD1"),  py::arg("theOffset")
          )
        .def_static("CalculateD1_s",
                    (void (*)( gp_Pnt2d & ,  gp_Vec2d & ,  const gp_Vec2d & ,  const Standard_Real  ) ) static_cast<void (*)( gp_Pnt2d & ,  gp_Vec2d & ,  const gp_Vec2d & ,  const Standard_Real  ) >(&Geom2dEvaluator::CalculateD1),
                    R"#(Recalculate D2 values of base curve into D1 values of offset curve)#"  , py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2"),  py::arg("theOffset")
          )
        .def_static("CalculateD2_s",
                    (void (*)( gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  const gp_Vec2d & ,  const Standard_Boolean ,  const Standard_Real  ) ) static_cast<void (*)( gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  const gp_Vec2d & ,  const Standard_Boolean ,  const Standard_Real  ) >(&Geom2dEvaluator::CalculateD2),
                    R"#(Recalculate D3 values of base curve into D2 values of offset curve)#"  , py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2"),  py::arg("theD3"),  py::arg("theIsDirChange"),  py::arg("theOffset")
          )
        .def_static("CalculateD3_s",
                    (void (*)( gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  const gp_Vec2d & ,  const Standard_Boolean ,  const Standard_Real  ) ) static_cast<void (*)( gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  const gp_Vec2d & ,  const Standard_Boolean ,  const Standard_Real  ) >(&Geom2dEvaluator::CalculateD3),
                    R"#(Recalculate D3 values of base curve into D3 values of offset curve)#"  , py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2"),  py::arg("theD3"),  py::arg("theD4"),  py::arg("theIsDirChange"),  py::arg("theOffset")
          )
    // 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 Geom2dEvaluator_Curve from ./opencascade/Geom2dEvaluator_Curve.hxx
    klass = m.attr("Geom2dEvaluator_Curve");


    // nested enums

    static_cast<py::class_<Geom2dEvaluator_Curve ,opencascade::handle<Geom2dEvaluator_Curve> ,Py_Geom2dEvaluator_Curve , Standard_Transient >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("D0",
             (void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d &  ) const) static_cast<void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d &  ) const>(&Geom2dEvaluator_Curve::D0),
             R"#(Value of 2D curve)#"  , py::arg("theU"),  py::arg("theValue")
          )
        .def("D1",
             (void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d &  ) const) static_cast<void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d &  ) const>(&Geom2dEvaluator_Curve::D1),
             R"#(Value and first derivatives of curve)#"  , py::arg("theU"),  py::arg("theValue"),  py::arg("theD1")
          )
        .def("D2",
             (void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const) static_cast<void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const>(&Geom2dEvaluator_Curve::D2),
             R"#(Value, first and second derivatives of curve)#"  , py::arg("theU"),  py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2")
          )
        .def("D3",
             (void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const) static_cast<void (Geom2dEvaluator_Curve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const>(&Geom2dEvaluator_Curve::D3),
             R"#(Value, first, second and third derivatives of curve)#"  , py::arg("theU"),  py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2"),  py::arg("theD3")
          )
        .def("DN",
             (gp_Vec2d (Geom2dEvaluator_Curve::*)( const Standard_Real ,  const Standard_Integer  ) const) static_cast<gp_Vec2d (Geom2dEvaluator_Curve::*)( const Standard_Real ,  const Standard_Integer  ) const>(&Geom2dEvaluator_Curve::DN),
             R"#(Calculates N-th derivatives of curve, where N = theDerU. Raises if N < 1)#"  , py::arg("theU"),  py::arg("theDerU")
          )
        .def("ShallowCopy",
             (opencascade::handle<Geom2dEvaluator_Curve> (Geom2dEvaluator_Curve::*)() const) static_cast<opencascade::handle<Geom2dEvaluator_Curve> (Geom2dEvaluator_Curve::*)() const>(&Geom2dEvaluator_Curve::ShallowCopy),
             R"#(None)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&Geom2dEvaluator_Curve::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Geom2dEvaluator_Curve::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> & (Geom2dEvaluator_Curve::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Geom2dEvaluator_Curve::*)() const>(&Geom2dEvaluator_Curve::DynamicType),
             R"#(None)#"
             
         )
;

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


    // nested enums

    static_cast<py::class_<Geom2dEvaluator_OffsetCurve ,opencascade::handle<Geom2dEvaluator_OffsetCurve>  , Geom2dEvaluator_Curve >>(klass)
    // constructors
        .def(py::init< const opencascade::handle<Geom2d_Curve> &,const Standard_Real >()  , py::arg("theBase"),  py::arg("theOffset") )
        .def(py::init< const opencascade::handle<Geom2dAdaptor_Curve> &,const Standard_Real >()  , py::arg("theBase"),  py::arg("theOffset") )
    // custom constructors
    // methods
        .def("SetOffsetValue",
             (void (Geom2dEvaluator_OffsetCurve::*)( Standard_Real  ) ) static_cast<void (Geom2dEvaluator_OffsetCurve::*)( Standard_Real  ) >(&Geom2dEvaluator_OffsetCurve::SetOffsetValue),
             R"#(Change the offset value)#"  , py::arg("theOffset")
          )
        .def("D0",
             (void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d &  ) const) static_cast<void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d &  ) const>(&Geom2dEvaluator_OffsetCurve::D0),
             R"#(Value of curve)#"  , py::arg("theU"),  py::arg("theValue")
          )
        .def("D1",
             (void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d &  ) const) static_cast<void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d &  ) const>(&Geom2dEvaluator_OffsetCurve::D1),
             R"#(Value and first derivatives of curve)#"  , py::arg("theU"),  py::arg("theValue"),  py::arg("theD1")
          )
        .def("D2",
             (void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const) static_cast<void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const>(&Geom2dEvaluator_OffsetCurve::D2),
             R"#(Value, first and second derivatives of curve)#"  , py::arg("theU"),  py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2")
          )
        .def("D3",
             (void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const) static_cast<void (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  gp_Pnt2d & ,  gp_Vec2d & ,  gp_Vec2d & ,  gp_Vec2d &  ) const>(&Geom2dEvaluator_OffsetCurve::D3),
             R"#(Value, first, second and third derivatives of curve)#"  , py::arg("theU"),  py::arg("theValue"),  py::arg("theD1"),  py::arg("theD2"),  py::arg("theD3")
          )
        .def("DN",
             (gp_Vec2d (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  const Standard_Integer  ) const) static_cast<gp_Vec2d (Geom2dEvaluator_OffsetCurve::*)( const Standard_Real ,  const Standard_Integer  ) const>(&Geom2dEvaluator_OffsetCurve::DN),
             R"#(Calculates N-th derivatives of curve, where N = theDeriv. Raises if N < 1)#"  , py::arg("theU"),  py::arg("theDeriv")
          )
        .def("ShallowCopy",
             (opencascade::handle<Geom2dEvaluator_Curve> (Geom2dEvaluator_OffsetCurve::*)() const) static_cast<opencascade::handle<Geom2dEvaluator_Curve> (Geom2dEvaluator_OffsetCurve::*)() const>(&Geom2dEvaluator_OffsetCurve::ShallowCopy),
             R"#(None)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&Geom2dEvaluator_OffsetCurve::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Geom2dEvaluator_OffsetCurve::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> & (Geom2dEvaluator_OffsetCurve::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Geom2dEvaluator_OffsetCurve::*)() const>(&Geom2dEvaluator_OffsetCurve::DynamicType),
             R"#(None)#"
             
         )
;

// functions
// ./opencascade/Geom2dEvaluator.hxx
// ./opencascade/Geom2dEvaluator_Curve.hxx
// ./opencascade/Geom2dEvaluator_OffsetCurve.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