Skip to content

Commit

Permalink
Add missed swig update for modified function
Browse files Browse the repository at this point in the history
  • Loading branch information
OKaluza committed Sep 30, 2024
1 parent e13d362 commit 099a752
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/LavaVuPython.i
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public:
Geom_Ptr arrayUInt(DrawingObject* target, unsigned int* array, int len, lucGeometryDataType type=lucRGBAData, int width=0, int height=0, int depth=0);
Geom_Ptr arrayFloat(DrawingObject* target, float* array, int len, lucGeometryDataType type=lucVertexData, int width=0, int height=0, int depth=0);
Geom_Ptr arrayFloat(DrawingObject* target, float* array, int len, std::string label, int width=0, int height=0, int depth=0);
void clearTexture(DrawingObject* target);
void clearTexture(DrawingObject* target, std::string label="");
void setTexture(DrawingObject* target, std::string texpath, bool flip=true, int filter=2, bool bgr=false, std::string label="");
void textureUChar(DrawingObject* target, unsigned char* array, int len, unsigned int width, unsigned int height, unsigned int channels, bool flip=true, int filter=2, bool bgr=false, std::string label="");
void textureUInt(DrawingObject* target, unsigned int* array, int len, unsigned int width, unsigned int height, unsigned int channels, bool flip=true, int filter=2, bool bgr=false, std::string label="");
Expand Down
78 changes: 75 additions & 3 deletions src/LavaVuPython_wrap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27461,18 +27461,62 @@ SWIGINTERN PyObject *_wrap_LavaVu_arrayFloat(PyObject *self, PyObject *args) {
}


SWIGINTERN PyObject *_wrap_LavaVu_clearTexture(PyObject *self, PyObject *args) {
SWIGINTERN PyObject *_wrap_LavaVu_clearTexture__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
LavaVu *arg1 = (LavaVu *) 0 ;
DrawingObject *arg2 = (DrawingObject *) 0 ;
std::string arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;

(void)self;
if (!SWIG_Python_UnpackTuple(args, "LavaVu_clearTexture", 2, 2, swig_obj)) SWIG_fail;
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_LavaVu, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LavaVu_clearTexture" "', argument " "1"" of type '" "LavaVu *""'");
}
arg1 = reinterpret_cast< LavaVu * >(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_DrawingObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LavaVu_clearTexture" "', argument " "2"" of type '" "DrawingObject *""'");
}
arg2 = reinterpret_cast< DrawingObject * >(argp2);
{
std::string *ptr = (std::string *)0;
int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
if (!SWIG_IsOK(res) || !ptr) {
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "LavaVu_clearTexture" "', argument " "3"" of type '" "std::string""'");
}
arg3 = *ptr;
if (SWIG_IsNewObj(res)) delete ptr;
}
{
try {
(arg1)->clearTexture(arg2,arg3);
} catch (const std::runtime_error& e) {
SWIG_exception(SWIG_RuntimeError, e.what());
}
}
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}


SWIGINTERN PyObject *_wrap_LavaVu_clearTexture__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
LavaVu *arg1 = (LavaVu *) 0 ;
DrawingObject *arg2 = (DrawingObject *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;

(void)self;
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_LavaVu, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LavaVu_clearTexture" "', argument " "1"" of type '" "LavaVu *""'");
Expand All @@ -27497,6 +27541,34 @@ SWIGINTERN PyObject *_wrap_LavaVu_clearTexture(PyObject *self, PyObject *args) {
}


SWIGINTERN PyObject *_wrap_LavaVu_clearTexture(PyObject *self, PyObject *args) {
Py_ssize_t argc;
PyObject *argv[4] = {
0
};

if (!(argc = SWIG_Python_UnpackTuple(args, "LavaVu_clearTexture", 0, 3, argv))) SWIG_fail;
--argc;
if (argc == 2) {
PyObject *retobj = _wrap_LavaVu_clearTexture__SWIG_1(self, argc, argv);
if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj;
SWIG_fail;
}
if (argc == 3) {
PyObject *retobj = _wrap_LavaVu_clearTexture__SWIG_0(self, argc, argv);
if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj;
SWIG_fail;
}

fail:
SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'LavaVu_clearTexture'.\n"
" Possible C/C++ prototypes are:\n"
" LavaVu::clearTexture(DrawingObject *,std::string)\n"
" LavaVu::clearTexture(DrawingObject *)\n");
return 0;
}


SWIGINTERN PyObject *_wrap_LavaVu_setTexture__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
LavaVu *arg1 = (LavaVu *) 0 ;
Expand Down

0 comments on commit 099a752

Please sign in to comment.