File: StdObject.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 (159 lines) | stat: -rw-r--r-- 5,644 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

// 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>
#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 <StdObject_gp_Axes.hxx>
#include <StdObject_gp_Curves.hxx>
#include <StdObject_gp_Surfaces.hxx>
#include <StdObject_gp_Trsfs.hxx>
#include <StdObject_gp_Vectors.hxx>
#include <StdObject_Location.hxx>
#include <StdObject_Shape.hxx>

// template related includes


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

// user-defined inclusion per module

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


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

//Python trampoline classes

// classes

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

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

    // nested enums

    static_cast<py::class_<StdObject_Location , shared_ptr<StdObject_Location>  >>(klass)
    // constructors
    // custom constructors
    // methods
        .def("PChildren",
             (void (StdObject_Location::*)( NCollection_Sequence<opencascade::handle<StdObjMgt_Persistent>> &  ) const) static_cast<void (StdObject_Location::*)( NCollection_Sequence<opencascade::handle<StdObjMgt_Persistent>> &  ) const>(&StdObject_Location::PChildren),
             R"#(Gets persistent child objects)#"  , py::arg("theChildren")
          )
        .def("Import",
             (TopLoc_Location (StdObject_Location::*)() const) static_cast<TopLoc_Location (StdObject_Location::*)() const>(&StdObject_Location::Import),
             R"#(Import transient object from the persistent data.)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("Translate_s",
                    (StdObject_Location (*)( const TopLoc_Location & ,  NCollection_DataMap<opencascade::handle<Standard_Transient>, opencascade::handle<StdObjMgt_Persistent>> &  ) ) static_cast<StdObject_Location (*)( const TopLoc_Location & ,  NCollection_DataMap<opencascade::handle<Standard_Transient>, opencascade::handle<StdObjMgt_Persistent>> &  ) >(&StdObject_Location::Translate),
                    R"#(Creates a persistent wrapper object for a location)#"  , py::arg("theLoc"),  py::arg("theMap")
          )
    // 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 StdObject_Shape from ./opencascade/StdObject_Shape.hxx
    klass = m.attr("StdObject_Shape");


    // nested enums

    static_cast<py::class_<StdObject_Shape , shared_ptr<StdObject_Shape>  >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("Import",
             (TopoDS_Shape (StdObject_Shape::*)() const) static_cast<TopoDS_Shape (StdObject_Shape::*)() const>(&StdObject_Shape::Import),
             R"#(Import transient object from the persistent data.)#" 
          )
        .def("PChildren",
             (void (StdObject_Shape::*)( NCollection_Sequence<opencascade::handle<StdObjMgt_Persistent>> &  ) const) static_cast<void (StdObject_Shape::*)( NCollection_Sequence<opencascade::handle<StdObjMgt_Persistent>> &  ) const>(&StdObject_Shape::PChildren),
             R"#(None)#"  , py::arg("theChildren")
          )
    // 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/StdObject_Location.hxx
// ./opencascade/StdObject_Shape.hxx
// ./opencascade/StdObject_gp_Axes.hxx
    m.def("write",
          (StdObjMgt_WriteData & (*)( StdObjMgt_WriteData & ,  const gp_Ax2d &  ))  static_cast<StdObjMgt_WriteData & (*)( StdObjMgt_WriteData & ,  const gp_Ax2d &  )>(&write),
          R"#(None)#"  , py::arg("theWriteData"),  py::arg("theAx")
          );
    m.def("write",
          (StdObjMgt_WriteData & (*)( StdObjMgt_WriteData & ,  const gp_Ax1 &  ))  static_cast<StdObjMgt_WriteData & (*)( StdObjMgt_WriteData & ,  const gp_Ax1 &  )>(&write),
          R"#(None)#"  , py::arg("theWriteData"),  py::arg("theAx")
          );
// ./opencascade/StdObject_gp_Curves.hxx
// ./opencascade/StdObject_gp_Surfaces.hxx
// ./opencascade/StdObject_gp_Trsfs.hxx
// ./opencascade/StdObject_gp_Vectors.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