File: LProp.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 (169 lines) | stat: -rw-r--r-- 6,072 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

// 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 <LProp_CurAndInf.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>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>

// module includes
#include <LProp_AnalyticCurInf.hxx>
#include <LProp_BadContinuity.hxx>
#include <LProp_CIType.hxx>
#include <LProp_CurAndInf.hxx>
#include <LProp_NotDefined.hxx>
#include <LProp_SequenceOfCIType.hxx>
#include <LProp_Status.hxx>

// template related includes

// ./opencascade/LProp_SequenceOfCIType.hxx
#include "NCollection_tmpl.hxx"


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

// user-defined inclusion per module

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


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

//Python trampoline classes

// classes

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


    // nested enums

    static_cast<py::class_<LProp_AnalyticCurInf , shared_ptr<LProp_AnalyticCurInf>  >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("Perform",
             (void (LProp_AnalyticCurInf::*)( const GeomAbs_CurveType ,  const Standard_Real ,  const Standard_Real ,  LProp_CurAndInf &  ) ) static_cast<void (LProp_AnalyticCurInf::*)( const GeomAbs_CurveType ,  const Standard_Real ,  const Standard_Real ,  LProp_CurAndInf &  ) >(&LProp_AnalyticCurInf::Perform),
             R"#(None)#"  , py::arg("T"),  py::arg("UFirst"),  py::arg("ULast"),  py::arg("Result")
          )
    // 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 LProp_CurAndInf from ./opencascade/LProp_CurAndInf.hxx
    klass = m.attr("LProp_CurAndInf");


    // nested enums

    static_cast<py::class_<LProp_CurAndInf , shared_ptr<LProp_CurAndInf>  >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("AddInflection",
             (void (LProp_CurAndInf::*)( const Standard_Real  ) ) static_cast<void (LProp_CurAndInf::*)( const Standard_Real  ) >(&LProp_CurAndInf::AddInflection),
             R"#(None)#"  , py::arg("Param")
          )
        .def("AddExtCur",
             (void (LProp_CurAndInf::*)( const Standard_Real ,  const Standard_Boolean  ) ) static_cast<void (LProp_CurAndInf::*)( const Standard_Real ,  const Standard_Boolean  ) >(&LProp_CurAndInf::AddExtCur),
             R"#(None)#"  , py::arg("Param"),  py::arg("IsMin")
          )
        .def("Clear",
             (void (LProp_CurAndInf::*)() ) static_cast<void (LProp_CurAndInf::*)() >(&LProp_CurAndInf::Clear),
             R"#(None)#" 
          )
        .def("IsEmpty",
             (Standard_Boolean (LProp_CurAndInf::*)() const) static_cast<Standard_Boolean (LProp_CurAndInf::*)() const>(&LProp_CurAndInf::IsEmpty),
             R"#(None)#" 
          )
        .def("NbPoints",
             (Standard_Integer (LProp_CurAndInf::*)() const) static_cast<Standard_Integer (LProp_CurAndInf::*)() const>(&LProp_CurAndInf::NbPoints),
             R"#(Returns the number of points. The Points are stored to increasing parameter.)#" 
          )
        .def("Parameter",
             (Standard_Real (LProp_CurAndInf::*)( const Standard_Integer  ) const) static_cast<Standard_Real (LProp_CurAndInf::*)( const Standard_Integer  ) const>(&LProp_CurAndInf::Parameter),
             R"#(Returns the parameter of the Nth point. raises if N not in the range [1,NbPoints()])#"  , py::arg("N")
          )
        .def("Type",
             (LProp_CIType (LProp_CurAndInf::*)( const Standard_Integer  ) const) static_cast<LProp_CIType (LProp_CurAndInf::*)( const Standard_Integer  ) const>(&LProp_CurAndInf::Type),
             R"#(Returns - MinCur if the Nth parameter corresponds to a minimum of the radius of curvature. - MaxCur if the Nth parameter corresponds to a maximum of the radius of curvature. - Inflection if the parameter corresponds to a point of inflection. raises if N not in the range [1,NbPoints()])#"  , py::arg("N")
          )
    // 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/LProp_AnalyticCurInf.hxx
// ./opencascade/LProp_BadContinuity.hxx
// ./opencascade/LProp_CIType.hxx
// ./opencascade/LProp_CurAndInf.hxx
// ./opencascade/LProp_NotDefined.hxx
// ./opencascade/LProp_SequenceOfCIType.hxx
// ./opencascade/LProp_Status.hxx

// Additional functions

// operators

// register typdefs
    register_template_NCollection_Sequence<LProp_CIType>(m,"LProp_SequenceOfCIType");


// exceptions
register_occ_exception<LProp_BadContinuity>(m, "LProp_BadContinuity");
register_occ_exception<LProp_NotDefined>(m, "LProp_NotDefined");

// user-defined post-inclusion per module in the body

};

// user-defined post-inclusion per module

// user-defined post