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
|
// 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 <IFSelect_EditForm.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <StepData_StepModel.hxx>
#include <Interface_Protocol.hxx>
// module includes
#include <APIHeaderSection_EditHeader.hxx>
#include <APIHeaderSection_MakeHeader.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
#include <HeaderSection_FileName.hxx>
#include <HeaderSection_FileSchema.hxx>
#include <HeaderSection_FileDescription.hxx>
// Module definiiton
void register_APIHeaderSection(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("APIHeaderSection"));
py::object klass;
//Python trampoline classes
// classes
// Class APIHeaderSection_EditHeader from ./opencascade/APIHeaderSection_EditHeader.hxx
klass = m.attr("APIHeaderSection_EditHeader");
// nested enums
static_cast<py::class_<APIHeaderSection_EditHeader ,opencascade::handle<APIHeaderSection_EditHeader> , IFSelect_Editor >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Label",
(TCollection_AsciiString (APIHeaderSection_EditHeader::*)() const) static_cast<TCollection_AsciiString (APIHeaderSection_EditHeader::*)() const>(&APIHeaderSection_EditHeader::Label),
R"#()#"
)
.def("Recognize",
(Standard_Boolean (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & ) const) static_cast<Standard_Boolean (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & ) const>(&APIHeaderSection_EditHeader::Recognize),
R"#()#" , py::arg("form")
)
.def("StringValue",
(handle<TCollection_HAsciiString> (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & , const Standard_Integer ) const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & , const Standard_Integer ) const>(&APIHeaderSection_EditHeader::StringValue),
R"#()#" , py::arg("form"), py::arg("num")
)
.def("Apply",
(Standard_Boolean (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & , const handle<Standard_Transient> & , const handle<Interface_InterfaceModel> & ) const) static_cast<Standard_Boolean (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & , const handle<Standard_Transient> & , const handle<Interface_InterfaceModel> & ) const>(&APIHeaderSection_EditHeader::Apply),
R"#()#" , py::arg("form"), py::arg("ent"), py::arg("model")
)
.def("Load",
(Standard_Boolean (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & , const handle<Standard_Transient> & , const handle<Interface_InterfaceModel> & ) const) static_cast<Standard_Boolean (APIHeaderSection_EditHeader::*)( const handle<IFSelect_EditForm> & , const handle<Standard_Transient> & , const handle<Interface_InterfaceModel> & ) const>(&APIHeaderSection_EditHeader::Load),
R"#()#" , py::arg("form"), py::arg("ent"), py::arg("model")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&APIHeaderSection_EditHeader::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&APIHeaderSection_EditHeader::get_type_descriptor),
R"#()#"
)
// 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 handle<Standard_Type> & (APIHeaderSection_EditHeader::*)() const) static_cast< const handle<Standard_Type> & (APIHeaderSection_EditHeader::*)() const>(&APIHeaderSection_EditHeader::DynamicType),
R"#()#"
)
;
// Class APIHeaderSection_MakeHeader from ./opencascade/APIHeaderSection_MakeHeader.hxx
klass = m.attr("APIHeaderSection_MakeHeader");
// nested enums
static_cast<py::class_<APIHeaderSection_MakeHeader , shared_ptr<APIHeaderSection_MakeHeader> >>(klass)
// constructors
.def(py::init< const Standard_Integer >() , py::arg("shapetype")=static_cast< const Standard_Integer>(0) )
.def(py::init< const handle<StepData_StepModel> & >() , py::arg("model") )
// custom constructors
// methods
.def("Init",
(void (APIHeaderSection_MakeHeader::*)( const Standard_CString ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const Standard_CString ) >(&APIHeaderSection_MakeHeader::Init),
R"#(Cancels the former definition and gives a FileName To be used when a Model has no well defined Header)#" , py::arg("nameval")
)
.def("IsDone",
(Standard_Boolean (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Boolean (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::IsDone),
R"#(Returns True if all data have been defined (see also HasFn, HasFs, HasFd))#"
)
.def("Apply",
(void (APIHeaderSection_MakeHeader::*)( const handle<StepData_StepModel> & ) const) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<StepData_StepModel> & ) const>(&APIHeaderSection_MakeHeader::Apply),
R"#(Creates an empty header for a new STEP model and allows the header fields to be completed.)#" , py::arg("model")
)
.def("NewModel",
(handle<StepData_StepModel> (APIHeaderSection_MakeHeader::*)( const handle<Interface_Protocol> & ) const) static_cast<handle<StepData_StepModel> (APIHeaderSection_MakeHeader::*)( const handle<Interface_Protocol> & ) const>(&APIHeaderSection_MakeHeader::NewModel),
R"#(Builds a Header, creates a new StepModel, then applies the Header to the StepModel The Schema Name is taken from the Protocol (if it inherits from StepData, else it is left in blanks))#" , py::arg("protocol")
)
.def("HasFn",
(Standard_Boolean (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Boolean (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::HasFn),
R"#(Checks whether there is a file_name entity. Returns True if there is one.)#"
)
.def("FnValue",
(handle<HeaderSection_FileName> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<HeaderSection_FileName> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::FnValue),
R"#(Returns the file_name entity. Returns an empty entity if the file_name entity is not initialized.)#"
)
.def("SetName",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetName),
R"#()#" , py::arg("aName")
)
.def("Name",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::Name),
R"#(Returns the name attribute for the file_name entity.)#"
)
.def("SetTimeStamp",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetTimeStamp),
R"#()#" , py::arg("aTimeStamp")
)
.def("TimeStamp",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::TimeStamp),
R"#(Returns the value of the time_stamp attribute for the file_name entity.)#"
)
.def("SetAuthor",
(void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetAuthor),
R"#()#" , py::arg("aAuthor")
)
.def("SetAuthorValue",
(void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetAuthorValue),
R"#()#" , py::arg("num"), py::arg("aAuthor")
)
.def("Author",
(handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::Author),
R"#()#"
)
.def("AuthorValue",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const>(&APIHeaderSection_MakeHeader::AuthorValue),
R"#(Returns the value of the name attribute for the file_name entity.)#" , py::arg("num")
)
.def("NbAuthor",
(Standard_Integer (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Integer (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::NbAuthor),
R"#(Returns the number of values for the author attribute in the file_name entity.)#"
)
.def("SetOrganization",
(void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetOrganization),
R"#()#" , py::arg("aOrganization")
)
.def("SetOrganizationValue",
(void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetOrganizationValue),
R"#()#" , py::arg("num"), py::arg("aOrganization")
)
.def("Organization",
(handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::Organization),
R"#()#"
)
.def("OrganizationValue",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const>(&APIHeaderSection_MakeHeader::OrganizationValue),
R"#(Returns the value of attribute organization for the file_name entity.)#" , py::arg("num")
)
.def("NbOrganization",
(Standard_Integer (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Integer (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::NbOrganization),
R"#(Returns the number of values for the organization attribute in the file_name entity.)#"
)
.def("SetPreprocessorVersion",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetPreprocessorVersion),
R"#()#" , py::arg("aPreprocessorVersion")
)
.def("PreprocessorVersion",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::PreprocessorVersion),
R"#(Returns the name of the preprocessor_version for the file_name entity.)#"
)
.def("SetOriginatingSystem",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetOriginatingSystem),
R"#()#" , py::arg("aOriginatingSystem")
)
.def("OriginatingSystem",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::OriginatingSystem),
R"#()#"
)
.def("SetAuthorisation",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetAuthorisation),
R"#()#" , py::arg("aAuthorisation")
)
.def("Authorisation",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::Authorisation),
R"#(Returns the value of the authorization attribute for the file_name entity.)#"
)
.def("HasFs",
(Standard_Boolean (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Boolean (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::HasFs),
R"#(Checks whether there is a file_schema entity. Returns True if there is one.)#"
)
.def("FsValue",
(handle<HeaderSection_FileSchema> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<HeaderSection_FileSchema> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::FsValue),
R"#(Returns the file_schema entity. Returns an empty entity if the file_schema entity is not initialized.)#"
)
.def("SetSchemaIdentifiers",
(void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetSchemaIdentifiers),
R"#()#" , py::arg("aSchemaIdentifiers")
)
.def("SetSchemaIdentifiersValue",
(void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetSchemaIdentifiersValue),
R"#()#" , py::arg("num"), py::arg("aSchemaIdentifier")
)
.def("SchemaIdentifiers",
(handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::SchemaIdentifiers),
R"#()#"
)
.def("SchemaIdentifiersValue",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const>(&APIHeaderSection_MakeHeader::SchemaIdentifiersValue),
R"#(Returns the value of the schema_identifier attribute for the file_schema entity.)#" , py::arg("num")
)
.def("NbSchemaIdentifiers",
(Standard_Integer (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Integer (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::NbSchemaIdentifiers),
R"#(Returns the number of values for the schema_identifier attribute in the file_schema entity.)#"
)
.def("AddSchemaIdentifier",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::AddSchemaIdentifier),
R"#(Add a subname of schema (if not yet in the list))#" , py::arg("aSchemaIdentifier")
)
.def("HasFd",
(Standard_Boolean (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Boolean (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::HasFd),
R"#(Checks whether there is a file_description entity. Returns True if there is one.)#"
)
.def("FdValue",
(handle<HeaderSection_FileDescription> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<HeaderSection_FileDescription> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::FdValue),
R"#(Returns the file_description entity. Returns an empty entity if the file_description entity is not initialized.)#"
)
.def("SetDescription",
(void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<Interface_HArray1OfHAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetDescription),
R"#()#" , py::arg("aDescription")
)
.def("SetDescriptionValue",
(void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const Standard_Integer , const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetDescriptionValue),
R"#()#" , py::arg("num"), py::arg("aDescription")
)
.def("Description",
(handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<Interface_HArray1OfHAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::Description),
R"#()#"
)
.def("DescriptionValue",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)( const Standard_Integer ) const>(&APIHeaderSection_MakeHeader::DescriptionValue),
R"#(Returns the value of the description attribute for the file_description entity.)#" , py::arg("num")
)
.def("NbDescription",
(Standard_Integer (APIHeaderSection_MakeHeader::*)() const) static_cast<Standard_Integer (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::NbDescription),
R"#(Returns the number of values for the file_description entity in the STEP file header.)#"
)
.def("SetImplementationLevel",
(void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) ) static_cast<void (APIHeaderSection_MakeHeader::*)( const handle<TCollection_HAsciiString> & ) >(&APIHeaderSection_MakeHeader::SetImplementationLevel),
R"#()#" , py::arg("aImplementationLevel")
)
.def("ImplementationLevel",
(handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const) static_cast<handle<TCollection_HAsciiString> (APIHeaderSection_MakeHeader::*)() const>(&APIHeaderSection_MakeHeader::ImplementationLevel),
R"#(Returns the value of the implementation_level attribute for the file_description entity.)#"
)
// 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/APIHeaderSection_EditHeader.hxx
// ./opencascade/APIHeaderSection_MakeHeader.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
|