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
|
#pragma once
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// user-defined inclusion per module before includes
// 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 <Image_SupportedFormats.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>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Image_CompressedPixMap.hxx>
#include <Image_SupportedFormats.hxx>
#include <Image_PixMap.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <Image_AlienPixMap.hxx>
#include <Image_Color.hxx>
#include <Image_CompressedFormat.hxx>
#include <Image_CompressedPixMap.hxx>
#include <Image_DDSParser.hxx>
#include <Image_Diff.hxx>
#include <Image_Format.hxx>
#include <Image_PixMap.hxx>
#include <Image_PixMapData.hxx>
#include <Image_PixMapTypedData.hxx>
#include <Image_SupportedFormats.hxx>
#include <Image_Texture.hxx>
#include <Image_VideoRecorder.hxx>
// user-defined pre
#include "OCP_specific.inc"
// Class template handling functions
template <typename PixelType_t>
void preregister_template_Image_PixMapTypedData(py::object &m, const char *name){
py::class_<Image_PixMapTypedData<PixelType_t> , opencascade::handle<Image_PixMapTypedData<PixelType_t>> , Image_PixMapData >(m,name,R"#(Structure to manage image buffer with predefined pixel type.)#");
}
template <typename PixelType_t>
void register_template_Image_PixMapTypedData(py::object &m, const char *name){
static_cast<py::class_<Image_PixMapTypedData<PixelType_t> , opencascade::handle<Image_PixMapTypedData<PixelType_t>> , Image_PixMapData >>(m.attr(name))
.def(py::init< >() )
.def("Init",
(bool (Image_PixMapTypedData<PixelType_t>::*)( const opencascade::handle<NCollection_BaseAllocator> & , Standard_Size , Standard_Size , Standard_Size , Standard_Byte * ) ) &Image_PixMapTypedData<PixelType_t>::Init,
R"#(Initializer.)#" ,py::arg("theAlloc"), py::arg("theSizeX"), py::arg("theSizeY"), py::arg("theSizeRowBytes")=static_cast<Standard_Size>(0), py::arg("theDataPtr")=static_cast<Standard_Byte *>(0))
.def("Init",
(void (Image_PixMapTypedData<PixelType_t>::*)( const PixelType_t & ) ) &Image_PixMapTypedData<PixelType_t>::Init,
R"#(Reset all values to specified one.)#" ,py::arg("theValue"))
.def("Row",
(const PixelType_t * (Image_PixMapTypedData<PixelType_t>::*)( Standard_Size ) const) &Image_PixMapTypedData<PixelType_t>::Row,
R"#(Returns data pointer to requested row (first column).)#" ,py::arg("theRow"))
.def("ChangeRow",
(PixelType_t * (Image_PixMapTypedData<PixelType_t>::*)( Standard_Size ) ) &Image_PixMapTypedData<PixelType_t>::ChangeRow,
R"#(Returns data pointer to requested row (first column).)#" ,py::arg("theRow"))
.def("Value",
(const PixelType_t & (Image_PixMapTypedData<PixelType_t>::*)( Standard_Size , Standard_Size ) const) &Image_PixMapTypedData<PixelType_t>::Value,
R"#(Returns data pointer to requested position.)#" ,py::arg("theRow"), py::arg("theCol"))
.def("ChangeValue",
(PixelType_t & (Image_PixMapTypedData<PixelType_t>::*)( Standard_Size , Standard_Size ) ) &Image_PixMapTypedData<PixelType_t>::ChangeValue,
R"#(Returns data pointer to requested position.)#" ,py::arg("theRow"), py::arg("theCol"))
;
};
// user-defined post
|